Files
GithubDesktopZhTools/GithubDesktop汉化工具/Windows/renderer.js
ChuXun c5283850db 1
2025-10-18 15:32:16 +08:00

3 lines
2.2 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see renderer.js.LICENSE.txt */
(()=>{var e={4980:(e,t,n)=>{"use strict";n(9395);const r=async e=>{throw new Error("macOS only")};e.exports=r,e.exports.default=r,e.exports.sync=e=>{throw new Error("macOS only")}},177:(e,t,n)=>{e.exports={default:n(9174),__esModule:!0}},7756:(e,t,n)=>{e.exports={default:n(311),__esModule:!0}},6269:(e,t,n)=>{e.exports={default:n(5360),__esModule:!0}},791:(e,t,n)=>{e.exports={default:n(8754),__esModule:!0}},1199:(e,t,n)=>{e.exports={default:n(744),__esModule:!0}},8420:(e,t,n)=>{e.exports={default:n(6151),__esModule:!0}},5435:(e,t,n)=>{e.exports={default:n(5668),__esModule:!0}},3274:(e,t,n)=>{e.exports={default:n(9160),__esModule:!0}},6575:(e,t,n)=>{e.exports={default:n(9428),__esModule:!0}},1258:(e,t)=>{"use strict";t.A=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},6412:(e,t,n)=>{"use strict";var r,s=(r=n(6269))&&r.__esModule?r:{default:r};t.A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,s.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},3097:(e,t,n)=>{"use strict";var r,s=(r=n(177))&&r.__esModule?r:{default:r};t.A=s.default||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}},7354:(e,t,n)=>{"use strict";var r=o(n(5435)),s=o(n(7756)),i=o(n(8063));function o(e){return e&&e.__esModule?e:{default:e}}t.A=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},3932:(e,t)=>{"use strict";t.A=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},1955:(e,t,n)=>{"use strict";var r,s=(r=n(8063))&&r.__esModule?r:{default:r};t.A=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,s.default)(t))&&"function"!=typeof t?e:t}},8063:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(6575)),s=o(n(3274)),i="function"==typeof s.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof s.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":i(e)}},3295:(e,t,n)=>{var r=n(2203),s=n(9023),i=n(3557);function o(e,t){if(!e)throw new Error("expected readStream");if(!e.readable)throw new Error("readStream must be readable");var n=new a(t);return e.pipe(n),n}function a(e){r.Transform.call(this,e),e=e||{},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=e.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1;var t=this;this.on("pipe",(function(e){t.encoding||e instanceof r.Readable&&(t.encoding=e._readableState.encoding)}))}e.exports=function(t,n){return e.exports.createStream(t,n)},e.exports.createStream=function(e,t){return e?o(e,t):new a(t)},e.exports.createLineStream=function(e){return console.log("WARNING: byline#createLineStream is deprecated and will be removed soon"),o(e)},e.exports.LineStream=a,s.inherits(a,r.Transform),a.prototype._transform=function(e,t,n){t=t||"utf8",Buffer.isBuffer(e)&&("buffer"==t?(e=e.toString(),t="utf8"):e=e.toString(t)),this._chunkEncoding=t;var r=e.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);this._lastChunkEndedWithCR&&"\n"==e[0]&&r.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=r[0],r.shift()),this._lastChunkEndedWithCR="\r"==e[e.length-1],this._lineBuffer=this._lineBuffer.concat(r),this._pushBuffer(t,1,n)},a.prototype._pushBuffer=function(e,t,n){for(;this._lineBuffer.length>t;){var r=this._lineBuffer.shift();if((this._keepEmptyLines||r.length>0)&&!this.push(this._reencode(r,e))){var s=this;return void i.setImmediate((function(){s._pushBuffer(e,t,n)}))}}n()},a.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)},a.prototype._reencode=function(e,t){return this.encoding&&this.encoding!=t?new Buffer(e,t).toString(this.encoding):this.encoding?e:new Buffer(e,t)}},1989:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},5405:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n))e.push(s.apply(null,n));else if("object"===i)for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?e.exports=s:void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()},2334:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,r=e.replace(/^v/,"").replace(/\+.*$/,""),s=(n="-",-1===(t=r).indexOf(n)?t.length:t.indexOf(n)),i=r.substring(0,s).split(".");return i.push(r.substring(s+1)),i}function n(e){return isNaN(Number(e))?e:Number(e)}function r(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function s(e,s){[e,s].forEach(r);for(var i=t(e),o=t(s),a=0;a<Math.max(i.length-1,o.length-1);a++){var l=parseInt(i[a]||0,10),c=parseInt(o[a]||0,10);if(l>c)return 1;if(c>l)return-1}var u=i[i.length-1],h=o[o.length-1];if(u&&h){var p=u.split(".").map(n),d=h.split(".").map(n);for(a=0;a<Math.max(p.length,d.length);a++){if(void 0===p[a]||"string"==typeof d[a]&&"number"==typeof p[a])return-1;if(void 0===d[a]||"string"==typeof p[a]&&"number"==typeof d[a])return 1;if(p[a]>d[a])return 1;if(d[a]>p[a])return-1}}else if(u||h)return u?-1:1;return 0}var i=[">",">=","=","<","<="],o={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return s.validate=function(t){return"string"==typeof t&&e.test(t)},s.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===i.indexOf(e))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}(n);var r=s(e,t);return o[n].indexOf(r)>-1},s})?n.apply(t,[]):n)||(e.exports=r)},9174:(e,t,n)=>{n(6726),e.exports=n(7934).Object.assign},311:(e,t,n)=>{n(7863);var r=n(7934).Object;e.exports=function(e,t){return r.create(e,t)}},5360:(e,t,n)=>{n(8016);var r=n(7934).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},8754:(e,t,n)=>{n(6130);var r=n(7934).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},744:(e,t,n)=>{n(2152),e.exports=n(7934).Object.getPrototypeOf},6151:(e,t,n)=>{n(1607),e.exports=n(7934).Object.keys},5668:(e,t,n)=>{n(3428),e.exports=n(7934).Object.setPrototypeOf},9160:(e,t,n)=>{n(4002),n(3258),n(3940),n(2580),e.exports=n(7934).Symbol},9428:(e,t,n)=>{n(5887),n(3394),e.exports=n(2856).f("iterator")},4347:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},3704:e=>{e.exports=function(){}},3924:(e,t,n)=>{var r=n(2265);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},5112:(e,t,n)=>{var r=n(6197),s=n(7389),i=n(8173);e.exports=function(e){return function(t,n,o){var a,l=r(t),c=s(l.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},5377:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},7934:e=>{var t=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)},9004:(e,t,n)=>{var r=n(4347);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,s){return e.call(t,n,r,s)}}return function(){return e.apply(t,arguments)}}},6240:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2179:(e,t,n)=>{e.exports=!n(6136)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2386:(e,t,n)=>{var r=n(2265),s=n(2598).document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},3884:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1329:(e,t,n)=>{var r=n(6639),s=n(1892),i=n(3585);e.exports=function(e){var t=r(e),n=s.f;if(n)for(var o,a=n(e),l=i.f,c=0;a.length>c;)l.call(e,o=a[c++])&&t.push(o);return t}},5247:(e,t,n)=>{var r=n(2598),s=n(7934),i=n(9004),o=n(8877),a="prototype",l=function(e,t,n){var c,u,h,p=e&l.F,d=e&l.G,m=e&l.S,f=e&l.P,g=e&l.B,y=e&l.W,w=d?s:s[t]||(s[t]={}),b=w[a],C=d?r:m?r[t]:(r[t]||{})[a];for(c in d&&(n=t),n)(u=!p&&C&&void 0!==C[c])&&c in w||(h=u?C[c]:n[c],w[c]=d&&"function"!=typeof C[c]?n[c]:g&&u?i(h,r):y&&C[c]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[a]=e[a],t}(h):f&&"function"==typeof h?i(Function.call,h):h,f&&((w.virtual||(w.virtual={}))[c]=h,e&l.R&&b&&!b[c]&&o(b,c,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6136:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},2598:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},1453:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},8877:(e,t,n)=>{var r=n(1404),s=n(2060);e.exports=n(2179)?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},2844:(e,t,n)=>{var r=n(2598).document;e.exports=r&&r.documentElement},1804:(e,t,n)=>{e.exports=!n(2179)&&!n(6136)((function(){return 7!=Object.defineProperty(n(2386)("div"),"a",{get:function(){return 7}}).a}))},2545:(e,t,n)=>{var r=n(5377);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},8493:(e,t,n)=>{var r=n(5377);e.exports=Array.isArray||function(e){return"Array"==r(e)}},2265:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},9904:(e,t,n)=>{"use strict";var r=n(4335),s=n(2060),i=n(9796),o={};n(8877)(o,n(4262)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:s(1,n)}),i(e,t+" Iterator")}},447:(e,t,n)=>{"use strict";var r=n(6382),s=n(5247),i=n(4459),o=n(8877),a=n(1453),l=n(9226),c=n(9904),u=n(9796),h=n(9763),p=n(4262)("iterator"),d=!([].keys&&"next"in[].keys()),m="keys",f="values",g=function(){return this};e.exports=function(e,t,n,y,w,b,C){c(n,t,y);var v,S,E,k=function(e){if(!d&&e in x)return x[e];switch(e){case m:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},R=t+" Iterator",A=w==f,T=!1,x=e.prototype,D=x[p]||x["@@iterator"]||w&&x[w],M=D||k(w),P=w?A?k("entries"):M:void 0,I="Array"==t&&x.entries||D;if(I&&(E=h(I.call(new e)))!==Object.prototype&&E.next&&(u(E,R,!0),r||a(E,p)||o(E,p,g)),A&&D&&D.name!==f&&(T=!0,M=function(){return D.call(this)}),r&&!C||!d&&!T&&x[p]||o(x,p,M),l[t]=M,l[R]=g,w)if(v={values:A?M:k(f),keys:b?M:k(m),entries:P},C)for(S in v)S in x||i(x,S,v[S]);else s(s.P+s.F*(d||T),t,v);return v}},2650:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},9226:e=>{e.exports={}},6382:e=>{e.exports=!0},1436:(e,t,n)=>{var r=n(2207)("meta"),s=n(2265),i=n(1453),o=n(1404).f,a=0,l=Object.isExtensible||function(){return!0},c=!n(6136)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++a,w:{}}})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&h.NEED&&l(e)&&!i(e,r)&&u(e),e}}},5230:(e,t,n)=>{"use strict";var r=n(6639),s=n(1892),i=n(3585),o=n(430),a=n(2545),l=Object.assign;e.exports=!l||n(6136)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=s.f,h=i.f;l>c;)for(var p,d=a(arguments[c++]),m=u?r(d).concat(u(d)):r(d),f=m.length,g=0;f>g;)h.call(d,p=m[g++])&&(n[p]=d[p]);return n}:l},4335:(e,t,n)=>{var r=n(3924),s=n(3034),i=n(3884),o=n(6142)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(2386)("iframe"),r=i.length;for(t.style.display="none",n(2844).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=r(e),n=new a,a[l]=null,n[o]=e):n=c(),void 0===t?n:s(n,t)}},1404:(e,t,n)=>{var r=n(3924),s=n(1804),i=n(2232),o=Object.defineProperty;t.f=n(2179)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),s)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},3034:(e,t,n)=>{var r=n(1404),s=n(3924),i=n(6639);e.exports=n(2179)?Object.defineProperties:function(e,t){s(e);for(var n,o=i(t),a=o.length,l=0;a>l;)r.f(e,n=o[l++],t[n]);return e}},9969:(e,t,n)=>{var r=n(3585),s=n(2060),i=n(6197),o=n(2232),a=n(1453),l=n(1804),c=Object.getOwnPropertyDescriptor;t.f=n(2179)?c:function(e,t){if(e=i(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return s(!r.f.call(e,t),e[t])}},8349:(e,t,n)=>{var r=n(6197),s=n(4823).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?function(e){try{return s(e)}catch(e){return o.slice()}}(e):s(r(e))}},4823:(e,t,n)=>{var r=n(4929),s=n(3884).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},1892:(e,t)=>{t.f=Object.getOwnPropertySymbols},9763:(e,t,n)=>{var r=n(1453),s=n(430),i=n(6142)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=s(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},4929:(e,t,n)=>{var r=n(1453),s=n(6197),i=n(5112)(!1),o=n(6142)("IE_PROTO");e.exports=function(e,t){var n,a=s(e),l=0,c=[];for(n in a)n!=o&&r(a,n)&&c.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~i(c,n)||c.push(n));return c}},6639:(e,t,n)=>{var r=n(4929),s=n(3884);e.exports=Object.keys||function(e){return r(e,s)}},3585:(e,t)=>{t.f={}.propertyIsEnumerable},8395:(e,t,n)=>{var r=n(5247),s=n(7934),i=n(6136);e.exports=function(e,t){var n=(s.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",o)}},2060:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4459:(e,t,n)=>{e.exports=n(8877)},6418:(e,t,n)=>{var r=n(2265),s=n(3924),i=function(e,t){if(s(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(9004)(Function.call,n(9969).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},9796:(e,t,n)=>{var r=n(1404).f,s=n(1453),i=n(4262)("toStringTag");e.exports=function(e,t,n){e&&!s(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},6142:(e,t,n)=>{var r=n(6108)("keys"),s=n(2207);e.exports=function(e){return r[e]||(r[e]=s(e))}},6108:(e,t,n)=>{var r=n(2598),s="__core-js_shared__",i=r[s]||(r[s]={});e.exports=function(e){return i[e]||(i[e]={})}},5324:(e,t,n)=>{var r=n(5503),s=n(6240);e.exports=function(e){return function(t,n){var i,o,a=String(s(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(i=a.charCodeAt(l))<55296||i>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?e?a.charAt(l):i:e?a.slice(l,l+2):o-56320+(i-55296<<10)+65536}}},8173:(e,t,n)=>{var r=n(5503),s=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?s(e+t,0):i(e,t)}},5503:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},6197:(e,t,n)=>{var r=n(2545),s=n(6240);e.exports=function(e){return r(s(e))}},7389:(e,t,n)=>{var r=n(5503),s=Math.min;e.exports=function(e){return e>0?s(r(e),9007199254740991):0}},430:(e,t,n)=>{var r=n(6240);e.exports=function(e){return Object(r(e))}},2232:(e,t,n)=>{var r=n(2265);e.exports=function(e,t){if(!r(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!r(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!r(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!r(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},2207:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},2448:(e,t,n)=>{var r=n(2598),s=n(7934),i=n(6382),o=n(2856),a=n(1404).f;e.exports=function(e){var t=s.Symbol||(s.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:o.f(e)})}},2856:(e,t,n)=>{t.f=n(4262)},4262:(e,t,n)=>{var r=n(6108)("wks"),s=n(2207),i=n(2598).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:s)("Symbol."+e))}).store=r},5949:(e,t,n)=>{"use strict";var r=n(3704),s=n(2650),i=n(9226),o=n(6197);e.exports=n(447)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,s(1)):s(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},6726:(e,t,n)=>{var r=n(5247);r(r.S+r.F,"Object",{assign:n(5230)})},7863:(e,t,n)=>{var r=n(5247);r(r.S,"Object",{create:n(4335)})},8016:(e,t,n)=>{var r=n(5247);r(r.S+r.F*!n(2179),"Object",{defineProperty:n(1404).f})},6130:(e,t,n)=>{var r=n(6197),s=n(9969).f;n(8395)("getOwnPropertyDescriptor",(function(){return function(e,t){return s(r(e),t)}}))},2152:(e,t,n)=>{var r=n(430),s=n(9763);n(8395)("getPrototypeOf",(function(){return function(e){return s(r(e))}}))},1607:(e,t,n)=>{var r=n(430),s=n(6639);n(8395)("keys",(function(){return function(e){return s(r(e))}}))},3428:(e,t,n)=>{var r=n(5247);r(r.S,"Object",{setPrototypeOf:n(6418).set})},3258:()=>{},5887:(e,t,n)=>{"use strict";var r=n(5324)(!0);n(447)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},4002:(e,t,n)=>{"use strict";var r=n(2598),s=n(1453),i=n(2179),o=n(5247),a=n(4459),l=n(1436).KEY,c=n(6136),u=n(6108),h=n(9796),p=n(2207),d=n(4262),m=n(2856),f=n(2448),g=n(1329),y=n(8493),w=n(3924),b=n(6197),C=n(2232),v=n(2060),S=n(4335),E=n(8349),k=n(9969),R=n(1404),A=n(6639),T=k.f,x=R.f,D=E.f,M=r.Symbol,P=r.JSON,I=P&&P.stringify,_="prototype",F=d("_hidden"),N=d("toPrimitive"),O={}.propertyIsEnumerable,L=u("symbol-registry"),B=u("symbols"),H=u("op-symbols"),U=Object[_],Z="function"==typeof M,$=r.QObject,W=!$||!$[_]||!$[_].findChild,V=i&&c((function(){return 7!=S(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=T(U,t);r&&delete U[t],x(e,t,n),r&&e!==U&&x(U,t,r)}:x,q=function(e){var t=B[e]=S(M[_]);return t._k=e,t},G=Z&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},z=function(e,t,n){return e===U&&z(H,t,n),w(e),t=C(t,!0),w(n),s(B,t)?(n.enumerable?(s(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:v(0,!1)})):(s(e,F)||x(e,F,v(1,{})),e[F][t]=!0),V(e,t,n)):x(e,t,n)},j=function(e,t){w(e);for(var n,r=g(t=b(t)),s=0,i=r.length;i>s;)z(e,n=r[s++],t[n]);return e},K=function(e){var t=O.call(this,e=C(e,!0));return!(this===U&&s(B,e)&&!s(H,e))&&(!(t||!s(this,e)||!s(B,e)||s(this,F)&&this[F][e])||t)},Y=function(e,t){if(e=b(e),t=C(t,!0),e!==U||!s(B,t)||s(H,t)){var n=T(e,t);return!n||!s(B,t)||s(e,F)&&e[F][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=D(b(e)),r=[],i=0;n.length>i;)s(B,t=n[i++])||t==F||t==l||r.push(t);return r},Q=function(e){for(var t,n=e===U,r=D(n?H:b(e)),i=[],o=0;r.length>o;)!s(B,t=r[o++])||n&&!s(U,t)||i.push(B[t]);return i};Z||(a((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(H,n),s(this,F)&&s(this[F],e)&&(this[F][e]=!1),V(this,e,v(1,n))};return i&&W&&V(U,e,{configurable:!0,set:t}),q(e)})[_],"toString",(function(){return this._k})),k.f=Y,R.f=z,n(4823).f=E.f=X,n(3585).f=K,n(1892).f=Q,i&&!n(6382)&&a(U,"propertyIsEnumerable",K,!0),m.f=function(e){return q(d(e))}),o(o.G+o.W+o.F*!Z,{Symbol:M});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;J.length>ee;)d(J[ee++]);for(var te=A(d.store),ne=0;te.length>ne;)f(te[ne++]);o(o.S+o.F*!Z,"Symbol",{for:function(e){return s(L,e+="")?L[e]:L[e]=M(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!Z,"Object",{create:function(e,t){return void 0===t?S(e):j(S(e),t)},defineProperty:z,defineProperties:j,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),P&&o(o.S+o.F*(!Z||c((function(){var e=M();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){if(void 0!==e&&!G(e)){for(var t,n,r=[e],s=1;arguments.length>s;)r.push(arguments[s++]);return"function"==typeof(t=r[1])&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,I.apply(P,r)}}}),M[_][N]||n(8877)(M[_],N,M[_].valueOf),h(M,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},3940:(e,t,n)=>{n(2448)("asyncIterator")},2580:(e,t,n)=>{n(2448)("observable")},3394:(e,t,n)=>{n(5949);for(var r=n(2598),s=n(8877),i=n(9226),o=n(4262)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=r[c],h=u&&u.prototype;h&&!h[o]&&s(h,o,c),i[c]=i.Array}},1785:(e,t,n)=>{"use strict";const r=n(5317),s=n(1926),i=n(7492);function o(e,t,n){const o=s(e,t,n),a=r.spawn(o.command,o.args,o.options);return i.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,n){const o=s(e,t,n),a=r.spawnSync(o.command,o.args,o.options);return a.error=a.error||i.verifyENOENTSync(a.status,o),a},e.exports._parse=s,e.exports._enoent=i},7492:e=>{"use strict";function t(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return 1!==e||n.file?null:t(n.original,"spawn")}e.exports={hookChildProcess:function(e,t){const r=e.emit;e.emit=function(s,i){if("exit"===s){const s=n(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return 1!==e||n.file?null:t(n.original,"spawnSync")},notFoundError:t}},1926:(e,t,n)=>{"use strict";const r=n(6928),s=n(2949),i=n(9165),o=n(2091),a=n(4406),l=n(3657),c=/\.(?:com|exe)$/i,u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,h=s((()=>l.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0)))||!1;e.exports=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const s={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?function(e){if(h)return e;const t=[e.command].concat(e.args).join(" ");return e.command="string"==typeof e.options.shell?e.options.shell:process.env.comspec||"cmd.exe",e.args=["/d","/s","/c",`"${t}"`],e.options.windowsVerbatimArguments=!0,e}(s):function(e){const t=function(e){e.file=i(e);const t=e.file&&a(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),n=!c.test(t);if(e.options.forceShell||n){const n=u.test(t);e.command=r.normalize(e.command),e.command=o.command(e.command),e.args=e.args.map((e=>o.argument(e,n)));const s=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${s}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}(s)}},2091:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,n){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(t,"^$1"),n&&(e=e.replace(t,"^$1")),e}},4406:(e,t,n)=>{"use strict";const r=n(9896),s=n(4443);e.exports=function(e){let t,n;Buffer.alloc?t=Buffer.alloc(150):(t=new Buffer(150),t.fill(0));try{n=r.openSync(e,"r"),r.readSync(n,t,0,150,0),r.closeSync(n)}catch(e){}return s(t.toString())}},9165:(e,t,n)=>{"use strict";const r=n(6928),s=n(5511),i=n(200)();function o(e,t){const n=process.cwd(),o=null!=e.options.cwd,a=o&&void 0!==process.chdir;if(a)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=s.sync(e.command,{path:(e.options.env||process.env)[i],pathExt:t?r.delimiter:void 0})}catch(e){}finally{a&&process.chdir(n)}return l&&(l=r.resolve(o?e.options.cwd:"",l)),l}e.exports=function(e){return o(e)||o(e,!0)}},7646:(e,t,n)=>{var r=Array.prototype.slice,s=n(3160),i=n(3691),o=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),o(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var h=s(e),p=s(t)}catch(e){return!1}if(h.length!=p.length)return!1;for(h.sort(),p.sort(),c=h.length-1;c>=0;c--)if(h[c]!=p[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!o(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},3691:(e,t)=>{var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function s(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:s).supported=r,t.unsupported=s},3160:(e,t)=>{function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},3575:(e,t,n)=>{"use strict";t.ce=t.zP=t.xx=t.tC=t.Ym=void 0;var r=n(2909);Object.defineProperty(t,"Ym",{enumerable:!0,get:function(){return r.getNotificationsPermission}}),Object.defineProperty(t,"tC",{enumerable:!0,get:function(){return r.requestNotificationsPermission}});var s=n(8026);Object.defineProperty(t,"xx",{enumerable:!0,get:function(){return s.supportsNotifications}}),Object.defineProperty(t,"zP",{enumerable:!0,get:function(){return s.supportsNotificationsPermissionRequest}});var i=n(1196);Object.defineProperty(t,"ce",{enumerable:!0,get:function(){return i.getNotificationSettingsUrl}});n(6646)},2909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closeNotification=t.showNotification=t.requestNotificationsPermission=t.getNotificationsPermission=t.terminateNotifications=t.initializeNotifications=void 0;const r=n(8026),s=n(6646),i=n(9604);let o;function a(){return void 0!==o||(o=(0,r.supportsNotifications)()?n(2385):null),o}t.initializeNotifications=e=>a()?.initializeNotifications(s.notificationCallback,e),t.terminateNotifications=()=>a()?.terminateNotifications(),t.getNotificationsPermission=()=>a()?.getNotificationsPermission(),t.requestNotificationsPermission=()=>a()?.requestNotificationsPermission(),t.showNotification=async(...e)=>{const t=(0,i.v4)();try{await(a()?.showNotification(t,...e))}catch(e){return null}return t},t.closeNotification=(...e)=>a()?.closeNotification(...e)},6646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onNotificationEvent=t.notificationCallback=void 0;let n=null;t.notificationCallback=(...e)=>n?.(...e),t.onNotificationEvent=e=>{n=e}},1196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNotificationSettingsUrl=function(){return(0,r.supportsNotifications)()?"ms-settings:notifications":null};const r=n(8026)},8026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsNotifications=function(){return function(){const e=r.release().split("."),t=parseInt(e[0],10),n=e.length>=3?parseInt(e[2],10):15063;return t>10||10===t&&n>=15063}()},t.supportsNotificationsPermissionRequest=function(){return!1};const r=n(9671).__importStar(n(857))},9604:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>M,parse:()=>g,stringify:()=>u,v1:()=>f,v3:()=>R,v4:()=>A,v5:()=>D,validate:()=>a,version:()=>P});var s=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(s)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=function(e){return"string"==typeof e&&o.test(e)};for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n};var h,p,d=0,m=0;const f=function(e,t,n){var r=t&&n||0,s=t||new Array(16),o=(e=e||{}).node||h,a=void 0!==e.clockseq?e.clockseq:p;if(null==o||null==a){var l=e.random||(e.rng||i)();null==o&&(o=h=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==a&&(a=p=16383&(l[6]<<8|l[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:m+1,g=c-d+(f-m)/1e4;if(g<0&&void 0===e.clockseq&&(a=a+1&16383),(g<0||c>d)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=c,m=f,p=a;var y=(1e4*(268435455&(c+=122192928e5))+f)%4294967296;s[r++]=y>>>24&255,s[r++]=y>>>16&255,s[r++]=y>>>8&255,s[r++]=255&y;var w=c/4294967296*1e4&268435455;s[r++]=w>>>8&255,s[r++]=255&w,s[r++]=w>>>24&15|16,s[r++]=w>>>16&255,s[r++]=a>>>8|128,s[r++]=255&a;for(var b=0;b<6;++b)s[r+b]=o[b];return t||u(s)},g=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function y(e,t,n){function r(e,r,s,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(r),o.set(e,r.length),(o=n(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,s){i=i||0;for(var a=0;a<16;++a)s[i+a]=o[a];return s}return u(o)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function w(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function C(e,t,n,r,s,i){return b((o=b(b(t,e),b(r,i)))<<(a=s)|o>>>32-a,n);var o,a}function v(e,t,n,r,s,i,o){return C(t&n|~t&r,e,t,s,i,o)}function S(e,t,n,r,s,i,o){return C(t&r|n&~r,e,t,s,i,o)}function E(e,t,n,r,s,i,o){return C(t^n^r,e,t,s,i,o)}function k(e,t,n,r,s,i,o){return C(n^(t|~r),e,t,s,i,o)}const R=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",s=0;s<n;s+=8){var i=e[s>>5]>>>s%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[w(t)-1]=t;for(var n=1732584193,r=-271733879,s=-1732584194,i=271733878,o=0;o<e.length;o+=16){var a=n,l=r,c=s,u=i;n=v(n,r,s,i,e[o],7,-680876936),i=v(i,n,r,s,e[o+1],12,-389564586),s=v(s,i,n,r,e[o+2],17,606105819),r=v(r,s,i,n,e[o+3],22,-1044525330),n=v(n,r,s,i,e[o+4],7,-176418897),i=v(i,n,r,s,e[o+5],12,1200080426),s=v(s,i,n,r,e[o+6],17,-1473231341),r=v(r,s,i,n,e[o+7],22,-45705983),n=v(n,r,s,i,e[o+8],7,1770035416),i=v(i,n,r,s,e[o+9],12,-1958414417),s=v(s,i,n,r,e[o+10],17,-42063),r=v(r,s,i,n,e[o+11],22,-1990404162),n=v(n,r,s,i,e[o+12],7,1804603682),i=v(i,n,r,s,e[o+13],12,-40341101),s=v(s,i,n,r,e[o+14],17,-1502002290),n=S(n,r=v(r,s,i,n,e[o+15],22,1236535329),s,i,e[o+1],5,-165796510),i=S(i,n,r,s,e[o+6],9,-1069501632),s=S(s,i,n,r,e[o+11],14,643717713),r=S(r,s,i,n,e[o],20,-373897302),n=S(n,r,s,i,e[o+5],5,-701558691),i=S(i,n,r,s,e[o+10],9,38016083),s=S(s,i,n,r,e[o+15],14,-660478335),r=S(r,s,i,n,e[o+4],20,-405537848),n=S(n,r,s,i,e[o+9],5,568446438),i=S(i,n,r,s,e[o+14],9,-1019803690),s=S(s,i,n,r,e[o+3],14,-187363961),r=S(r,s,i,n,e[o+8],20,1163531501),n=S(n,r,s,i,e[o+13],5,-1444681467),i=S(i,n,r,s,e[o+2],9,-51403784),s=S(s,i,n,r,e[o+7],14,1735328473),n=E(n,r=S(r,s,i,n,e[o+12],20,-1926607734),s,i,e[o+5],4,-378558),i=E(i,n,r,s,e[o+8],11,-2022574463),s=E(s,i,n,r,e[o+11],16,1839030562),r=E(r,s,i,n,e[o+14],23,-35309556),n=E(n,r,s,i,e[o+1],4,-1530992060),i=E(i,n,r,s,e[o+4],11,1272893353),s=E(s,i,n,r,e[o+7],16,-155497632),r=E(r,s,i,n,e[o+10],23,-1094730640),n=E(n,r,s,i,e[o+13],4,681279174),i=E(i,n,r,s,e[o],11,-358537222),s=E(s,i,n,r,e[o+3],16,-722521979),r=E(r,s,i,n,e[o+6],23,76029189),n=E(n,r,s,i,e[o+9],4,-640364487),i=E(i,n,r,s,e[o+12],11,-421815835),s=E(s,i,n,r,e[o+15],16,530742520),n=k(n,r=E(r,s,i,n,e[o+2],23,-995338651),s,i,e[o],6,-198630844),i=k(i,n,r,s,e[o+7],10,1126891415),s=k(s,i,n,r,e[o+14],15,-1416354905),r=k(r,s,i,n,e[o+5],21,-57434055),n=k(n,r,s,i,e[o+12],6,1700485571),i=k(i,n,r,s,e[o+3],10,-1894986606),s=k(s,i,n,r,e[o+10],15,-1051523),r=k(r,s,i,n,e[o+1],21,-2054922799),n=k(n,r,s,i,e[o+8],6,1873313359),i=k(i,n,r,s,e[o+15],10,-30611744),s=k(s,i,n,r,e[o+6],15,-1560198380),r=k(r,s,i,n,e[o+13],21,1309151649),n=k(n,r,s,i,e[o+4],6,-145523070),i=k(i,n,r,s,e[o+11],10,-1120210379),s=k(s,i,n,r,e[o+2],15,718787259),r=k(r,s,i,n,e[o+9],21,-343485551),n=b(n,a),r=b(r,l),s=b(s,c),i=b(i,u)}return[n,r,s,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(w(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),A=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=r[s];return t}return u(r)};function T(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}const D=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var s=0;s<r.length;++s)e.push(r.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,o=Math.ceil(i/16),a=new Array(o),l=0;l<o;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];a[l]=c}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<o;++h){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[h][d];for(var m=16;m<80;++m)p[m]=x(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);for(var f=n[0],g=n[1],y=n[2],w=n[3],b=n[4],C=0;C<80;++C){var v=Math.floor(C/20),S=x(f,5)+T(v,g,y,w)+b+t[v]+p[C]>>>0;b=w,w=y,y=x(g,30)>>>0,g=f,f=S}n[0]=n[0]+f>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),M="00000000-0000-0000-0000-000000000000",P=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},4465:(e,t,n)=>{const r=n(6928);function s(){return"desktop-askpass-trampoline.exe"}function i(){return"desktop-credential-helper-trampoline.exe"}function o(){return"ssh-wrapper.exe"}e.exports={getDesktopAskpassTrampolinePath:function(){return r.join(__dirname,"build","Release","desktop-askpass-trampoline.exe")},getDesktopAskpassTrampolineFilename:s,getDesktopCredentialHelperTrampolinePath:function(){return r.join(__dirname,"build","Release","desktop-credential-helper-trampoline.exe")},getDesktopCredentialHelperTrampolineFilename:i,getSSHWrapperPath:function(){return r.join(__dirname,"build","Release","ssh-wrapper.exe")},getSSHWrapperFilename:o}},2027:(e,t,n)=>{"use strict";var r=n(1362);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,s.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var s=r(n(6878));e.exports=t.default},6878:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},9964:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},2682:(e,t,n)=>{"use strict";var r=n(1362);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var s,i,o,a,l,c,u,h,p,d,m,f=r(n(1889)),g="transform";if(t.transform=g,t.animationEnd=o,t.transitionEnd=i,t.transitionDelay=u,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=m,t.animationTiming=d,t.animationDuration=p,t.animationName=h,f.default){var y=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},s=Object.keys(r),i="",o=0;o<s.length;o++){var a=s[o];if(a+"TransitionProperty"in n){i="-"+a.toLowerCase(),e=r[a]("TransitionEnd"),t=r[a]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();s=y.prefix,t.transitionEnd=i=y.transitionEnd,t.animationEnd=o=y.animationEnd,t.transform=g=s+"-"+g,t.transitionProperty=a=s+"-transition-property",t.transitionDuration=l=s+"-transition-duration",t.transitionDelay=u=s+"-transition-delay",t.transitionTiming=c=s+"-transition-timing-function",t.animationName=h=s+"-animation-name",t.animationDuration=p=s+"-animation-duration",t.animationTiming=d=s+"-animation-delay",t.animationDelay=m=s+"-animation-timing-function"}var w={transform:g,end:i,property:a,timing:c,delay:u,duration:l};t.default=w},1889:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},7922:(e,t,n)=>{"use strict";var r=n(1362);t.__esModule=!0,t.default=void 0;var s,i=r(n(1889)),o="clearTimeout",a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return o=l(e,"cancel"),a=function(e){return window[t](e)}}));var c=(new Date).getTime();(s=function(e){return a(e)}).cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)};var u=s;t.default=u,e.exports=t.default},4283:(e,t,n)=>{"use strict";var r=n(1362);t.__esModule=!0,t.default=function(e){if((!s&&0!==s||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),s=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return s};var s,i=r(n(1889));e.exports=t.default},9986:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnvMap=void 0;const n=e=>e.toUpperCase(),r=(e,t,r)=>{const s=e.get(n(t))?.[0];e.set(n(t),[s??t,r])};class s{map=new Map;get size(){return this.map.size}constructor(e){if(e)for(const[t,n]of e)r(this.map,t,n)}[Symbol.iterator](){return this.entries()}get[Symbol.toStringTag](){return"EnvMap"}entries(){return this.map.values()}*keys(){for(const[e]of this.map.values())yield e}*values(){for(const[,e]of this.map.values())yield e}get(e){return this.map.get(n(e))?.[1]}set(e,t){return r(this.map,e,t),this}has(e){return this.map.has(n(e))}clear(){this.map.clear()}forEach(e,t){this.map.forEach((([n,r])=>e.call(t,r,n,this)))}delete(e){return this.map.delete(n(e))}}t.EnvMap=s},8971:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ExecError=t.GitErrorRegexes=t.GitError=void 0,function(e){e[e.BadConfigValue=0]="BadConfigValue",e[e.SSHKeyAuditUnverified=1]="SSHKeyAuditUnverified",e[e.SSHAuthenticationFailed=2]="SSHAuthenticationFailed",e[e.SSHPermissionDenied=3]="SSHPermissionDenied",e[e.HTTPSAuthenticationFailed=4]="HTTPSAuthenticationFailed",e[e.RemoteDisconnection=5]="RemoteDisconnection",e[e.HostDown=6]="HostDown",e[e.RebaseConflicts=7]="RebaseConflicts",e[e.MergeConflicts=8]="MergeConflicts",e[e.HTTPSRepositoryNotFound=9]="HTTPSRepositoryNotFound",e[e.SSHRepositoryNotFound=10]="SSHRepositoryNotFound",e[e.PushNotFastForward=11]="PushNotFastForward",e[e.BranchDeletionFailed=12]="BranchDeletionFailed",e[e.DefaultBranchDeletionFailed=13]="DefaultBranchDeletionFailed",e[e.RevertConflicts=14]="RevertConflicts",e[e.EmptyRebasePatch=15]="EmptyRebasePatch",e[e.NoMatchingRemoteBranch=16]="NoMatchingRemoteBranch",e[e.NoExistingRemoteBranch=17]="NoExistingRemoteBranch",e[e.NothingToCommit=18]="NothingToCommit",e[e.NoSubmoduleMapping=19]="NoSubmoduleMapping",e[e.SubmoduleRepositoryDoesNotExist=20]="SubmoduleRepositoryDoesNotExist",e[e.InvalidSubmoduleSHA=21]="InvalidSubmoduleSHA",e[e.LocalPermissionDenied=22]="LocalPermissionDenied",e[e.InvalidMerge=23]="InvalidMerge",e[e.InvalidRebase=24]="InvalidRebase",e[e.NonFastForwardMergeIntoEmptyHead=25]="NonFastForwardMergeIntoEmptyHead",e[e.PatchDoesNotApply=26]="PatchDoesNotApply",e[e.BranchAlreadyExists=27]="BranchAlreadyExists",e[e.BadRevision=28]="BadRevision",e[e.NotAGitRepository=29]="NotAGitRepository",e[e.CannotMergeUnrelatedHistories=30]="CannotMergeUnrelatedHistories",e[e.LFSAttributeDoesNotMatch=31]="LFSAttributeDoesNotMatch",e[e.BranchRenameFailed=32]="BranchRenameFailed",e[e.PathDoesNotExist=33]="PathDoesNotExist",e[e.InvalidObjectName=34]="InvalidObjectName",e[e.OutsideRepository=35]="OutsideRepository",e[e.LockFileAlreadyExists=36]="LockFileAlreadyExists",e[e.NoMergeToAbort=37]="NoMergeToAbort",e[e.LocalChangesOverwritten=38]="LocalChangesOverwritten",e[e.UnresolvedConflicts=39]="UnresolvedConflicts",e[e.GPGFailedToSignData=40]="GPGFailedToSignData",e[e.ConflictModifyDeletedInBranch=41]="ConflictModifyDeletedInBranch",e[e.PushWithFileSizeExceedingLimit=42]="PushWithFileSizeExceedingLimit",e[e.HexBranchNameRejected=43]="HexBranchNameRejected",e[e.ForcePushRejected=44]="ForcePushRejected",e[e.InvalidRefLength=45]="InvalidRefLength",e[e.ProtectedBranchRequiresReview=46]="ProtectedBranchRequiresReview",e[e.ProtectedBranchForcePush=47]="ProtectedBranchForcePush",e[e.ProtectedBranchDeleteRejected=48]="ProtectedBranchDeleteRejected",e[e.ProtectedBranchRequiredStatus=49]="ProtectedBranchRequiredStatus",e[e.PushWithPrivateEmail=50]="PushWithPrivateEmail",e[e.ConfigLockFileAlreadyExists=51]="ConfigLockFileAlreadyExists",e[e.RemoteAlreadyExists=52]="RemoteAlreadyExists",e[e.TagAlreadyExists=53]="TagAlreadyExists",e[e.MergeWithLocalChanges=54]="MergeWithLocalChanges",e[e.RebaseWithLocalChanges=55]="RebaseWithLocalChanges",e[e.MergeCommitNoMainlineOption=56]="MergeCommitNoMainlineOption",e[e.UnsafeDirectory=57]="UnsafeDirectory",e[e.PathExistsButNotInRef=58]="PathExistsButNotInRef",e[e.PushWithSecretDetected=59]="PushWithSecretDetected"}(n||(t.GitError=n={})),t.GitErrorRegexes={"fatal: bad (?:numeric|boolean) config value '(.+)' for '(.+)'":n.BadConfigValue,"ERROR: ([\\s\\S]+?)\\n+\\[EPOLICYKEYAGE\\]\\n+fatal: Could not read from remote repository.":n.SSHKeyAuditUnverified,"fatal: Authentication failed for 'https?://":n.HTTPSAuthenticationFailed,"fatal: Authentication failed":n.SSHAuthenticationFailed,"fatal: Could not read from remote repository.":n.SSHPermissionDenied,"The requested URL returned error: 403":n.HTTPSAuthenticationFailed,"fatal: [Tt]he remote end hung up unexpectedly":n.RemoteDisconnection,"fatal: unable to access '(.+)': Failed to connect to (.+): Host is down":n.HostDown,"Cloning into '(.+)'...\nfatal: unable to access '(.+)': Could not resolve host: (.+)":n.HostDown,"Resolve all conflicts manually, mark them as resolved with":n.RebaseConflicts,"(Merge conflict|Automatic merge failed; fix conflicts and then commit the result)":n.MergeConflicts,"fatal: repository '(.+)' not found":n.HTTPSRepositoryNotFound,"ERROR: Repository not found":n.SSHRepositoryNotFound,"\\((non-fast-forward|fetch first)\\)\nerror: failed to push some refs to '.*'":n.PushNotFastForward,"error: unable to delete '(.+)': remote ref does not exist":n.BranchDeletionFailed,"\\[remote rejected\\] (.+) \\(deletion of the current branch prohibited\\)":n.DefaultBranchDeletionFailed,"error: could not revert .*\nhint: after resolving the conflicts, mark the corrected paths\nhint: with 'git add <paths>' or 'git rm <paths>'\nhint: and commit the result with 'git commit'":n.RevertConflicts,"Applying: .*\nNo changes - did you forget to use 'git add'\\?\nIf there is nothing left to stage, chances are that something else\n.*":n.EmptyRebasePatch,"There are no candidates for (rebasing|merging) among the refs that you just fetched.\nGenerally this means that you provided a wildcard refspec which had no\nmatches on the remote end.":n.NoMatchingRemoteBranch,"Your configuration specifies to merge with the ref '(.+)'\nfrom the remote, but no such ref was fetched.":n.NoExistingRemoteBranch,"nothing to commit":n.NothingToCommit,"[Nn]o submodule mapping found in .gitmodules for path '(.+)'":n.NoSubmoduleMapping,"fatal: repository '(.+)' does not exist\nfatal: clone of '.+' into submodule path '(.+)' failed":n.SubmoduleRepositoryDoesNotExist,"Fetched in submodule path '(.+)', but it did not contain (.+). Direct fetching of that commit failed.":n.InvalidSubmoduleSHA,"fatal: could not create work tree dir '(.+)'.*: Permission denied":n.LocalPermissionDenied,"merge: (.+) - not something we can merge":n.InvalidMerge,"invalid upstream (.+)":n.InvalidRebase,"fatal: Non-fast-forward commit does not make sense into an empty head":n.NonFastForwardMergeIntoEmptyHead,"error: (.+): (patch does not apply|already exists in working directory)":n.PatchDoesNotApply,"fatal: [Aa] branch named '(.+)' already exists.?":n.BranchAlreadyExists,"fatal: bad revision '(.*)'":n.BadRevision,"fatal: [Nn]ot a git repository \\(or any of the parent directories\\): (.*)":n.NotAGitRepository,"fatal: refusing to merge unrelated histories":n.CannotMergeUnrelatedHistories,"The .+ attribute should be .+ but is .+":n.LFSAttributeDoesNotMatch,"fatal: Branch rename failed":n.BranchRenameFailed,"fatal: path '(.+)' does not exist .+":n.PathDoesNotExist,"fatal: invalid object name '(.+)'.":n.InvalidObjectName,"fatal: .+: '(.+)' is outside repository":n.OutsideRepository,"Another git process seems to be running in this repository, e.g.":n.LockFileAlreadyExists,"fatal: There is no merge to abort":n.NoMergeToAbort,"error: (?:Your local changes to the following|The following untracked working tree) files would be overwritten by checkout:":n.LocalChangesOverwritten,"You must edit all merge conflicts and then\nmark them as resolved using git add|fatal: Exiting because of an unresolved conflict":n.UnresolvedConflicts,"error: gpg failed to sign the data":n.GPGFailedToSignData,"CONFLICT \\(modify/delete\\): (.+) deleted in (.+) and modified in (.+)":n.ConflictModifyDeletedInBranch,"error: GH001: ":n.PushWithFileSizeExceedingLimit,"error: GH002: ":n.HexBranchNameRejected,"error: GH003: Sorry, force-pushing to (.+) is not allowed.":n.ForcePushRejected,"error: GH005: Sorry, refs longer than (.+) bytes are not allowed":n.InvalidRefLength,"error: GH006: Protected branch update failed for (.+)\nremote: error: At least one approved review is required":n.ProtectedBranchRequiresReview,"error: GH006: Protected branch update failed for (.+)\nremote: error: Cannot force-push to a protected branch":n.ProtectedBranchForcePush,"error: GH006: Protected branch update failed for (.+)\nremote: error: Cannot delete a protected branch":n.ProtectedBranchDeleteRejected,'error: GH006: Protected branch update failed for (.+).\nremote: error: Required status check "(.+)" is expected':n.ProtectedBranchRequiredStatus,"error: GH007: Your push would publish a private email address.":n.PushWithPrivateEmail,"error: could not lock config file (.+): File exists":n.ConfigLockFileAlreadyExists,"error: remote (.+) already exists.":n.RemoteAlreadyExists,"fatal: tag '(.+)' already exists":n.TagAlreadyExists,"error: Your local changes to the following files would be overwritten by merge:\n":n.MergeWithLocalChanges,"error: cannot (pull with rebase|rebase): You have unstaged changes\\.\n\\s*error: [Pp]lease commit or stash them\\.":n.RebaseWithLocalChanges,"error: commit (.+) is a merge but no -m option was given":n.MergeCommitNoMainlineOption,"fatal: detected dubious ownership in repository at (.+)":n.UnsafeDirectory,"fatal: path '(.+)' exists on disk, but not in '(.+)'":n.PathExistsButNotInRef,"GITHUB PUSH PROTECTION[.\\s\\S]+Push cannot contain secrets":n.PushWithSecretDetected};class r extends Error{message;stdout;stderr;code;signal;killed;constructor(e,t,n,r){super(e,{cause:r}),this.message=e,this.stdout=t,this.stderr=n,r&&"object"==typeof r&&("code"in r&&"string"==typeof r.code&&(this.code=r.code),"signal"in r&&"string"==typeof r.signal&&(this.signal=r.signal),"killed"in r&&"boolean"==typeof r.killed&&(this.killed=r.killed))}}t.ExecError=r},9029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exec=void 0;const r=n(5317),s=n(2810),i=n(8971),o=n(423);t.exec=function(e,t,n){const{env:a,gitLocation:l}=(0,s.setupEnvironment)(n?.env??{}),c={cwd:t,env:a,encoding:n?.encoding??"utf8",maxBuffer:n?.maxBuffer??1/0,signal:n?.signal,killSignal:n?.killSignal};return new Promise(((t,s)=>{const a=(0,r.execFile)(l,e,c,((e,n,r)=>{if(!e||"number"==typeof e.code){const s="number"==typeof e?.code?e.code:0;return void t({stdout:n,stderr:r,exitCode:s})}let{message:o}=e;"ENOENT"===e.code&&(o="ENOENT: Git failed to execute. This typically means that the path provided doesn't exist or that the Git executable could not be found which could indicate a problem with the packaging of dugite. Verify that resolveGitBinary returns a valid path to the git binary."),s(new i.ExecError(o,n,r,e))}));(0,o.ignoreClosedInputStream)(a),void 0!==n?.stdin&&a.stdin&&(n.stdinEncoding?a.stdin.end(n.stdin,n.stdinEncoding):a.stdin.end(n.stdin)),n?.processCallback?.(a)}))}},2810:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setupEnvironment=t.resolveGitExecPath=t.resolveGitBinary=t.resolveGitDir=t.resolveEmbeddedGitDir=void 0;const o=i(n(6928)),a=n(9986);function l(){return"x64"===process.arch?"mingw64":"arm64"===process.arch?"clangarm64":"mingw32"}function c(){{const e=o.sep;return o.resolve(__dirname,"..","..","git").replace(/[\\\/]app.asar[\\\/]/,`${e}app.asar.unpacked${e}`)}}function u(e=process.env.LOCAL_GIT_DIRECTORY){return e?o.resolve(e):c()}function h(e=process.env.LOCAL_GIT_DIRECTORY){const t=u(e);return o.join(t,"cmd","git.exe")}function p(e=process.env.LOCAL_GIT_DIRECTORY,t=process.env.GIT_EXEC_PATH){if(t)return o.resolve(t);const n=u(e);return o.join(n,l(),"libexec","git-core")}t.resolveEmbeddedGitDir=c,t.resolveGitDir=u,t.resolveGitBinary=h,t.resolveGitExecPath=p,t.setupEnvironment=function(e,t=process.env){const n=new a.EnvMap([...Object.entries(t),...Object.entries(e)]),r=n.get("LOCAL_GIT_DIRECTORY"),s=h(r),i=u(r);return n.set("PATH",`${i}\\${l()}\\bin;${i}\\${l()}\\usr\\bin;${n.get("PATH")??""}`),n.set("GIT_EXEC_PATH",p(r,n.get("GIT_EXEC_PATH"))),{env:Object.fromEntries(n.entries()),gitLocation:s}}},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreClosedInputStream=void 0,t.ignoreClosedInputStream=function({stdin:e}){e&&e.on("error",(t=>{const n="code"in t&&"string"==typeof t.code?t.code:void 0;if("EPIPE"!==n&&"EOF"!==n&&"ECONNRESET"!==n&&e.listeners("error").length<=1)throw t}))}},5542:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ExecError=t.GitError=void 0,s(n(9029),t),s(n(837),t),s(n(906),t),s(n(7838),t);var i=n(8971);Object.defineProperty(t,"GitError",{enumerable:!0,get:function(){return i.GitError}}),Object.defineProperty(t,"ExecError",{enumerable:!0,get:function(){return i.ExecError}}),s(n(2810),t),s(n(423),t)},7838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBadConfigValueErrorInfo=void 0;const r=n(8971);t.parseBadConfigValueErrorInfo=function(e){const t=Object.entries(r.GitErrorRegexes).find((([e,t])=>t===r.GitError.BadConfigValue));if(void 0===t)return null;const n=e.match(t[0]);return null===n?null:n[1]&&n[2]?{key:n[2],value:n[1]}:null}},906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseError=void 0;const r=n(8971);t.parseError=e=>Object.entries(r.GitErrorRegexes).find((([t])=>e.match(t)))?.[1]??null},837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spawn=void 0;const r=n(423),s=n(2810),i=n(5317);t.spawn=function(e,t,n){const{env:o,gitLocation:a}=(0,s.setupEnvironment)(n?.env??{}),l=(0,i.spawn)(a,e,{env:o,cwd:t});return(0,r.ignoreClosedInputStream)(l),l}},7499:(e,t,n)=>{var r=n(5879),s=function(){},i=function(e,t,n){if("function"==typeof t)return i(e,null,t);t||(t={}),n=r(n||s);var o=e._writableState,a=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},h=function(){c=!1,l||n.call(e)},p=function(){l=!1,c||n.call(e)},d=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){n.call(e,t)},f=function(){return(!l||a&&a.ended)&&(!c||o&&o.ended)?void 0:n.call(e,new Error("premature close"))},g=function(){e.req.on("finish",h)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",h),e.on("abort",f),e.req?g():e.on("request",g)):c&&!o&&(e.on("end",u),e.on("close",u)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",d),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",f),function(){e.removeListener("complete",h),e.removeListener("abort",f),e.removeListener("request",g),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("exit",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",f)}};e.exports=i},4548:function(e,t,n){(function(){var t,r;t=null,e.exports=function(){function e(){var e,t,n;for(this.disposables=new Set,t=0,n=arguments.length;t<n;t++)e=arguments[t],this.add(e)}return e.prototype.disposed=!1,e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposables.forEach((function(e){return e.dispose()})),this.disposables=null)},e.prototype.add=function(){var e,t,n;if(!this.disposed)for(t=0,n=arguments.length;t<n;t+=1)r(e=arguments[t]),this.disposables.add(e)},e.prototype.remove=function(e){this.disposed||this.disposables.delete(e)},e.prototype.delete=function(e){this.remove(e)},e.prototype.clear=function(){this.disposed||this.disposables.clear()},e}(),r=function(e){if(null==t&&(t=n(8826)),!t.isDisposable(e))throw new TypeError("Arguments to CompositeDisposable.add must have a .dispose() method")}}).call(this)},8826:function(e){(function(){e.exports=function(){function e(e){this.disposalAction=e}return e.prototype.disposed=!1,e.isDisposable=function(e){return"function"==typeof(null!=e?e.dispose:void 0)},e.prototype.dispose=function(){this.disposed||(this.disposed=!0,"function"==typeof this.disposalAction&&this.disposalAction(),this.disposalAction=null)},e}()}).call(this)},5296:function(e,t,n){(function(){var t;t=n(8826),e.exports=function(){function e(){this.clear()}return e.exceptionHandlers=[],e.onEventHandlerException=function(e){return 0===this.exceptionHandlers.length&&(this.dispatch=this.exceptionHandlingDispatch),this.exceptionHandlers.push(e),new t((n=this,function(){if(n.exceptionHandlers.splice(n.exceptionHandlers.indexOf(e),1),0===n.exceptionHandlers.length)return n.dispatch=n.simpleDispatch}));var n},e.simpleDispatch=function(e,t){return e(t)},e.exceptionHandlingDispatch=function(e,t){var n,r,s,i,o,a;try{return e(t)}catch(e){for(n=e,a=[],s=0,i=(o=this.exceptionHandlers).length;s<i;s++)r=o[s],a.push(r(n));return a}},e.dispatch=e.simpleDispatch,e.prototype.disposed=!1,e.prototype.clear=function(){return this.handlersByEventName={}},e.prototype.dispose=function(){return this.handlersByEventName=null,this.disposed=!0},e.prototype.on=function(e,n,r){var s;if(null==r&&(r=!1),this.disposed)throw new Error("Emitter has been disposed");if("function"!=typeof n)throw new Error("Handler must be a function");return(s=this.handlersByEventName[e])?this.handlersByEventName[e]=r?[n].concat(s):s.concat(n):this.handlersByEventName[e]=[n],new t(this.off.bind(this,e,n))},e.prototype.once=function(e,t,n){var r,s;return null==n&&(n=!1),s=function(e){return r.dispose(),t(e)},r=this.on(e,s,n)},e.prototype.preempt=function(e,t){return this.on(e,t,!0)},e.prototype.off=function(e,t){var n,r,s,i,o;if(!this.disposed&&(s=this.handlersByEventName[e])){for(r=[],i=0,o=s.length;i<o;i++)(n=s[i])!==t&&r.push(n);r.length>0?this.handlersByEventName[e]=r:delete this.handlersByEventName[e]}},e.prototype.emit=function(e,t){var n,r,s,i,o;if(r=null!=(o=this.handlersByEventName)?o[e]:void 0)for(s=0,i=r.length;s<i;s++)n=r[s],this.constructor.dispatch(n,t)},e.prototype.emitAsync=function(e,t){var n,r,s,i;return(r=null!=(i=this.handlersByEventName)?i[e]:void 0)?(s=function(){var e,s,i;for(i=[],e=0,s=r.length;e<s;e++)n=r[e],i.push(this.constructor.dispatch(n,t));return i}.call(this),Promise.all(s).then((function(){}))):Promise.resolve()},e.prototype.getEventNames=function(){return Object.keys(this.handlersByEventName)},e.prototype.listenerCountForEventName=function(e){var t,n;return null!=(t=null!=(n=this.handlersByEventName[e])?n.length:void 0)?t:0},e.prototype.getTotalListenerCount=function(){var e,t,n,r,s;for(t=0,n=0,r=(s=Object.keys(this.handlersByEventName)).length;n<r;n++)e=s[n],t+=this.handlersByEventName[e].length;return t},e}()}).call(this)},5327:function(e,t,n){(function(){t.Emitter=n(5296),t.Disposable=n(8826),t.CompositeDisposable=n(4548)}).call(this)},9395:(e,t,n)=>{"use strict";const r=n(6928),s=n(5317),i=n(1785),o=n(2922),a=n(9746),l=n(954),c=n(6474),u=n(849),h=n(9828),p=n(9723),d=n(2302);function m(e,t,n){let s;return(n=Object.assign({extendEnv:!0,env:{}},n)).extendEnv&&(n.env=Object.assign({},process.env,n.env)),!0===n.__winShell?(delete n.__winShell,s={command:e,args:t,options:n,file:e,original:{cmd:e,args:t}}):s=i._parse(e,t,n),(n=Object.assign({maxBuffer:1e7,buffer:!0,stripEof:!0,preferLocal:!0,localDir:s.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},s.options)).stdio=d(n),n.preferLocal&&(n.env=a.env(Object.assign({},n,{cwd:n.localDir}))),n.detached&&(n.cleanup=!1),"cmd.exe"===r.basename(s.command)&&s.args.unshift("/q"),{cmd:s.command,args:s.args,opts:n,parsed:s}}function f(e,t){return t&&e.stripEof&&(t=o(t)),t}function g(e,t,n){let r="/bin/sh",s=["-c",t];return(n=Object.assign({},n)).__winShell=!0,r=process.env.comspec||"cmd.exe",s=["/s","/c",`"${t}"`],n.windowsVerbatimArguments=!0,n.shell&&(r=n.shell,delete n.shell),e(r,s,n)}function y(e,t,{encoding:n,buffer:r,maxBuffer:s}){if(!e[t])return null;let i;return i=r?n?c(e[t],{encoding:n,maxBuffer:s}):c.buffer(e[t],{maxBuffer:s}):new Promise(((n,r)=>{e[t].once("end",n).once("error",r)})),i.catch((e=>{throw e.stream=t,e.message=`${t} ${e.message}`,e}))}function w(e,t){const{stdout:n,stderr:r}=e;let s=e.error;const{code:i,signal:o}=e,{parsed:a,joinedCmd:l}=t,c=t.timedOut||!1;if(!s){let e="";Array.isArray(a.opts.stdio)?("inherit"!==a.opts.stdio[2]&&(e+=e.length>0?r:`\n${r}`),"inherit"!==a.opts.stdio[1]&&(e+=`\n${n}`)):"inherit"!==a.opts.stdio&&(e=`\n${r}${n}`),s=new Error(`Command failed: ${l}${e}`),s.code=i<0?p(i):i}return s.stdout=n,s.stderr=r,s.failed=!0,s.signal=o||null,s.cmd=l,s.timedOut=c,s}function b(e,t){let n=e;return Array.isArray(t)&&t.length>0&&(n+=" "+t.join(" ")),n}e.exports=(e,t,n)=>{const r=m(e,t,n),{encoding:o,buffer:a,maxBuffer:c}=r.opts,p=b(e,t);let d,g;try{d=s.spawn(r.cmd,r.args,r.opts)}catch(e){return Promise.reject(e)}r.opts.cleanup&&(g=h((()=>{d.kill()})));let C=null,v=!1;const S=()=>{C&&(clearTimeout(C),C=null),g&&g()};r.opts.timeout>0&&(C=setTimeout((()=>{C=null,v=!0,d.kill(r.opts.killSignal)}),r.opts.timeout));const E=new Promise((e=>{d.on("exit",((t,n)=>{S(),e({code:t,signal:n})})),d.on("error",(t=>{S(),e({error:t})})),d.stdin&&d.stdin.on("error",(t=>{S(),e({error:t})}))}));function k(){d.stdout&&d.stdout.destroy(),d.stderr&&d.stderr.destroy()}const R=()=>u(Promise.all([E,y(d,"stdout",{encoding:o,buffer:a,maxBuffer:c}),y(d,"stderr",{encoding:o,buffer:a,maxBuffer:c})]).then((e=>{const t=e[0];if(t.stdout=e[1],t.stderr=e[2],t.error||0!==t.code||null!==t.signal){const e=w(t,{joinedCmd:p,parsed:r,timedOut:v});if(e.killed=e.killed||d.killed,!r.opts.reject)return e;throw e}return{stdout:f(r.opts,t.stdout),stderr:f(r.opts,t.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:p,timedOut:!1}})),k);return i._enoent.hookChildProcess(d,r.parsed),function(e,t){null!=t&&(l(t)?t.pipe(e.stdin):e.stdin.end(t))}(d,r.opts.input),d.then=(e,t)=>R().then(e,t),d.catch=e=>R().catch(e),d},e.exports.stdout=(...t)=>e.exports(...t).then((e=>e.stdout)),e.exports.stderr=(...t)=>e.exports(...t).then((e=>e.stderr)),e.exports.shell=(t,n)=>g(e.exports,t,n),e.exports.sync=(e,t,n)=>{const r=m(e,t,n),i=b(e,t);if(l(r.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const o=s.spawnSync(r.cmd,r.args,r.opts);if(o.code=o.status,o.error||0!==o.status||null!==o.signal){const e=w(o,{joinedCmd:i,parsed:r});if(!r.opts.reject)return e;throw e}return{stdout:f(r.opts,o.stdout),stderr:f(r.opts,o.stderr),code:0,failed:!1,signal:null,cmd:i,timedOut:!1}},e.exports.shellSync=(t,n)=>g(e.exports.sync,t,n)},9723:(e,t,n)=>{"use strict";const r=n(9023);let s;if("function"==typeof r.getSystemErrorName)e.exports=r.getSystemErrorName;else{try{if(s=process.binding("uv"),"function"!=typeof s.errname)throw new TypeError("uv.errname is not a function")}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e),s=null}e.exports=e=>i(s,e)}function i(e,t){if(e)return e.errname(t);if(!(t<0))throw new Error("err >= 0");return`Unknown system error ${t}`}e.exports.__test__=i},2302:e=>{"use strict";const t=["stdin","stdout","stderr"];e.exports=e=>{if(!e)return null;if(e.stdio&&(e=>t.some((t=>Boolean(e[t]))))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e.stdio)return e.stdio;const n=e.stdio||[];if(!Array.isArray(n))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``);const r=[],s=Math.max(n.length,t.length);for(let i=0;i<s;i++){let s=null;void 0!==n[i]?s=n[i]:void 0!==e[t[i]]&&(s=e[t[i]]),r[i]=s}return r}},954:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},7580:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}function s(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)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var l=n(7252),c=n(4425),u=n(9324),h=n(4070).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(d,e);var t,n,u,h,p=(u=d,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(u);if(h){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}(this,e)});function d(e){var t,n,r,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),s=function(e){t.focusTrapElement=e},(r="setFocusTrapElement")in(n=o(t=p.call(this,e)))?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s,"undefined"!=typeof document&&(t.previouslyFocusedElement=document.activeElement),t}return t=d,(n=[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"returnFocusOnDeactivate"!==n&&(t[n]=e[n]);var r=c.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t={returnFocus:this.props.focusTrapOptions.returnFocusOnDeactivate||!1};this.focusTrap.deactivate(t)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"render",value:function(){var e=this,t=l.Children.only(this.props.children);return l.cloneElement(t,{ref:function(n){e.setFocusTrapElement(n),"function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)}})}}])&&s(t.prototype,n),d}(l.Component),d="undefined"==typeof Element?Function:Element;p.propTypes={active:u.bool,paused:u.bool,focusTrapOptions:u.shape({onActivate:u.func,onDeactivate:u.func,initialFocus:u.oneOfType([u.instanceOf(d),u.string,u.func]),fallbackFocus:u.oneOfType([u.instanceOf(d),u.string,u.func]),escapeDeactivates:u.bool,clickOutsideDeactivates:u.bool,returnFocusOnDeactivate:u.bool,setReturnFocus:u.oneOfType([u.instanceOf(d),u.string,u.func]),allowOutsideClick:u.oneOfType([u.bool,u.func]),preventScroll:u.bool}),children:u.oneOfType([u.element,u.instanceOf(d)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:h},e.exports=p},4070:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>g});let r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary"],s=r.join(","),i="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e){return!(!a(e)||function(e){return function(e){return p(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;let t=function(e,t){for(let n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}((e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),e.form);return!t||t===e}(e)}(e)||u(e)<0)}function a(e){return!(e.disabled||function(e){return p(e)&&"hidden"===e.type}(e)||function(e){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(e))}let l=r.concat("iframe").join(",");function c(e){if(!e)throw new Error("No node provided");return!1!==i.call(e,l)&&a(e)}function u(e){let t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t}function h(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function p(e){return"INPUT"===e.tagName}var d,m,f=(m=[],{activateTrap:function(e){if(m.length>0){var t=m[m.length-1];t!==e&&t.pause()}var n=m.indexOf(e);-1===n||m.splice(n,1),m.push(e)},deactivateTrap:function(e){var t=m.indexOf(e);-1!==t&&m.splice(t,1),m.length>0&&m[m.length-1].unpause()}});function g(e,t){var n=document,r="string"==typeof e?n.querySelector(e):e,a={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,...t},l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},p={activate:function(e){if(!l.active){R(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:a.onActivate;return t&&t(),g(),p}},deactivate:m,pause:function(){!l.paused&&l.active&&(l.paused=!0,w())},unpause:function(){l.paused&&l.active&&(l.paused=!1,R(),g())}};return p;function m(e){if(l.active){clearTimeout(d),w(),l.active=!1,l.paused=!1,f.deactivateTrap(p);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:a.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:a.returnFocusOnDeactivate)&&y((function(){var e;A((e=l.nodeFocusedBeforeActivation,b("setReturnFocus")||e))})),p}}function g(){if(l.active)return f.activateTrap(p),d=a.delayInitialFocus?y((function(){A(C())})):A(C()),n.addEventListener("focusin",S,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",k,{capture:!0,passive:!1}),n.addEventListener("keydown",E,{capture:!0,passive:!1}),p}function w(){if(l.active)return n.removeEventListener("focusin",S,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",k,!0),n.removeEventListener("keydown",E,!0),p}function b(e){var t=a[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function C(){var e;if(!(e=null!==b("initialFocus")?b("initialFocus"):r.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||b("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){r.contains(e.target)||(a.clickOutsideDeactivates?m({returnFocus:!c(e.target)}):a.allowOutsideClick&&("boolean"==typeof a.allowOutsideClick?a.allowOutsideClick:a.allowOutsideClick(e))||e.preventDefault())}function S(e){r.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),A(l.mostRecentlyFocusedNode||C()))}function E(e){if(!1!==a.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void m();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(R(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void A(l.lastTabbableNode);e.shiftKey||e.target!==l.lastTabbableNode||(e.preventDefault(),A(l.firstTabbableNode))}(e)}function k(e){a.clickOutsideDeactivates||r.contains(e.target)||a.allowOutsideClick&&("boolean"==typeof a.allowOutsideClick?a.allowOutsideClick:a.allowOutsideClick(e))||(e.preventDefault(),e.stopImmediatePropagation())}function R(){var e=function(e,t){let n=[],r=[];return function(e,t,n){let r=Array.prototype.slice.apply(e.querySelectorAll(s));return t&&i.call(e,s)&&r.unshift(e),r=r.filter(n),r}(e,(t=t||{}).includeContainer,o).forEach((function(e,t){let s=u(e);0===s?n.push(e):r.push({documentOrder:t,tabIndex:s,node:e})})),r.sort(h).map((e=>e.node)).concat(n)}(r);l.firstTabbableNode=e[0]||C(),l.lastTabbableNode=e[e.length-1]||C()}function A(e){e!==n.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):A(C()))}}function y(e){return setTimeout(e,0)}},6200:(e,t,n)=>{const r=n(9896),{spawn:s,spawnSync:i}=n(5317),o=(n(4434),n(9317)),a=e.exports;function l(e,t){return n=>t(0===n?null:new Error(e+" failed with exit status "+n))}a.testMode=!1,Object.assign(a,{symlink(e,t,n){o.spawnAsAdmin("cmd",["/c","mklink","/j",t,e],a.testMode,l("mklink",n))},unlink(e,t){r.stat(e,((n,r)=>{if(n)return t(n);r.isDirectory()?o.spawnAsAdmin("cmd",["/c","rmdir","/s","/q",e],a.testMode,l("rmdir",t)):o.spawnAsAdmin("cmd",["/c","del","/f","/q",e],a.testMode,l("del",t))}))},makeTree(e,t){o.spawnAsAdmin("cmd",["/c","mkdir",e],a.testMode,l("mkdir",t))},recursiveCopy(e,t,n){o.spawnAsAdmin("cmd",["/c",1265,e,t],a.testMode,l("robocopy",n))}})},185:function(e,t,n){(function(){var t,r,s,i;s=n(9331),t=n(4532),n(7919),r=function(e){return e.candidate},i=function(e,t){return t.score-e.score},e.exports=function(e,n,o){var a,l,c,u,h,p,d,m,f,g,y,w,b;for(m=[],c=o.key,h=o.maxResults,u=o.maxInners,y=o.usePathScoring,f=null!=u&&u>0?u:e.length+1,a=null!=c,d=y?t:s,w=0,b=e.length;w<b&&(l=e[w],!((g=a?l[c]:l)&&(p=d.score(g,n,o))>0)||(m.push({candidate:l,score:p}),--f));w++);return m.sort(i),e=m.map(r),null!=h&&(e=e.slice(0,h)),e}}).call(this)},4506:function(e,t,n){(function(){var t,r,s,i,o,a,l,c;s=n(185),i=n(8385),c=n(9331),a=n(4532),t=n(7919),l=null,r="win32"===("undefined"!=typeof process&&null!==process?"win32":void 0)?"\\":"/",e.exports={filter:function(e,t,n){return null==n&&(n={}),(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)?(n=o(n,t),s(e,t,n)):[]},score:function(e,t,n){return null==n&&(n={}),(null!=e?e.length:void 0)&&(null!=t?t.length:void 0)?(n=o(n,t)).usePathScoring?a.score(e,t,n):c.score(e,t,n):0},match:function(e,t,n){var r;return null==n&&(n={}),e&&t?e===t?function(){r=[];for(var t=0,n=e.length;0<=n?t<n:t>n;0<=n?t++:t--)r.push(t);return r}.apply(this):(n=o(n,t),i.match(e,t,n)):[]},wrap:function(e,t,n){return null==n&&(n={}),e&&t?(n=o(n,t),i.wrap(e,t,n)):[]},prepareQuery:function(e,t){return null==t&&(t={}),(t=o(t,e)).preparedQuery}},o=function(e,n){return null==e.allowErrors&&(e.allowErrors=!1),null==e.usePathScoring&&(e.usePathScoring=!0),null==e.useExtensionBonus&&(e.useExtensionBonus=!1),null==e.pathSeparator&&(e.pathSeparator=r),null==e.optCharRegEx&&(e.optCharRegEx=null),null==e.wrap&&(e.wrap=null),null==e.preparedQuery&&(e.preparedQuery=l&&l.query===n?l:l=new t(n,e)),e}}).call(this)},8385:function(e,t,n){(function(){var e,r,s,i,o,a,l,c,u,h;h=n(9331),s=h.isMatch,i=h.isWordStart,u=h.scoreConsecutives,c=h.scoreCharacter,l=h.scoreAcronyms,t.match=o=function(t,n,i){var o,l,c,u,h,p;return o=i.allowErrors,h=i.preparedQuery,u=i.pathSeparator,o||s(t,h.core_lw,h.core_up)?(p=t.toLowerCase(),0===(c=r(t,p,h)).length||t.indexOf(u)>-1&&(l=e(t,p,h,u),c=a(c,l)),c):[]},t.wrap=function(e,t,n){var r,s,i,a,l,c,u,h,p;if(null!=n.wrap&&(c=(p=n.wrap).tagClass,h=p.tagOpen,u=p.tagClose),null==c&&(c="highlight"),null==h&&(h='<strong class="'+c+'">'),null==u&&(u="</strong>"),e===t)return h+e+u;if(0===(i=o(e,0,n)).length)return e;for(a="",r=-1,l=0;++r<i.length;){for((s=i[r])>l&&(a+=e.substring(l,s),l=s);++r<i.length;){if(i[r]!==s+1){r--;break}s++}++s>l&&(a+=h,a+=e.substring(l,s),a+=u,l=s)}return l<=e.length-1&&(a+=e.substring(l)),a},e=function(e,t,n,s){var i,o,a;for(a=e.length-1;e[a]===s;)a--;if(-1===(i=e.lastIndexOf(s,a)))return[];for(o=n.depth;o-- >0;)if(-1===(i=e.lastIndexOf(s,i-1)))return[];return i++,a++,r(e.slice(i,a),t.slice(i,a),n,i)},a=function(e,t){var n,r,s,i,o,a,l;if(o=e.length,0===(a=t.length))return e.slice();if(0===o)return t.slice();for(s=-1,r=t[i=0],l=[];++s<o;){for(n=e[s];r<=n&&++i<a;)r<n&&l.push(r),r=t[i];l.push(n)}for(;i<a;)l.push(t[i++]);return l},r=function(e,t,n,r){var s,o,a,h,p,d,m,f,g,y,w,b,C,v,S,E,k,R,A,T,x,D;for(null==r&&(r=0),v=n.query,S=n.query_lw,g=e.length,b=v.length,s=l(e,t,v,S).score,R=new Array(b),p=new Array(b),D=new Array(g*b),C=-1,f=-1;++f<b;)R[f]=0,p[f]=0;for(m=-1;++m<g;)for(E=0,A=0,h=0,T=t[m],f=-1;++f<b;)d=0,o=0,k=A,S[f]===T&&(x=i(m,e,t),d=h>0?h:u(e,t,v,S,m,f,x),o=k+c(m,f,x,s,d)),A=R[f],h=p[f],E>A?w=2:(E=A,w=1),o>E?(E=o,w=3):d=0,R[f]=E,p[f]=d,D[++C]=E>0?w:0;for(C=(m=g-1)*b+(f=b-1),a=!0,y=[];a&&m>=0&&f>=0;)switch(D[C]){case 1:m--,C-=b;break;case 2:f--,C--;break;case 3:y.push(m+r),f--,m--,C-=b+1;break;default:a=!1}return y.reverse(),y}}).call(this)},4532:function(e,t,n){(function(){var e,r,s,i,o,a,l;l=n(9331),i=l.isMatch,e=l.computeScore,a=l.scoreSize,t.score=function(t,n,r){var s,a,l;return s=r.preparedQuery,r.allowErrors||i(t,s.core_lw,s.core_up)?(l=t.toLowerCase(),a=e(t,l,s),a=o(t,l,a,r),Math.ceil(a)):0},o=function(t,n,i,o){var l,c,u,h,p,d,m,f,g,y;if(0===i)return 0;for(g=o.preparedQuery,y=o.useExtensionBonus,f=o.pathSeparator,p=t.length-1;t[p]===f;)p--;if(m=p-(u=t.lastIndexOf(f,p)),d=1,y&&(i*=d+=s(n,g.ext,u,p,2)),-1===u)return i;for(h=g.depth;u>-1&&h-- >0;)u=t.lastIndexOf(f,u-1);return c=-1===u?i:d*e(t.slice(u+1,p+1),n.slice(u+1,p+1),g),(l=10/(20+r(t,p+1,f)))*c+(1-l)*i*a(0,2.5*m)},t.countDir=r=function(e,t,n){var r,s;if(t<1)return 0;for(r=0,s=-1;++s<t&&e[s]===n;);for(;++s<t;)if(e[s]===n)for(r++;++s<t&&e[s]===n;);return r},t.getExtension=function(e){var t;return(t=e.lastIndexOf("."))<0?"":e.substr(t+1)},s=function(e,t,n,r,i){var o,a,l,c;if(!t.length)return 0;if(!((c=e.lastIndexOf(".",r))>n))return 0;for((o=r-c)<(l=t.length)&&(l=o,o=t.length),c++,a=-1;++a<l&&e[c+a]===t[a];);return 0===a&&i>0?.9*s(e,t,n,c-2,i-1):a/o}}).call(this)},7919:function(e,t,n){(function(){var t,r,s,i,o,a,l;l=n(4532),r=l.countDir,i=l.getExtension,e.exports=function(e,n){var o,l,c;if(o=(c=null!=n?n:{}).optCharRegEx,l=c.pathSeparator,!e||!e.length)return null;this.query=e,this.query_lw=e.toLowerCase(),this.core=t(e,o),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=r(e,e.length,l),this.ext=i(this.query_lw),this.charCodes=s(this.query_lw)},o=/[ _\-:\/\\]/g,t=function(e,t){return null==t&&(t=o),e.replace(t,"")},a=function(e){var t,n,r;for(t="",n=0,r=e.length;n<r;n++)t+=e[n].toUpperCase()[0];return t},s=function(e){var t,n,r;for(r=e.length,n=-1,t=[];++n<r;)t[e.charCodeAt(n)]=!0;return t}}).call(this)},9331:function(e,t){(function(){var e,n,r,s,i,o,a,l,c,u,h,p,d,m,f,g;t.score=function(e,t,r){var s,o,a;return s=r.preparedQuery,r.allowErrors||i(e,s.core_lw,s.core_up)?(a=e.toLowerCase(),o=n(e,a,s),Math.ceil(o)):0},t.isMatch=i=function(e,t,n){var r,s,i,o,a,l,c;if(i=e.length,o=t.length,!i||o>i)return!1;for(r=-1,s=-1;++s<o;){for(a=t.charCodeAt(s),l=n.charCodeAt(s);++r<i&&(c=e.charCodeAt(r))!==a&&c!==l;);if(r===i)return!1}return!0},t.computeScore=n=function(e,t,n){var r,s,i,o,a,m,f,y,w,b,C,v,S,E,k,R,A,T,x,D,M,P,I,_;if(k=n.query,R=n.query_lw,b=e.length,S=k.length,s=(r=c(e,t,k,R)).score,r.count===S)return p(S,b,s,r.pos);if((E=t.indexOf(R))>-1)return d(e,t,k,R,E,S,b);for(D=new Array(S),a=new Array(S),_=g(S,b),v=C=Math.ceil(.75*S)+5,f=!0,w=-1;++w<S;)D[w]=0,a[w]=0;for(y=-1;++y<b;)if(!(P=t[y]).charCodeAt(0)in n.charCodes){if(f){for(w=-1;++w<S;)a[w]=0;f=!1}}else for(T=0,x=0,o=0,A=!0,f=!0,w=-1;++w<S;){if((M=D[w])>T&&(T=M),m=0,R[w]===P)if(I=l(y,e,t),m=o>0?o:h(e,t,k,R,y,w,I),(i=x+u(y,w,I,s,m))>T)T=i,v=C;else{if(A&&--v<=0)return Math.max(T,D[S-1])*_;A=!1}x=M,o=a[w],a[w]=m,D[w]=T}return(T=D[S-1])*_},t.isWordStart=l=function(e,t,n){var r,s;return 0===e||(r=t[e],s=t[e-1],o(s)||r!==n[e]&&s===n[e-1])},t.isWordEnd=a=function(e,t,n,r){var s,i;return e===r-1||(s=t[e],i=t[e+1],o(i)||s===n[e]&&i!==n[e+1])},o=function(e){return" "===e||"."===e||"-"===e||"_"===e||"/"===e||"\\"===e},f=function(e){var t;return e<20?100+(t=20-e)*t:Math.max(120-e,0)},t.scoreSize=g=function(e,t){return 150/(150+Math.abs(t-e))},p=function(e,t,n,r){return 2*e*(150*n+f(r))*g(e,t)},t.scorePattern=m=function(e,t,n,r,s){var i,o;return o=e,i=6,n===e&&(i+=2),r&&(i+=3),s&&(i+=1),e===t&&(r&&(o+=n===t?2:1),s&&(i+=1)),n+o*(o+i)},t.scoreCharacter=u=function(e,t,n,r,s){var i;return i=f(e),n?i+150*((r>s?r:s)+10):i+150*s},t.scoreConsecutives=h=function(e,t,n,r,s,i,o){var l,c,u,h,p,d,f;for(l=(u=(c=e.length)-s)<(p=(h=n.length)-i)?u:p,d=0,f=0,n[i]===e[s]&&d++;++f<l&&r[++i]===t[++s];)n[i]===e[s]&&d++;return f<l&&s--,1===f?1+2*d:m(f,h,d,o,a(s,e,t,c))},t.scoreExactMatch=d=function(e,t,n,r,s,i,o){var c,u,h,d,f;for((f=l(s,e,t))||(h=t.indexOf(r,s+1))>-1&&(f=l(h,e,t))&&(s=h),u=-1,d=0;++u<i;)n[s+u]===e[u]&&d++;return c=a(s+i-1,e,t,o),p(i,o,m(i,i,d,f,c),s)},r=new(e=function(e,t,n){this.score=e,this.pos=t,this.count=n})(0,.1,0),t.scoreAcronyms=c=function(t,n,i,a){var c,u,h,p,d,f,g,y,w,b,C;if(d=t.length,f=i.length,!(d>1&&f>1))return r;for(c=0,b=0,C=0,y=0,h=-1,p=-1;++p<f;){if(g=a[p],o(g)){if((h=n.indexOf(g,h+1))>-1){b++;continue}break}for(;++h<d;)if(g===n[h]&&l(h,t,n)){i[p]===t[h]&&y++,C+=h,c++;break}if(h===d)break}return c<2?r:(u=c===f&&s(t,n,i,c),w=m(c,f,y,!0,u),new e(w,C/c,c+b))},s=function(e,t,n,r){var s,i,o;if(s=0,(o=e.length)>12*n.length)return!1;for(i=-1;++i<o;)if(l(i,e,t)&&++s>r)return!1;return!0}}).call(this)},8795:(e,t,n)=>{"use strict";const{PassThrough:r}=n(2203);e.exports=e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:n}=e;const s="buffer"===n;let i=!1;t?i=!(n||s):n=n||"utf8",s&&(n=null);let o=0;const a=[],l=new r({objectMode:i});return n&&l.setEncoding(n),l.on("data",(e=>{a.push(e),i?o=a.length:o+=e.length})),l.getBufferedValue=()=>t?a:s?Buffer.concat(a,o):a.join(""),l.getBufferedLength=()=>o,l}},6474:(e,t,n)=>{"use strict";const r=n(4199),s=n(8795);class i extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function o(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);const{maxBuffer:n}=t;let o;return new Promise(((a,l)=>{const c=e=>{e&&(e.bufferedData=o.getBufferedValue()),l(e)};o=r(e,s(t),(e=>{e?c(e):a()})),o.on("data",(()=>{o.getBufferedLength()>n&&c(new i)}))})).then((()=>o.getBufferedValue()))}e.exports=o,e.exports.buffer=(e,t)=>o(e,Object.assign({},t,{encoding:"buffer"})),e.exports.array=(e,t)=>o(e,Object.assign({},t,{array:!0})),e.exports.MaxBufferError=i},1971:(e,t,n)=>{var r;function s(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){s(e,t||{},(function(e,t){e?r(e):n(t)}))}))}r(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}n(9896),r=n(9310),e.exports=s,s.sync=function(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},9310:(e,t,n)=>{e.exports=i,i.sync=function(e,t){return s(r.statSync(e),e,t)};var r=n(9896);function s(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r<n.length;r++){var s=n[r].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s)return!0}return!1}(t,n)}function i(e,t,n){r.stat(e,(function(r,i){n(r,!r&&s(i,e,t))}))}},741:(e,t,n)=>{var r=n(7601);function s(e,t){if(!e||e.length<=0)throw new Error(t+" is required.")}e.exports={getPassword:function(e,t){return s(e,"Service"),s(t,"Account"),r.getPassword(e,t)},setPassword:function(e,t,n){return s(e,"Service"),s(t,"Account"),s(n,"Password"),r.setPassword(e,t,n)},deletePassword:function(e,t){return s(e,"Service"),s(t,"Account"),r.deletePassword(e,t)},findPassword:function(e){return s(e,"Service"),r.findPassword(e)},findCredentials:function(e){return s(e,"Service"),r.findCredentials(e)}}},5988:(e,t,n)=>{var r=n(4118)(n(5957),"DataView");e.exports=r},5477:(e,t,n)=>{var r=n(6120),s=n(9422),i=n(9529),o=n(5557),a=n(5213);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=s,l.prototype.get=i,l.prototype.has=o,l.prototype.set=a,e.exports=l},3495:(e,t,n)=>{var r=n(4606),s=n(4552),i=n(5083),o=n(7175),a=n(751);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=s,l.prototype.get=i,l.prototype.has=o,l.prototype.set=a,e.exports=l},9927:(e,t,n)=>{var r=n(4118)(n(5957),"Map");e.exports=r},1797:(e,t,n)=>{var r=n(8488),s=n(7198),i=n(4377),o=n(4501),a=n(669);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=s,l.prototype.get=i,l.prototype.has=o,l.prototype.set=a,e.exports=l},4924:(e,t,n)=>{var r=n(4118)(n(5957),"Promise");e.exports=r},4953:(e,t,n)=>{var r=n(4118)(n(5957),"Set");e.exports=r},5107:(e,t,n)=>{var r=n(1797),s=n(3148),i=n(4795);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},537:(e,t,n)=>{var r=n(3495),s=n(3188),i=n(8594),o=n(9610),a=n(1793),l=n(6057);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=l,e.exports=c},6185:(e,t,n)=>{var r=n(5957).Symbol;e.exports=r},2604:(e,t,n)=>{var r=n(5957).Uint8Array;e.exports=r},4103:(e,t,n)=>{var r=n(4118)(n(5957),"WeakMap");e.exports=r},2609:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1521:e=>{e.exports=function(e,t,n,r){for(var s=-1,i=null==e?0:e.length;++s<i;){var o=e[s];t(r,o,n(o),e)}return r}},2194:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},8885:(e,t,n)=>{var r=n(6923);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},3529:e=>{e.exports=function(e,t,n){for(var r=-1,s=null==e?0:e.length;++r<s;)if(n(t,e[r]))return!0;return!1}},2479:(e,t,n)=>{var r=n(6408),s=n(4228),i=n(1113),o=n(7232),a=n(2945),l=n(4759),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&s(e),h=!n&&!u&&o(e),p=!n&&!u&&!h&&l(e),d=n||u||h||p,m=d?r(e.length,String):[],f=m.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||h&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,f))||m.push(g);return m}},6188:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}},4072:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},3632:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},9697:(e,t,n)=>{var r=n(6576);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2149:(e,t,n)=>{var r=n(4693);e.exports=function(e,t,n,s){return r(e,(function(e,r,i){t(s,e,n(e),i)})),s}},2360:(e,t,n)=>{var r=n(3859);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},339:(e,t,n)=>{var r=n(5107),s=n(8885),i=n(3529),o=n(6188),a=n(5837),l=n(6283);e.exports=function(e,t,n,c){var u=-1,h=s,p=!0,d=e.length,m=[],f=t.length;if(!d)return m;n&&(t=o(t,a(n))),c?(h=i,p=!1):t.length>=200&&(h=l,p=!1,t=new r(t));e:for(;++u<d;){var g=e[u],y=null==n?g:n(g);if(g=c||0!==g?g:0,p&&y==y){for(var w=f;w--;)if(t[w]===y)continue e;m.push(g)}else h(t,y,c)||m.push(g)}return m}},4693:(e,t,n)=>{var r=n(1705),s=n(8769)(r);e.exports=s},3667:e=>{e.exports=function(e,t,n,r){for(var s=e.length,i=n+(r?1:-1);r?i--:++i<s;)if(t(e[i],i,e))return i;return-1}},3688:(e,t,n)=>{var r=n(4072),s=n(6411);e.exports=function e(t,n,i,o,a){var l=-1,c=t.length;for(i||(i=s),a||(a=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,o,a):r(a,u):o||(a[a.length]=u)}return a}},5966:(e,t,n)=>{var r=n(7613)();e.exports=r},1705:(e,t,n)=>{var r=n(5966),s=n(470);e.exports=function(e,t){return e&&r(e,t,s)}},6630:(e,t,n)=>{var r=n(9249),s=n(349);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[s(t[n++])];return n&&n==i?e:void 0}},6063:(e,t,n)=>{var r=n(4072),s=n(1113);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},3296:(e,t,n)=>{var r=n(6185),s=n(491),i=n(7422),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7733:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},6923:(e,t,n)=>{var r=n(3667),s=n(271),i=n(1895);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,s,n)}},3718:(e,t,n)=>{var r=n(3296),s=n(658);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},5382:(e,t,n)=>{var r=n(6404),s=n(658);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},6404:(e,t,n)=>{var r=n(537),s=n(2447),i=n(7930),o=n(8297),a=n(5437),l=n(1113),c=n(7232),u=n(4759),h="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,g,y){var w=l(e),b=l(t),C=w?p:a(e),v=b?p:a(t),S=(C=C==h?d:C)==d,E=(v=v==h?d:v)==d,k=C==v;if(k&&c(e)){if(!c(t))return!1;w=!0,S=!1}if(k&&!S)return y||(y=new r),w||u(e)?s(e,t,n,f,g,y):i(e,t,C,n,f,g,y);if(!(1&n)){var R=S&&m.call(e,"__wrapped__"),A=E&&m.call(t,"__wrapped__");if(R||A){var T=R?e.value():e,x=A?t.value():t;return y||(y=new r),g(T,x,n,f,y)}}return!!k&&(y||(y=new r),o(e,t,n,f,g,y))}},975:(e,t,n)=>{var r=n(537),s=n(5382);e.exports=function(e,t,n,i){var o=n.length,a=o,l=!i;if(null==e)return!a;for(e=Object(e);o--;){var c=n[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var u=(c=n[o])[0],h=e[u],p=c[1];if(l&&c[2]){if(void 0===h&&!(u in e))return!1}else{var d=new r;if(i)var m=i(h,p,u,e,t,d);if(!(void 0===m?s(p,h,3,i,d):m))return!1}}return!0}},271:e=>{e.exports=function(e){return e!=e}},4336:(e,t,n)=>{var r=n(1858),s=n(3736),i=n(2341),o=n(3865),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,p=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?p:a).test(o(e))}},1005:(e,t,n)=>{var r=n(3296),s=n(1374),i=n(658),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},9861:(e,t,n)=>{var r=n(2743),s=n(2002),i=n(1464),o=n(1113),a=n(719);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?s(e[0],e[1]):r(e):a(e)}},5008:(e,t,n)=>{var r=n(1631),s=n(3130),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2743:(e,t,n)=>{var r=n(975),s=n(2867),i=n(3317);e.exports=function(e){var t=s(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},2002:(e,t,n)=>{var r=n(5382),s=n(3332),i=n(3996),o=n(194),a=n(4268),l=n(3317),c=n(349);e.exports=function(e,t){return o(e)&&a(t)?l(c(e),t):function(n){var o=s(n,e);return void 0===o&&o===t?i(n,e):r(t,o,3)}}},8589:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},3935:(e,t,n)=>{var r=n(6630);e.exports=function(e){return function(t){return r(t,e)}}},7134:(e,t,n)=>{var r=n(1464),s=n(621),i=n(2585);e.exports=function(e,t){return i(s(e,t,r),e+"")}},653:(e,t,n)=>{var r=n(1630),s=n(3859),i=n(1464),o=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},6408:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2484:(e,t,n)=>{var r=n(6188);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},4860:(e,t,n)=>{var r=n(6185),s=n(6188),i=n(1113),o=n(2162),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return s(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},9704:(e,t,n)=>{var r=n(5184),s=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(s,""):e}},5837:e=>{e.exports=function(e){return function(t){return e(t)}}},2349:(e,t,n)=>{var r=n(5107),s=n(8885),i=n(3529),o=n(6283),a=n(7229),l=n(6303);e.exports=function(e,t,n){var c=-1,u=s,h=e.length,p=!0,d=[],m=d;if(n)p=!1,u=i;else if(h>=200){var f=t?null:a(e);if(f)return l(f);p=!1,u=o,m=new r}else m=t?[]:d;e:for(;++c<h;){var g=e[c],y=t?t(g):g;if(g=n||0!==g?g:0,p&&y==y){for(var w=m.length;w--;)if(m[w]===y)continue e;t&&m.push(y),d.push(g)}else u(m,y,n)||(m!==d&&m.push(y),d.push(g))}return d}},6607:(e,t,n)=>{var r=n(339),s=n(3688),i=n(2349);e.exports=function(e,t,n){var o=e.length;if(o<2)return o?i(e[0]):[];for(var a=-1,l=Array(o);++a<o;)for(var c=e[a],u=-1;++u<o;)u!=a&&(l[a]=r(l[a]||c,e[u],t,n));return i(s(l,1),t,n)}},6283:e=>{e.exports=function(e,t){return e.has(t)}},9249:(e,t,n)=>{var r=n(1113),s=n(194),i=n(2290),o=n(2350);e.exports=function(e,t){return r(e)?e:s(e,t)?[e]:i(o(e))}},6401:(e,t,n)=>{var r=n(5957)["__core-js_shared__"];e.exports=r},5400:(e,t,n)=>{var r=n(1521),s=n(2149),i=n(9861),o=n(1113);e.exports=function(e,t){return function(n,a){var l=o(n)?r:s,c=t?t():{};return l(n,e,i(a,2),c)}}},8769:(e,t,n)=>{var r=n(7910);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!r(n))return e(n,s);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==s(a[o],o,a););return n}}},7613:e=>{e.exports=function(e){return function(t,n,r){for(var s=-1,i=Object(t),o=r(t),a=o.length;a--;){var l=o[e?a:++s];if(!1===n(i[l],l,i))break}return t}}},7229:(e,t,n)=>{var r=n(4953),s=n(294),i=n(6303),o=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:s;e.exports=o},2795:(e,t,n)=>{var r=n(2484),s=n(5437),i=n(1381),o=n(9575);e.exports=function(e){return function(t){var n=s(t);return"[object Map]"==n?i(t):"[object Set]"==n?o(t):r(t,e(t))}}},3859:(e,t,n)=>{var r=n(4118),s=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=s},2447:(e,t,n)=>{var r=n(5107),s=n(3632),i=n(6283);e.exports=function(e,t,n,o,a,l){var c=1&n,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var p=l.get(e),d=l.get(t);if(p&&d)return p==t&&d==e;var m=-1,f=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var y=e[m],w=t[m];if(o)var b=c?o(w,y,m,t,e,l):o(y,w,m,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(g){if(!s(t,(function(e,t){if(!i(g,t)&&(y===e||a(y,e,n,o,l)))return g.push(t)}))){f=!1;break}}else if(y!==w&&!a(y,w,n,o,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},7930:(e,t,n)=>{var r=n(6185),s=n(2604),i=n(6576),o=n(2447),a=n(1381),l=n(6303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,h,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=a;case"[object Set]":var m=1&r;if(d||(d=l),e.size!=t.size&&!m)return!1;var f=p.get(e);if(f)return f==t;r|=2,p.set(e,t);var g=o(d(e),d(t),r,c,h,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8297:(e,t,n)=>{var r=n(9434),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var h=u;h--;){var p=c[h];if(!(l?p in t:s.call(t,p)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var g=l;++h<u;){var y=e[p=c[h]],w=t[p];if(i)var b=l?i(w,y,p,t,e,a):i(y,w,p,e,t,a);if(!(void 0===b?y===w||o(y,w,n,i,a):b)){f=!1;break}g||(g="constructor"==p)}if(f&&!g){var C=e.constructor,v=t.constructor;C==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof v&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}},5760:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},9434:(e,t,n)=>{var r=n(6063),s=n(5952),i=n(470);e.exports=function(e){return r(e,i,s)}},8179:(e,t,n)=>{var r=n(9781);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2867:(e,t,n)=>{var r=n(4268),s=n(470);e.exports=function(e){for(var t=s(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,r(o)]}return t}},4118:(e,t,n)=>{var r=n(4336),s=n(7856);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},491:(e,t,n)=>{var r=n(6185),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},5952:(e,t,n)=>{var r=n(2194),s=n(1577),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},5437:(e,t,n)=>{var r=n(5988),s=n(9927),i=n(4924),o=n(4953),a=n(4103),l=n(3296),c=n(3865),u="[object Map]",h="[object Promise]",p="[object Set]",d="[object WeakMap]",m="[object DataView]",f=c(r),g=c(s),y=c(i),w=c(o),b=c(a),C=l;(r&&C(new r(new ArrayBuffer(1)))!=m||s&&C(new s)!=u||i&&C(i.resolve())!=h||o&&C(new o)!=p||a&&C(new a)!=d)&&(C=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return m;case g:return u;case y:return h;case w:return p;case b:return d}return t}),e.exports=C},7856:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},8614:(e,t,n)=>{var r=n(9249),s=n(4228),i=n(1113),o=n(2945),a=n(1374),l=n(349);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,h=!1;++c<u;){var p=l(t[c]);if(!(h=null!=e&&n(e,p)))break;e=e[p]}return h||++c!=u?h:!!(u=null==e?0:e.length)&&a(u)&&o(p,u)&&(i(e)||s(e))}},6120:(e,t,n)=>{var r=n(7978);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9422:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9529:(e,t,n)=>{var r=n(7978),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},5557:(e,t,n)=>{var r=n(7978),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5213:(e,t,n)=>{var r=n(7978);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6411:(e,t,n)=>{var r=n(6185),s=n(4228),i=n(1113),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||s(e)||!!(o&&e&&e[o])}},2945:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},194:(e,t,n)=>{var r=n(1113),s=n(2162),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!s(e))||o.test(e)||!i.test(e)||null!=t&&e in Object(t)}},9781:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3736:(e,t,n)=>{var r,s=n(6401),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},1631:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},4268:(e,t,n)=>{var r=n(2341);e.exports=function(e){return e==e&&!r(e)}},4606:e=>{e.exports=function(){this.__data__=[],this.size=0}},4552:(e,t,n)=>{var r=n(9697),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))}},5083:(e,t,n)=>{var r=n(9697);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7175:(e,t,n)=>{var r=n(9697);e.exports=function(e){return r(this.__data__,e)>-1}},751:(e,t,n)=>{var r=n(9697);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},8488:(e,t,n)=>{var r=n(5477),s=n(3495),i=n(9927);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},7198:(e,t,n)=>{var r=n(8179);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},4377:(e,t,n)=>{var r=n(8179);e.exports=function(e){return r(this,e).get(e)}},4501:(e,t,n)=>{var r=n(8179);e.exports=function(e){return r(this,e).has(e)}},669:(e,t,n)=>{var r=n(8179);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},1381:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},3317:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},9992:(e,t,n)=>{var r=n(5840);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},7978:(e,t,n)=>{var r=n(4118)(Object,"create");e.exports=r},3130:(e,t,n)=>{var r=n(2791)(Object.keys,Object);e.exports=r},9841:(e,t,n)=>{e=n.nmd(e);var r=n(5760),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7422:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2791:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},621:(e,t,n)=>{var r=n(2609),s=Math.max;e.exports=function(e,t,n){return t=s(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=s(i.length-t,0),l=Array(a);++o<a;)l[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=n(l),r(e,this,c)}}},5957:(e,t,n)=>{var r=n(5760),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},3148:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},4795:e=>{e.exports=function(e){return this.__data__.has(e)}},6303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},9575:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}},2585:(e,t,n)=>{var r=n(653),s=n(3707)(r);e.exports=s},3707:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var s=t(),i=16-(s-r);if(r=s,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},3188:(e,t,n)=>{var r=n(3495);e.exports=function(){this.__data__=new r,this.size=0}},8594:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},9610:e=>{e.exports=function(e){return this.__data__.get(e)}},1793:e=>{e.exports=function(e){return this.__data__.has(e)}},6057:(e,t,n)=>{var r=n(3495),s=n(9927),i=n(1797);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},1895:e=>{e.exports=function(e,t,n){for(var r=n-1,s=e.length;++r<s;)if(e[r]===t)return r;return-1}},2290:(e,t,n)=>{var r=n(9992),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,(function(e,n,r,s){t.push(r?s.replace(i,"$1"):n||e)})),t}));e.exports=o},349:(e,t,n)=>{var r=n(2162);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},3865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5184:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},1630:e=>{e.exports=function(e){return function(){return e}}},9669:(e,t,n)=>{var r=n(2341),s=n(8196),i=n(9910),o=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,h,p,d,m=0,f=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=l,r=c;return l=c=void 0,m=t,h=e.apply(r,n)}function b(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-m>=u}function C(){var e=s();if(b(e))return v(e);p=setTimeout(C,function(e){var n=t-(e-d);return g?a(n,u-(e-m)):n}(e))}function v(e){return p=void 0,y&&l?w(e):(l=c=void 0,h)}function S(){var e=s(),n=b(e);if(l=arguments,c=this,d=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(C,t),f?w(e):h}(d);if(g)return clearTimeout(p),p=setTimeout(C,t),w(d)}return void 0===p&&(p=setTimeout(C,t)),h}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?o(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=d=c=p=void 0},S.flush=function(){return void 0===p?h:v(s())},S}},7072:(e,t,n)=>{e.exports=n(5522)},6576:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5248:(e,t,n)=>{var r=n(2350),s=/[\\^$.*+?()[\]{}|]/g,i=RegExp(s.source);e.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(s,"\\$&"):e}},3332:(e,t,n)=>{var r=n(6630);e.exports=function(e,t,n){var s=null==e?void 0:r(e,t);return void 0===s?n:s}},3154:(e,t,n)=>{var r=n(2360),s=n(5400),i=Object.prototype.hasOwnProperty,o=s((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=o},3996:(e,t,n)=>{var r=n(7733),s=n(8614);e.exports=function(e,t){return null!=e&&s(e,t,r)}},1464:e=>{e.exports=function(e){return e}},4228:(e,t,n)=>{var r=n(3718),s=n(658),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1113:e=>{var t=Array.isArray;e.exports=t},7910:(e,t,n)=>{var r=n(1858),s=n(1374);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},2053:(e,t,n)=>{var r=n(7910),s=n(658);e.exports=function(e){return s(e)&&r(e)}},7232:(e,t,n)=>{e=n.nmd(e);var r=n(5957),s=n(8263),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||s;e.exports=l},1858:(e,t,n)=>{var r=n(3296),s=n(2341);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1374:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},2341:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},658:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2162:(e,t,n)=>{var r=n(3296),s=n(658);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==r(e)}},4759:(e,t,n)=>{var r=n(1005),s=n(5837),i=n(9841),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},470:(e,t,n)=>{var r=n(2479),s=n(5008),i=n(7910);e.exports=function(e){return i(e)?r(e):s(e)}},5840:(e,t,n)=>{var r=n(1797);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(s.Cache||r),n}s.Cache=r,e.exports=s},294:e=>{e.exports=function(){}},8196:(e,t,n)=>{var r=n(5957);e.exports=function(){return r.Date.now()}},719:(e,t,n)=>{var r=n(8589),s=n(3935),i=n(194),o=n(349);e.exports=function(e){return i(e)?r(o(e)):s(e)}},1577:e=>{e.exports=function(){return[]}},8263:e=>{e.exports=function(){return!1}},9910:(e,t,n)=>{var r=n(9704),s=n(2341),i=n(2162),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},5522:(e,t,n)=>{var r=n(2795)(n(470));e.exports=r},2350:(e,t,n)=>{var r=n(4860);e.exports=function(e){return null==e?"":r(e)}},5375:(e,t,n)=>{var r=n(2349);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},1257:(e,t,n)=>{var r=n(2194),s=n(7134),i=n(6607),o=n(2053),a=s((function(e){return i(r(e,o))}));e.exports=a},6529:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(s,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?s(e.value):new n((function(t){t(e.value)})).then(o,a)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=s(n(3762));function o(e,t="maxAge"){let n,s,o;const a=()=>r(this,void 0,void 0,(function*(){if(void 0!==n)return;const a=a=>r(this,void 0,void 0,(function*(){o=i.default();const r=a[1][t]-Date.now();return r<=0?(e.delete(a[0]),void o.resolve()):(n=a[0],s=setTimeout((()=>{e.delete(a[0]),o&&o.resolve()}),r),"function"==typeof s.unref&&s.unref(),o.promise)}));try{for(const t of e)yield a(t)}catch(e){}n=void 0})),l=e.set.bind(e);return e.set=(t,r)=>{e.has(t)&&e.delete(t);const i=l(t,r);return n&&n===t&&(n=void 0,void 0!==s&&(clearTimeout(s),s=void 0),void 0!==o&&(o.reject(void 0),o=void 0)),a(),i},a(),e}t.default=o,e.exports=o,e.exports.default=o},7346:(e,t,n)=>{"use strict";const r=n(5145),s=n(8230),i=n(6529),o=new WeakMap,a=(...e)=>{if(0===e.length)return"__defaultKey";if(1===e.length){const[t]=e;if(null==t||"function"!=typeof t&&"object"!=typeof t)return t}return JSON.stringify(e)},l=(e,t)=>{"number"==typeof(t=Object.assign({cacheKey:a,cache:new Map,cachePromiseRejection:!1},t)).maxAge&&i(t.cache);const{cache:n}=t;t.maxAge=t.maxAge||0;const l=function(...r){const i=t.cacheKey(...r);if(n.has(i))return n.get(i).data;const o=e.call(this,...r);return((e,r)=>{n.set(e,{data:r,maxAge:Date.now()+t.maxAge})})(i,o),s(o)&&!1===t.cachePromiseRejection&&o.catch((()=>n.delete(i))),o};try{r(l,e)}catch(e){}return o.set(l,t.cache),l};e.exports=l,e.exports.default=l,e.exports.clear=e=>{const t=o.get(e);t&&"function"==typeof t.clear&&t.clear()}},5145:e=>{"use strict";const t=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};e.exports=t,e.exports.default=t},2949:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},9746:(e,t,n)=>{"use strict";const r=n(6928),s=n(200);e.exports=e=>{let t;e=Object.assign({cwd:process.cwd(),path:process.env[s()]},e);let n=r.resolve(e.cwd);const i=[];for(;t!==n;)i.push(r.join(n,"node_modules/.bin")),t=n,n=r.resolve(n,"..");return i.push(r.dirname(process.execPath)),i.concat(e.path).join(r.delimiter)},e.exports.env=t=>{t=Object.assign({env:process.env},t);const n=Object.assign({},t.env),r=s({env:n});return t.path=n[r],n[r]=e.exports(t),n}},5412:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,s){for(var i,o,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(a[c]=i[c]);if(t){o=t(i);for(var u=0;u<o.length;u++)r.call(i,o[u])&&(a[o[u]]=i[o[u]])}}return a}},5879:(e,t,n)=>{var r=n(6755);function s(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(s),e.exports.strict=r(i),s.proto=s((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},3762:e=>{"use strict";e.exports=()=>{const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}},849:e=>{"use strict";e.exports=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))))},8230:e=>{"use strict";const t=e=>e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch;e.exports=t,e.exports.default=t},4157:(e,t,n)=>{"use strict";const r=n(2619),s=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=[];let n=0;const s=()=>{n--,t.length>0&&t.shift()()},i=(e,t,...i)=>{n++;const o=r(e,...i);t(o),o.then(s,s)},o=(r,...s)=>new Promise((o=>((r,s,...o)=>{n<e?i(r,s,...o):t.push(i.bind(null,r,s,...o))})(r,o,...s)));return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length}}),o};e.exports=s,e.exports.default=s},2619:e=>{"use strict";const t=(e,...t)=>new Promise((n=>{n(e(...t))}));e.exports=t,e.exports.default=t},200:e=>{"use strict";e.exports=e=>{const t=(e=e||{}).env||process.env;return"win32"!==(e.platform||"win32")?"PATH":Object.keys(t).find((e=>"PATH"===e.toUpperCase()))||"Path"}},9982:(e,t,n)=>{"use strict";var r=n(101);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,i,o){if(o!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return n.PropTypes=n,n}},9324:(e,t,n)=>{e.exports=n(9982)()},101:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4199:(e,t,n)=>{var r=n(5879),s=n(7499),i=n(9896),o=function(){},a=/^v?\.0/.test(process.version),l=function(e){return"function"==typeof e},c=function(e){e()},u=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=l(t[t.length-1]||o)&&t.pop()||o;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var h=t.map((function(u,p){var d=p<t.length-1;return function(e,t,n,c){c=r(c);var u=!1;e.on("close",(function(){u=!0})),s(e,{readable:t,writable:n},(function(e){if(e)return c(e);u=!0,c()}));var h=!1;return function(t){if(!u&&!h)return h=!0,function(e){return!!a&&!!i&&(e instanceof(i.ReadStream||o)||e instanceof(i.WriteStream||o))&&l(e.close)}(e)?e.close(o):function(e){return e.setHeader&&l(e.abort)}(e)?e.abort():l(e.destroy)?e.destroy():void c(t||new Error("stream was destroyed"))}}(u,d,p>0,(function(t){e||(e=t),t&&h.forEach(c),d||(h.forEach(c),n(e))}))}));return t.reduce(u)}},8248:e=>{"use strict";class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return this._size+e}}e.exports=t,e.exports.default=t},6278:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(7252),function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,function(t){return e[t]}.bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=r},function(e,t,n){"use strict";var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var s=n-t;return(e/=r/2)<1?s/2*e*e+t:-s/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var s=n-t;return(e/=r/2)<1?s/2*e*e*e+t:s/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var s=n-t;return(e/=r/2)<1?s/2*e*e*e*e+t:-s/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var s=n-t;return(e/=r/2)<1?s/2*e*e*e*e*e+t:s/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var s=n-t;return-s*Math.cos(e/r*(Math.PI/2))+s+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return 0==e?t:(n-t)*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var s=n-t;return e==r?t+s:s*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var s=n-t;return 0===e?t:e===r?t+s:(e/=r/2)<1?s/2*Math.pow(2,10*(e-1))+t:s/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var s=n-t;return(e/=r/2)<1?-s/2*(Math.sqrt(1-e*e)-1)+t:s/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var s,i,o,a=n-t;return o=1.70158,0===e?t:1==(e/=r)?t+a:((i=0)||(i=.3*r),(s=a)<Math.abs(a)?(s=a,o=i/4):o=i/(2*Math.PI)*Math.asin(a/s),-s*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/i)+t)},easeOutElastic:function(e,t,n,r){var s,i,o,a=n-t;return o=1.70158,0===e?t:1==(e/=r)?t+a:((i=0)||(i=.3*r),(s=a)<Math.abs(a)?(s=a,o=i/4):o=i/(2*Math.PI)*Math.asin(a/s),s*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/i)+a+t)},easeInOutElastic:function(e,t,n,r){var s,i,o,a=n-t;return o=1.70158,0===e?t:2==(e/=r/2)?t+a:((i=0)||(i=r*(.3*1.5)),(s=a)<Math.abs(a)?(s=a,o=i/4):o=i/(2*Math.PI)*Math.asin(a/s),e<1?s*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/i)*-.5+t:s*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/i)*.5+a+t)},easeInBack:function(e,t,n,r,s){return void 0===s&&(s=1.70158),(n-t)*(e/=r)*e*((s+1)*e-s)+t},easeOutBack:function(e,t,n,r,s){return void 0===s&&(s=1.70158),(n-t)*((e=e/r-1)*e*((s+1)*e+s)+1)+t},easeInOutBack:function(e,t,n,r,s){var i=n-t;return void 0===s&&(s=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(s*=1.525))*e-s))+t:i/2*((e-=2)*e*((1+(s*=1.525))*e+s)+2)+t},easeInBounce:function(e,t,n,s){var i=n-t;return i-r.easeOutBounce(s-e,0,i,s)+t},easeOutBounce:function(e,t,n,r){var s=n-t;return(e/=r)<1/2.75?s*(7.5625*e*e)+t:e<2/2.75?s*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?s*(7.5625*(e-=2.25/2.75)*e+.9375)+t:s*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,s){var i=n-t;return e<s/2?.5*r.easeInBounce(2*e,0,i,s)+t:.5*r.easeOutBounce(2*e-s,0,i,s)+.5*i+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t),n.d(t,"ReactConfetti",(function(){return O}));var r,s,i=n(0),o=n.n(i),a=n(1),l=n.n(a);function c(e,t){return e+Math.random()*(t-e)}function u(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)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"}(r||(r={})),function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"}(s||(s={}));var p=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"context",void 0),h(this,"radius",void 0),h(this,"x",void 0),h(this,"y",void 0),h(this,"w",void 0),h(this,"h",void 0),h(this,"vx",void 0),h(this,"vy",void 0),h(this,"shape",void 0),h(this,"angle",void 0),h(this,"angularSpin",void 0),h(this,"color",void 0),h(this,"rotateY",void 0),h(this,"rotationDirection",void 0),h(this,"getOptions",void 0),this.getOptions=n;var o=this.getOptions(),a=o.colors,l=o.initialVelocityX,u=o.initialVelocityY;this.context=t,this.x=r,this.y=i,this.w=c(5,20),this.h=c(5,20),this.radius=c(5,10),this.vx="number"==typeof l?c(-l,l):c(l.min,l.max),this.vy="number"==typeof u?c(-u,0):c(u.min,u.max),this.shape=Math.floor(0+3*Math.random()),this.angle=c(0,360)*Math.PI/180,this.angularSpin=c(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=c(0,1),this.rotationDirection=c(0,1)?s.Positive:s.Negative}var t,n;return t=e,(n=[{key:"update",value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,i=e.friction,o=e.opacity,a=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=i,this.vy*=i,this.rotateY>=1&&this.rotationDirection===s.Positive?this.rotationDirection=s.Negative:this.rotateY<=-1&&this.rotationDirection===s.Negative&&(this.rotationDirection=s.Positive);var l=.1*this.rotationDirection;if(this.rotateY+=l,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=o,this.context.lineCap="round",this.context.lineWidth=2,a&&"function"==typeof a)a.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&u(t.prototype,n),e}();function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"canvas",void 0),d(this,"context",void 0),d(this,"getOptions",void 0),d(this,"x",0),d(this,"y",0),d(this,"w",0),d(this,"h",0),d(this,"lastNumberOfPieces",0),d(this,"tweenInitTime",Date.now()),d(this,"particles",[]),d(this,"particlesGenerated",0),d(this,"removeParticleAt",(function(e){r.particles.splice(e,1)})),d(this,"getParticle",(function(){var e=c(r.x,r.w+r.x),t=c(r.y,r.h+r.y);return new p(r.context,r.getOptions,e,t)})),d(this,"animate",(function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,s=r.lastNumberOfPieces,i=r.getOptions(),o=i.run,a=i.recycle,l=i.numberOfPieces,c=i.debug,u=i.tweenFunction,h=i.tweenDuration;if(!o)return!1;var p=r.particles.length,d=a?p:n,m=Date.now();if(d<l){s!==l&&(r.tweenInitTime=m,r.lastNumberOfPieces=l);for(var f=r.tweenInitTime,g=u(m-f>h?h:Math.max(0,m-f),d,l,h),y=Math.round(g-d),w=0;w<y;w++)r.particles.push(r.getParticle());r.particlesGenerated+=y}return c&&(t.font="12px sans-serif",t.fillStyle="#333",t.textAlign="right",t.fillText("Particles: ".concat(p),e.width-10,e.height-20)),r.particles.forEach((function(t,n){t.update(),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(a&&d<=l?r.particles[n]=r.getParticle():r.removeParticleAt(n))})),p>0||d<l})),this.canvas=t;var s=this.canvas.getContext("2d");if(!s)throw new Error("Could not get canvas context");this.context=s,this.getOptions=n};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={width:"undefined"!=typeof window?window.innerWidth:300,height:"undefined"!=typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:l.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},C=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),w(this,"canvas",void 0),w(this,"context",void 0),w(this,"_options",void 0),w(this,"generator",void 0),w(this,"rafId",void 0),w(this,"setOptionsWithDefaults",(function(e){var t={confettiSource:{x:0,y:0,w:r.canvas.width,h:0}};r._options=g(g(g({},t),b),e),Object.assign(r,e.confettiSource)})),w(this,"update",(function(){var e=r.options,t=e.run,n=e.onConfettiComplete,s=r.canvas,i=r.context;t&&(i.fillStyle="white",i.clearRect(0,0,s.width,s.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&"function"==typeof n&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)})),w(this,"reset",(function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)})),w(this,"stop",(function(){r.options={run:!1},r.rafId&&(cancelAnimationFrame(r.rafId),r.rafId=void 0)})),this.canvas=t;var s=this.canvas.getContext("2d");if(!s)throw new Error("Could not get canvas context");this.context=s,this.generator=new m(this.canvas,(function(){return r.options})),this.options=n,this.update()}var t,n;return t=e,(n=[{key:"options",get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof e.recycle&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof e.run&&e.run&&!1===t&&this.update()}}])&&y(t.prototype,n),e}();function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=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}).apply(this,arguments)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(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)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var s=P(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?M(e):t}(this,n)}}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=o.a.createRef(),F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(s,e);var t,n,r=D(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return I(M(t=r.call.apply(r,[this,e].concat(i))),"canvas",o.a.createRef()),I(M(t),"confetti",void 0),t.canvas=e.canvasRef||_,t}return t=s,(n=[{key:"componentDidMount",value:function(){if(this.canvas.current){var e=N(this.props)[0];this.confetti=new C(this.canvas.current,e)}}},{key:"componentDidUpdate",value:function(){var e=N(this.props)[0];this.confetti&&(this.confetti.options=e)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){s=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(s)throw i}}return n}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(N(this.props),2),t=e[0],n=e[1],r=k({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},n.style);return o.a.createElement("canvas",S({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&T(t.prototype,n),s}(i.Component);function N(e){var t={},n={},r=[].concat(function(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.keys(b)),["confettiSource","drawShape","onConfettiComplete"]),s=["canvasRef"];for(var i in e){var o=e[i];r.includes(i)?t[i]=o:s.includes(i)?s[i]=o:n[i]=o}return[t,n,{}]}I(F,"defaultProps",k({},b)),I(F,"displayName","ReactConfetti");var O=o.a.forwardRef((function(e,t){return o.a.createElement(F,S({canvasRef:t},e))}));t.default=O}]).default)},1300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,s,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=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},a=d(n(7252)),l=n(4425),c=(d(n(9324)),d(n(1989))),u=d(n(5519)),h=d(n(7922)),p=d(n(2028));function d(e){return e&&e.__esModule?e:{default:e}}n(4299);var m=a.default.createFactory(p.default),f=(s=r=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=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,e.call(this,n,r));return s.handleDoneAppearing=function(e){delete s.transitioningKeys[e],e!==s.state.currentKey&&s.performLeave(e)},s.performLeave=function(e){s.transitioningKeys[e]=!0,s.childRefs[e].componentWillLeave(s.handleDoneLeaving.bind(s,e)),s.state.currentChild&&(0,l.findDOMNode)(s.childRefs[s.state.currentKey])||s.enqueueHeightTransition()},s.performHeightTransition=function(){if(!s.unmounted){var e=s.state,t=e.currentChild?(0,l.findDOMNode)(s.childRefs[e.currentKey]):null;s.setState({height:t?t.offsetHeight:0,width:s.props.changeWidth?t?t.offsetWidth:0:null})}s.rafHandle=null},s.childRefs=Object.create(null),s.state={currentKey:"1",currentChild:s.props.children?a.default.Children.only(s.props.children):void 0,prevChildren:{},height:null,width:null},s}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,function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var s=n[r],i=Object.getOwnPropertyDescriptor(t,s);i&&i.configurable&&void 0===e[s]&&Object.defineProperty(e,s,i)}}(e,t))}(t,e),t.prototype.componentWillMount=function(){this.shouldEnterCurrent=!1,this.keysToLeave=[],this.transitioningKeys={}},t.prototype.componentDidMount=function(){this.props.transitionAppear&&this.state.currentChild&&this.performAppear(this.state.currentKey)},t.prototype.componentWillUnmount=function(){this.unmounted=!0},t.prototype.componentWillReceiveProps=function(e){var t=e.children?a.default.Children.only(e.children):void 0,n=this.state.currentChild;if(n&&t&&t.key===n.key&&!this.state.nextChild)return this.setState({currentChild:t});var r=this.state,s=r.currentKey,i=r.prevChildren,c={currentKey:String(Number(s)+1),currentChild:t,height:0,width:this.props.changeWidth?0:null};if(t&&(this.shouldEnterCurrent=!0),n){var u,h=(0,l.findDOMNode)(this.childRefs[s]);c.height=h?h.offsetHeight:0,c.width=this.props.changeWidth?h?h.offsetWidth:0:null,c.prevChildren=o({},i,((u={})[s]=n,u)),this.transitioningKeys[s]||this.keysToLeave.push(s)}this.setState(c)},t.prototype.componentDidUpdate=function(){this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,(0,l.findDOMNode)(this.childRefs[this.state.currentKey])&&this.performEnter(this.state.currentKey));var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)},t.prototype.performAppear=function(e){this.transitioningKeys[e]=!0,this.childRefs[e].componentWillAppear(this.handleDoneAppearing.bind(this,e))},t.prototype.performEnter=function(e){this.transitioningKeys[e]=!0,this.childRefs[e].componentWillEnter(this.handleDoneEntering.bind(this,e)),this.enqueueHeightTransition()},t.prototype.handleDoneEntering=function(e){delete this.transitioningKeys[e],e===this.state.currentKey?this.setState({height:null}):this.performLeave(e)},t.prototype.handleDoneLeaving=function(e){delete this.transitioningKeys[e];var t={prevChildren:o({},this.state.prevChildren)};delete t.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&(0,l.findDOMNode)(this.childRefs[this.state.currentKey])||(t.height=null),this.setState(t)},t.prototype.enqueueHeightTransition=function(){this.rafHandle||(this.rafHandle=(0,h.default)(this.performHeightTransition))},t.prototype.wrapChild=function(e,t){var n=this.props.transitionName;return"object"===(void 0===n?"undefined":i(n))&&null!==n&&delete(n=o({},n)).height,m(o({name:n,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},t),e)},t.prototype.storeChildRef=function(e,t){var n=this,r="string"!=typeof e.ref;return(0,u.default)(r,"string refs are not supported on children of ReactCSSTransitionReplace and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"),(0,c.default)(r?e.ref:null,(function(e){n.childRefs[t]=e}))},t.prototype.render=function(){var e=this,t=this.state,n=t.currentKey,r=t.currentChild,s=t.prevChildren,i=t.height,l=t.width,c=[],u=this.props,h=u.overflowHidden,p=u.transitionName,d=u.component,m=u.childComponent,f=u.notifyLeaving,g=(u.transitionAppear,u.transitionEnter,u.transitionLeave,u.changeWidth,u.transitionAppearTimeout,u.transitionEnterTimeout,u.transitionLeaveTimeout,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(u,["overflowHidden","transitionName","component","childComponent","notifyLeaving","transitionAppear","transitionEnter","transitionLeave","changeWidth","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout"])),y=this.shouldEnterCurrent||this.keysToLeave.length||Object.keys(this.transitioningKeys).length;if(g.style=o({},g.style),y&&(g.style.position="relative",h&&(g.style.overflow="hidden")),null!==i){var w="string"==typeof p?p+"-height":p&&p.height||"";g.className=String(g.className||"")+" "+String(w),g.style.height=i}null!==l&&(g.style.width=l);var b={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(s).forEach((function(t){var n=s[t];c.push(a.default.createElement(m,{key:t,style:b},e.wrapChild(f&&"string"!=typeof n.type?a.default.cloneElement(n,{isLeaving:!0}):n,{ref:e.storeChildRef(n,t)})))})),r&&c.push(a.default.createElement(m,{key:n,style:this.transitioningKeys[n]?b:y?{position:"relative"}:null},this.wrapChild(r,{ref:this.storeChildRef(r,n)}))),a.default.createElement(d,g,c)},t}(a.default.Component),r.displayName="ReactCSSTransitionReplace",r.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"},s);t.default=f,e.exports=t.default},2028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,s,i=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},o=m(n(2027)),a=m(n(9964)),l=m(n(7922)),c=n(2682),u=m(n(7252)),h=m(n(9324)),p=n(4425),d=n(4299);function m(e){return e&&e.__esModule?e:{default:e}}function f(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}var g=[];c.transitionEnd&&g.push(c.transitionEnd),c.animationEnd&&g.push(c.animationEnd),h.default.node,d.nameShape.isRequired,h.default.bool,h.default.bool,h.default.bool,h.default.number,h.default.number,h.default.number;var y=(s=r=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,i=Array(s),o=0;o<s;o++)i[o]=arguments[o];return n=r=f(this,e.call.apply(e,[this].concat(i))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},f(r,n)}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,function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var s=n[r],i=Object.getOwnPropertyDescriptor(t,s);i&&i.configurable&&void 0===e[s]&&Object.defineProperty(e,s,i)}}(e,t))}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,p.findDOMNode)(this);if(r){var s=this.props.name[e]||this.props.name+"-"+e,i=this.props.name[e+"Active"]||s+"-active",l=null,u=void 0;(0,o.default)(r,s),this.queueClassAndNode(i,r);var h=function(e){e&&e.target!==r||(clearTimeout(l),u&&u(),(0,a.default)(r,s),(0,a.default)(r,i),u&&u(),t&&t())};n?(l=setTimeout(h,n),this.transitionTimeouts.push(l)):c.transitionEnd&&(u=function(e,t){return g.length?g.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){g.length&&g.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,h))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,l.default)((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))},t.prototype.flushClassNameAndNodeQueueOnNextFrame=function(){var e=this;this.rafHandle=(0,l.default)((function(){return e.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,o.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=i({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,u.default.cloneElement(u.default.Children.only(this.props.children),e)},t}(u.default.Component),r.displayName="CSSTransitionGroupChild",s);t.default=y,e.exports=t.default},4299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};var r,s=(r=n(9324))&&r.__esModule?r:{default:r};t.nameShape=s.default.oneOfType([s.default.string,s.default.shape({enter:s.default.string,leave:s.default.string,active:s.default.string,height:s.default.string}),s.default.shape({enter:s.default.string,enterActive:s.default.string,leave:s.default.string,leaveActive:s.default.string,appear:s.default.string,appearActive:s.default.string,height:s.default.string,heightActive:s.default.string})])},1615:(e,t,n)=>{"use strict";var r=n(7252),s=n(5412),i=n(8422);function o(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var r=[n,void 0,void 0,void 0,void 0,void 0],s=0;(e=Error(t.replace(/%s/g,(function(){return r[s++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function a(e,t,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}r||o("227");var l=!1,c=null,u=!1,h=null,p={onError:function(e){l=!0,c=e}};function d(e,t,n,r,s,i,o,u,h){l=!1,c=null,a.apply(p,arguments)}var m=null,f={};function g(){if(m)for(var e in f){var t=f[e],n=m.indexOf(e);if(-1<n||o("96",e),!w[n])for(var r in t.extractEvents||o("97",e),w[n]=t,n=t.eventTypes){var s=void 0,i=n[r],a=t,l=r;b.hasOwnProperty(l)&&o("99",l),b[l]=i;var c=i.phasedRegistrationNames;if(c){for(s in c)c.hasOwnProperty(s)&&y(c[s],a,l);s=!0}else i.registrationName?(y(i.registrationName,a,l),s=!0):s=!1;s||o("98",r,e)}}}function y(e,t,n){C[e]&&o("100",e),C[e]=t,v[e]=t.eventTypes[n].dependencies}var w=[],b={},C={},v={},S=null,E=null,k=null;function R(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,s,i,a,p,m){if(d.apply(this,arguments),l){if(l){var f=c;l=!1,c=null}else o("198"),f=void 0;u||(u=!0,h=f)}}(r,t,void 0,e),e.currentTarget=null}function A(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var x=null;function D(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)R(e,t[r],n[r]);else t&&R(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var M={injectEventPluginOrder:function(e){m&&o("101"),m=Array.prototype.slice.call(e),g()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];f.hasOwnProperty(t)&&f[t]===r||(f[t]&&o("102",t),f[t]=r,n=!0)}n&&g()}};function P(e,t){var n=e.stateNode;if(!n)return null;var r=S(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&o("231",t,typeof n),n)}function I(e){if(null!==e&&(x=A(x,e)),e=x,x=null,e&&(T(e,D),x&&o("95"),u))throw e=h,u=!1,h=null,e}var _=Math.random().toString(36).slice(2),F="__reactInternalInstance$"+_,N="__reactEventHandlers$"+_;function O(e){if(e[F])return e[F];for(;!e[F];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[F]).tag||6===e.tag?e:null}function L(e){return!(e=e[F])||5!==e.tag&&6!==e.tag?null:e}function B(e){if(5===e.tag||6===e.tag)return e.stateNode;o("33")}function H(e){return e[N]||null}function U(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Z(e,t,n){(t=P(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=A(n._dispatchListeners,t),n._dispatchInstances=A(n._dispatchInstances,e))}function $(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=U(t);for(t=n.length;0<t--;)Z(n[t],"captured",e);for(t=0;t<n.length;t++)Z(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=P(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=A(n._dispatchListeners,t),n._dispatchInstances=A(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function q(e){T(e,$)}var G=!("undefined"==typeof window||!window.document||!window.document.createElement);function z(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var j={animationend:z("Animation","AnimationEnd"),animationiteration:z("Animation","AnimationIteration"),animationstart:z("Animation","AnimationStart"),transitionend:z("Transition","TransitionEnd")},K={},Y={};function X(e){if(K[e])return K[e];if(!j[e])return e;var t,n=j[e];for(t in n)if(n.hasOwnProperty(t)&&t in Y)return K[e]=n[t];return e}G&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete j.animationend.animation,delete j.animationiteration.animation,delete j.animationstart.animation),"TransitionEvent"in window||delete j.transitionend.transition);var Q=X("animationend"),J=X("animationiteration"),ee=X("animationstart"),te=X("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),re=null,se=null,ie=null;function oe(){if(ie)return ie;var e,t,n=se,r=n.length,s="value"in re?re.value:re.textContent,i=s.length;for(e=0;e<r&&n[e]===s[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===s[i-t];t++);return ie=s.slice(e,1<t?1-t:void 0)}function ae(){return!0}function le(){return!1}function ce(e,t,n,r){for(var s in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(s)&&((t=e[s])?this[s]=t(n):"target"===s?this.target=r:this[s]=n[s]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:le,this.isPropagationStopped=le,this}function ue(e,t,n,r){if(this.eventPool.length){var s=this.eventPool.pop();return this.call(s,e,t,n,r),s}return new this(e,t,n,r)}function he(e){e instanceof this||o("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=ue,e.release=he}s(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return s(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=s({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(ce);var de=ce.extend({data:null}),me=ce.extend({data:null}),fe=[9,13,27,32],ge=G&&"CompositionEvent"in window,ye=null;G&&"documentMode"in document&&(ye=document.documentMode);var we=G&&"TextEvent"in window&&!ye,be=G&&(!ge||ye&&8<ye&&11>=ye),Ce=String.fromCharCode(32),ve={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Se=!1;function Ee(e,t){switch(e){case"keyup":return-1!==fe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Re=!1,Ae={eventTypes:ve,extractEvents:function(e,t,n,r){var s=void 0,i=void 0;if(ge)e:{switch(e){case"compositionstart":s=ve.compositionStart;break e;case"compositionend":s=ve.compositionEnd;break e;case"compositionupdate":s=ve.compositionUpdate;break e}s=void 0}else Re?Ee(e,n)&&(s=ve.compositionEnd):"keydown"===e&&229===n.keyCode&&(s=ve.compositionStart);return s?(be&&"ko"!==n.locale&&(Re||s!==ve.compositionStart?s===ve.compositionEnd&&Re&&(i=oe()):(se="value"in(re=r)?re.value:re.textContent,Re=!0)),s=de.getPooled(s,t,n,r),(i||null!==(i=ke(n)))&&(s.data=i),q(s),i=s):i=null,(e=we?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(Se=!0,Ce);case"textInput":return(e=t.data)===Ce&&Se?null:e;default:return null}}(e,n):function(e,t){if(Re)return"compositionend"===e||!ge&&Ee(e,t)?(e=oe(),ie=se=re=null,Re=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data}}(e,n))?((t=me.getPooled(ve.beforeInput,t,n,r)).data=e,q(t)):t=null,null===i?t:null===t?i:[i,t]}},Te=null,xe=null,De=null;function Me(e){if(e=E(e)){"function"!=typeof Te&&o("280");var t=S(e.stateNode);Te(e.stateNode,e.type,t)}}function Pe(e){xe?De?De.push(e):De=[e]:xe=e}function Ie(){if(xe){var e=xe,t=De;if(De=xe=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function _e(e,t){return e(t)}function Fe(e,t,n){return e(t,n)}function Ne(){}var Oe=!1;function Le(e,t){if(Oe)return e(t);Oe=!0;try{return _e(e,t)}finally{Oe=!1,(null!==xe||null!==De)&&(Ne(),Ie())}}var Be={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Be[e.type]:"textarea"===t}function Ue(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ze(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function $e(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function We(e){e._valueTracker||(e._valueTracker=function(e){var t=$e(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$e(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var qe=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe.hasOwnProperty("ReactCurrentDispatcher")||(qe.ReactCurrentDispatcher={current:null});var Ge=/^(.*)[\\\/]/,ze="function"==typeof Symbol&&Symbol.for,je=ze?Symbol.for("react.element"):60103,Ke=ze?Symbol.for("react.portal"):60106,Ye=ze?Symbol.for("react.fragment"):60107,Xe=ze?Symbol.for("react.strict_mode"):60108,Qe=ze?Symbol.for("react.profiler"):60114,Je=ze?Symbol.for("react.provider"):60109,et=ze?Symbol.for("react.context"):60110,tt=ze?Symbol.for("react.concurrent_mode"):60111,nt=ze?Symbol.for("react.forward_ref"):60112,rt=ze?Symbol.for("react.suspense"):60113,st=ze?Symbol.for("react.memo"):60115,it=ze?Symbol.for("react.lazy"):60116,ot="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ot&&e[ot]||e["@@iterator"])?e:null}function lt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case tt:return"ConcurrentMode";case Ye:return"Fragment";case Ke:return"Portal";case Qe:return"Profiler";case Xe:return"StrictMode";case rt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case et:return"Context.Consumer";case Je:return"Context.Provider";case nt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case st:return lt(e.type);case it:if(e=1===e._status?e._result:null)return lt(e)}return null}function ct(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,s=e._debugSource,i=lt(e.type);n=null,r&&(n=lt(r.type)),r=i,i="",s?i=" (at "+s.fileName.replace(Ge,"")+":"+s.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ut=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ht=Object.prototype.hasOwnProperty,pt={},dt={};function mt(e,t,n,r,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ft[e]=new mt(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ft[t]=new mt(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ft[e]=new mt(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ft[e]=new mt(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ft[e]=new mt(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){ft[e]=new mt(e,3,!0,e,null)})),["capture","download"].forEach((function(e){ft[e]=new mt(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){ft[e]=new mt(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){ft[e]=new mt(e,5,!1,e.toLowerCase(),null)}));var gt=/[\-:]([a-z])/g;function yt(e){return e[1].toUpperCase()}function wt(e,t,n,r){var s=ft.hasOwnProperty(t)?ft[t]:null;(null!==s?0===s.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,s,r)&&(n=null),r||null===s?function(e){return!!ht.call(dt,e)||!ht.call(pt,e)&&(ut.test(e)?dt[e]=!0:(pt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=null===n?3!==s.type&&"":n:(t=s.attributeName,r=s.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(s=s.type)||4===s&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function bt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ct(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function vt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=bt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function St(e,t){null!=(t=t.checked)&&wt(e,"checked",t,!1)}function Et(e,t){St(e,t);var n=bt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Rt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rt(e,t.type,bt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Rt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(gt,yt);ft[t]=new mt(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(gt,yt);ft[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(gt,yt);ft[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){ft[e]=new mt(e,1,!1,e.toLowerCase(),null)}));var At={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Tt(e,t,n){return(e=ce.getPooled(At.change,e,t,n)).type="change",Pe(n),q(e),e}var xt=null,Dt=null;function Mt(e){I(e)}function Pt(e){if(Ve(B(e)))return e}function It(e,t){if("change"===e)return t}var _t=!1;function Ft(){xt&&(xt.detachEvent("onpropertychange",Nt),Dt=xt=null)}function Nt(e){"value"===e.propertyName&&Pt(Dt)&&Le(Mt,e=Tt(Dt,e,Ue(e)))}function Ot(e,t,n){"focus"===e?(Ft(),Dt=n,(xt=t).attachEvent("onpropertychange",Nt)):"blur"===e&&Ft()}function Lt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pt(Dt)}function Bt(e,t){if("click"===e)return Pt(t)}function Ht(e,t){if("input"===e||"change"===e)return Pt(t)}G&&(_t=Ze("input")&&(!document.documentMode||9<document.documentMode));var Ut={eventTypes:At,_isInputEventSupported:_t,extractEvents:function(e,t,n,r){var s=t?B(t):window,i=void 0,o=void 0,a=s.nodeName&&s.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===s.type?i=It:He(s)?_t?i=Ht:(i=Lt,o=Ot):(a=s.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(i=Bt),i&&(i=i(e,t)))return Tt(i,n,r);o&&o(e,s,t),"blur"===e&&(e=s._wrapperState)&&e.controlled&&"number"===s.type&&Rt(s,"number",s.value)}},Zt=ce.extend({view:null,detail:null}),$t={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$t[e])&&!!t[e]}function Vt(){return Wt}var qt=0,Gt=0,zt=!1,jt=!1,Kt=Zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Vt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=qt;return qt=e.screenX,zt?"mousemove"===e.type?e.screenX-t:0:(zt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Gt;return Gt=e.screenY,jt?"mousemove"===e.type?e.screenY-t:0:(jt=!0,0)}}),Yt=Kt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qt={eventTypes:Xt,extractEvents:function(e,t,n,r){var s="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(s&&(n.relatedTarget||n.fromElement)||!i&&!s)return null;if(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?O(t):null):i=null,i===t)return null;var o=void 0,a=void 0,l=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(o=Kt,a=Xt.mouseLeave,l=Xt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(o=Yt,a=Xt.pointerLeave,l=Xt.pointerEnter,c="pointer");var u=null==i?s:B(i);if(s=null==t?s:B(t),(e=o.getPooled(a,i,n,r)).type=c+"leave",e.target=u,e.relatedTarget=s,(n=o.getPooled(l,t,n,r)).type=c+"enter",n.target=s,n.relatedTarget=u,r=t,i&&r)e:{for(s=r,c=0,o=t=i;o;o=U(o))c++;for(o=0,l=s;l;l=U(l))o++;for(;0<c-o;)t=U(t),c--;for(;0<o-c;)s=U(s),o--;for(;c--;){if(t===s||t===s.alternate)break e;t=U(t),s=U(s)}t=null}else t=null;for(s=t,t=[];i&&i!==s&&(null===(c=i.alternate)||c!==s);)t.push(i),i=U(i);for(i=[];r&&r!==s&&(null===(c=r.alternate)||c!==s);)i.push(r),r=U(r);for(r=0;r<t.length;r++)W(t[r],"bubbled",e);for(r=i.length;0<r--;)W(i[r],"captured",n);return[e,n]}};function Jt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var en=Object.prototype.hasOwnProperty;function tn(e,t){if(Jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!en.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function nn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(2&t.effectTag)return 1;for(;t.return;)if(2&(t=t.return).effectTag)return 1}return 3===t.tag?2:3}function rn(e){2!==nn(e)&&o("188")}function sn(e){if(e=function(e){var t=e.alternate;if(!t)return 3===(t=nn(e))&&o("188"),1===t?null:e;for(var n=e,r=t;;){var s=n.return,i=s?s.alternate:null;if(!s||!i)break;if(s.child===i.child){for(var a=s.child;a;){if(a===n)return rn(s),e;if(a===r)return rn(s),t;a=a.sibling}o("188")}if(n.return!==r.return)n=s,r=i;else{a=!1;for(var l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}a||o("189")}}n.alternate!==r&&o("190")}return 3!==n.tag&&o("188"),n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=Zt.extend({relatedTarget:null});function cn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pn=Zt.extend({key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=cn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Vt,charCode:function(e){return"keypress"===e.type?cn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?cn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),dn=Kt.extend({dataTransfer:null}),mn=Zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Vt}),fn=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),gn=Kt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),yn=[["abort","abort"],[Q,"animationEnd"],[J,"animationIteration"],[ee,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[te,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],wn={},bn={};function Cn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},wn[e]=t,bn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){Cn(e,!0)})),yn.forEach((function(e){Cn(e,!1)}));var vn={eventTypes:wn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=bn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var s=bn[e];if(!s)return null;switch(e){case"keypress":if(0===cn(n))return null;case"keydown":case"keyup":e=pn;break;case"blur":case"focus":e=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Kt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=mn;break;case Q:case J:case ee:e=on;break;case te:e=fn;break;case"scroll":e=Zt;break;case"wheel":e=gn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yt;break;default:e=ce}return q(t=e.getPooled(s,t,n,r)),t}},Sn=vn.isInteractiveTopLevelEventType,En=[];function kn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=O(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var s=Ue(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,o=null,a=0;a<w.length;a++){var l=w[a];l&&(l=l.extractEvents(r,t,i,s))&&(o=A(o,l))}I(o)}}var Rn=!0;function An(e,t){if(!t)return null;var n=(Sn(e)?xn:Dn).bind(null,e);t.addEventListener(e,n,!1)}function Tn(e,t){if(!t)return null;var n=(Sn(e)?xn:Dn).bind(null,e);t.addEventListener(e,n,!0)}function xn(e,t){Fe(Dn,e,t)}function Dn(e,t){if(Rn){var n=Ue(t);if(null===(n=O(n))||"number"!=typeof n.tag||2===nn(n)||(n=null),En.length){var r=En.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Le(kn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>En.length&&En.push(e)}}}var Mn={},Pn=0,In="_reactListenersID"+(""+Math.random()).slice(2);function _n(e){return Object.prototype.hasOwnProperty.call(e,In)||(e[In]=Pn++,Mn[e[In]]={}),Mn[e[In]]}function Fn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Nn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function On(e,t){var n,r=Nn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Nn(r)}}function Ln(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ln(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Bn(){for(var e=window,t=Fn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Fn(e.document)}return t}function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Un(e){var t=Bn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ln(n.ownerDocument.documentElement,n)){if(null!==r&&Hn(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=void 0===r.end?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=On(n,i);var o=On(n,r);s&&o&&(1!==e.rangeCount||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zn=G&&"documentMode"in document&&11>=document.documentMode,$n={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wn=null,Vn=null,qn=null,Gn=!1;function zn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Gn||null==Wn||Wn!==Fn(n)?null:(n="selectionStart"in(n=Wn)&&Hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qn&&tn(qn,n)?null:(qn=n,(e=ce.getPooled($n.select,Vn,e,t)).type="select",e.target=Wn,q(e),e))}var jn={eventTypes:$n,extractEvents:function(e,t,n,r){var s,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(s=!i)){e:{i=_n(i),s=v.onSelect;for(var o=0;o<s.length;o++){var a=s[o];if(!i.hasOwnProperty(a)||!i[a]){i=!1;break e}}i=!0}s=!i}if(s)return null;switch(i=t?B(t):window,e){case"focus":(He(i)||"true"===i.contentEditable)&&(Wn=i,Vn=t,qn=null);break;case"blur":qn=Vn=Wn=null;break;case"mousedown":Gn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Gn=!1,zn(n,r);case"selectionchange":if(Zn)break;case"keydown":case"keyup":return zn(n,r)}return null}};function Kn(e,t){return e=s({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Yn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n)return e[s].selected=!0,void(r&&(e[s].defaultSelected=!0));null!==t||e[s].disabled||(t=e[s])}null!==t&&(t.selected=!0)}}function Xn(e,t){return null!=t.dangerouslySetInnerHTML&&o("91"),s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&o("92"),Array.isArray(t)&&(1>=t.length||o("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:bt(n)}}function Jn(e,t){var n=bt(t.value),r=bt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function er(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),S=H,E=L,k=B,M.injectEventPluginsByName({SimpleEventPlugin:vn,EnterLeaveEventPlugin:Qt,ChangeEventPlugin:Ut,SelectEventPlugin:jn,BeforeInputEventPlugin:Ae});var tr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function nr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?nr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var sr,ir=void 0,or=(sr=function(e,t){if(e.namespaceURI!==tr.svg||"innerHTML"in e)e.innerHTML=t;else{for((ir=ir||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return sr(e,t)}))}:sr);function ar(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var lr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cr=["Webkit","ms","Moz","O"];function ur(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||lr.hasOwnProperty(e)&&lr[e]?(""+t).trim():t+"px"}function hr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),s=ur(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}Object.keys(lr).forEach((function(e){cr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lr[t]=lr[e]}))}));var pr=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dr(e,t){t&&(pr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&o("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&o("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||o("61")),null!=t.style&&"object"!=typeof t.style&&o("62",""))}function mr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function fr(e,t){var n=_n(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=v[t];for(var r=0;r<t.length;r++){var s=t[r];if(!n.hasOwnProperty(s)||!n[s]){switch(s){case"scroll":Tn("scroll",e);break;case"focus":case"blur":Tn("focus",e),Tn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Ze(s)&&Tn(s,e);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(s)&&An(s,e)}n[s]=!0}}}function gr(){}var yr=null,wr=null;function br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Cr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vr="function"==typeof setTimeout?setTimeout:void 0,Sr="function"==typeof clearTimeout?clearTimeout:void 0,Er=i.unstable_scheduleCallback,kr=i.unstable_cancelCallback;function Rr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Ar(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Tr=[],xr=-1;function Dr(e){0>xr||(e.current=Tr[xr],Tr[xr]=null,xr--)}function Mr(e,t){xr++,Tr[xr]=e.current,e.current=t}var Pr={},Ir={current:Pr},_r={current:!1},Fr=Pr;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Pr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s,i={};for(s in n)i[s]=t[s];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Or(e){return null!=e.childContextTypes}function Lr(e){Dr(_r),Dr(Ir)}function Br(e){Dr(_r),Dr(Ir)}function Hr(e,t,n){Ir.current!==Pr&&o("168"),Mr(Ir,t),Mr(_r,n)}function Ur(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||o("108",lt(t)||"Unknown",i);return s({},n,r)}function Zr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Pr,Fr=Ir.current,Mr(Ir,t),Mr(_r,_r.current),!0}function $r(e,t,n){var r=e.stateNode;r||o("169"),n?(t=Ur(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=t,Dr(_r),Dr(Ir),Mr(Ir,t)):Dr(_r),Mr(_r,n)}var Wr=null,Vr=null;function qr(e){return function(t){try{return e(t)}catch(e){}}}function Gr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function zr(e,t,n,r){return new Gr(e,t,n,r)}function jr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kr(e,t){var n=e.alternate;return null===n?((n=zr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yr(e,t,n,r,s,i){var a=2;if(r=e,"function"==typeof e)jr(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Ye:return Xr(n.children,s,i,t);case tt:return Qr(n,3|s,i,t);case Xe:return Qr(n,2|s,i,t);case Qe:return(e=zr(12,n,t,4|s)).elementType=Qe,e.type=Qe,e.expirationTime=i,e;case rt:return(e=zr(13,n,t,s)).elementType=rt,e.type=rt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Je:a=10;break e;case et:a=9;break e;case nt:a=11;break e;case st:a=14;break e;case it:a=16,r=null;break e}o("130",null==e?e:typeof e,"")}return(t=zr(a,n,t,s)).elementType=e,t.type=r,t.expirationTime=i,t}function Xr(e,t,n,r){return(e=zr(7,e,r,t)).expirationTime=n,e}function Qr(e,t,n,r){return e=zr(8,e,r,t),t=1&t?tt:Xe,e.elementType=t,e.type=t,e.expirationTime=n,e}function Jr(e,t,n){return(e=zr(6,e,null,t)).expirationTime=n,e}function es(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ts(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),ss(t,e)}function ns(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),ss(t,e)}function rs(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ss(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,s=t.earliestPendingTime,i=t.latestPingedTime;0===(s=0!==s?s:i)&&(0===e||r<e)&&(s=r),0!==(e=s)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=s,t.expirationTime=e}function is(e,t){if(e&&e.defaultProps)for(var n in t=s({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var os=(new r.Component).refs;function as(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:s({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ls={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===nn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Aa(),s=Yi(r=Xo(r,e));s.payload=t,null!=n&&(s.callback=n),qo(),Qi(e,s),ta(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Aa(),s=Yi(r=Xo(r,e));s.tag=Vi,s.payload=t,null!=n&&(s.callback=n),qo(),Qi(e,s),ta(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Aa(),r=Yi(n=Xo(n,e));r.tag=qi,null!=t&&(r.callback=t),qo(),Qi(e,r),ta(e,n)}};function cs(e,t,n,r,s,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!(t.prototype&&t.prototype.isPureReactComponent&&tn(n,r)&&tn(s,i))}function us(e,t,n){var r=!1,s=Pr,i=t.contextType;return"object"==typeof i&&null!==i?i=$i(i):(s=Or(t)?Fr:Ir.current,i=(r=null!=(r=t.contextTypes))?Nr(e,s):Pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ls,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function hs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ls.enqueueReplaceState(t,t.state,null)}function ps(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=os;var i=t.contextType;"object"==typeof i&&null!==i?s.context=$i(i):(i=Or(t)?Fr:Ir.current,s.context=Nr(e,i)),null!==(i=e.updateQueue)&&(no(e,i,n,s,r),s.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(as(e,t,i,n),s.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(t=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),t!==s.state&&ls.enqueueReplaceState(s,s.state,null),null!==(i=e.updateQueue)&&(no(e,i,n,s,r),s.state=e.memoizedState)),"function"==typeof s.componentDidMount&&(e.effectTag|=4)}var ds=Array.isArray;function ms(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&o("309"),r=n.stateNode),r||o("147",e);var s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=r.refs;t===os&&(t=r.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}"string"!=typeof e&&o("284"),n._owner||o("290",e)}return e}function fs(e,t){"textarea"!==e.type&&o("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function gs(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function s(e,t,n){return(e=Kr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jr(n,e.mode,r)).return=e,t):((t=s(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=s(t,n.props)).ref=ms(e,t,n),r.return=e,r):((r=Yr(n.type,n.key,n.props,null,e.mode,r)).ref=ms(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=es(n,e.mode,r)).return=e,t):((t=s(t,n.children||[])).return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?((t=Xr(n,e.mode,r,i)).return=e,t):((t=s(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Jr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case je:return(n=Yr(t.type,t.key,t.props,null,e.mode,n)).ref=ms(e,null,t),n.return=e,n;case Ke:return(t=es(t,e.mode,n)).return=e,t}if(ds(t)||at(t))return(t=Xr(t,e.mode,n,null)).return=e,t;fs(e,t)}return null}function d(e,t,n,r){var s=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==s?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case je:return n.key===s?n.type===Ye?h(e,t,n.props.children,r,s):c(e,t,n,r):null;case Ke:return n.key===s?u(e,t,n,r):null}if(ds(n)||at(n))return null!==s?null:h(e,t,n,r,null);fs(e,n)}return null}function m(e,t,n,r,s){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,s);if("object"==typeof r&&null!==r){switch(r.$$typeof){case je:return e=e.get(null===r.key?n:r.key)||null,r.type===Ye?h(t,e,r.props.children,s,r.key):c(t,e,r,s);case Ke:return u(t,e=e.get(null===r.key?n:r.key)||null,r,s)}if(ds(r)||at(r))return h(t,e=e.get(n)||null,r,s,null);fs(t,r)}return null}function f(s,o,a,l){for(var c=null,u=null,h=o,f=o=0,g=null;null!==h&&f<a.length;f++){h.index>f?(g=h,h=null):g=h.sibling;var y=d(s,h,a[f],l);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(s,h),o=i(y,o,f),null===u?c=y:u.sibling=y,u=y,h=g}if(f===a.length)return n(s,h),c;if(null===h){for(;f<a.length;f++)(h=p(s,a[f],l))&&(o=i(h,o,f),null===u?c=h:u.sibling=h,u=h);return c}for(h=r(s,h);f<a.length;f++)(g=m(h,s,f,a[f],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?f:g.key),o=i(g,o,f),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(s,e)})),c}function g(s,a,l,c){var u=at(l);"function"!=typeof u&&o("150"),null==(l=u.call(l))&&o("151");for(var h=u=null,f=a,g=a=0,y=null,w=l.next();null!==f&&!w.done;g++,w=l.next()){f.index>g?(y=f,f=null):y=f.sibling;var b=d(s,f,w.value,c);if(null===b){f||(f=y);break}e&&f&&null===b.alternate&&t(s,f),a=i(b,a,g),null===h?u=b:h.sibling=b,h=b,f=y}if(w.done)return n(s,f),u;if(null===f){for(;!w.done;g++,w=l.next())null!==(w=p(s,w.value,c))&&(a=i(w,a,g),null===h?u=w:h.sibling=w,h=w);return u}for(f=r(s,f);!w.done;g++,w=l.next())null!==(w=m(f,s,g,w.value,c))&&(e&&null!==w.alternate&&f.delete(null===w.key?g:w.key),a=i(w,a,g),null===h?u=w:h.sibling=w,h=w);return e&&f.forEach((function(e){return t(s,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===Ye&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case je:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?i.type===Ye:c.elementType===i.type){n(e,c.sibling),(r=s(c,i.type===Ye?i.props.children:i.props)).ref=ms(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===Ye?((r=Xr(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Yr(i.type,i.key,i.props,null,e.mode,l)).ref=ms(e,r,i),l.return=e,e=l)}return a(e);case Ke:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=s(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=es(i,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=s(r,i)).return=e,e=r):(n(e,r),(r=Jr(i,e.mode,l)).return=e,e=r),a(e);if(ds(i))return f(e,r,i,l);if(at(i))return g(e,r,i,l);if(u&&fs(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:o("152",(l=e.type).displayName||l.name||"Component")}return n(e,r)}}var ys=gs(!0),ws=gs(!1),bs={},Cs={current:bs},vs={current:bs},Ss={current:bs};function Es(e){return e===bs&&o("174"),e}function ks(e,t){Mr(Ss,t),Mr(vs,e),Mr(Cs,bs);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rr(null,"");break;default:t=rr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Dr(Cs),Mr(Cs,t)}function Rs(e){Dr(Cs),Dr(vs),Dr(Ss)}function As(e){Es(Ss.current);var t=Es(Cs.current),n=rr(t,e.type);t!==n&&(Mr(vs,e),Mr(Cs,n))}function Ts(e){vs.current===e&&(Dr(Cs),Dr(vs))}var xs=0,Ds=2,Ms=4,Ps=8,Is=16,_s=32,Fs=64,Ns=128,Os=qe.ReactCurrentDispatcher,Ls=0,Bs=null,Hs=null,Us=null,Zs=null,$s=null,Ws=null,Vs=0,qs=null,Gs=0,zs=!1,js=null,Ks=0;function Ys(){o("307")}function Xs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function Qs(e,t,n,r,s,i){if(Ls=i,Bs=t,Us=null!==e?e.memoizedState:null,Os.current=null===Us?hi:pi,t=n(r,s),zs){do{zs=!1,Ks+=1,Us=null!==e?e.memoizedState:null,Ws=Zs,qs=$s=Hs=null,Os.current=pi,t=n(r,s)}while(zs);js=null,Ks=0}return Os.current=ui,(e=Bs).memoizedState=Zs,e.expirationTime=Vs,e.updateQueue=qs,e.effectTag|=Gs,e=null!==Hs&&null!==Hs.next,Ls=0,Ws=$s=Zs=Us=Hs=Bs=null,Vs=0,qs=null,Gs=0,e&&o("300"),t}function Js(){Os.current=ui,Ls=0,Ws=$s=Zs=Us=Hs=Bs=null,Vs=0,qs=null,Gs=0,zs=!1,js=null,Ks=0}function ei(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===$s?Zs=$s=e:$s=$s.next=e,$s}function ti(){if(null!==Ws)Ws=($s=Ws).next,Us=null!==(Hs=Us)?Hs.next:null;else{null===Us&&o("310");var e={memoizedState:(Hs=Us).memoizedState,baseState:Hs.baseState,queue:Hs.queue,baseUpdate:Hs.baseUpdate,next:null};$s=null===$s?Zs=e:$s.next=e,Us=Hs.next}return $s}function ni(e,t){return"function"==typeof t?t(e):t}function ri(e){var t=ti(),n=t.queue;if(null===n&&o("311"),0<Ks){var r=n.dispatch;if(null!==js){var s=js.get(n);if(void 0!==s){js.delete(n);var i=t.memoizedState;do{i=e(i,s.action),s=s.next}while(null!==s);return Jt(i,t.memoizedState)||(Ei=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.eagerReducer=e,n.eagerState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var a=t.baseUpdate;if(i=t.baseState,null!==a?(null!==r&&(r.next=null),r=a.next):r=null!==r?r.next:null,null!==r){var l=s=null,c=r,u=!1;do{var h=c.expirationTime;h<Ls?(u||(u=!0,l=a,s=i),h>Vs&&(Vs=h)):i=c.eagerReducer===e?c.eagerState:e(i,c.action),a=c,c=c.next}while(null!==c&&c!==r);u||(l=a,s=i),Jt(i,t.memoizedState)||(Ei=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=s,n.eagerReducer=e,n.eagerState=i}return[t.memoizedState,n.dispatch]}function si(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===qs?(qs={lastEffect:null}).lastEffect=e.next=e:null===(t=qs.lastEffect)?qs.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,qs.lastEffect=e),e}function ii(e,t,n,r){var s=ei();Gs|=e,s.memoizedState=si(t,n,void 0,void 0===r?null:r)}function oi(e,t,n,r){var s=ti();r=void 0===r?null:r;var i=void 0;if(null!==Hs){var o=Hs.memoizedState;if(i=o.destroy,null!==r&&Xs(r,o.deps))return void si(xs,n,i,r)}Gs|=e,s.memoizedState=si(t,n,i,r)}function ai(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function li(){}function ci(e,t,n){25>Ks||o("301");var r=e.alternate;if(e===Bs||null!==r&&r===Bs)if(zs=!0,e={expirationTime:Ls,action:n,eagerReducer:null,eagerState:null,next:null},null===js&&(js=new Map),void 0===(n=js.get(t)))js.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{qo();var s=Aa(),i={expirationTime:s=Xo(s,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)i.next=i;else{var l=a.next;null!==l&&(i.next=l),a.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var c=t.eagerState,u=r(c,n);if(i.eagerReducer=r,i.eagerState=u,Jt(u,c))return}catch(e){}ta(e,s)}}var ui={readContext:$i,useCallback:Ys,useContext:Ys,useEffect:Ys,useImperativeHandle:Ys,useLayoutEffect:Ys,useMemo:Ys,useReducer:Ys,useRef:Ys,useState:Ys,useDebugValue:Ys},hi={readContext:$i,useCallback:function(e,t){return ei().memoizedState=[e,void 0===t?null:t],e},useContext:$i,useEffect:function(e,t){return ii(516,Ns|Fs,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ii(4,Ms|_s,ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ii(4,Ms|_s,e,t)},useMemo:function(e,t){var n=ei();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ei();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=ci.bind(null,Bs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ei().memoizedState=e},useState:function(e){var t=ei();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:ni,eagerState:e}).dispatch=ci.bind(null,Bs,e),[t.memoizedState,e]},useDebugValue:li},pi={readContext:$i,useCallback:function(e,t){var n=ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:$i,useEffect:function(e,t){return oi(516,Ns|Fs,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,Ms|_s,ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4,Ms|_s,e,t)},useMemo:function(e,t){var n=ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ri,useRef:function(){return ti().memoizedState},useState:function(e){return ri(ni)},useDebugValue:li},di=null,mi=null,fi=!1;function gi(e,t){var n=zr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function yi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function wi(e){if(fi){var t=mi;if(t){var n=t;if(!yi(e,t)){if(!(t=Rr(n))||!yi(e,t))return e.effectTag|=2,fi=!1,void(di=e);gi(di,n)}di=e,mi=Ar(t)}else e.effectTag|=2,fi=!1,di=e}}function bi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;di=e}function Ci(e){if(e!==di)return!1;if(!fi)return bi(e),fi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Cr(t,e.memoizedProps))for(t=mi;t;)gi(e,t),t=Rr(t);return bi(e),mi=di?Rr(e.stateNode):null,!0}function vi(){mi=di=null,fi=!1}var Si=qe.ReactCurrentOwner,Ei=!1;function ki(e,t,n,r){t.child=null===e?ws(t,null,n,r):ys(t,e.child,n,r)}function Ri(e,t,n,r,s){n=n.render;var i=t.ref;return Zi(t,s),r=Qs(e,t,n,r,i,s),null===e||Ei?(t.effectTag|=1,ki(e,t,r,s),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=s&&(e.expirationTime=0),Fi(e,t,s))}function Ai(e,t,n,r,s,i){if(null===e){var o=n.type;return"function"!=typeof o||jr(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Yr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ti(e,t,o,r,s,i))}return o=e.child,s<i&&(s=o.memoizedProps,(n=null!==(n=n.compare)?n:tn)(s,r)&&e.ref===t.ref)?Fi(e,t,i):(t.effectTag|=1,(e=Kr(o,r)).ref=t.ref,e.return=t,t.child=e)}function Ti(e,t,n,r,s,i){return null!==e&&tn(e.memoizedProps,r)&&e.ref===t.ref&&(Ei=!1,s<i)?Fi(e,t,i):Di(e,t,n,r,i)}function xi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Di(e,t,n,r,s){var i=Or(n)?Fr:Ir.current;return i=Nr(t,i),Zi(t,s),n=Qs(e,t,n,r,i,s),null===e||Ei?(t.effectTag|=1,ki(e,t,n,s),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=s&&(e.expirationTime=0),Fi(e,t,s))}function Mi(e,t,n,r,s){if(Or(n)){var i=!0;Zr(t)}else i=!1;if(Zi(t,s),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),us(t,n,r),ps(t,n,r,s),r=!0;else if(null===e){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;c="object"==typeof c&&null!==c?$i(c):Nr(t,c=Or(n)?Fr:Ir.current);var u=n.getDerivedStateFromProps,h="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;h||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==r||l!==c)&&hs(t,o,r,c),zi=!1;var p=t.memoizedState;l=o.state=p;var d=t.updateQueue;null!==d&&(no(t,d,r,o,s),l=t.memoizedState),a!==r||p!==l||_r.current||zi?("function"==typeof u&&(as(t,n,u,r),l=t.memoizedState),(a=zi||cs(t,n,a,r,p,l,c))?(h||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):("function"==typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,a=t.memoizedProps,o.props=t.type===t.elementType?a:is(t.type,a),l=o.context,c="object"==typeof(c=n.contextType)&&null!==c?$i(c):Nr(t,c=Or(n)?Fr:Ir.current),(h="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==r||l!==c)&&hs(t,o,r,c),zi=!1,l=t.memoizedState,p=o.state=l,null!==(d=t.updateQueue)&&(no(t,d,r,o,s),p=t.memoizedState),a!==r||l!==p||_r.current||zi?("function"==typeof u&&(as(t,n,u,r),p=t.memoizedState),(u=zi||cs(t,n,a,r,l,p,c))?(h||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,c),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=c,r=u):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Pi(e,t,n,r,i,s)}function Pi(e,t,n,r,s,i){xi(e,t);var o=!!(64&t.effectTag);if(!r&&!o)return s&&$r(t,n,!1),Fi(e,t,i);r=t.stateNode,Si.current=t;var a=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=ys(t,e.child,null,i),t.child=ys(t,null,a,i)):ki(e,t,a,i),t.memoizedState=r.state,s&&$r(t,n,!0),t.child}function Ii(e){var t=e.stateNode;t.pendingContext?Hr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Hr(0,t.context,!1),ks(e,t.containerInfo)}function _i(e,t,n){var r=t.mode,s=t.pendingProps,i=t.memoizedState;if(64&t.effectTag)i={timedOutAt:null!==i?i.timedOutAt:0},o=!0,t.effectTag&=-65;else{i=null;var o=!1}if(null===e)if(o){var a=s.fallback;e=Xr(null,r,0,null),!(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=Xr(a,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=ws(t,null,s.children,n);else null!==e.memoizedState?(a=(r=e.child).sibling,o?(n=s.fallback,s=Kr(r,r.pendingProps),!(1&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(s.child=o),r=s.sibling=Kr(a,n,a.expirationTime),n=s,s.childExpirationTime=0,n.return=r.return=t):n=r=ys(t,r.child,s.children,n)):(a=e.child,o?(o=s.fallback,(s=Xr(null,r,0,null)).child=a,!(1&t.mode)&&(s.child=null!==t.memoizedState?t.child.child:t.child),(r=s.sibling=Xr(o,r,n,null)).effectTag|=2,n=s,s.childExpirationTime=0,n.return=r.return=t):r=n=ys(t,a,s.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,r}function Fi(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&o("153"),null!==t.child){for(n=Kr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}var Ni={current:null},Oi=null,Li=null,Bi=null;function Hi(e,t){var n=e.type._context;Mr(Ni,n._currentValue),n._currentValue=t}function Ui(e){var t=Ni.current;Dr(Ni),e.type._context._currentValue=t}function Zi(e,t){Oi=e,Bi=Li=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(Ei=!0),e.contextDependencies=null}function $i(e,t){return Bi!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Bi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Li?(null===Oi&&o("308"),Li=t,Oi.contextDependencies={first:t,expirationTime:0}):Li=Li.next=t),e._currentValue}var Wi=0,Vi=1,qi=2,Gi=3,zi=!1;function ji(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ki(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yi(e){return{expirationTime:e,tag:Wi,payload:null,callback:null,next:null,nextEffect:null}}function Xi(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Qi(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,s=null;null===r&&(r=e.updateQueue=ji(e.memoizedState))}else r=e.updateQueue,s=n.updateQueue,null===r?null===s?(r=e.updateQueue=ji(e.memoizedState),s=n.updateQueue=ji(n.memoizedState)):r=e.updateQueue=Ki(s):null===s&&(s=n.updateQueue=Ki(r));null===s||r===s?Xi(r,t):null===r.lastUpdate||null===s.lastUpdate?(Xi(r,t),Xi(s,t)):(Xi(r,t),s.lastUpdate=t)}function Ji(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=ji(e.memoizedState):eo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function eo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Ki(t)),t}function to(e,t,n,r,i,o){switch(n.tag){case Vi:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case Gi:e.effectTag=-2049&e.effectTag|64;case Wi:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return s({},r,i);case qi:zi=!0}return r}function no(e,t,n,r,s){zi=!1;for(var i=(t=eo(e,t)).baseState,o=null,a=0,l=t.firstUpdate,c=i;null!==l;){var u=l.expirationTime;u<s?(null===o&&(o=l,i=c),a<u&&(a=u)):(c=to(e,0,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(u=null,l=t.firstCapturedUpdate;null!==l;){var h=l.expirationTime;h<s?(null===u&&(u=l,null===o&&(i=c)),a<h&&(a=h)):(c=to(e,0,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===o&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===o&&null===u&&(i=c),t.baseState=i,t.firstUpdate=o,t.firstCapturedUpdate=u,e.expirationTime=a,e.memoizedState=c}function ro(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),so(t.firstEffect,n),t.firstEffect=t.lastEffect=null,so(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function so(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&o("191",n),n.call(r)}e=e.nextEffect}}function io(e,t){return{value:e,source:t,stack:ct(t)}}function oo(e){e.effectTag|=4}var ao=void 0,lo=void 0,co=void 0,uo=void 0;ao=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},lo=function(){},co=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(Es(Cs.current),e=null,n){case"input":o=Ct(a,o),r=Ct(a,r),e=[];break;case"option":o=Kn(a,o),r=Kn(a,r),e=[];break;case"select":o=s({},o,{value:void 0}),r=s({},r,{value:void 0}),e=[];break;case"textarea":o=Xn(a,o),r=Xn(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=gr)}dr(n,r),a=n=void 0;var l=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var c=o[n];for(a in c)c.hasOwnProperty(a)&&(l||(l={}),l[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(C.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(c=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==c&&(null!=u||null!=c))if("style"===n)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(l||(l={}),l[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(l||(l={}),l[a]=u[a])}else l||(e||(e=[]),e.push(n,l)),l=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(n,""+u)):"children"===n?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(C.hasOwnProperty(n)?(null!=u&&fr(i,n),e||c===u||(e=[])):(e=e||[]).push(n,u))}l&&(e=e||[]).push("style",l),i=e,(t.updateQueue=i)&&oo(t)}},uo=function(e,t,n,r){n!==r&&oo(t)};var ho="function"==typeof WeakSet?WeakSet:Set;function po(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ct(n)),null!==n&&lt(n.type),t=t.value,null!==e&&1===e.tag&&lt(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function mo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Yo(e,t)}else t.current=null}function fo(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==xs){var s=r.destroy;r.destroy=void 0,void 0!==s&&s()}(r.tag&t)!==xs&&(s=r.create,r.destroy=s()),r=r.next}while(r!==n)}}function go(e){switch("function"==typeof Vr&&Vr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var s=e;try{r()}catch(e){Yo(s,e)}}n=n.next}while(n!==t)}break;case 1:if(mo(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Yo(e,t)}break;case 5:mo(e);break;case 4:bo(e)}}function yo(e){return 5===e.tag||3===e.tag||4===e.tag}function wo(e){e:{for(var t=e.return;null!==t;){if(yo(t)){var n=t;break e}t=t.return}o("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:o("161")}16&n.effectTag&&(ar(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var s=e;;){if(5===s.tag||6===s.tag)if(n)if(r){var i=t,a=s.stateNode,l=n;8===i.nodeType?i.parentNode.insertBefore(a,l):i.insertBefore(a,l)}else t.insertBefore(s.stateNode,n);else r?(a=t,l=s.stateNode,8===a.nodeType?(i=a.parentNode).insertBefore(l,a):(i=a).appendChild(l),null!=(a=a._reactRootContainer)||null!==i.onclick||(i.onclick=gr)):t.appendChild(s.stateNode);else if(4!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===e)break;for(;null===s.sibling;){if(null===s.return||s.return===e)return;s=s.return}s.sibling.return=s.return,s=s.sibling}}function bo(e){for(var t=e,n=!1,r=void 0,s=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&o("160"),n.tag){case 5:r=n.stateNode,s=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,s=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,a=i;;)if(go(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===i)break;for(;null===a.sibling;){if(null===a.return||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}s?(i=r,a=t.stateNode,8===i.nodeType?i.parentNode.removeChild(a):i.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,s=!0,t.child.return=t,t=t.child;continue}}else if(go(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:fo(Ms,Ps,t);break;case 1:case 3:case 12:case 17:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var s=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,r,s){e[N]=s,"input"===n&&"radio"===s.type&&null!=s.name&&St(e,s),mr(n,r),r=mr(n,s);for(var i=0;i<t.length;i+=2){var o=t[i],a=t[i+1];"style"===o?hr(e,a):"dangerouslySetInnerHTML"===o?or(e,a):"children"===o?ar(e,a):wt(e,o,a,r)}switch(n){case"input":Et(e,s);break;case"textarea":Jn(e,s);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!s.multiple,null!=(n=s.value)?Yn(e,!!s.multiple,n,!1):t!==!!s.multiple&&(null!=s.defaultValue?Yn(e,!!s.multiple,s.defaultValue,!0):Yn(e,!!s.multiple,s.multiple?[]:"",!1))}}(n,i,s,e,r)}break;case 6:null===t.stateNode&&o("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Aa())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=null!=s&&s.hasOwnProperty("display")?s.display:null,r.style.display=ur("display",s)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new ho),n.forEach((function(e){var n=Jo.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;default:o("163")}}var vo="function"==typeof WeakMap?WeakMap:Map;function So(e,t,n){(n=Yi(n)).tag=Gi,n.payload={element:null};var r=t.value;return n.callback=function(){Oa(r),po(e,t)},n}function Eo(e,t,n){(n=Yi(n)).tag=Gi;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var s=t.value;n.payload=function(){return r(s)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ho?Ho=new Set([this]):Ho.add(this));var n=t.value,s=t.stack;po(e,t),this.componentDidCatch(n,{componentStack:null!==s?s:""})}),n}function ko(e){switch(e.tag){case 1:Or(e.type)&&Lr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Rs(),Br(),64&(t=e.effectTag)&&o("285"),e.effectTag=-2049&t|64,e;case 5:return Ts(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:default:return null;case 4:return Rs(),null;case 10:return Ui(e),null}}var Ro=qe.ReactCurrentDispatcher,Ao=qe.ReactCurrentOwner,To=1073741822,xo=!1,Do=null,Mo=null,Po=0,Io=-1,_o=!1,Fo=null,No=!1,Oo=null,Lo=null,Bo=null,Ho=null;function Uo(){if(null!==Do)for(var e=Do.return;null!==e;){var t=e;switch(t.tag){case 1:null!=t.type.childContextTypes&&Lr();break;case 3:Rs(),Br();break;case 5:Ts(t);break;case 4:Rs();break;case 10:Ui(t)}e=e.return}Mo=null,Po=0,Io=-1,_o=!1,Do=null}function Zo(){for(;null!==Fo;){var e=Fo.effectTag;if(16&e&&ar(Fo.stateNode,""),128&e){var t=Fo.alternate;null!==t&&null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null)}switch(14&e){case 2:wo(Fo),Fo.effectTag&=-3;break;case 6:wo(Fo),Fo.effectTag&=-3,Co(Fo.alternate,Fo);break;case 4:Co(Fo.alternate,Fo);break;case 8:bo(e=Fo),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Fo=Fo.nextEffect}}function $o(){for(;null!==Fo;){if(256&Fo.effectTag)e:{var e=Fo.alternate,t=Fo;switch(t.tag){case 0:case 11:case 15:fo(Ds,xs,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:is(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:o("163")}}Fo=Fo.nextEffect}}function Wo(e,t){for(;null!==Fo;){var n=Fo.effectTag;if(36&n){var r=Fo.alternate,s=Fo,i=t;switch(s.tag){case 0:case 11:case 15:fo(Is,_s,s);break;case 1:var a=s.stateNode;if(4&s.effectTag)if(null===r)a.componentDidMount();else{var l=s.elementType===s.type?r.memoizedProps:is(s.type,r.memoizedProps);a.componentDidUpdate(l,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(r=s.updateQueue)&&ro(0,r,a);break;case 3:if(null!==(r=s.updateQueue)){if(a=null,null!==s.child)switch(s.child.tag){case 5:case 1:a=s.child.stateNode}ro(0,r,a)}break;case 5:i=s.stateNode,null===r&&4&s.effectTag&&br(s.type,s.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:o("163")}}128&n&&null!==(s=Fo.ref)&&(i=Fo.stateNode,"function"==typeof s?s(i):s.current=i),512&n&&(Oo=e),Fo=Fo.nextEffect}}function Vo(e,t){Bo=Lo=Oo=null;var n=aa;aa=!0;do{if(512&t.effectTag){var r=!1,s=void 0;try{var i=t;fo(Ns,xs,i),fo(xs,Fs,i)}catch(e){r=!0,s=e}r&&Yo(t,s)}t=t.nextEffect}while(null!==t);aa=n,0!==(n=e.expirationTime)&&Ta(e,n),da||aa||Ia(1073741823,!1)}function qo(){null!==Lo&&kr(Lo),null!==Bo&&Bo()}function Go(e,t){No=xo=!0,e.current===t&&o("177");var n=e.pendingCommitExpirationTime;0===n&&o("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,s=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?ts(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,ts(e,t)):t>n&&ts(e,t)}ss(0,e)}(e,s>r?s:r),Ao.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,yr=Rn,wr=function(){var e=Bn();if(Hn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{t.nodeType,s.nodeType}catch(e){t=null;break e}var i=0,o=-1,a=-1,l=0,c=0,u=e,h=null;t:for(;;){for(var p;u!==t||0!==r&&3!==u.nodeType||(o=i+r),u!==s||0!==n&&3!==u.nodeType||(a=i+n),3===u.nodeType&&(i+=u.nodeValue.length),null!==(p=u.firstChild);)h=u,u=p;for(;;){if(u===e)break t;if(h===t&&++l===r&&(o=i),h===s&&++c===n&&(a=i),null!==(p=u.nextSibling))break;h=(u=h).parentNode}u=p}t=-1===o||-1===a?null:{start:o,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),Rn=!1,Fo=r;null!==Fo;){s=!1;var a=void 0;try{$o()}catch(e){s=!0,a=e}s&&(null===Fo&&o("178"),Yo(Fo,a),null!==Fo&&(Fo=Fo.nextEffect))}for(Fo=r;null!==Fo;){s=!1,a=void 0;try{Zo()}catch(e){s=!0,a=e}s&&(null===Fo&&o("178"),Yo(Fo,a),null!==Fo&&(Fo=Fo.nextEffect))}for(Un(wr),wr=null,Rn=!!yr,yr=null,e.current=t,Fo=r;null!==Fo;){s=!1,a=void 0;try{Wo(e,n)}catch(e){s=!0,a=e}s&&(null===Fo&&o("178"),Yo(Fo,a),null!==Fo&&(Fo=Fo.nextEffect))}if(null!==r&&null!==Oo){var l=Vo.bind(null,e,r);Lo=i.unstable_runWithPriority(i.unstable_NormalPriority,(function(){return Er(l)})),Bo=l}xo=No=!1,"function"==typeof Wr&&Wr(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Ho=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function zo(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(1024&e.effectTag){if(null!==(e=ko(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}else{Do=e;e:{var i=t,a=Po,l=(t=e).pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 18:break;case 1:case 17:Or(t.type)&&Lr();break;case 3:Rs(),Br(),(l=t.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==i&&null!==i.child||(Ci(t),t.effectTag&=-3),lo(t);break;case 5:Ts(t);var c=Es(Ss.current);if(a=t.type,null!==i&&null!=t.stateNode)co(i,t,a,l,c),i.ref!==t.ref&&(t.effectTag|=128);else if(l){var u=Es(Cs.current);if(Ci(t)){i=(l=t).stateNode;var h=l.type,p=l.memoizedProps,d=c;switch(i[F]=l,i[N]=p,a=void 0,c=h){case"iframe":case"object":An("load",i);break;case"video":case"audio":for(h=0;h<ne.length;h++)An(ne[h],i);break;case"source":An("error",i);break;case"img":case"image":case"link":An("error",i),An("load",i);break;case"form":An("reset",i),An("submit",i);break;case"details":An("toggle",i);break;case"input":vt(i,p),An("invalid",i),fr(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!p.multiple},An("invalid",i),fr(d,"onChange");break;case"textarea":Qn(i,p),An("invalid",i),fr(d,"onChange")}for(a in dr(c,p),h=null,p)p.hasOwnProperty(a)&&(u=p[a],"children"===a?"string"==typeof u?i.textContent!==u&&(h=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(h=["children",""+u]):C.hasOwnProperty(a)&&null!=u&&fr(d,a));switch(c){case"input":We(i),kt(i,p,!0);break;case"textarea":We(i),er(i);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(i.onclick=gr)}a=h,l.updateQueue=a,(l=null!==a)&&oo(t)}else{p=t,i=a,d=l,h=9===c.nodeType?c:c.ownerDocument,u===tr.html&&(u=nr(i)),u===tr.html?"script"===i?((i=h.createElement("div")).innerHTML="<script><\/script>",h=i.removeChild(i.firstChild)):"string"==typeof d.is?h=h.createElement(i,{is:d.is}):(h=h.createElement(i),"select"===i&&d.multiple&&(h.multiple=!0)):h=h.createElementNS(u,i),(i=h)[F]=p,i[N]=l,ao(i,t,!1,!1),d=i;var m=c,f=mr(h=a,p=l);switch(h){case"iframe":case"object":An("load",d),c=p;break;case"video":case"audio":for(c=0;c<ne.length;c++)An(ne[c],d);c=p;break;case"source":An("error",d),c=p;break;case"img":case"image":case"link":An("error",d),An("load",d),c=p;break;case"form":An("reset",d),An("submit",d),c=p;break;case"details":An("toggle",d),c=p;break;case"input":vt(d,p),c=Ct(d,p),An("invalid",d),fr(m,"onChange");break;case"option":c=Kn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},c=s({},p,{value:void 0}),An("invalid",d),fr(m,"onChange");break;case"textarea":Qn(d,p),c=Xn(d,p),An("invalid",d),fr(m,"onChange");break;default:c=p}dr(h,c),u=void 0;var g=h,y=d,w=c;for(u in w)if(w.hasOwnProperty(u)){var b=w[u];"style"===u?hr(y,b):"dangerouslySetInnerHTML"===u?null!=(b=b?b.__html:void 0)&&or(y,b):"children"===u?"string"==typeof b?("textarea"!==g||""!==b)&&ar(y,b):"number"==typeof b&&ar(y,""+b):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(C.hasOwnProperty(u)?null!=b&&fr(m,u):null!=b&&wt(y,u,b,f))}switch(h){case"input":We(d),kt(d,p,!1);break;case"textarea":We(d),er(d);break;case"option":null!=p.value&&d.setAttribute("value",""+bt(p.value));break;case"select":(c=d).multiple=!!p.multiple,null!=(d=p.value)?Yn(c,!!p.multiple,d,!1):null!=p.defaultValue&&Yn(c,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof c.onClick&&(d.onclick=gr)}(l=br(a,l))&&oo(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&o("166");break;case 6:i&&null!=t.stateNode?uo(i,t,i.memoizedProps,l):("string"!=typeof l&&null===t.stateNode&&o("166"),i=Es(Ss.current),Es(Cs.current),Ci(t)?(a=(l=t).stateNode,i=l.memoizedProps,a[F]=l,(l=a.nodeValue!==i)&&oo(t)):(a=t,(l=(9===i.nodeType?i:i.ownerDocument).createTextNode(l))[F]=t,a.stateNode=l));break;case 13:if(l=t.memoizedState,64&t.effectTag){t.expirationTime=a,Do=t;break e}l=null!==l,a=null!==i&&null!==i.memoizedState,null!==i&&!l&&a&&null!==(i=i.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=i,i.nextEffect=c):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8),(l||a)&&(t.effectTag|=4);break;case 4:Rs(),lo(t);break;case 10:Ui(t);break;default:o("156")}Do=null}if(t=e,1===Po||1!==t.childExpirationTime){for(l=0,a=t.child;null!==a;)(i=a.expirationTime)>l&&(l=i),(c=a.childExpirationTime)>l&&(l=c),a=a.sibling;t.childExpirationTime=l}if(null!==Do)return Do;null!==n&&!(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}if(null!==r)return r;if(null===n)break;e=n}return null}function jo(e){var t=function(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||_r.current)Ei=!0;else if(r<n){switch(Ei=!1,t.tag){case 3:Ii(t),vi();break;case 5:As(t);break;case 1:Or(t.type)&&Zr(t);break;case 4:ks(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?_i(e,t,n):null!==(t=Fi(e,t,n))?t.sibling:null}return Fi(e,t,n)}}else Ei=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var s=Nr(t,Ir.current);if(Zi(t,n),s=Qs(null,t,r,e,s,n),t.effectTag|=1,"object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof){if(t.tag=1,Js(),Or(r)){var i=!0;Zr(t)}else i=!1;t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&as(t,r,a,e),s.updater=ls,t.stateNode=s,s._reactInternalFiber=t,ps(t,r,e,n),t=Pi(null,t,r,!0,i,n)}else t.tag=0,ki(null,t,s,n),t=t.child;return t;case 16:switch(s=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(s),t.type=e,s=t.tag=function(e){if("function"==typeof e)return jr(e)?1:0;if(null!=e){if((e=e.$$typeof)===nt)return 11;if(e===st)return 14}return 2}(e),i=is(e,i),a=void 0,s){case 0:a=Di(null,t,e,i,n);break;case 1:a=Mi(null,t,e,i,n);break;case 11:a=Ri(null,t,e,i,n);break;case 14:a=Ai(null,t,e,is(e.type,i),r,n);break;default:o("306",e,"")}return a;case 0:return r=t.type,s=t.pendingProps,Di(e,t,r,s=t.elementType===r?s:is(r,s),n);case 1:return r=t.type,s=t.pendingProps,Mi(e,t,r,s=t.elementType===r?s:is(r,s),n);case 3:return Ii(t),null===(r=t.updateQueue)&&o("282"),s=null!==(s=t.memoizedState)?s.element:null,no(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===s?(vi(),t=Fi(e,t,n)):(s=t.stateNode,(s=(null===e||null===e.child)&&s.hydrate)&&(mi=Ar(t.stateNode.containerInfo),di=t,s=fi=!0),s?(t.effectTag|=2,t.child=ws(t,null,r,n)):(ki(e,t,r,n),vi()),t=t.child),t;case 5:return As(t),null===e&&wi(t),r=t.type,s=t.pendingProps,i=null!==e?e.memoizedProps:null,a=s.children,Cr(r,s)?a=null:null!==i&&Cr(r,i)&&(t.effectTag|=16),xi(e,t),1!==n&&1&t.mode&&s.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ki(e,t,a,n),t=t.child),t;case 6:return null===e&&wi(t),null;case 13:return _i(e,t,n);case 4:return ks(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ys(t,null,r,n):ki(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,Ri(e,t,r,s=t.elementType===r?s:is(r,s),n);case 7:return ki(e,t,t.pendingProps,n),t.child;case 8:case 12:return ki(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,a=t.memoizedProps,Hi(t,i=s.value),null!==a){var l=a.value;if(0==(i=Jt(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(a.children===s.children&&!_r.current){t=Fi(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.contextDependencies;if(null!==c){a=l.child;for(var u=c.first;null!==u;){if(u.context===r&&u.observedBits&i){1===l.tag&&((u=Yi(n)).tag=qi,Qi(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var h=l.return;null!==h;){var p=h.alternate;if(h.childExpirationTime<u)h.childExpirationTime=u,null!==p&&p.childExpirationTime<u&&(p.childExpirationTime=u);else{if(!(null!==p&&p.childExpirationTime<u))break;p.childExpirationTime=u}h=h.return}c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}}ki(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=(i=t.pendingProps).children,Zi(t,n),r=r(s=$i(s,i.unstable_observedBits)),t.effectTag|=1,ki(e,t,r,n),t.child;case 14:return i=is(s=t.type,t.pendingProps),Ai(e,t,s,i=is(s.type,i),r,n);case 15:return Ti(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:is(r,s),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Or(r)?(e=!0,Zr(t)):e=!1,Zi(t,n),us(t,r,s),ps(t,r,s,n),Pi(null,t,r,!0,e,n)}o("156")}(e.alternate,e,Po);return e.memoizedProps=e.pendingProps,null===t&&(t=zo(e)),Ao.current=null,t}function Ko(e,t){xo&&o("243"),qo(),xo=!0;var n=Ro.current;Ro.current=ui;var r=e.nextExpirationTimeToWorkOn;r===Po&&e===Mo&&null!==Do||(Uo(),Po=r,Do=Kr((Mo=e).current,null),e.pendingCommitExpirationTime=0);for(var s=!1;;){try{if(t)for(;null!==Do&&!Ma();)Do=jo(Do);else for(;null!==Do;)Do=jo(Do)}catch(t){if(Bi=Li=Oi=null,Js(),null===Do)s=!0,Oa(t);else{null===Do&&o("271");var i=Do,a=i.return;if(null!==a){e:{var l=e,c=a,u=i,h=t;if(a=Po,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==h&&"object"==typeof h&&"function"==typeof h.then){var p=h;h=c;var d=-1,m=-1;do{if(13===h.tag){var f=h.alternate;if(null!==f&&null!==(f=f.memoizedState)){m=10*(1073741822-f.timedOutAt);break}"number"==typeof(f=h.pendingProps.maxDuration)&&(0>=f?d=0:(-1===d||f<d)&&(d=f))}h=h.return}while(null!==h);h=c;do{if((f=13===h.tag)&&(f=void 0!==h.memoizedProps.fallback&&null===h.memoizedState),f){if(null===(c=h.updateQueue)?((c=new Set).add(p),h.updateQueue=c):c.add(p),!(1&h.mode)){h.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((a=Yi(1073741823)).tag=qi,Qi(u,a))),u.expirationTime=1073741823;break e}c=a;var g=(u=l).pingCache;null===g?(g=u.pingCache=new vo,f=new Set,g.set(p,f)):void 0===(f=g.get(p))&&(f=new Set,g.set(p,f)),f.has(c)||(f.add(c),u=Qo.bind(null,u,p,c),p.then(u,u)),-1===d?l=1073741823:(-1===m&&(m=10*(1073741822-rs(l,a))-5e3),l=m+d),0<=l&&Io<l&&(Io=l),h.effectTag|=2048,h.expirationTime=a;break e}h=h.return}while(null!==h);h=Error((lt(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ct(u))}_o=!0,h=io(h,u),l=c;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=a,Ji(l,a=So(l,h,a));break e;case 1:if(d=h,m=l.type,u=l.stateNode,!(64&l.effectTag||"function"!=typeof m.getDerivedStateFromError&&(null===u||"function"!=typeof u.componentDidCatch||null!==Ho&&Ho.has(u)))){l.effectTag|=2048,l.expirationTime=a,Ji(l,a=Eo(l,d,a));break e}}l=l.return}while(null!==l)}Do=zo(i);continue}s=!0,Oa(t)}}break}if(xo=!1,Ro.current=n,Bi=Li=Oi=null,Js(),s)Mo=null,e.finishedWork=null;else if(null!==Do)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&o("281"),Mo=null,_o){if(s=e.latestPendingTime,i=e.latestSuspendedTime,a=e.latestPingedTime,0!==s&&s<r||0!==i&&i<r||0!==a&&a<r)return ns(e,r),void ka(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void ka(e,n,r,t,-1)}t&&-1!==Io?(ns(e,r),(t=10*(1073741822-rs(e,r)))<Io&&(Io=t),t=10*(1073741822-Aa()),t=Io-t,ka(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Yo(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ho||!Ho.has(r)))return Qi(n,e=Eo(n,e=io(t,e),1073741823)),void ta(n,1073741823);break;case 3:return Qi(n,e=So(n,e=io(t,e),1073741823)),void ta(n,1073741823)}n=n.return}3===e.tag&&(Qi(e,n=So(e,n=io(t,e),1073741823)),ta(e,1073741823))}function Xo(e,t){var n=i.unstable_getCurrentPriorityLevel(),r=void 0;if(1&t.mode)if(xo&&!No)r=Po;else{switch(n){case i.unstable_ImmediatePriority:r=1073741823;break;case i.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:r=1;break;default:o("313")}null!==Mo&&r===Po&&--r}else r=1073741823;return n===i.unstable_UserBlockingPriority&&(0===ua||r<ua)&&(ua=r),r}function Qo(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==Mo&&Po===n?Mo=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),ss(n,e),0!==(n=e.expirationTime)&&Ta(e,n)))}function Jo(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=ea(e,t=Xo(t=Aa(),e)))&&(ts(e,t),0!==(t=e.expirationTime)&&Ta(e,t))}function ea(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,s=null;if(null===r&&3===e.tag)s=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){s=r.stateNode;break}r=r.return}return s}function ta(e,t){null!==(e=ea(e,t))&&(!xo&&0!==Po&&t>Po&&Uo(),ts(e,t),xo&&!No&&Mo===e||Ta(e,e.expirationTime),Ca>ba&&(Ca=0,o("185")))}function na(e,t,n,r,s){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,(function(){return e(t,n,r,s)}))}var ra=null,sa=null,ia=0,oa=void 0,aa=!1,la=null,ca=0,ua=0,ha=!1,pa=null,da=!1,ma=!1,fa=null,ga=i.unstable_now(),ya=1073741822-(ga/10|0),wa=ya,ba=50,Ca=0,va=null;function Sa(){ya=1073741822-((i.unstable_now()-ga)/10|0)}function Ea(e,t){if(0!==ia){if(t<ia)return;null!==oa&&i.unstable_cancelCallback(oa)}ia=t,e=i.unstable_now()-ga,oa=i.unstable_scheduleCallback(Pa,{timeout:10*(1073741822-t)-e})}function ka(e,t,n,r,s){e.expirationTime=r,0!==s||Ma()?0<s&&(e.timeoutHandle=vr(Ra.bind(null,e,t,n),s)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Ra(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,Sa(),wa=ya,_a(e,n)}function Aa(){return aa||(xa(),0!==ca&&1!==ca||(Sa(),wa=ya)),wa}function Ta(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===sa?(ra=sa=e,e.nextScheduledRoot=e):(sa=sa.nextScheduledRoot=e).nextScheduledRoot=ra):t>e.expirationTime&&(e.expirationTime=t),aa||(da?ma&&(la=e,ca=1073741823,Fa(e,1073741823,!1)):1073741823===t?Ia(1073741823,!1):Ea(e,t))}function xa(){var e=0,t=null;if(null!==sa)for(var n=sa,r=ra;null!==r;){var s=r.expirationTime;if(0===s){if((null===n||null===sa)&&o("244"),r===r.nextScheduledRoot){ra=sa=r.nextScheduledRoot=null;break}if(r===ra)ra=s=r.nextScheduledRoot,sa.nextScheduledRoot=s,r.nextScheduledRoot=null;else{if(r===sa){(sa=n).nextScheduledRoot=ra,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(s>e&&(e=s,t=r),r===sa)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}la=t,ca=e}var Da=!1;function Ma(){return!!Da||!!i.unstable_shouldYield()&&(Da=!0)}function Pa(){try{if(!Ma()&&null!==ra){Sa();var e=ra;do{var t=e.expirationTime;0!==t&&ya<=t&&(e.nextExpirationTimeToWorkOn=ya),e=e.nextScheduledRoot}while(e!==ra)}Ia(0,!0)}finally{Da=!1}}function Ia(e,t){if(xa(),t)for(Sa(),wa=ya;null!==la&&0!==ca&&e<=ca&&!(Da&&ya>ca);)Fa(la,ca,ya>ca),xa(),Sa(),wa=ya;else for(;null!==la&&0!==ca&&e<=ca;)Fa(la,ca,!1),xa();if(t&&(ia=0,oa=null),0!==ca&&Ea(la,ca),Ca=0,va=null,null!==fa)for(e=fa,fa=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ha||(ha=!0,pa=e)}}if(ha)throw e=pa,pa=null,ha=!1,e}function _a(e,t){aa&&o("253"),la=e,ca=t,Fa(e,t,!1),Ia(1073741823,!1)}function Fa(e,t,n){if(aa&&o("245"),aa=!0,n){var r=e.finishedWork;null!==r?Na(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,Sr(r)),Ko(e,n),null!==(r=e.finishedWork)&&(Ma()?e.finishedWork=r:Na(e,r,t)))}else null!==(r=e.finishedWork)?Na(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,Sr(r)),Ko(e,n),null!==(r=e.finishedWork)&&Na(e,r,t));aa=!1}function Na(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===fa?fa=[r]:fa.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===va?Ca++:(va=e,Ca=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,(function(){Go(e,t)}))}function Oa(e){null===la&&o("246"),la.expirationTime=0,ha||(ha=!0,pa=e)}function La(e,t){var n=da;da=!0;try{return e(t)}finally{(da=n)||aa||Ia(1073741823,!1)}}function Ba(e,t){if(da&&!ma){ma=!0;try{return e(t)}finally{ma=!1}}return e(t)}function Ha(e,t,n){da||aa||0===ua||(Ia(ua,!1),ua=0);var r=da;da=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(da=r)||aa||Ia(1073741823,!1)}}function Ua(e,t,n,r,s){var i=t.current;e:if(n){t:{2===nn(n=n._reactInternalFiber)&&1===n.tag||o("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Or(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);o("171"),a=void 0}if(1===n.tag){var l=n.type;if(Or(l)){n=Ur(n,l,a);break e}}n=a}else n=Pr;return null===t.context?t.context=n:t.pendingContext=n,t=s,(s=Yi(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(s.callback=t),qo(),Qi(i,s),ta(i,r),r}function Za(e,t,n,r){var s=t.current;return Ua(e,t,n,s=Xo(Aa(),s),r)}function $a(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wa(e){var t=1073741822-25*(1+((1073741822-Aa()+500)/25|0));t>=To&&(t=To-1),this._expirationTime=To=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Va(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function qa(e,t,n){e={current:t=zr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Ga(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function za(e,t,n,r,s){var i=n._reactRootContainer;if(i){if("function"==typeof s){var o=s;s=function(){var e=$a(i._internalRoot);o.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,s):i.render(t,s)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new qa(e,!1,t)}(n,r),"function"==typeof s){var a=s;s=function(){var e=$a(i._internalRoot);a.call(e)}}Ba((function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,s):i.render(t,s)}))}return $a(i._internalRoot)}function ja(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ga(t)||o("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ke,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Te=function(e,t,n){switch(t){case"input":if(Et(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=H(r);s||o("90"),Ve(r),Et(r,s)}}}break;case"textarea":Jn(e,n);break;case"select":null!=(t=n.value)&&Yn(e,!!n.multiple,t,!1)}},Wa.prototype.render=function(e){this._defer||o("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Va;return Ua(e,t,null,n,r._onCommit),r},Wa.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Wa.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||o("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,s=t;s!==this;)r=s,s=s._next;null===r&&o("251"),r._next=s._next,this._next=t,e.firstBatch=this}this._defer=!1,_a(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Wa.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Va.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Va.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&o("191",n),n()}}},qa.prototype.render=function(e,t){var n=this._internalRoot,r=new Va;return null!==(t=void 0===t?null:t)&&r.then(t),Za(e,n,null,r._onCommit),r},qa.prototype.unmount=function(e){var t=this._internalRoot,n=new Va;return null!==(e=void 0===e?null:e)&&n.then(e),Za(null,t,null,n._onCommit),n},qa.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,s=new Va;return null!==(n=void 0===n?null:n)&&s.then(n),Za(t,r,e,s._onCommit),s},qa.prototype.createBatch=function(){var e=new Wa(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},_e=La,Fe=Ha,Ne=function(){aa||0===ua||(Ia(ua,!1),ua=0)};var Ka={createPortal:ja,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?o("188"):o("268",Object.keys(e))),null===(e=sn(t))?null:e.stateNode},hydrate:function(e,t,n){return Ga(t)||o("200"),za(null,e,t,!0,n)},render:function(e,t,n){return Ga(t)||o("200"),za(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return Ga(n)||o("200"),(null==e||void 0===e._reactInternalFiber)&&o("38"),za(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ga(e)||o("40"),!!e._reactRootContainer&&(Ba((function(){za(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return ja.apply(void 0,arguments)},unstable_batchedUpdates:La,unstable_interactiveUpdates:Ha,flushSync:function(e,t){aa&&o("187");var n=da;da=!0;try{return na(e,t)}finally{da=n,Ia(1073741823,!1)}},unstable_createRoot:function(e,t){return Ga(e)||o("299","unstable_createRoot"),new qa(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=da;da=!0;try{na(e)}finally{(da=t)||aa||Ia(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[L,B,H,M.injectEventPluginsByName,b,q,function(e){T(e,V)},Pe,Ie,Dn,I]}};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Wr=qr((function(e){return t.onCommitFiberRoot(n,e)})),Vr=qr((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}}(s({},e,{overrideProps:null,currentDispatcherRef:qe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:O,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var Ya={default:Ka},Xa=Ya&&Ka||Ya;e.exports=Xa.default||Xa},4425:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1615)},9391:(e,t,n)=>{"use strict";var r=n(5412),s="function"==typeof Symbol&&Symbol.for,i=s?Symbol.for("react.element"):60103,o=s?Symbol.for("react.portal"):60106,a=s?Symbol.for("react.fragment"):60107,l=s?Symbol.for("react.strict_mode"):60108,c=s?Symbol.for("react.profiler"):60114,u=s?Symbol.for("react.provider"):60109,h=s?Symbol.for("react.context"):60110,p=s?Symbol.for("react.concurrent_mode"):60111,d=s?Symbol.for("react.forward_ref"):60112,m=s?Symbol.for("react.suspense"):60113,f=s?Symbol.for("react.memo"):60115,g=s?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function w(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var r=[n,void 0,void 0,void 0,void 0,void 0],s=0;(e=Error(t.replace(/%s/g,(function(){return r[s++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function v(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||b}function S(){}function E(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||b}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&w("85"),this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=v.prototype;var k=E.prototype=new S;k.constructor=E,r(k,v.prototype),k.isPureReactComponent=!0;var R={current:null},A={current:null},T=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function D(e,t,n){var r=void 0,s={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)T.call(t,r)&&!x.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(1===l)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===s[r]&&(s[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:a,props:s,_owner:A.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,I=[];function _(e,t,n,r){if(I.length){var s=I.pop();return s.result=e,s.keyPrefix=t,s.func=n,s.context=r,s.count=0,s}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function N(e,t,n,r){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var a=!1;if(null===e)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case i:case o:a=!0}}if(a)return n(r,e,""===t?"."+L(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+L(s=e[l],l);a+=N(s,c,n,r)}else if("function"==typeof(c=null===e||"object"!=typeof e?null:"function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null))for(e=c.call(e),l=0;!(s=e.next()).done;)a+=N(s=s.value,c=t+L(s,l++),n,r);else"object"===s&&w("31","[object Object]"==(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function O(e,t,n){return null==e?0:N(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function B(e,t){e.func.call(e.context,t,e.count++)}function H(e,t,n){var r=e.result,s=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,r,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,s+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function U(e,t,n,r,s){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),O(e,H,t=_(t,i,r,s)),F(t)}function Z(){var e=R.current;return null===e&&w("307"),e}var $={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return U(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;O(e,B,t=_(null,null,t,n)),F(t)},count:function(e){return O(e,(function(){return null}),null)},toArray:function(e){var t=[];return U(e,t,null,(function(e){return e})),t},only:function(e){return M(e)||w("143"),e}},createRef:function(){return{current:null}},Component:v,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return Z().useCallback(e,t)},useContext:function(e,t){return Z().useContext(e,t)},useEffect:function(e,t){return Z().useEffect(e,t)},useImperativeHandle:function(e,t,n){return Z().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return Z().useLayoutEffect(e,t)},useMemo:function(e,t){return Z().useMemo(e,t)},useReducer:function(e,t,n){return Z().useReducer(e,t,n)},useRef:function(e){return Z().useRef(e)},useState:function(e){return Z().useState(e)},Fragment:a,StrictMode:l,Suspense:m,createElement:D,cloneElement:function(e,t,n){null==e&&w("267",e);var s=void 0,o=r({},e.props),a=e.key,l=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,c=A.current),void 0!==t.key&&(a=""+t.key);var u=void 0;for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)T.call(t,s)&&!x.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}if(1==(s=arguments.length-2))o.children=n;else if(1<s){u=Array(s);for(var h=0;h<s;h++)u[h]=arguments[h+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:c}},createFactory:function(e){var t=D.bind(null,e);return t.type=e,t},isValidElement:M,version:"16.8.4",unstable_ConcurrentMode:p,unstable_Profiler:c,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:R,ReactCurrentOwner:A,assign:r}},W={default:$},V=W&&$||W;e.exports=V.default||V},7252:(e,t,n)=>{"use strict";e.exports=n(9391)},5303:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(8168),t)},8168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setValueSafe=t.setValue=t.createKeySafe=t.createKey=t.enumerateKeysSafe=t.enumerateKeys=t.enumerateValuesSafe=t.enumerateValues=t.HKEY=t.RegistryValueType=void 0;const r=n(1951);var s,i;function o(e){return e===i.HKEY_CLASSES_ROOT?2147483648:e===i.HKEY_CURRENT_USER?2147483649:e===i.HKEY_LOCAL_MACHINE?2147483650:e===i.HKEY_USERS?2147483651:e===i.HKEY_PERFORMANCE_DATA?2147483652:e===i.HKEY_CURRENT_CONFIG?2147483653:e===i.HKEY_DYN_DATA?2147483654:e===i.HKEY_CURRENT_USER_LOCAL_SETTINGS?2147483655:e===i.HKEY_PERFORMANCE_TEXT?2147483728:e===i.HKEY_PERFORMANCE_NLSTEXT?2147483744:function(){throw new Error("The key does not map to an expected number value")}()}function a(e,t){if(!r)return[];const n=o(e);return r.readValues(n,t)}function l(e,t){if(!r)return[];const n=o(e);return r.enumKeys(n,t)}function c(e,t){if(!r)return!1;const n=o(e);return r.createKey(n,t)}function u(e,t,n,i,a){if(!r)return!1;if(i!=s.REG_SZ&&i!=s.REG_EXPAND_SZ&&i!=s.REG_DWORD)return!1;const l=o(e);return r.setValue(l,t,n,i,a)}!function(e){e.REG_BINARY="REG_BINARY",e.REG_DWORD="REG_DWORD",e.REG_DWORD_LITTLE_ENDIAN="REG_DWORD_LITTLE_ENDIAN",e.REG_DWORD_BIG_ENDIAN="REG_DWORD_BIG_ENDIAN",e.REG_EXPAND_SZ="REG_EXPAND_SZ",e.REG_LINK="REG_LINK",e.REG_MULTI_SZ="REG_MULTI_SZ",e.REG_NONE="REG_NONE",e.REG_QWORD="REG_QWORD",e.REG_QWORD_LITTLE_ENDIAN="REG_QWORD_LITTLE_ENDIAN",e.REG_SZ="REG_SZ"}(s=t.RegistryValueType||(t.RegistryValueType={})),function(e){e.HKEY_CLASSES_ROOT="HKEY_CLASSES_ROOT",e.HKEY_CURRENT_CONFIG="HKEY_CURRENT_CONFIG",e.HKEY_DYN_DATA="HKEY_DYN_DATA",e.HKEY_CURRENT_USER_LOCAL_SETTINGS="HKEY_CURRENT_USER_LOCAL_SETTINGS",e.HKEY_CURRENT_USER="HKEY_CURRENT_USER",e.HKEY_LOCAL_MACHINE="HKEY_LOCAL_MACHINE",e.HKEY_PERFORMANCE_DATA="HKEY_PERFORMANCE_DATA",e.HKEY_PERFORMANCE_TEXT="HKEY_PERFORMANCE_TEXT",e.HKEY_PERFORMANCE_NLSTEXT="HKEY_PERFORMANCE_NLSTEXT",e.HKEY_USERS="HKEY_USERS"}(i=t.HKEY||(t.HKEY={})),t.enumerateValues=a,t.enumerateValuesSafe=function(e,t){try{return a(e,t)}catch(e){return[]}},t.enumerateKeys=l,t.enumerateKeysSafe=function(e,t){try{return l(e,t)}catch(e){return[]}},t.createKey=c,t.createKeySafe=function(e,t){try{return c(e,t)}catch(e){return!1}},t.setValue=u,t.setValueSafe=function(e,t,n,r,s){try{return u(e,t,n,r,s)}catch(e){return!1}}},4655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,s=3,i=-1,o=-1,a=!1,l=!1;function c(){if(!a){var e=n.expirationTime;l?E():l=!0,S(p,e)}}function u(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=s,a=o;s=e,o=t;try{var l=r()}finally{s=i,o=a}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=l.next=l.previous=l;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=l,c()),(t=r.previous).next=r.previous=l,l.next=r,l.previous=t}}function h(){if(-1===i&&null!==n&&1===n.priorityLevel){a=!0;try{do{u()}while(null!==n&&1===n.priorityLevel)}finally{a=!1,null!==n?c():l=!1}}}function p(e){a=!0;var s=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{u()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{u()}while(null!==n&&!k())}finally{a=!1,r=s,null!==n?c():l=!1,h()}}var d,m,f=Date,g="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,w="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function C(e){d=w((function(t){y(m),e(t)})),m=g((function(){b(d),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var v=performance;t.unstable_now=function(){return v.now()}}else t.unstable_now=function(){return f.now()};var S,E,k,R=null;if("undefined"!=typeof window?R=window:"undefined"!=typeof global&&(R=global),R&&R._schedMock){var A=R._schedMock;S=A[0],E=A[1],k=A[2],t.unstable_now=A[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,x=function(e){if(null!==T)try{T(e)}finally{T=null}};S=function(e){null!==T?setTimeout(S,0,e):(T=e,setTimeout(x,0,!1))},E=function(){T=null},k=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof w&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var D=null,M=!1,P=-1,I=!1,_=!1,F=0,N=33,O=33;k=function(){return F<=t.unstable_now()};var L=new MessageChannel,B=L.port2;L.port1.onmessage=function(){M=!1;var e=D,n=P;D=null,P=-1;var r=t.unstable_now(),s=!1;if(0>=F-r){if(!(-1!==n&&n<=r))return I||(I=!0,C(H)),D=e,void(P=n);s=!0}if(null!==e){_=!0;try{e(s)}finally{_=!1}}};var H=function(e){if(null!==D){C(H);var t=e-F+O;t<O&&N<O?(8>t&&(t=8),O=t<N?N:t):N=t,F=e+O,M||(M=!0,B.postMessage(void 0))}else I=!1};S=function(e,t){D=e,P=t,_||0>t?B.postMessage(void 0):I||(I=!0,C(H))},E=function(){D=null,M=!1,P=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=s,o=i;s=e,i=t.unstable_now();try{return n()}finally{s=r,i=o,h()}},t.unstable_next=function(e){switch(s){case 1:case 2:case 3:var n=3;break;default:n=s}var r=s,o=i;s=n,i=t.unstable_now();try{return e()}finally{s=r,i=o,h()}},t.unstable_scheduleCallback=function(e,r){var o=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(s){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:s,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{o=null;var a=n;do{if(a.expirationTime>r){o=a;break}a=a.next}while(a!==n);null===o?o=n:o===n&&(n=e,c()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=s;return function(){var r=s,o=i;s=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{s=r,i=o,h()}}},t.unstable_getCurrentPriorityLevel=function(){return s},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<o||k())},t.unstable_continueExecution=function(){null!==n&&c()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}},8422:(e,t,n)=>{"use strict";e.exports=n(4655)},3657:(e,t)=>{var n;t=e.exports=Q,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,s=Number.MAX_SAFE_INTEGER||9007199254740991,i=r-6,o=t.re=[],a=t.safeRe=[],l=t.src=[],c=0,u="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",r],[u,i]];function p(e){for(var t=0;t<h.length;t++){var n=h[t][0],r=h[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}var d=c++;l[d]="0|[1-9]\\d*";var m=c++;l[m]="\\d+";var f=c++;l[f]="\\d*[a-zA-Z-]"+u+"*";var g=c++;l[g]="("+l[d]+")\\.("+l[d]+")\\.("+l[d]+")";var y=c++;l[y]="("+l[m]+")\\.("+l[m]+")\\.("+l[m]+")";var w=c++;l[w]="(?:"+l[d]+"|"+l[f]+")";var b=c++;l[b]="(?:"+l[m]+"|"+l[f]+")";var C=c++;l[C]="(?:-("+l[w]+"(?:\\."+l[w]+")*))";var v=c++;l[v]="(?:-?("+l[b]+"(?:\\."+l[b]+")*))";var S=c++;l[S]=u+"+";var E=c++;l[E]="(?:\\+("+l[S]+"(?:\\."+l[S]+")*))";var k=c++,R="v?"+l[g]+l[C]+"?"+l[E]+"?";l[k]="^"+R+"$";var A="[v=\\s]*"+l[y]+l[v]+"?"+l[E]+"?",T=c++;l[T]="^"+A+"$";var x=c++;l[x]="((?:<|>)?=?)";var D=c++;l[D]=l[m]+"|x|X|\\*";var M=c++;l[M]=l[d]+"|x|X|\\*";var P=c++;l[P]="[v=\\s]*("+l[M]+")(?:\\.("+l[M]+")(?:\\.("+l[M]+")(?:"+l[C]+")?"+l[E]+"?)?)?";var I=c++;l[I]="[v=\\s]*("+l[D]+")(?:\\.("+l[D]+")(?:\\.("+l[D]+")(?:"+l[v]+")?"+l[E]+"?)?)?";var _=c++;l[_]="^"+l[x]+"\\s*"+l[P]+"$";var F=c++;l[F]="^"+l[x]+"\\s*"+l[I]+"$";var N=c++;l[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var O=c++;l[O]="(?:~>?)";var L=c++;l[L]="(\\s*)"+l[O]+"\\s+",o[L]=new RegExp(l[L],"g"),a[L]=new RegExp(p(l[L]),"g");var B=c++;l[B]="^"+l[O]+l[P]+"$";var H=c++;l[H]="^"+l[O]+l[I]+"$";var U=c++;l[U]="(?:\\^)";var Z=c++;l[Z]="(\\s*)"+l[U]+"\\s+",o[Z]=new RegExp(l[Z],"g"),a[Z]=new RegExp(p(l[Z]),"g");var $=c++;l[$]="^"+l[U]+l[P]+"$";var W=c++;l[W]="^"+l[U]+l[I]+"$";var V=c++;l[V]="^"+l[x]+"\\s*("+A+")$|^$";var q=c++;l[q]="^"+l[x]+"\\s*("+R+")$|^$";var G=c++;l[G]="(\\s*)"+l[x]+"\\s*("+A+"|"+l[P]+")",o[G]=new RegExp(l[G],"g"),a[G]=new RegExp(p(l[G]),"g");var z=c++;l[z]="^\\s*("+l[P]+")\\s+-\\s+("+l[P]+")\\s*$";var j=c++;l[j]="^\\s*("+l[I]+")\\s+-\\s+("+l[I]+")\\s*$";var K=c++;l[K]="(<|>)?=?\\s*\\*";for(var Y=0;Y<35;Y++)n(Y,l[Y]),o[Y]||(o[Y]=new RegExp(l[Y]),a[Y]=new RegExp(p(l[Y])));function X(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Q)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?a[T]:a[k]).test(e))return null;try{return new Q(e,t)}catch(e){return null}}function Q(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Q))return new Q(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?a[T]:a[k]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=X,t.valid=function(e,t){var n=X(e,t);return n?n.version:null},t.clean=function(e,t){var n=X(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=Q,Q.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Q.prototype.toString=function(){return this.version},Q.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof Q||(e=new Q(e,this.options)),this.compareMain(e)||this.comparePre(e)},Q.prototype.compareMain=function(e){return e instanceof Q||(e=new Q(e,this.options)),ee(this.major,e.major)||ee(this.minor,e.minor)||ee(this.patch,e.patch)},Q.prototype.comparePre=function(e){if(e instanceof Q||(e=new Q(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return ee(r,s)}while(++t)},Q.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new Q(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(se(e,t))return null;var n=X(e),r=X(t),s="";if(n.prerelease.length||r.prerelease.length){s="pre";var i="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==r[o])return s+o;return i},t.compareIdentifiers=ee;var J=/^[0-9]+$/;function ee(e,t){var n=J.test(e),r=J.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function te(e,t,n){return new Q(e,n).compare(new Q(t,n))}function ne(e,t,n){return te(e,t,n)>0}function re(e,t,n){return te(e,t,n)<0}function se(e,t,n){return 0===te(e,t,n)}function ie(e,t,n){return 0!==te(e,t,n)}function oe(e,t,n){return te(e,t,n)>=0}function ae(e,t,n){return te(e,t,n)<=0}function le(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return se(e,n,r);case"!=":return ie(e,n,r);case">":return ne(e,n,r);case">=":return oe(e,n,r);case"<":return re(e,n,r);case"<=":return ae(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ce(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ce){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ce))return new ce(e,t);e=e.trim().split(/\s+/).join(" "),n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ue?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return ee(t,e)},t.major=function(e,t){return new Q(e,t).major},t.minor=function(e,t){return new Q(e,t).minor},t.patch=function(e,t){return new Q(e,t).patch},t.compare=te,t.compareLoose=function(e,t){return te(e,t,!0)},t.rcompare=function(e,t,n){return te(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=ne,t.lt=re,t.eq=se,t.neq=ie,t.gte=oe,t.lte=ae,t.cmp=le,t.Comparator=ce;var ue={};function he(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof he)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new he(e.raw,t);if(e instanceof ce)return new he(e.value,t);if(!(this instanceof he))return new he(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function pe(e){return!e||"x"===e.toLowerCase()||"*"===e}function de(e,t,n,r,s,i,o,a,l,c,u,h,p){return((t=pe(n)?"":pe(r)?">="+n+".0.0":pe(s)?">="+n+"."+r+".0":">="+t)+" "+(a=pe(l)?"":pe(c)?"<"+(+l+1)+".0.0":pe(u)?"<"+l+"."+(+c+1)+".0":h?"<="+l+"."+c+"."+u+"-"+h:"<="+a)).trim()}function me(e,t,r){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(s=0;s<e.length;s++)if(n(e[s].semver),e[s].semver!==ue&&e[s].semver.prerelease.length>0){var i=e[s].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function fe(e,t,n){try{t=new he(t,n)}catch(e){return!1}return t.test(e)}function ge(e,t,n,r){var s,i,o,a,l;switch(e=new Q(e,r),t=new he(t,r),n){case">":s=ne,i=ae,o=re,a=">",l=">=";break;case"<":s=re,i=oe,o=ne,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(fe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],h=null,p=null;if(u.forEach((function(e){e.semver===ue&&(e=new ce(">=0.0.0")),h=h||e,p=p||e,s(e.semver,h.semver,r)?h=e:o(e.semver,p.semver,r)&&(p=e)})),h.operator===a||h.operator===l)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0}ce.prototype.parse=function(e){var t=this.options.loose?a[V]:a[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new Q(n[2],this.options.loose):this.semver=ue},ce.prototype.toString=function(){return this.value},ce.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ue||("string"==typeof e&&(e=new Q(e,this.options)),le(e,this.operator,this.semver,this.options))},ce.prototype.intersects=function(e,t){if(!(e instanceof ce))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new he(e.value,t),fe(this.value,n,t);if(""===e.operator)return n=new he(this.value,t),fe(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=le(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=le(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||i&&o||a||l},t.Range=he,he.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},he.prototype.toString=function(){return this.range},he.prototype.parseRange=function(e){var t=this.options.loose,r=t?a[j]:a[z];e=e.replace(r,de),n("hyphen replace",e),e=e.replace(a[G],"$1$2$3"),n("comparator trim",e,a[G]),e=(e=e.replace(a[L],"$1~")).replace(a[Z],"$1^");var s=t?a[V]:a[q],i=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?a[W]:a[$];return e.replace(r,(function(t,r,s,i,o){var a;return n("caret",e,t,r,s,i,o),pe(r)?a="":pe(s)?a=">="+r+".0.0 <"+(+r+1)+".0.0":pe(i)?a="0"===r?">="+r+"."+s+".0 <"+r+"."+(+s+1)+".0":">="+r+"."+s+".0 <"+(+r+1)+".0.0":o?(n("replaceCaret pr",o),a="0"===r?"0"===s?">="+r+"."+s+"."+i+"-"+o+" <"+r+"."+s+"."+(+i+1):">="+r+"."+s+"."+i+"-"+o+" <"+r+"."+(+s+1)+".0":">="+r+"."+s+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===s?">="+r+"."+s+"."+i+" <"+r+"."+s+"."+(+i+1):">="+r+"."+s+"."+i+" <"+r+"."+(+s+1)+".0":">="+r+"."+s+"."+i+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?a[H]:a[B];return e.replace(r,(function(t,r,s,i,o){var a;return n("tilde",e,t,r,s,i,o),pe(r)?a="":pe(s)?a=">="+r+".0.0 <"+(+r+1)+".0.0":pe(i)?a=">="+r+"."+s+".0 <"+r+"."+(+s+1)+".0":o?(n("replaceTilde pr",o),a=">="+r+"."+s+"."+i+"-"+o+" <"+r+"."+(+s+1)+".0"):a=">="+r+"."+s+"."+i+" <"+r+"."+(+s+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?a[F]:a[_];return e.replace(r,(function(t,r,s,i,o,a){n("xRange",e,t,r,s,i,o,a);var l=pe(s),c=l||pe(i),u=c||pe(o);return"="===r&&u&&(r=""),l?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(c&&(i=0),o=0,">"===r?(r=">=",c?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):"<="===r&&(r="<",c?s=+s+1:i=+i+1),t=r+s+"."+i+"."+o):c?t=">="+s+".0.0 <"+(+s+1)+".0.0":u&&(t=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(a[K],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(s)}))),i.map((function(e){return new ce(e,this.options)}),this)},he.prototype.intersects=function(e,t){if(!(e instanceof he))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new he(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},he.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Q(e,this.options));for(var t=0;t<this.set.length;t++)if(me(this.set[t],e,this.options))return!0;return!1},t.satisfies=fe,t.maxSatisfying=function(e,t,n){var r=null,s=null;try{var i=new he(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==s.compare(e)||(s=new Q(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,s=null;try{var i=new he(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==s.compare(e)||(s=new Q(r=e,n)))})),r},t.minVersion=function(e,t){e=new he(e,t);var n=new Q("0.0.0");if(e.test(n))return n;if(n=new Q("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new Q(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!ne(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new he(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ge(e,t,"<",n)},t.gtr=function(e,t,n){return ge(e,t,">",n)},t.outside=ge,t.prerelease=function(e,t){var n=X(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new he(e,n),t=new he(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof Q)return e;if("string"!=typeof e)return null;var t=e.match(a[N]);return null==t?null:X(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},4443:(e,t,n)=>{"use strict";var r=n(4569);e.exports=function(e){var t=e.match(r);if(!t)return null;var n=t[0].replace(/#! ?/,"").split(" "),s=n[0].split("/").pop(),i=n[1];return"env"===s?i:s+(i?" "+i:"")}},4569:e=>{"use strict";e.exports=/^#!.*/},9828:(e,t,n)=>{var r,s=n(2613),i=n(3325),o=n(4434);function a(){u&&(u=!1,i.forEach((function(e){try{process.removeListener(e,c[e])}catch(e){}})),process.emit=m,process.reallyExit=p,r.count-=1)}function l(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))}"function"!=typeof o&&(o=o.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emitter__=new o).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),e.exports=function(e,t){s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===u&&h();var n="exit";return t&&t.alwaysLast&&(n="afterexit"),r.on(n,e),function(){r.removeListener(n,e),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&a()}},e.exports.unload=a;var c={};i.forEach((function(e){c[e]=function(){process.listeners(e).length===r.count&&(a(),l("exit",null,e),l("afterexit",null,e),process.kill(process.pid,e))}})),e.exports.signals=function(){return i},e.exports.load=h;var u=!1;function h(){u||(u=!0,r.count+=1,i=i.filter((function(e){try{return process.on(e,c[e]),!0}catch(e){return!1}})),process.emit=f,process.reallyExit=d)}var p=process.reallyExit;function d(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),p.call(process,process.exitCode)}var m=process.emit;function f(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var n=m.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),n}return m.apply(this,arguments)}},3325:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"]},2593:(e,t,n)=>{var r,s=n(8089).SourceMapConsumer,i=n(6928);try{(r=n(9896)).existsSync&&r.readFileSync||(r=null)}catch(e){}var o=!1,a=!1,l=!1,c="auto",u={},h={},p=/^data:application\/json[^,]+base64,/,d=[],m=[];function f(){return"browser"===c||"node"!==c&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function g(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var y=g(d);function w(e,t){if(!e)return t;var n=i.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),s=r?r[0]:"";return s+i.resolve(n.slice(s.length),t)}d.push((function(e){if((e=e.trim())in u)return u[e];var t=null;if(r){if(r.existsSync(e))try{t=r.readFileSync(e,"utf8")}catch(e){t=""}}else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=null,4===n.readyState&&200===n.status&&(t=n.responseText)}return u[e]=t}));var b=g(m);function C(e){var t=h[e.source];if(!t){var n=b(e.source);n?(t=h[e.source]={url:n.url,map:new s(n.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,n){var r=t.map.sourcesContent[n];if(r){var s=w(t.url,e);u[s]=r}})):t=h[e.source]={url:null,map:null}}if(t&&t.map){var r=t.map.originalPositionFor(e);if(null!==r.source)return r.source=w(t.url,r.source),r}return e}function v(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=C({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+v(t[2])+")":e}function S(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var s="",i=this.getFunctionName(),o=!0,a=this.isConstructor();if(this.isToplevel()||a)a?s+="new "+(i||"<anonymous>"):i?s+=i:(s+=t,o=!1);else{var l=this.getTypeName();"[object Object]"===l&&(l="null");var c=this.getMethodName();i?(l&&0!=i.indexOf(l)&&(s+=l+"."),s+=i,c&&i.indexOf("."+c)!=i.length-c.length-1&&(s+=" [as "+c+"]")):s+=l+"."+(c||"<anonymous>")}return o&&(s+=" ("+t+")"),s}function E(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]})),t.toString=S,t}function k(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1===n&&r>62&&!f()&&!e.isEval()&&(r-=62);var s=C({source:t,line:n,column:r});return(e=E(e)).getFileName=function(){return s.source},e.getLineNumber=function(){return s.line},e.getColumnNumber=function(){return s.column+1},e.getScriptNameOrSourceURL=function(){return s.source},e}var i=e.isEval()&&e.getEvalOrigin();return i?(i=v(i),(e=E(e)).getEvalOrigin=function(){return i},e):e}function R(e,t){return l&&(u={},h={}),e+t.map((function(e){return"\n at "+k(e)})).join("")}function A(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],s=+t[2],i=+t[3],o=u[n];if(!o&&r&&r.existsSync(n))try{o=r.readFileSync(n,"utf8")}catch(e){o=""}if(o){var a=o.split(/(?:\r\n|\r|\n)/)[s-1];if(a)return n+":"+s+"\n"+a+"\n"+new Array(i).join(" ")+"^"}}return null}m.push((function(e){var t,n=function(e){var t;if(f())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=y(e);for(var s,i,o=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;i=o.exec(t);)s=i;return s?s[1]:null}(e);if(!n)return null;if(p.test(n)){var r=n.slice(n.indexOf(",")+1);t=new Buffer(r,"base64").toString(),n=e}else n=w(e,n),t=y(n);return t?{url:n,map:t}:null})),t.wrapCallSite=k,t.getErrorSource=A,t.mapSourcePosition=C,t.retrieveSourceMap=b,t.install=function(e){if((e=e||{}).environment&&(c=e.environment,-1===["node","browser","auto"].indexOf(c)))throw new Error("environment "+c+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(d.length=0),d.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(m.length=0),m.unshift(e.retrieveSourceMap)),e.hookRequire&&!f()){var t;try{t=n(3339)}catch(e){}var r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(e,t){return u[t]=e,h[t]=void 0,r.call(this,e,t)},t.prototype._compile.__sourceMapSupport=!0)}var s;l||(l="emptyCacheBetweenOperations"in e&&e.emptyCacheBetweenOperations),o||(o=!0,Error.prepareStackTrace=R),a||(!("handleUncaughtExceptions"in e)||e.handleUncaughtExceptions)&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(a=!0,s=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(t&&!n)return(i=A(r=arguments[1]))&&(console.error(),console.error(i)),console.error(r.stack),void process.exit(1)}var r,i;return s.apply(this,arguments)})}},4407:(e,t,n)=>{var r=n(5251),s=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,r=0,s=e.length;r<s;r++)n.add(e[r],t);return n},o.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var n=i?e:r.toSetString(e),o=i?this.has(e):s.call(this._set,n),a=this._array.length;o&&!t||this._array.push(e),o||(i?this._set.set(e,a):this._set[n]=a)},o.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return s.call(this._set,t)},o.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(s.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.C=o},6044:(e,t,n)=>{var r=n(5220);t.encode=function(e){var t,n="",s=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&s,(s>>>=5)>0&&(t|=32),n+=r.encode(t)}while(s>0);return n},t.decode=function(e,t,n){var s,i,o,a,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));s=!!(32&i),c+=(i&=31)<<u,u+=5}while(s);n.value=(a=(o=c)>>1,1&~o?a:-a),n.rest=t}},5220:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},9891:(e,t)=>{function n(e,r,s,i,o,a){var l=Math.floor((r-e)/2)+e,c=o(s,i[l],!0);return 0===c?l:c>0?r-l>1?n(l,r,s,i,o,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:l:l-e>1?n(e,l,s,i,o,a):a==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,s,i){if(0===r.length)return-1;var o=n(-1,r.length,e,r,s,i||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===s(r[o],r[o-1],!0);)--o;return o}},8846:(e,t,n)=>{var r=n(5251);function s(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},s.prototype.add=function(e){var t,n,s,i,o,a;n=e,s=(t=this._last).generatedLine,i=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,i>s||i==s&&a>=o||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},s.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=s},8817:(e,t)=>{function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,s,i){if(s<i){var o=s-1;n(e,(u=s,h=i,Math.round(u+Math.random()*(h-u))),i);for(var a=e[i],l=s;l<i;l++)t(e[l],a)<=0&&n(e,o+=1,l);n(e,o+1,l);var c=o+1;r(e,t,s,c-1),r(e,t,c+1,i)}var u,h}t.g=function(e,t){r(e,t,0,e.length-1)}},9710:(e,t,n)=>{var r=n(5251),s=n(9891),i=n(4407).C,o=n(6044),a=n(8817).g;function l(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new h(t):new c(t)}function c(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),s=r.getArg(t,"sources"),o=r.getArg(t,"names",[]),a=r.getArg(t,"sourceRoot",null),l=r.getArg(t,"sourcesContent",null),c=r.getArg(t,"mappings"),u=r.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);s=s.map(String).map(r.normalize).map((function(e){return a&&r.isAbsolute(a)&&r.isAbsolute(e)?r.relative(a,e):e})),this._names=i.fromArray(o.map(String),!0),this._sources=i.fromArray(s,!0),this.sourceRoot=a,this.sourcesContent=l,this._mappings=c,this.file=u}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function h(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),s=r.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new i,this._names=new i;var o={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),s=r.getArg(t,"column");if(n<o.line||n===o.line&&s<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:s+1},consumer:new l(r.getArg(e,"map"))}}))}l.fromSourceMap=function(e){return c.fromSourceMap(e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var s,i=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:s=this._generatedMappings;break;case l.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;s.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=r.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=r.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(void 0===e.column)for(var l=a.originalLine;a&&a.originalLine===l;)i.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},t.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.fromSourceMap=function(e){var t=Object.create(c.prototype),n=t._names=i.fromArray(e._names.toArray(),!0),s=t._sources=i.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),l=t.__generatedMappings=[],h=t.__originalMappings=[],p=0,d=o.length;p<d;p++){var m=o[p],f=new u;f.generatedLine=m.generatedLine,f.generatedColumn=m.generatedColumn,m.source&&(f.source=s.indexOf(m.source),f.originalLine=m.originalLine,f.originalColumn=m.originalColumn,m.name&&(f.name=n.indexOf(m.name)),h.push(f)),l.push(f)}return a(t.__originalMappings,r.compareByOriginalPositions),t},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?r.join(this.sourceRoot,e):e}),this)}}),c.prototype._parseMappings=function(e,t){for(var n,s,i,l,c,h=1,p=0,d=0,m=0,f=0,g=0,y=e.length,w=0,b={},C={},v=[],S=[];w<y;)if(";"===e.charAt(w))h++,w++,p=0;else if(","===e.charAt(w))w++;else{for((n=new u).generatedLine=h,l=w;l<y&&!this._charIsMappingSeparator(e,l);l++);if(i=b[s=e.slice(w,l)])w+=s.length;else{for(i=[];w<l;)o.decode(e,w,C),c=C.value,w=C.rest,i.push(c);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");b[s]=i}n.generatedColumn=p+i[0],p=n.generatedColumn,i.length>1&&(n.source=f+i[1],f+=i[1],n.originalLine=d+i[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=m+i[3],m=n.originalColumn,i.length>4&&(n.name=g+i[4],g+=i[4])),S.push(n),"number"==typeof n.originalLine&&v.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(v,r.compareByOriginalPositions),this.__originalMappings=v},c.prototype._findMapping=function(e,t,n,r,i,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return s.search(e,t,i,o)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var s=this._generatedMappings[n];if(s.generatedLine===t.generatedLine){var i=r.getArg(s,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=r.join(this.sourceRoot,i)));var o=r.getArg(s,"name",null);return null!==o&&(o=this._names.at(o)),{source:i,line:r.getArg(s,"originalLine",null),column:r.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var s=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(s>=0){var i=this._originalMappings[s];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},h.prototype=Object.create(l.prototype),h.prototype.constructor=l,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),h.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=s.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},h.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(r.getArg(e,"source"))){var s=n.consumer.generatedPositionFor(e);if(s)return{line:s.line+(n.generatedOffset.generatedLine-1),column:s.column+(n.generatedOffset.generatedLine===s.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var s=this._sections[n],i=s.consumer._generatedMappings,o=0;o<i.length;o++){var l=i[o],c=s.consumer._sources.at(l.source);null!==s.consumer.sourceRoot&&(c=r.join(s.consumer.sourceRoot,c)),this._sources.add(c),c=this._sources.indexOf(c);var u=s.consumer._names.at(l.name);this._names.add(u),u=this._names.indexOf(u);var h={source:c,generatedLine:l.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(s.generatedOffset.generatedLine===l.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(h),"number"==typeof h.originalLine&&this.__originalMappings.push(h)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)}},6545:(e,t,n)=>{var r=n(6044),s=n(5251),i=n(4407).C,o=n(8846).P;function a(e){e||(e={}),this._file=s.getArg(e,"file",null),this._sourceRoot=s.getArg(e,"sourceRoot",null),this._skipValidation=s.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new o,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=s.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)})),n},a.prototype.addMapping=function(e){var t=s.getArg(e,"generated"),n=s.getArg(e,"original",null),r=s.getArg(e,"source",null),i=s.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=s.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[s.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[s.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=s.relative(o,r));var a=new i,l=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=s.join(n,t.source)),null!=o&&(t.source=s.relative(o,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=a,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=s.join(n,t)),null!=o&&(t=s.relative(o,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,i,o=0,a=1,l=0,c=0,u=0,h=0,p="",d=this._mappings.toArray(),m=0,f=d.length;m<f;m++){if(e="",(t=d[m]).generatedLine!==a)for(o=0;t.generatedLine!==a;)e+=";",a++;else if(m>0){if(!s.compareByGeneratedPositionsInflated(t,d[m-1]))continue;e+=","}e+=r.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-h),h=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=s.relative(t,e));var n=s.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.x=a},8299:(e,t,n)=>{var r=n(6545).x,s=n(5251),i=/(\r?\n)/,o="$$$isSourceNode$$$";function a(e,t,n,r,s){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==s?null:s,this[o]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,o=e.split(i),l=0,c=function(){return e()+(e()||"");function e(){return l<o.length?o[l++]:void 0}},u=1,h=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(u<e.generatedLine)){var t=(n=o[l]).substr(0,e.generatedColumn-h);return o[l]=n.substr(e.generatedColumn-h),h=e.generatedColumn,d(p,t),void(p=e)}d(p,c()),u++,h=0}for(;u<e.generatedLine;)r.add(c()),u++;if(h<e.generatedColumn){var n=o[l];r.add(n.substr(0,e.generatedColumn)),o[l]=n.substr(e.generatedColumn),h=e.generatedColumn}p=e}),this),l<o.length&&(p&&d(p,c()),r.add(o.splice(l).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=s.join(n,e)),r.setSourceContent(e,i))})),r;function d(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?s.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[s.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(s.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),s=!1,i=null,o=null,a=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&o===r.line&&a===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,o=r.line,a=r.column,l=r.name,s=!0):s&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,s=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,s=!1):s&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}}},5251:(e,t)=>{t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function s(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,r=s(e);if(r){if(!r.path)return e;n=r.path}for(var o,a=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=a?"/":"."),r?(r.path=n,i(r)):n}t.urlParse=s,t.urlGenerate=i,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=s(t),a=s(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,i(a)):l},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:e>t?1:-1}t.toSetString=a?l:function(e){return c(e)?"$"+e:e},t.fromSetString=a?l:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!=(r=e.source-t.source)||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)}},8089:(e,t,n)=>{n(6545).x,t.SourceMapConsumer=n(9710).SourceMapConsumer,n(8299)},2319:(e,t,n)=>{"use strict";const{Transform:r}=n(2203),{StringDecoder:s}=n(3193),i=Symbol("last"),o=Symbol("decoder");function a(e,t,n){let r;if(this.overflow){if(r=this[o].write(e).split(this.matcher),1===r.length)return n();r.shift(),this.overflow=!1}else this[i]+=this[o].write(e),r=this[i].split(this.matcher);this[i]=r.pop();for(let e=0;e<r.length;e++)try{c(this,this.mapper(r[e]))}catch(e){return n(e)}this.overflow=this[i].length>this.maxLength,!this.overflow||this.skipOverflow?n():n(new Error("maximum buffer reached"))}function l(e){if(this[i]+=this[o].end(),this[i])try{c(this,this.mapper(this[i]))}catch(t){return e(t)}e()}function c(e,t){void 0!==t&&e.push(t)}function u(e){return e}e.exports=function(e,t,n){switch(e=e||/\r?\n/,t=t||u,n=n||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||e[Symbol.split]||(n=e,e=/\r?\n/);break;case 2:"function"==typeof e?(n=t,t=e,e=/\r?\n/):"object"==typeof t&&(n=t,t=u)}(n=Object.assign({},n)).autoDestroy=!0,n.transform=a,n.flush=l,n.readableObjectMode=!0;const c=new r(n);return c[i]="",c[o]=new s("utf8"),c.matcher=e,c.mapper=t,c.maxLength=n.maxLength,c.skipOverflow=n.skipOverflow||!1,c.overflow=!1,c._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},c}},2922:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}},165:e=>{!function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n="undefined"!=typeof window,r=n&&null!=window.mozInnerScreenX;function s(e,s,i){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var o=i&&i.debug||!1;if(o){var a=document.querySelector("#input-textarea-caret-position-mirror-div");a&&a.parentNode.removeChild(a)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var c=l.style,u=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",o||(c.visibility="hidden"),t.forEach((function(e){c[e]=u[e]})),r?e.scrollHeight>parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",l.textContent=e.value.substring(0,s),"INPUT"===e.nodeName&&(l.textContent=l.textContent.replace(/\s/g," "));var h=document.createElement("span");h.textContent=e.value.substring(s)||".",l.appendChild(h);var p={top:h.offsetTop+parseInt(u.borderTopWidth),left:h.offsetLeft+parseInt(u.borderLeftWidth)};return o?h.style.backgroundColor="#aaa":document.body.removeChild(l),p}void 0!==e.exports?e.exports=s:n&&(window.getCaretCoordinates=s)}()},9671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>C,__asyncGenerator:()=>b,__asyncValues:()=>v,__await:()=>w,__awaiter:()=>u,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>T,__createBinding:()=>p,__decorate:()=>a,__exportStar:()=>d,__extends:()=>s,__generator:()=>h,__importDefault:()=>R,__importStar:()=>k,__makeTemplateObject:()=>S,__metadata:()=>c,__param:()=>l,__read:()=>f,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>m});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function s(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}function a(e,t,n,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(s,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((s=(s=o.trys).length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1],s=i;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var p=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||p(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,s,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){s={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return o}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),s=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,s++)r[s]=i[o];return r}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,s=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){s[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=s[e](t)).value instanceof w?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,s){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:"return"===r}:s?s(t):t}:s}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,s){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,s,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},4521:(e,t,n)=>{"use strict";const r=n(857).homedir();e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return r?e.replace(/^~($|\/|\\)/,`${r}$1`):e}},2022:(e,t,n)=>{var r=n(7345),s=n(8030),i=s;i.v1=r,i.v4=s,e.exports=i},8751:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,s=t;return s[e[r++]]+s[e[r++]]+s[e[r++]]+s[e[r++]]+"-"+s[e[r++]]+s[e[r++]]+"-"+s[e[r++]]+s[e[r++]]+"-"+s[e[r++]]+s[e[r++]]+"-"+s[e[r++]]+s[e[r++]]+s[e[r++]]+s[e[r++]]+s[e[r++]]+s[e[r++]]}},7470:e=>{var t,n=global.crypto||global.msCrypto;if(n&&n.getRandomValues){var r=new Uint8Array(16);t=function(){return n.getRandomValues(r),r}}if(!t){var s=new Array(16);t=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}e.exports=t},7345:(e,t,n)=>{var r=n(7470),s=n(8751),i=r(),o=[1|i[0],i[1],i[2],i[3],i[4],i[5]],a=16383&(i[6]<<8|i[7]),l=0,c=0;e.exports=function(e,t,n){var r=t&&n||0,i=t||[],u=void 0!==(e=e||{}).clockseq?e.clockseq:a,h=void 0!==e.msecs?e.msecs:(new Date).getTime(),p=void 0!==e.nsecs?e.nsecs:c+1,d=h-l+(p-c)/1e4;if(d<0&&void 0===e.clockseq&&(u=u+1&16383),(d<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=p,a=u;var m=(1e4*(268435455&(h+=122192928e5))+p)%4294967296;i[r++]=m>>>24&255,i[r++]=m>>>16&255,i[r++]=m>>>8&255,i[r++]=255&m;var f=h/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=255&f,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=u>>>8|128,i[r++]=255&u;for(var g=e.node||o,y=0;y<6;++y)i[r+y]=g[y];return t||s(i)}},8030:(e,t,n)=>{var r=n(7470),s=n(8751);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[i+a]=o[a];return t||s(o)}},5519:e=>{"use strict";e.exports=function(){}},5511:(e,t,n)=>{e.exports=c,c.sync=function(e,t){for(var n=l(e,t=t||{}),r=n.env,i=n.ext,c=n.extExe,u=[],h=0,p=r.length;h<p;h++){var d=r[h];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var m=s.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(m=e.slice(0,2)+m);for(var f=0,g=i.length;f<g;f++){var y=m+i[f];try{if(o.sync(y,{pathExt:c})){if(!t.all)return y;u.push(y)}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw a(e)};var r=!0,s=n(6928),i=r?";":":",o=n(1971);function a(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function l(e,t){var n=t.colon||i,s=t.path||process.env.PATH||"",o=[""];s=s.split(n);var a="";return r&&(s.unshift(process.cwd()),o=(a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(n),-1!==e.indexOf(".")&&""!==o[0]&&o.unshift("")),(e.match(/\//)||r&&e.match(/\\/))&&(s=[""]),{env:s,ext:o,extExe:a}}function c(e,t,n){"function"==typeof t&&(n=t,t={});var r=l(e,t),i=r.env,c=r.ext,u=r.extExe,h=[];!function r(l,p){if(l===p)return t.all&&h.length?n(null,h):n(a(e));var d=i[l];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var m=s.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(m=e.slice(0,2)+m),function e(s,i){if(s===i)return r(l+1,p);var a=c[s];o(m+a,{pathExt:u},(function(r,o){if(!r&&o){if(!t.all)return n(null,m+a);h.push(m+a)}return e(s+1,i)}))}(0,c.length)}(0,i.length)}},5002:(e,t,n)=>{"use strict";t.z=function(e){if(!r)throw new Error("The windows-argv-parser module is only available on Windows");return r.parseCommandLineArgv(e)};const r=n(2041)},6755:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),s=e[e.length-1];return"function"==typeof r&&r!==s&&Object.keys(s).forEach((function(e){r[e]=s[e]})),r}}},2385:(e,t,n)=>{e=n.nmd(e);const r=n(6928).join(__dirname,"desktop-notifications.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},9317:(e,t,n)=>{e=n.nmd(e);const r=n(6928).join(__dirname,"fs_admin.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},7601:(e,t,n)=>{e=n.nmd(e);const r=n(6928).join(__dirname,"keytar.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},1951:(e,t,n)=>{e=n.nmd(e);const r=n(6928).join(__dirname,"registry.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},2041:(e,t,n)=>{e=n.nmd(e);const r=n(6928).join(__dirname,"windows-argv-parser.node");try{global.process.dlopen(e,r)}catch(e){throw new Error("Cannot open "+r+": "+e)}},3004:(e,t,n)=>{"use strict";n.r(t)},2568:e=>{var t=i("DXT1"),n=i("DXT3"),r=i("DXT5"),s=i("DX10");function i(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}e.exports=function(e){var i,o,a=new Int32Array(e,0,31);if(542327876!==a[0])throw new Error("Invalid magic number in DDS header");if(4&!a[20])throw new Error("Unsupported format, must contain a FourCC code");var l,c=a[21];switch(c){case t:i=8,o="dxt1";break;case n:i=16,o="dxt3";break;case r:i=16,o="dxt5";break;case 116:o="rgba32f";break;case s:var u=new Uint32Array(e.slice(128,148));o=u[0];var h=u[1];if(u[2],u[3],u[4],3!==h||2!==o)throw new Error("Unsupported DX10 texture format "+o);o="rgba32f";break;default:throw new Error("Unsupported FourCC code: "+(l=c,String.fromCharCode(255&l,l>>8&255,l>>16&255,l>>24&255)))}var p=a[2],d=1;131072&p&&(d=Math.max(1,a[7]));var m=!1;512&a[28]&&(m=!0);var f,g=a[4],y=a[3],w=a[1]+4,b=g,C=y,v=[];if(c===s&&(w+=20),m)for(var S=0;S<6;S++){if("rgba32f"!==o)throw new Error("Only RGBA32f cubemaps are supported");g=b,y=C;for(var E=Math.log(g)/Math.log(2)+1,k=0;k<E;k++)f=g*y*16,v.push({offset:w,length:f,shape:[g,y]}),k<d&&(w+=f),g=Math.floor(g/2),y=Math.floor(y/2)}else for(k=0;k<d;k++)f=Math.max(4,g)/4*Math.max(4,y)/4*i,v.push({offset:w,length:f,shape:[g,y]}),w+=f,g=Math.floor(g/2),y=Math.floor(y/2);return{shape:[b,C],images:v,format:o,flags:p,cubemap:m}}},3279:(e,t,n)=>{"use strict";n.r(t),n.d(t,{measure:()=>a,start:()=>i,stop:()=>o});let r=!1,s=0;function i(){r=!0}function o(){r=!1}async function a(e,t){const n=++s,i=performance&&performance.now?performance.now():null;!function(e,t){if(!r)return;const n=`${e}::${t}`;performance.mark(n)}(n,e);try{return await t()}finally{if(i){const t=performance.now()-i;if(t>1e3){const n=(t/1e3).toFixed(3);log.info(`Executing ${e} (took ${n}s)`)}}!function(e,t){if(!r)return;const n=`${e}::${t}`,s=t;performance.measure(s,n),performance.clearMarks(n),performance.clearMeasures(s)}(n,e)}}},1265:(e,t,n)=>{"use strict";e.exports=n.p+"a7b45a45d471743a8d54.cmd"},2613:e=>{"use strict";e.exports=require("assert")},5317:e=>{"use strict";e.exports=require("child_process")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},3339:e=>{"use strict";e.exports=require("module")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},3557:e=>{"use strict";e.exports=require("timers")},9023:e=>{"use strict";e.exports=require("util")},1362:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{accessibility:()=>As,accessibilityInset:()=>Ts,alert:()=>xs,alertFill:()=>Ds,apps:()=>Ms,archive:()=>Ps,arrowBoth:()=>Is,arrowDown:()=>_s,arrowDownLeft:()=>Fs,arrowDownRight:()=>Ns,arrowLeft:()=>Os,arrowRight:()=>Ls,arrowSwitch:()=>Bs,arrowUp:()=>Hs,arrowUpLeft:()=>Us,arrowUpRight:()=>Zs,beaker:()=>$s,bell:()=>Ws,bellFill:()=>Vs,bellSlash:()=>qs,blocked:()=>Gs,bold:()=>zs,book:()=>js,bookmark:()=>Ks,bookmarkFill:()=>Ys,bookmarkSlash:()=>Xs,bookmarkSlashFill:()=>Qs,briefcase:()=>Js,broadcast:()=>ei,browser:()=>ti,bug:()=>ni,cache:()=>ri,calendar:()=>si,check:()=>ii,checkCircle:()=>oi,checkCircleFill:()=>ai,checkbox:()=>li,checklist:()=>ci,chevronDown:()=>ui,chevronLeft:()=>hi,chevronRight:()=>pi,chevronUp:()=>di,circle:()=>mi,circleSlash:()=>fi,clock:()=>gi,clockFill:()=>yi,cloud:()=>wi,cloudOffline:()=>bi,code:()=>Ci,codeOfConduct:()=>vi,codeReview:()=>Si,codeSquare:()=>Ei,codescan:()=>ki,codescanCheckmark:()=>Ri,codespaces:()=>Ai,columns:()=>Ti,commandPalette:()=>xi,comment:()=>Di,commentDiscussion:()=>Mi,commit:()=>Pi,container:()=>Ii,copilot:()=>_i,copilotError:()=>Fi,copilotWarning:()=>Ni,copy:()=>Oi,cpu:()=>Li,creditCard:()=>Bi,crossReference:()=>Hi,dash:()=>Ui,database:()=>Zi,dependabot:()=>$i,desktopDownload:()=>Wi,deviceCamera:()=>Vi,deviceCameraVideo:()=>qi,deviceDesktop:()=>Gi,deviceMobile:()=>zi,devices:()=>ji,diamond:()=>Ki,diff:()=>Yi,diffAdded:()=>Xi,diffIgnored:()=>Qi,diffModified:()=>Ji,diffRemoved:()=>eo,diffRenamed:()=>to,discussionClosed:()=>no,discussionDuplicate:()=>ro,discussionOutdated:()=>so,dot:()=>io,dotFill:()=>oo,download:()=>ao,duplicate:()=>lo,ellipsis:()=>co,eye:()=>uo,eyeClosed:()=>ho,feedDiscussion:()=>po,feedForked:()=>mo,feedHeart:()=>fo,feedIssueClosed:()=>go,feedIssueDraft:()=>yo,feedIssueOpen:()=>wo,feedIssueReopen:()=>bo,feedMerged:()=>Co,feedPerson:()=>vo,feedPlus:()=>So,feedPublic:()=>Eo,feedPullRequestClosed:()=>ko,feedPullRequestDraft:()=>Ro,feedPullRequestOpen:()=>Ao,feedRepo:()=>To,feedRocket:()=>xo,feedStar:()=>Do,feedTag:()=>Mo,feedTrophy:()=>Po,file:()=>Io,fileAdded:()=>_o,fileBadge:()=>Fo,fileBinary:()=>No,fileCode:()=>Oo,fileDiff:()=>Lo,fileDirectory:()=>Bo,fileDirectoryFill:()=>Ho,fileDirectoryOpenFill:()=>Uo,fileDirectorySymlink:()=>Zo,fileMedia:()=>$o,fileMoved:()=>Wo,fileRemoved:()=>Vo,fileSubmodule:()=>qo,fileSymlinkFile:()=>Go,fileZip:()=>zo,filter:()=>jo,filterRemove:()=>Ko,fiscalHost:()=>Yo,flame:()=>Xo,fold:()=>Qo,foldDown:()=>Jo,foldUp:()=>ea,gear:()=>ta,gift:()=>na,gitBranch:()=>ra,gitCommit:()=>sa,gitCompare:()=>ia,gitMerge:()=>oa,gitMergeQueue:()=>aa,gitPullRequest:()=>la,gitPullRequestClosed:()=>ca,gitPullRequestDraft:()=>ua,globe:()=>ha,goal:()=>pa,grabber:()=>da,graph:()=>ma,hash:()=>fa,heading:()=>ga,heart:()=>ya,heartFill:()=>wa,history:()=>ba,home:()=>Ca,homeFill:()=>va,horizontalRule:()=>Sa,hourglass:()=>Ea,hubot:()=>ka,idBadge:()=>Ra,image:()=>Aa,inbox:()=>Ta,infinity:()=>xa,info:()=>Da,issueClosed:()=>Ma,issueDraft:()=>Pa,issueOpened:()=>Ia,issueReopened:()=>_a,issueTrackedBy:()=>Fa,issueTracks:()=>Na,italic:()=>Oa,iterations:()=>La,kebabHorizontal:()=>Ba,key:()=>Ha,keyAsterisk:()=>Ua,law:()=>Za,lightBulb:()=>$a,link:()=>Wa,linkExternal:()=>Va,listOrdered:()=>qa,listUnordered:()=>Ga,location:()=>za,lock:()=>ja,log:()=>Ka,logoGist:()=>Ya,logoGithub:()=>Xa,mail:()=>Qa,markGithub:()=>Ja,markdown:()=>el,megaphone:()=>tl,mention:()=>nl,meter:()=>rl,milestone:()=>sl,mirror:()=>il,moon:()=>ol,mortarBoard:()=>al,moveToBottom:()=>ll,moveToEnd:()=>cl,moveToStart:()=>ul,moveToTop:()=>hl,multiSelect:()=>pl,mute:()=>dl,noEntry:()=>ml,noEntryFill:()=>fl,northStar:()=>gl,note:()=>yl,number:()=>wl,organization:()=>bl,packageDependencies:()=>vl,packageDependents:()=>Sl,package_:()=>Cl,paintbrush:()=>El,paperAirplane:()=>kl,paperclip:()=>Rl,passkeyFill:()=>Al,paste:()=>Tl,pencil:()=>xl,people:()=>Dl,person:()=>Ml,personAdd:()=>Pl,personFill:()=>Il,pin:()=>_l,pinSlash:()=>Fl,pivotColumn:()=>Nl,play:()=>Ol,plug:()=>Ll,plus:()=>Bl,plusCircle:()=>Hl,project:()=>Ul,projectRoadmap:()=>Zl,projectSymlink:()=>$l,projectTemplate:()=>Wl,pulse:()=>Vl,question:()=>ql,quote:()=>Gl,read:()=>zl,redo:()=>jl,relFilePath:()=>Kl,reply:()=>Yl,repo:()=>Xl,repoClone:()=>Ql,repoDeleted:()=>Jl,repoForked:()=>ec,repoLocked:()=>tc,repoPull:()=>nc,repoPush:()=>rc,repoTemplate:()=>sc,report:()=>ic,rocket:()=>oc,rows:()=>ac,rss:()=>lc,ruby:()=>cc,screenFull:()=>uc,screenNormal:()=>hc,search:()=>pc,server:()=>dc,share:()=>mc,shareAndroid:()=>fc,shield:()=>gc,shieldCheck:()=>yc,shieldLock:()=>wc,shieldSlash:()=>bc,shieldX:()=>Cc,sidebarCollapse:()=>vc,sidebarExpand:()=>Sc,signIn:()=>Ec,signOut:()=>kc,singleSelect:()=>Rc,skip:()=>Ac,skipFill:()=>Tc,sliders:()=>xc,smiley:()=>Dc,sortAsc:()=>Mc,sortDesc:()=>Pc,sparkleFill:()=>Ic,sponsorTiers:()=>_c,square:()=>Fc,squareFill:()=>Nc,squirrel:()=>Oc,stack:()=>Lc,star:()=>Bc,starFill:()=>Hc,stop:()=>Uc,stopwatch:()=>Zc,strikethrough:()=>$c,sun:()=>Wc,sync:()=>Vc,tab:()=>qc,tabExternal:()=>Gc,table:()=>zc,tag:()=>jc,tasklist:()=>Kc,telescope:()=>Yc,telescopeFill:()=>Xc,terminal:()=>Qc,threeBars:()=>Jc,thumbsdown:()=>eu,thumbsup:()=>tu,tools:()=>nu,trackedByClosedCompleted:()=>ru,trackedByClosedNotPlanned:()=>su,trash:()=>iu,triangleDown:()=>ou,triangleLeft:()=>au,triangleRight:()=>lu,triangleUp:()=>cu,trophy:()=>uu,typography:()=>hu,undo:()=>pu,unfold:()=>du,unlink:()=>mu,unlock:()=>fu,unmute:()=>gu,unread:()=>yu,unverified:()=>wu,upload:()=>bu,verified:()=>Cu,versions:()=>vu,video:()=>Su,webhook:()=>Eu,workflow:()=>ku,x:()=>Ru,xCircle:()=>Au,xCircleFill:()=>Tu,zap:()=>xu,zoomIn:()=>Du,zoomOut:()=>Mu});var t=n(6928),r=n(9896),s=n(2593);const i=require("url"),o=["renderer.js","main.js"];function a(e){if(!o.some((t=>e.endsWith(t))))return null;e.startsWith("file://")&&(e=(0,i.fileURLToPath)(e));const n=`${e}.map`;if(!r.existsSync(n))return null;try{const e=r.readFileSync(n,"utf8");return{url:t.basename(n),map:e}}catch(e){return null}}const l=new WeakMap;let c;function u(e,t){return l.set(e,t),e+t.map((e=>`\n at ${e}`)).join("")}function h(e){if("string"==typeof e)return{name:"StringError",message:e};let t;return t=e&&"object"==typeof e&&"message"in e?null===e.message?"null":void 0===e.message?"undefined":"string"==typeof e.message?e.message:"object"==typeof e.message?JSON.stringify(e.message,Object.getOwnPropertyNames(e.message)):`${e.message}`:"[Unknown]",{name:e&&"object"==typeof e&&"name"in e&&"string"==typeof e.name?e.name:"[Unknown]",message:t,stack:e instanceof Error?p(e):void 0}}function p(e){let t=l.get(e);return t||((e.stack||"").toString(),t=l.get(e)),t?c(e,t):e.stack}function d(e,t){return t?function(e,t){return(e=h(e)).stack?t?`${t}\n${e.stack}`:e.stack.trim():t?`${t}\n${e.name}: ${e.message}`:`${e.name}: ${e.message}`}(t,e):e}const m=require("electron");function f(e,...t){return m.ipcRenderer.sendSync(e,...t)}function g(e,t){m.ipcRenderer.on(e,t)}function y(e,t){m.ipcRenderer.removeListener(e,t)}const w=require("fs/promises");var b=n(5317),C=n(9023);const v=(0,C.promisify)(b.execFile);var S=n(1630),E=n.n(S);const k=e=>(0,w.access)(e).then(E()(!0),E()(!1));function R(e,t){return(...n)=>(n=n.length!==t?n.slice(0,t):n,function(e,...t){return m.ipcRenderer.invoke(e,...t)}(e,...n))}function A(e,t){return(...n)=>{n=n.length!==t?n.slice(0,t):n,function(e,...t){m.ipcRenderer.send(e,...t)}(e,...n)}}const T=A("select-all-window-contents",0),x=A("update-menu-state",1),D=A("renderer-ready",1),M=A("execute-menu-item-by-id",1),P=R("is-window-focused",0),I=A("focus-window",0),_=R("show-item-in-folder",1),F=A("unsafe-open-directory",1),N=R("open-external",1),O=R("move-to-trash",1),L=R("get-current-window-state",0),B=R("get-current-window-zoom-factor",0),H=A("dialog-did-open",0),U=A("set-window-zoom-factor",1),Z=R("check-for-updates",1),$=A("quit-and-install-updates",0),W=A("quit-app",0),V=A("set-native-theme-source",1),q=R("should-use-dark-colors",0),G=A("minimize-window",0),z=A("maximize-window",0),j=A("unmaximize-window",0),K=A("close-window",0),Y=R("is-window-maximized",0),X=R("get-apple-action-on-double-click",0),Q=A("show-certificate-trust-dialog",2),J=R("get-path",1),ee=R("get-app-architecture",0),te=R("get-app-path",0),ne=R("is-running-under-arm64-translation",0),re=R("move-to-applications-folder",0),se=A("get-app-menu",0),ie=R("show-contextual-menu",2),oe=A("update-preferred-app-menu-item-labels",1);function ae(e){return{message:e.message||`${e}`,name:e.name||`${e.name}`,stack:e.stack||void 0}}const le=A("uncaught-exception",1),ce=A("send-error-report",3),ue=A("update-accounts",1),he=R("resolve-proxy",1),pe=(R("is-in-application-folder",0),R("show-save-dialog",1)),de=R("show-open-dialog",1),me=R("save-guid",1),fe=R("get-guid",0),ge=R("show-notification",3),ye=R("get-notifications-permission",0),we=R("request-notifications-permission",0),be=A("install-windows-cli",0),Ce=A("uninstall-windows-cli",0),ve=global,Se=A("log",2);function Ee(e,t,n){Se(e,d(`[ui] ${t}`,n))}ve.log={error(e,t){Ee("error",e,t),console.error(d(e,t))},warn(e,t){Ee("warn",e,t),console.warn(d(e,t))},info(e,t){Ee("info",e,t),console.info(d(e,t))},debug(e,t){Ee("debug",e,t),console.debug(d(e,t))}};var ke=n(7252),Re=n.n(ke),Ae=n(4425),Te=n.n(Ae);function xe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(null,arguments)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}function Pe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Me(e,t)}const Ie=Re().createContext(null);function _e(e,t){var n=Object.create(null);return e&&ke.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,ke.isValidElement)(e)?t(e):e}(e)})),n}function Fe(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ne(e,t,n){var r=_e(e.children),s=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,s=Object.create(null),i=[];for(var o in e)o in t?i.length&&(s[o]=i,i=[]):i.push(o);var a={};for(var l in t){if(s[l])for(r=0;r<s[l].length;r++){var c=s[l][r];a[s[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(s).forEach((function(i){var o=s[i];if((0,ke.isValidElement)(o)){var a=i in t,l=i in r,c=t[i],u=(0,ke.isValidElement)(c)&&!c.props.in;!l||a&&!u?l||!a||u?l&&a&&(0,ke.isValidElement)(c)&&(s[i]=(0,ke.cloneElement)(o,{onExited:n.bind(null,o),in:c.props.in,exit:Fe(o,"exit",e),enter:Fe(o,"enter",e)})):s[i]=(0,ke.cloneElement)(o,{in:!1}):s[i]=(0,ke.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Fe(o,"exit",e),enter:Fe(o,"enter",e)})}})),s}var Oe=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Le=function(e){function t(t,n){var r,s=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},r}Pe(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,s=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,_e(n.children,(function(e){return(0,ke.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Fe(e,"appear",n),enter:Fe(e,"enter",n),exit:Fe(e,"exit",n)})}))):Ne(e,s,i),firstRender:!1}},n.handleExited=function(e,t){var n=_e(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=De({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=xe(e,["component","childFactory"]),s=this.state.contextValue,i=Oe(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Re().createElement(Ie.Provider,{value:s},i):Re().createElement(Ie.Provider,{value:s},Re().createElement(t,r,i))},t}(Re().Component);Le.propTypes={},Le.defaultProps={component:"div",childFactory:function(e){return e}};const Be=Le;function He(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ue="unmounted",Ze="exited",$e="entering",We="entered",Ve="exiting",qe=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var s,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(s=Ze,r.appearStatus=$e):s=We:s=t.unmountOnExit||t.mountOnEnter?Ue:Ze,r.state={status:s},r.nextCallback=null,r}Pe(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ue?{status:Ze}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$e&&n!==We&&(t=$e):n!==$e&&n!==We||(t=Ve)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===$e?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Ze&&this.setState({status:Ue})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,s=this.props.nodeRef?[r]:[Te().findDOMNode(this),r],i=s[0],o=s[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(i,o),this.safeSetState({status:$e},(function(){t.props.onEntering(i,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:We},(function(){t.props.onEntered(i,o)}))}))}))):this.safeSetState({status:We},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Te().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Ve},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ze},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ze},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Te().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=s[0],o=s[1];this.props.addEndListener(i,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ue)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,xe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return Re().createElement(Ie.Provider,{value:null},"function"==typeof n?n(e,r):Re().cloneElement(Re().Children.only(n),r))},t}(Re().Component);function Ge(){}qe.contextType=Ie,qe.propTypes={},qe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ge,onEntering:Ge,onEntered:Ge,onExit:Ge,onExiting:Ge,onExited:Ge},qe.UNMOUNTED=Ue,qe.EXITED=Ze,qe.ENTERING=$e,qe.ENTERED=We,qe.EXITING=Ve;const ze=qe;var je=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=He(n.className,r):n.setAttribute("class",He(n.className&&n.className.baseVal||"",r)));var n,r}))},Ke=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),s=r[0],i=r[1];t.removeClasses(s,"exit"),t.addClass(s,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),s=r[0],i=r[1]?"appear":"enter";t.addClass(s,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),s=r[0],i=r[1]?"appear":"enter";t.removeClasses(s,i),t.addClass(s,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,s=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:s,activeClassName:r?s+"-active":n[e+"Active"],doneClassName:r?s+"-done":n[e+"Done"]}},t}Pe(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],s=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&s&&(r+=" "+s),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,s=n.active,i=n.done;this.appliedClasses[t]={},r&&je(e,r),s&&je(e,s),i&&je(e,i)},n.render=function(){var e=this.props,t=(e.classNames,xe(e,["classNames"]));return Re().createElement(ze,De({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Re().Component);Ke.defaultProps={classNames:""},Ke.propTypes={};const Ye=Ke;var Xe,Qe,Je,et,tt,nt;function rt(e){return"merge"===e.kind}function st(e){return"rebase"===e.kind}function it(e){return"cherryPick"===e.kind}function ot(e){throw new Error(e)}function at(e,t){throw new Error(t)}function lt(e,t){return null==t?ot(e):t}function ct(e,t){if(null==e)return ot(t)}!function(e){e[e.Repository=0]="Repository",e[e.CloningRepository=1]="CloningRepository",e[e.MissingRepository=2]="MissingRepository"}(Xe||(Xe={})),function(e){e[e.Repository=0]="Repository",e[e.Branch=1]="Branch",e[e.AppMenu=2]="AppMenu",e[e.AddMenu=3]="AddMenu",e[e.PushPull=4]="PushPull"}(Qe||(Qe={})),function(e){e[e.Changes=0]="Changes",e[e.History=1]="History"}(Je||(Je={})),function(e){e.WorkingDirectory="WorkingDirectory",e.Stash="Stash"}(et||(et={})),function(e){e.History="History",e.Compare="Compare"}(tt||(tt={})),function(e){e.Ahead="Ahead",e.Behind="Behind"}(nt||(nt={}));const ut={moveItemToTrash:O,beep:m.shell.beep,openExternal:N,showItemInFolder:e=>k(e).then((()=>_(e))).catch((t=>log.error(`Unable show item in folder '${e}'`,t))),showFolderContents:async function(e){const t=await(0,w.stat)(e).catch((t=>(log.error(`Unable to retrieve file information for ${e}`,t),null)));if(t)return t.isDirectory()?void F(e):(log.error(`Trying to get the folder contents of a non-folder at '${e}'`),void await _(e))},openPath:m.shell.openPath};function ht(e,n){const r=t.join(e.path,n);return ut.showItemInFolder(r)}var pt,dt=n(5327);!function(e){e[e.Push=1]="Push",e[e.Pull=2]="Pull",e[e.Fetch=3]="Fetch",e[e.Clone=4]="Clone",e[e.Checkout=5]="Checkout",e[e.Merge=6]="Merge",e[e.Rebase=7]="Rebase",e[e.CherryPick=8]="CherryPick",e[e.CreateBranchForCherryPick=9]="CreateBranchForCherryPick",e[e.Squash=10]="Squash",e[e.Reorder=11]="Reorder",e[e.DiscardChanges=12]="DiscardChanges"}(pt||(pt={}));class mt extends Error{metadata;underlyingError;constructor(e,t){super(e.message),this.name=e.name,this.stack=e.stack,this.underlyingError=e,this.metadata=t}}class ft extends mt{constructor(e,t,n){super(e,{gitContext:{kind:"checkout",branchToCheckout:n},retryAction:{type:pt.Checkout,branch:n,repository:t},repository:t})}}class gt extends mt{constructor(e,t,n){super(e,{retryAction:{type:pt.DiscardChanges,files:n,repository:t}})}}class yt extends mt{constructor(e){super(e,{gitContext:{kind:"create-repository"}})}}const wt=/^Can not find Squirrel$/,bt=/System\.Net\.WebException: The remote name could not be resolved: 'central\.github\.com'/,Ct=/A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond/;var vt=n(3657);let St=null,Et=null;async function kt(){return St||(St=await te()),St}var Rt=n(7346),At=n.n(Rt),Tt=n(8248),xt=n.n(Tt);const Dt=At()(Intl.DateTimeFormat,{cache:new(xt())({maxSize:100}),cacheKey:(...e)=>JSON.stringify(e)}),Mt=(e,t)=>isNaN(e.valueOf())?"Invalid date":Dt("zh-CN",t).format(e),Pt={year:31536e6,years:31536e6,day:864e5,days:864e5,hour:36e5,hours:36e5,minute:6e4,minutes:6e4,second:1e3,seconds:1e3},It=(e,t)=>_t(Date.now(),e,t);function _t(e,t,n){const r=e.valueOf()+t*Pt[n];return"number"==typeof e?r:new Date(r)}const Ft=(...e)=>(0,i.pathToFileURL)(t.resolve(...e)).toString();class Nt extends Error{apiError;responseStatus;constructor(e,t){let n;if(t&&t.message){n=t.message;const e=t.errors,r=e&&e.map((e=>e.message)).join(", ");r&&(n=`${n} (${r})`)}else n=`API error ${e.url}: ${e.statusText} (${e.status})`;super(n),this.responseStatus=e.status,this.apiError=t}}async function Ot(e){try{return await e.json()}catch(t){const n=e.headers.get("Content-Length")||"(missing)",r=e.headers.get("X-GitHub-Request-Id")||"(missing)";throw log.warn(`deserialize: invalid JSON found at '${e.url}' - status: ${e.status}, length: '${n}' id: '${r}'`,t),t}}function Lt(e,t,n,r,s,o,a=!1){const l=function(e,t){let n="/"===t[0]?t.substring(1):t;n.startsWith("api/v3/")&&(n=n.substring(7));const r=e.endsWith("/")?e:`${e}/`;return new i.URL(n,r).toString()}(e,r);let c={Accept:"application/vnd.github.v3+json, application/json","Content-Type":"application/json","User-Agent":"GitHubDesktop/3.5.3 (Windows)"};t&&(c.Authorization=`Bearer ${t}`),c={...c,...o};const u={headers:c,method:n,body:JSON.stringify(s)};return a&&(u.cache="reload"),fetch(l,u)}async function Bt(e){if(e.ok)return Ot(e);{let t;try{t=await Ot(e)}catch(t){throw new Nt(e,null)}throw new Nt(e,t)}}function Ht(e,t){const n=Object.keys(t).map((e=>`${e}=${encodeURIComponent(t[e])}`)).join("&");return n.length?-1===e.indexOf("?")?`${e}?${n}`:`${e}&${n}`:e}const Ut=/^\[([a-z]{1,})\]\s((.|\n)*)/i;function Zt(e){return null!=e}function $t(e){const t=e.notes.map((e=>function(e){const t=e.trim(),n=Ut.exec(t);if(null===n)return log.debug(`[ReleaseNotes] unable to convert text into entry: ${e}`),null;const r=n[1].toLowerCase(),s=n[2];return"new"===r||"fixed"===r||"improved"===r||"added"===r||"pretext"===r||"removed"===r?{kind:r,message:s}:(log.debug(`[ReleaseNotes] kind ${r} was found but is not a valid entry`),{kind:"other",message:s})}(e))).filter(Zt),n=t.filter((e=>"new"===e.kind||"added"===e.kind||"improved"===e.kind)),r=t.filter((e=>"fixed"===e.kind)),s=t.filter((e=>"removed"===e.kind||"other"===e.kind)),i=t.filter((e=>e.message.includes(" Thanks @"))),o=t.filter((e=>"pretext"===e.kind));return{latestVersion:e.version,datePublished:Mt(new Date(e.pub_date),{dateStyle:"long"}),pretext:o,enhancements:n,bugfixes:r,other:s,thankYous:i}}async function Wt(e){const t=new URL("https://central.github.com/deployments/desktop/desktop/changelog.json");void 0!==e&&t.searchParams.set("limit",e.toString());const n=await fetch(t.toString(),{headers:{"user-agent":"GitHubDesktop/3.5.3 (Windows)"}});return n.ok?await n.json():[]}async function Vt(e){const t=await Wt(),n=new vt.SemVer(e??"3.5.3"),r=t.filter((e=>vt.gt(new vt.SemVer(e.version),n)&&new Date(e.pub_date).getTime()>It(-90,"days")));return r.length>0?r.map($t):[$t(t[0])]}async function qt(){const e=[...await Vt("3.0.0")],n=await(0,w.readFile)(t.join(__dirname,"static","pretext-draft.md"),"utf8").catch((e=>null));return null===n?e:[{...e[0],pretext:[{kind:"pretext",message:n}]},...e.slice(1)]}function Gt(e,t){return Object.values(e).find((e=>e===t))}function zt(e,t){const n=localStorage.getItem(e);return null===n?t:"1"===n||"true"===n||"0"!==n&&"false"!==n&&t}function jt(e,t){localStorage.setItem(e,t?"1":"0")}function Kt(e,t){const n=localStorage.getItem(e);if(null===n||0===n.length)return t;const r=parseInt(n,10);return isNaN(r)?t:r}function Yt(e,t){localStorage.setItem(e,t.toString())}function Xt(e){return(localStorage.getItem(e)||"").split(Jt).map(parseFloat).filter((e=>!isNaN(e)))}function Qt(e,t){localStorage.setItem(e,t.join(Jt))}Ft(__dirname,"static/release-note-header-left.svg"),Ft(__dirname,"static/release-note-header-right.svg");const Jt=",";function en(e,t){const n=localStorage.getItem(e);return null===n?void 0:Gt(t,n)}function tn(e){const t=localStorage.getItem(e);if(null!==t)try{return JSON.parse(t)}catch(e){return}}function nn(e,t){const n=JSON.stringify(t);localStorage.setItem(e,n)}const rn=!1;function sn(){return!rn&&"1"===process.env.GITHUB_DESKTOP_PREVIEW_FEATURES}function on(){return sn()||!1}function an(){return on()}const ln=e=>(e.features??[]).includes("desktop_copilot_generate_commit_message")&&e.isCopilotDesktopEnabled;function cn(){return on()}const un="last-successful-update-check",hn="version-of-last-showcase";var pn;!function(e){e[e.CheckingForUpdates=0]="CheckingForUpdates",e[e.UpdateAvailable=1]="UpdateAvailable",e[e.UpdateNotAvailable=2]="UpdateNotAvailable",e[e.UpdateReady=3]="UpdateReady",e[e.UpdateNotChecked=4]="UpdateNotChecked"}(pn||(pn={}));const dn=new class{emitter=new dt.Emitter;status=pn.UpdateNotChecked;lastSuccessfulCheck=null;newReleases=null;isX64ToARM64ImmediateAutoUpdate=!1;userInitiatedUpdate=!0;_prioritizeUpdate=!1;_prioritizeUpdateInfoUrl=void 0;get prioritizeUpdate(){return this._prioritizeUpdate}get prioritizeUpdateInfoUrl(){return this._prioritizeUpdateInfoUrl}constructor(){const e=Kt(un,0);e>0&&(this.lastSuccessfulCheck=new Date(e)),g("auto-updater-error",this.onAutoUpdaterError),g("auto-updater-checking-for-update",this.onCheckingForUpdate),g("auto-updater-update-available",this.onUpdateAvailable),function(e){g("auto-updater-update-not-available",e)}(this.onUpdateNotAvailable),function(e){g("auto-updater-update-downloaded",e)}(this.onUpdateDownloaded)}touchLastChecked(){const e=new Date;this.lastSuccessfulCheck=e,Yt(un,e.getTime())}onAutoUpdaterError=(e,t)=>{this.status=pn.UpdateNotAvailable;{const e=function(e){return wt.test(e.message)?new Error("The application is missing a dependency it needs to check and install updates. This is very, very bad."):bt.test(e.message)?new Error("GitHub Desktop was not able to contact the update server. Ensure you have internet connectivity and try again."):Ct.test(e.message)?new Error("GitHub Desktop was not able to check for updates due to a timeout. Ensure you have internet connectivity and try again."):null}(t);this.emitError(e||t)}};onCheckingForUpdate=()=>{this.status=pn.CheckingForUpdates,this.emitDidChange()};onUpdateAvailable=()=>{this.touchLastChecked(),this.status=pn.UpdateAvailable,this.emitDidChange()};onUpdateNotAvailable=async()=>{this.newReleases=await Vt(),this.touchLastChecked(),this.status=pn.UpdateNotAvailable,this.emitDidChange()};onUpdateDownloaded=async()=>{this.newReleases=await Vt(),this.isX64ToARM64ImmediateAutoUpdate=this.supportsImmediateUpdateFromEmulatedX64ToARM64()&&null!==this.newReleases&&1===this.newReleases.length&&"3.5.3"===this.newReleases[0].latestVersion&&await ne(),this.status=pn.UpdateReady,this.emitDidChange(),this.updatePriorityUpdateStatus()};supportsImmediateUpdateFromEmulatedX64ToARM64(){return!1}onDidChange(e){return this.emitter.on("did-change",e)}emitDidChange(){this.emitter.emit("did-change",this.state)}onError(e){return this.emitter.on("error",e)}emitError(e){const t=new mt(e,{backgroundTask:!this.userInitiatedUpdate});this.emitter.emit("error",t)}get state(){return{status:this.status,lastSuccessfulCheck:this.lastSuccessfulCheck,newReleases:this.newReleases,isX64ToARM64ImmediateAutoUpdate:this.isX64ToARM64ImmediateAutoUpdate,prioritizeUpdate:this.prioritizeUpdate,prioritizeUpdateInfoUrl:this.prioritizeUpdateInfoUrl}}async checkForUpdates(e,t){if(this.status===pn.UpdateReady)return void this.updatePriorityUpdateStatus();const n=await this.getUpdatesUrl(t);if(null===n)return;this.userInitiatedUpdate=!e;const r=await Z(n);void 0!==r&&this.emitError(r)}async getUpdatesUrl(e){let t=null;try{t=new URL("https://central.github.com/api/deployments/desktop/desktop/latest?version=3.5.3&env=production")}catch(e){return log.error("Error parsing updates url",e),"https://central.github.com/api/deployments/desktop/desktop/latest?version=3.5.3&env=production"}return e&&t.searchParams.set("skipGuidCheck","1"),on()&&!0===await ne()&&(t.pathname=t.pathname.replace(/\/desktop\/desktop\/(x64\/)?latest/,"/desktop/desktop/arm64/latest"),this.supportsImmediateUpdateFromEmulatedX64ToARM64()&&t.searchParams.set("version","0.0.64")),t.toString()}quitAndInstallUpdate(){f("will-quit"),$()}async updatePriorityUpdateStatus(){try{const e=await fetch(await this.getUpdatesUrl(!1),{method:"HEAD",headers:{"user-agent":"GitHubDesktop/3.5.3 (Windows)"}}),t="true"===e.headers.get("x-prioritize-update"),n=e.headers.get("x-prioritize-update-info-url")??void 0;this._prioritizeUpdate===t&&this._prioritizeUpdateInfoUrl===n||(this._prioritizeUpdate=t,this._prioritizeUpdateInfoUrl=n,this.emitDidChange())}catch(e){log.error("Error updating priority update status",e)}}async isUpdateShowcase(){if(null===this.newReleases)return!1;const e=localStorage.getItem(hn);if(null!==e){const t=new vt.SemVer(e),n=new vt.SemVer(this.newReleases[0].latestVersion);if((0,vt.gte)(t,n))return!1}return this.newReleases.filter((e=>new Date(e.datePublished).getTime()>It(-15,"days"))).some((e=>e.pretext.length>0))}setIsx64ToARM64ImmediateAutoUpdate(e){}setPrioritizeUpdate(e){}setPrioritizeUpdateInfoUrl(e){}};var mn;!function(e){e[e.BackgroundTask=0]="BackgroundTask",e[e.UserInitiatedTask=1]="UserInitiatedTask"}(mn||(mn={}));const fn=function(){const e=()=>function(e){return zt(`features/${e}`,true)}("should-render-application-menu");{const t=e();return()=>t}}();function gn(e,t){return e.endpoint===t.endpoint&&e.id===t.id}class yn{login;endpoint;token;emails;avatarURL;id;name;plan;copilotEndpoint;isCopilotDesktopEnabled;features;static anonymous(){return new yn("",ar(),"",[],"",-1,"","free")}_friendlyEndpoint=void 0;constructor(e,t,n,r,s,i,o,a,l,c,u){this.login=e,this.endpoint=t,this.token=n,this.emails=r,this.avatarURL=s,this.id=i,this.name=o,this.plan=a,this.copilotEndpoint=l,this.isCopilotDesktopEnabled=c,this.features=u}withToken(e){return new yn(this.login,this.endpoint,e,this.emails,this.avatarURL,this.id,this.name,this.plan,this.copilotEndpoint,this.isCopilotDesktopEnabled,this.features)}get friendlyName(){return""!==this.name?this.name:this.login}get friendlyEndpoint(){return this._friendlyEndpoint??=wn(this)?"GitHub.com":new URL(ir(this.endpoint)).hostname}}const wn=e=>e.endpoint===ar(),bn=e=>!wn(e),Cn=require("crypto");var vn=n(8030),Sn=n.n(vn);function En(e){if("undefined"!=typeof window&&window.crypto){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}return(0,Cn.randomBytes)(e)}function kn(){return Sn()({random:En(16)})}const Rn=new vt.SemVer("3.1.0"),An=new Map,Tn=new Map,xn=e=>`endpoint-version:${e}`,Dn=e=>{if(e===ar())return!0;const{hostname:t}=new URL(e);return"api.github.com"===t||"github.com"===t},Mn=e=>new URL(e).hostname.endsWith(".ghe.com"),Pn=e=>!Dn(e)&&!Mn(e);function In(e){const t=xn(e),n=Tn.get(t);if(void 0!==n)return n;const r=localStorage.getItem(t),s=null===r?null:vt.parse(r);return null!==s&&Tn.set(t,s),s}function _n(e,t,n){return void 0!==e&&!1!==e&&(!0===e?t:(ct(n,"Need to provide a version to compare against"),t&&vt.satisfies(n,e)))}const Fn=({dotcom:e,ghe:t,es:n},r=In)=>s=>_n(e,Dn(s))||_n(t??e,Mn(s))||_n(n,Pn(s),r(s)??Rn),Nn=Fn({es:">= 3.0.0"}),On=Fn({dotcom:!0,es:">= 3.4.0"}),Ln=Fn({dotcom:!0}),Bn=Fn({dotcom:!0}),Hn=Fn({dotcom:!0}),Un=Fn({dotcom:!0}),Zn=new Set;var $n;!function(e){e[e.NotModified=304]="NotModified",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.TooManyRequests=429]="TooManyRequests"}($n||($n={}));class Wn extends Error{statusCode;constructor(e,t){super(e),this.name="CopilotError",this.statusCode=t}get isQuotaExceededError(){return this.statusCode===$n.PaymentRequired}}const Vn=process.env.DESKTOP_GITHUB_DOTCOM_API_ENDPOINT,qn=process.env.DESKTOP_GITHUB_DOTCOM_HTML_URL,Gn=process.env.DESKTOP_GITHUB_DOTCOM_ADDITIONAL_COOKIES;void 0!==Gn&&(document.cookie+="; "+Gn);const zn="de0e3c7e9973e1c4dd77",jn="1273305a5fc2737c2ca2911948ba24a9d961e2a3",Kn=["repo","user","workflow"];class Yn extends Error{}var Xn,Qn,Jn,er;function tr(e){const t=e.headers.get("Link");if(!t)return null;for(const e of t.split(",")){const t=e.match(/<([^>]+)>; rel="([^"]+)"/);if(t&&"next"===t[2])return i.parse(t[1]).path||null}return null}function nr(e){const t=tr(e);if(!t)return null;const{pathname:n,query:r}=i.parse(t,!0),{per_page:s,page:o}=r,a="string"==typeof s?parseInt(s,10):NaN,l="string"==typeof o?parseInt(o,10):NaN;if(!a||!l)return t;const c=(l-1)*a,u=Math.min(100,2*a);return a!==u&&c%u==0?(r.per_page=`${u}`,r.page=""+(c/u+1),i.format({pathname:n,query:r})):t}!function(e){e.Queued="queued",e.InProgress="in_progress",e.Completed="completed"}(Xn||(Xn={})),function(e){e.ActionRequired="action_required",e.Canceled="cancelled",e.TimedOut="timed_out",e.Failure="failure",e.Neutral="neutral",e.Success="success",e.Skipped="skipped",e.Stale="stale"}(Qn||(Qn={})),function(e){e.Creation="creation",e.Update="update",e.RequiredDeployments="required_deployments",e.RequiredSignatures="required_signatures",e.RequiredStatusChecks="required_status_checks",e.PullRequest="pull_request",e.CommitMessagePattern="commit_message_pattern",e.CommitAuthorEmailPattern="commit_author_email_pattern",e.CommitterEmailPattern="committer_email_pattern",e.BranchNamePattern="branch_name_pattern"}(Jn||(Jn={})),function(e){e.StartsWith="starts_with",e.EndsWith="ends_with",e.Contains="contains",e.RegexMatch="regex"}(er||(er={}));class rr{static tokenInvalidatedListeners=new Set;static onTokenInvalidated(e){this.tokenInvalidatedListeners.add(e)}static emitTokenInvalidated(e,t){this.tokenInvalidatedListeners.forEach((n=>n(e,t)))}static fromAccount(e){return new rr(e.endpoint,e.token,e.copilotEndpoint)}endpoint;token;copilotEndpoint;constructor(e,t,n){this.endpoint=e,this.token=t,this.copilotEndpoint=n}async getAliveDesktopChannel(){try{const e=await this.ghRequest("GET","/desktop_internal/alive-channel");return await Bt(e)}catch(e){return log.warn(`Alive channel request failed: ${e}`),null}}async getAliveWebSocketURL(){try{const e=await this.ghRequest("GET","/alive_internal/websocket-url");return e.status===$n.NotFound?null:(await Bt(e)).url}catch(e){throw log.warn(`Alive web socket request failed: ${e}`),e}}async fetchIssueComment(e,t,n){try{const r=await this.ghRequest("GET",`repos/${e}/${t}/issues/comments/${n}`);return r.status===$n.NotFound?(log.warn(`fetchIssueComment: '${e}/${t}/issues/comments/${n}' returned a 404`),null):await Bt(r)}catch(r){return log.warn(`fetchIssueComment: an error occurred for '${e}/${t}/issues/comments/${n}'`,r),null}}async fetchPullRequestReviewComment(e,t,n){try{const r=await this.ghRequest("GET",`repos/${e}/${t}/pulls/comments/${n}`);return r.status===$n.NotFound?(log.warn(`fetchPullRequestReviewComment: '${e}/${t}/pulls/comments/${n}' returned a 404`),null):await Bt(r)}catch(r){return log.warn(`fetchPullRequestReviewComment: an error occurred for '${e}/${t}/pulls/comments/${n}'`,r),null}}async fetchRepository(e,t){try{const n=await this.ghRequest("GET",`repos/${e}/${t}`);return n.status===$n.NotFound?(log.warn(`fetchRepository: '${e}/${t}' returned a 404`),null):await Bt(n)}catch(n){return log.warn(`fetchRepository: an error occurred for '${e}/${t}'`,n),null}}async fetchRepositoryCloneInfo(e,t,n){const r=await this.ghRequest("GET",`repos/${e}/${t}`,{reloadCache:!0});if(r.status===$n.NotFound)return null;const s=await Bt(r);return{url:"ssh"===n?s.ssh_url:s.clone_url,defaultBranch:s.default_branch}}async streamUserRepositories(e,t,n){try{const r="user/repos",s=t?`${r}?affiliation=${t}`:r;await this.fetchAll(s,{...n,onPage:t=>{e(t.filter((e=>null!==e.owner))),n?.onPage?.(t)}})}catch(e){log.warn(`streamUserRepositories: failed with endpoint ${this.endpoint}`,e)}}async fetchAccount(){try{const e=await this.ghRequest("GET","user");return await Bt(e)}catch(e){throw log.warn(`fetchAccount: failed with endpoint ${this.endpoint}`,e),e}}async fetchEmails(){try{const e=await this.ghRequest("GET","user/emails"),t=await Bt(e);return Array.isArray(t)?t:[]}catch(e){return log.warn(`fetchEmails: failed with endpoint ${this.endpoint}`,e),[]}}async fetchOrgs(){try{return await this.fetchAll("user/orgs")}catch(e){return log.warn(`fetchOrgs: failed with endpoint ${this.endpoint}`,e),[]}}async createRepository(e,t,n,r){try{const s=e?`orgs/${e.login}/repos`:"user/repos",i=await this.ghRequest("POST",s,{body:{name:t,description:n,private:r}});return await Bt(i)}catch(t){if(t instanceof Nt){if(null!==e)throw new Error(`Unable to create repository for organization '${e.login}'. Verify that the repository does not already exist and that you have permission to create a repository there.`);throw t}throw log.error(`createRepository: failed with endpoint ${this.endpoint}`,t),new Error("Unable to publish repository. Please check if you have an internet connection and try again.")}}async forkRepository(e,t){try{const n=`/repos/${e}/${t}/forks`,r=await this.ghRequest("POST",n);return await Bt(r)}catch(n){throw log.error(`forkRepository: failed to fork ${e}/${t} at endpoint: ${this.endpoint}`,n),n}}async fetchIssues(e,t,n,r){const s={state:n};r&&!isNaN(r.getTime())&&(s.since=r.toISOString().replace(/\.\d{3}Z$/,"Z"));const i=Ht(`repos/${e}/${t}/issues`,s);try{return(await this.fetchAll(i)).filter((e=>!e.pullRequest))}catch(n){throw log.warn(`fetchIssues: failed for repository ${e}/${t}`,n),n}}async fetchAllOpenPullRequests(e,t){const n=Ht(`repos/${e}/${t}/pulls`,{state:"open"});try{return await this.fetchAll(n)}catch(n){throw log.warn(`failed fetching open PRs for repository ${e}/${t}`,n),n}}async fetchUpdatedPullRequests(e,t,n,r=320){const s=n.getTime(),i=Ht(`repos/${e}/${t}/pulls`,{state:"all",sort:"updated",direction:"desc"});try{return(await this.fetchAll(i,{perPage:10,getNextPagePath:nr,continue(e){if(e.length>=r)throw new Yn("got max pull requests, aborting");const t=e.at(-1);return void 0!==t&&Date.parse(t.updated_at)>s},suppressErrors:!1})).filter((e=>Date.parse(e.updated_at)>=s))}catch(n){throw log.warn(`failed fetching updated PRs for repository ${e}/${t}`,n),n}}async fetchPullRequest(e,t,n){try{const r=`/repos/${e}/${t}/pulls/${n}`,s=await this.ghRequest("GET",r);return await Bt(s)}catch(r){throw log.warn(`failed fetching PR for ${e}/${t}/pulls/${n}`,r),r}}async fetchPullRequestReview(e,t,n,r){try{const s=`/repos/${e}/${t}/pulls/${n}/reviews/${r}`,i=await this.ghRequest("GET",s);return await Bt(i)}catch(s){return log.debug(`failed fetching PR review ${r} for ${e}/${t}/pulls/${n}`,s),null}}async fetchPullRequestReviews(e,t,n){try{const r=`/repos/${e}/${t}/pulls/${n}/reviews`,s=await this.ghRequest("GET",r);return await Bt(s)}catch(r){return log.debug(`failed fetching PR reviews for ${e}/${t}/pulls/${n}`,r),[]}}async fetchPullRequestReviewComments(e,t,n,r){try{const s=`/repos/${e}/${t}/pulls/${n}/reviews/${r}/comments`,i=await this.ghRequest("GET",s);return await Bt(i)}catch(r){return log.debug(`failed fetching PR review comments for ${e}/${t}/pulls/${n}`,r),[]}}async fetchPullRequestComments(e,t,n){try{const r=`/repos/${e}/${t}/pulls/${n}/comments`,s=await this.ghRequest("GET",r);return await Bt(s)}catch(r){return log.debug(`failed fetching PR comments for ${e}/${t}/pulls/${n}`,r),[]}}async fetchIssueComments(e,t,n){try{const r=`/repos/${e}/${t}/issues/${n}/comments`,s=await this.ghRequest("GET",r);return await Bt(s)}catch(r){return log.debug(`failed fetching issue comments for ${e}/${t}/issues/${n}`,r),[]}}async fetchCombinedRefStatus(e,t,n,r=!1){const s=`repos/${e}/${t}/commits/${encodeURIComponent(n)}/status?per_page=100`,i=await this.ghRequest("GET",s,{reloadCache:r});try{return await Bt(i)}catch(r){return log.debug(`Failed fetching check runs for ref ${n} (${e}/${t})`,r),null}}async fetchRefCheckRuns(e,t,n,r=!1){const s=`repos/${e}/${t}/commits/${encodeURIComponent(n)}/check-runs?per_page=100`,i=await this.ghRequest("GET",s,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"},reloadCache:r});try{return await Bt(i)}catch(r){return log.debug(`Failed fetching check runs for ref ${n} (${e}/${t})`,r),null}}async fetchPRWorkflowRunsByBranchName(e,t,n){const r=`repos/${e}/${t}/actions/runs?event=pull_request&branch=${encodeURIComponent(n)}`,s=await this.ghRequest("GET",r,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"}});try{return await Bt(s)}catch(r){log.debug(`Failed fetching workflow runs for ${n} (${e}/${t})`)}return null}async fetchPRActionWorkflowRunByCheckSuiteId(e,t,n){const r=`repos/${e}/${t}/actions/runs?event=pull_request&check_suite_id=${n}`,s=await this.ghRequest("GET",r,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"}});try{const e=await Bt(s);if(e.workflow_runs.length>0)return e.workflow_runs[0]}catch(r){log.debug(`Failed fetching workflow runs for ${n} (${e}/${t})`)}return null}async fetchWorkflowRunJobs(e,t,n){const r=`repos/${e}/${t}/actions/runs/${n}/jobs`,s=await this.ghRequest("GET",r,{customHeaders:{Accept:"application/vnd.github.antiope-preview+json"}});try{return await Bt(s)}catch(r){log.debug(`Failed fetching workflow jobs (${e}/${t}) workflow run: ${n}`)}return null}async rerequestCheckSuite(e,t,n){const r=`/repos/${e}/${t}/check-suites/${n}/rerequest`;return this.ghRequest("POST",r).then((e=>e.ok)).catch((r=>(log.debug(`Failed retry check suite id ${n} (${e}/${t})`,r),!1)))}async rerunFailedJobs(e,t,n){const r=`/repos/${e}/${t}/actions/runs/${n}/rerun-failed-jobs`;return this.ghRequest("POST",r).then((e=>e.ok)).catch((r=>(log.debug(`Failed to rerun failed workflow jobs for (${e}/${t}): ${n}`,r),!1)))}async rerunJob(e,t,n){const r=`/repos/${e}/${t}/actions/jobs/${n}/rerun`;return this.ghRequest("POST",r).then((e=>e.ok)).catch((r=>(log.debug(`Failed to rerun workflow job (${e}/${t}): ${n}`,r),!1)))}async getAvatarToken(){return this.ghRequest("GET","/desktop/avatar-token").then((e=>e.json())).then((e=>e&&"object"==typeof e&&"avatar_token"in e&&"string"==typeof e.avatar_token?e.avatar_token:null)).catch((e=>(log.debug("Failed to load avatar token",e),null)))}async fetchCheckSuite(e,t,n){const r=`/repos/${e}/${t}/check-suites/${n}`,s=await this.ghRequest("GET",r);try{return await Bt(s)}catch(r){log.debug(`[fetchCheckSuite] Failed fetch check suite id ${n} (${e}/${t})`)}return null}async fetchPushControl(e,t,n){const r=`repos/${e}/${t}/branches/${encodeURIComponent(n)}/push_control`,s={Accept:"application/vnd.github.phandalin-preview"};try{const e=await this.ghRequest("GET",r,{customHeaders:s});return await Bt(e)}catch(e){return log.info("[fetchPushControl] unable to check if branch is potentially pushable",e),{pattern:null,required_signatures:!1,required_status_checks:[],required_approving_review_count:0,required_linear_history:!1,allow_actor:!0,allow_deletions:!0,allow_force_pushes:!0}}}async fetchProtectedBranches(e,t){const n=`repos/${e}/${t}/branches?protected=true`;try{const e=await this.ghRequest("GET",n);return await Bt(e)}catch(e){return log.info("[fetchProtectedBranches] unable to list protected branches",e),new Array}}async fetchRepoRulesForBranch(e,t,n){const r=`repos/${e}/${t}/rules/branches/${encodeURIComponent(n)}`;try{const e=await this.ghRequest("GET",r);return await Bt(e)}catch(e){return hr(e)||pr(e)||log.info(`[fetchRepoRulesForBranch] unable to fetch repo rules for branch: ${n} | ${r}`,e),new Array}}async fetchAllRepoRulesets(e,t){const n=`repos/${e}/${t}/rulesets`;try{const e=await this.ghRequest("GET",n);return await Bt(e)}catch(e){return hr(e)||pr(e)||log.info(`[fetchAllRepoRulesets] unable to fetch all repo rulesets | ${n}`,e),null}}async fetchRepoRuleset(e,t,n){const r=`repos/${e}/${t}/rulesets/${n}`;try{const e=await this.ghRequest("GET",r);return await Bt(e)}catch(e){return log.info(`[fetchRepoRuleset] unable to fetch repo ruleset for ID: ${n} | ${r}`,e),null}}async fetchAll(e,t){const n=new Array,r={perPage:100,...t};let s=Ht(e,{per_page:`${r.perPage}`}),i=[];do{const t=await this.ghRequest("GET",s);if(!1!==r.suppressErrors&&!t.ok)return log.warn(`fetchAll: '${e}' returned a ${t.status}`),n;i=await Bt(t),i&&(n.push(...i),r.onPage?.(i)),s=r.getNextPagePath?r.getNextPagePath(t):tr(t)}while(s&&(!r.continue||await r.continue(n)));return n}async request(e,t,n,r={}){return await Lt(e,this.token,t,n,r.body,r.customHeaders,r.reloadCache)}async ghRequest(e,t,n={}){const r=await this.request(this.endpoint,e,t,n);return r.status===$n.Unauthorized&&r.headers.has("X-GitHub-Request-Id")&&!r.headers.has("X-GitHub-OTP")&&rr.emitTokenInvalidated(this.endpoint,this.token),cr(this.endpoint,r),r}async copilotRequest(e,t){if(!this.copilotEndpoint)throw new Error("No Copilot endpoint available");const n=await this.request(this.copilotEndpoint,"POST",e,{body:{messages:[{role:"user",content:t}],stream:!1,response_format:{type:"json_object"}},customHeaders:{"X-Initiator":"user","X-Interaction-ID":kn(),"X-Interaction-Type":"generateCommitMessage"}});if(n.status===$n.TooManyRequests){const e=n.headers.get("Retry-After");throw new Wn(e?`Rate limited, retry after ${e} seconds.`:"Rate limited, try again in a few minutes.",n.status)}if(n.status===$n.PaymentRequired){const e=await n.text()||"You have reached your quota limit.";throw new Wn(e,n.status)}if(n.status===$n.Unauthorized)throw new Wn("Unauthorized: error with authentication.",n.status);if(n.status===$n.Forbidden){const e=await n.text();throw e.includes("unauthorized: not licensed to use Copilot")?new Wn("Unauthorized: not licensed to use Copilot.",n.status):e.includes("unauthorized: not authorized to use this Copilot feature",n.status)?new Wn("Unauthorized: not authorized to use this Copilot feature.",n.status):e.includes("integration does not have GitHub chat enabled")?new Wn("Integration does not have GitHub chat enabled.",n.status):new Wn("Unauthorized: unknown.",n.status)}if(466===n.status)throw new Wn("Client issue: unsupported API version.",n.status);if(n.status>=$n.BadRequest){const e=`Internal server error, code: ${n.status}, request ID: ${n.headers.get("X-Github-Request-Id")}.`;throw console.error(`Copilot request failed with status ${n.status}: ${e}`),new Wn("Something went wrong. Please, try again later.",n.status)}const r=(await n.text()).split("\n");for(const e of r)if(e.startsWith("data: "))return JSON.parse(e.substring(6));throw new Error("No data line found in response")}async getFetchPollInterval(e,t){const n=`repos/${e}/${t}/git`;try{const e=(await this.ghRequest("HEAD",n)).headers.get("x-poll-interval");if(e){const t=parseInt(e,10);return isNaN(t)?null:t}return null}catch(n){return log.warn(`getFetchPollInterval: failed for ${e}/${t}`,n),null}}async fetchMentionables(e,t,n){const r={Accept:"application/vnd.github.jerry-maguire-preview"};void 0!==n&&(r["If-None-Match"]=n);try{const n=`repos/${e}/${t}/mentionables/users`,s=await this.ghRequest("GET",n,{customHeaders:r});if(s.status===$n.NotFound)return log.warn(`fetchMentionables: '${n}' returned a 404`),null;if(s.status===$n.NotModified)return null;return{users:await Bt(s),etag:s.headers.get("etag")||void 0}}catch(n){return log.warn(`fetchMentionables: failed for ${e}/${t}`,n),null}}async fetchUser(e){try{const t=await this.ghRequest("GET",`users/${encodeURIComponent(e)}`);return t.status===$n.NotFound?null:await Bt(t)}catch(e){throw log.warn(`fetchUser: failed with endpoint ${this.endpoint}`,e),e}}async fetchFeatureFlags(){try{const e=await this.ghRequest("GET","/desktop_internal/features");return(await Bt(e)).features}catch(e){return void log.warn(`fetchFeatureFlags: failed with endpoint ${this.endpoint}`,e)}}async fetchUserCopilotInfo(){if(!Pn(this.endpoint))try{const e=await this.ghRequest("POST","/graphql",{body:{query:"\n {\n viewer {\n copilotEndpoints {\n api\n }\n\n isCopilotDesktopEnabled\n }\n }\n "}});if(null===e)return;const t=await e.json(),{viewer:n}=t.data;return{copilotEndpoint:n.copilotEndpoints.api,isCopilotDesktopEnabled:n.isCopilotDesktopEnabled}}catch(e){return void log.warn(`fetchUserCopilotInfo: failed with endpoint ${this.endpoint}`,e)}}async getDiffChangesCommitMessage(e){try{const t=(await this.copilotRequest("/agents/github-desktop-commit-message-generation",e)).choices.at(0);if(!t)throw new Error("No choice found in response");const n=t.message.content;if(!n)throw new Error("No message found in response");return JSON.parse(n)}catch(e){throw log.warn(`getDiffChangesCommitMessage: failed with endpoint ${this.endpoint}`,e),e}}async createPushProtectionBypass(e,t,n,r,s){const i=`repos/${e}/${t}/secret-scanning/push-protection-bypasses`,o={reason:n,placeholder_id:r};try{const e=await this.ghRequest("POST",i,{body:o});return await Bt(e)}catch(i){const o=`Unable to create push protection bypass.\n\n Repository: ${e}/${t}\n Reason: ${n}\n Placeholder Id: ${r}.\n\n Try again at: ${s}`;throw log.error(o,i),new Error(o)}}}async function sr(e,t){const n=new rr(e,t);try{const[r,s,i,o]=await Promise.all([n.fetchAccount(),n.fetchEmails(),n.fetchUserCopilotInfo(),n.fetchFeatureFlags()]);return new yn(r.login,e,t,s,r.avatar_url,r.id,r.name||r.login,r.plan?.name,i?.copilotEndpoint,i?.isCopilotDesktopEnabled,o)}catch(t){throw log.warn(`fetchUser: failed with endpoint ${e}`,t),t}}function ir(e){if(void 0!==qn)return qn;if(e!==ar()||Vn){if(Mn(e)){const t=new window.URL(e);return t.pathname="/",t.hostname.startsWith("api.")&&(t.hostname=t.hostname.replace(/^api\./,"")),t.toString()}const t=i.parse(e);return`${t.protocol}//${t.hostname}`}return"https://github.com"}function or(e){if(Mn(e)){const t=new window.URL(e);return t.pathname="/",t.hostname=`api.${t.hostname}`,t.toString()}const t=i.parse(e);return`${t.protocol}//${t.hostname}/api/v3`}function ar(){return Vn&&Vn.length>0?Vn:"https://api.github.com"}function lr(e,t){return e.find((e=>e.endpoint===t))||null}function cr(e,t){const n=t.headers.get("x-github-enterprise-version");null!==n&&function(e,t){const n=xn(e);if(An.get(n)!==t){const e=vt.parse(t);localStorage.setItem(n,t),An.set(n,t),Tn.set(n,e)}}(e,n)}const ur=new Set(["dev.azure.com","gitlab.com","bitbucket.org","amazonaws.com","visualstudio.com"]);const hr=e=>e instanceof Nt&&403===e.responseStatus&&/upgrade.*to enable this feature.*/i.test(e.apiError?.message??""),pr=e=>e instanceof Nt&&404===e.responseStatus,dr=[{protocol:"https",regex:new RegExp("^https?://(?:.+@)?(.+)/([^/]+)/([^/]+?)(?:/|\\.git/?)?$")},{protocol:"ssh",regex:new RegExp("^git@(.+):([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^(?:.+)@(.+\\.ghe\\.com):([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^git:(.+)/([^/]+)/([^/]+?)(?:/|\\.git)?$")},{protocol:"ssh",regex:new RegExp("^ssh://git@(.+)/(.+)/(.+?)(?:/|\\.git)?$")}];function mr(e){for(const{protocol:t,regex:n}of dr){const r=n.exec(e);if(null!==r&&r.length>=4)return{protocol:t,hostname:r[1],owner:r[2],name:r[3]}}return null}function fr(e){const t=mr(e);if(t){const{owner:e,name:n,hostname:r}=t;if(e&&n)return{owner:e,name:n,hostname:r}}const n=e.split("/");return 2===n.length&&n[0].length>0&&n[1].length>0?{owner:n[0],name:n[1],hostname:null}:null}function gr(e,t){return e<t?-1:e>t?1:0}function yr(e,t){return e<t?1:e>t?-1:0}function wr(e,t){return e.toLowerCase()===t.toLowerCase()}function br(e,t){return gr(e.toLowerCase(),t.toLowerCase())}function Cr(e,t){for(const n of e){const e=ir(n.endpoint),{hostname:r}=i.parse(e),s=mr(t);if(null!==s&&null!==r&&s.hostname.toLowerCase()===r.toLowerCase())return{name:s.name,owner:s.owner,account:n}}return null}function vr(e,n){const r=e=>t.normalize(e).toLowerCase(),s=r(n);return e.find((e=>r(e.path)===s))}function Sr(e,t){return Er(e.htmlURL,t)||Er(e.cloneURL,t)}function Er(e,t){if(null==e)return!1;const n=mr(e),r=mr(t.url);return null!=r&&null!=n&&!!wr(r.hostname,n.hostname)&&null!=r.owner&&null!=n.owner&&null!=r.name&&null!=n.name&&wr(r.owner,n.owner)&&wr(r.name,n.name)}function kr(e,t){const n=fr(e),r=fr(t);return null!==n&&null!==r&&n.hostname===r.hostname&&n.owner===r.owner&&n.name===r.name}var Rr=n(857),Ar=n(2334),Tr=function(e,t){return e===t};const xr=function(e,t){var n;void 0===t&&(t=Tr);var r,s=[],i=!1,o=function(e,n){return t(e,s[n])};return function(){for(var t=arguments.length,a=new Array(t),l=0;l<t;l++)a[l]=arguments[l];return i&&n===this&&a.length===s.length&&a.every(o)||(r=e.apply(this,a),i=!0,n=this,s=a),r}};function Dr(){return Rr.release()}function Mr(){return`Windows ${Dr()}`}const Pr=xr((()=>!1)),Ir=xr((()=>!1)),_r=xr((()=>!1)),Fr=xr((()=>!1)),Nr=xr((()=>!1)),Or=(xr((()=>!1)),xr((()=>!1)),xr((()=>function(){const e=Dr();return void 0!==e&&(0,Ar.compare)(e,"10.0.17666",">=")}()))),Lr=xr((()=>function(){const e=Dr();return void 0!==e&&(0,Ar.compare)(e,"10","<")}())),Br=xr((()=>!1)),Hr=xr((()=>Br()||Lr()));var Ur;!function(e){e[e.Reset=0]="Reset",e[e.In=1]="In",e[e.Out=2]="Out"}(Ur||(Ur={}));[.67,.75,.8,.9,1,1.1,1.25,1.5,1.75,2].slice().reverse();const Zr=["boomtown","test-app-error","test-arm64-banner","test-confirm-committing-conflicted-files","test-cherry-pick-conflicts-banner","test-discarded-changes-will-be-unrecoverable","test-do-you-want-fork-this-repository","test-files-too-large","test-generic-git-authentication","test-icons","test-invalidated-account-token","test-merge-successful-banner","test-move-to-application-folder","test-newer-commits-on-remote","test-no-external-editor","test-notification","test-os-version-no-longer-supported","test-prune-branches","test-push-rejected","test-re-authorization-required","test-release-notes-popup","test-reorder-banner","test-showcase-update-banner","test-thank-you-banner","test-thank-you-popup","test-unable-to-locate-git","test-unable-to-open-shell","test-undone-banner","test-untrusted-server","test-update-banner","test-prioritized-update-banner","test-update-existing-git-lfs-filters","test-upstream-already-exists","test-about-dialog"];function $r(...e){return e.join("+")}class Wr{name;owner;dbID;isPrivate;htmlURL;cloneURL;issuesEnabled;isArchived;permissions;parent;hash;constructor(e,t,n,r=null,s=null,i=null,o=null,a=null,l=null,c=null){this.name=e,this.owner=t,this.dbID=n,this.isPrivate=r,this.htmlURL=s,this.cloneURL=i,this.issuesEnabled=o,this.isArchived=a,this.permissions=l,this.parent=c,this.hash=$r(this.name,this.owner.login,this.dbID,this.isPrivate,this.htmlURL,this.cloneURL,this.issuesEnabled,this.isArchived,this.permissions,this.parent?.hash)}get endpoint(){return this.owner.endpoint}get fullName(){return`${this.owner.login}/${this.name}`}get fork(){return!!this.parent}}function Vr(e){return null===e.permissions||"read"!==e.permissions}var qr,Gr,zr,jr;!function(e){e.Parent="parent",e.Self="self"}(qr||(qr={}));class Kr{id;gitHubRepository;missing;alias;workflowPreferences;isTutorialRepository;name;mainWorkTree;hash;constructor(e,n,r,s,i=null,o={},a=!1){this.id=n,this.gitHubRepository=r,this.missing=s,this.alias=i,this.workflowPreferences=o,this.isTutorialRepository=a,this.mainWorkTree={path:e},this.name=r&&r.name||function(e){const n=t.basename(e);return 0===n.length?e:n}(e),this.hash=$r(e,this.id,r?.hash,this.missing,this.alias,this.workflowPreferences.forkContributionTarget,this.isTutorialRepository)}get path(){return this.mainWorkTree.path}}function Yr(e){return e.gitHubRepository instanceof Wr}function Xr(e){return Yr(e)&&null!==e.gitHubRepository.parent}function Qr(e){const{gitHubRepository:t}=e;return null!==t?t.fullName:e.name}function Jr(e){return Yr(e)?es(e).htmlURL:null}function es(e){if(!Xr(e))return e.gitHubRepository;switch(ts(e)){case qr.Self:return e.gitHubRepository;case qr.Parent:return e.gitHubRepository.parent;default:return at(0,"Invalid fork contribution target")}}function ts(e){return void 0!==e.workflowPreferences.forkContributionTarget?e.workflowPreferences.forkContributionTarget:qr.Parent}function ns(e){return Xr(e)&&ts(e)===qr.Parent}function rs(e,t=new Map){for(const n of e.items)t.set(n.id,n),"submenuItem"===n.type&&rs(n.menu,t);return t}function ss(e){return"menuItem"===e.type||"submenuItem"===e.type||"checkbox"===e.type||"radio"===e.type}function is(e){return"separator"!==e.type&&e.enabled&&e.visible}function os(e,t){const n=e.toLowerCase();for(const e of t)if(ss(e)&&e.accessKey&&e.accessKey.toLowerCase()===n)return e;return null}!function(e){e[e.Accounts=0]="Accounts",e[e.Integrations=1]="Integrations",e[e.Git=2]="Git",e[e.Appearance=3]="Appearance",e[e.Notifications=4]="通知",e[e.Prompts=5]="Prompts",e[e.Advanced=6]="Advanced",e[e.Accessibility=7]="Accessibility"}(Gr||(Gr={}));class as{menu;openMenus;menuItemById;static fromMenu(e){const t=rs(e);return new as(e,[e],t)}constructor(e,t,n){this.menu=e,this.openMenus=t,this.menuItemById=n}getItemById(e){return this.menuItemById.get(e)}withMenu(e){const t=rs(e),n=new Array;for(const r of this.openMenus){let s,i;if(r.id){const e=t.get(r.id);if(!e||"submenuItem"!==e.type)break;s=e.menu}else s=e;r.selectedItem&&(i=t.get(r.selectedItem.id)),n.push({id:s.id,type:"menu",items:s.items,selectedItem:i})}return new as(e,n,t)}withOpenedMenu(e,t=!1){const n=this.menuItemById.get(e.id);if(!n)return this;if("submenuItem"!==n.type)throw new Error(`Attempt to open a submenu from an item of wrong type: ${n.type}`);const r=this.openMenus.findIndex((e=>-1!==e.items.indexOf(n)));if(-1===r)return this;const s=this.openMenus.slice(0,r+1);if(t){const e=n.menu.items.find(is);s.push({...n.menu,selectedItem:e})}else s.push(n.menu);return new as(this.menu,s,this.menuItemById)}withClosedMenu(e){if(!e.id)return this;const t=this.openMenus.findIndex((t=>t.id===e.id));if(-1===t)return this;const n=this.openMenus.slice(0,t);return new as(this.menu,n,this.menuItemById)}withLastMenu(e){const t=this.openMenus.findIndex((t=>t.id===e.id));if(-1===t)return this;const n=this.openMenus.slice(0,t+1);return new as(this.menu,n,this.menuItemById)}withSelectedItem(e){const t=this.menuItemById.get(e.id);if(!t)return this;const n=this.openMenus.findIndex((e=>-1!==e.items.indexOf(t)));if(-1===n)return this;const r=this.openMenus.slice(),s=r[n];r[n]={...s,selectedItem:t};for(let e=n+1;e<r.length;e++)r[e]={...r[e],selectedItem:void 0};for(let e=n-1;e>=0;e--){const t=r[e],n=r[e+1],s=t.items.find((e=>"submenuItem"===e.type&&e.id===n.id));r[e]={...t,selectedItem:s}}return new as(this.menu,r,this.menuItemById)}withDeselectedMenu(e){const t=this.openMenus.findIndex((t=>t.id===e.id));if(-1===t)return this;const n=this.openMenus[t],r=this.openMenus.slice();r[t]={...n,selectedItem:void 0};for(let e=t-1;e>=0;e--){const t=r[e],n=r[e+1],s=t.items.find((e=>"submenuItem"===e.type&&e.id===n.id));r[e]={...t,selectedItem:s}}return new as(this.menu,r,this.menuItemById)}withReset(){return new as(this.menu,[this.menu],this.menuItemById)}}!function(e){e.Unknown="Unknown",e.Unborn="Unborn",e.Detached="Detached",e.Valid="Valid"}(zr||(zr={})),function(e){e[e.DotCom=0]="DotCom",e[e.Enterprise=1]="Enterprise",e[e.Generic=2]="Generic"}(jr||(jr={}));let ls=1e6;class cs{path;url;id=ls++;constructor(e,t){this.path=e,this.url=t}get name(){return t.basename(this.url,".git")}get hash(){return`${this.id}+${this.path}+${this.url}`}}var us=n(5405),hs=n.n(us);const ps=new Set;function ds(e){const t=`__${e}`.replace(/[^a-z0-9\-_:.]+/gi,"_");for(let e=0;e<100;e++){const n=e>0?`${t}_${e}`:t;if(!ps.has(n))return ps.add(n),n}return kn()}function ms(e){ps.delete(e)}function fs(e,t){return e===t||e.left===t.left&&e.right===t.right&&e.top===t.top&&e.bottom===t.bottom&&e.width===t.width&&e.height===t.height}var gs;!function(e){e.NORTH="n",e.NORTH_EAST="ne",e.EAST="e",e.SOUTH_EAST="se",e.SOUTH="s",e.SOUTH_WEST="sw",e.WEST="w",e.NORTH_WEST="nw"}(gs||(gs={}));class ys extends ke.Component{mouseRect=new DOMRect;mouseOverTarget=!1;mouseOverTooltip=!1;showTooltipTimeout=null;hideTooltipTimeout=null;tooltipRef=null;resizeObserver;constructor(e){super(e);const t=e.target.current;this.state={target:t,measure:!1,show:!1,targetRect:new DOMRect,hostRect:new DOMRect,windowRect:new DOMRect,tooltipRect:new DOMRect,tooltipHost:bs(t)},this.resizeObserver=new ResizeObserver((e=>{for(const t of e)if(t.target===this.tooltipRef){const e=this.tooltipRef.getBoundingClientRect();fs(this.state.tooltipRect,e)||this.setState({tooltipRect:e})}else if(t.target===this.state.target){const e=this.state.target.getBoundingClientRect();fs(this.state.targetRect,e)||this.setState({targetRect:e})}}))}componentDidMount(){const{target:e}=this.props;e.subscribe(this.onTargetRef),null!==e.current&&this.state.target!==e.current?this.onTargetRef(e.current):null!==this.state.target&&this.installTooltip(this.state.target)}onTargetRef=e=>{this.setState({target:e,tooltipHost:bs(e)})};onTooltipRef=e=>{if(null===e){this.state.id&&(ms(this.state.id),this.setState({id:void 0})),this.resizeObserver.disconnect();const{tooltipRef:e}=this;null!==e&&(e.removeEventListener("mouseenter",this.onTooltipMouseEnter),e.removeEventListener("mouseleave",this.onTooltipMouseLeave))}else this.setState({tooltipRect:e.getBoundingClientRect()??new DOMRect,show:!0,measure:!1,id:this.state.id??ds("tooltip")}),this.state.target?.dispatchEvent(new CustomEvent("tooltip-shown",{bubbles:!0})),this.resizeObserver.observe(e),!0===this.props.interactive&&(e.addEventListener("mouseenter",this.onTooltipMouseEnter),e.addEventListener("mouseleave",this.onTooltipMouseLeave));this.tooltipRef=e};onTooltipMouseEnter=e=>{this.mouseOverTooltip=!0,this.cancelHideTooltip()};onTooltipMouseLeave=e=>{this.mouseOverTooltip=!1,this.beginHideTooltip()};componentDidUpdate(e,t){const{target:n}=this.state;e.target!==this.props.target&&(e.target.unsubscribe(this.onTargetRef),this.props.target.subscribe(this.onTargetRef)),n!==t.target&&(this.removeTooltip(t.target),null!==n&&this.installTooltip(n)),this.state.show!==t.show&&(this.state.show&&!1!==this.props.accessible&&this.state.id?this.addToTargetAriaDescribedBy(n):this.removeFromTargetAriaDescribedBy(n)),e.ancestorFocused!==this.props.ancestorFocused&&this.updateBasedOnAncestorFocused()}addToTargetAriaDescribedBy(e){if(!e||!this.state.id||!1===this.props.applyAriaDescribedBy)return;const t=e.getAttribute("aria-describedby"),n=t?t.split(" "):[];n.includes(this.state.id)||(n.push(this.state.id),e.setAttribute("aria-describedby",n.join(" ")))}removeFromTargetAriaDescribedBy(e){if(!e||!this.state.id||!1===this.props.applyAriaDescribedBy)return;const t=e.getAttribute("aria-describedby"),n=t?t.split(" "):[],r=n.indexOf(this.state.id);-1!==r&&(n.splice(r,1),0===n.length?e.removeAttribute("aria-describedby"):e.setAttribute("aria-describedby",n.join(" ")))}updateBasedOnAncestorFocused(){const{target:e}=this.state;if(null===e)return;const{ancestorFocused:t}=this.props;!0===t?this.beginShowTooltip():!1===t&&this.beginHideTooltip()}onKeyDown=e=>{"Escape"===e.key&&this.state.show&&!1!==this.props.dismissable&&(e.preventDefault(),this.beginHideTooltip())};installTooltip(e){e.addEventListener("mouseenter",this.onTargetMouseEnter),e.addEventListener("mouseleave",this.onTargetMouseLeave),e.addEventListener("mousemove",this.onTargetMouseMove),e.addEventListener("mousedown",this.onTargetMouseDown),e.addEventListener("focus",this.onTargetFocus),e.addEventListener("focusin",this.onTargetFocusIn),e.addEventListener("focusout",this.onTargetBlur),e.addEventListener("blur",this.onTargetBlur),e.addEventListener("tooltip-shown",this.onTooltipShown),e.addEventListener("tooltip-hidden",this.onTooltipHidden),e.addEventListener("click",this.onTargetClick),e.addEventListener("keydown",this.onKeyDown)}removeTooltip(e){null!==e&&(e.getAttribute("aria-describedby")&&this.removeFromTargetAriaDescribedBy(e),e.removeEventListener("mouseenter",this.onTargetMouseEnter),e.removeEventListener("mouseleave",this.onTargetMouseLeave),e.removeEventListener("mousemove",this.onTargetMouseMove),e.removeEventListener("mousedown",this.onTargetMouseDown),e.removeEventListener("focus",this.onTargetFocus),e.removeEventListener("focusin",this.onTargetFocusIn),e.removeEventListener("focusout",this.onTargetBlur),e.removeEventListener("blur",this.onTargetBlur),e.removeEventListener("click",this.onTargetClick),e.removeEventListener("keydown",this.onKeyDown))}updateMouseRect=e=>{this.mouseRect=new DOMRect(e.clientX-10,e.clientY-10,20,20)};onTargetMouseEnter=e=>{this.updateMouseRect(e),this.mouseOverTarget=!0,this.cancelHideTooltip(),this.state.show||this.beginShowTooltip()};onTargetMouseMove=e=>{this.updateMouseRect(e)};onTargetMouseDown=e=>{this.props.isToggleTip||this.hideTooltip()};onTargetFocus=e=>{this.state.target?.matches(":focus-visible")&&!this.props.isToggleTip&&this.beginShowTooltip()};onTargetClick=e=>{this.state.show||!this.props.isToggleTip&&!this.props.openOnTargetClick||this.beginShowTooltip()};onTargetFocusIn=e=>{this.props.openOnFocus&&this.beginShowTooltip()};onTargetBlur=e=>{this.mouseOverTarget||this.mouseOverTooltip||this.beginHideTooltip()};onTooltipShown=e=>{e.target!==this.state.target&&this.state.show&&this.hideTooltip()};onTooltipHidden=e=>{e.target!==this.state.target&&this.mouseOverTarget&&this.beginShowTooltip()};beginShowTooltip(){!0!==this.props.disabled&&(this.cancelShowTooltip(),this.showTooltipTimeout=window.setTimeout(this.showTooltip,this.props.delay??400))}isTargetOverflowed(){const{isTargetOverflowed:e}=this.props,{target:t}=this.state;return null!==t&&(void 0===e?t.scrollWidth>t.clientWidth:"boolean"==typeof e?e:e(t))}showTooltip=()=>{this.cancelShowTooltip();const{tooltipHost:e,target:t}=this.state;null!==e&&null!==t&&(this.props.onlyWhenOverflowed&&!this.isTargetOverflowed()||this.setState({measure:!0,show:!1,targetRect:this.getTargetRect(t),hostRect:e.getBoundingClientRect(),windowRect:new DOMRect(0,0,window.innerWidth,window.innerHeight)}))};getTargetRect(e){const{direction:t,tooltipOffset:n}=this.props;return((e,t,n)=>new DOMRect(e.x+t,e.y+n,e.width,e.height))(void 0===t&&!0!==this.props.positionRelativeToTarget?this.mouseRect:e.getBoundingClientRect(),n?.x??0,n?.y??0)}cancelShowTooltip(){null!==this.showTooltipTimeout&&(clearTimeout(this.showTooltipTimeout),this.showTooltipTimeout=null)}onTargetMouseLeave=e=>{this.mouseOverTarget=!1,this.beginHideTooltip()};beginHideTooltip(){this.cancelShowTooltip(),!0===this.props.interactive&&null===this.hideTooltipTimeout?this.hideTooltipTimeout=window.setTimeout(this.hideTooltip,250):this.hideTooltip()}hideTooltip=()=>{this.cancelShowTooltip(),this.cancelHideTooltip(),this.state.show&&this.state.target?.dispatchEvent(new CustomEvent("tooltip-hidden",{bubbles:!0})),this.setState({show:!1,measure:!1})};cancelHideTooltip(){null!==this.hideTooltipTimeout&&(clearTimeout(this.hideTooltipTimeout),this.hideTooltipTimeout=null)}componentWillUnmount(){this.cancelShowTooltip(),this.props.target.unsubscribe(this.onTargetRef),this.removeTooltip(this.state.target),this.state.id&&ms(this.state.id)}render(){return null===this.state.target||null===this.state.tooltipHost?null:Ae.createPortal(this.renderPortal(),this.state.tooltipHost)}renderPortal(){const{show:e,measure:t}=this.state;if(!e&&!t)return null;const n=e&&!t,{targetRect:r,hostRect:s,windowRect:i,tooltipRect:o}=this.state,a=n?function(e,t,n,r){const s=e=>function(e,t){return e===t||t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right}(n,ws(t,e,r));let i=new Set([gs.NORTH,gs.NORTH_EAST,gs.NORTH_WEST,gs.SOUTH,gs.SOUTH_EAST,gs.SOUTH_WEST,gs.EAST,gs.WEST]);if(void 0!==e){if(s(e))return e;e.startsWith(gs.SOUTH)?i=new Set([gs.SOUTH,gs.SOUTH_EAST,gs.SOUTH_WEST,...i]):e.startsWith(gs.NORTH)&&(i=new Set([gs.NORTH,gs.NORTH_EAST,gs.NORTH_WEST,...i])),i.delete(e)}else i=new Set([gs.SOUTH_EAST,gs.NORTH_EAST,...i]);for(const e of i)if(s(e))return e;return gs.SOUTH}(this.props.direction,r,i,o):gs.SOUTH,l=n?function(e,t,n,r){const s=ws(t,e,r);return s.x-=n.x,s.y-=n.y,{transform:`translate(${Math.round(s.left)}px, ${Math.round(s.top)}px)`}}(a,r,s,o):{visibility:"hidden",left:"0px",top:"0px"},c=hs()("tooltip",this.props.className,{interactive:this.props.interactive,[`tooltip-${a}`]:e});return ke.createElement("div",{role:"tooltip","aria-hidden":"true",className:c,id:this.state.id,style:l,ref:this.onTooltipRef,onClick:Cs,onContextMenu:Cs,onDoubleClick:Cs,onDrag:Cs,onDragEnd:Cs,onDragEnter:Cs,onDragExit:Cs,onDragLeave:Cs,onDragOver:Cs,onDragStart:Cs,onDrop:Cs,onMouseDown:Cs,onMouseEnter:Cs,onMouseLeave:Cs,onMouseMove:Cs,onMouseOver:Cs,onMouseOut:Cs,onMouseUp:Cs,onKeyDown:Cs,onKeyPress:Cs,onKeyUp:Cs,onFocus:Cs,onBlur:Cs,onChange:Cs,onInput:Cs,onInvalid:Cs,onSubmit:Cs},ke.createElement("div",{className:"tooltip-content"},this.props.children))}}function ws(e,t,n){const{left:r,right:s,bottom:i}=e,o=e.left+e.width/2,a=e.top-n.height,l=e.top+e.height/2-n.height/2,{width:c,height:u}=n,h=new DOMRect(10,0,6,6);switch(t){case gs.NORTH_EAST:return new DOMRect(o-h.x-h.width,a-h.height,c,u);case gs.NORTH:return new DOMRect(o-c/2,a-h.height,c,u);case gs.NORTH_WEST:return new DOMRect(o-c+h.right,a-h.height,c,u);case gs.EAST:return new DOMRect(s+h.width,l,c,u);case gs.SOUTH_EAST:return new DOMRect(o-h.x-h.width,i+h.height,c,u);case gs.SOUTH:return new DOMRect(o-c/2,i+h.height,c,u);case gs.SOUTH_WEST:return new DOMRect(o-c+h.right,i+h.height,c,u);case gs.WEST:return new DOMRect(r-c-h.width,l,c,u);default:return at(0,`Unknown direction ${t}`)}}const bs=e=>e?.closest(".tooltip-host")??document.body,Cs=e=>e.stopPropagation();function vs(e){const t=new Set,n=Object.assign((e=>{n.current=e,t.forEach((t=>t(e)))}),{current:e??null,subscribe:e=>t.add(e),unsubscribe:e=>t.delete(e)});return n}class Ss extends ke.Component{innerButtonRef=vs();constructor(e){super(e),this.innerButtonRef.subscribe((e=>this.props.onButtonRef?.(e)))}focus=()=>{this.innerButtonRef.current?.focus()};blur(){this.innerButtonRef.current?.blur()}getBoundingClientRect(){return this.innerButtonRef.current?.getBoundingClientRect()}render(){const{disabled:e,tooltip:t}=this.props,n=hs()("button-component",this.props.className,{"small-button":"small"===this.props.size});return ke.createElement("button",{id:this.props.id,className:n,onClick:e?Es:this.onClick,onKeyDown:this.props.onKeyDown,onContextMenu:e?Es:this.onContextMenu,type:this.props.type||"button",ref:this.innerButtonRef,tabIndex:this.props.tabIndex,onMouseEnter:e?Es:this.props.onMouseEnter,role:this.props.role,"aria-expanded":this.props.ariaExpanded,"aria-disabled":e?"true":void 0,"aria-label":this.props.ariaLabel,"aria-describedby":this.props.ariaDescribedBy,"aria-haspopup":this.props.ariaHaspopup,"aria-pressed":this.props.ariaPressed,"aria-hidden":this.props.ariaHidden,"aria-controls":this.props.ariaControls,autoFocus:this.props.autoFocus},t&&ke.createElement(ys,{className:this.props.tooltipClassName,target:this.innerButtonRef,direction:this.props.toolTipDirection??gs.NORTH,delay:e?0:void 0,onlyWhenOverflowed:this.props.onlyShowTooltipWhenOverflowed,openOnTargetClick:this.props.openTooltipOnClick,applyAriaDescribedBy:this.props.applyTooltipAriaDescribedBy,dismissable:this.props.tooltipDismissable},t),this.props.children)}onClick=e=>{this.props.onClick&&this.props.onClick(e),void 0===this.props.type&&e.preventDefault()};onContextMenu=e=>{this.props.onContextMenu?.(e),void 0===this.props.type&&e.preventDefault()}}const Es=e=>e.preventDefault();class ks extends ke.Component{componentWillMount(){this.setState({windowState:null}),this.initializeWindowState(),g("window-state-changed",this.onWindowStateChanged)}initializeWindowState=async()=>{const e=await L();void 0!==e&&this.setState({windowState:e})};componentWillUnmount(){y("window-state-changed",this.onWindowStateChanged)}onMinimize=()=>{G()};onMaximize=()=>{z()};onRestore=()=>{j()};onClose=()=>{K()};shouldComponentUpdate(e,t){return t.windowState!==this.state.windowState}onWindowStateChanged=(e,t)=>{this.setState({windowState:t})};renderButton(e,t,n){const r=hs()("window-control",e),s=e[0].toUpperCase()+e.substring(1);return ke.createElement(Ss,{ariaLabel:s,ariaHidden:!0,tabIndex:-1,className:r,onClick:t,tooltip:s,tooltipClassName:"window-controls-tooltip"},ke.createElement("svg",{"aria-hidden":"true",version:"1.1",width:"10",height:"10"},ke.createElement("path",{d:n})))}render(){const e=this.renderButton("minimize",this.onMinimize,"M 0,5 10,5 10,6 0,6 Z"),t="maximized"===this.state.windowState?this.renderButton("restore",this.onRestore,"m 2,1e-5 0,2 -2,0 0,8 8,0 0,-2 2,0 0,-8 z m 1,1 6,0 0,6 -1,0 0,-5 -5,0 z m -2,2 6,0 0,6 -6,0 z"):this.renderButton("maximize",this.onMaximize,"M 0,0 0,10 10,10 10,0 Z M 1,1 9,1 9,9 1,9 Z"),n=this.renderButton("close",this.onClose,"M 0,0 0,0.7 4.3,5 0,9.3 0,10 0.7,10 5,5.7 9.3,10 10,10 10,9.3 5.7,5 10,0.7 10,0 9.3,0 5,4.3 0.7,0 Z");return ke.createElement("div",{className:"window-controls"},e,t,n)}}class Rs extends ke.Component{svgRef=vs();render(){const{symbol:e}=this.props;if(this.isSingleVariant(e))return this.renderIcon(e.p,e.h,e.w);{const t=this.props.height??16,n=this.closestNaturalHeight(Object.keys(e).map((e=>parseInt(e,10))),t),r=e[n];if(void 0===r)return null;const s=t*(r.w/n);return this.renderIcon(r.p,t,s)}}renderIcon(e,t,n){const{title:r,tooltipDirection:s}=this.props,i=`0 0 ${n} ${t}`,o=hs()("octicon",this.props.className),a=void 0===r?"true":void 0,l=s??gs.NORTH;return ke.createElement("svg",{"aria-hidden":a,"aria-label":r,className:o,version:"1.1",viewBox:i,ref:this.svgRef,tabIndex:-1,height:t,width:n},void 0!==r&&ke.createElement(ys,{target:this.svgRef,direction:l},r),e.map(((e,t)=>ke.createElement("path",{key:t,d:e}))))}isSingleVariant(e){return e instanceof Object&&e.hasOwnProperty("p")&&e.hasOwnProperty("h")&&e.hasOwnProperty("w")}closestNaturalHeight(e,t){return e.reduce(((e,n)=>n<=t?n:e),e[0])}}const As={16:{p:["M9.923 5.302c.063.063.122.129.178.198H14A.75.75 0 0 1 14 7h-3.3l.578 5.163.362 2.997a.75.75 0 0 1-1.49.18L9.868 13H6.132l-.282 2.34a.75.75 0 0 1-1.49-.18l.362-2.997L5.3 7H2a.75.75 0 0 1 0-1.5h3.9a2.54 2.54 0 0 1 .176-.198 3 3 0 1 1 3.847 0ZM9.2 7.073h-.001a1.206 1.206 0 0 0-2.398 0L6.305 11.5h3.39ZM9.5 3a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 3Z"],h:16,w:16}},Ts={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm2 4a2 2 0 1 0-2.95 1.76 1.87 1.87 0 0 0-.32.24H3.75a.75.75 0 0 0 0 1.5h2.363l-.607 5.67a.75.75 0 1 0 1.49.16l.25-2.33h1.508l.25 2.33a.75.75 0 0 0 1.492-.16L9.888 7.5h2.362a.75.75 0 0 0 0-1.5H9.27a1.98 1.98 0 0 0-.32-.24A2 2 0 0 0 10 4Z"],h:16,w:16}},xs={16:{p:["M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z","M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"],h:24,w:24}},Ds={12:{p:["M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"],h:12,w:12},16:{p:["M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"],h:16,w:16},24:{p:["M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"],h:24,w:24}},Ms={16:{p:["M1.5 3.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5A1.75 1.75 0 0 1 5.75 7.5h-2.5A1.75 1.75 0 0 1 1.5 5.75Zm7 0c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5A1.75 1.75 0 0 1 8.5 5.75Zm-7 7c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5a1.75 1.75 0 0 1-1.75-1.75Zm7 0c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 0 1-1.75 1.75h-2.5a1.75 1.75 0 0 1-1.75-1.75ZM3.25 3a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5A.25.25 0 0 0 6 5.75v-2.5A.25.25 0 0 0 5.75 3Zm7 0a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm-7 7a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm7 0a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16}},Ps={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0 1 14.25 6H1.75A1.75 1.75 0 0 1 0 4.25ZM1.75 7a.75.75 0 0 1 .75.75v5.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-5.5a.75.75 0 0 1 1.5 0v5.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25v-5.5A.75.75 0 0 1 1.75 7Zm0-4.5a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25ZM6.25 8h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M2.75 2h18.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 21.25 9H2.75A1.75 1.75 0 0 1 1 7.25v-3.5C1 2.784 1.784 2 2.75 2Zm18.5 1.5H2.75a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25ZM2.75 10a.75.75 0 0 1 .75.75v9.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25v-9.5a.75.75 0 0 1 1.5 0v9.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25v-9.5a.75.75 0 0 1 .75-.75Z","M9.75 11.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z"],h:24,w:24}},Is={16:{p:["M3.72 3.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.56 7h10.88l-2.22-2.22a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.5 3.5a.75.75 0 0 1 0 1.06l-3.5 3.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l2.22-2.22H2.56l2.22 2.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3.5-3.5a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M7.78 5.97a.75.75 0 0 0-1.06 0l-5.25 5.25a.75.75 0 0 0 0 1.06l5.25 5.25a.75.75 0 0 0 1.06-1.06L3.81 12.5h16.38l-3.97 3.97a.75.75 0 1 0 1.06 1.06l5.25-5.25a.75.75 0 0 0 0-1.06l-5.25-5.25a.75.75 0 1 0-1.06 1.06L20.19 11H3.81l3.97-3.97a.75.75 0 0 0 0-1.06Z"],h:24,w:24}},_s={16:{p:["M13.03 8.22a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L3.47 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l2.97 2.97V3.75a.75.75 0 0 1 1.5 0v7.44l2.97-2.97a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M4.97 13.22a.75.75 0 0 1 1.06 0L11 18.19V3.75a.75.75 0 0 1 1.5 0v14.44l4.97-4.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-6.25 6.25a.75.75 0 0 1-1.06 0l-6.25-6.25a.75.75 0 0 1 0-1.06Z"],h:24,w:24}},Fs={16:{p:["M11.78 4.22a.75.75 0 0 1 0 1.06l-5.26 5.26h4.2a.75.75 0 0 1 0 1.5H4.71a.75.75 0 0 1-.75-.75V5.28a.75.75 0 0 1 1.5 0v4.2l5.26-5.26a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M5.75 8.5a.75.75 0 0 1 .75.75v7.19L16.72 6.22a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L7.56 17.5h7.19a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1-.75-.75v-9a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Ns={16:{p:["M4.22 4.179a.75.75 0 0 1 1.06 0l5.26 5.26v-4.2a.75.75 0 0 1 1.5 0v6.01a.75.75 0 0 1-.75.75H5.28a.75.75 0 0 1 0-1.5h4.2L4.22 5.24a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M18.25 8.5a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1 0-1.5h7.19L6.22 7.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L17.5 16.44V9.25a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Os={16:{p:["M7.78 12.53a.75.75 0 0 1-1.06 0L2.47 8.28a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L4.81 7h7.44a.75.75 0 0 1 0 1.5H4.81l2.97 2.97a.75.75 0 0 1 0 1.06Z"],h:16,w:16},24:{p:["M10.78 19.03a.75.75 0 0 1-1.06 0l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L5.81 11.5h14.44a.75.75 0 0 1 0 1.5H5.81l4.97 4.97a.75.75 0 0 1 0 1.06Z"],h:24,w:24}},Ls={16:{p:["M8.22 2.97a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l2.97-2.97H3.75a.75.75 0 0 1 0-1.5h7.44L8.22 4.03a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M13.22 19.03a.75.75 0 0 1 0-1.06L18.19 13H3.75a.75.75 0 0 1 0-1.5h14.44l-4.97-4.97a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"],h:24,w:24}},Bs={16:{p:["M5.22 14.78a.75.75 0 0 0 1.06-1.06L4.56 12h8.69a.75.75 0 0 0 0-1.5H4.56l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3Zm5.56-6.5a.75.75 0 1 1-1.06-1.06l1.72-1.72H2.75a.75.75 0 0 1 0-1.5h8.69L9.72 2.28a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3Z"],h:16,w:16},24:{p:["M7.72 21.78a.75.75 0 0 0 1.06-1.06L5.56 17.5h14.69a.75.75 0 0 0 0-1.5H5.56l3.22-3.22a.75.75 0 1 0-1.06-1.06l-4.5 4.5a.75.75 0 0 0 0 1.06l4.5 4.5Zm8.56-9.5a.75.75 0 1 1-1.06-1.06L18.44 8H3.75a.75.75 0 0 1 0-1.5h14.69l-3.22-3.22a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5Z"],h:24,w:24}},Hs={16:{p:["M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0Z"],h:16,w:16},24:{p:["M18.655 10.405a.75.75 0 0 1-1.06 0l-4.97-4.97v14.44a.75.75 0 0 1-1.5 0V5.435l-4.97 4.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l6.25-6.25a.75.75 0 0 1 1.06 0l6.25 6.25a.75.75 0 0 1 0 1.06Z"],h:24,w:24}},Us={16:{p:["M3.96 4.75A.75.75 0 0 1 4.71 4h6.01a.75.75 0 0 1 0 1.5h-4.2l5.26 5.26a.75.75 0 0 1-1.06 1.061l-5.26-5.26v4.2a.75.75 0 0 1-1.5 0Z"],h:16,w:16},24:{p:["M5.75 15.5a.75.75 0 0 1-.75-.75v-9A.75.75 0 0 1 5.75 5h9a.75.75 0 0 1 0 1.5H7.56l10.22 10.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L6.5 7.56v7.19a.75.75 0 0 1-.75.75Z"],h:24,w:24}},Zs={16:{p:["M4.53 4.75A.75.75 0 0 1 5.28 4h6.01a.75.75 0 0 1 .75.75v6.01a.75.75 0 0 1-1.5 0v-4.2l-5.26 5.261a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L9.48 5.5h-4.2a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z"],h:24,w:24}},$s={16:{p:["M5 5.782V2.5h-.25a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5H11v3.282l3.666 5.76C15.619 13.04 14.543 15 12.767 15H3.233c-1.776 0-2.852-1.96-1.899-3.458Zm-2.4 6.565a.75.75 0 0 0 .633 1.153h9.534a.75.75 0 0 0 .633-1.153L12.225 10.5h-8.45ZM9.5 2.5h-3V6c0 .143-.04.283-.117.403L4.73 9h6.54L9.617 6.403A.746.746 0 0 1 9.5 6Z"],h:16,w:16},24:{p:["M8 8.807V3.5h-.563a.75.75 0 0 1 0-1.5h9.125a.75.75 0 0 1 0 1.5H16v5.307l5.125 9.301c.964 1.75-.302 3.892-2.299 3.892H5.174c-1.998 0-3.263-2.142-2.3-3.892ZM4.189 18.832a1.123 1.123 0 0 0 .985 1.668h13.652a1.123 1.123 0 0 0 .985-1.668L17.7 15H6.3ZM14.5 3.5h-5V9a.75.75 0 0 1-.093.362L7.127 13.5h9.746l-2.28-4.138A.75.75 0 0 1 14.5 9Z"],h:24,w:24}},Ws={16:{p:["M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"],h:16,w:16},24:{p:["M12 1c3.681 0 7 2.565 7 6v4.539c0 .642.189 1.269.545 1.803l2.2 3.298A1.517 1.517 0 0 1 20.482 19H15.5a3.5 3.5 0 1 1-7 0H3.519a1.518 1.518 0 0 1-1.265-2.359l2.2-3.299A3.25 3.25 0 0 0 5 11.539V7c0-3.435 3.318-6 7-6ZM6.5 7v4.539a4.75 4.75 0 0 1-.797 2.635l-2.2 3.298-.003.01.001.007.004.006.006.004.007.001h16.964l.007-.001.006-.004.004-.006.001-.006a.017.017 0 0 0-.003-.01l-2.199-3.299a4.753 4.753 0 0 1-.798-2.635V7c0-2.364-2.383-4.5-5.5-4.5S6.5 4.636 6.5 7ZM14 19h-4a2 2 0 1 0 4 0Z"],h:24,w:24}},Vs={16:{p:["M8 16c.9 0 1.7-.6 1.9-1.5.1-.3-.1-.5-.4-.5h-3c-.3 0-.5.2-.4.5.2.9 1 1.5 1.9 1.5ZM3 5c0-2.8 2.2-5 5-5s5 2.2 5 5v3l1.7 2.6c.2.2.3.5.3.8 0 .8-.7 1.5-1.5 1.5h-11c-.8.1-1.5-.6-1.5-1.4 0-.3.1-.6.3-.8L3 8.1V5Z"],h:16,w:16},24:{p:["M6 8a6 6 0 1 1 12 0v2.917c0 .703.228 1.387.65 1.95L20.7 15.6a1.5 1.5 0 0 1-1.2 2.4h-15a1.5 1.5 0 0 1-1.2-2.4l2.05-2.733a3.25 3.25 0 0 0 .65-1.95Zm6 13.5A3.502 3.502 0 0 1 8.645 19h6.71A3.502 3.502 0 0 1 12 21.5Z"],h:24,w:24}},qs={16:{p:["m4.182 4.31.016.011 10.104 7.316.013.01 1.375.996a.75.75 0 1 1-.88 1.214L13.626 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947V5.305L.31 3.357a.75.75 0 1 1 .88-1.214Zm7.373 7.19L4.5 6.391v1.556c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01c0 .005.002.009.005.012l.006.004.007.001ZM8 1.5c-.997 0-1.895.416-2.534 1.086A.75.75 0 1 1 4.38 1.55 5 5 0 0 1 13 5v2.373a.75.75 0 0 1-1.5 0V5A3.5 3.5 0 0 0 8 1.5ZM8 16a2 2 0 0 1-1.985-1.75c-.017-.137.097-.25.235-.25h3.5c.138 0 .252.113.235.25A2 2 0 0 1 8 16Z"],h:16,w:16},24:{p:["M1.22 1.22a.75.75 0 0 1 1.06 0l20.5 20.5a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L17.94 19H15.5a3.5 3.5 0 1 1-7 0H3.518a1.516 1.516 0 0 1-1.263-2.36l2.2-3.298A3.249 3.249 0 0 0 5 11.539V7c0-.294.025-.583.073-.866L1.22 2.28a.75.75 0 0 1 0-1.06ZM6.5 7.56h-.001v3.979a4.75 4.75 0 0 1-.797 2.635l-2.2 3.298-.003.01.001.007.004.006.006.004.007.001H16.44ZM10 19a2 2 0 1 0 4 0Zm2-16.5c-1.463 0-2.8.485-3.788 1.257l-.04.032a.75.75 0 1 1-.935-1.173l.05-.04C8.548 1.59 10.212 1 12 1c3.681 0 7 2.565 7 6v4.539c0 .642.19 1.269.546 1.803l1.328 1.992a.75.75 0 1 1-1.248.832l-1.328-1.992a4.75 4.75 0 0 1-.798-2.635V7c0-2.364-2.383-4.5-5.5-4.5Z"],h:24,w:24}},Gs={16:{p:["M4.467.22a.749.749 0 0 1 .53-.22h6.006c.199 0 .389.079.53.22l4.247 4.247c.141.14.22.331.22.53v6.006a.749.749 0 0 1-.22.53l-4.247 4.247a.749.749 0 0 1-.53.22H4.997a.749.749 0 0 1-.53-.22L.22 11.533a.749.749 0 0 1-.22-.53V4.997c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.308v5.384L5.308 14.5h5.384l3.808-3.808V5.308L10.692 1.5ZM4 7.75A.75.75 0 0 1 4.75 7h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 7.75Z"],h:16,w:16},24:{p:["M7.638 2.22a.749.749 0 0 1 .53-.22h7.664c.199 0 .389.079.53.22l5.418 5.418c.141.14.22.332.22.53v7.664a.749.749 0 0 1-.22.53l-5.418 5.418a.749.749 0 0 1-.53.22H8.168a.749.749 0 0 1-.53-.22l-5.42-5.418a.752.752 0 0 1-.219-.53V8.168c0-.199.079-.389.22-.53l5.418-5.42ZM8.48 3.5 3.5 8.48v7.04l4.98 4.98h7.04l4.98-4.98V8.48L15.52 3.5ZM7 11.75a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},zs={16:{p:["M4 2h4.5a3.501 3.501 0 0 1 2.852 5.53A3.499 3.499 0 0 1 9.5 14H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 7v3h4.5a1.5 1.5 0 0 0 0-3Zm3.5-2a1.5 1.5 0 0 0 0-3H5v3Z"],h:16,w:16},24:{p:["M6 4.75c0-.69.56-1.25 1.25-1.25h5a4.752 4.752 0 0 1 3.888 7.479A5 5 0 0 1 14 20.5H7.25c-.69 0-1.25-.56-1.25-1.25ZM8.5 13v5H14a2.5 2.5 0 1 0 0-5Zm0-2.5h3.751A2.25 2.25 0 0 0 12.25 6H8.5Z"],h:24,w:24}},js={16:{p:["M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"],h:16,w:16},24:{p:["M0 3.75A.75.75 0 0 1 .75 3h7.497c1.566 0 2.945.8 3.751 2.014A4.495 4.495 0 0 1 15.75 3h7.5a.75.75 0 0 1 .75.75v15.063a.752.752 0 0 1-.755.75l-7.682-.052a3 3 0 0 0-2.142.878l-.89.891a.75.75 0 0 1-1.061 0l-.902-.901a2.996 2.996 0 0 0-2.121-.879H.75a.75.75 0 0 1-.75-.75Zm12.75 15.232a4.503 4.503 0 0 1 2.823-.971l6.927.047V4.5h-6.75a3 3 0 0 0-3 3ZM11.247 7.497a3 3 0 0 0-3-2.997H1.5V18h6.947c1.018 0 2.006.346 2.803.98Z"],h:24,w:24}},Ks={16:{p:["M3 2.75C3 1.784 3.784 1 4.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5a.75.75 0 0 1-1.227.579L8 11.722l-3.773 3.107A.751.751 0 0 1 3 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.91l3.023-2.489a.75.75 0 0 1 .954 0l3.023 2.49V2.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M5 3.75C5 2.784 5.784 2 6.75 2h10.5c.966 0 1.75.784 1.75 1.75v17.5a.75.75 0 0 1-1.218.586L12 17.21l-5.781 4.625A.75.75 0 0 1 5 21.25Zm1.75-.25a.25.25 0 0 0-.25.25v15.94l5.031-4.026a.749.749 0 0 1 .938 0L17.5 19.69V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ys={24:{p:["M6.69 2h10.56c.966 0 1.75.784 1.75 1.75v17.5a.75.75 0 0 1-1.218.585L12 17.21l-5.781 4.626A.75.75 0 0 1 5 21.253L4.94 3.756A1.748 1.748 0 0 1 6.69 2Z"],h:24,w:24}},Xs={16:{p:["M1.19 1.143 4.182 3.31l.014.01 8.486 6.145.014.01 2.994 2.168a.75.75 0 1 1-.88 1.214L13 11.547v2.703a.75.75 0 0 1-1.206.596L8 11.944l-3.794 2.902A.75.75 0 0 1 3 14.25V4.305L.31 2.357a.75.75 0 1 1 .88-1.214ZM4.5 5.39v7.341l3.044-2.328a.75.75 0 0 1 .912 0l3.044 2.328V10.46ZM5.865 1h5.385c.966 0 1.75.784 1.75 1.75v3.624a.75.75 0 0 1-1.5 0V2.75a.25.25 0 0 0-.25-.25H5.865a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M1.565 2.018v-.001l21.75 15.75a.75.75 0 1 1-.88 1.215L19 16.495v4.764a.748.748 0 0 1-1.219.584L12 17.21l-5.781 4.634A.75.75 0 0 1 5 21.259V6.357L.685 3.232a.75.75 0 0 1 .88-1.214ZM17.5 15.408l-11-7.965v12.254l5.031-4.032a.749.749 0 0 1 .938 0l5.031 4.032ZM7.25 2a.75.75 0 0 0 0 1.5h10a.25.25 0 0 1 .25.25v6.5a.75.75 0 0 0 1.5 0v-6.5A1.75 1.75 0 0 0 17.25 2h-10Z"],h:24,w:24}},Qs={24:{p:["m3.232 2.175 18.5 15.5a.75.75 0 1 1-.964 1.15L19 17.343v3.907a.75.75 0 0 1-1.218.585L12 17.21l-5.781 4.626A.75.75 0 0 1 5 21.253L4.947 5.569 2.268 3.325a.75.75 0 1 1 .964-1.15ZM7.421 2h9.829c.966 0 1.75.784 1.75 1.75v8.073a.75.75 0 0 1-1.232.575L6.94 3.325A.75.75 0 0 1 7.421 2Z"],h:24,w:24}},Js={16:{p:["M6.75 0h2.5C10.216 0 11 .784 11 1.75V3h3.25c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-8.5C0 3.784.784 3 1.75 3H5V1.75C5 .784 5.784 0 6.75 0ZM3.5 9.5a3.49 3.49 0 0 1-2-.627v4.377c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V8.873a3.49 3.49 0 0 1-2 .627Zm-1.75-5a.25.25 0 0 0-.25.25V6a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V4.75a.25.25 0 0 0-.25-.25H1.75ZM9.5 3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25V3Z"],h:16,w:16},24:{p:["M7.5 1.75C7.5.784 8.284 0 9.25 0h5.5c.966 0 1.75.784 1.75 1.75V4h4.75c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 21.25 22H2.75A1.75 1.75 0 0 1 1 20.25V5.75C1 4.784 1.784 4 2.75 4H7.5Zm-5 10.24v8.26c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25v-8.26A4.235 4.235 0 0 1 18.75 13H5.25a4.235 4.235 0 0 1-2.75-1.01Zm19-3.24v-3a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v3a2.75 2.75 0 0 0 2.75 2.75h13.5a2.75 2.75 0 0 0 2.75-2.75Zm-6.5-7a.25.25 0 0 0-.25-.25h-5.5a.25.25 0 0 0-.25.25V4h6Z"],h:24,w:24}},ei={16:{p:["M8.75 8.582v5.668a.75.75 0 0 1-1.5 0V8.582a1.75 1.75 0 1 1 1.5 0Zm3.983-7.125a.75.75 0 0 1 1.06.026A7.976 7.976 0 0 1 16 7c0 2.139-.84 4.083-2.207 5.517a.75.75 0 1 1-1.086-1.034A6.474 6.474 0 0 0 14.5 7a6.474 6.474 0 0 0-1.793-4.483.75.75 0 0 1 .026-1.06Zm-9.466 0c.3.286.312.76.026 1.06A6.474 6.474 0 0 0 1.5 7a6.47 6.47 0 0 0 1.793 4.483.75.75 0 0 1-1.086 1.034A7.973 7.973 0 0 1 0 7c0-2.139.84-4.083 2.207-5.517a.75.75 0 0 1 1.06-.026Zm8.556 2.321A4.988 4.988 0 0 1 13 7a4.988 4.988 0 0 1-1.177 3.222.75.75 0 1 1-1.146-.967A3.487 3.487 0 0 0 11.5 7c0-.86-.309-1.645-.823-2.255a.75.75 0 0 1 1.146-.967Zm-6.492.958A3.48 3.48 0 0 0 4.5 7a3.48 3.48 0 0 0 .823 2.255.75.75 0 0 1-1.146.967A4.981 4.981 0 0 1 3 7a4.982 4.982 0 0 1 1.188-3.236.75.75 0 1 1 1.143.972Z"],h:16,w:16},24:{p:["M20.485 2.515a.75.75 0 0 0-1.06 1.06A10.465 10.465 0 0 1 22.5 11c0 2.9-1.174 5.523-3.075 7.424a.75.75 0 0 0 1.06 1.061A11.965 11.965 0 0 0 24 11c0-3.314-1.344-6.315-3.515-8.485Zm-15.91 1.06a.75.75 0 0 0-1.06-1.06A11.965 11.965 0 0 0 0 11c0 3.313 1.344 6.314 3.515 8.485a.75.75 0 0 0 1.06-1.06A10.465 10.465 0 0 1 1.5 11c0-2.9 1.174-5.524 3.075-7.425ZM8.11 7.11a.75.75 0 0 0-1.06-1.06A6.98 6.98 0 0 0 5 11a6.98 6.98 0 0 0 2.05 4.95.75.75 0 0 0 1.06-1.061 5.48 5.48 0 0 1-1.61-3.89 5.48 5.48 0 0 1 1.61-3.888Zm8.84-1.06a.75.75 0 1 0-1.06 1.06A5.48 5.48 0 0 1 17.5 11a5.48 5.48 0 0 1-1.61 3.889.75.75 0 1 0 1.06 1.06A6.98 6.98 0 0 0 19 11a6.98 6.98 0 0 0-2.05-4.949ZM14 11a2 2 0 0 1-1.25 1.855v8.395a.75.75 0 0 1-1.5 0v-8.395A2 2 0 1 1 14 11Z"],h:24,w:24}},ti={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25ZM14.5 6h-13v7.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm-6-3.5v2h6V2.75a.25.25 0 0 0-.25-.25ZM5 2.5v2h2v-2Zm-3.25 0a.25.25 0 0 0-.25.25V4.5h2v-2Z"],h:16,w:16},24:{p:["M0 3.75C0 2.784.784 2 1.75 2h20.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 22.25 22H1.75A1.75 1.75 0 0 1 0 20.25ZM22.5 7h-21v13.25c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25Zm-10-3.5v2h10V3.75a.25.25 0 0 0-.25-.25ZM7 3.5v2h4v-2Zm-5.25 0a.25.25 0 0 0-.25.25V5.5h4v-2Z"],h:24,w:24}},ni={16:{p:["M4.72.22a.75.75 0 0 1 1.06 0l1 .999a3.488 3.488 0 0 1 2.441 0l.999-1a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.775.776c.616.63.995 1.493.995 2.444v.327c0 .1-.009.197-.025.292.408.14.764.392 1.029.722l1.968-.787a.75.75 0 0 1 .556 1.392L13 7.258V9h2.25a.75.75 0 0 1 0 1.5H13v.5c0 .409-.049.806-.141 1.186l2.17.868a.75.75 0 0 1-.557 1.392l-2.184-.873A4.997 4.997 0 0 1 8 16a4.997 4.997 0 0 1-4.288-2.427l-2.183.873a.75.75 0 0 1-.558-1.392l2.17-.868A5.036 5.036 0 0 1 3 11v-.5H.75a.75.75 0 0 1 0-1.5H3V7.258L.971 6.446a.75.75 0 0 1 .558-1.392l1.967.787c.265-.33.62-.583 1.03-.722a1.677 1.677 0 0 1-.026-.292V4.5c0-.951.38-1.814.995-2.444L4.72 1.28a.75.75 0 0 1 0-1.06Zm.53 6.28a.75.75 0 0 0-.75.75V11a3.5 3.5 0 1 0 7 0V7.25a.75.75 0 0 0-.75-.75ZM6.173 5h3.654A.172.172 0 0 0 10 4.827V4.5a2 2 0 1 0-4 0v.327c0 .096.077.173.173.173Z"],h:16,w:16},24:{p:["M7.72.22a.75.75 0 0 1 1.06 0l1.204 1.203A4.98 4.98 0 0 1 12 1c.717 0 1.4.151 2.016.423L15.22.22a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-.971.972A4.991 4.991 0 0 1 17 6v1.104a2.755 2.755 0 0 1 1.917 1.974l1.998-.999a.75.75 0 0 1 .67 1.342L19 10.714V13.5l3.25.003a.75.75 0 0 1 0 1.5L19 15.001V16c0 .568-.068 1.134-.204 1.686l.04.018 2.75 1.375a.75.75 0 1 1-.671 1.342l-2.638-1.319A6.998 6.998 0 0 1 12 23a6.998 6.998 0 0 1-6.197-3.742l-2.758 1.181a.752.752 0 0 1-1.064-.776.752.752 0 0 1 .474-.602l2.795-1.199A6.976 6.976 0 0 1 5 16v-.996H1.75a.75.75 0 0 1 0-1.5H5v-2.79L2.415 9.42a.75.75 0 0 1 .67-1.342l1.998.999A2.756 2.756 0 0 1 7 7.104V6a4.99 4.99 0 0 1 1.69-3.748l-.97-.972a.75.75 0 0 1 0-1.06ZM6.5 9.75V16a5.5 5.5 0 1 0 11 0V9.75c0-.69-.56-1.25-1.25-1.25h-8.5c-.69 0-1.25.56-1.25 1.25ZM8.5 7h7V6a3.5 3.5 0 1 0-7 0Z"],h:24,w:24}},ri={16:{p:["M2.5 5.724V8c0 .248.238.7 1.169 1.159.874.43 2.144.745 3.62.822a.75.75 0 1 1-.078 1.498c-1.622-.085-3.102-.432-4.204-.975a5.565 5.565 0 0 1-.507-.28V12.5c0 .133.058.318.282.551.227.237.591.483 1.101.707 1.015.447 2.47.742 4.117.742.406 0 .802-.018 1.183-.052a.751.751 0 1 1 .134 1.494C8.89 15.98 8.45 16 8 16c-1.805 0-3.475-.32-4.721-.869-.623-.274-1.173-.619-1.579-1.041-.408-.425-.7-.964-.7-1.59v-9c0-.626.292-1.165.7-1.591.406-.42.956-.766 1.579-1.04C4.525.32 6.195 0 8 0c1.806 0 3.476.32 4.721.869.623.274 1.173.619 1.579 1.041.408.425.7.964.7 1.59 0 .626-.292 1.165-.7 1.591-.406.42-.956.766-1.578 1.04C11.475 6.68 9.805 7 8 7c-1.805 0-3.475-.32-4.721-.869a6.15 6.15 0 0 1-.779-.407Zm0-2.224c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 5.205 6.353 5.5 8 5.5c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55 0-.133-.058-.318-.282-.551-.227-.237-.591-.483-1.101-.707C11.102 1.795 9.647 1.5 8 1.5c-1.646 0-3.101.295-4.118.742-.508.224-.873.471-1.1.708-.224.232-.282.417-.282.55Z","M14.49 7.582a.375.375 0 0 0-.66-.313l-3.625 4.625a.375.375 0 0 0 .295.606h2.127l-.619 2.922a.375.375 0 0 0 .666.304l3.125-4.125A.375.375 0 0 0 15.5 11h-1.778l.769-3.418Z"],h:16,w:16}},si={16:{p:["M4.75 0a.75.75 0 0 1 .75.75V2h5V.75a.75.75 0 0 1 1.5 0V2h1.25c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V3.75C1 2.784 1.784 2 2.75 2H4V.75A.75.75 0 0 1 4.75 0ZM2.5 7.5v6.75c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V7.5Zm10.75-4H2.75a.25.25 0 0 0-.25.25V6h11V3.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M6.75 0a.75.75 0 0 1 .75.75V3h9V.75a.75.75 0 0 1 1.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 0 1 6.75 0ZM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25Zm-17.75-5a.25.25 0 0 0-.25.25V8h18V4.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},ii={16:{p:["M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},oi={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},ai={12:{p:["M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"],h:12,w:12},16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"],h:24,w:24}},li={16:{p:["M2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.5 2.75v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25Zm9.28 3.53-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},ci={16:{p:["M2.5 1.75v11.5c0 .138.112.25.25.25h3.17a.75.75 0 0 1 0 1.5H2.75A1.75 1.75 0 0 1 1 13.25V1.75C1 .784 1.784 0 2.75 0h8.5C12.216 0 13 .784 13 1.75v7.736a.75.75 0 0 1-1.5 0V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13.274 9.537v-.001l-4.557 4.45a.75.75 0 0 1-1.055-.008l-1.943-1.95a.75.75 0 0 1 1.062-1.058l1.419 1.425 4.026-3.932a.75.75 0 1 1 1.048 1.074ZM4.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM4 7.75A.75.75 0 0 1 4.75 7h2a.75.75 0 0 1 0 1.5h-2A.75.75 0 0 1 4 7.75Z"],h:16,w:16},24:{p:["M3.5 3.75a.25.25 0 0 1 .25-.25h13.5a.25.25 0 0 1 .25.25v10a.75.75 0 0 0 1.5 0v-10A1.75 1.75 0 0 0 17.25 2H3.75A1.75 1.75 0 0 0 2 3.75v16.5c0 .966.784 1.75 1.75 1.75h7a.75.75 0 0 0 0-1.5h-7a.25.25 0 0 1-.25-.25V3.75Z","M6.25 7a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Zm-.75 4.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm16.28 4.53a.75.75 0 1 0-1.06-1.06l-4.97 4.97-1.97-1.97a.75.75 0 1 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5.5-5.5Z"],h:24,w:24}},ui={12:{p:["M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"],h:12,w:12},16:{p:["M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"],h:24,w:24}},hi={16:{p:["M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06Z"],h:16,w:16},24:{p:["M15.28 5.22a.75.75 0 0 1 0 1.06L9.56 12l5.72 5.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},pi={12:{p:["M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"],h:12,w:12},16:{p:["M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"],h:24,w:24}},di={12:{p:["M6 4c-.2 0-.4.1-.5.2L2.2 7.5c-.3.3-.3.8 0 1.1.3.3.8.3 1.1 0L6 5.9l2.7 2.7c.3.3.8.3 1.1 0 .3-.3.3-.8 0-1.1L6.6 4.3C6.4 4.1 6.2 4 6 4Z"],h:12,w:12},16:{p:["M3.22 10.53a.749.749 0 0 1 0-1.06l4.25-4.25a.749.749 0 0 1 1.06 0l4.25 4.25a.749.749 0 1 1-1.06 1.06L8 6.811 4.28 10.53a.749.749 0 0 1-1.06 0Z"],h:16,w:16},24:{p:["M18.78 15.78a.749.749 0 0 1-1.06 0L12 10.061 6.28 15.78a.749.749 0 1 1-1.06-1.06l6.25-6.25a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 0 1 0 1.06Z"],h:24,w:24}},mi={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5Z"],h:24,w:24}},fi={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM3.965 13.096a6.5 6.5 0 0 0 9.131-9.131ZM1.5 8a6.474 6.474 0 0 0 1.404 4.035l9.131-9.131A6.499 6.499 0 0 0 1.5 8Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM5.834 19.227A9.464 9.464 0 0 0 12 21.5a9.5 9.5 0 0 0 9.5-9.5 9.464 9.464 0 0 0-2.273-6.166ZM2.5 12a9.464 9.464 0 0 0 2.273 6.166L18.166 4.773A9.463 9.463 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},gi={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7-3.25v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},yi={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8.575-3.25a.825.825 0 1 0-1.65 0v3.5c0 .337.205.64.519.766l2.5 1a.825.825 0 0 0 .612-1.532l-1.981-.793Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.575-4.75a.825.825 0 1 0-1.65 0v5.5c0 .296.159.57.416.716l3.5 2a.825.825 0 0 0 .818-1.432l-3.084-1.763Z"],h:24,w:24}},wi={16:{p:["M2 7.25A5.225 5.225 0 0 1 7.25 2a5.222 5.222 0 0 1 4.767 3.029A4.472 4.472 0 0 1 16 9.5c0 2.505-1.995 4.5-4.5 4.5h-8A3.474 3.474 0 0 1 0 10.5c0-1.41.809-2.614 2.001-3.17Zm1.54.482a.75.75 0 0 1-.556.832c-.86.22-1.484.987-1.484 1.936 0 1.124.876 2 2 2h8c1.676 0 3-1.324 3-3s-1.324-3-3-3a.75.75 0 0 1-.709-.504A3.72 3.72 0 0 0 7.25 3.5C5.16 3.5 3.5 5.16 3.5 7.25c.002.146.014.292.035.436l.004.036.001.008Z"],h:16,w:16},24:{p:["M3.103 10.107c0-4.244 3.445-7.607 7.733-7.607 3.19 0 5.912 1.858 7.099 4.563l.01.022.001.006C21.348 7.345 24 10.095 24 13.536 24 17.148 21.076 20 17.431 20H5.017C2.23 20 0 17.83 0 15.06a4.899 4.899 0 0 1 3.112-4.581 7.696 7.696 0 0 1-.009-.372ZM10.836 4c-3.485 0-6.233 2.717-6.233 6.107 0 .284.022.602.052.756a.75.75 0 0 1-.552.869c-1.52.385-2.603 1.712-2.603 3.328 0 1.917 1.532 3.44 3.517 3.44h12.414c2.843 0 5.069-2.206 5.069-4.964 0-2.759-2.226-4.965-5.069-4.965a.75.75 0 0 1-.696-.47l-.179-.446C15.606 5.5 13.424 4 10.836 4Z"],h:24,w:24}},bi={16:{p:["M7.25 2c-.69 0-1.351.13-1.957.371a.75.75 0 1 0 .554 1.394c.43-.17.903-.265 1.403-.265a3.72 3.72 0 0 1 3.541 2.496.75.75 0 0 0 .709.504c1.676 0 3 1.324 3 3a3 3 0 0 1-.681 1.92.75.75 0 0 0 1.156.955A4.496 4.496 0 0 0 16 9.5a4.472 4.472 0 0 0-3.983-4.471A5.222 5.222 0 0 0 7.25 2ZM.72 1.72a.75.75 0 0 1 1.06 0l2.311 2.31c.03.025.056.052.08.08l8.531 8.532.035.034 2.043 2.044a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-1.8-1.799a4.54 4.54 0 0 1-.42.019h-8A3.474 3.474 0 0 1 0 10.5c0-1.41.809-2.614 2.001-3.17a5.218 5.218 0 0 1 .646-2.622L.72 2.78a.75.75 0 0 1 0-1.06ZM3.5 7.25c.004.161.018.322.041.481a.75.75 0 0 1-.557.833c-.86.22-1.484.986-1.484 1.936 0 1.124.876 2 2 2h6.94L3.771 5.832A3.788 3.788 0 0 0 3.5 7.25Z"],h:16,w:16},24:{p:["m2.78 2.22 19.5 19.5a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2.845-2.845a6.932 6.932 0 0 1-.944.065H5.017C2.229 20 0 17.831 0 15.059a4.899 4.899 0 0 1 3.111-4.58A7.52 7.52 0 0 1 4.36 5.922L1.72 3.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018ZM16.94 18.5 5.448 7.01a6.026 6.026 0 0 0-.794 3.853.75.75 0 0 1-.552.869c-1.52.385-2.603 1.712-2.603 3.328 0 1.917 1.532 3.44 3.517 3.44Zm-6.104-16a7.865 7.865 0 0 0-3.638.88.75.75 0 1 0 .692 1.331A6.365 6.365 0 0 1 10.836 4c2.588 0 4.77 1.5 5.72 3.655l.179.445a.75.75 0 0 0 .696.471c2.843 0 5.069 2.206 5.069 4.965a4.9 4.9 0 0 1-1.684 3.716.75.75 0 0 0 .986 1.13A6.396 6.396 0 0 0 24 13.536c0-3.44-2.652-6.191-6.054-6.445l-.002-.006a.634.634 0 0 0-.01-.022C16.749 4.358 14.026 2.5 10.837 2.5Z"],h:24,w:24}},Ci={16:{p:["m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M15.22 4.97a.75.75 0 0 1 1.06 0l6.5 6.5a.75.75 0 0 1 0 1.06l-6.5 6.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L21.19 12l-5.97-5.97a.75.75 0 0 1 0-1.06Zm-6.44 0a.75.75 0 0 1 0 1.06L2.81 12l5.97 5.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.5-6.5a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},vi={16:{p:["M8.048 2.241c.964-.709 2.079-1.238 3.325-1.241a4.616 4.616 0 0 1 3.282 1.355c.41.408.757.86.996 1.428.238.568.348 1.206.347 1.968 0 2.193-1.505 4.254-3.081 5.862-1.496 1.526-3.213 2.796-4.249 3.563l-.22.163a.749.749 0 0 1-.895 0l-.221-.163c-1.036-.767-2.753-2.037-4.249-3.563C1.51 10.008.007 7.952.002 5.762a4.614 4.614 0 0 1 1.353-3.407C3.123.585 6.223.537 8.048 2.24Zm-1.153.983c-1.25-1.033-3.321-.967-4.48.191a3.115 3.115 0 0 0-.913 2.335c0 1.556 1.109 3.24 2.652 4.813C5.463 11.898 6.96 13.032 8 13.805c.353-.262.758-.565 1.191-.905l-1.326-1.223a.75.75 0 0 1 1.018-1.102l1.48 1.366c.328-.281.659-.577.984-.887L9.99 9.802a.75.75 0 1 1 1.019-1.103l1.384 1.28c.295-.329.566-.661.81-.995L12.92 8.7l-1.167-1.168c-.674-.671-1.78-.664-2.474.03-.268.269-.538.537-.802.797-.893.882-2.319.843-3.185-.032-.346-.35-.693-.697-1.043-1.047a.75.75 0 0 1-.04-1.016c.162-.191.336-.401.52-.623.62-.748 1.356-1.637 2.166-2.417Zm7.112 4.442c.313-.65.491-1.293.491-1.916v-.001c0-.614-.088-1.045-.23-1.385-.143-.339-.357-.633-.673-.949a3.111 3.111 0 0 0-2.218-.915c-1.092.003-2.165.627-3.226 1.602-.823.755-1.554 1.637-2.228 2.45l-.127.154.562.566a.755.755 0 0 0 1.066.02l.794-.79c1.258-1.258 3.312-1.31 4.594-.032.396.394.792.791 1.173 1.173Z"],h:16,w:16},24:{p:["M2.828 4.328C5.26 1.896 9.5 1.881 11.935 4.317c.024.024.046.05.067.076 1.391-1.078 2.993-1.886 4.777-1.89a6.22 6.22 0 0 1 4.424 1.825c.559.56 1.023 1.165 1.34 1.922.318.756.47 1.617.468 2.663 0 2.972-2.047 5.808-4.269 8.074-2.098 2.14-4.507 3.924-5.974 5.009l-.311.23a.752.752 0 0 1-.897 0l-.312-.23c-1.466-1.085-3.875-2.869-5.973-5.009-2.22-2.263-4.264-5.095-4.27-8.063a6.216 6.216 0 0 1 1.823-4.596Zm8.033 1.042c-1.846-1.834-5.124-1.823-6.969.022a4.712 4.712 0 0 0-1.382 3.52c0 2.332 1.65 4.79 3.839 7.022 1.947 1.986 4.184 3.66 5.66 4.752a78.214 78.214 0 0 0 2.159-1.645l-2.14-1.974a.752.752 0 0 1 1.02-1.106l2.295 2.118c.616-.52 1.242-1.08 1.85-1.672l-2.16-1.992a.753.753 0 0 1 1.021-1.106l2.188 2.02a18.963 18.963 0 0 0 1.528-1.877l-.585-.586-1.651-1.652c-1.078-1.074-2.837-1.055-3.935.043-.379.38-.76.758-1.132 1.126-1.14 1.124-2.96 1.077-4.07-.043-.489-.495-.98-.988-1.475-1.482a.752.752 0 0 1-.04-1.019c.234-.276.483-.576.745-.893.928-1.12 2.023-2.442 3.234-3.576Zm9.725 6.77c.579-1.08.92-2.167.92-3.228.002-.899-.128-1.552-.35-2.08-.22-.526-.551-.974-1.017-1.44a4.71 4.71 0 0 0-3.356-1.384c-1.66.004-3.25.951-4.77 2.346-1.18 1.084-2.233 2.353-3.188 3.506l-.351.423c.331.332.663.664.993.998a1.375 1.375 0 0 0 1.943.03c.37-.365.748-.74 1.125-1.118 1.662-1.663 4.373-1.726 6.06-.045.56.558 1.12 1.12 1.658 1.658Z"],h:24,w:24}},Si={16:{p:["M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M10.3 6.74a.75.75 0 0 1-.04 1.06l-2.908 2.7 2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z","M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ei={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M10.3 8.24a.75.75 0 0 1-.04 1.06L7.352 12l2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z","M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},ki={16:{p:["M8.47 4.97a.75.75 0 0 0 0 1.06L9.94 7.5 8.47 8.97a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0ZM6.53 6.03a.75.75 0 0 0-1.06-1.06l-2 2a.75.75 0 0 0 0 1.06l2 2a.75.75 0 1 0 1.06-1.06L5.06 7.5l1.47-1.47Z","M12.246 13.307a7.501 7.501 0 1 1 1.06-1.06l2.474 2.473a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM1.5 7.5a6.002 6.002 0 0 0 3.608 5.504 6.002 6.002 0 0 0 6.486-1.117.748.748 0 0 1 .292-.293A6 6 0 1 0 1.5 7.5Z"],h:16,w:16},24:{p:["M11.97 6.97a.75.75 0 0 0 0 1.06l2.47 2.47-2.47 2.47a.75.75 0 1 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0ZM9.03 8.03a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L6.56 10.5l2.47-2.47Z","M10.5 0C16.299 0 21 4.701 21 10.5a10.457 10.457 0 0 1-2.564 6.875l4.344 4.345a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-4.345-4.344A10.459 10.459 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5S4.701 0 10.5 0Zm-9 10.5a9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9 9 9 0 0 0-9 9Z"],h:24,w:24}},Ri={16:{p:["M10.28 6.28a.75.75 0 1 0-1.06-1.06L6.25 8.19l-.97-.97a.75.75 0 0 0-1.06 1.06l1.5 1.5a.75.75 0 0 0 1.06 0l3.5-3.5Z","M7.5 15a7.5 7.5 0 1 1 5.807-2.754l2.473 2.474a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2.474-2.473A7.472 7.472 0 0 1 7.5 15Zm0-13.5a6 6 0 1 0 4.094 10.386.748.748 0 0 1 .293-.292 6.002 6.002 0 0 0 1.117-6.486A6.002 6.002 0 0 0 7.5 1.5Z"],h:16,w:16},24:{p:["M15.03 8.28a.75.75 0 0 0-1.06-1.06l-5.22 5.22-2.22-2.22a.75.75 0 1 0-1.06 1.06l2.75 2.75a.75.75 0 0 0 1.06 0l5.75-5.75Z","M0 10.5C0 4.701 4.701 0 10.5 0S21 4.701 21 10.5c0 2.63-.967 5.033-2.564 6.875l4.344 4.345a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-4.345-4.344A10.457 10.457 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5Zm10.5-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z"],h:24,w:24}},Ai={16:{p:["M0 11.25c0-.966.784-1.75 1.75-1.75h12.5c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm2-9.5C2 .784 2.784 0 3.75 0h8.5C13.216 0 14 .784 14 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-8.5A1.75 1.75 0 0 1 2 6.75Zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25Zm-2 9.5a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-3a.25.25 0 0 0-.25-.25Z","M7 12.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M3.5 3.75C3.5 2.784 4.284 2 5.25 2h13.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 18.75 13H5.25a1.75 1.75 0 0 1-1.75-1.75Zm-2 12c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75ZM5.25 3.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h13.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Zm-2 12a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25Z","M10 17.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Ti={16:{p:["M2.75 0h2.5C6.216 0 7 .784 7 1.75v12.5A1.75 1.75 0 0 1 5.25 16h-2.5A1.75 1.75 0 0 1 1 14.25V1.75C1 .784 1.784 0 2.75 0Zm8 0h2.5C14.216 0 15 .784 15 1.75v12.5A1.75 1.75 0 0 1 13.25 16h-2.5A1.75 1.75 0 0 1 9 14.25V1.75C9 .784 9.784 0 10.75 0ZM2.5 1.75v12.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Zm8 0v12.5c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M3.75 2h5.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 9.25 22h-5.5A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2Zm11 0h5.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22h-5.5A1.75 1.75 0 0 1 13 20.25V3.75c0-.966.784-1.75 1.75-1.75ZM3.5 3.75v16.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25h-5.5a.25.25 0 0 0-.25.25Zm11 0v16.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25h-5.5a.25.25 0 0 0-.25.25Z"],h:24,w:24}},xi={16:{p:["m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"],h:16,w:16},24:{p:["M3.045 18.894 9.94 12 3.045 5.106a.75.75 0 0 1 1.06-1.061l7.425 7.425a.75.75 0 0 1 0 1.06l-7.424 7.425a.75.75 0 0 1-1.061-1.06Zm8.205.606a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5Z"],h:24,w:24}},Di={16:{p:["M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Mi={16:{p:["M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"],h:16,w:16},24:{p:["M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z","M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"],h:24,w:24}},Pi={24:{p:["M0 11.75A.75.75 0 0 1 .75 11h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Zm17.5 0a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Z","M12 17.75a6 6 0 1 1 0-12 6 6 0 0 1 0 12Zm0-1.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"],h:24,w:24}},Ii={16:{p:["m10.41.24 4.711 2.774c.544.316.878.897.879 1.526v5.01a1.77 1.77 0 0 1-.88 1.53l-7.753 4.521-.002.001a1.769 1.769 0 0 1-1.774 0H5.59L.873 12.85A1.761 1.761 0 0 1 0 11.327V6.292c0-.304.078-.598.22-.855l.004-.005.01-.019c.15-.262.369-.486.64-.643L8.641.239a1.752 1.752 0 0 1 1.765 0l.002.001ZM9.397 1.534l-7.17 4.182 4.116 2.388a.27.27 0 0 0 .269 0l7.152-4.148-4.115-2.422a.252.252 0 0 0-.252 0Zm-7.768 10.02 4.1 2.393V9.474a1.807 1.807 0 0 1-.138-.072L1.5 7.029v4.298c0 .095.05.181.129.227Zm8.6.642 1.521-.887v-4.45l-1.521.882ZM7.365 9.402h.001c-.044.026-.09.049-.136.071v4.472l1.5-.875V8.61Zm5.885 1.032 1.115-.65h.002a.267.267 0 0 0 .133-.232V5.264l-1.25.725Z"],h:16,w:16},24:{p:["M13.152.682a2.251 2.251 0 0 1 2.269 0l.007.004 6.957 4.276a2.277 2.277 0 0 1 1.126 1.964v7.516c0 .81-.432 1.56-1.133 1.968l-.002.001-11.964 7.037-.004.003c-.706.41-1.578.41-2.284 0l-.026-.015-6.503-4.502a2.268 2.268 0 0 1-1.096-1.943V9.438c0-.392.1-.77.284-1.1l.003-.006.014-.026c.197-.342.48-.627.82-.827h.002L13.152.681Zm.757 1.295h-.001L2.648 8.616l6.248 4.247a.775.775 0 0 0 .758-.01h.001l11.633-6.804-6.629-4.074a.75.75 0 0 0-.75.003ZM8.517 14.33a2.286 2.286 0 0 1-.393-.18l-.023-.014-6.102-4.147v7.003c0 .275.145.528.379.664l.025.014 6.114 4.232V14.33ZM18 9.709l-3.25 1.9v7.548L18 17.245Zm-7.59 4.438-.002.002a2.296 2.296 0 0 1-.391.18v7.612l3.233-1.902v-7.552Zm9.09-5.316v7.532l2.124-1.25a.776.776 0 0 0 .387-.671V7.363Z"],h:24,w:24}},_i={16:{p:["M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z","M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z","M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z"],h:24,w:24},48:{p:["M47.801 34.003c-1.72 2.988-11.706 10.037-23.82 10.037S1.881 36.991.161 34.003a1.309 1.309 0 0 1-.161-.57v-5.615c.012-.17.047-.338.11-.498.744-1.867 2.692-4.58 5.206-5.308.333-.855.826-2.106 1.287-3.029a20.112 20.112 0 0 1-.104-2.171c0-2.659.563-4.992 2.262-6.729.793-.811 1.777-1.433 2.945-1.901C14.502 5.911 18.483 4 23.938 4c5.455 0 9.523 1.911 12.319 4.182 1.167.468 2.151 1.09 2.944 1.901 1.699 1.737 2.263 4.07 2.263 6.729 0 .736-.027 1.465-.105 2.171.461.923.954 2.174 1.288 3.029 2.513.728 4.461 3.441 5.205 5.308.081.205.115.424.115.645v5.318c0 .252-.04.502-.166.72ZM24.325 22.031h-.688a8.52 8.52 0 0 1-.709 1.016c-1.537 1.892-3.833 2.98-7.008 2.98-3.447 0-5.972-.717-7.557-2.514a4.408 4.408 0 0 1-.171-.21l-.195.21v13.155c2.867 1.558 9.02 4.353 15.984 4.353s13.117-2.795 15.984-4.353V23.513l-.195-.21s-.066.091-.171.21c-1.584 1.797-4.11 2.514-7.557 2.514-3.175 0-5.47-1.088-7.008-2.98a8.637 8.637 0 0 1-.709-1.016h-.033.033Zm-1.969-5.864a14.31 14.31 0 0 0 .127-1.785v-.042c-.003-1.537-.339-2.538-.876-3.152-.681-.78-2.09-1.378-5.06-1.057-3.008.326-4.69 1.073-5.643 2.048-.923.944-1.408 2.356-1.408 4.633 0 2.42.348 3.849 1.115 4.719.729.827 2.165 1.499 5.309 1.499 2.417 0 3.799-.786 4.683-1.873.948-1.168 1.482-2.878 1.753-4.99Zm3.25 0c.271 2.112.805 3.822 1.754 4.99.883 1.087 2.265 1.873 4.682 1.873 3.145 0 4.58-.672 5.309-1.499.767-.87 1.116-2.299 1.116-4.719 0-2.277-.485-3.689-1.408-4.633-.954-.975-2.635-1.722-5.644-2.048-2.969-.321-4.378.277-5.06 1.057-.537.614-.873 1.615-.876 3.152v.042c.002.53.042 1.123.127 1.785Z","M28.998 28.516c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Zm-9.996 0c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Z"],h:48,w:48},96:{p:["M95.667 67.954C92.225 73.933 72.24 88.04 47.997 88.04 23.754 88.04 3.769 73.933.328 67.954c-.216-.375-.307-.796-.328-1.226V55.661c.019-.371.089-.736.226-1.081 1.489-3.738 5.386-9.166 10.417-10.623.667-1.712 1.655-4.215 2.576-6.062-.154-1.414-.208-2.872-.208-4.345 0-5.322 1.128-9.99 4.527-13.466 1.587-1.623 3.557-2.869 5.893-3.805 5.595-4.545 13.563-8.369 24.48-8.369s19.057 3.824 24.652 8.369c2.337.936 4.306 2.182 5.894 3.805 3.399 3.476 4.527 8.144 4.527 13.466 0 1.473-.054 2.931-.208 4.345.921 1.847 1.909 4.35 2.576 6.062 5.03 1.457 8.928 6.885 10.417 10.623.163.41.231.848.231 1.289v10.644c0 .504-.081 1.004-.333 1.441ZM48.686 43.993l-.3.001-1.077-.001c-.423.709-.894 1.39-1.418 2.035-3.078 3.787-7.672 5.964-14.026 5.964-6.897 0-11.952-1.435-15.123-5.032a7.886 7.886 0 0 1-.342-.419l-.39.419v26.326c5.737 3.118 18.05 8.713 31.987 8.713 13.938 0 26.251-5.595 31.988-8.713V46.96l-.39-.419s-.132.181-.342.419c-3.171 3.597-8.226 5.032-15.123 5.032-6.354 0-10.949-2.177-14.026-5.964a17.178 17.178 0 0 1-1.418-2.034h-.066l.066-.001Zm-3.94-11.733c.17-1.326.251-2.513.253-3.573v-.084c-.005-3.077-.678-5.079-1.752-6.308-1.365-1.562-4.184-2.758-10.127-2.115-6.021.652-9.386 2.146-11.294 4.098-1.847 1.889-2.818 4.715-2.818 9.272 0 4.842.698 7.703 2.232 9.443 1.459 1.655 4.332 3.001 10.625 3.001 4.837 0 7.603-1.573 9.371-3.749 1.899-2.336 2.967-5.759 3.51-9.985Zm6.503 0c.543 4.226 1.611 7.649 3.51 9.985 1.768 2.176 4.533 3.749 9.371 3.749 6.292 0 9.165-1.346 10.624-3.001 1.535-1.74 2.232-4.601 2.232-9.443 0-4.557-.97-7.383-2.817-9.272-1.908-1.952-5.274-3.446-11.294-4.098-5.943-.643-8.763.553-10.127 2.115-1.074 1.229-1.747 3.231-1.752 6.308v.084c.002 1.06.083 2.247.253 3.573Zm-2.563 11.734h.066l-.066-.001v.001Z","M38.5 55.75a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Zm19 0a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Z"],h:96,w:96}},Fi={16:{p:["M16 11.24c0 .112-.072.274-.21.467L13 9.688V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-.198 0-.388-.009-.571-.029L6.833 5.226a4.01 4.01 0 0 0 .17-.782c.117-.935-.037-1.395-.241-1.614-.193-.206-.637-.413-1.682-.297-.683.076-1.115.231-1.395.415l-1.257-.91c.579-.564 1.413-.877 2.485-.996 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095Zm-5.083-8.707c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Zm2.511 11.074c-1.393.776-3.272 1.428-5.43 1.428-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.18-.455-.241-.963-.252-1.475L.31 4.107A.747.747 0 0 1 0 3.509V3.49a.748.748 0 0 1 .625-.73c.156-.026.306.047.435.139l14.667 10.578a.592.592 0 0 1 .227.264.752.752 0 0 1 .046.249v.022a.75.75 0 0 1-1.19.596Zm-1.367-.991L5.635 7.964a5.128 5.128 0 0 1-.889.073c-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433 1.539 0 3.089-.505 4.063-.934Z"],h:16,w:16}},Ni={16:{p:["M8.498 14.811a4.53 4.53 0 0 1-1.161-1.337 4.476 4.476 0 0 1-.587-2.224 4.496 4.496 0 0 1 4.5-4.5 4.5 4.5 0 0 1 4.5 4.5 4.5 4.5 0 0 1-7.252 3.561ZM10.5 8.75V11a.75.75 0 0 0 1.5 0V8.75a.75.75 0 1 0-1.5 0Zm.75 5.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","m14.354 6.114-.05-.029a5.949 5.949 0 0 0-1.351-.589c.03-.19.047-.422.047-.709 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.058.462.165.834.316 1.127A6.025 6.025 0 0 0 6.369 7.76c-.472.185-1.015.277-1.623.277-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.265.205 1.285.725 2.577 1.079a5.937 5.937 0 0 0 .939 1.736C2.733 14.407.111 12.027 0 11.286V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .452-.033.906-.146 1.327ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Z"],h:16,w:16}},Oi={16:{p:["M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z","M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 0 1-1.75 1.75H8.774a1.75 1.75 0 0 1-1.75-1.75Zm1.75-.25a.25.25 0 0 0-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z","M1.995 10.749a1.75 1.75 0 0 1 1.75-1.751H5.25a.75.75 0 1 1 0 1.5H3.745a.25.25 0 0 0-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.51a.75.75 0 1 1 1.5 0v1.51A1.75 1.75 0 0 1 13.25 22h-9.5A1.75 1.75 0 0 1 2 20.25l-.005-9.501Z"],h:24,w:24}},Li={16:{p:["M6.5.75V2h3V.75a.75.75 0 0 1 1.5 0V2h1.25c.966 0 1.75.784 1.75 1.75V5h1.25a.75.75 0 0 1 0 1.5H14v3h1.25a.75.75 0 0 1 0 1.5H14v1.25A1.75 1.75 0 0 1 12.25 14H11v1.25a.75.75 0 0 1-1.5 0V14h-3v1.25a.75.75 0 0 1-1.5 0V14H3.75A1.75 1.75 0 0 1 2 12.25V11H.75a.75.75 0 0 1 0-1.5H2v-3H.75a.75.75 0 0 1 0-1.5H2V3.75C2 2.784 2.784 2 3.75 2H5V.75a.75.75 0 0 1 1.5 0Zm5.75 11.75a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25ZM5.75 5h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-4.5A.75.75 0 0 1 5.75 5Zm.75 4.5h3v-3h-3Z"],h:16,w:16},24:{p:["M8.75 8h6.5a.75.75 0 0 1 .75.75v6.5a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75v-6.5A.75.75 0 0 1 8.75 8Zm.75 6.5h5v-5h-5Z","M15.25 1a.75.75 0 0 1 .75.75V4h2.25c.966 0 1.75.784 1.75 1.75V8h2.25a.75.75 0 0 1 0 1.5H20v5h2.25a.75.75 0 0 1 0 1.5H20v2.25A1.75 1.75 0 0 1 18.25 20H16v2.25a.75.75 0 0 1-1.5 0V20h-5v2.25a.75.75 0 0 1-1.5 0V20H5.75A1.75 1.75 0 0 1 4 18.25V16H1.75a.75.75 0 0 1 0-1.5H4v-5H1.75a.75.75 0 0 1 0-1.5H4V5.75C4 4.784 4.784 4 5.75 4H8V1.75a.75.75 0 0 1 1.5 0V4h5V1.75a.75.75 0 0 1 .75-.75Zm3 17.5a.25.25 0 0 0 .25-.25V5.75a.25.25 0 0 0-.25-.25H5.75a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25Z"],h:24,w:24}},Bi={16:{p:["M10.75 9a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5h-1.5Z","M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25ZM14.5 6.5h-13v5.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm0-2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25V5h13Z"],h:16,w:16},24:{p:["M15.25 14a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z","M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25V4.75C0 3.784.784 3 1.75 3Zm-.25 7v9.25c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V10Zm0-5.25V8.5h21V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},Hi={16:{p:["M2.75 3.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 13H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 14.543V13H2.75A1.75 1.75 0 0 1 1 11.25v-7.5C1 2.784 1.784 2 2.75 2h5.5a.75.75 0 0 1 0 1.5ZM16 1.25v4.146a.25.25 0 0 1-.427.177L14.03 4.03l-3.75 3.75a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l3.75-3.75-1.543-1.543A.25.25 0 0 1 11.604 1h4.146a.25.25 0 0 1 .25.25Z"],h:16,w:16},24:{p:["M16.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L20.94 3h-3.69a.75.75 0 0 1-.75-.75Z","M3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.75.75 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25v-6a.75.75 0 0 1 1.5 0v6a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.457 1.457 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75V4.25c0-.966.784-1.75 1.75-1.75h11a.75.75 0 0 1 0 1.5h-11Z"],h:24,w:24}},Ui={16:{p:["M2 7.75A.75.75 0 0 1 2.75 7h10a.75.75 0 0 1 0 1.5h-10A.75.75 0 0 1 2 7.75Z"],h:16,w:16},24:{p:["M4.5 12.75a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 0 1.5H5.25a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Zi={16:{p:["M1 3.5c0-.626.292-1.165.7-1.59.406-.422.956-.767 1.579-1.041C4.525.32 6.195 0 8 0c1.805 0 3.475.32 4.722.869.622.274 1.172.62 1.578 1.04.408.426.7.965.7 1.591v9c0 .626-.292 1.165-.7 1.59-.406.422-.956.767-1.579 1.041C11.476 15.68 9.806 16 8 16c-1.805 0-3.475-.32-4.721-.869-.623-.274-1.173-.62-1.579-1.04-.408-.426-.7-.965-.7-1.591Zm1.5 0c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 5.205 6.353 5.5 8 5.5c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55 0-.133-.058-.318-.282-.551-.227-.237-.591-.483-1.101-.707C11.102 1.795 9.647 1.5 8 1.5c-1.646 0-3.101.295-4.118.742-.508.224-.873.471-1.1.708-.224.232-.282.417-.282.55Zm0 4.5c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 9.705 6.353 10 8 10c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55V5.724c-.241.15-.503.286-.778.407C11.475 6.68 9.805 7 8 7c-1.805 0-3.475-.32-4.721-.869a6.15 6.15 0 0 1-.779-.407Zm0 2.225V12.5c0 .133.058.318.282.55.227.237.592.484 1.1.708 1.016.447 2.471.742 4.118.742 1.647 0 3.102-.295 4.117-.742.51-.224.874-.47 1.101-.707.224-.233.282-.418.282-.551v-2.275c-.241.15-.503.285-.778.406-1.247.549-2.917.869-4.722.869-1.805 0-3.475-.32-4.721-.869a6.327 6.327 0 0 1-.779-.406Z"],h:16,w:16},24:{p:["M12 1.25c2.487 0 4.773.402 6.466 1.079.844.337 1.577.758 2.112 1.264.536.507.922 1.151.922 1.907v12.987l-.026.013h.026c0 .756-.386 1.4-.922 1.907-.535.506-1.268.927-2.112 1.264-1.693.677-3.979 1.079-6.466 1.079s-4.774-.402-6.466-1.079c-.844-.337-1.577-.758-2.112-1.264C2.886 19.9 2.5 19.256 2.5 18.5h.026l-.026-.013V5.5c0-.756.386-1.4.922-1.907.535-.506 1.268-.927 2.112-1.264C7.226 1.652 9.513 1.25 12 1.25ZM4 14.371v4.116l-.013.013H4c0 .211.103.487.453.817.351.332.898.666 1.638.962 1.475.589 3.564.971 5.909.971 2.345 0 4.434-.381 5.909-.971.739-.296 1.288-.63 1.638-.962.349-.33.453-.607.453-.817h.013L20 18.487v-4.116a7.85 7.85 0 0 1-1.534.8c-1.693.677-3.979 1.079-6.466 1.079s-4.774-.402-6.466-1.079a7.843 7.843 0 0 1-1.534-.8ZM20 12V7.871a7.85 7.85 0 0 1-1.534.8C16.773 9.348 14.487 9.75 12 9.75s-4.774-.402-6.466-1.079A7.85 7.85 0 0 1 4 7.871V12c0 .21.104.487.453.817.35.332.899.666 1.638.961 1.475.59 3.564.972 5.909.972 2.345 0 4.434-.382 5.909-.972.74-.295 1.287-.629 1.638-.96.35-.33.453-.607.453-.818ZM4 5.5c0 .211.103.487.453.817.351.332.898.666 1.638.962 1.475.589 3.564.971 5.909.971 2.345 0 4.434-.381 5.909-.971.739-.296 1.288-.63 1.638-.962.349-.33.453-.607.453-.817 0-.211-.103-.487-.453-.817-.351-.332-.898-.666-1.638-.962-1.475-.589-3.564-.971-5.909-.971-2.345 0-4.434.381-5.909.971-.739.296-1.288.63-1.638.962C4.104 5.013 4 5.29 4 5.5Z"],h:24,w:24}},$i={16:{p:["M5.75 7.5a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75Zm5.25.75a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 0 1.5 0v-1.5Z","M6.25 0h2A.75.75 0 0 1 9 .75V3.5h3.25a2.25 2.25 0 0 1 2.25 2.25V8h.75a.75.75 0 0 1 0 1.5h-.75v2.75a2.25 2.25 0 0 1-2.25 2.25h-8.5a2.25 2.25 0 0 1-2.25-2.25V9.5H.75a.75.75 0 0 1 0-1.5h.75V5.75A2.25 2.25 0 0 1 3.75 3.5H7.5v-2H6.25a.75.75 0 0 1 0-1.5ZM3 5.75v6.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-6.5a.75.75 0 0 0-.75-.75h-8.5a.75.75 0 0 0-.75.75Z"],h:16,w:16},24:{p:["M8.75 11a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.75.75 0 0 1 .75-.75Zm7.25.75a.75.75 0 0 0-1.5 0v3.5a.75.75 0 0 0 1.5 0v-3.5Z","M9.813 1h2.437a.75.75 0 0 1 .75.75V5h6.75A2.25 2.25 0 0 1 22 7.25v5.25h1.25a.75.75 0 0 1 0 1.5H22v5.75A2.25 2.25 0 0 1 19.75 22H4.25A2.25 2.25 0 0 1 2 19.75V14H.75a.75.75 0 0 1 0-1.5H2V7.25A2.25 2.25 0 0 1 4.25 5h7.25V2.5H9.813A.75.75 0 0 1 9.812 1ZM3.5 7.25v12.5c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V7.25a.75.75 0 0 0-.75-.75H4.25a.75.75 0 0 0-.75.75Z"],h:24,w:24}},Wi={16:{p:["m4.927 5.427 2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 5H8.75V.75a.75.75 0 1 0-1.5 0V5H5.104a.25.25 0 0 0-.177.427Z","M1.573 2.573a.25.25 0 0 0-.073.177v7.5a.25.25 0 0 0 .25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25h-3a.75.75 0 1 1 0-1.5h3A1.75 1.75 0 0 1 16 2.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.75.75 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5A1.75 1.75 0 0 1 1.75 1h3a.75.75 0 0 1 0 1.5h-3a.25.25 0 0 0-.177.073ZM6.982 12a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5H6.982Z"],h:16,w:16},24:{p:["M11.25 9.331V.75a.75.75 0 0 1 1.5 0v8.58l1.949-2.11A.75.75 0 1 1 15.8 8.237l-3.25 3.52a.75.75 0 0 1-1.102 0l-3.25-3.52A.75.75 0 1 1 9.3 7.22l1.949 2.111Z","M2.5 3.75v11.5c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25h-5.5a.75.75 0 0 1 0-1.5h5.5c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 21.25 17h-6.204c.171 1.375.805 2.652 1.769 3.757A.752.752 0 0 1 16.25 22h-8.5a.75.75 0 0 1-.566-1.243c.965-1.105 1.599-2.382 1.77-3.757H2.75A1.75 1.75 0 0 1 1 15.25V3.75C1 2.784 1.784 2 2.75 2h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25ZM10.463 17c-.126 1.266-.564 2.445-1.223 3.5h5.52c-.66-1.055-1.098-2.234-1.223-3.5Z"],h:24,w:24}},Vi={16:{p:["M15 3c.55 0 1 .45 1 1v9c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1 0-.55.45-1 1-1h4c.55 0 1 .45 1 1Zm-4.5 9c1.94 0 3.5-1.56 3.5-3.5S12.44 5 10.5 5 7 6.56 7 8.5 8.56 12 10.5 12ZM13 8.5c0 1.38-1.13 2.5-2.5 2.5S8 9.87 8 8.5 9.13 6 10.5 6 13 7.13 13 8.5ZM6 5V4H2v1Z"],h:16,w:16}},qi={16:{p:["M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"],h:16,w:16},24:{p:["M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"],h:24,w:24}},Gi={16:{p:["M14.25 1c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.752.752 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5C0 1.784.784 1 1.75 1ZM1.75 2.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25ZM9.018 12H6.982a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5Z"],h:16,w:16},24:{p:["M8.954 17H2.75A1.75 1.75 0 0 1 1 15.25V3.75C1 2.784 1.784 2 2.75 2h18.5c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 21.25 17h-6.204c.171 1.375.805 2.652 1.769 3.757A.752.752 0 0 1 16.25 22h-8.5a.75.75 0 0 1-.565-1.243c.964-1.105 1.598-2.382 1.769-3.757ZM21.5 3.75a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25ZM13.537 17h-3.074c-.126 1.266-.564 2.445-1.223 3.5h5.52c-.659-1.055-1.098-2.234-1.223-3.5Z"],h:24,w:24}},zi={16:{p:["M3.75 0h8.5C13.216 0 14 .784 14 1.75v12.5A1.75 1.75 0 0 1 12.25 16h-8.5A1.75 1.75 0 0 1 2 14.25V1.75C2 .784 2.784 0 3.75 0ZM3.5 1.75v12.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M10.25 5.25A.75.75 0 0 1 11 4.5h2A.75.75 0 0 1 13 6h-2a.75.75 0 0 1-.75-.75ZM12 19.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","M4 2.75C4 1.784 4.784 1 5.75 1h12.5c.966 0 1.75.784 1.75 1.75v18.5A1.75 1.75 0 0 1 18.25 23H5.75A1.75 1.75 0 0 1 4 21.25Zm1.75-.25a.25.25 0 0 0-.25.25v18.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},ji={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75V5a.75.75 0 0 1-1.5 0V2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25H7A.75.75 0 0 1 7 12h-.268a5.712 5.712 0 0 1-.765 2.5H7A.75.75 0 0 1 7 16H4.5a.75.75 0 0 1-.565-1.243c.772-.885 1.193-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5Z","M10.75 7h3.5c.967 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-5.5C9 7.784 9.783 7 10.75 7Zm-.25 1.75v5.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M1 3.75C1 2.784 1.784 2 2.75 2h18.5c.966 0 1.75.784 1.75 1.75v4a.75.75 0 0 1-1.5 0v-4a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h9a.75.75 0 0 1 0 1.5h-1.287c-.126 1.266-.564 2.445-1.223 3.5h2.51a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.565-1.243c.964-1.105 1.598-2.382 1.769-3.757H2.75A1.75 1.75 0 0 1 1 15.25V3.75Z","M14 11.75c0-.967.783-1.75 1.75-1.75h5.5c.966 0 1.75.783 1.75 1.75v8.5A1.75 1.75 0 0 1 21.25 22h-5.5A1.75 1.75 0 0 1 14 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ki={16:{p:["M.527 9.237a1.75 1.75 0 0 1 0-2.474L6.777.512a1.75 1.75 0 0 1 2.475 0l6.251 6.25a1.75 1.75 0 0 1 0 2.475l-6.25 6.251a1.75 1.75 0 0 1-2.475 0L.527 9.238Zm1.06-1.414a.25.25 0 0 0 0 .354l6.251 6.25a.25.25 0 0 0 .354 0l6.25-6.25a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.354 0l-6.25 6.25Z"],h:16,w:16},24:{p:["M1.527 13.237a1.75 1.75 0 0 1 0-2.474l9.272-9.273a1.75 1.75 0 0 1 2.475 0l9.272 9.273a1.75 1.75 0 0 1 0 2.474l-9.272 9.272a1.75 1.75 0 0 1-2.475 0Zm1.06-1.414a.25.25 0 0 0 0 .354l9.273 9.272a.25.25 0 0 0 .353 0l9.272-9.272a.25.25 0 0 0 0-.354l-9.272-9.272a.25.25 0 0 0-.353 0Z"],h:24,w:24}},Yi={16:{p:["M8.75 1.75V5H12a.75.75 0 0 1 0 1.5H8.75v3.25a.75.75 0 0 1-1.5 0V6.5H4A.75.75 0 0 1 4 5h3.25V1.75a.75.75 0 0 1 1.5 0ZM4 13h8a.75.75 0 0 1 0 1.5H4A.75.75 0 0 1 4 13Z"],h:16,w:16},24:{p:["M12.25 3.5a.75.75 0 0 1 .75.75V8.5h4.25a.75.75 0 0 1 0 1.5H13v4.25a.75.75 0 0 1-1.5 0V10H7.25a.75.75 0 0 1 0-1.5h4.25V4.25a.75.75 0 0 1 .75-.75ZM6.562 19.25a.75.75 0 0 1 .75-.75h9.938a.75.75 0 0 1 0 1.5H7.312a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Xi={16:{p:["M2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1Zm10.5 1.5H2.75a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4Z"],h:16,w:16}},Qi={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm8.53 3.28-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16}},Ji={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z"],h:16,w:16}},eo={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm8.5 6.25h-6.5a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5Z"],h:16,w:16}},to={16:{p:["M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm9.03 6.03-3.25 3.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.97-1.97H4.75a.75.75 0 0 1 0-1.5h4.69L7.47 5.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.25 3.25a.75.75 0 0 1 0 1.06Z"],h:16,w:16}},no={16:{p:["M0 2.75C0 1.783.784 1 1.75 1h8.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.457 1.457 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25Zm1.75-.25a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.189L6.22 8.72a.747.747 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm12.5 2h-.5a.75.75 0 0 1 0-1.5h.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.219V11.25a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm-5.47.28-3 3a.747.747 0 0 1-1.06 0l-1.5-1.5a.749.749 0 1 1 1.06-1.06l.97.969L7.72 3.72a.749.749 0 1 1 1.06 1.06Z"],h:16,w:16},24:{p:["M0 2.75C0 1.783.784 1 1.75 1h12.5c.967 0 1.75.783 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.457 1.457 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.189l2.72-2.719a.747.747 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm20.5 6h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5c.199 0 .39.079.53.22l2.72 2.719V19.25a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm-9.72-3.22-5 5a.747.747 0 0 1-1.06 0l-2.5-2.5a.749.749 0 1 1 1.06-1.06L7 8.689l4.47-4.469a.749.749 0 1 1 1.06 1.06Z"],h:24,w:24}},ro={16:{p:["M0 2.75C0 1.783.784 1 1.75 1h8.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.457 1.457 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25Zm1.75-.25a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.189L6.22 8.72a.747.747 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm12.5 2h-.5a.75.75 0 0 1 0-1.5h.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.219V11.25a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm-6.282.03L5.03 7.468a.749.749 0 1 1-1.06-1.061L6.907 3.47a.75.75 0 0 1 1.061 1.06Z"],h:16,w:16},24:{p:["M0 2.75C0 1.783.784 1 1.75 1h12.5c.967 0 1.75.783 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.457 1.457 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.189l2.72-2.719a.747.747 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm20.5 6h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5c.199 0 .39.079.53.22l2.72 2.719V19.25a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25ZM11.28 5.53l-5 5a.749.749 0 1 1-1.06-1.06l5-5a.749.749 0 1 1 1.06 1.06Z"],h:24,w:24}},so={16:{p:["M0 2.75C0 1.783.784 1 1.75 1h8.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.457 1.457 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25Zm1.75-.25a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.189L6.22 8.72a.747.747 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm12.5 2h-.5a.75.75 0 0 1 0-1.5h.5c.967 0 1.75.783 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.457 1.457 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 1 1 1.06-1.06l2.22 2.219V11.25a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25ZM6.5 4v1.492l.466.187.036.015.812.375a.75.75 0 1 1-.628 1.362l-.795-.367-.92-.368A.75.75 0 0 1 5 6V4a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M0 2.75C0 1.783.784 1 1.75 1h12.5c.967 0 1.75.783 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.457 1.457 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.189l2.72-2.719a.747.747 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm20.5 6h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5c.199 0 .39.079.53.22l2.72 2.719V19.25a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25ZM8.5 4.75v3.14l1.15.488a.608.608 0 0 1 .037.017l1.393.681a.75.75 0 0 1-.66 1.348l-1.374-.673-1.589-.674A.751.751 0 0 1 7 8.386V4.75a.75.75 0 0 1 1.5 0Z"],h:24,w:24}},io={16:{p:["M4 8a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm4-2.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z"],h:16,w:16},24:{p:["M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12Zm0-1.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"],h:24,w:24}},oo={16:{p:["M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"],h:16,w:16},24:{p:["M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"],h:24,w:24}},ao={16:{p:["M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z","M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"],h:16,w:16},24:{p:["M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z","M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"],h:24,w:24}},lo={16:{p:["M10.5 3a.75.75 0 0 1 .75.75v1h1a.75.75 0 0 1 0 1.5h-1v1a.75.75 0 0 1-1.5 0v-1h-1a.75.75 0 0 1 0-1.5h1v-1A.75.75 0 0 1 10.5 3Z","M6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25v-7.5C5 .784 5.784 0 6.75 0ZM6.5 1.75v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25Z","M1.75 5A1.75 1.75 0 0 0 0 6.75v7.5C0 15.216.784 16 1.75 16h7.5A1.75 1.75 0 0 0 11 14.25v-1.5a.75.75 0 0 0-1.5 0v1.5a.25.25 0 0 1-.25.25h-7.5a.25.25 0 0 1-.25-.25v-7.5a.25.25 0 0 1 .25-.25h1.5a.75.75 0 0 0 0-1.5h-1.5Z"],h:16,w:16},24:{p:["M14.513 6a.75.75 0 0 1 .75.75v2h1.987a.75.75 0 0 1 0 1.5h-1.987v2a.75.75 0 1 1-1.5 0v-2H11.75a.75.75 0 0 1 0-1.5h2.013v-2a.75.75 0 0 1 .75-.75Z","M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 0 1-1.75 1.75H8.774a1.75 1.75 0 0 1-1.75-1.75Zm1.75-.25a.25.25 0 0 0-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z","M1.995 10.749a1.75 1.75 0 0 1 1.75-1.751H5.25a.75.75 0 1 1 0 1.5H3.745a.25.25 0 0 0-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.51a.75.75 0 1 1 1.5 0v1.51A1.75 1.75 0 0 1 13.25 22h-9.5A1.75 1.75 0 0 1 2 20.25l-.005-9.501Z"],h:24,w:24}},co={16:{p:["M0 5.75C0 4.784.784 4 1.75 4h12.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 14.25 12H1.75A1.75 1.75 0 0 1 0 10.25ZM12 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM4 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"],h:16,w:16}},uo={16:{p:["M8 2c1.981 0 3.671.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.45.678-1.367 1.932-2.637 3.023C11.67 13.008 9.981 14 8 14c-1.981 0-3.671-.992-4.933-2.078C1.797 10.83.88 9.576.43 8.898a1.62 1.62 0 0 1 0-1.798c.45-.677 1.367-1.931 2.637-3.022C4.33 2.992 6.019 2 8 2ZM1.679 7.932a.12.12 0 0 0 0 .136c.411.622 1.241 1.75 2.366 2.717C5.176 11.758 6.527 12.5 8 12.5c1.473 0 2.825-.742 3.955-1.715 1.124-.967 1.954-2.096 2.366-2.717a.12.12 0 0 0 0-.136c-.412-.621-1.242-1.75-2.366-2.717C10.824 4.242 9.473 3.5 8 3.5c-1.473 0-2.825.742-3.955 1.715-1.124.967-1.954 2.096-2.366 2.717ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z"],h:16,w:16},24:{p:["M15.5 12a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z","M12 3.5c3.432 0 6.124 1.534 8.054 3.241 1.926 1.703 3.132 3.61 3.616 4.46a1.6 1.6 0 0 1 0 1.598c-.484.85-1.69 2.757-3.616 4.461-1.929 1.706-4.622 3.24-8.054 3.24-3.432 0-6.124-1.534-8.054-3.24C2.02 15.558.814 13.65.33 12.8a1.6 1.6 0 0 1 0-1.598c.484-.85 1.69-2.757 3.616-4.462C5.875 5.034 8.568 3.5 12 3.5ZM1.633 11.945a.115.115 0 0 0-.017.055c.001.02.006.039.017.056.441.774 1.551 2.527 3.307 4.08C6.691 17.685 9.045 19 12 19c2.955 0 5.31-1.315 7.06-2.864 1.756-1.553 2.866-3.306 3.307-4.08a.111.111 0 0 0 .017-.056.111.111 0 0 0-.017-.056c-.441-.773-1.551-2.527-3.307-4.08C17.309 6.315 14.955 5 12 5 9.045 5 6.69 6.314 4.94 7.865c-1.756 1.552-2.866 3.306-3.307 4.08Z"],h:24,w:24}},ho={16:{p:["M.143 2.31a.75.75 0 0 1 1.047-.167l14.5 10.5a.75.75 0 1 1-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.619 1.619 0 0 1 0-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 0 1 .143 2.31Zm1.536 5.622A.12.12 0 0 0 1.657 8c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 0 1 6.058 7.52L3.529 5.688a14.207 14.207 0 0 0-1.85 2.244ZM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 1 1-.473-1.423A6.207 6.207 0 0 1 8 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.11.166-.248.365-.41.587a.75.75 0 1 1-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 0 0 0-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5Z"],h:16,w:16},24:{p:["M8.052 5.837A9.715 9.715 0 0 1 12 5c2.955 0 5.309 1.315 7.06 2.864 1.756 1.553 2.866 3.307 3.307 4.08a.11.11 0 0 1 .016.055.122.122 0 0 1-.017.06 16.766 16.766 0 0 1-1.53 2.218.75.75 0 1 0 1.163.946 18.253 18.253 0 0 0 1.67-2.42 1.607 1.607 0 0 0 .001-1.602c-.485-.85-1.69-2.757-3.616-4.46C18.124 5.034 15.432 3.5 12 3.5c-1.695 0-3.215.374-4.552.963a.75.75 0 0 0 .604 1.373Zm11.114 12.15C17.328 19.38 14.933 20.5 12 20.5c-3.432 0-6.125-1.534-8.054-3.24C2.02 15.556.814 13.648.33 12.798a1.606 1.606 0 0 1 .001-1.6A18.283 18.283 0 0 1 3.648 7.01L1.317 5.362a.75.75 0 1 1 .866-1.224l20.5 14.5a.75.75 0 1 1-.866 1.224ZM4.902 7.898c-1.73 1.541-2.828 3.273-3.268 4.044a.112.112 0 0 0-.017.059c0 .015.003.034.016.055.441.774 1.551 2.527 3.307 4.08C6.69 17.685 9.045 19 12 19c2.334 0 4.29-.82 5.874-1.927l-3.516-2.487a3.5 3.5 0 0 1-5.583-3.949L4.902 7.899Z"],h:24,w:24}},po={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM4 5v5a1 1 0 0 0 1 1h1v1.5a.5.5 0 0 0 .854.354L8.707 11H11a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1Z"],h:16,w:16}},mo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM6 6.928a1.75 1.75 0 1 0-1 0V7.5A1.5 1.5 0 0 0 6.5 9h1v1.072a1.75 1.75 0 1 0 1 0V9h1A1.5 1.5 0 0 0 11 7.5v-.572a1.75 1.75 0 1 0-1 0V7.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5Z"],h:16,w:16}},fo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm2.33-11.5c-1.22 0-1.83.5-2.323 1.136C7.513 5 6.903 4.5 5.682 4.5c-1.028 0-2.169.784-2.169 2.5 0 1.499 1.493 3.433 3.246 4.517.52.321.89.479 1.248.484.357-.005.728-.163 1.247-.484C11.007 10.433 12.5 8.5 12.5 7c0-1.716-1.14-2.5-2.17-2.5Z"],h:16,w:16}},go={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.457 6.957a.999.999 0 1 0-1.414-1.414L7.25 8.336 5.957 7.043a.999.999 0 1 0-1.414 1.414l2 2a.999.999 0 0 0 1.414 0Z"],h:16,w:16}},yo={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM3.802 7.334a.75.75 0 0 0-1.482-.233 5.8 5.8 0 0 0 0 1.798.749.749 0 1 0 1.482-.233 4.296 4.296 0 0 1 0-1.332ZM8 2.25a5.8 5.8 0 0 0-.899.07.749.749 0 1 0 .233 1.482 4.296 4.296 0 0 1 1.332 0 .75.75 0 0 0 .233-1.482A5.8 5.8 0 0 0 8 2.25Zm-.666 9.948a.75.75 0 0 0-.233 1.482 5.8 5.8 0 0 0 1.798 0 .749.749 0 1 0-.233-1.482 4.296 4.296 0 0 1-1.332 0Zm6.346-5.097a.749.749 0 1 0-1.482.233 4.296 4.296 0 0 1 0 1.332.75.75 0 0 0 1.482.233 5.8 5.8 0 0 0 0-1.798Zm-8.178-2.54a.75.75 0 0 0-.882-1.213A5.77 5.77 0 0 0 3.348 4.62a.749.749 0 1 0 1.213.882c.263-.361.58-.678.941-.941Zm-.941 5.937a.75.75 0 0 0-1.213.882 5.77 5.77 0 0 0 1.272 1.272.749.749 0 1 0 .882-1.213 4.285 4.285 0 0 1-.941-.941Zm6.819-7.15a.749.749 0 1 0-.882 1.213c.36.263.679.58.941.941a.75.75 0 0 0 1.213-.882 5.77 5.77 0 0 0-1.272-1.272Zm1.272 8.032a.749.749 0 1 0-1.213-.882c-.262.36-.581.679-.941.941a.75.75 0 0 0 .882 1.213 5.77 5.77 0 0 0 1.272-1.272Z"],h:16,w:16}},wo={16:{p:["M3.75 8a4.25 4.25 0 1 1 8.5 0 4.25 4.25 0 0 1-8.5 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z","M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-5.75a5.75 5.75 0 1 0 0 11.5 5.75 5.75 0 1 0 0-11.5Z"],h:16,w:16}},bo={16:{p:["M.5 8a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm3.427-4.323a.25.25 0 0 0-.427.177V6c0 .138.112.25.25.25h2.146a.25.25 0 0 0 .177-.427l-.524-.524a4.003 4.003 0 0 1 6.862 1.858.75.75 0 0 0 1.467-.314 5.502 5.502 0 0 0-9.39-2.605Zm9.573 8.469V10a.25.25 0 0 0-.25-.25h-2.146a.25.25 0 0 0-.177.427l.524.524a4.002 4.002 0 0 1-6.862-1.858.75.75 0 0 0-1.467.314 5.502 5.502 0 0 0 9.39 2.605l.561.561a.25.25 0 0 0 .427-.177ZM10 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 10 8Z"],h:16,w:17}},Co={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm.25-11.25A1.75 1.75 0 1 0 6 6.428v3.144a1.75 1.75 0 1 0 1 0V8.236A2.99 2.99 0 0 0 9 9h.571a1.75 1.75 0 1 0 0-1H9a2 2 0 0 1-1.957-1.586A1.75 1.75 0 0 0 8.25 4.75Z"],h:16,w:16}},vo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm.847-8.145a2.502 2.502 0 1 0-1.694 0C5.471 8.261 4 9.775 4 11c0 .395.145.995 1 .995h6c.855 0 1-.6 1-.995 0-1.224-1.47-2.74-3.153-3.145Z"],h:16,w:16}},So={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm1.062 4.312a1 1 0 1 0-2 0v2.75h-2.75a1 1 0 0 0 0 2h2.75v2.75a1 1 0 1 0 2 0v-2.75h2.75a1 1 0 1 0 0-2h-2.75Z"],h:16,w:16}},Eo={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm4.5.25v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H7v-1.5a1.5 1.5 0 0 1 2.443-1.167.75.75 0 0 0 .943-1.166A3 3 0 0 0 5.5 5.75v1.5a1 1 0 0 0-1 1Z"],h:16,w:16}},ko={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.5 12.25A1.75 1.75 0 0 0 6 8.822V6.928A1.752 1.752 0 0 0 5.5 3.5 1.75 1.75 0 0 0 5 6.928v1.894a1.752 1.752 0 0 0 .5 3.428Zm5-5a.5.5 0 0 0-.5.5v1.072a1.752 1.752 0 0 0 .5 3.428 1.75 1.75 0 0 0 .5-3.428V7.75a.5.5 0 0 0-.5-.5Zm1.255-2.763a.5.5 0 0 0-.707-.707l-.53.531-.531-.531a.5.5 0 0 0-.707.707l.531.531-.531.53a.5.5 0 0 0 .707.707l.531-.53.53.53a.5.5 0 0 0 .707-.707l-.53-.53Z"],h:16,w:16}},Ro={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm7.25 2.5c0-.793-.527-1.462-1.25-1.678V6.928A1.752 1.752 0 0 0 5.5 3.5 1.75 1.75 0 0 0 5 6.928v1.894a1.752 1.752 0 0 0 .5 3.428 1.75 1.75 0 0 0 1.75-1.75Zm3.25 1.75a1.75 1.75 0 1 0 .001-3.499 1.75 1.75 0 0 0-.001 3.499Zm0-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75-3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16}},Ao={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm6.75 2.5c0-.793-.527-1.462-1.25-1.678V6.928A1.752 1.752 0 0 0 5 3.5a1.75 1.75 0 0 0-.5 3.428v1.894A1.752 1.752 0 0 0 5 12.25a1.75 1.75 0 0 0 1.75-1.75Zm3.25-5h.25a.5.5 0 0 1 .5.5v2.822a1.752 1.752 0 0 0 .5 3.428 1.75 1.75 0 0 0 .5-3.428V6a1.5 1.5 0 0 0-1.5-1.5H10V3.129a.25.25 0 0 0-.427-.177L7.702 4.823a.25.25 0 0 0 0 .354l1.871 1.871A.25.25 0 0 0 10 6.871Z"],h:16,w:16}},To={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM5.5 4A1.5 1.5 0 0 0 4 5.5v5c0 .828.5 1.5 1 1.5v-1a1 1 0 0 1 1-1h5v1h-1v1h1.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Zm.5 7.25v2.514a.25.25 0 0 0 .426.178l.898-.888a.25.25 0 0 1 .352 0l.898.888A.25.25 0 0 0 9 13.764V11H6.25a.25.25 0 0 0-.25.25Z"],h:16,w:16}},xo={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.031-12a4.38 4.38 0 0 0-3.097 1.283l-.23.229c-.156.157-.308.32-.452.49H5.65a.876.876 0 0 0-.746.417l-.856 1.388a.377.377 0 0 0 .21.556l1.552.477 1.35 1.35.478 1.553a.374.374 0 0 0 .555.21l1.389-.855a.876.876 0 0 0 .416-.746V8.747c.17-.144.333-.295.49-.452l.23-.23A4.379 4.379 0 0 0 12 4.969v-.093A.876.876 0 0 0 11.124 4Zm-5.107 7.144h-.001a.809.809 0 0 0-1.33-.881c-.395.394-.564 1.258-.62 1.62a.12.12 0 0 0 .035.108.12.12 0 0 0 .108.035c.362-.056 1.226-.225 1.62-.619a.803.803 0 0 0 .188-.263Z"],h:16,w:16}},Do={16:{p:["M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm.252-12.932a.476.476 0 0 0-.682.195l-1.2 2.432-2.684.39a.477.477 0 0 0-.266.816l1.944 1.892-.46 2.674a.479.479 0 0 0 .694.504L8 10.709l2.4 1.261a.478.478 0 0 0 .694-.504l-.458-2.673L12.578 6.9a.479.479 0 0 0-.265-.815l-2.685-.39-1.2-2.432a.473.473 0 0 0-.176-.195Z"],h:16,w:16}},Mo={16:{p:["M7.22 6.5a.72.72 0 1 1-1.44 0 .72.72 0 0 1 1.44 0Z","M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM4 5v3.38c.001.397.159.778.44 1.059l3.211 3.213a1.202 1.202 0 0 0 1.698 0l3.303-3.303a1.202 1.202 0 0 0 0-1.698L9.439 4.44A1.5 1.5 0 0 0 8.379 4H5a1 1 0 0 0-1 1Z"],h:16,w:16}},Po={16:{p:["M11 5h1v1.146a1 1 0 0 1-.629.928L11 7.223V5ZM5 7.223l-.371-.149A1 1 0 0 1 4 6.146V5h1v2.223Z","M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM3 5v1.146a2 2 0 0 0 1.257 1.858l.865.346a3.005 3.005 0 0 0 2.294 2.093C7.22 11.404 6.658 12 5.502 12H5.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1c-1.158 0-1.72-.595-1.916-1.557a3.005 3.005 0 0 0 2.294-2.094l.865-.346A2 2 0 0 0 13 6.146V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1Z"],h:16,w:16}},Io={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4Zm10 0v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z"],h:24,w:24}},_o={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073Zm4.48 3.758a.75.75 0 0 1 .755.745l.01 1.497h1.497a.75.75 0 0 1 0 1.5H9v1.507a.75.75 0 0 1-1.5 0V9.005l-1.502.01a.75.75 0 0 1-.01-1.5l1.507-.01-.01-1.492a.75.75 0 0 1 .745-.755Z"],h:16,w:16}},Fo={16:{p:["M2.75 1.5a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h3.5a.75.75 0 0 1 0 1.5h-3.5A1.75 1.75 0 0 1 1 13.25V1.75C1 .784 1.784 0 2.75 0h8a1.75 1.75 0 0 1 1.508.862.75.75 0 1 1-1.289.768.25.25 0 0 0-.219-.13h-8Z","M8 7a3.999 3.999 0 0 1 7.605-1.733 4 4 0 0 1-1.115 4.863l.995 4.973a.75.75 0 0 1-.991.852l-2.409-.876a.248.248 0 0 0-.17 0l-2.409.876a.75.75 0 0 1-.991-.852l.994-4.973A3.994 3.994 0 0 1 8 7Zm4-2.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm0 6.5c-.373 0-.745-.051-1.104-.154l-.649 3.243 1.155-.42c.386-.14.81-.14 1.196 0l1.155.42-.649-3.243A4.004 4.004 0 0 1 12 11Z"],h:16,w:16}},No={16:{p:["M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2a.75.75 0 0 1-1.5 0Zm-4 6C0 6.784.784 6 1.75 6h1.5C4.216 6 5 6.784 5 7.75v2.5A1.75 1.75 0 0 1 3.25 12h-1.5A1.75 1.75 0 0 1 0 10.25ZM6.75 6h1.5a.75.75 0 0 1 .75.75v3.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-3h-.75a.75.75 0 0 1 0-1.5Zm-5 1.5a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm9.75-5.938V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z","M0 13.75C0 12.784.784 12 1.75 12h3c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75h-3A1.75 1.75 0 0 1 0 17.75Zm1.75-.25a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM9 12a.75.75 0 0 0 0 1.5h1.5V18H9a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H12v-5.25a.75.75 0 0 0-.75-.75H9Z"],h:24,w:24}},Oo={16:{p:["M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z","M4.53 12.24a.75.75 0 0 1-.039 1.06l-2.639 2.45 2.64 2.45a.75.75 0 1 1-1.022 1.1l-3.23-3a.75.75 0 0 1 0-1.1l3.23-3a.75.75 0 0 1 1.06.04Zm3.979 1.06a.75.75 0 1 1 1.02-1.1l3.231 3a.75.75 0 0 1 0 1.1l-3.23 3a.75.75 0 1 1-1.021-1.1l2.639-2.45-2.64-2.45Z"],h:24,w:24}},Lo={16:{p:["M1 1.75C1 .784 1.784 0 2.75 0h7.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073ZM8 3.25a.75.75 0 0 1 .75.75v1.5h1.5a.75.75 0 0 1 0 1.5h-1.5v1.5a.75.75 0 0 1-1.5 0V7h-1.5a.75.75 0 0 1 0-1.5h1.5V4A.75.75 0 0 1 8 3.25Zm-3 8a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M12.5 6.75a.75.75 0 0 0-1.5 0V9H8.75a.75.75 0 0 0 0 1.5H11v2.25a.75.75 0 0 0 1.5 0V10.5h2.25a.75.75 0 0 0 0-1.5H12.5V6.75ZM8.75 16a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6Z","M5 1h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-.5 2v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V7.018a.5.5 0 0 0-.146-.354l-4.018-4.018a.5.5 0 0 0-.354-.146H5a.5.5 0 0 0-.5.5Z"],h:24,w:24}},Bo={16:{p:["M0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H7.5c-.55 0-1.07-.26-1.4-.7l-.9-1.2a.25.25 0 0 0-.2-.1Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V7.687a.25.25 0 0 0-.25-.25h-8.471a1.75 1.75 0 0 1-1.447-.765L8.928 4.61a.252.252 0 0 0-.208-.11Z"],h:24,w:24}},Ho={16:{p:["M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"],h:24,w:24}},Uo={16:{p:["M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"],h:16,w:16}},Zo={16:{p:["M0 2.75C0 1.784.784 1 1.75 1H5a1.75 1.75 0 0 1 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H5.375a.75.75 0 0 1 0-1.5h8.875a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H7.5a1.75 1.75 0 0 1-1.4-.7l-.9-1.2a.25.25 0 0 0-.2-.1H1.75a.25.25 0 0 0-.25.25v3a.75.75 0 0 1-1.5 0v-3Z","M1.5 12.237a2.25 2.25 0 0 1 2.262-2.249L4 9.989v1.938c0 .218.26.331.42.183l2.883-2.677a.25.25 0 0 0 0-.366L4.42 6.39a.25.25 0 0 0-.42.183v1.916l-.229-.001A3.75 3.75 0 0 0 0 12.237v1.013a.75.75 0 0 0 1.5 0v-1.013Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.971a1.75 1.75 0 0 1 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H4.75a.75.75 0 0 1 0-1.5h15.5a.25.25 0 0 0 .25-.25V7.688a.25.25 0 0 0-.25-.25h-8.471a1.751 1.751 0 0 1-1.447-.766L8.928 4.609a.252.252 0 0 0-.207-.109H3.75a.25.25 0 0 0-.25.25v3.5a.75.75 0 0 1-1.5 0v-3.5Z","m9.308 12.5-2.104-2.236a.75.75 0 1 1 1.092-1.028l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.75.75 0 1 1-1.092-1.028L9.308 14H4.09a2.59 2.59 0 0 0-2.59 2.59v3.16a.75.75 0 0 1-1.5 0v-3.16a4.09 4.09 0 0 1 4.09-4.09h5.218Z"],h:24,w:24}},$o={24:{p:["M21.75 21.5H2.25A1.75 1.75 0 0 1 .5 19.75V4.25c0-.966.784-1.75 1.75-1.75h19.5c.966 0 1.75.784 1.75 1.75v15.5a1.75 1.75 0 0 1-1.75 1.75ZM2.25 4a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.749 1.749 0 0 1 2.506-.032L22 16.44V4.25a.25.25 0 0 0-.25-.25ZM22 19.75v-1.19l-6.555-6.554a.248.248 0 0 0-.18-.073.247.247 0 0 0-.178.077L7.497 20H21.75a.25.25 0 0 0 .25-.25ZM10.5 9.25a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0Zm-1.5 0a1.75 1.75 0 1 0-3.501.001A1.75 1.75 0 0 0 9 9.25Z"],h:24,w:24}},Wo={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073H3.75a.25.25 0 0 0-.25.25v6.5a.75.75 0 0 1-1.5 0v-6.5Z","m5.427 15.573 3.146-3.146a.25.25 0 0 0 0-.354L5.427 8.927A.25.25 0 0 0 5 9.104V11.5H.75a.75.75 0 0 0 0 1.5H5v2.396c0 .223.27.335.427.177Z"],h:16,w:16}},Vo={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073Zm4.5 6h2.242a.75.75 0 0 1 0 1.5h-2.24l-2.254.015a.75.75 0 0 1-.01-1.5Z"],h:16,w:16}},qo={16:{p:["M0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm9.42 9.36 2.883-2.677a.25.25 0 0 0 0-.366L9.42 6.39a.249.249 0 0 0-.42.183V8.5H4.75a.75.75 0 0 0 0 1.5H9v1.927c0 .218.26.331.42.183Z"],h:16,w:16},24:{p:["M2 4.75C2 3.784 2.784 3 3.75 3h4.965a1.75 1.75 0 0 1 1.456.78l1.406 2.109a.25.25 0 0 0 .208.111h8.465c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Zm12.78 4.97a.749.749 0 0 0-1.275.326.749.749 0 0 0 .215.734l1.72 1.72H6.75a.75.75 0 0 0 0 1.5h8.69l-1.72 1.72a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215l3-3a.75.75 0 0 0 0-1.06Z"],h:24,w:24}},Go={16:{p:["M2 1.75C2 .784 2.784 0 3.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 12.25 15h-7a.75.75 0 0 1 0-1.5h7a.25.25 0 0 0 .25-.25V6H9.75A1.75 1.75 0 0 1 8 4.25V1.5H3.75a.25.25 0 0 0-.25.25V4.5a.75.75 0 0 1-1.5 0Zm-.5 10.487v1.013a.75.75 0 0 1-1.5 0v-1.012a3.748 3.748 0 0 1 3.77-3.749L4 8.49V6.573a.25.25 0 0 1 .42-.183l2.883 2.678a.25.25 0 0 1 0 .366L4.42 12.111a.25.25 0 0 1-.42-.183V9.99l-.238-.003a2.25 2.25 0 0 0-2.262 2.25Zm8-10.675V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"],h:16,w:16},24:{p:["M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm6.308 11.5-2.104-2.236a.751.751 0 0 1 .369-1.255.749.749 0 0 1 .723.227l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.749.749 0 0 1-1.275-.293.751.751 0 0 1 .183-.735L9.308 16H4.09a2.59 2.59 0 0 0-2.59 2.59v3.16a.75.75 0 0 1-1.5 0v-3.16a4.09 4.09 0 0 1 4.09-4.09ZM15 2.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z"],h:24,w:24}},zo={16:{p:["M3.5 1.75v11.5c0 .09.048.173.126.217a.75.75 0 0 1-.752 1.298A1.748 1.748 0 0 1 2 13.25V1.75C2 .784 2.784 0 3.75 0h5.586c.464 0 .909.185 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 12.25 15h-.5a.75.75 0 0 1 0-1.5h.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177L9.513 1.573a.25.25 0 0 0-.177-.073H7.25a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5h-3a.25.25 0 0 0-.25.25Zm3.75 8.75h.5c.966 0 1.75.784 1.75 1.75v3a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-3c0-.966.784-1.75 1.75-1.75ZM6 5.25a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 6 5.25Zm.75 2.25h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM8 6.75A.75.75 0 0 1 8.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 8 6.75ZM8.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM8 9.75A.75.75 0 0 1 8.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 8 9.75Zm-1 2.5v2.25h1v-2.25a.25.25 0 0 0-.25-.25h-.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M5 2.5a.5.5 0 0 0-.5.5v18a.5.5 0 0 0 .5.5h1.75a.75.75 0 0 1 0 1.5H5a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2h-2.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V7.018a.5.5 0 0 0-.146-.354l-4.018-4.018a.5.5 0 0 0-.354-.146H5Z","M11.5 15.75a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm.75-3.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1Zm-.75-2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75ZM12.25 6a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1Zm-.75-2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75ZM9.75 13.5a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1ZM9 11.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm.75-3.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5h-1ZM9 5.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 9 5.25ZM11 17h1a2 2 0 0 1 2 2v4.25a.75.75 0 0 1-.75.75h-3.5a.75.75 0 0 1-.75-.75V19a2 2 0 0 1 2-2Zm-.5 2v3.5h2V19a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5Z"],h:24,w:24}},jo={16:{p:["M.75 3h14.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5ZM3 7.75A.75.75 0 0 1 3.75 7h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 7.75Zm3 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M2.75 6a.75.75 0 0 0 0 1.5h18.5a.75.75 0 0 0 0-1.5H2.75ZM6 11.75a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H6.75a.75.75 0 0 1-.75-.75Zm4 4.938a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Ko={16:{p:["M14.384 4.57a.752.752 0 0 0 1.061 0 .752.752 0 0 0 0-1.061l-.884-.884.883-.884A.75.75 0 0 0 14.384.68l-.884.884-.884-.884a.75.75 0 0 0-1.06 1.061l.883.884-.883.884a.75.75 0 0 0 1.06 1.061l.884-.884.884.884ZM.75 3a.75.75 0 0 0 0 1.5H9A.75.75 0 0 0 9 3H.75ZM3 7.75A.75.75 0 0 1 3.75 7h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 7.75Zm3 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M21.587 9.273a.75.75 0 1 0 1.061-1.061l-1.591-1.591 1.591-1.591a.749.749 0 1 0-1.061-1.06l-1.591 1.591-1.591-1.591a.749.749 0 1 0-1.06 1.06l1.591 1.591-1.591 1.591a.75.75 0 0 0 1.06 1.061l1.591-1.591 1.591 1.591ZM1.75 6a.75.75 0 0 0 0 1.5H14.5a.75.75 0 0 0 0-1.5H1.75ZM5 11.75a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1-.75-.75Zm4 4.938a.75.75 0 0 1 .75-.75h2.5a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Yo={16:{p:["M10 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","M4 9.25h-.75a.75.75 0 0 1 0-1.5H4v-1.5h-.75a.75.75 0 0 1 0-1.5H4V3.5a1 1 0 0 1 1-1h7.5a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1ZM5.5 4v.793a.75.75 0 0 1 0 1.414v1.586a.75.75 0 0 1 0 1.414V10H12V4Z","M12.75 14.25V14h-9.5v.25a.75.75 0 0 1-1.5 0V14A1.75 1.75 0 0 1 0 12.25V1.75C0 .784.784 0 1.75 0h12.5C15.217 0 16 .784 16 1.75v10.5A1.75 1.75 0 0 1 14.25 14v.25a.75.75 0 0 1-1.5 0ZM1.75 1.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16}},Xo={16:{p:["M9.533.753V.752c.217 2.385 1.463 3.626 2.653 4.81C13.37 6.74 14.498 7.863 14.498 10c0 3.5-3 6-6.5 6S1.5 13.512 1.5 10c0-1.298.536-2.56 1.425-3.286.376-.308.862 0 1.035.454C4.46 8.487 5.581 8.419 6 8c.282-.282.341-.811-.003-1.5C4.34 3.187 7.035.75 8.77.146c.39-.137.726.194.763.607ZM7.998 14.5c2.832 0 5-1.98 5-4.5 0-1.463-.68-2.19-1.879-3.383l-.036-.037c-1.013-1.008-2.3-2.29-2.834-4.434-.322.256-.63.579-.864.953-.432.696-.621 1.58-.046 2.73.473.947.67 2.284-.278 3.232-.61.61-1.545.84-2.403.633a2.79 2.79 0 0 1-1.436-.874A3.198 3.198 0 0 0 3 10c0 2.53 2.164 4.5 4.998 4.5Z"],h:16,w:16},24:{p:["M14.265 1.627c0 3.545 1.869 5.327 3.479 7.021 1.54 1.62 3.006 3.163 3.006 6.102 0 4.812-3.753 8.25-8.565 8.25-4.813 0-8.935-3.421-8.935-8.25 0-2.039.962-4.011 2.509-4.899.305-.175.672.007.803.334C7.563 12.684 8.797 12.64 9.437 12c.388-.387.47-1.116-.004-2.062-2.405-4.812 1.863-8.279 4.2-8.854.336-.082.615.198.632.543ZM12.185 21.5c4.059 0 7.065-2.84 7.065-6.75 0-2.337-1.093-3.489-2.678-5.158l-.021-.023c-1.44-1.517-3.139-3.351-3.649-6.557a6.148 6.148 0 0 0-1.911 1.76c-.787 1.144-1.147 2.633-.216 4.495.603 1.205.777 2.74-.277 3.794-.657.657-1.762 1.1-2.956.586-.752-.324-1.353-.955-1.838-1.79-.567.706-.954 1.74-.954 2.893 0 3.847 3.288 6.75 7.435 6.75Z"],h:24,w:24}},Qo={16:{p:["M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"],h:16,w:16},24:{p:["M12 15c.199 0 .389.079.53.22l3.25 3.25a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 16.81l-2.72 2.72a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25A.749.749 0 0 1 12 15Z","M12.53 8.78a.75.75 0 0 1-1.06 0L8.22 5.53a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L12 7.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734ZM12 15.75a.75.75 0 0 1 .75.75v5.75a.75.75 0 0 1-1.5 0V16.5a.75.75 0 0 1 .75-.75Z","M12 8.5a.75.75 0 0 1-.75-.75v-6a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-.75.75ZM2.75 12a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Jo={16:{p:["m8.177 14.323 2.896-2.896a.25.25 0 0 0-.177-.427H8.75V7.764a.75.75 0 1 0-1.5 0V11H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0ZM2.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75ZM8.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"],h:16,w:16},24:{p:["M12 19a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 17.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 19Z","M12 18a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v7.5A.75.75 0 0 1 12 18ZM2.75 6a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 2.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 6.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},ea={16:{p:["M7.823 1.677 4.927 4.573A.25.25 0 0 0 5.104 5H7.25v3.236a.75.75 0 1 0 1.5 0V5h2.146a.25.25 0 0 0 .177-.427L8.177 1.677a.25.25 0 0 0-.354 0ZM13.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Zm-3.75.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM7.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM4 11.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM1.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z"],h:16,w:16},24:{p:["M11.47 5.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 6.81 9.28 9.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z","M12 5.5a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0v-8A.75.75 0 0 1 12 5.5ZM2.75 18a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},ta={16:{p:["M8 0a8.2 8.2 0 0 1 .701.031C9.444.095 9.99.645 10.16 1.29l.288 1.107c.018.066.079.158.212.224.231.114.454.243.668.386.123.082.233.09.299.071l1.103-.303c.644-.176 1.392.021 1.82.63.27.385.506.792.704 1.218.315.675.111 1.422-.364 1.891l-.814.806c-.049.048-.098.147-.088.294.016.257.016.515 0 .772-.01.147.038.246.088.294l.814.806c.475.469.679 1.216.364 1.891a7.977 7.977 0 0 1-.704 1.217c-.428.61-1.176.807-1.82.63l-1.102-.302c-.067-.019-.177-.011-.3.071a5.909 5.909 0 0 1-.668.386c-.133.066-.194.158-.211.224l-.29 1.106c-.168.646-.715 1.196-1.458 1.26a8.006 8.006 0 0 1-1.402 0c-.743-.064-1.289-.614-1.458-1.26l-.289-1.106c-.018-.066-.079-.158-.212-.224a5.738 5.738 0 0 1-.668-.386c-.123-.082-.233-.09-.299-.071l-1.103.303c-.644.176-1.392-.021-1.82-.63a8.12 8.12 0 0 1-.704-1.218c-.315-.675-.111-1.422.363-1.891l.815-.806c.05-.048.098-.147.088-.294a6.214 6.214 0 0 1 0-.772c.01-.147-.038-.246-.088-.294l-.815-.806C.635 6.045.431 5.298.746 4.623a7.92 7.92 0 0 1 .704-1.217c.428-.61 1.176-.807 1.82-.63l1.102.302c.067.019.177.011.3-.071.214-.143.437-.272.668-.386.133-.066.194-.158.211-.224l.29-1.106C6.009.645 6.556.095 7.299.03 7.53.01 7.764 0 8 0Zm-.571 1.525c-.036.003-.108.036-.137.146l-.289 1.105c-.147.561-.549.967-.998 1.189-.173.086-.34.183-.5.29-.417.278-.97.423-1.529.27l-1.103-.303c-.109-.03-.175.016-.195.045-.22.312-.412.644-.573.99-.014.031-.021.11.059.19l.815.806c.411.406.562.957.53 1.456a4.709 4.709 0 0 0 0 .582c.032.499-.119 1.05-.53 1.456l-.815.806c-.081.08-.073.159-.059.19.162.346.353.677.573.989.02.03.085.076.195.046l1.102-.303c.56-.153 1.113-.008 1.53.27.161.107.328.204.501.29.447.222.85.629.997 1.189l.289 1.105c.029.109.101.143.137.146a6.6 6.6 0 0 0 1.142 0c.036-.003.108-.036.137-.146l.289-1.105c.147-.561.549-.967.998-1.189.173-.086.34-.183.5-.29.417-.278.97-.423 1.529-.27l1.103.303c.109.029.175-.016.195-.045.22-.313.411-.644.573-.99.014-.031.021-.11-.059-.19l-.815-.806c-.411-.406-.562-.957-.53-1.456a4.709 4.709 0 0 0 0-.582c-.032-.499.119-1.05.53-1.456l.815-.806c.081-.08.073-.159.059-.19a6.464 6.464 0 0 0-.573-.989c-.02-.03-.085-.076-.195-.046l-1.102.303c-.56.153-1.113.008-1.53-.27a4.44 4.44 0 0 0-.501-.29c-.447-.222-.85-.629-.997-1.189l-.289-1.105c-.029-.11-.101-.143-.137-.146a6.6 6.6 0 0 0-1.142 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z"],h:16,w:16},24:{p:["M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z","M12 1c.266 0 .532.009.797.028.763.055 1.345.617 1.512 1.304l.352 1.45c.019.078.09.171.225.221.247.089.49.19.728.302.13.061.246.044.315.002l1.275-.776c.603-.368 1.411-.353 1.99.147.402.349.78.726 1.128 1.129.501.578.515 1.386.147 1.99l-.776 1.274c-.042.069-.058.185.002.315.112.238.213.481.303.728.048.135.142.205.22.225l1.45.352c.687.167 1.249.749 1.303 1.512.038.531.038 1.063 0 1.594-.054.763-.616 1.345-1.303 1.512l-1.45.352c-.078.019-.171.09-.221.225-.089.248-.19.491-.302.728-.061.13-.044.246-.002.315l.776 1.275c.368.603.353 1.411-.147 1.99-.349.402-.726.78-1.129 1.128-.578.501-1.386.515-1.99.147l-1.274-.776c-.069-.042-.185-.058-.314.002a8.606 8.606 0 0 1-.729.303c-.135.048-.205.142-.225.22l-.352 1.45c-.167.687-.749 1.249-1.512 1.303-.531.038-1.063.038-1.594 0-.763-.054-1.345-.616-1.512-1.303l-.352-1.45c-.019-.078-.09-.171-.225-.221a8.138 8.138 0 0 1-.728-.302c-.13-.061-.246-.044-.315-.002l-1.275.776c-.603.368-1.411.353-1.99-.147-.402-.349-.78-.726-1.128-1.129-.501-.578-.515-1.386-.147-1.99l.776-1.274c.042-.069.058-.185-.002-.314a8.606 8.606 0 0 1-.303-.729c-.048-.135-.142-.205-.22-.225l-1.45-.352c-.687-.167-1.249-.749-1.304-1.512a11.158 11.158 0 0 1 0-1.594c.055-.763.617-1.345 1.304-1.512l1.45-.352c.078-.019.171-.09.221-.225.089-.248.19-.491.302-.728.061-.13.044-.246.002-.315l-.776-1.275c-.368-.603-.353-1.411.147-1.99.349-.402.726-.78 1.129-1.128.578-.501 1.386-.515 1.99-.147l1.274.776c.069.042.185.058.315-.002.238-.112.481-.213.728-.303.135-.048.205-.142.225-.22l.352-1.45c.167-.687.749-1.249 1.512-1.304C11.466 1.01 11.732 1 12 1Zm-.69 1.525c-.055.004-.135.05-.161.161l-.353 1.45a1.832 1.832 0 0 1-1.172 1.277 7.147 7.147 0 0 0-.6.249 1.833 1.833 0 0 1-1.734-.074l-1.274-.776c-.098-.06-.186-.036-.228 0a9.774 9.774 0 0 0-.976.976c-.036.042-.06.131 0 .228l.776 1.274c.314.529.342 1.18.074 1.734a7.147 7.147 0 0 0-.249.6 1.831 1.831 0 0 1-1.278 1.173l-1.45.351c-.11.027-.156.107-.16.162a9.63 9.63 0 0 0 0 1.38c.004.055.05.135.161.161l1.45.353a1.832 1.832 0 0 1 1.277 1.172c.074.204.157.404.249.6.268.553.24 1.204-.074 1.733l-.776 1.275c-.06.098-.036.186 0 .228.301.348.628.675.976.976.042.036.131.06.228 0l1.274-.776a1.83 1.83 0 0 1 1.734-.075c.196.093.396.176.6.25a1.831 1.831 0 0 1 1.173 1.278l.351 1.45c.027.11.107.156.162.16a9.63 9.63 0 0 0 1.38 0c.055-.004.135-.05.161-.161l.353-1.45a1.834 1.834 0 0 1 1.172-1.278 6.82 6.82 0 0 0 .6-.248 1.831 1.831 0 0 1 1.733.074l1.275.776c.098.06.186.036.228 0 .348-.301.675-.628.976-.976.036-.042.06-.131 0-.228l-.776-1.275a1.834 1.834 0 0 1-.075-1.733c.093-.196.176-.396.25-.6a1.831 1.831 0 0 1 1.278-1.173l1.45-.351c.11-.027.156-.107.16-.162a9.63 9.63 0 0 0 0-1.38c-.004-.055-.05-.135-.161-.161l-1.45-.353c-.626-.152-1.08-.625-1.278-1.172a6.576 6.576 0 0 0-.248-.6 1.833 1.833 0 0 1 .074-1.734l.776-1.274c.06-.098.036-.186 0-.228a9.774 9.774 0 0 0-.976-.976c-.042-.036-.131-.06-.228 0l-1.275.776a1.831 1.831 0 0 1-1.733.074 6.88 6.88 0 0 0-.6-.249 1.835 1.835 0 0 1-1.173-1.278l-.351-1.45c-.027-.11-.107-.156-.162-.16a9.63 9.63 0 0 0-1.38 0Z"],h:24,w:24}},na={16:{p:["M2 2.75A2.75 2.75 0 0 1 4.75 0c.983 0 1.873.42 2.57 1.232.268.318.497.668.68 1.042.183-.375.411-.725.68-1.044C9.376.42 10.266 0 11.25 0a2.75 2.75 0 0 1 2.45 4h.55c.966 0 1.75.784 1.75 1.75v2c0 .698-.409 1.301-1 1.582v4.918A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V9.332C.409 9.05 0 8.448 0 7.75v-2C0 4.784.784 4 1.75 4h.55c-.192-.375-.3-.8-.3-1.25ZM7.25 9.5H2.5v4.75c0 .138.112.25.25.25h4.5Zm1.5 0v5h4.5a.25.25 0 0 0 .25-.25V9.5Zm0-4V8h5.5a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25Zm-7 0a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h5.5V5.5h-5.5Zm3-4a1.25 1.25 0 0 0 0 2.5h2.309c-.233-.818-.542-1.401-.878-1.793-.43-.502-.915-.707-1.431-.707ZM8.941 4h2.309a1.25 1.25 0 0 0 0-2.5c-.516 0-1 .205-1.43.707-.337.392-.646.975-.879 1.793Z"],h:16,w:16},24:{p:["M3.75 3.75A3.75 3.75 0 0 1 7.5 0c1.455 0 3.436.901 4.5 3.11C13.064.901 15.044 0 16.5 0a3.75 3.75 0 0 1 3 6h1.75c.966 0 1.75.784 1.75 1.75v2.5c0 .698-.409 1.301-1 1.582v8.418A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25v-8.418c-.591-.282-1-.884-1-1.582v-2.5C1 6.784 1.784 6 2.75 6H4.5a3.733 3.733 0 0 1-.75-2.25ZM20.5 12h-7.75v8.5h7.5a.25.25 0 0 0 .25-.25Zm-9.25 8.5V12H3.5v8.25c0 .138.112.25.25.25Zm10-10a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25h-8.5v3Zm-18.5 0h8.5v-3h-8.5a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25Zm16-6.75A2.25 2.25 0 0 0 16.5 1.5c-1.15 0-3.433 1.007-3.72 4.5h3.72a2.25 2.25 0 0 0 2.25-2.25ZM11.22 6c-.287-3.493-2.57-4.5-3.72-4.5a2.25 2.25 0 1 0 0 4.5Z"],h:24,w:24}},ra={16:{p:["M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"],h:16,w:16},24:{p:["M15 4.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM2.5 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 6.5Z","M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z","M17.5 8.75v-1H19v1a3.75 3.75 0 0 1-3.75 3.75h-7a1.75 1.75 0 0 0-1.75 1.75H5A3.25 3.25 0 0 1 8.25 11h7a2.25 2.25 0 0 0 2.25-2.25Z"],h:24,w:24}},sa={16:{p:["M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.75a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"],h:16,w:16},24:{p:["M16.944 11h4.306a.75.75 0 0 1 0 1.5h-4.306a5.001 5.001 0 0 1-9.888 0H2.75a.75.75 0 0 1 0-1.5h4.306a5.001 5.001 0 0 1 9.888 0Zm-1.444.75a3.5 3.5 0 1 0-7 0 3.5 3.5 0 0 0 7 0Z"],h:24,w:24}},ia={16:{p:["M9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM6 12v-1.646a.25.25 0 0 1 .427-.177l2.396 2.396a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 6 15.146V13.5H5A2.5 2.5 0 0 1 2.5 11V5.372a2.25 2.25 0 1 1 1.5 0V11a1 1 0 0 0 1 1ZM4 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM12.75 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"],h:16,w:16},24:{p:["M16.5 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z","M13.905 1.72a.75.75 0 0 1 0 1.06L12.685 4h4.065a3.75 3.75 0 0 1 3.75 3.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM7.5 4.75a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0ZM4.25 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 4.25 6.5Z","M10.095 22.28a.75.75 0 0 1 0-1.06l1.22-1.22H7.25a3.75 3.75 0 0 1-3.75-3.75V7.5a.75.75 0 0 1 1.5 0v8.75a2.25 2.25 0 0 0 2.25 2.25h4.064l-1.22-1.22a.748.748 0 0 1 .332-1.265.75.75 0 0 1 .729.205l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0Z"],h:24,w:24}},oa={16:{p:["M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"],h:16,w:16},24:{p:["M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z","M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z","M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"],h:24,w:24}},aa={16:{p:["M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16},24:{p:["M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"],h:24,w:24}},la={16:{p:["M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"],h:16,w:16},24:{p:["M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z","M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},ca={16:{p:["M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"],h:16,w:16},24:{p:["M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"],h:24,w:24}},ua={16:{p:["M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"],h:16,w:16},24:{p:["M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z"],h:24,w:24}},ha={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1Zm3.241 10.5v-.001c-.1-2.708-.992-4.904-1.89-6.452a13.919 13.919 0 0 0-1.304-1.88L12 3.11l-.047.059c-.354.425-.828 1.06-1.304 1.88-.898 1.547-1.79 3.743-1.89 6.451Zm-12.728 0h4.745c.1-3.037 1.1-5.49 2.093-7.204.39-.672.78-1.233 1.119-1.673C6.11 3.329 2.746 7 2.513 11.5Zm18.974 0C21.254 7 17.89 3.329 13.53 2.623c.339.44.729 1.001 1.119 1.673.993 1.714 1.993 4.167 2.093 7.204ZM8.787 13c.182 2.478 1.02 4.5 1.862 5.953.382.661.818 1.29 1.304 1.88l.047.057.047-.059c.354-.425.828-1.06 1.304-1.88.842-1.451 1.679-3.471 1.862-5.951Zm-1.504 0H2.552a9.505 9.505 0 0 0 7.918 8.377 15.773 15.773 0 0 1-1.119-1.673C8.413 18.085 7.47 15.807 7.283 13Zm9.434 0c-.186 2.807-1.13 5.085-2.068 6.704-.39.672-.78 1.233-1.118 1.673A9.506 9.506 0 0 0 21.447 13Z"],h:24,w:24}},pa={16:{p:["M13.637 2.363h-.001l1.676.335c.09.018.164.084.19.173a.25.25 0 0 1-.062.249l-1.373 1.374a.876.876 0 0 1-.619.256H12.31L9.45 7.611A1.5 1.5 0 1 1 6.5 8a1.501 1.501 0 0 1 1.889-1.449l2.861-2.862V2.552c0-.232.092-.455.256-.619L12.88.559a.25.25 0 0 1 .249-.062c.089.026.155.1.173.19Z","M2 8a6 6 0 1 0 11.769-1.656.751.751 0 1 1 1.442-.413 7.502 7.502 0 0 1-12.513 7.371A7.501 7.501 0 0 1 10.069.789a.75.75 0 0 1-.413 1.442A6.001 6.001 0 0 0 2 8Z","M5 8a3.002 3.002 0 0 0 4.699 2.476 3 3 0 0 0 1.28-2.827.748.748 0 0 1 1.045-.782.75.75 0 0 1 .445.61A4.5 4.5 0 1 1 8.516 3.53a.75.75 0 1 1-.17 1.49A3 3 0 0 0 5 8Z"],h:16,w:16},24:{p:["M20.172 6.75h-1.861l-4.566 4.564a1.874 1.874 0 1 1-1.06-1.06l4.565-4.565V3.828a.94.94 0 0 1 .275-.664l1.73-1.73a.249.249 0 0 1 .25-.063c.089.026.155.1.173.191l.46 2.301 2.3.46c.09.018.164.084.19.173a.25.25 0 0 1-.062.249l-1.731 1.73a.937.937 0 0 1-.663.275Z","M2.625 12A9.375 9.375 0 0 0 12 21.375 9.375 9.375 0 0 0 21.375 12c0-.898-.126-1.766-.361-2.587A.75.75 0 0 1 22.455 9c.274.954.42 1.96.42 3 0 6.006-4.869 10.875-10.875 10.875S1.125 18.006 1.125 12 5.994 1.125 12 1.125c1.015-.001 2.024.14 3 .419a.75.75 0 1 1-.413 1.442A9.39 9.39 0 0 0 12 2.625 9.375 9.375 0 0 0 2.625 12Z","M7.125 12a4.874 4.874 0 1 0 9.717-.569.748.748 0 0 1 1.047-.798c.251.112.42.351.442.625a6.373 6.373 0 0 1-10.836 5.253 6.376 6.376 0 0 1 5.236-10.844.75.75 0 1 1-.17 1.49A4.876 4.876 0 0 0 7.125 12Z"],h:24,w:24}},da={16:{p:["M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M9 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm7-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm7-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm6 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:24,w:24}},ma={16:{p:["M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M2.5 2.75a.75.75 0 0 0-1.5 0v18.5c0 .414.336.75.75.75H20a.75.75 0 0 0 0-1.5H2.5V2.75Z","M22.28 7.78a.75.75 0 0 0-1.06-1.06l-5.72 5.72-3.72-3.72a.75.75 0 0 0-1.06 0l-6 6a.75.75 0 1 0 1.06 1.06l5.47-5.47 3.72 3.72a.75.75 0 0 0 1.06 0l6.25-6.25Z"],h:24,w:24}},fa={16:{p:["M6.368 1.01a.75.75 0 0 1 .623.859L6.57 4.5h3.98l.46-2.868a.75.75 0 0 1 1.48.237L12.07 4.5h2.18a.75.75 0 0 1 0 1.5h-2.42l-.64 4h2.56a.75.75 0 0 1 0 1.5h-2.8l-.46 2.869a.75.75 0 0 1-1.48-.237l.42-2.632H5.45l-.46 2.869a.75.75 0 0 1-1.48-.237l.42-2.632H1.75a.75.75 0 0 1 0-1.5h2.42l.64-4H2.25a.75.75 0 0 1 0-1.5h2.8l.46-2.868a.75.75 0 0 1 .858-.622ZM9.67 10l.64-4H6.33l-.64 4Z"],h:16,w:16},24:{p:["M9.618 1.76a.75.75 0 0 1 .623.859L9.46 7.5h6.48l.82-5.118a.75.75 0 0 1 1.48.237L17.46 7.5h3.79a.75.75 0 0 1 0 1.5h-4.03l-.96 6h3.99a.75.75 0 0 1 0 1.5h-4.23l-.78 4.869a.75.75 0 0 1-1.48-.237l.74-4.632H8.02l-.78 4.869a.75.75 0 0 1-1.48-.237L6.5 16.5H2.745a.75.75 0 0 1 0-1.5H6.74l.96-6H3.75a.75.75 0 0 1 0-1.5h4.19l.82-5.118a.75.75 0 0 1 .858-.622ZM14.741 15l.96-6H9.22l-.96 6Z"],h:24,w:24}},ga={16:{p:["M3.75 2a.75.75 0 0 1 .75.75V7h7V2.75a.75.75 0 0 1 1.5 0v10.5a.75.75 0 0 1-1.5 0V8.5h-7v4.75a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 3.75 2Z"],h:16,w:16},24:{p:["M6.25 4a.75.75 0 0 1 .75.75V11h10V4.75a.75.75 0 0 1 1.5 0v14.5a.75.75 0 0 1-1.5 0V12.5H7v6.75a.75.75 0 0 1-1.5 0V4.75A.75.75 0 0 1 6.25 4Z"],h:24,w:24}},ya={16:{p:["m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"],h:16,w:16},24:{p:["m12 20.703.343.667a.748.748 0 0 1-.686 0l-.003-.002-.007-.003-.025-.013a31.138 31.138 0 0 1-5.233-3.576C3.8 15.573 1 12.332 1 8.514v-.001C1 5.053 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262a31.148 31.148 0 0 1-5.233 3.576l-.025.013-.007.003-.002.001ZM6.736 4C4.657 4 2.5 5.88 2.5 8.514c0 3.107 2.324 5.96 4.861 8.12a29.655 29.655 0 0 0 4.566 3.175l.073.041.073-.04c.271-.153.661-.38 1.13-.674.94-.588 2.19-1.441 3.436-2.502 2.537-2.16 4.861-5.013 4.861-8.12C21.5 5.88 19.343 4 17.264 4c-2.106 0-3.801 1.389-4.553 3.643a.751.751 0 0 1-1.422 0C10.537 5.389 8.841 4 6.736 4Z"],h:24,w:24}},wa={16:{p:["M7.655 14.916v-.001h-.002l-.006-.003-.018-.01a22.066 22.066 0 0 1-3.744-2.584C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.044 5.231-3.886 6.818a22.094 22.094 0 0 1-3.433 2.414 7.152 7.152 0 0 1-.31.17l-.018.01-.008.004a.75.75 0 0 1-.69 0Z"],h:16,w:16},24:{p:["M14 20.408c-.492.308-.903.546-1.192.709-.153.086-.308.17-.463.252h-.002a.75.75 0 0 1-.686 0 16.709 16.709 0 0 1-.465-.252 31.147 31.147 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31.146 31.146 0 0 1 14 20.408Z"],h:24,w:24}},ba={16:{p:["m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"],h:16,w:16},24:{p:["M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z","M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z"],h:24,w:24}},Ca={16:{p:["M6.906.664a1.749 1.749 0 0 1 2.187 0l5.25 4.2c.415.332.657.835.657 1.367v7.019A1.75 1.75 0 0 1 13.25 15h-3.5a.75.75 0 0 1-.75-.75V9H7v5.25a.75.75 0 0 1-.75.75h-3.5A1.75 1.75 0 0 1 1 13.25V6.23c0-.531.242-1.034.657-1.366l5.25-4.2Zm1.25 1.171a.25.25 0 0 0-.312 0l-5.25 4.2a.25.25 0 0 0-.094.196v7.019c0 .138.112.25.25.25H5.5V8.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v5.25h2.75a.25.25 0 0 0 .25-.25V6.23a.25.25 0 0 0-.094-.195Z"],h:16,w:16},24:{p:["M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"],h:24,w:24}},va={24:{p:["M12.97 2.59a1.5 1.5 0 0 0-1.94 0l-7.5 6.363A1.5 1.5 0 0 0 3 10.097V19.5A1.5 1.5 0 0 0 4.5 21h4.75a.75.75 0 0 0 .75-.75V14h4v6.25c0 .414.336.75.75.75h4.75a1.5 1.5 0 0 0 1.5-1.5v-9.403a1.5 1.5 0 0 0-.53-1.144l-7.5-6.363Z"],h:24,w:24}},Sa={16:{p:["M0 7.75A.75.75 0 0 1 .75 7h14.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 7.75Z"],h:16,w:16},24:{p:["M2 12.75a.75.75 0 0 1 .75-.75h18.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Ea={16:{p:["M2.75 1h10.5a.75.75 0 0 1 0 1.5h-.75v1.25a4.75 4.75 0 0 1-1.9 3.8l-.333.25a.25.25 0 0 0 0 .4l.333.25a4.75 4.75 0 0 1 1.9 3.8v1.25h.75a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5h.75v-1.25a4.75 4.75 0 0 1 1.9-3.8l.333-.25a.25.25 0 0 0 0-.4L5.4 7.55a4.75 4.75 0 0 1-1.9-3.8V2.5h-.75a.75.75 0 0 1 0-1.5ZM11 2.5H5v1.25c0 1.023.482 1.986 1.3 2.6l.333.25c.934.7.934 2.1 0 2.8l-.333.25a3.251 3.251 0 0 0-1.3 2.6v1.25h6v-1.25a3.251 3.251 0 0 0-1.3-2.6l-.333-.25a1.748 1.748 0 0 1 0-2.8l.333-.25a3.251 3.251 0 0 0 1.3-2.6Z"],h:16,w:16},24:{p:["M4.75 2h14.5a.75.75 0 0 1 0 1.5h-.75v2.982a4.75 4.75 0 0 1-2.215 4.017l-2.044 1.29a.25.25 0 0 0 0 .422l2.044 1.29a4.75 4.75 0 0 1 2.215 4.017V20.5h.75a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h.75v-2.982a4.75 4.75 0 0 1 2.215-4.017l2.044-1.29a.25.25 0 0 0 0-.422l-2.044-1.29A4.75 4.75 0 0 1 5.5 6.482V3.5h-.75a.75.75 0 0 1 0-1.5ZM17 3.5H7v2.982A3.25 3.25 0 0 0 8.516 9.23l2.044 1.29a1.75 1.75 0 0 1 0 2.96l-2.044 1.29A3.25 3.25 0 0 0 7 17.518V20.5h10v-2.982a3.25 3.25 0 0 0-1.516-2.748l-2.044-1.29a1.75 1.75 0 0 1 0-2.96l2.044-1.29A3.25 3.25 0 0 0 17 6.482Z"],h:24,w:24}},ka={16:{p:["M0 8a8 8 0 0 1 16 0v5.25a.75.75 0 0 1-1.5 0V8a6.5 6.5 0 1 0-13 0v5.25a.75.75 0 0 1-1.5 0Zm3-1.25C3 5.784 3.784 5 4.75 5h6.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0 1 11.25 10h-6.5A1.75 1.75 0 0 1 3 8.25Zm1.47-.53a.75.75 0 0 0 0 1.06l1.5 1.5a.75.75 0 0 0 1.06 0L8 7.81l.97.97a.75.75 0 0 0 1.06 0l1.5-1.5a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215l-.97.97-.97-.97a.75.75 0 0 0-1.06 0l-.97.97-.97-.97a.75.75 0 0 0-1.06 0Zm1.03 6.03a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M0 13C0 6.373 5.373 1 12 1s12 5.373 12 12v8.657a.75.75 0 0 1-1.5 0V13c0-5.799-4.701-10.5-10.5-10.5S1.5 7.201 1.5 13v8.657a.75.75 0 0 1-1.5 0V13Z","M8 19.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75ZM5.25 9.5h13.5c.966 0 1.75.784 1.75 1.75v3.5a1.75 1.75 0 0 1-1.75 1.75H5.25a1.75 1.75 0 0 1-1.75-1.75v-3.5c0-.966.784-1.75 1.75-1.75Zm.22 1.47a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0L12 12.56l2.47 2.47a.75.75 0 0 0 1.06 0l3-3a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L15 13.44l-2.47-2.47a.75.75 0 0 0-1.06 0L9 13.44l-2.47-2.47a.75.75 0 0 0-1.06 0Z"],h:24,w:24}},Ra={16:{p:["M3 7.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-3Zm10 .25a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5h4.5a.75.75 0 0 1 .75.75ZM10.25 11a.75.75 0 0 0 0-1.5h-2.5a.75.75 0 0 0 0 1.5h2.5Z","M7.25 0h1.5c.966 0 1.75.784 1.75 1.75V3h3.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-8.5C0 3.784.784 3 1.75 3H5.5V1.75C5.5.784 6.284 0 7.25 0Zm3.232 4.5A1.75 1.75 0 0 1 8.75 6h-1.5a1.75 1.75 0 0 1-1.732-1.5H1.75a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25ZM7 1.75v2.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 9 4.25v-2.5a.25.25 0 0 0-.25-.25h-1.5a.25.25 0 0 0-.25.25Z"],h:16,w:16}},Aa={16:{p:["M16 13.25A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75ZM1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94l.03-.03 6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25Zm12.5 11a.25.25 0 0 0 .25-.25v-.917l-4.298-3.889a.25.25 0 0 0-.344.009L4.81 13.5ZM7 6a2 2 0 1 1-3.999.001A2 2 0 0 1 7 6ZM5.5 6a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Z"],h:16,w:16},24:{p:["M4.75 3h14.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 19.25 21H4.75A1.75 1.75 0 0 1 3 19.25V4.75C3 3.784 3.784 3 4.75 3Zm14.5 1.5H4.75a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h.19l9.823-9.823a1.75 1.75 0 0 1 2.475 0l2.262 2.262V4.75a.25.25 0 0 0-.25-.25Zm.25 9.56-3.323-3.323a.25.25 0 0 0-.354 0L7.061 19.5H19.25a.25.25 0 0 0 .25-.25ZM8.5 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Zm0-1.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"],h:24,w:24}},Ta={16:{p:["M2.8 2.06A1.75 1.75 0 0 1 4.41 1h7.18c.7 0 1.333.417 1.61 1.06l2.74 6.395c.04.093.06.194.06.295v4.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-4.5c0-.101.02-.202.06-.295Zm1.61.44a.25.25 0 0 0-.23.152L1.887 8H4.75a.75.75 0 0 1 .6.3L6.625 10h2.75l1.275-1.7a.75.75 0 0 1 .6-.3h2.863L11.82 2.652a.25.25 0 0 0-.23-.152Zm10.09 7h-2.875l-1.275 1.7a.75.75 0 0 1-.6.3h-3.5a.75.75 0 0 1-.6-.3L4.375 9.5H1.5v3.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Z"],h:16,w:16},24:{p:["M4.801 3.57A1.75 1.75 0 0 1 6.414 2.5h11.174c.702 0 1.337.42 1.611 1.067l3.741 8.828c.04.092.06.192.06.293v7.562A1.75 1.75 0 0 1 21.25 22H2.75A1.75 1.75 0 0 1 1 20.25v-7.5c0-.1.02-.199.059-.291L4.8 3.571ZM6.414 4a.25.25 0 0 0-.23.153L2.88 12H8a.75.75 0 0 1 .648.372L10.18 15h3.638l1.533-2.628a.75.75 0 0 1 .64-.372l5.13-.051-3.304-7.797a.25.25 0 0 0-.23-.152ZM21.5 13.445l-5.067.05-1.535 2.633a.75.75 0 0 1-.648.372h-4.5a.75.75 0 0 1-.648-.372L7.57 13.5H2.5v6.75c0 .138.112.25.25.25h18.5a.25.25 0 0 0 .25-.25Z"],h:24,w:24}},xa={16:{p:["M8 6.984c.59-.533 1.204-1.066 1.825-1.493.797-.548 1.7-.991 2.675-.991C14.414 4.5 16 6.086 16 8s-1.586 3.5-3.5 3.5c-.975 0-1.878-.444-2.675-.991-.621-.427-1.235-.96-1.825-1.493-.59.533-1.204 1.066-1.825 1.493-.797.547-1.7.991-2.675.991C1.586 11.5 0 9.914 0 8s1.586-3.5 3.5-3.5c.975 0 1.878.443 2.675.991.621.427 1.235.96 1.825 1.493ZM9.114 8c.536.483 1.052.922 1.56 1.273.704.483 1.3.727 1.826.727 1.086 0 2-.914 2-2 0-1.086-.914-2-2-2-.525 0-1.122.244-1.825.727-.51.35-1.025.79-1.561 1.273ZM3.5 6c-1.086 0-2 .914-2 2 0 1.086.914 2 2 2 .525 0 1.122-.244 1.825-.727.51-.35 1.025-.79 1.561-1.273-.536-.483-1.052-.922-1.56-1.273C4.621 6.244 4.025 6 3.5 6Z"],h:16,w:16},24:{p:["M12 11.16c.887-.933 1.813-1.865 2.78-2.6C15.952 7.668 17.267 7 18.75 7 21.657 7 24 9.615 24 12.25s-2.343 5.25-5.25 5.25c-1.483 0-2.798-.668-3.97-1.56-.967-.735-1.893-1.667-2.78-2.6-.887.933-1.813 1.865-2.78 2.6-1.172.892-2.487 1.56-3.97 1.56C2.343 17.5 0 14.885 0 12.25S2.343 7 5.25 7c1.483 0 2.798.667 3.97 1.56.967.735 1.893 1.667 2.78 2.6ZM5.25 8.5c-2.032 0-3.75 1.895-3.75 3.75S3.218 16 5.25 16c1.017 0 2.014-.457 3.062-1.253.89-.678 1.758-1.554 2.655-2.497-.897-.943-1.765-1.82-2.655-2.497C7.264 8.957 6.267 8.5 5.25 8.5Zm7.783 3.75c.897.943 1.765 1.82 2.655 2.497C16.736 15.543 17.733 16 18.75 16c2.032 0 3.75-1.895 3.75-3.75S20.782 8.5 18.75 8.5c-1.017 0-2.014.457-3.062 1.253-.89.678-1.758 1.554-2.655 2.497Z"],h:24,w:24}},Da={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M13 7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-3 3.75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v4.25h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75V12h-.75a.75.75 0 0 1-.75-.75Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Ma={16:{p:["M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"],h:16,w:16},24:{p:["M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Pa={16:{p:["M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"],h:16,w:16},24:{p:["M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"],h:24,w:24}},Ia={16:{p:["M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z","M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"],h:24,w:24}},_a={16:{p:["M5.029 2.217a6.5 6.5 0 0 1 9.437 5.11.75.75 0 1 0 1.492-.154 8 8 0 0 0-14.315-4.03L.427 1.927A.25.25 0 0 0 0 2.104V5.75A.25.25 0 0 0 .25 6h3.646a.25.25 0 0 0 .177-.427L2.715 4.215a6.491 6.491 0 0 1 2.314-1.998ZM1.262 8.169a.75.75 0 0 0-1.22.658 8.001 8.001 0 0 0 14.315 4.03l1.216 1.216a.25.25 0 0 0 .427-.177V10.25a.25.25 0 0 0-.25-.25h-3.646a.25.25 0 0 0-.177.427l1.358 1.358a6.501 6.501 0 0 1-11.751-3.11.75.75 0 0 0-.272-.506Z","M9.06 9.06a1.5 1.5 0 1 1-2.12-2.12 1.5 1.5 0 0 1 2.12 2.12Z"],h:16,w:16},24:{p:["M3.38 8A9.502 9.502 0 0 1 12 2.5a9.502 9.502 0 0 1 9.215 7.182.75.75 0 1 0 1.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 0 0-9.5 5.452V4.75a.75.75 0 0 0-1.5 0V8.5a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H3.38Zm-.595 6.318a.75.75 0 0 0-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 0 0 1.5 0V15.5a1 1 0 0 0-1-1h-3.75a.75.75 0 0 0 0 1.5h2.37A9.502 9.502 0 0 1 12 21.5c-4.446 0-8.181-3.055-9.215-7.182Z","M13.414 13.414a2 2 0 1 1-2.828-2.828 2 2 0 0 1 2.828 2.828Z"],h:24,w:24}},Fa={16:{p:["M1.5 8a6.5 6.5 0 0 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm3.573 5.823-2.896-2.896a.25.25 0 0 1 0-.354l2.896-2.896a.25.25 0 0 1 .427.177V11.5h3.25a.75.75 0 0 1 0 1.5H12v2.146a.25.25 0 0 1-.427.177Z"],h:16,w:16},24:{p:["M12 2.5a9.5 9.5 0 1 0 0 19 .75.75 0 0 1 0 1.5C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11a.75.75 0 0 1-1.5 0A9.5 9.5 0 0 0 12 2.5Z","m13.759 17.48 3.728 3.314a.308.308 0 0 0 .513-.23V18h4.25a.75.75 0 0 0 0-1.5H18v-2.564a.308.308 0 0 0-.513-.23L13.76 17.02a.308.308 0 0 0 0 .46ZM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"],h:24,w:24}},Na={16:{p:["M1.5 8a6.5 6.5 0 0 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm1.5 1.75a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Zm2.75 2.25a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Z"],h:16,w:16},24:{p:["M2.5 12a9.5 9.5 0 1 1 19 0 .75.75 0 0 0 1.5 0c0-6.075-4.925-11-11-11S1 5.925 1 12s4.925 11 11 11a.75.75 0 0 0 0-1.5A9.5 9.5 0 0 1 2.5 12Z","M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2.5 2.75a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Zm3.75 2.75a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5h-4Z"],h:24,w:24}},Oa={16:{p:["M6 2.75A.75.75 0 0 1 6.75 2h6.5a.75.75 0 0 1 0 1.5h-2.505l-3.858 9H9.25a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.505l3.858-9H6.75A.75.75 0 0 1 6 2.75Z"],h:16,w:16},24:{p:["M10 4.75a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-3.514l-5.828 13h3.342a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.514l5.828-13H10.75a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},La={16:{p:["M2.5 7.25a4.75 4.75 0 0 1 9.5 0 .75.75 0 0 0 1.5 0 6.25 6.25 0 1 0-6.25 6.25H12v2.146c0 .223.27.335.427.177l2.896-2.896a.25.25 0 0 0 0-.354l-2.896-2.896a.25.25 0 0 0-.427.177V12H7.25A4.75 4.75 0 0 1 2.5 7.25Z"],h:16,w:16},24:{p:["M2.5 10.5a8 8 0 1 1 16 0 .75.75 0 0 0 1.5 0 9.5 9.5 0 1 0-9.5 9.5h10.94l-2.72 2.72a.75.75 0 1 0 1.06 1.06l3.735-3.735c.44-.439.44-1.151 0-1.59L19.78 14.72a.75.75 0 0 0-1.06 1.06l2.72 2.72H10.5a8 8 0 0 1-8-8Z"],h:24,w:24}},Ba={16:{p:["M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"],h:16,w:16},24:{p:["M20 14a2 2 0 1 1-.001-3.999A2 2 0 0 1 20 14ZM6 12a2 2 0 1 1-3.999.001A2 2 0 0 1 6 12Zm8 0a2 2 0 1 1-3.999.001A2 2 0 0 1 14 12Z"],h:24,w:24}},Ha={16:{p:["M10.5 0a5.499 5.499 0 1 1-1.288 10.848l-.932.932a.749.749 0 0 1-.53.22H7v.75a.749.749 0 0 1-.22.53l-.5.5a.749.749 0 0 1-.53.22H5v.75a.749.749 0 0 1-.22.53l-.5.5a.749.749 0 0 1-.53.22h-2A1.75 1.75 0 0 1 0 14.25v-2c0-.199.079-.389.22-.53l4.932-4.932A5.5 5.5 0 0 1 10.5 0Zm-4 5.5c-.001.431.069.86.205 1.269a.75.75 0 0 1-.181.768L1.5 12.56v1.69c0 .138.112.25.25.25h1.69l.06-.06v-1.19a.75.75 0 0 1 .75-.75h1.19l.06-.06v-1.19a.75.75 0 0 1 .75-.75h1.19l1.023-1.025a.75.75 0 0 1 .768-.18A4 4 0 1 0 6.5 5.5ZM11 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M16.75 8.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z","M15.75 0a8.25 8.25 0 1 1-2.541 16.101l-1.636 1.636a1.744 1.744 0 0 1-1.237.513H9.25a.25.25 0 0 0-.25.25v1.448a.876.876 0 0 1-.256.619l-.214.213a.75.75 0 0 1-.545.22H5.25a.25.25 0 0 0-.25.25v1A1.75 1.75 0 0 1 3.25 24h-1.5A1.75 1.75 0 0 1 0 22.25v-2.836c0-.464.185-.908.513-1.236l7.386-7.388A8.249 8.249 0 0 1 15.75 0ZM9 8.25a6.733 6.733 0 0 0 .463 2.462.75.75 0 0 1-.168.804l-7.722 7.721a.25.25 0 0 0-.073.177v2.836c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-1c0-.966.784-1.75 1.75-1.75H7.5v-1c0-.966.784-1.75 1.75-1.75h1.086a.25.25 0 0 0 .177-.073l1.971-1.972a.75.75 0 0 1 .804-.168A6.75 6.75 0 1 0 9 8.25Z"],h:24,w:24}},Ua={16:{p:["M0 2.75A2.75 2.75 0 0 1 2.75 0h10.5A2.75 2.75 0 0 1 16 2.75v10.5A2.75 2.75 0 0 1 13.25 16H2.75A2.75 2.75 0 0 1 0 13.25ZM2.75 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25Z","M8 4a.75.75 0 0 1 .75.75V6.7l1.69-.975a.75.75 0 0 1 .75 1.3L9.5 8l1.69.976a.75.75 0 0 1-.75 1.298L8.75 9.3v1.951a.75.75 0 0 1-1.5 0V9.299l-1.69.976a.75.75 0 0 1-.75-1.3L6.5 8l-1.69-.975a.75.75 0 0 1 .75-1.3l1.69.976V4.75A.75.75 0 0 1 8 4Z"],h:16,w:16}},Za={16:{p:["M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"],h:16,w:16},24:{p:["M12.75 2.75V4.5h1.975c.351 0 .694.106.984.303l1.697 1.154c.041.028.09.043.14.043h4.102a.75.75 0 0 1 0 1.5H20.07l3.366 7.68a.749.749 0 0 1-.23.896c-.1.074-.203.143-.31.206a6.296 6.296 0 0 1-.79.399 7.349 7.349 0 0 1-2.856.569 7.343 7.343 0 0 1-2.855-.568 6.205 6.205 0 0 1-.79-.4 3.205 3.205 0 0 1-.307-.202l-.005-.004a.749.749 0 0 1-.23-.896l3.368-7.68h-.886c-.351 0-.694-.106-.984-.303l-1.697-1.154a.246.246 0 0 0-.14-.043H12.75v14.5h4.487a.75.75 0 0 1 0 1.5H6.763a.75.75 0 0 1 0-1.5h4.487V6H9.275a.249.249 0 0 0-.14.043L7.439 7.197c-.29.197-.633.303-.984.303h-.886l3.368 7.68a.75.75 0 0 1-.209.878c-.08.065-.16.126-.31.223a6.077 6.077 0 0 1-.792.433 6.924 6.924 0 0 1-2.876.62 6.913 6.913 0 0 1-2.876-.62 6.077 6.077 0 0 1-.792-.433 3.483 3.483 0 0 1-.309-.221.762.762 0 0 1-.21-.88L3.93 7.5H2.353a.75.75 0 0 1 0-1.5h4.102c.05 0 .099-.015.141-.043l1.695-1.154c.29-.198.634-.303.985-.303h1.974V2.75a.75.75 0 0 1 1.5 0ZM2.193 15.198a5.414 5.414 0 0 0 2.557.635 5.414 5.414 0 0 0 2.557-.635L4.75 9.368Zm14.51-.024c.082.04.174.083.275.126.53.223 1.305.45 2.272.45a5.847 5.847 0 0 0 2.547-.576L19.25 9.367Z"],h:24,w:24}},$a={16:{p:["M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M12 2.5c-3.81 0-6.5 2.743-6.5 6.119 0 1.536.632 2.572 1.425 3.56.172.215.347.422.527.635l.096.112c.21.25.427.508.63.774.404.531.783 1.128.995 1.834a.75.75 0 0 1-1.436.432c-.138-.46-.397-.89-.753-1.357a18.111 18.111 0 0 0-.582-.714l-.092-.11c-.18-.212-.37-.436-.555-.667C4.87 12.016 4 10.651 4 8.618 4 4.363 7.415 1 12 1s8 3.362 8 7.619c0 2.032-.87 3.397-1.755 4.5-.185.23-.375.454-.555.667l-.092.109c-.21.248-.405.481-.582.714-.356.467-.615.898-.753 1.357a.751.751 0 0 1-1.437-.432c.213-.706.592-1.303.997-1.834.202-.266.419-.524.63-.774l.095-.112c.18-.213.355-.42.527-.634.793-.99 1.425-2.025 1.425-3.561C18.5 5.243 15.81 2.5 12 2.5ZM8.75 18h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5Zm.75 3.75a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Wa={16:{p:["m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"],h:16,w:16},24:{p:["M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z","M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z"],h:24,w:24}},Va={16:{p:["M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"],h:16,w:16},24:{p:["M15.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L19.94 3h-3.69a.75.75 0 0 1-.75-.75Z","M2.5 4.25c0-.966.784-1.75 1.75-1.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5a1.75 1.75 0 0 1-1.75 1.75H4.25a1.75 1.75 0 0 1-1.75-1.75V4.25Z"],h:24,w:24}},qa={16:{p:["M5 3.25a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 3.25Zm0 5a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8.25Zm0 5a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1-.75-.75ZM.924 10.32a.5.5 0 0 1-.851-.525l.001-.001.001-.002.002-.004.007-.011c.097-.144.215-.273.348-.384.228-.19.588-.392 1.068-.392.468 0 .858.181 1.126.484.259.294.377.673.377 1.038 0 .987-.686 1.495-1.156 1.845l-.047.035c-.303.225-.522.4-.654.597h1.357a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5c0-1.005.692-1.52 1.167-1.875l.035-.025c.531-.396.8-.625.8-1.078a.57.57 0 0 0-.128-.376C1.806 10.068 1.695 10 1.5 10a.658.658 0 0 0-.429.163.835.835 0 0 0-.144.153ZM2.003 2.5V6h.503a.5.5 0 0 1 0 1H.5a.5.5 0 0 1 0-1h.503V3.308l-.28.14a.5.5 0 0 1-.446-.895l1.003-.5a.5.5 0 0 1 .723.447Z"],h:16,w:16},24:{p:["M3.604 3.089A.75.75 0 0 1 4 3.75V8.5h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 1 1 0-1.5h.75V5.151l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037ZM8.75 5.5a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75Zm0 6a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75Zm0 6a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75ZM5.5 15.75c0-.704-.271-1.286-.72-1.686a2.302 2.302 0 0 0-1.53-.564c-.535 0-1.094.178-1.53.565-.449.399-.72.982-.72 1.685a.75.75 0 0 0 1.5 0c0-.296.104-.464.217-.564A.805.805 0 0 1 3.25 15c.215 0 .406.072.533.185.113.101.217.268.217.565 0 .332-.069.48-.21.657-.092.113-.216.24-.403.419l-.147.14c-.152.144-.33.313-.52.504l-1.5 1.5a.75.75 0 0 0-.22.53v.25c0 .414.336.75.75.75H5A.75.75 0 0 0 5 19H3.31l.47-.47c.176-.176.333-.324.48-.465l.165-.156a5.98 5.98 0 0 0 .536-.566c.358-.447.539-.925.539-1.593Z"],h:24,w:24}},Ga={16:{p:["M5.75 2.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM2 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M8.75 5.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM4 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:24,w:24}},za={16:{p:["m12.596 11.596-3.535 3.536a1.5 1.5 0 0 1-2.122 0l-3.535-3.536a6.5 6.5 0 1 1 9.192-9.193 6.5 6.5 0 0 1 0 9.193Zm-1.06-8.132v-.001a5 5 0 1 0-7.072 7.072L8 14.07l3.536-3.534a5 5 0 0 0 0-7.072ZM8 9a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 9Z"],h:16,w:16},24:{p:["M12 13.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z","M19.071 3.429h.001c3.905 3.905 3.905 10.237 0 14.142l-5.403 5.403a2.36 2.36 0 0 1-3.336 0l-5.375-5.375-.028-.028c-3.905-3.905-3.905-10.237 0-14.142 3.904-3.905 10.236-3.905 14.141 0ZM5.99 4.489v.001a8.5 8.5 0 0 0 0 12.02l.023.024.002.002 5.378 5.378a.859.859 0 0 0 1.214 0l5.403-5.404a8.5 8.5 0 0 0-.043-11.977A8.5 8.5 0 0 0 5.99 4.489Z"],h:24,w:24}},ja={16:{p:["M4 4a4 4 0 0 1 8 0v2h.25c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-5.5C2 6.784 2.784 6 3.75 6H4Zm8.25 3.5h-8.5a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25ZM10.5 6V4a2.5 2.5 0 1 0-5 0v2Z"],h:16,w:16},24:{p:["M6 9V7.25C6 3.845 8.503 1 12 1s6 2.845 6 6.25V9h.5a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-8A2.5 2.5 0 0 1 5.5 9Zm-1.5 2.5v8a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-13a1 1 0 0 0-1 1Zm3-4.25V9h9V7.25c0-2.67-1.922-4.75-4.5-4.75-2.578 0-4.5 2.08-4.5 4.75Z"],h:24,w:24}},Ka={16:{p:["M5 8.25a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4A.75.75 0 0 1 5 8.25ZM4 10.5A.75.75 0 0 0 4 12h4a.75.75 0 0 0 0-1.5H4Z","M13-.005c1.654 0 3 1.328 3 3 0 .982-.338 1.933-.783 2.818-.443.879-1.028 1.758-1.582 2.588l-.011.017c-.568.853-1.104 1.659-1.501 2.446-.398.789-.623 1.494-.623 2.136a1.5 1.5 0 1 0 2.333-1.248.75.75 0 0 1 .834-1.246A3 3 0 0 1 13 16H3a3 3 0 0 1-3-3c0-1.582.891-3.135 1.777-4.506.209-.322.418-.637.623-.946.473-.709.923-1.386 1.287-2.048H2.51c-.576 0-1.381-.133-1.907-.783A2.68 2.68 0 0 1 0 2.995a3 3 0 0 1 3-3Zm0 1.5a1.5 1.5 0 0 0-1.5 1.5c0 .476.223.834.667 1.132A.75.75 0 0 1 11.75 5.5H5.368c-.467 1.003-1.141 2.015-1.773 2.963-.192.289-.381.571-.558.845C2.13 10.711 1.5 11.916 1.5 13A1.5 1.5 0 0 0 3 14.5h7.401A2.989 2.989 0 0 1 10 13c0-.979.338-1.928.784-2.812.441-.874 1.023-1.748 1.575-2.576l.017-.026c.568-.853 1.103-1.658 1.501-2.448.398-.79.623-1.497.623-2.143 0-.838-.669-1.5-1.5-1.5Zm-10 0a1.5 1.5 0 0 0-1.5 1.5c0 .321.1.569.27.778.097.12.325.227.74.227h7.674A2.737 2.737 0 0 1 10 2.995c0-.546.146-1.059.401-1.5Z"],h:16,w:16},24:{p:["M9.197 10a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm-2.382 4a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm-1.581 4a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z","M4.125 0h15.75a4.11 4.11 0 0 1 2.92 1.205A4.11 4.11 0 0 1 24 4.125c0 1.384-.476 2.794-1.128 4.16-.652 1.365-1.515 2.757-2.352 4.104l-.008.013c-.849 1.368-1.669 2.691-2.28 3.97-.614 1.283-.982 2.45-.982 3.503a2.625 2.625 0 1 0 4.083-2.183.75.75 0 1 1 .834-1.247A4.126 4.126 0 0 1 19.875 24H4.5a4.125 4.125 0 0 1-4.125-4.125c0-2.234 1.258-4.656 2.59-6.902.348-.586.702-1.162 1.05-1.728.8-1.304 1.567-2.553 2.144-3.738H3.39c-.823 0-1.886-.193-2.567-1.035A3.647 3.647 0 0 1 0 4.125 4.125 4.125 0 0 1 4.125 0ZM15.75 19.875c0-1.38.476-2.786 1.128-4.15.649-1.358 1.509-2.743 2.343-4.086l.017-.028c.849-1.367 1.669-2.692 2.28-3.972.614-1.285.982-2.457.982-3.514A2.615 2.615 0 0 0 19.875 1.5a2.625 2.625 0 0 0-2.625 2.625c0 .865.421 1.509 1.167 2.009A.75.75 0 0 1 18 7.507H7.812c-.65 1.483-1.624 3.069-2.577 4.619-.334.544-.666 1.083-.98 1.612-1.355 2.287-2.38 4.371-2.38 6.137A2.625 2.625 0 0 0 4.5 22.5h12.193a4.108 4.108 0 0 1-.943-2.625ZM1.5 4.125c-.01.511.163 1.008.487 1.403.254.313.74.479 1.402.479h12.86a3.648 3.648 0 0 1-.499-1.882 4.11 4.11 0 0 1 .943-2.625H4.125A2.625 2.625 0 0 0 1.5 4.125Z"],h:24,w:24}},Ya={16:{p:["M4.7 8.73v-1h3.52v5.69c-.78.37-1.95.64-3.59.64C1.11 14.06 0 11.37 0 8.03 0 4.69 1.13 2 4.63 2c1.62 0 2.64.33 3.28.66v1.05c-1.22-.5-2-.73-3.28-.73-2.57 0-3.48 2.21-3.48 5.06 0 2.85.91 5.05 3.47 5.05.89 0 1.98-.07 2.53-.34V8.73Zm10.98.69h.03c2.22.2 2.75.95 2.75 2.23 0 1.21-.76 2.41-3.14 2.41-.75 0-1.83-.19-2.33-.39v-.94c.47.17 1.22.36 2.33.36 1.62 0 2.06-.69 2.06-1.42 0-.71-.22-1.21-1.77-1.34-2.26-.2-2.73-1-2.73-2.08 0-1.11.72-2.31 2.92-2.31.73 0 1.56.09 2.25.39v.94c-.61-.2-1.22-.36-2.27-.36-1.55 0-1.88.57-1.88 1.34 0 .69.28 1.04 1.78 1.17Zm8.58-3.33v.85h-2.42v4.87c0 .95.53 1.34 1.5 1.34.2 0 .42 0 .61-.03v.89c-.17.03-.5.05-.69.05-1.31 0-2.5-.6-2.5-2.13v-5H19.2v-.48l1.56-.44V3.9l1.08-.31v2.5h2.42Zm-13.17-.03v6.41c0 .54.19.7.67.7v.89c-1.14 0-1.72-.47-1.72-1.72V6.06h1.05Zm.25-2.33c0 .44-.34.78-.78.78a.76.76 0 0 1-.77-.78c0-.44.32-.78.77-.78s.78.34.78.78Z"],h:16,w:25}},Xa={16:{p:["M8.81 7.35v5.74c0 .04-.01.11-.06.13 0 0-1.25.89-3.31.89-2.49 0-5.44-.78-5.44-5.92S2.58 1.99 5.1 2c2.18 0 3.06.49 3.2.58.04.05.06.09.06.14L7.94 4.5c0 .09-.09.2-.2.17-.36-.11-.9-.33-2.17-.33-1.47 0-3.05.42-3.05 3.73s1.5 3.7 2.58 3.7c.92 0 1.25-.11 1.25-.11v-2.3H4.88c-.11 0-.19-.08-.19-.17V7.35c0-.09.08-.17.19-.17h3.74c.11 0 .19.08.19.17Zm35.85 2.33c0 3.43-1.11 4.41-3.05 4.41-1.64 0-2.52-.83-2.52-.83s-.04.46-.09.52c-.03.06-.08.08-.14.08h-1.48c-.1 0-.19-.08-.19-.17l.02-11.11c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v3.77s.82-.53 2.02-.53l-.01-.02c1.2 0 2.97.45 2.97 3.88ZM27.68 2.43c.09 0 .17.08.17.17v11.11c0 .09-.08.17-.17.17h-2.13c-.09 0-.17-.08-.17-.17l.02-4.75h-3.31v4.75c0 .09-.08.17-.17.17h-2.13c-.08 0-.17-.08-.17-.17V2.6c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v4.09h3.31V2.6c0-.09.08-.17.17-.17Zm8.26 3.64c.11 0 .19.08.19.17l-.02 7.47c0 .09-.06.17-.17.17H34.6c-.07 0-.14-.04-.16-.09-.03-.06-.08-.45-.08-.45s-1.13.77-2.52.77c-1.69 0-2.92-.55-2.92-2.75V6.25c0-.09.08-.17.17-.17h2.14c.09 0 .17.08.17.17V11c0 .75.22 1.09.97 1.09s1.3-.39 1.3-.39V6.26c0-.11.06-.19.17-.19Zm-17.406 5.971h.005a.177.177 0 0 1 .141.179v1.5c0 .07-.03.14-.09.16-.1.05-.74.22-1.27.22-1.16 0-2.86-.25-2.86-2.69V8.13h-1.11c-.09 0-.17-.08-.17-.19V6.58c0-.08.05-.15.13-.17.07-.01 1.16-.28 1.16-.28V3.96c0-.08.05-.13.14-.13h2.16c.09 0 .14.05.14.13v2.11h1.59c.08 0 .16.08.16.17v1.7c0 .11-.07.19-.16.19h-1.59v3.131c0 .47.27.83 1.05.83.247 0 .481-.049.574-.05ZM12.24 6.06c.09 0 .17.08.17.17v7.37c0 .18-.05.27-.25.27h-1.92c-.17 0-.3-.07-.3-.27V6.26c0-.11.08-.2.17-.2Zm29.99 3.78c0-1.81-.73-2.05-1.5-1.97-.6.04-1.08.34-1.08.34v3.52s.49.34 1.22.36c1.03.03 1.36-.34 1.36-2.25ZM11.19 2.68c.75 0 1.36.61 1.36 1.38 0 .77-.61 1.38-1.36 1.38-.77 0-1.38-.61-1.38-1.38 0-.77.61-1.38 1.38-1.38Zm7.34 9.35v.001l.01.01h-.001l-.005-.001v.001c-.009-.001-.015-.011-.024-.011Z"],h:16,w:45}},Qa={16:{p:["M1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25v-8.5C0 2.784.784 2 1.75 2ZM1.5 12.251c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V5.809L8.38 9.397a.75.75 0 0 1-.76 0L1.5 5.809v6.442Zm13-8.181v-.32a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25v.32L8 7.88Z"],h:16,w:16},24:{p:["M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 18.75v-14C0 3.784.784 3 1.75 3ZM1.5 7.412V18.75c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V7.412l-9.52 6.433c-.592.4-1.368.4-1.96 0Zm0-2.662v.852l10.36 7a.25.25 0 0 0 .28 0l10.36-7V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},Ja={16:{p:["M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"],h:16,w:16}},el={16:{p:["M14.85 3c.63 0 1.15.52 1.14 1.15v7.7c0 .63-.51 1.15-1.15 1.15H1.15C.52 13 0 12.48 0 11.84V4.15C0 3.52.52 3 1.15 3ZM9 11V5H7L5.5 7 4 5H2v6h2V8l1.5 1.92L7 8v3Zm2.99.5L14.5 8H13V5h-2v3H9.5Z"],h:16,w:16}},tl={16:{p:["M3.25 9a.75.75 0 0 1 .75.75c0 2.142.456 3.828.733 4.653a.122.122 0 0 0 .05.064.212.212 0 0 0 .117.033h1.31c.085 0 .18-.042.258-.152a.45.45 0 0 0 .075-.366A16.743 16.743 0 0 1 6 9.75a.75.75 0 0 1 1.5 0c0 1.588.25 2.926.494 3.85.293 1.113-.504 2.4-1.783 2.4H4.9c-.686 0-1.35-.41-1.589-1.12A16.4 16.4 0 0 1 2.5 9.75.75.75 0 0 1 3.25 9Z","M0 6a4 4 0 0 1 4-4h2.75a.75.75 0 0 1 .75.75v6.5a.75.75 0 0 1-.75.75H4a4 4 0 0 1-4-4Zm4-2.5a2.5 2.5 0 1 0 0 5h2v-5Z","M15.59.082A.75.75 0 0 1 16 .75v10.5a.75.75 0 0 1-1.189.608l-.002-.001h.001l-.014-.01a5.775 5.775 0 0 0-.422-.25 10.63 10.63 0 0 0-1.469-.64C11.576 10.484 9.536 10 6.75 10a.75.75 0 0 1 0-1.5c2.964 0 5.174.516 6.658 1.043.423.151.787.302 1.092.443V2.014c-.305.14-.669.292-1.092.443C11.924 2.984 9.713 3.5 6.75 3.5a.75.75 0 0 1 0-1.5c2.786 0 4.826-.484 6.155-.957.665-.236 1.154-.47 1.47-.64.144-.077.284-.161.421-.25l.014-.01a.75.75 0 0 1 .78-.061Z"],h:16,w:16},24:{p:["M22 1.75v14.5a.75.75 0 0 1-.399.662c-.384.204-.783-.035-1.139-.248l-.003-.002c-.09-.054-.177-.107-.261-.15a15.53 15.53 0 0 0-2-.849c-1.738-.607-4.321-1.223-7.703-1.251a.833.833 0 0 1 .005.088c0 2.279.494 4.279.906 5.547.368 1.131-.438 2.453-1.732 2.453H7.661c-.696 0-1.36-.42-1.6-1.129C5.684 20.255 5 17.811 5 14.75v-.457A5.5 5.5 0 0 1 6.5 3.5h3.75c3.505 0 6.175-.61 7.955-1.21a15.88 15.88 0 0 0 2.002-.82 9.21 9.21 0 0 0 .49-.262c.048-.028.095-.055.142-.085A.751.751 0 0 1 22 1.75ZM10.5 12.912c3.564.029 6.313.678 8.193 1.335.737.258 1.34.517 1.807.74V2.993c-.467.216-1.073.467-1.815.718-1.878.634-4.624 1.26-8.185 1.288ZM6.5 5a4 4 0 0 0 0 8H9V5Zm0 9.75c0 2.847.638 5.123.982 6.141.018.051.074.109.179.109h2.013c.087 0 .179-.043.249-.147a.396.396 0 0 0 .057-.343C9.537 19.148 9 16.986 9 14.5H6.5Z"],h:24,w:24}},nl={16:{p:["M4.75 2.37a6.501 6.501 0 0 0 6.5 11.26.75.75 0 0 1 .75 1.298A7.999 7.999 0 0 1 .989 4.148 8 8 0 0 1 16 7.75v1.5a2.75 2.75 0 0 1-5.072 1.475 3.999 3.999 0 0 1-6.65-4.19A4 4 0 0 1 12 8v1.25a1.25 1.25 0 0 0 2.5 0V7.867a6.5 6.5 0 0 0-9.75-5.496ZM10.5 8a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"],h:16,w:16},24:{p:["M20.226 7.25c-2.623-4.542-8.432-6.098-12.974-3.475-4.543 2.622-6.099 8.431-3.477 12.974 2.623 4.542 8.431 6.099 12.974 3.477a.75.75 0 0 1 .75 1.299c-5.26 3.037-11.987 1.235-15.024-4.026C-.562 12.24 1.24 5.512 6.501 2.475 11.76-.562 18.488 1.24 21.525 6.501a10.959 10.959 0 0 1 1.455 4.826c.013.056.02.113.02.173v2.25a3.5 3.5 0 0 1-6.623 1.581 5.5 5.5 0 1 1 1.112-3.682.802.802 0 0 1 .011.129v1.972a2 2 0 1 0 4 0v-1.766a9.456 9.456 0 0 0-1.274-4.733ZM16 12a4 4 0 1 0-8 0 4 4 0 0 0 8 0Z"],h:24,w:24}},rl={16:{p:["M8 1.5a6.5 6.5 0 1 0 6.016 4.035.75.75 0 0 1 1.388-.57 8 8 0 1 1-4.37-4.37.75.75 0 1 1-.569 1.389A6.473 6.473 0 0 0 8 1.5Zm6.28.22a.75.75 0 0 1 0 1.06l-4.063 4.064a2.5 2.5 0 1 1-1.06-1.06L13.22 1.72a.75.75 0 0 1 1.06 0ZM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z"],h:16,w:16}},sl={16:{p:["M7.75 0a.75.75 0 0 1 .75.75V3h3.634c.414 0 .814.147 1.13.414l2.07 1.75a1.75 1.75 0 0 1 0 2.672l-2.07 1.75a1.75 1.75 0 0 1-1.13.414H8.5v5.25a.75.75 0 0 1-1.5 0V10H2.75A1.75 1.75 0 0 1 1 8.25v-3.5C1 3.784 1.784 3 2.75 3H7V.75A.75.75 0 0 1 7.75 0Zm4.384 8.5a.25.25 0 0 0 .161-.06l2.07-1.75a.248.248 0 0 0 0-.38l-2.07-1.75a.25.25 0 0 0-.161-.06H2.75a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h9.384Z"],h:16,w:16},24:{p:["M11.75 1a.75.75 0 0 1 .75.75V4h6.532c.42 0 .826.15 1.143.425l3.187 2.75a1.75 1.75 0 0 1 0 2.65l-3.187 2.75a1.75 1.75 0 0 1-1.143.425H12.5v9.25a.75.75 0 0 1-1.5 0V13H3.75A1.75 1.75 0 0 1 2 11.25v-5.5C2 4.783 2.784 4 3.75 4H11V1.75a.75.75 0 0 1 .75-.75Zm7.282 4.5H3.75a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h15.282c.06 0 .118-.021.163-.06l3.188-2.75a.248.248 0 0 0 0-.38l-3.188-2.75a.249.249 0 0 0-.163-.06Z"],h:24,w:24}},il={16:{p:["M15.547 3.061A.75.75 0 0 1 16 3.75v8.5a.751.751 0 0 1-1.265.545l-4.5-4.25a.75.75 0 0 1 0-1.09l4.5-4.25a.75.75 0 0 1 .812-.144ZM0 12.25v-8.5a.751.751 0 0 1 1.265-.545l4.5 4.25a.75.75 0 0 1 0 1.09l-4.5 4.25A.75.75 0 0 1 0 12.25Zm1.5-6.76v5.02L4.158 8ZM11.842 8l2.658 2.51V5.49ZM8 4a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5A.75.75 0 0 1 8 4Zm.75-2.25v.5a.75.75 0 0 1-1.5 0v-.5a.75.75 0 0 1 1.5 0Zm0 6v.5a.75.75 0 0 1-1.5 0v-.5a.75.75 0 0 1 1.5 0ZM8 10a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5A.75.75 0 0 1 8 10Zm0 3a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5A.75.75 0 0 1 8 13Z"],h:16,w:16},24:{p:["M21.553 6.064A.75.75 0 0 1 22 6.75v10.5a.75.75 0 0 1-1.256.554l-5.75-5.25a.748.748 0 0 1 0-1.108l5.75-5.25a.75.75 0 0 1 .809-.132ZM2.447 17.936A.75.75 0 0 1 2 17.25V6.75a.75.75 0 0 1 1.256-.554l5.75 5.25a.748.748 0 0 1 0 1.108l-5.75 5.25a.75.75 0 0 1-.809.132ZM7.387 12 3.5 8.45v7.1L7.388 12Zm9.226 0 3.887 3.55v-7.1L16.612 12ZM12 2.75a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0 4a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0 8a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0 4a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm0-8a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},ol={16:{p:["M9.598 1.591a.749.749 0 0 1 .785-.175 7.001 7.001 0 1 1-8.967 8.967.75.75 0 0 1 .961-.96 5.5 5.5 0 0 0 7.046-7.046.75.75 0 0 1 .175-.786Zm1.616 1.945a7 7 0 0 1-7.678 7.678 5.499 5.499 0 1 0 7.678-7.678Z"],h:16,w:16},24:{p:["M14.768 3.96v.001l-.002-.005a9.08 9.08 0 0 0-.218-.779c-.13-.394.21-.8.602-.67.29.096.575.205.855.328l.01.005A10.002 10.002 0 0 1 12 22a10.002 10.002 0 0 1-9.162-5.985l-.004-.01a9.722 9.722 0 0 1-.329-.855c-.13-.392.277-.732.67-.602.257.084.517.157.78.218l.004.002A9 9 0 0 0 14.999 6a9.09 9.09 0 0 0-.231-2.04ZM16.5 6c0 5.799-4.701 10.5-10.5 10.5-.426 0-.847-.026-1.26-.075A8.5 8.5 0 1 0 16.425 4.74c.05.413.075.833.075 1.259Z"],h:24,w:24}},al={16:{p:["M7.693 1.066a.747.747 0 0 1 .614 0l7.25 3.25a.75.75 0 0 1 0 1.368L13 6.831v2.794c0 1.024-.81 1.749-1.66 2.173-.893.447-2.075.702-3.34.702-.278 0-.55-.012-.816-.036a.75.75 0 0 1 .133-1.494c.22.02.45.03.683.03 1.082 0 2.025-.221 2.67-.543.69-.345.83-.682.83-.832V7.503L8.307 8.934a.747.747 0 0 1-.614 0L4 7.28v1.663c.296.105.575.275.812.512.438.438.688 1.059.688 1.796v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1-.75-.75v-3c0-.737.25-1.358.688-1.796.237-.237.516-.407.812-.512V6.606L.443 5.684a.75.75 0 0 1 0-1.368ZM2.583 5 8 7.428 13.416 5 8 2.572ZM2.5 11.25v2.25H4v-2.25c0-.388-.125-.611-.25-.735a.697.697 0 0 0-.5-.203.707.707 0 0 0-.5.203c-.125.124-.25.347-.25.735Z"],h:16,w:16},24:{p:["M12.292 2.06v-.001l11.25 4.75a.749.749 0 0 1 0 1.382L19 10.108V15a.75.75 0 0 1-.11.391h-.001a2.84 2.84 0 0 1-.392.482c-.249.256-.625.58-1.163.896-1.08.638-2.776 1.23-5.334 1.23-.673 0-1.286-.041-1.846-.113a.75.75 0 0 1 .192-1.487c.492.063 1.042.1 1.654.1 2.317 0 3.746-.533 4.572-1.021.31-.178.596-.397.849-.65l.079-.085V10.74l-5.208 2.2a.75.75 0 0 1-.584 0L5.75 10.424v3.17c.502.129.96.391 1.327.758.579.578.923 1.41.923 2.428v4.5a.761.761 0 0 1-.345.634 2.157 2.157 0 0 1-.21.117 3.923 3.923 0 0 1-.52.213A6.121 6.121 0 0 1 5 22.532a6.092 6.092 0 0 1-1.925-.288 4.065 4.065 0 0 1-.52-.213 1.816 1.816 0 0 1-.22-.124.757.757 0 0 1-.335-.624v-4.5c0-1.02.344-1.85.923-2.43a2.904 2.904 0 0 1 1.327-.757V9.793L.458 8.19a.75.75 0 0 1 0-1.38l11.25-4.75a.75.75 0 0 1 .584 0ZM12 11.436 21.322 7.5 12 3.564 2.678 7.5ZM5 15c-.377 0-.745.141-1.017.413-.265.265-.483.7-.483 1.368v4.022c.299.105.797.228 1.5.228s1.201-.123 1.5-.228V16.78c0-.669-.218-1.103-.483-1.368A1.433 1.433 0 0 0 5 15Z"],h:24,w:24}},ll={16:{p:["M7.47 10.78a.749.749 0 0 0 1.06 0l3.75-3.75a.749.749 0 1 0-1.06-1.06L8.75 8.439V1.75a.75.75 0 0 0-1.5 0v6.689L4.78 5.97a.749.749 0 1 0-1.06 1.06l3.75 3.75ZM3.75 13a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"],h:16,w:16},24:{p:["M4 21.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1-.75-.75ZM5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"],h:24,w:24}},cl={16:{p:["m10.78 8.53-3.75 3.75a.749.749 0 1 1-1.06-1.06l2.469-2.47H1.75a.75.75 0 0 1 0-1.5h6.689L5.97 4.78a.749.749 0 1 1 1.06-1.06l3.75 3.75a.749.749 0 0 1 0 1.06ZM13 12.25v-8.5a.75.75 0 0 1 1.5 0v8.5a.75.75 0 0 1-1.5 0Z"],h:16,w:16},24:{p:["M11.22 5.22a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 0 1 0 1.06l-6.25 6.25a.749.749 0 1 1-1.06-1.06l4.969-4.97H1.75a.75.75 0 0 1 0-1.5h14.439L11.22 6.28a.749.749 0 0 1 0-1.06Zm10.03-1.47a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-1.5 0v-15a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},ul={16:{p:["M5.22 7.47a.749.749 0 0 0 0 1.06l3.75 3.75a.749.749 0 1 0 1.06-1.06L7.561 8.75h6.689a.75.75 0 0 0 0-1.5H7.561l2.469-2.47a.749.749 0 1 0-1.06-1.06L5.22 7.47ZM3 3.75a.75.75 0 0 0-1.5 0v8.5a.75.75 0 0 0 1.5 0v-8.5Z"],h:16,w:16},24:{p:["M12.78 18.78a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06l6.25-6.25a.749.749 0 1 1 1.06 1.06l-4.969 4.97H22.25a.75.75 0 0 1 0 1.5H7.811l4.969 4.97a.749.749 0 0 1 0 1.06ZM2.75 3.75a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-1.5 0v-15a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},hl={16:{p:["M3 2.25a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 2.25Zm5.53 2.97 3.75 3.75a.749.749 0 1 1-1.06 1.06L8.75 7.561v6.689a.75.75 0 0 1-1.5 0V7.561L4.78 10.03a.749.749 0 1 1-1.06-1.06l3.75-3.75a.749.749 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M4.75 3.5a.75.75 0 0 1 0-1.5h14.5a.75.75 0 0 1 0 1.5H4.75Zm.47 9.47a.749.749 0 1 0 1.06 1.06l4.97-4.969V21.25a.75.75 0 0 0 1.5 0V9.061l4.97 4.969a.749.749 0 1 0 1.06-1.06l-6.25-6.25a.749.749 0 0 0-1.06 0l-6.25 6.25Z"],h:24,w:24}},pl={16:{p:["M5.75 7.5h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5Zm0 5h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5Zm-4-10h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm10.314-3.082L11.07 2.417A.25.25 0 0 1 11.256 2h4.488a.25.25 0 0 1 .186.417l-2.244 2.5a.25.25 0 0 1-.372 0Z"],h:16,w:16},24:{p:["M8.75 11.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm-5-12h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM19.309 7.918l-2.245-2.501A.25.25 0 0 1 17.25 5h4.49a.25.25 0 0 1 .185.417l-2.244 2.5a.25.25 0 0 1-.372 0Z"],h:24,w:24}},dl={16:{p:["M8 2.75v10.5a.751.751 0 0 1-1.238.57L3.473 11H1.75A1.75 1.75 0 0 1 0 9.25v-2.5C0 5.784.784 5 1.75 5h1.722l3.29-2.82A.75.75 0 0 1 8 2.75Zm3.28 2.47L13 6.94l1.72-1.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L14.06 8l1.72 1.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L13 9.06l-1.72 1.72a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L11.94 8l-1.72-1.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-7.042 1.1a.752.752 0 0 1-.488.18h-2a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2c.179 0 .352.064.488.18L6.5 11.62V4.38Z"],h:16,w:16},24:{p:["M12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805A.75.75 0 0 1 12 3.75ZM6.255 9.305a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86V5.445ZM16.28 8.22a.75.75 0 1 0-1.06 1.06L17.94 12l-2.72 2.72a.75.75 0 1 0 1.06 1.06L19 13.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L20.06 12l2.72-2.72a.75.75 0 0 0-1.06-1.06L19 10.94l-2.72-2.72Z"],h:24,w:24}},ml={16:{p:["M4.25 7.25a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Z","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"],h:16,w:16},24:{p:["M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm15.75.75H5.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5Z"],h:24,w:24}},fl={12:{p:["M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm3 5H3v2h6Z"],h:12,w:12}},gl={16:{p:["M8.5.75a.75.75 0 0 0-1.5 0v5.19L4.391 3.33a.75.75 0 1 0-1.06 1.061L5.939 7H.75a.75.75 0 0 0 0 1.5h5.19l-2.61 2.609a.75.75 0 1 0 1.061 1.06L7 9.561v5.189a.75.75 0 0 0 1.5 0V9.56l2.609 2.61a.75.75 0 1 0 1.06-1.061L9.561 8.5h5.189a.75.75 0 0 0 0-1.5H9.56l2.61-2.609a.75.75 0 0 0-1.061-1.06L8.5 5.939V.75Z"],h:16,w:16},24:{p:["M12.5 1.25a.75.75 0 0 0-1.5 0v8.69L6.447 5.385a.75.75 0 1 0-1.061 1.06L9.94 11H1.25a.75.75 0 0 0 0 1.5h8.69l-4.554 4.553a.75.75 0 0 0 1.06 1.061L11 13.561v8.689a.75.75 0 0 0 1.5 0v-8.69l4.553 4.554a.75.75 0 0 0 1.061-1.06L13.561 12.5h8.689a.75.75 0 0 0 0-1.5h-8.69l4.554-4.553a.75.75 0 1 0-1.06-1.061L12.5 9.939V1.25Z"],h:24,w:24}},yl={16:{p:["M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25ZM3.5 6.25a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Zm.75 2.25h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M0 4.75C0 3.784.784 3 1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25Z","M5 8.75A.75.75 0 0 1 5.75 8h11.5a.75.75 0 0 1 0 1.5H5.75A.75.75 0 0 1 5 8.75Zm0 4a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},wl={16:{p:["M9 4.75A.75.75 0 0 1 9.75 4h4a.75.75 0 0 1 .53 1.28l-1.89 1.892c.312.076.604.18.867.319.742.391 1.244 1.063 1.244 2.005 0 .653-.231 1.208-.629 1.627-.386.408-.894.653-1.408.777-1.01.243-2.225.063-3.124-.527a.751.751 0 0 1 .822-1.254c.534.35 1.32.474 1.951.322.306-.073.53-.201.67-.349.129-.136.218-.32.218-.596 0-.308-.123-.509-.444-.678-.373-.197-.98-.318-1.806-.318a.75.75 0 0 1-.53-1.28l1.72-1.72H9.75A.75.75 0 0 1 9 4.75Zm-3.587 5.763c-.35-.05-.77.113-.983.572a.75.75 0 1 1-1.36-.632c.508-1.094 1.589-1.565 2.558-1.425 1 .145 1.872.945 1.872 2.222 0 1.433-1.088 2.192-1.79 2.681-.308.216-.571.397-.772.573H7a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75c0-.69.3-1.211.67-1.61.348-.372.8-.676 1.15-.92.8-.56 1.18-.904 1.18-1.474 0-.473-.267-.69-.587-.737ZM5.604.089A.75.75 0 0 1 6 .75v4.77h.711a.75.75 0 0 1 0 1.5H3.759a.75.75 0 0 1 0-1.5H4.5V2.15l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037Z"],h:16,w:16},24:{p:["M13.003 7.754a.75.75 0 0 1 .75-.75h5.232a.75.75 0 0 1 .53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 0 1 .755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 0 1-.53-1.28l2.643-2.644h-3.421a.75.75 0 0 1-.75-.75ZM7.88 15.215a1.4 1.4 0 0 0-1.446.83.75.75 0 0 1-1.37-.61 2.899 2.899 0 0 1 2.986-1.71c.589.06 1.139.323 1.557.743.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.071 1.071 0 0 0-.652-.298Zm.234-13.121a.75.75 0 0 1 .386.656V9h1.252a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5H7V4.103l-.853.533a.749.749 0 1 1-.795-1.272l2-1.25a.749.749 0 0 1 .762-.02Z"],h:24,w:24}},bl={16:{p:["M1.75 16A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0h8.5C11.216 0 12 .784 12 1.75v12.5c0 .085-.006.168-.018.25h2.268a.25.25 0 0 0 .25-.25V8.285a.25.25 0 0 0-.111-.208l-1.055-.703a.749.749 0 1 1 .832-1.248l1.055.703c.487.325.779.871.779 1.456v5.965A1.75 1.75 0 0 1 14.25 16h-3.5a.766.766 0 0 1-.197-.026c-.099.017-.2.026-.303.026h-3a.75.75 0 0 1-.75-.75V14h-1v1.25a.75.75 0 0 1-.75.75Zm-.25-1.75c0 .138.112.25.25.25H4v-1.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v1.25h2.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM3.75 6h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 3.75A.75.75 0 0 1 3.75 3h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 3.75Zm4 3A.75.75 0 0 1 7.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 6.75ZM7.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 9.75A.75.75 0 0 1 3.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 9.75ZM7.75 9h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M6.25 12a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM5.5 9.25a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM6.25 5a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM9 12.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Zm.75-4.25a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM9 5.75A.75.75 0 0 1 9.75 5h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 9 5.75ZM13.25 12a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Zm-.75-2.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM13.25 5a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z","M2 20V3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v17c0 .173-.022.34-.063.5H20a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.2-.4l-.5-.375a.75.75 0 0 1 .9-1.2l.5.375c.504.378.8.97.8 1.6v8a2 2 0 0 1-2 2h-3.562a.767.767 0 0 1-.166-.018c-.089.012-.18.018-.272.018h-3.75a.75.75 0 0 1-.75-.75V19h-3v2.25a.75.75 0 0 1-.75.75H4a2 2 0 0 1-2-2Zm2 .5h3v-2.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 .75.75v2.25h3a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H4a.5.5 0 0 0-.5.5v17a.5.5 0 0 0 .5.5Z"],h:24,w:24}},Cl={16:{p:["m8.878.392 5.25 3.045c.54.314.872.89.872 1.514v6.098a1.75 1.75 0 0 1-.872 1.514l-5.25 3.045a1.75 1.75 0 0 1-1.756 0l-5.25-3.045A1.75 1.75 0 0 1 1 11.049V4.951c0-.624.332-1.201.872-1.514L7.122.392a1.75 1.75 0 0 1 1.756 0ZM7.875 1.69l-4.63 2.685L8 7.133l4.755-2.758-4.63-2.685a.248.248 0 0 0-.25 0ZM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432Zm6.25 8.271 4.625-2.683a.25.25 0 0 0 .125-.216V5.677L8.75 8.432Z"],h:16,w:16},24:{p:["M12.876.64V.639l8.25 4.763c.541.313.875.89.875 1.515v9.525a1.75 1.75 0 0 1-.875 1.516l-8.25 4.762a1.748 1.748 0 0 1-1.75 0l-8.25-4.763a1.75 1.75 0 0 1-.875-1.515V6.917c0-.625.334-1.202.875-1.515L11.126.64a1.748 1.748 0 0 1 1.75 0Zm-1 1.298L4.251 6.34l7.75 4.474 7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0Zm.875 19.123 7.625-4.402a.25.25 0 0 0 .125-.216V7.639l-7.75 4.474ZM3.501 7.64v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z"],h:24,w:24}},vl={16:{p:["M6.122.392a1.75 1.75 0 0 1 1.756 0l5.25 3.045c.54.313.872.89.872 1.514V7.25a.75.75 0 0 1-1.5 0V5.677L7.75 8.432v6.384a1 1 0 0 1-1.502.865L.872 12.563A1.75 1.75 0 0 1 0 11.049V4.951c0-.624.332-1.2.872-1.514ZM7.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685L7 7.133l4.755-2.758ZM1.5 11.049a.25.25 0 0 0 .125.216l4.625 2.683V8.432L1.5 5.677Zm11.672-.282L11.999 12h3.251a.75.75 0 0 1 0 1.5h-3.251l1.173 1.233a.75.75 0 1 1-1.087 1.034l-2.378-2.5a.75.75 0 0 1 0-1.034l2.378-2.5a.75.75 0 0 1 1.087 1.034Z"],h:16,w:16},24:{p:["M9.126.64a1.748 1.748 0 0 1 1.75 0l8.25 4.762c.103.06.199.128.286.206a.75.75 0 0 1 .554.96c.023.113.035.23.035.35v3.332a.75.75 0 0 1-1.5 0V7.64l-7.75 4.474V22.36a.75.75 0 0 1-1.125.65l-8.75-5.052a1.75 1.75 0 0 1-.875-1.515V6.917c0-.119.012-.236.035-.35a.749.749 0 0 1 .554-.96c.088-.078.184-.146.286-.205L9.126.639Zm.875 10.173v.001l7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0L2.251 6.34Zm-8.5-3.175v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z","m16.617 17.5 2.895-2.702a.75.75 0 0 0-1.024-1.096l-4.285 4a.75.75 0 0 0 0 1.096l4.285 4a.75.75 0 1 0 1.024-1.096L16.617 19h6.633a.75.75 0 0 0 0-1.5h-6.633Z"],h:24,w:24}},Sl={16:{p:["M6.122.392a1.75 1.75 0 0 1 1.756 0l5.25 3.045c.54.313.872.89.872 1.514V7.25a.75.75 0 0 1-1.5 0V5.677L7.75 8.432v6.384a1 1 0 0 1-1.502.865L.872 12.563A1.75 1.75 0 0 1 0 11.049V4.951c0-.624.332-1.2.872-1.514ZM7.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685L7 7.133l4.755-2.758ZM1.5 11.049a.25.25 0 0 0 .125.216l4.625 2.683V8.432L1.5 5.677Zm10.828 3.684 1.173-1.233H10.25a.75.75 0 0 1 0-1.5h3.251l-1.173-1.233a.75.75 0 1 1 1.087-1.034l2.378 2.5a.75.75 0 0 1 0 1.034l-2.378 2.5a.75.75 0 0 1-1.087-1.034Z"],h:16,w:16},24:{p:["M9.126.64a1.748 1.748 0 0 1 1.75 0l8.25 4.762c.103.06.199.128.286.206a.75.75 0 0 1 .554.96c.023.113.035.23.035.35v3.332a.75.75 0 0 1-1.5 0V7.64l-7.75 4.474V22.36a.75.75 0 0 1-1.125.65l-8.75-5.052a1.75 1.75 0 0 1-.875-1.515V6.917c0-.119.012-.236.035-.35a.749.749 0 0 1 .554-.96c.088-.078.184-.146.286-.205L9.126.639Zm.875 10.173v.001l7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0L2.251 6.34Zm-8.5-3.175v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z","m21.347 17.5-2.894-2.702a.75.75 0 1 1 1.023-1.096l4.286 4a.75.75 0 0 1 0 1.096l-4.286 4a.75.75 0 1 1-1.023-1.096L21.347 19h-6.633a.75.75 0 0 1 0-1.5h6.633Z"],h:24,w:24}},El={16:{p:["M11.134 1.535c.7-.509 1.416-.942 2.076-1.155.649-.21 1.463-.267 2.069.34.603.601.568 1.411.368 2.07-.202.668-.624 1.39-1.125 2.096-1.011 1.424-2.496 2.987-3.775 4.249-1.098 1.084-2.132 1.839-3.04 2.3a3.744 3.744 0 0 1-1.055 3.217c-.431.431-1.065.691-1.657.861-.614.177-1.294.287-1.914.357A21.151 21.151 0 0 1 .797 16H.743l.007-.75H.749L.742 16a.75.75 0 0 1-.743-.742l.743-.008-.742.007v-.054a21.25 21.25 0 0 1 .13-2.284c.067-.647.187-1.287.358-1.914.17-.591.43-1.226.86-1.657a3.746 3.746 0 0 1 3.227-1.054c.466-.893 1.225-1.907 2.314-2.982 1.271-1.255 2.833-2.75 4.245-3.777ZM1.62 13.089c-.051.464-.086.929-.104 1.395.466-.018.932-.053 1.396-.104a10.511 10.511 0 0 0 1.668-.309c.526-.151.856-.325 1.011-.48a2.25 2.25 0 1 0-3.182-3.182c-.155.155-.329.485-.48 1.01a10.515 10.515 0 0 0-.309 1.67Zm10.396-10.34c-1.224.89-2.605 2.189-3.822 3.384l1.718 1.718c1.21-1.205 2.51-2.597 3.387-3.833.47-.662.78-1.227.912-1.662.134-.444.032-.551.009-.575h-.001V1.78c-.014-.014-.113-.113-.548.027-.432.14-.995.462-1.655.942Zm-4.832 7.266-.001.001a9.859 9.859 0 0 0 1.63-1.142L7.155 7.216a9.7 9.7 0 0 0-1.161 1.607c.482.302.889.71 1.19 1.192Z"],h:16,w:16}},kl={16:{p:["M.989 8 .064 2.68a1.342 1.342 0 0 1 1.85-1.462l13.402 5.744a1.13 1.13 0 0 1 0 2.076L1.913 14.782a1.343 1.343 0 0 1-1.85-1.463L.99 8Zm.603-5.288L2.38 7.25h4.87a.75.75 0 0 1 0 1.5H2.38l-.788 4.538L13.929 8Z"],h:16,w:16},24:{p:["M1.513 1.96a1.374 1.374 0 0 1 1.499-.21l19.335 9.215a1.147 1.147 0 0 1 0 2.07L3.012 22.25a1.374 1.374 0 0 1-1.947-1.46L2.49 12 1.065 3.21a1.375 1.375 0 0 1 .448-1.25Zm2.375 10.79-1.304 8.042L21.031 12 2.584 3.208l1.304 8.042h7.362a.75.75 0 0 1 0 1.5Z"],h:24,w:24}},Rl={16:{p:["M12.212 3.02a1.753 1.753 0 0 0-2.478.003l-5.83 5.83a3.007 3.007 0 0 0-.88 2.127c0 .795.315 1.551.88 2.116.567.567 1.333.89 2.126.89.79 0 1.548-.321 2.116-.89l5.48-5.48a.75.75 0 0 1 1.061 1.06l-5.48 5.48a4.492 4.492 0 0 1-3.177 1.33c-1.2 0-2.345-.487-3.187-1.33a4.483 4.483 0 0 1-1.32-3.177c0-1.195.475-2.341 1.32-3.186l5.83-5.83a3.25 3.25 0 0 1 5.553 2.297c0 .863-.343 1.691-.953 2.301L7.439 12.39c-.375.377-.884.59-1.416.593a1.998 1.998 0 0 1-1.412-.593 1.992 1.992 0 0 1 0-2.828l5.48-5.48a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-5.48 5.48a.492.492 0 0 0 0 .707.499.499 0 0 0 .352.154.51.51 0 0 0 .356-.154l5.833-5.827a1.755 1.755 0 0 0 0-2.481Z"],h:16,w:16},24:{p:["M19.187 3.588a2.75 2.75 0 0 0-3.889 0L5.575 13.31a4.5 4.5 0 0 0 6.364 6.364l8.662-8.662a.75.75 0 0 1 1.061 1.06L13 20.735a6 6 0 0 1-8.485-8.485l9.723-9.723a4.247 4.247 0 0 1 4.124-1.139 4.247 4.247 0 0 1 3.025 3.025 4.247 4.247 0 0 1-1.139 4.124l-9.193 9.193a2.64 2.64 0 0 1-1.858.779 2.626 2.626 0 0 1-1.854-.779c-.196-.196-.338-.47-.43-.726a2.822 2.822 0 0 1-.168-.946c0-.7.284-1.373.775-1.864l8.132-8.131a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-8.131 8.132a1.148 1.148 0 0 0-.336.803c.003.204.053.405.146.587.01.018.018.028.02.032.22.215.501.332.786.332.29 0 .58-.121.798-.34l9.192-9.192a2.75 2.75 0 0 0 0-3.89Z"],h:24,w:24}},Al={16:{p:["M2.743 4.757a3.757 3.757 0 1 1 5.851 3.119 5.991 5.991 0 0 1 2.15 1.383c.17.17.257.405.258.646.003.598.001 1.197 0 1.795L11 12.778v.721a.5.5 0 0 1-.5.5H1.221a.749.749 0 0 1-.714-.784 6.004 6.004 0 0 1 3.899-5.339 3.754 3.754 0 0 1-1.663-3.119Z","M15.75 6.875c0 .874-.448 1.643-1.127 2.09a.265.265 0 0 0-.123.22v.59c0 .067-.026.13-.073.177l-.356.356a.125.125 0 0 0 0 .177l.356.356c.047.047.073.11.073.176v.231c0 .067-.026.13-.073.177l-.356.356a.125.125 0 0 0 0 .177l.356.356c.047.047.073.11.073.177v.287a.247.247 0 0 1-.065.168l-.8.88a.52.52 0 0 1-.77 0l-.8-.88a.247.247 0 0 1-.065-.168V9.185a.264.264 0 0 0-.123-.22 2.5 2.5 0 1 1 3.873-2.09ZM14 6.5a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16},24:{p:["M9.496 2a5.25 5.25 0 0 0-2.519 9.857A9.006 9.006 0 0 0 .5 20.228a.751.751 0 0 0 .728.772h5.257c3.338.001 6.677.002 10.015 0a.5.5 0 0 0 .5-.5v-4.669a.95.95 0 0 0-.171-.551 9.02 9.02 0 0 0-4.814-3.423A5.25 5.25 0 0 0 9.496 2Z","M23.625 10.313c0 1.31-.672 2.464-1.691 3.134a.398.398 0 0 0-.184.33v.886a.372.372 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534c.071.07.11.166.11.265v.347a.374.374 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534a.37.37 0 0 1 .11.265v.431a.379.379 0 0 1-.097.253l-1.2 1.319a.781.781 0 0 1-1.156 0l-1.2-1.319a.379.379 0 0 1-.097-.253v-5.39a.398.398 0 0 0-.184-.33 3.75 3.75 0 1 1 5.809-3.134ZM21 9.75a1.125 1.125 0 1 0-2.25 0 1.125 1.125 0 0 0 2.25 0Z"],h:24,w:24}},Tl={16:{p:["M3.626 3.533a.249.249 0 0 0-.126.217v9.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-9.5a.249.249 0 0 0-.126-.217.75.75 0 0 1 .752-1.298c.541.313.874.89.874 1.515v9.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-9.5c0-.625.333-1.202.874-1.515a.75.75 0 0 1 .752 1.298ZM5.75 1h4.5a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 4.75v-3A.75.75 0 0 1 5.75 1Zm.75 3h3V2.5h-3Z"],h:16,w:16},24:{p:["M5.962 2.513a.75.75 0 0 1-.475.949l-.816.272a.25.25 0 0 0-.171.237V21.25c0 .138.112.25.25.25h14.5a.25.25 0 0 0 .25-.25V3.97a.25.25 0 0 0-.17-.236l-.817-.272a.75.75 0 0 1 .474-1.424l.816.273A1.751 1.751 0 0 1 21 3.97v17.28A1.75 1.75 0 0 1 19.25 23H4.75A1.75 1.75 0 0 1 3 21.25V3.97a1.75 1.75 0 0 1 1.197-1.66l.816-.272a.75.75 0 0 1 .949.475Z","M7 1.75C7 .784 7.784 0 8.75 0h6.5C16.216 0 17 .784 17 1.75v1.5A1.75 1.75 0 0 1 15.25 5h-6.5A1.75 1.75 0 0 1 7 3.25Zm1.75-.25a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},xl={16:{p:["M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"],h:16,w:16},24:{p:["M17.263 2.177a1.75 1.75 0 0 1 2.474 0l2.586 2.586a1.75 1.75 0 0 1 0 2.474L19.53 10.03l-.012.013L8.69 20.378a1.753 1.753 0 0 1-.699.409l-5.523 1.68a.748.748 0 0 1-.747-.188.748.748 0 0 1-.188-.747l1.673-5.5a1.75 1.75 0 0 1 .466-.756L14.476 4.963ZM4.708 16.361a.26.26 0 0 0-.067.108l-1.264 4.154 4.177-1.271a.253.253 0 0 0 .1-.059l10.273-9.806-2.94-2.939-10.279 9.813ZM19 8.44l2.263-2.262a.25.25 0 0 0 0-.354l-2.586-2.586a.25.25 0 0 0-.354 0L16.061 5.5Z"],h:24,w:24}},Dl={16:{p:["M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z"],h:16,w:16},24:{p:["M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"],h:24,w:24}},Ml={16:{p:["M10.561 8.073a6.005 6.005 0 0 1 3.432 5.142.75.75 0 1 1-1.498.07 4.5 4.5 0 0 0-8.99 0 .75.75 0 0 1-1.498-.07 6.004 6.004 0 0 1 3.431-5.142 3.999 3.999 0 1 1 5.123 0ZM10.5 5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"],h:16,w:16},24:{p:["M12 2.5a5.5 5.5 0 0 1 3.096 10.047 9.005 9.005 0 0 1 5.9 8.181.75.75 0 1 1-1.499.044 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.5-.045 9.005 9.005 0 0 1 5.9-8.18A5.5 5.5 0 0 1 12 2.5ZM8 8a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"],h:24,w:24}},Pl={16:{p:["M7.9 8.548h-.001a5.528 5.528 0 0 1 3.1 4.659.75.75 0 1 1-1.498.086A4.01 4.01 0 0 0 5.5 9.5a4.01 4.01 0 0 0-4.001 3.793.75.75 0 1 1-1.498-.085 5.527 5.527 0 0 1 3.1-4.66 3.5 3.5 0 1 1 4.799 0ZM13.25 0a.75.75 0 0 1 .75.75V2h1.25a.75.75 0 0 1 0 1.5H14v1.25a.75.75 0 0 1-1.5 0V3.5h-1.25a.75.75 0 0 1 0-1.5h1.25V.75a.75.75 0 0 1 .75-.75ZM5.5 4a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 4Z"],h:16,w:16},24:{p:["M4 9.5a5 5 0 1 1 7.916 4.062 7.973 7.973 0 0 1 5.018 7.166.75.75 0 1 1-1.499.044 6.469 6.469 0 0 0-12.932 0 .75.75 0 0 1-1.499-.044 7.972 7.972 0 0 1 5.059-7.181A4.994 4.994 0 0 1 4 9.5ZM9 6a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm10.25-5a.75.75 0 0 1 .75.75V4h2.25a.75.75 0 0 1 0 1.5H20v2.25a.75.75 0 0 1-1.5 0V5.5h-2.25a.75.75 0 0 1 0-1.5h2.25V1.75a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Il={16:{p:["M4.243 4.757a3.757 3.757 0 1 1 5.851 3.119 6.006 6.006 0 0 1 3.9 5.339.75.75 0 0 1-.715.784H2.721a.75.75 0 0 1-.714-.784 6.006 6.006 0 0 1 3.9-5.34 3.753 3.753 0 0 1-1.664-3.118Z"],h:16,w:16},24:{p:["M12 2.5a5.25 5.25 0 0 0-2.519 9.857 9.005 9.005 0 0 0-6.477 8.37.75.75 0 0 0 .727.773H20.27a.75.75 0 0 0 .727-.772 9.005 9.005 0 0 0-6.477-8.37A5.25 5.25 0 0 0 12 2.5Z"],h:24,w:24}},_l={16:{p:["m11.294.984 3.722 3.722a1.75 1.75 0 0 1-.504 2.826l-1.327.613a3.089 3.089 0 0 0-1.707 2.084l-.584 2.454c-.317 1.332-1.972 1.8-2.94.832L5.75 11.311 1.78 15.28a.749.749 0 1 1-1.06-1.06l3.969-3.97-2.204-2.204c-.968-.968-.5-2.623.832-2.94l2.454-.584a3.08 3.08 0 0 0 2.084-1.707l.613-1.327a1.75 1.75 0 0 1 2.826-.504ZM6.283 9.723l2.732 2.731a.25.25 0 0 0 .42-.119l.584-2.454a4.586 4.586 0 0 1 2.537-3.098l1.328-.613a.25.25 0 0 0 .072-.404l-3.722-3.722a.25.25 0 0 0-.404.072l-.613 1.328a4.584 4.584 0 0 1-3.098 2.537l-2.454.584a.25.25 0 0 0-.119.42l2.731 2.732Z"],h:16,w:16},24:{p:["m16.114 1.553 6.333 6.333a1.75 1.75 0 0 1-.603 2.869l-1.63.633a5.67 5.67 0 0 0-3.395 3.725l-1.131 3.959a1.75 1.75 0 0 1-2.92.757L9 16.061l-5.595 5.594a.749.749 0 1 1-1.06-1.06L7.939 15l-3.768-3.768a1.75 1.75 0 0 1 .757-2.92l3.959-1.131a5.666 5.666 0 0 0 3.725-3.395l.633-1.63a1.75 1.75 0 0 1 2.869-.603ZM5.232 10.171l8.597 8.597a.25.25 0 0 0 .417-.108l1.131-3.959A7.17 7.17 0 0 1 19.67 9.99l1.63-.634a.25.25 0 0 0 .086-.409l-6.333-6.333a.25.25 0 0 0-.409.086l-.634 1.63a7.17 7.17 0 0 1-4.711 4.293L5.34 9.754a.25.25 0 0 0-.108.417Z"],h:24,w:24}},Fl={16:{p:["m1.655.595 13.75 13.75q.22.219.22.53 0 .311-.22.53-.219.22-.53.22-.311 0-.53-.22L.595 1.655q-.22-.219-.22-.53 0-.311.22-.53.219-.22.53-.22.311 0 .53.22ZM.72 14.22l4.5-4.5q.219-.22.53-.22.311 0 .53.22.22.219.22.53 0 .311-.22.53l-4.5 4.5q-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53Z","m5.424 6.146-1.759.419q-.143.034-.183.175-.04.141.064.245l5.469 5.469q.104.104.245.064.141-.04.175-.183l.359-1.509q.072-.302.337-.465.264-.163.567-.091.302.072.465.337.162.264.09.567l-.359 1.509q-.238.999-1.226 1.278-.988.28-1.714-.446L2.485 8.046q-.726-.726-.446-1.714.279-.988 1.278-1.226l1.759-.419q.303-.072.567.091.265.163.337.465.072.302-.091.567-.163.264-.465.336ZM7.47 3.47q.155-.156.247-.355l.751-1.627Q8.851.659 9.75.498q.899-.16 1.544.486l3.722 3.722q.646.645.486 1.544-.161.899-.99 1.282l-1.627.751q-.199.092-.355.247-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53.344-.345.787-.549l1.627-.751q.118-.055.141-.183.023-.128-.069-.221l-3.722-3.722q-.092-.092-.221-.069-.128.023-.183.141l-.751 1.627q-.204.443-.549.787-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53Z"],h:16,w:16},24:{p:["M2.345 20.595 8.47 14.47q.219-.22.53-.22.311 0 .53.22.22.219.22.53 0 .311-.22.53l-6.125 6.125q-.219.22-.53.22-.311 0-.53-.22-.22-.219-.22-.53 0-.311.22-.53Z","m16.72 11.97.358-.358a6.738 6.738 0 0 1 2.326-1.518l1.896-.738a.25.25 0 0 0 .086-.409l-6.333-6.333a.25.25 0 0 0-.409.086l-.521 1.34a8.663 8.663 0 0 1-2.243 3.265.75.75 0 0 1-1.01-1.11 7.132 7.132 0 0 0 1.854-2.699l.521-1.34a1.75 1.75 0 0 1 2.869-.603l6.333 6.333a1.75 1.75 0 0 1-.603 2.869l-1.896.737a5.26 5.26 0 0 0-1.81 1.18l-.358.358a.749.749 0 1 1-1.06-1.06Zm-12.549-.738a1.75 1.75 0 0 1 .757-2.92l3.366-.962.412 1.443-3.366.961a.25.25 0 0 0-.108.417l8.597 8.597a.25.25 0 0 0 .417-.108l.961-3.366 1.443.412-.962 3.366a1.75 1.75 0 0 1-2.92.757Z","m3.405 2.095 18.75 18.75q.22.219.22.53 0 .311-.22.53-.219.22-.53.22-.311 0-.53-.22L2.345 3.155q-.22-.219-.22-.53 0-.311.22-.53.219-.22.53-.22.311 0 .53.22Z"],h:24,w:24}},Nl={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.217 0 16 .784 16 1.75v5.5a.75.75 0 0 1-1.5 0V6.5h-8v8h.75a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 0 14.25ZM1.5 6.5v7.75c0 .138.112.25.25.25H5v-8Zm5-1.5h8V1.75a.25.25 0 0 0-.25-.25H6.5ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z","m11.017 9.89-2.882 2.677a.249.249 0 0 0 0 .366l2.882 2.677a.25.25 0 0 0 .421-.183V13.5H12.5A3.5 3.5 0 0 0 16 10a.75.75 0 0 0-1.5 0 2 2 0 0 1-2 2h-1.062v-1.927a.25.25 0 0 0-.421-.183Z"],h:16,w:16},24:{p:["M2 3.75C2 2.783 2.783 2 3.75 2h16.5c.966 0 1.75.783 1.75 1.75V10a.75.75 0 0 1-1.5 0V8.75H8.75V20.5H10a.75.75 0 0 1 0 1.5H3.75A1.75 1.75 0 0 1 2 20.25Zm6.75-.25v3.75H20.5v-3.5a.25.25 0 0 0-.25-.25Zm-1.5 17V8.75H3.5v11.5c0 .138.112.25.25.25ZM3.5 7.25h3.75V3.5h-3.5a.25.25 0 0 0-.25.25Z","M21.25 12.312a.75.75 0 0 1 .75.75v2.626a3.75 3.75 0 0 1-3.75 3.75h-3.502l2.032 2.032a.749.749 0 1 1-1.06 1.06l-3.25-3.25a.749.749 0 0 1 0-1.06l3.25-3.25a.749.749 0 1 1 1.06 1.06l-1.907 1.908h3.377a2.25 2.25 0 0 0 2.25-2.25v-2.626a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Ol={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"],h:16,w:16},24:{p:["M9.5 15.584V8.416a.5.5 0 0 1 .77-.42l5.576 3.583a.5.5 0 0 1 0 .842l-5.576 3.584a.5.5 0 0 1-.77-.42Z","M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5Z"],h:24,w:24}},Ll={16:{p:["M4 8H2.5a1 1 0 0 0-1 1v5.25a.75.75 0 0 1-1.5 0V9a2.5 2.5 0 0 1 2.5-2.5H4V5.133a1.75 1.75 0 0 1 1.533-1.737l2.831-.353.76-.913c.332-.4.825-.63 1.344-.63h.782c.966 0 1.75.784 1.75 1.75V4h2.25a.75.75 0 0 1 0 1.5H13v4h2.25a.75.75 0 0 1 0 1.5H13v.75a1.75 1.75 0 0 1-1.75 1.75h-.782c-.519 0-1.012-.23-1.344-.63l-.761-.912-2.83-.354A1.75 1.75 0 0 1 4 9.867Zm6.276-4.91-.95 1.14a.753.753 0 0 1-.483.265l-3.124.39a.25.25 0 0 0-.219.248v4.734c0 .126.094.233.219.249l3.124.39a.752.752 0 0 1 .483.264l.95 1.14a.25.25 0 0 0 .192.09h.782a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-.782a.25.25 0 0 0-.192.09Z"],h:16,w:16},24:{p:["M7 11.5H2.938c-.794 0-1.438.644-1.438 1.437v8.313a.75.75 0 0 1-1.5 0v-8.312A2.939 2.939 0 0 1 2.937 10H7V6.151c0-.897.678-1.648 1.57-1.74l6.055-.626 1.006-1.174A1.752 1.752 0 0 1 16.96 2h1.29c.966 0 1.75.784 1.75 1.75V6h3.25a.75.75 0 0 1 0 1.5H20V14h3.25a.75.75 0 0 1 0 1.5H20v2.25a1.75 1.75 0 0 1-1.75 1.75h-1.29a1.75 1.75 0 0 1-1.329-.611l-1.006-1.174-6.055-.627A1.749 1.749 0 0 1 7 15.348Zm9.77-7.913v.001l-1.201 1.4a.75.75 0 0 1-.492.258l-6.353.657a.25.25 0 0 0-.224.249v9.196a.25.25 0 0 0 .224.249l6.353.657c.191.02.368.112.493.258l1.2 1.401a.252.252 0 0 0 .19.087h1.29a.25.25 0 0 0 .25-.25v-14a.25.25 0 0 0-.25-.25h-1.29a.252.252 0 0 0-.19.087Z"],h:24,w:24}},Bl={16:{p:["M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"],h:16,w:16},24:{p:["M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},Hl={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7.25-3.25v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M12.75 7.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Ul={16:{p:["M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25ZM11.75 3a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 1 .75-.75Zm-8.25.75a.75.75 0 0 1 1.5 0v5.5a.75.75 0 0 1-1.5 0ZM8 3a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 3Z"],h:16,w:16},24:{p:["M7.25 6a.75.75 0 0 0-.75.75v7.5a.75.75 0 0 0 1.5 0v-7.5A.75.75 0 0 0 7.25 6ZM12 6a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 6Zm4 .75a.75.75 0 0 1 1.5 0v9.5a.75.75 0 0 1-1.5 0v-9.5Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75a.25.25 0 0 0-.25.25Z"],h:24,w:24}},Zl={16:{p:["M4.75 7a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5ZM5 4.75A.75.75 0 0 1 5.75 4h5.5a.75.75 0 0 1 0 1.5h-5.5A.75.75 0 0 1 5 4.75ZM6.75 10a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z","M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M8.75 7a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5ZM7 11.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75ZM9.75 15a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z","M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},$l={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16h-8.5a.75.75 0 0 1 0-1.5h8.5a.25.25 0 0 0 .25-.25V6.5h-13v1.75a.75.75 0 0 1-1.5 0ZM6.5 5h8V1.75a.25.25 0 0 0-.25-.25H6.5Zm-5 0H5V1.5H1.75a.25.25 0 0 0-.25.25Z","M1.5 13.737a2.25 2.25 0 0 1 2.262-2.25L4 11.49v1.938c0 .218.26.331.42.183l2.883-2.677a.25.25 0 0 0 0-.366L4.42 7.89a.25.25 0 0 0-.42.183V9.99l-.23-.001A3.75 3.75 0 0 0 0 13.738v1.012a.75.75 0 0 0 1.5 0v-1.013Z"],h:16,w:16},24:{p:["M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H9.75a.75.75 0 0 1 0-1.5h10.5a.25.25 0 0 0 .25-.25V9h-17v3A.75.75 0 0 1 2 12ZM9 7.5h11.5V3.75a.25.25 0 0 0-.25-.25H9Zm-5.5 0h4v-4H3.75a.25.25 0 0 0-.25.25Z","m9.308 14.5-2.104-2.236a.75.75 0 1 1 1.092-1.028l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.75.75 0 1 1-1.092-1.028L9.308 16H6.09a2.59 2.59 0 0 0-2.59 2.59v2.66a.75.75 0 0 1-1.5 0v-2.66a4.09 4.09 0 0 1 4.09-4.09h3.218Z"],h:24,w:24}},Wl={16:{p:["M1.5 1.75v1.562a.75.75 0 1 1-1.5 0V1.75C0 .784.784 0 1.75 0h1.562a.75.75 0 1 1 0 1.5H1.75a.25.25 0 0 0-.25.25ZM6.438 0h3.124a.75.75 0 1 1 0 1.5H6.438a.75.75 0 1 1 0-1.5Zm6.25 0h1.562C15.217 0 16 .784 16 1.75v1.562a.75.75 0 1 1-1.5 0V1.75a.25.25 0 0 0-.25-.25h-1.562a.75.75 0 1 1 0-1.5ZM1.5 6.438v3.124a.75.75 0 1 1-1.5 0V6.438a.75.75 0 1 1 1.5 0Zm14.5 0v3.124a.75.75 0 1 1-1.5 0V6.438a.75.75 0 1 1 1.5 0Zm-14.5 6.25v1.562c0 .138.112.25.25.25h1.562a.75.75 0 1 1 0 1.5H1.75A1.75 1.75 0 0 1 0 14.25v-1.562a.75.75 0 1 1 1.5 0Zm14.5 0v1.562A1.75 1.75 0 0 1 14.25 16h-1.562a.75.75 0 1 1 0-1.5h1.562a.25.25 0 0 0 .25-.25v-1.562a.75.75 0 1 1 1.5 0ZM6.438 14.5h3.124a.75.75 0 1 1 0 1.5H6.438a.75.75 0 1 1 0-1.5ZM6.5 3v1A.75.75 0 0 1 5 4V3a.75.75 0 0 1 1.5 0ZM2.25 5.75A.75.75 0 0 1 3 5h1a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75Zm4.5 0A.75.75 0 0 1 7.5 5h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm-1 1a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Zm.75 4v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0Zm3.5-5a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M3.75 3.5a.25.25 0 0 0-.25.25v2.062a.75.75 0 1 1-1.5 0V3.75C2 2.783 2.783 2 3.75 2h2.062a.75.75 0 1 1 0 1.5Zm13.688-.75a.75.75 0 0 1 .75-.75h2.062c.966 0 1.75.783 1.75 1.75v2.062a.75.75 0 1 1-1.5 0V3.75a.25.25 0 0 0-.25-.25h-2.062a.75.75 0 0 1-.75-.75ZM2.75 17.438a.75.75 0 0 1 .75.75v2.062c0 .138.112.25.25.25h2.062a.75.75 0 1 1 0 1.5H3.75A1.75 1.75 0 0 1 2 20.25v-2.062a.75.75 0 0 1 .75-.75Zm18.5 0a.75.75 0 0 1 .75.75v2.062A1.75 1.75 0 0 1 20.25 22h-2.062a.75.75 0 1 1 0-1.5h2.062a.25.25 0 0 0 .25-.25v-2.062a.75.75 0 0 1 .75-.75Zm-18.5-8.25a.75.75 0 0 1 .75.75v4.124a.75.75 0 1 1-1.5 0V9.938a.75.75 0 0 1 .75-.75ZM9.188 2.75a.75.75 0 0 1 .75-.75h4.124a.75.75 0 1 1 0 1.5H9.938a.75.75 0 0 1-.75-.75Zm0 18.5a.75.75 0 0 1 .75-.75h4.124a.75.75 0 1 1 0 1.5H9.938a.75.75 0 0 1-.75-.75ZM21.25 9.188a.75.75 0 0 1 .75.75v4.124a.75.75 0 1 1-1.5 0V9.938a.75.75 0 0 1 .75-.75ZM3.75 8.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm5.5 0A.75.75 0 0 1 10 7.5h2A.75.75 0 0 1 12 9h-2a.75.75 0 0 1-.75-.75Zm-1-4.5A.75.75 0 0 1 9 4.5v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm0 5.5A.75.75 0 0 1 9 10v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm0 4.75a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75ZM14 8.25a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Vl={16:{p:["M6 2c.306 0 .582.187.696.471L10 10.731l1.304-3.26A.751.751 0 0 1 12 7h3.25a.75.75 0 0 1 0 1.5h-2.742l-1.812 4.528a.751.751 0 0 1-1.392 0L6 4.77 4.696 8.03A.75.75 0 0 1 4 8.5H.75a.75.75 0 0 1 0-1.5h2.742l1.812-4.529A.751.751 0 0 1 6 2Z"],h:16,w:16},24:{p:["M9.002 2.5a.75.75 0 0 1 .691.464l6.302 15.305 2.56-6.301a.75.75 0 0 1 .695-.468h4a.75.75 0 0 1 0 1.5h-3.495l-3.06 7.532a.75.75 0 0 1-1.389.004L8.997 5.21l-3.054 7.329A.75.75 0 0 1 5.25 13H.75a.75.75 0 0 1 0-1.5h4l3.558-8.538a.75.75 0 0 1 .694-.462Z"],h:24,w:24}},ql={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Gl={16:{p:["M1.75 2.5h10.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5Zm4 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2.5 7.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 1.5 0Z"],h:16,w:16},24:{p:["M3 6.25a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.25Zm5 6.063a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75Zm0 5.937a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75ZM3.75 11a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z"],h:24,w:24}},zl={16:{p:["M7.115.65a1.752 1.752 0 0 1 1.77 0l6.25 3.663c.536.314.865.889.865 1.51v6.427A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25V5.823c0-.621.33-1.196.865-1.51Zm1.011 1.293a.252.252 0 0 0-.252 0l-5.72 3.353L6.468 7.76a2.748 2.748 0 0 1 3.066 0l4.312-2.464-5.719-3.353ZM13.15 12.5 8.772 9.06a1.25 1.25 0 0 0-1.544 0L2.85 12.5Zm1.35-5.85-3.687 2.106 3.687 2.897ZM5.187 8.756 1.5 6.65v5.003Z"],h:16,w:16},24:{p:["M10.89 1.767a2.252 2.252 0 0 1 2.22 0l9.75 5.525A2.25 2.25 0 0 1 24 9.249v9.501A2.25 2.25 0 0 1 21.75 21H2.25A2.25 2.25 0 0 1 0 18.75v-9.5c0-.81.435-1.558 1.14-1.958Zm1.48 1.305a.75.75 0 0 0-.74 0l-9.316 5.28 7.41 4.233a3.75 3.75 0 0 1 4.553 0l7.41-4.234-9.317-5.28ZM20.65 19.5l-7.26-5.704a2.25 2.25 0 0 0-2.78 0L3.35 19.5Zm1.85-9.886-6.95 3.971 6.663 5.236c.089.07.161.159.21.26a.745.745 0 0 0 .077-.331ZM8.45 13.585 1.5 9.614v9.136c0 .119.028.23.076.33a.744.744 0 0 1 .21-.259Z"],h:24,w:24}},jl={16:{p:["M14.78 6.28a.749.749 0 0 0 0-1.06l-3.5-3.5a.749.749 0 1 0-1.06 1.06L12.439 5H5.251l-.001.007L5.251 5a.8.8 0 0 0-.171.019A4.501 4.501 0 0 0 5.5 14h1.704a.75.75 0 0 0 0-1.5H5.5a3 3 0 1 1 0-6h6.939L10.22 8.72a.749.749 0 1 0 1.06 1.06l3.5-3.5Z"],h:16,w:16}},Kl={16:{p:["M13.94 3.045a.75.75 0 0 0-1.38-.59l-4.5 10.5a.75.75 0 1 0 1.38.59l4.5-10.5ZM5 11.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"],h:16,w:16},24:{p:["M19.564 4.42a.75.75 0 0 0-1.378-.59l-6.75 15.75a.75.75 0 0 0 1.378.59l6.75-15.75ZM7 18.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"],h:24,w:24}},Yl={16:{p:["M6.78 1.97a.75.75 0 0 1 0 1.06L3.81 6h6.44A4.75 4.75 0 0 1 15 10.75v2.5a.75.75 0 0 1-1.5 0v-2.5a3.25 3.25 0 0 0-3.25-3.25H3.81l2.97 2.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L1.47 7.28a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z"],h:16,w:16},24:{p:["M10.53 5.03a.75.75 0 1 0-1.06-1.06l-6.25 6.25a.75.75 0 0 0 0 1.06l6.25 6.25a.75.75 0 1 0 1.06-1.06L5.56 11.5H17a3.248 3.248 0 0 1 3.25 3.248v4.502a.75.75 0 0 0 1.5 0v-4.502A4.748 4.748 0 0 0 17 10H5.56l4.97-4.97Z"],h:24,w:24}},Xl={16:{p:["M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"],h:16,w:16},24:{p:["M3 2.75A2.75 2.75 0 0 1 5.75 0h14.5a.75.75 0 0 1 .75.75v20.5a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h5.25v-4H6A1.5 1.5 0 0 0 4.5 18v.75c0 .716.43 1.334 1.05 1.605a.75.75 0 0 1-.6 1.374A3.251 3.251 0 0 1 3 18.75ZM19.5 1.5H5.75c-.69 0-1.25.56-1.25 1.25v12.651A2.989 2.989 0 0 1 6 15h13.5Z","M7 18.25a.25.25 0 0 1 .25-.25h5a.25.25 0 0 1 .25.25v5.01a.25.25 0 0 1-.397.201l-2.206-1.604a.25.25 0 0 0-.294 0L7.397 23.46a.25.25 0 0 1-.397-.2v-5.01Z"],h:24,w:24}},Ql={16:{p:["M3.5 0A2.5 2.5 0 0 0 1 2.5v9A2.5 2.5 0 0 0 3.5 14h2.75a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1 0-2h2.75a.75.75 0 0 0 0-1.5H3.5c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8v2.75a.75.75 0 0 0 1.5 0V.75a.75.75 0 0 0-.75-.75H3.5Z","M8 8.058C8 7.023 8.75 6 9.887 6h5.363a.75.75 0 0 1 .75.75v8.5a.75.75 0 0 1-.75.75h-5A2.25 2.25 0 0 1 8 13.75Zm6.5 3.442v-4H9.887c-.07 0-.156.031-.238.125a.663.663 0 0 0-.149.433v3.57c.235-.083.487-.128.75-.128Zm-5 2.25c0 .414.336.75.75.75h4.25V13h-4.25a.75.75 0 0 0-.75.75Z"],h:16,w:16},24:{p:["M4.375.375a2.5 2.5 0 0 0-2.5 2.5v15.25a2.5 2.5 0 0 0 2.5 2.5h5.187a.75.75 0 1 0 0-1.5H4.375a1 1 0 0 1-1-1v-1.75a1 1 0 0 1 1-1h5.687a.75.75 0 1 0 0-1.5H4.375c-.356 0-.694.074-1 .208V2.875a1 1 0 0 1 1-1h13.25v5.25a.75.75 0 0 0 1.5 0v-6a.75.75 0 0 0-.75-.75h-14Z","M12.375 12.087c0-1.396 1.005-2.712 2.456-2.712h8.044a.75.75 0 0 1 .75.75v12.75a.75.75 0 0 1-.75.75h-7.5a3 3 0 0 1-3-3Zm9.75 5.538v-6.75h-7.294c-.433 0-.956.441-.956 1.212v5.939a2.989 2.989 0 0 1 1.5-.401Zm-8.25 3a1.5 1.5 0 0 0 1.5 1.5h6.75v-3h-6.75a1.5 1.5 0 0 0-1.5 1.5Z"],h:24,w:24}},Jl={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.492 2.492 0 0 1 3.5 9h4.75a.75.75 0 0 1 0 1.5H3.5a1 1 0 1 0 0 2h4.75a.75.75 0 0 1 0 1.5H3.5A2.5 2.5 0 0 1 1 11.5v-9Z","M11.28 10.22a.75.75 0 1 0-1.06 1.06L11.94 13l-1.72 1.72a.75.75 0 1 0 1.06 1.06L13 14.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L14.06 13l1.72-1.72a.75.75 0 1 0-1.06-1.06L13 11.94l-1.72-1.72Z"],h:16,w:16}},ec={16:{p:["M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"],h:16,w:16},24:{p:["M8.75 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM15 4.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5ZM12 21a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 12 21Zm6.25-14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 6.5Z","M6.5 7.75v1A2.25 2.25 0 0 0 8.75 11h6.5a2.25 2.25 0 0 0 2.25-2.25v-1H19v1a3.75 3.75 0 0 1-3.75 3.75h-6.5A3.75 3.75 0 0 1 5 8.75v-1Z","M11.25 16.25v-5h1.5v5h-1.5Z"],h:24,w:24}},tc={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.492 2.492 0 0 1 3.5 9h2.75a.75.75 0 0 1 0 1.5H3.5a1 1 0 1 0 0 2h2.75a.75.75 0 0 1 0 1.5H3.5A2.5 2.5 0 0 1 1 11.5v-9Z","M9 10.168V9a3 3 0 1 1 6 0v1.168c.591.281 1 .884 1 1.582v2.5A1.75 1.75 0 0 1 14.25 16h-4.5A1.75 1.75 0 0 1 8 14.25v-2.5c0-.698.409-1.3 1-1.582ZM13.5 10V9a1.5 1.5 0 0 0-3 0v1Z"],h:16,w:16},24:{p:["M2 2.75A2.75 2.75 0 0 1 4.75 0h14.5a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V1.5H4.75c-.69 0-1.25.56-1.25 1.25v12.651A2.987 2.987 0 0 1 5 15h6.25a.75.75 0 0 1 0 1.5H5A1.5 1.5 0 0 0 3.5 18v1.25c0 .69.56 1.25 1.25 1.25h6a.75.75 0 0 1 0 1.5h-6A2.75 2.75 0 0 1 2 19.25V2.75Z","M15 14.5a3.5 3.5 0 1 1 7 0V16h.25c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 22.25 24h-7.5A1.75 1.75 0 0 1 13 22.25v-4.5c0-.966.784-1.75 1.75-1.75H15Zm3.5-2a2 2 0 0 0-2 2V16h4v-1.5a2 2 0 0 0-2-2Z"],h:24,w:24}},nc={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75V6a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 3.5 9h3a.75.75 0 0 1 0 1.5h-3a1 1 0 0 0 0 2h3a.75.75 0 0 1 0 1.5h-3A2.5 2.5 0 0 1 1 11.5v-9Z","M12.21 13.479a.75.75 0 1 0 1.061 1.061l2.504-2.505a.75.75 0 0 0 0-1.061L13.271 8.47a.75.75 0 0 0-1.061 1.06l1.224 1.225H8.75a.75.75 0 1 0 0 1.5h4.685l-1.225 1.224Z"],h:16,w:16},24:{p:["M1.875 2.875a2.5 2.5 0 0 1 2.5-2.5h14a.75.75 0 0 1 .75.75v9.125a.75.75 0 0 1-1.5 0V1.875H4.375a1 1 0 0 0-1 1v11.208a2.486 2.486 0 0 1 1-.208h5.937a.75.75 0 1 1 0 1.5H4.375a1 1 0 0 0-1 1v1.75a1 1 0 0 0 1 1h6a.75.75 0 0 1 0 1.5h-6a2.5 2.5 0 0 1-2.5-2.5V2.875Z","M18.643 20.484a.749.749 0 1 0 1.061 1.06l3.757-3.757a.75.75 0 0 0 0-1.06l-3.757-3.757a.75.75 0 0 0-1.061 1.06l2.476 2.477H13a.75.75 0 0 0 0 1.5h8.12l-2.477 2.477Z"],h:24,w:24}},rc={16:{p:["M1 2.5A2.5 2.5 0 0 1 3.5 0h8.75a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V1.5h-8a1 1 0 0 0-1 1v6.708A2.493 2.493 0 0 1 3.5 9h3.25a.75.75 0 0 1 0 1.5H3.5a1 1 0 0 0 0 2h5.75a.75.75 0 0 1 0 1.5H3.5A2.5 2.5 0 0 1 1 11.5Zm13.23 7.79h-.001l-1.224-1.224v6.184a.75.75 0 0 1-1.5 0V9.066L10.28 10.29a.75.75 0 0 1-1.06-1.061l2.505-2.504a.75.75 0 0 1 1.06 0L15.29 9.23a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018Z"],h:16,w:16},24:{p:["M4.75 0A2.75 2.75 0 0 0 2 2.75v16.5A2.75 2.75 0 0 0 4.75 22h11a.75.75 0 0 0 0-1.5h-11c-.69 0-1.25-.56-1.25-1.25V18A1.5 1.5 0 0 1 5 16.5h7.25a.75.75 0 0 0 0-1.5H5c-.546 0-1.059.146-1.5.401V2.75c0-.69.56-1.25 1.25-1.25H18.5v7a.75.75 0 0 0 1.5 0V.75a.75.75 0 0 0-.75-.75H4.75Z","m20 13.903 2.202 2.359a.75.75 0 0 0 1.096-1.024l-3.5-3.75a.75.75 0 0 0-1.096 0l-3.5 3.75a.75.75 0 1 0 1.096 1.024l2.202-2.36v9.348a.75.75 0 0 0 1.5 0v-9.347Z"],h:24,w:24}},sc={16:{p:["M13.25 8a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-.75a.75.75 0 0 1 0-1.5h.75v-.25a.75.75 0 0 1 .75-.75ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2ZM2.75 8a.75.75 0 0 1 .75.75v.268c.083-.012.166-.018.25-.018h.5a.75.75 0 0 1 0 1.5h-.5a.25.25 0 0 0-.25.25v.75c0 .28.114.532.3.714a.75.75 0 1 1-1.05 1.072A2.495 2.495 0 0 1 2 11.5V8.75A.75.75 0 0 1 2.75 8ZM11 .75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V1.5h-.75A.75.75 0 0 1 11 .75Zm-5 0A.75.75 0 0 1 6.75 0h2.5a.75.75 0 0 1 0 1.5h-2.5A.75.75 0 0 1 6 .75Zm0 9A.75.75 0 0 1 6.75 9h2.5a.75.75 0 0 1 0 1.5h-2.5A.75.75 0 0 1 6 9.75ZM4.992.662a.75.75 0 0 1-.636.848c-.436.063-.783.41-.846.846a.751.751 0 0 1-1.485-.212A2.501 2.501 0 0 1 4.144.025a.75.75 0 0 1 .848.637ZM2.75 4a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 2.75 4Zm10.5 0a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75Z"],h:16,w:16},24:{p:["M5.75 0A2.75 2.75 0 0 0 3 2.75v1a.75.75 0 0 0 1.5 0v-1c0-.69.56-1.25 1.25-1.25h1a.75.75 0 0 0 0-1.5h-1Zm4 0a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Zm7.5 0a.75.75 0 0 0 0 1.5h2.25v2.25a.75.75 0 0 0 1.5 0v-3a.75.75 0 0 0-.75-.75h-3ZM4.5 6.5a.75.75 0 0 0-1.5 0v3.75a.75.75 0 0 0 1.5 0V6.5Zm16.5 0a.75.75 0 0 0-1.5 0v3.75a.75.75 0 0 0 1.5 0V6.5ZM4.5 13.25a.75.75 0 0 0-1.5 0v5.5a3.25 3.25 0 0 0 1.95 2.98.75.75 0 1 0 .6-1.375A1.75 1.75 0 0 1 4.5 18.75V18A1.5 1.5 0 0 1 6 16.5h.75a.75.75 0 0 0 0-1.5H6c-.546 0-1.059.146-1.5.401V13.25Zm16.5 0a.75.75 0 0 0-1.5 0V15h-2.25a.75.75 0 0 0 0 1.5h2.25v4h-5.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 .75-.75v-8ZM9.75 15a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Zm-2.353 8.461A.25.25 0 0 1 7 23.26v-5.01a.25.25 0 0 1 .25-.25h5a.25.25 0 0 1 .25.25v5.01a.25.25 0 0 1-.397.201l-2.206-1.604a.25.25 0 0 0-.294 0L7.397 23.46Z"],h:24,w:24}},ic={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.586a.25.25 0 0 0-.177.073l-3.5 3.5A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.427-3.427A1.75 1.75 0 0 1 11.164 17h9.586a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25ZM12 6a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4A.75.75 0 0 1 12 6Zm0 9a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:24,w:24}},oc={16:{p:["M14.064 0h.186C15.216 0 16 .784 16 1.75v.186a8.752 8.752 0 0 1-2.564 6.186l-.458.459c-.314.314-.641.616-.979.904v3.207c0 .608-.315 1.172-.833 1.49l-2.774 1.707a.749.749 0 0 1-1.11-.418l-.954-3.102a1.214 1.214 0 0 1-.145-.125L3.754 9.816a1.218 1.218 0 0 1-.124-.145L.528 8.717a.749.749 0 0 1-.418-1.11l1.71-2.774A1.748 1.748 0 0 1 3.31 4h3.204c.288-.338.59-.665.904-.979l.459-.458A8.749 8.749 0 0 1 14.064 0ZM8.938 3.623h-.002l-.458.458c-.76.76-1.437 1.598-2.02 2.5l-1.5 2.317 2.143 2.143 2.317-1.5c.902-.583 1.74-1.26 2.499-2.02l.459-.458a7.25 7.25 0 0 0 2.123-5.127V1.75a.25.25 0 0 0-.25-.25h-.186a7.249 7.249 0 0 0-5.125 2.123ZM3.56 14.56c-.732.732-2.334 1.045-3.005 1.148a.234.234 0 0 1-.201-.064.234.234 0 0 1-.064-.201c.103-.671.416-2.273 1.15-3.003a1.502 1.502 0 1 1 2.12 2.12Zm6.94-3.935c-.088.06-.177.118-.266.175l-2.35 1.521.548 1.783 1.949-1.2a.25.25 0 0 0 .119-.213ZM3.678 8.116 5.2 5.766c.058-.09.117-.178.176-.266H3.309a.25.25 0 0 0-.213.119l-1.2 1.95ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M20.322.75h1.176a1.75 1.75 0 0 1 1.75 1.749v1.177a10.75 10.75 0 0 1-2.925 7.374l-1.228 1.304a23.699 23.699 0 0 1-1.596 1.542v5.038c0 .615-.323 1.184-.85 1.5l-4.514 2.709a.75.75 0 0 1-1.12-.488l-.963-4.572a1.305 1.305 0 0 1-.14-.129L8.04 15.96l-1.994-1.873a1.305 1.305 0 0 1-.129-.14l-4.571-.963a.75.75 0 0 1-.49-1.12l2.71-4.514c.316-.527.885-.85 1.5-.85h5.037a23.668 23.668 0 0 1 1.542-1.594l1.304-1.23A10.753 10.753 0 0 1 20.321.75Zm-6.344 4.018v-.001l-1.304 1.23a22.275 22.275 0 0 0-3.255 3.851l-2.193 3.29 1.859 1.744a.545.545 0 0 1 .034.034l1.743 1.858 3.288-2.192a22.263 22.263 0 0 0 3.854-3.257l1.228-1.303a9.251 9.251 0 0 0 2.517-6.346V2.5a.25.25 0 0 0-.25-.25h-1.177a9.252 9.252 0 0 0-6.344 2.518ZM6.5 21c-1.209 1.209-3.901 1.445-4.743 1.49a.236.236 0 0 1-.18-.067.236.236 0 0 1-.067-.18c.045-.842.281-3.534 1.49-4.743.9-.9 2.6-.9 3.5 0 .9.9.9 2.6 0 3.5Zm-.592-8.588L8.17 9.017c.23-.346.47-.685.717-1.017H5.066a.25.25 0 0 0-.214.121l-2.167 3.612ZM16 15.112c-.333.248-.672.487-1.018.718l-3.393 2.262.678 3.223 3.612-2.167a.25.25 0 0 0 .121-.214ZM17.5 8a1.5 1.5 0 1 1-3.001-.001A1.5 1.5 0 0 1 17.5 8Z"],h:24,w:24}},ac={16:{p:["M16 10.75v2.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25v-2.5C0 9.784.784 9 1.75 9h12.5c.966 0 1.75.784 1.75 1.75Zm0-8v2.5A1.75 1.75 0 0 1 14.25 7H1.75A1.75 1.75 0 0 1 0 5.25v-2.5C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75Zm-1.75-.25H1.75a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm0 8H1.75a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M22 3.75v5.5A1.75 1.75 0 0 1 20.25 11H3.75A1.75 1.75 0 0 1 2 9.25v-5.5C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75Zm0 11v5.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25v-5.5c0-.966.784-1.75 1.75-1.75h16.5c.966 0 1.75.784 1.75 1.75ZM20.25 3.5H3.75a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Zm0 11H3.75a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},lc={16:{p:["M2.002 2.725a.75.75 0 0 1 .797-.699C8.79 2.42 13.58 7.21 13.974 13.201a.75.75 0 0 1-1.497.098 10.502 10.502 0 0 0-9.776-9.776.747.747 0 0 1-.7-.798ZM2.84 7.05h-.002a7.002 7.002 0 0 1 6.113 6.111.75.75 0 0 1-1.49.178 5.503 5.503 0 0 0-4.8-4.8.75.75 0 0 1 .179-1.489ZM2 13a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z"],h:16,w:16},24:{p:["M3.5 3.25a.75.75 0 0 1 .75-.75C14.053 2.5 22 10.447 22 20.25a.75.75 0 0 1-1.5 0C20.5 11.275 13.225 4 4.25 4a.75.75 0 0 1-.75-.75Zm.75 6.25C10.187 9.5 15 14.313 15 20.25a.75.75 0 0 1-1.5 0A9.25 9.25 0 0 0 4.25 11a.75.75 0 0 1 0-1.5ZM3.5 19a2 2 0 1 1 3.999-.001A2 2 0 0 1 3.5 19Z"],h:24,w:24}},cc={16:{p:["M3.637 2.291A.748.748 0 0 1 4.23 2h7.54c.232 0 .451.107.593.291l3.48 4.5a.75.75 0 0 1-.072.999l-7.25 7a.75.75 0 0 1-1.042 0l-7.25-7a.75.75 0 0 1-.072-.999ZM4.598 3.5 1.754 7.177 8 13.207l6.246-6.03L11.402 3.5Z"],h:16,w:16},24:{p:["M5.873 3.26A.748.748 0 0 1 6.44 3h11.31c.223 0 .434.099.576.27l5 6a.75.75 0 0 1-.028.992l-10.75 11.5a.75.75 0 0 1-1.096 0l-10.75-11.5a.75.75 0 0 1-.02-1.003l5.19-6Zm.91 1.24L2.258 9.73 12 20.153l9.75-10.43L17.399 4.5Z"],h:24,w:24}},uc={16:{p:["M1.75 10a.75.75 0 0 1 .75.75v2.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 1 13.25v-2.5a.75.75 0 0 1 .75-.75Zm12.5 0a.75.75 0 0 1 .75.75v2.5A1.75 1.75 0 0 1 13.25 15h-2.5a.75.75 0 0 1 0-1.5h2.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 .75-.75ZM2.75 2.5a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0v-2.5C1 1.784 1.784 1 2.75 1h2.5a.75.75 0 0 1 0 1.5ZM10 1.75a.75.75 0 0 1 .75-.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a.75.75 0 0 1-1.5 0v-2.5a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1-.75-.75Z"],h:16,w:16},24:{p:["M3.75 15a.75.75 0 0 1 .75.75v3.5c0 .138.112.25.25.25h3.5a.75.75 0 0 1 0 1.5h-3.5A1.75 1.75 0 0 1 3 19.25v-3.5a.75.75 0 0 1 .75-.75Zm16.5 0a.75.75 0 0 1 .75.75v3.5A1.75 1.75 0 0 1 19.25 21h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 .75-.75ZM4.75 4.5a.25.25 0 0 0-.25.25v3.5a.75.75 0 0 1-1.5 0v-3.5C3 3.784 3.784 3 4.75 3h3.5a.75.75 0 0 1 0 1.5ZM15 3.75a.75.75 0 0 1 .75-.75h3.5c.966 0 1.75.784 1.75 1.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},hc={16:{p:["M10.75 1a.75.75 0 0 1 .75.75v2.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 10 4.25v-2.5a.75.75 0 0 1 .75-.75Zm-5.5 0a.75.75 0 0 1 .75.75v2.5A1.75 1.75 0 0 1 4.25 6h-2.5a.75.75 0 0 1 0-1.5h2.5a.25.25 0 0 0 .25-.25v-2.5A.75.75 0 0 1 5.25 1ZM1 10.75a.75.75 0 0 1 .75-.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a.75.75 0 0 1-1.5 0v-2.5a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1-.75-.75Zm9 1c0-.966.784-1.75 1.75-1.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Z"],h:16,w:16},24:{p:["M15.75 3a.75.75 0 0 1 .75.75v3.5c0 .138.112.25.25.25h3.5a.75.75 0 0 1 0 1.5h-3.5A1.75 1.75 0 0 1 15 7.25v-3.5a.75.75 0 0 1 .75-.75Zm-7.5 0a.75.75 0 0 1 .75.75v3.5A1.75 1.75 0 0 1 7.25 9h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25v-3.5A.75.75 0 0 1 8.25 3ZM3 15.75a.75.75 0 0 1 .75-.75h3.5c.966 0 1.75.784 1.75 1.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1-.75-.75Zm12 1c0-.966.784-1.75 1.75-1.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v3.5a.75.75 0 0 1-1.5 0Z"],h:24,w:24}},pc={16:{p:["M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"],h:16,w:16},24:{p:["M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"],h:24,w:24}},dc={16:{p:["M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v4c0 .372-.116.717-.314 1 .198.283.314.628.314 1v4a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 12.75v-4c0-.358.109-.707.314-1a1.739 1.739 0 0 1-.314-1v-4C0 1.784.784 1 1.75 1ZM1.5 2.75v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm.25 5.75a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM7 4.75A.75.75 0 0 1 7.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 7 4.75ZM7.75 10h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM3 4.75A.75.75 0 0 1 3.75 4h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 4.75ZM3.75 10h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M10.75 6.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5ZM6 7.25a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 6 7.25Zm4 9a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Zm-3.25-.75a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z","M3.25 2h17.5c.966 0 1.75.784 1.75 1.75v7c0 .372-.116.716-.314 1 .198.284.314.628.314 1v7a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75v-7c0-.358.109-.707.314-1a1.741 1.741 0 0 1-.314-1v-7C1.5 2.784 2.284 2 3.25 2Zm0 10.5a.25.25 0 0 0-.25.25v7c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25v-7a.25.25 0 0 0-.25-.25Zm0-1.5h17.5a.25.25 0 0 0 .25-.25v-7a.25.25 0 0 0-.25-.25H3.25a.25.25 0 0 0-.25.25v7c0 .138.112.25.25.25Z"],h:24,w:24}},mc={16:{p:["M3.75 6.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25h-1a.75.75 0 0 1 0-1.5h1c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-6.5C2 5.784 2.784 5 3.75 5h1a.75.75 0 0 1 0 1.5ZM7.823.177a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v5.75a.75.75 0 0 1-1.5 0V3.5H5.104a.25.25 0 0 1-.177-.427Z"],h:16,w:16},24:{p:["M5.5 9.75v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V9.75a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1 0-1.5h2.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V9.75C4 8.784 4.784 8 5.75 8h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25Zm7.03-8.53 3.25 3.25a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-1.97-1.97v10.69a.75.75 0 0 1-1.5 0V3.56L9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},fc={16:{p:["M15 3a3 3 0 0 1-5.175 2.066l-3.92 2.179a2.994 2.994 0 0 1 0 1.51l3.92 2.179a3 3 0 1 1-.73 1.31l-3.92-2.178a3 3 0 1 1 0-4.133l3.92-2.178A3 3 0 1 1 15 3Zm-1.5 10a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 13.5 13Zm-9-5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 4.5 8Zm9-5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 13.5 3Z"],h:16,w:16},24:{p:["M20 5.5a3.498 3.498 0 0 1-6.062 2.385l-5.112 3.021a3.498 3.498 0 0 1 0 2.188l5.112 3.021a3.5 3.5 0 1 1-.764 1.29l-5.112-3.02a3.499 3.499 0 1 1-3.843-5.642 3.499 3.499 0 0 1 3.843.872l5.112-3.021A3.5 3.5 0 1 1 20 5.5Zm-1.5 13a2 2 0 1 0-3.999-.001 2 2 0 0 0 3.999.001Zm0-13a2 2 0 1 0-3.999-.001A2 2 0 0 0 18.5 5.5ZM5.5 14a2 2 0 1 0 .001-3.999A2 2 0 0 0 5.5 14Z"],h:24,w:24}},gc={16:{p:["M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z","M11.46.637a1.748 1.748 0 0 1 1.08 0l8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.77 10.705-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.771 20.704 2 16.19 2 10V4.976c0-.76.49-1.43 1.21-1.664Zm.617 1.426a.253.253 0 0 0-.154 0L3.673 4.74a.25.25 0 0 0-.173.237V10c0 5.461 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.46 20.5 10V4.976a.25.25 0 0 0-.173-.237Z"],h:24,w:24}},yc={16:{p:["m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M16.53 9.78a.75.75 0 0 0-1.06-1.06L11 13.19l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5Z","m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"],h:24,w:24}},wc={16:{p:["m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM9.5 6.5c0 .536-.286 1.032-.75 1.3v2.45a.75.75 0 0 1-1.5 0V7.8A1.5 1.5 0 1 1 9.5 6.5Z"],h:16,w:16},24:{p:["M11.46 1.137a1.748 1.748 0 0 1 1.08 0l8.25 2.675A1.75 1.75 0 0 1 22 5.476V10.5c0 6.19-3.77 10.705-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.771 21.204 2 16.69 2 10.5V5.476c0-.76.49-1.43 1.21-1.664Zm.617 1.426a.253.253 0 0 0-.154 0L3.673 5.24a.25.25 0 0 0-.173.237V10.5c0 5.461 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0c5.15-1.943 8.43-5.965 8.43-11.426V5.476a.25.25 0 0 0-.173-.237ZM13 12.232V15a1 1 0 0 1-2 0v-2.768a2 2 0 1 1 2 0Z"],h:24,w:24}},bc={16:{p:["M8.533.133a1.75 1.75 0 0 0-1.066 0l-2.091.67a.75.75 0 0 0 .457 1.428l2.09-.67a.25.25 0 0 1 .153 0l5.25 1.68a.25.25 0 0 1 .174.239V7c0 .233-.008.464-.025.694a.75.75 0 1 0 1.495.112c.02-.27.03-.538.03-.806V3.48a1.75 1.75 0 0 0-1.217-1.667L8.533.133ZM1 2.857l-.69-.5a.75.75 0 1 1 .88-1.214l14.5 10.5a.75.75 0 1 1-.88 1.214l-1.282-.928c-.995 1.397-2.553 2.624-4.864 3.608-.425.181-.905.18-1.329 0-2.447-1.042-4.049-2.356-5.032-3.855C1.32 10.182 1 8.566 1 7Zm1.5 1.086V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297.05.02.106.02.153 0 2.127-.905 3.439-1.982 4.237-3.108Z"],h:16,w:16},24:{p:["M12.54 1.137a1.748 1.748 0 0 0-1.08 0L6.018 2.905a.75.75 0 1 0 .464 1.427l5.441-1.768a.239.239 0 0 1 .154 0l8.25 2.675a.249.249 0 0 1 .173.237V10.5c0 1.284-.24 2.83-.696 3.971a.75.75 0 1 0 1.392.557C21.74 13.67 22 11.927 22 10.5V5.476a1.75 1.75 0 0 0-1.21-1.664l-8.25-2.675ZM2.017 4.843l-.974-.748a.751.751 0 0 1 .914-1.19l20.5 15.75a.751.751 0 0 1-.914 1.19l-2.012-1.546-.702.852-.008.009a.07.07 0 0 1-.008.01c-1.603 1.821-3.731 3.223-6.214 4.16a1.699 1.699 0 0 1-1.198-.001C5.771 21.205 2 16.689 2 10.5V5c0-.054.006-.107.017-.157ZM3.5 5.982V10.5c0 5.461 3.281 9.483 8.431 11.426a.193.193 0 0 0 .138 0c2.283-.861 4.192-2.131 5.61-3.738l.662-.803Z"],h:24,w:24}},Cc={16:{p:["m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM6.78 5.22 8 6.44l1.22-1.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 7.5l1.22 1.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 8.56 6.78 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 7.5 5.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Z"],h:16,w:16},24:{p:["M9.28 7.72a.75.75 0 0 0-1.06 1.06l2.72 2.72-2.72 2.72a.75.75 0 1 0 1.06 1.06L12 12.56l2.72 2.72a.75.75 0 1 0 1.06-1.06l-2.72-2.72 2.72-2.72a.75.75 0 0 0-1.06-1.06L12 10.44 9.28 7.72Z","m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"],h:24,w:24}},vc={16:{p:["M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z","M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"],h:16,w:16},24:{p:["M7.22 14.47 9.69 12 7.22 9.53a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l3 3a.75.75 0 0 1 0 1.06l-3 3a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z"],h:24,w:24}},Sc={16:{p:["m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z","M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z"],h:16,w:16},24:{p:["M11.28 9.53 8.81 12l2.47 2.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3-3a.75.75 0 0 1 0-1.06l3-3a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z","M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z"],h:24,w:24}},Ec={16:{p:["M2 2.75C2 1.784 2.784 1 3.75 1h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 2 13.25Zm6.56 4.5h5.69a.75.75 0 0 1 0 1.5H8.56l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L6.22 8.53a.75.75 0 0 1 0-1.06l3.25-3.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z"],h:16,w:16},24:{p:["M3 3.25c0-.966.784-1.75 1.75-1.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25v17.5c0 .138.112.25.25.25h5.5a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 3 20.75Zm9.994 9.5 3.3 3.484a.75.75 0 0 1-1.088 1.032l-4.5-4.75a.75.75 0 0 1 0-1.032l4.5-4.75a.75.75 0 0 1 1.088 1.032l-3.3 3.484h8.256a.75.75 0 0 1 0 1.5Z"],h:24,w:24}},kc={16:{p:["M2 2.75C2 1.784 2.784 1 3.75 1h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 2 13.25Zm10.44 4.5-1.97-1.97a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.97-1.97H6.75a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M3 3.25c0-.966.784-1.75 1.75-1.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25v17.5c0 .138.112.25.25.25h5.5a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 3 20.75Zm16.006 9.5H10.75a.75.75 0 0 1 0-1.5h8.256l-3.3-3.484a.75.75 0 0 1 1.088-1.032l4.5 4.75a.75.75 0 0 1 0 1.032l-4.5 4.75a.75.75 0 0 1-1.088-1.032Z"],h:24,w:24}},Rc={16:{p:["m5.06 7.356 2.795 2.833c.08.081.21.081.29 0l2.794-2.833c.13-.131.038-.356-.145-.356H5.206c-.183 0-.275.225-.145.356Z","M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["m7.854 10.854 3.792 3.792a.5.5 0 0 0 .708 0l3.793-3.792a.5.5 0 0 0-.354-.854H8.207a.5.5 0 0 0-.353.854Z","M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Ac={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Tc={16:{p:["M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm11.333-2.167a.825.825 0 0 0-1.166-1.166l-5.5 5.5a.825.825 0 0 0 1.166 1.166Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.333-4.167a.825.825 0 0 0-1.166-1.166l-9.5 9.5a.825.825 0 0 0 1.166 1.166Z"],h:24,w:24}},xc={16:{p:["M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"],h:16,w:16}},Dc={16:{p:["M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm3.82 1.636a.75.75 0 0 1 1.038.175l.007.009c.103.118.22.222.35.31.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371.13-.088.247-.192.35-.31l.007-.008a.75.75 0 0 1 1.222.87l-.022-.015c.02.013.021.015.021.015v.001l-.001.002-.002.003-.005.007-.014.019a2.066 2.066 0 0 1-.184.213c-.16.166-.338.316-.53.445-.63.418-1.37.638-2.127.629-.946 0-1.652-.308-2.126-.63a3.331 3.331 0 0 1-.715-.657l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 0 1 .183-1.044ZM12 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM5 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5.25 2.25.592.416a97.71 97.71 0 0 0-.592-.416Z"],h:16,w:16},24:{p:["M8.456 14.494a.75.75 0 0 1 1.068.17 3.08 3.08 0 0 0 .572.492A3.381 3.381 0 0 0 12 15.72c.855 0 1.487-.283 1.904-.562a3.081 3.081 0 0 0 .572-.492l.021-.026a.75.75 0 0 1 1.197.905l-.027.034c-.013.016-.03.038-.052.063-.044.05-.105.119-.184.198a4.569 4.569 0 0 1-.695.566A4.88 4.88 0 0 1 12 17.22a4.88 4.88 0 0 1-2.736-.814 4.57 4.57 0 0 1-.695-.566 3.253 3.253 0 0 1-.236-.261c-.259-.332-.223-.824.123-1.084Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z","M9 10.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM16.25 12a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"],h:24,w:24}},Mc={16:{p:["m12.927 2.573 3 3A.25.25 0 0 1 15.75 6H13.5v6.75a.75.75 0 0 1-1.5 0V6H9.75a.25.25 0 0 1-.177-.427l3-3a.25.25 0 0 1 .354 0ZM0 12.25a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75Zm0-4a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 8.25Zm0-4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 4.25Z"],h:16,w:16},24:{p:["M18.5 17.25a.75.75 0 0 1-1.5 0V7.56l-2.22 2.22a.75.75 0 1 1-1.06-1.06l3.5-3.5a.75.75 0 0 1 1.06 0l3.5 3.5a.75.75 0 0 1-1.06 1.06L18.5 7.56v9.69Zm-15.75.25a.75.75 0 0 1 0-1.5h9.5a.75.75 0 0 1 0 1.5h-9.5Zm0-5a.75.75 0 0 1 0-1.5h5.5a.75.75 0 0 1 0 1.5h-5.5Zm0-5a.75.75 0 0 1 0-1.5h3.5a.75.75 0 0 1 0 1.5h-3.5Z"],h:24,w:24}},Pc={16:{p:["M0 4.25a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 4.25Zm0 4a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 8.25Zm0 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75ZM13.5 10h2.25a.25.25 0 0 1 .177.427l-3 3a.25.25 0 0 1-.354 0l-3-3A.25.25 0 0 1 9.75 10H12V3.75a.75.75 0 0 1 1.5 0V10Z"],h:16,w:16},24:{p:["M18.5 16.44V6.75a.75.75 0 0 0-1.5 0v9.69l-2.22-2.22a.75.75 0 1 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06l-2.22 2.22ZM2 7.25a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5A.75.75 0 0 1 2 7.25Zm0 5a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75Zm0 5a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75Z"],h:24,w:24}},Ic={16:{p:["M7.53 1.282a.5.5 0 0 1 .94 0l.478 1.306a7.492 7.492 0 0 0 4.464 4.464l1.305.478a.5.5 0 0 1 0 .94l-1.305.478a7.492 7.492 0 0 0-4.464 4.464l-.478 1.305a.5.5 0 0 1-.94 0l-.478-1.305a7.492 7.492 0 0 0-4.464-4.464L1.282 8.47a.5.5 0 0 1 0-.94l1.306-.478a7.492 7.492 0 0 0 4.464-4.464Z"],h:16,w:16}},_c={16:{p:["M10.586 1C12.268 1 13.5 2.37 13.5 4.25c0 1.745-.996 3.359-2.622 4.831-.166.15-.336.297-.509.438l1.116 5.584a.75.75 0 0 1-.991.852l-2.409-.876a.25.25 0 0 0-.17 0l-2.409.876a.75.75 0 0 1-.991-.852L5.63 9.519a13.78 13.78 0 0 1-.51-.438C3.497 7.609 2.5 5.995 2.5 4.25 2.5 2.37 3.732 1 5.414 1c.963 0 1.843.403 2.474 1.073L8 2.198l.112-.125a3.385 3.385 0 0 1 2.283-1.068L10.586 1Zm-3.621 9.495-.718 3.594 1.155-.42a1.75 1.75 0 0 1 1.028-.051l.168.051 1.154.42-.718-3.592c-.199.13-.37.235-.505.314l-.169.097a.75.75 0 0 1-.72 0 9.54 9.54 0 0 1-.515-.308l-.16-.105ZM10.586 2.5c-.863 0-1.611.58-1.866 1.459-.209.721-1.231.721-1.44 0C7.025 3.08 6.277 2.5 5.414 2.5 4.598 2.5 4 3.165 4 4.25c0 1.23.786 2.504 2.128 3.719.49.443 1.018.846 1.546 1.198l.325.21.076-.047.251-.163a13.341 13.341 0 0 0 1.546-1.198C11.214 6.754 12 5.479 12 4.25c0-1.085-.598-1.75-1.414-1.75Z"],h:16,w:16},24:{p:["M16.004 1.25C18.311 1.25 20 3.128 20 5.75c0 2.292-1.23 4.464-3.295 6.485-.481.47-.98.909-1.482 1.31l.265 1.32 1.375 7.5a.75.75 0 0 1-.982.844l-3.512-1.207a.75.75 0 0 0-.488 0L8.37 23.209a.75.75 0 0 1-.982-.844l1.378-7.512.261-1.309c-.5-.4-1-.838-1.481-1.31C5.479 10.215 4.25 8.043 4.25 5.75c0-2.622 1.689-4.5 3.996-4.5 1.55 0 2.947.752 3.832 1.967l.047.067.047-.067a4.726 4.726 0 0 1 3.612-1.962l.22-.005ZM13.89 14.531c-.418.285-.828.542-1.218.77l-.18.103a.75.75 0 0 1-.734 0l-.071-.04-.46-.272c-.282-.173-.573-.36-.868-.562l-.121.605-1.145 6.239 2.3-.79a2.248 2.248 0 0 1 1.284-.054l.18.053 2.299.79-1.141-6.226-.125-.616ZM16.004 2.75c-1.464 0-2.731.983-3.159 2.459-.209.721-1.231.721-1.44 0-.428-1.476-1.695-2.459-3.16-2.459-1.44 0-2.495 1.173-2.495 3 0 1.811 1.039 3.647 2.844 5.412a19.624 19.624 0 0 0 3.734 2.84l-.019-.011-.184-.111.147-.088a19.81 19.81 0 0 0 3.015-2.278l.37-.352C17.46 9.397 18.5 7.561 18.5 5.75c0-1.827-1.055-3-2.496-3Z"],h:24,w:24}},Fc={16:{p:["M4 5.75C4 4.784 4.784 4 5.75 4h4.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 10.25 12h-4.5A1.75 1.75 0 0 1 4 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h4.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M6 7.75C6 6.784 6.784 6 7.75 6h8.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 16.25 18h-8.5A1.75 1.75 0 0 1 6 16.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Nc={16:{p:["M5.75 4h4.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 10.25 12h-4.5A1.75 1.75 0 0 1 4 10.25v-4.5C4 4.784 4.784 4 5.75 4Z"],h:16,w:16},24:{p:["M7.75 6h8.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 16.25 18h-8.5A1.75 1.75 0 0 1 6 16.25v-8.5C6 6.784 6.784 6 7.75 6Z"],h:24,w:24}},Oc={16:{p:["M3.499.75a.75.75 0 0 1 1.5 0v.996C5.9 2.903 6.793 3.65 7.662 4.376l.24.202c-.036-.694.055-1.422.426-2.163C9.1.873 10.794-.045 12.622.26 14.408.558 16 1.94 16 4.25c0 1.278-.954 2.575-2.44 2.734l.146.508.065.22c.203.701.412 1.455.476 2.226.142 1.707-.4 3.03-1.487 3.898C11.714 14.671 10.27 15 8.75 15h-6a.75.75 0 0 1 0-1.5h1.376a4.484 4.484 0 0 1-.563-1.191 3.835 3.835 0 0 1-.05-2.063 4.647 4.647 0 0 1-2.025-.293.75.75 0 0 1 .525-1.406c1.357.507 2.376-.006 2.698-.318l.009-.01a.747.747 0 0 1 1.06 0 .748.748 0 0 1-.012 1.074c-.912.92-.992 1.835-.768 2.586.221.74.745 1.337 1.196 1.621H8.75c1.343 0 2.398-.296 3.074-.836.635-.507 1.036-1.31.928-2.602-.05-.603-.216-1.224-.422-1.93l-.064-.221c-.12-.407-.246-.84-.353-1.29a2.425 2.425 0 0 1-.507-.441 3.075 3.075 0 0 1-.633-1.248.75.75 0 0 1 1.455-.364c.046.185.144.436.31.627.146.168.353.305.712.305.738 0 1.25-.615 1.25-1.25 0-1.47-.95-2.315-2.123-2.51-1.172-.196-2.227.387-2.706 1.345-.46.92-.27 1.774.019 3.062l.042.19a.884.884 0 0 1 .01.05c.348.443.666.949.94 1.553a.75.75 0 1 1-1.365.62c-.553-1.217-1.32-1.94-2.3-2.768L6.7 5.527c-.814-.68-1.75-1.462-2.692-2.619a3.737 3.737 0 0 0-1.023.88c-.406.495-.663 1.036-.722 1.508.116.122.306.21.591.239.388.038.797-.06 1.032-.19a.75.75 0 0 1 .728 1.31c-.515.287-1.23.439-1.906.373-.682-.067-1.473-.38-1.879-1.193L.75 5.677V5.5c0-.984.48-1.94 1.077-2.664.46-.559 1.05-1.055 1.673-1.353V.75Z"],h:16,w:16},24:{p:["M18.377 3.49c-1.862-.31-3.718.62-4.456 2.095-.428.857-.691 1.624-.728 2.361-.035.71.138 1.444.67 2.252.644.854 1.199 1.913 1.608 3.346a.75.75 0 1 1-1.442.412c-.353-1.236-.82-2.135-1.372-2.865l-.008-.01c-.53-.698-1.14-1.242-1.807-1.778a50.724 50.724 0 0 0-.667-.524C9.024 7.884 7.71 6.863 6.471 5.16c-.59.287-1.248.798-1.806 1.454-.665.78-1.097 1.66-1.158 2.446.246.36.685.61 1.246.715.643.12 1.278.015 1.633-.182a.75.75 0 1 1 .728 1.311c-.723.402-1.728.516-2.637.346-.916-.172-1.898-.667-2.398-1.666L2 9.427V9.25c0-1.323.678-2.615 1.523-3.607.7-.824 1.59-1.528 2.477-1.917V2.75a.75.75 0 1 1 1.5 0v1.27c1.154 1.67 2.363 2.612 3.568 3.551.207.162.415.323.621.489.001-.063.003-.126.006-.188.052-1.034.414-2.017.884-2.958 1.06-2.118 3.594-3.313 6.044-2.904 1.225.204 2.329.795 3.125 1.748C22.546 4.713 23 5.988 23 7.5c0 1.496-.913 3.255-2.688 3.652.838 1.699 1.438 3.768 1.181 5.697-.269 2.017-1.04 3.615-2.582 4.675C17.409 22.558 15.288 23 12.5 23H4.75a.75.75 0 0 1 0-1.5h2.322c-.58-.701-.998-1.578-1.223-2.471-.327-1.3-.297-2.786.265-4.131-.92.091-1.985-.02-3.126-.445a.75.75 0 1 1 .524-1.406c1.964.733 3.428.266 4.045-.19.068-.06.137-.12.208-.18a.745.745 0 0 1 .861-.076.746.746 0 0 1 .32.368.752.752 0 0 1-.173.819c-.077.076-.16.15-.252.221-1.322 1.234-1.62 3.055-1.218 4.654.438 1.737 1.574 2.833 2.69 2.837H12.5c2.674 0 4.429-.433 5.56-1.212 1.094-.752 1.715-1.904 1.946-3.637.236-1.768-.445-3.845-1.407-5.529a.576.576 0 0 1-.012-.02 3.557 3.557 0 0 1-1.553-.94c-.556-.565-.89-1.243-1.012-1.73a.75.75 0 0 1 1.456-.364c.057.231.26.67.626 1.043.35.357.822.623 1.443.623 1.172 0 1.953-1.058 1.953-2.234 0-1.205-.357-2.127-.903-2.78-.547-.654-1.318-1.08-2.22-1.23Z"],h:24,w:24}},Lc={16:{p:["M7.122.392a1.75 1.75 0 0 1 1.756 0l5.003 2.902c.83.481.83 1.68 0 2.162L8.878 8.358a1.75 1.75 0 0 1-1.756 0L2.119 5.456a1.251 1.251 0 0 1 0-2.162ZM8.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685 4.63 2.685a.248.248 0 0 0 .25 0l4.63-2.685ZM1.601 7.789a.75.75 0 0 1 1.025-.273l5.249 3.044a.248.248 0 0 0 .25 0l5.249-3.044a.75.75 0 0 1 .752 1.298l-5.248 3.044a1.75 1.75 0 0 1-1.756 0L1.874 8.814A.75.75 0 0 1 1.6 7.789Zm0 3.5a.75.75 0 0 1 1.025-.273l5.249 3.044a.248.248 0 0 0 .25 0l5.249-3.044a.75.75 0 0 1 .752 1.298l-5.248 3.044a1.75 1.75 0 0 1-1.756 0l-5.248-3.044a.75.75 0 0 1-.273-1.025Z"],h:16,w:16},24:{p:["M11.063 1.456a1.749 1.749 0 0 1 1.874 0l8.383 5.316a1.751 1.751 0 0 1 0 2.956l-8.383 5.316a1.749 1.749 0 0 1-1.874 0L2.68 9.728a1.751 1.751 0 0 1 0-2.956Zm1.071 1.267a.25.25 0 0 0-.268 0L3.483 8.039a.25.25 0 0 0 0 .422l8.383 5.316a.25.25 0 0 0 .268 0l8.383-5.316a.25.25 0 0 0 0-.422Z","M1.867 12.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z","M1.867 16.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"],h:24,w:24}},Bc={16:{p:["M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"],h:16,w:16},24:{p:["M12 .25a.75.75 0 0 1 .673.418l3.058 6.197 6.839.994a.75.75 0 0 1 .415 1.279l-4.948 4.823 1.168 6.811a.751.751 0 0 1-1.088.791L12 18.347l-6.117 3.216a.75.75 0 0 1-1.088-.79l1.168-6.812-4.948-4.823a.75.75 0 0 1 .416-1.28l6.838-.993L11.328.668A.75.75 0 0 1 12 .25Zm0 2.445L9.44 7.882a.75.75 0 0 1-.565.41l-5.725.832 4.143 4.038a.748.748 0 0 1 .215.664l-.978 5.702 5.121-2.692a.75.75 0 0 1 .698 0l5.12 2.692-.977-5.702a.748.748 0 0 1 .215-.664l4.143-4.038-5.725-.831a.75.75 0 0 1-.565-.41L12 2.694Z"],h:24,w:24}},Hc={16:{p:["M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"],h:16,w:16},24:{p:["m12.672.668 3.059 6.197 6.838.993a.75.75 0 0 1 .416 1.28l-4.948 4.823 1.168 6.812a.75.75 0 0 1-1.088.79L12 18.347l-6.116 3.216a.75.75 0 0 1-1.088-.791l1.168-6.811-4.948-4.823a.749.749 0 0 1 .416-1.279l6.838-.994L11.327.668a.75.75 0 0 1 1.345 0Z"],h:24,w:24}},Uc={16:{p:["M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],h:16,w:16},24:{p:["M12 7a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","M7.328 1.47a.749.749 0 0 1 .53-.22h8.284c.199 0 .389.079.53.22l5.858 5.858c.141.14.22.33.22.53v8.284a.749.749 0 0 1-.22.53l-5.858 5.858a.749.749 0 0 1-.53.22H7.858a.749.749 0 0 1-.53-.22L1.47 16.672a.749.749 0 0 1-.22-.53V7.858c0-.199.079-.389.22-.53Zm.84 1.28L2.75 8.169v7.662l5.419 5.419h7.662l5.419-5.418V8.168L15.832 2.75Z"],h:24,w:24}},Zc={16:{p:["M5.75.75A.75.75 0 0 1 6.5 0h3a.75.75 0 0 1 0 1.5h-.75v1l-.001.041a6.724 6.724 0 0 1 3.464 1.435l.007-.006.75-.75a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-.75.75-.006.007a6.75 6.75 0 1 1-10.548 0L2.72 5.03l-.75-.75a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l.75.75.007.006A6.72 6.72 0 0 1 7.25 2.541V1.5H6.5a.75.75 0 0 1-.75-.75ZM8 14.5a5.25 5.25 0 1 0-.001-10.501A5.25 5.25 0 0 0 8 14.5Zm.389-6.7 1.33-1.33a.75.75 0 1 1 1.061 1.06L9.45 8.861A1.503 1.503 0 0 1 8 10.75a1.499 1.499 0 1 1 .389-2.95Z"],h:16,w:16},24:{p:["M10.25 0h3.5a.75.75 0 0 1 0 1.5h-1v1.278a9.954 9.954 0 0 1 5.636 2.276L19.72 3.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.315 1.316A9.959 9.959 0 0 1 22 12.75c0 5.523-4.477 10-10 10s-10-4.477-10-10a9.959 9.959 0 0 1 2.535-6.654L3.22 4.78a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.335 1.334a9.958 9.958 0 0 1 5.635-2.276V1.5h-1a.75.75 0 0 1 0-1.5ZM12 21.25a8.5 8.5 0 1 0-.001-17.001A8.5 8.5 0 0 0 12 21.25Zm4.03-12.53a.75.75 0 0 1 0 1.06l-2.381 2.382a1.75 1.75 0 1 1-1.06-1.06l2.38-2.382a.75.75 0 0 1 1.061 0Z"],h:24,w:24}},$c={16:{p:["M11.055 8.5c.524.536.815 1.257.811 2.007a3.133 3.133 0 0 1-1.12 2.408C9.948 13.597 8.748 14 7.096 14c-1.706 0-3.104-.607-3.902-1.377a.751.751 0 0 1 1.042-1.079c.48.463 1.487.956 2.86.956 1.422 0 2.232-.346 2.676-.726.435-.372.594-.839.594-1.267 0-.472-.208-.857-.647-1.197-.448-.346-1.116-.623-1.951-.81H1.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5ZM7.581 3.25c-2.036 0-2.778 1.082-2.778 1.786 0 .055.002.107.006.157a.75.75 0 0 1-1.496.114 3.506 3.506 0 0 1-.01-.271c0-1.832 1.75-3.286 4.278-3.286 1.418 0 2.721.58 3.514 1.093a.75.75 0 1 1-.814 1.26c-.64-.414-1.662-.853-2.7-.853Z"],h:16,w:16},24:{p:["m16.533 12.5.054.043c.93.75 1.538 1.77 1.538 3.066a4.13 4.13 0 0 1-1.479 3.177c-1.058.904-2.679 1.464-4.974 1.464-2.35 0-4.252-.837-5.318-1.865a.75.75 0 1 1 1.042-1.08c.747.722 2.258 1.445 4.276 1.445 2.065 0 3.296-.504 3.999-1.105a2.63 2.63 0 0 0 .954-2.036c0-.764-.337-1.38-.979-1.898-.649-.523-1.598-.931-2.76-1.211H3.75a.75.75 0 0 1 0-1.5h16.5a.75.75 0 0 1 0 1.5ZM12.36 5C9.37 5 8.105 6.613 8.105 7.848c0 .411.072.744.193 1.02a.75.75 0 0 1-1.373.603 3.988 3.988 0 0 1-.32-1.623c0-2.363 2.271-4.348 5.755-4.348 1.931 0 3.722.794 4.814 1.5a.75.75 0 1 1-.814 1.26c-.94-.607-2.448-1.26-4-1.26Z"],h:24,w:24}},Wc={16:{p:["M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm5.657-8.157a.75.75 0 0 1 0 1.061l-1.061 1.06a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.06-1.06a.75.75 0 0 1 1.06 0Zm-9.193 9.193a.75.75 0 0 1 0 1.06l-1.06 1.061a.75.75 0 1 1-1.061-1.06l1.06-1.061a.75.75 0 0 1 1.061 0ZM8 0a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 8 0ZM3 8a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 3 8Zm13 0a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 16 8Zm-8 5a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 13Zm3.536-1.464a.75.75 0 0 1 1.06 0l1.061 1.06a.75.75 0 0 1-1.06 1.061l-1.061-1.06a.75.75 0 0 1 0-1.061ZM2.343 2.343a.75.75 0 0 1 1.061 0l1.06 1.061a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-1.06-1.06a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M12 19a7 7 0 1 1 0-14 7 7 0 0 1 0 14Zm0-1.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 1 0 0 11Zm-5.657.157a.75.75 0 0 1 0 1.06l-1.768 1.768a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.767-1.768a.75.75 0 0 1 1.061 0ZM3.515 3.515a.75.75 0 0 1 1.06 0l1.768 1.768a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L3.515 4.575a.75.75 0 0 1 0-1.06ZM12 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 12 0ZM4 12a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1 0-1.5h2.5A.75.75 0 0 1 4 12Zm8 8a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0v-2.5A.75.75 0 0 1 12 20Zm12-8a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h2.5A.75.75 0 0 1 24 12Zm-6.343 5.657a.75.75 0 0 1 1.06 0l1.768 1.768a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-1.768-1.767a.75.75 0 0 1 0-1.061Zm2.828-14.142a.75.75 0 0 1 0 1.06l-1.768 1.768a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l1.767-1.768a.75.75 0 0 1 1.061 0Z"],h:24,w:24}},Vc={16:{p:["M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z"],h:16,w:16},24:{p:["M3.38 8A9.502 9.502 0 0 1 12 2.5a9.502 9.502 0 0 1 9.215 7.182.75.75 0 1 0 1.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 0 0-9.5 5.452V4.75a.75.75 0 0 0-1.5 0V8.5a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H3.38Zm-.595 6.318a.75.75 0 0 0-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 0 0 1.5 0V15.5a1 1 0 0 0-1-1h-3.75a.75.75 0 0 0 0 1.5h2.37A9.502 9.502 0 0 1 12 21.5c-4.446 0-8.181-3.055-9.215-7.182Z"],h:24,w:24}},qc={24:{p:["M22 4.25a.75.75 0 0 0-1.5 0v15a.75.75 0 0 0 1.5 0v-15Zm-9.72 14.28a.75.75 0 1 1-1.06-1.06l4.97-4.97H1.75a.75.75 0 0 1 0-1.5h14.44l-4.97-4.97a.75.75 0 0 1 1.06-1.06l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25Z"],h:24,w:24}},Gc={16:{p:["M3.25 4a.25.25 0 0 0-.25.25v9a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1 0-1.5h.75V4.25c0-.966.784-1.75 1.75-1.75h9.5c.966 0 1.75.784 1.75 1.75v8.25h.75a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75v-9a.25.25 0 0 0-.25-.25h-9.5Z","m7.97 7.97-2.75 2.75a.75.75 0 1 0 1.06 1.06l2.75-2.75 1.543 1.543a.25.25 0 0 0 .427-.177V6.25a.25.25 0 0 0-.25-.25H6.604a.25.25 0 0 0-.177.427L7.97 7.97Z"],h:16,w:16}},zc={16:{p:["M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"],h:16,w:16},24:{p:["M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25ZM9 9v11.5h11.25a.25.25 0 0 0 .25-.25V9Zm11.5-1.5V3.75a.25.25 0 0 0-.25-.25H9v4ZM3.5 9v11.25c0 .138.112.25.25.25H7.5V9Zm4-1.5v-4H3.75a.25.25 0 0 0-.25.25V7.5Z"],h:24,w:24}},jc={16:{p:["M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"],h:16,w:16},24:{p:["M7.75 6.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z","M2.5 1h8.44a1.5 1.5 0 0 1 1.06.44l10.25 10.25a1.5 1.5 0 0 1 0 2.12l-8.44 8.44a1.5 1.5 0 0 1-2.12 0L1.44 12A1.497 1.497 0 0 1 1 10.94V2.5A1.5 1.5 0 0 1 2.5 1Zm0 1.5v8.44l10.25 10.25 8.44-8.44L10.94 2.5Z"],h:24,w:24}},Kc={16:{p:["M2 2h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm4.655 8.595a.75.75 0 0 1 0 1.06L4.03 14.28a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.095-2.095a.75.75 0 0 1 1.06 0ZM9.75 2.5h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5Zm0 5h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5Zm0 5h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5Zm-7.25-9v3h3v-3Z"],h:16,w:16},24:{p:["M3 6a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1Zm1.5 4.5h4v-4h-4Zm8.25-5a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Zm0 6a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Zm0 6a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Zm-2.97-2.53a.75.75 0 0 1 0 1.06l-3.5 3.5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47 2.97-2.97a.75.75 0 0 1 1.06 0Z"],h:24,w:24}},Yc={16:{p:["M14.184 1.143v-.001l1.422 2.464a1.75 1.75 0 0 1-.757 2.451L3.104 11.713a1.75 1.75 0 0 1-2.275-.702l-.447-.775a1.75 1.75 0 0 1 .53-2.32L11.682.573a1.748 1.748 0 0 1 2.502.57Zm-4.709 9.32h-.001l2.644 3.863a.75.75 0 1 1-1.238.848l-1.881-2.75v2.826a.75.75 0 0 1-1.5 0v-2.826l-1.881 2.75a.75.75 0 1 1-1.238-.848l2.049-2.992a.746.746 0 0 1 .293-.253l1.809-.87a.749.749 0 0 1 .944.252ZM9.436 3.92h-.001l-4.97 3.39.942 1.63 5.42-2.61Zm3.091-2.108h.001l-1.85 1.26 1.505 2.605 2.016-.97a.247.247 0 0 0 .13-.151.247.247 0 0 0-.022-.199l-1.422-2.464a.253.253 0 0 0-.161-.119.254.254 0 0 0-.197.038ZM1.756 9.157a.25.25 0 0 0-.075.33l.447.775a.25.25 0 0 0 .325.1l1.598-.769-.83-1.436-1.465 1Z"],h:16,w:16},24:{p:["M.408 15.13a2 2 0 0 1 .59-2.642L17.038 1.33a1.999 1.999 0 0 1 2.85.602l2.828 4.644a2 2 0 0 1-.851 2.847l-17.762 8.43a2 2 0 0 1-2.59-.807Zm5.263-4.066 1.987 3.44 8.712-4.135-2.857-4.76Zm12.06-1.34.001-.001 3.49-1.656a.498.498 0 0 0 .212-.712l-2.826-4.644a.503.503 0 0 0-.713-.151l-3.148 2.19Zm-13.295 2.2L1.854 13.72a.5.5 0 0 0-.147.66l1.105 1.915a.5.5 0 0 0 .648.201l2.838-1.347ZM17.155 22.87a.75.75 0 0 0 .226-1.036l-4-6.239a.75.75 0 0 0-.941-.278l-2.75 1.25a.75.75 0 0 0-.318.274l-3.25 4.989a.75.75 0 0 0 1.256.819l3.131-4.806.51-.232v5.64a.75.75 0 1 0 1.5 0v-6.22l3.6 5.613a.75.75 0 0 0 1.036.226Z"],h:24,w:24}},Xc={16:{p:["M11.905.42a1.5 1.5 0 0 1 2.144.49l1.692 2.93a1.5 1.5 0 0 1-.649 2.102L2.895 11.815a1.5 1.5 0 0 1-1.95-.602l-.68-1.176a1.5 1.5 0 0 1 .455-1.99L11.905.422Zm-3.374 9.79a.75.75 0 0 1 .944.253l2.644 3.864a.751.751 0 0 1-1.238.847L9 12.424v2.826a.75.75 0 0 1-1.5 0v-2.826l-1.881 2.75a.75.75 0 1 1-1.238-.848l2.048-2.992a.752.752 0 0 1 .293-.252l1.81-.871Zm2.476-3.965v-.001l1.356-.653-1.52-2.631-1.243.848ZM3.279 8.119l.835 1.445 1.355-.653-.947-1.64Z"],h:16,w:16},24:{p:["M17.155 22.87a.75.75 0 0 0 .226-1.036l-4-6.239a.75.75 0 0 0-.941-.277l-2.75 1.25a.75.75 0 0 0-.318.273l-3.25 4.989a.75.75 0 0 0 1.256.819l3.131-4.806.51-.232v5.64a.75.75 0 1 0 1.5 0v-6.22l3.6 5.613a.75.75 0 0 0 1.036.226ZM.408 15.13a2 2 0 0 1 .59-2.642L17.038 1.33a1.999 1.999 0 0 1 2.85.602l2.828 4.644a2 2 0 0 1-.851 2.847l-17.762 8.43a2 2 0 0 1-2.59-.807Zm13.105-9.521 2.857 4.76 1.361-.646-2.984-4.973Zm-7.842 5.455-1.235.86 1.862 3.225 1.36-.645Z"],h:24,w:24}},Qc={16:{p:["M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"],h:16,w:16},24:{p:["M9.25 12a.75.75 0 0 1-.22.53l-2.75 2.75a.75.75 0 0 1-1.06-1.06L7.44 12 5.22 9.78a.75.75 0 1 1 1.06-1.06l2.75 2.75c.141.14.22.331.22.53Zm2 2a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-5Z","M0 4.75C0 3.784.784 3 1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},Jc={16:{p:["M1 2.75A.75.75 0 0 1 1.75 2h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 2.75Zm0 5A.75.75 0 0 1 1.75 7h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 7.75ZM1.75 12h12.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5Z"],h:16,w:16}},eu={16:{p:["M7.083 15.986c-.763-.087-1.499-.295-2.011-.884-.504-.581-.655-1.378-.655-2.299 0-.468.087-1.12.157-1.638l.015-.112H3.167c-.603 0-1.174-.086-1.669-.334a2.415 2.415 0 0 1-1.136-1.2c-.454-.998-.438-2.447-.188-4.316l.04-.306C.32 4.108.41 3.424.526 2.864c.132-.63.316-1.209.669-1.672C1.947.205 3.211.053 4.917.053c1.848 0 3.234.332 4.388.652l.474.133c.658.187 1.201.341 1.726.415a1.75 1.75 0 0 1 1.662-1.2h1c.966 0 1.75.784 1.75 1.75v7.5a1.75 1.75 0 0 1-1.75 1.75h-1a1.75 1.75 0 0 1-1.514-.872c-.259.105-.59.268-.919.508-.671.491-1.317 1.285-1.317 2.614v.5c0 1.201-.994 2.336-2.334 2.183Zm4.334-13.232c-.706-.089-1.39-.284-2.072-.479l-.441-.125c-1.096-.304-2.335-.597-3.987-.597-1.794 0-2.28.222-2.529.548-.147.193-.275.505-.393 1.07-.105.502-.188 1.124-.295 1.93l-.04.3c-.25 1.882-.19 2.933.067 3.497a.923.923 0 0 0 .443.48c.208.104.52.175.997.175h1.75c.685 0 1.295.577 1.205 1.335-.022.192-.049.39-.075.586-.066.488-.13.97-.13 1.329 0 .808.144 1.15.288 1.316.137.157.401.303 1.048.377.307.035.664-.237.664-.693v-.5c0-1.922.978-3.127 1.932-3.825a5.878 5.878 0 0 1 1.568-.809Zm1.75 6.798h1a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25h-1a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25Z"],h:16,w:16},24:{p:["M12.596 21.957c-1.301.092-2.303-.986-2.303-2.206v-1.053c0-2.666-1.813-3.785-2.774-4.2a1.884 1.884 0 0 0-.523-.13A1.75 1.75 0 0 1 5.25 16h-1.5A1.75 1.75 0 0 1 2 14.25V3.75C2 2.784 2.784 2 3.75 2h1.5a1.75 1.75 0 0 1 1.742 1.58c.838-.06 1.667-.296 2.69-.586l.602-.17C11.748 2.419 13.497 2 15.828 2c2.188 0 3.693.204 4.583 1.372.422.554.65 1.255.816 2.05.148.708.262 1.57.396 2.58l.051.39c.319 2.386.328 4.18-.223 5.394-.293.644-.743 1.125-1.355 1.431-.59.296-1.284.404-2.036.404h-2.05l.056.429c.025.18.05.372.076.572.06.483.117 1.006.117 1.438 0 1.245-.222 2.253-.92 2.942-.684.674-1.668.879-2.743.955ZM7 5.082v7.779c.383.025.759.113 1.113.26 1.192.514 3.68 2.027 3.68 5.577v1.053c0 .436.347.734.698.71 1.021-.072 1.52-.258 1.795-.528.26-.256.473-.748.473-1.873 0-.328-.045-.768-.105-1.25l-.07-.527c-.04-.297-.079-.59-.105-.834-.082-.758.53-1.328 1.211-1.328h2.37c.625 0 1.06-.092 1.365-.245.285-.142.5-.359.66-.711.355-.78.422-2.176.102-4.574l-.05-.385c-.137-1.027-.243-1.827-.379-2.477-.152-.73-.324-1.165-.54-1.448-.386-.507-1.113-.781-3.39-.781-2.136 0-3.736.379-5.142.771-.191.052-.38.106-.568.16-1.039.296-2.059.587-3.118.651ZM3.75 3.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"],h:24,w:24}},tu={16:{p:["M8.834.066c.763.087 1.5.295 2.01.884.505.581.656 1.378.656 2.3 0 .467-.087 1.119-.157 1.637L11.328 5h1.422c.603 0 1.174.085 1.668.333.508.254.911.679 1.137 1.2.453.998.438 2.447.188 4.316l-.04.306c-.105.79-.195 1.473-.313 2.033-.131.63-.315 1.209-.668 1.672C13.97 15.847 12.706 16 11 16c-1.848 0-3.234-.333-4.388-.653-.165-.045-.323-.09-.475-.133-.658-.186-1.2-.34-1.725-.415A1.75 1.75 0 0 1 2.75 16h-1A1.75 1.75 0 0 1 0 14.25v-7.5C0 5.784.784 5 1.75 5h1a1.75 1.75 0 0 1 1.514.872c.258-.105.59-.268.918-.508C5.853 4.874 6.5 4.079 6.5 2.75v-.5c0-1.202.994-2.337 2.334-2.184ZM4.5 13.3c.705.088 1.39.284 2.072.478l.441.125c1.096.305 2.334.598 3.987.598 1.794 0 2.28-.223 2.528-.549.147-.193.276-.505.394-1.07.105-.502.188-1.124.295-1.93l.04-.3c.25-1.882.189-2.933-.068-3.497a.921.921 0 0 0-.442-.48c-.208-.104-.52-.174-.997-.174H11c-.686 0-1.295-.577-1.206-1.336.023-.192.05-.39.076-.586.065-.488.13-.97.13-1.328 0-.809-.144-1.15-.288-1.316-.137-.158-.402-.304-1.048-.378C8.357 1.521 8 1.793 8 2.25v.5c0 1.922-.978 3.128-1.933 3.825a5.831 5.831 0 0 1-1.567.81ZM2.75 6.5h-1a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h1a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M12.596 2.043c1.075.076 2.059.281 2.743.956.698.688.92 1.696.92 2.941 0 .432-.057.955-.117 1.438-.026.2-.051.392-.076.572l-.056.429h2.05c.752 0 1.446.108 2.036.404.612.306 1.062.787 1.355 1.431.551 1.214.542 3.008.223 5.394l-.051.39c-.134 1.01-.248 1.872-.396 2.58-.166.795-.394 1.496-.816 2.05-.89 1.168-2.395 1.372-4.583 1.372-2.331 0-4.08-.418-5.544-.824l-.602-.17c-1.023-.29-1.852-.526-2.69-.586A1.75 1.75 0 0 1 5.25 22h-1.5A1.75 1.75 0 0 1 2 20.25V9.75C2 8.784 2.784 8 3.75 8h1.5a1.75 1.75 0 0 1 1.746 1.633 1.85 1.85 0 0 0 .523-.131c.961-.415 2.774-1.534 2.774-4.2V4.249c0-1.22 1.002-2.298 2.303-2.206ZM7 18.918c1.059.064 2.079.355 3.118.652l.568.16c1.406.39 3.006.77 5.142.77 2.277 0 3.004-.274 3.39-.781.216-.283.388-.718.54-1.448.136-.65.242-1.45.379-2.477l.05-.384c.32-2.4.253-3.795-.102-4.575-.16-.352-.375-.568-.66-.711-.305-.153-.74-.245-1.365-.245h-2.37c-.681 0-1.293-.57-1.211-1.328.026-.243.065-.537.105-.834l.07-.527c.06-.482.105-.921.105-1.25 0-1.125-.213-1.617-.473-1.873-.275-.27-.774-.455-1.795-.528-.351-.024-.698.274-.698.71v1.053c0 3.55-2.488 5.063-3.68 5.577-.372.16-.754.232-1.113.26ZM3.75 20.5h1.5a.25.25 0 0 0 .25-.25V9.75a.25.25 0 0 0-.25-.25h-1.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25Z"],h:24,w:24}},nu={16:{p:["M5.433 2.304A4.492 4.492 0 0 0 3.5 6c0 1.598.832 3.002 2.09 3.802.518.328.929.923.902 1.64v.008l-.164 3.337a.75.75 0 1 1-1.498-.073l.163-3.33c.002-.085-.05-.216-.207-.316A5.996 5.996 0 0 1 2 6a5.993 5.993 0 0 1 2.567-4.92 1.482 1.482 0 0 1 1.673-.04c.462.296.76.827.76 1.423v2.82c0 .082.041.16.11.206l.75.51a.25.25 0 0 0 .28 0l.75-.51A.249.249 0 0 0 9 5.282V2.463c0-.596.298-1.127.76-1.423a1.482 1.482 0 0 1 1.673.04A5.993 5.993 0 0 1 14 6a5.996 5.996 0 0 1-2.786 5.068c-.157.1-.209.23-.207.315l.163 3.33a.752.752 0 0 1-1.094.714.75.75 0 0 1-.404-.64l-.164-3.345c-.027-.717.384-1.312.902-1.64A4.495 4.495 0 0 0 12.5 6a4.492 4.492 0 0 0-1.933-3.696c-.024.017-.067.067-.067.16v2.818a1.75 1.75 0 0 1-.767 1.448l-.75.51a1.75 1.75 0 0 1-1.966 0l-.75-.51A1.75 1.75 0 0 1 5.5 5.282V2.463c0-.092-.043-.142-.067-.159Z"],h:16,w:16},24:{p:["M7.875 2.292a.114.114 0 0 0-.032.018A7.239 7.239 0 0 0 4.75 8.25a7.248 7.248 0 0 0 3.654 6.297c.57.327.982.955.941 1.682v.002l-.317 6.058a.75.75 0 1 1-1.498-.078l.317-6.062v-.004c.006-.09-.047-.215-.188-.296A8.749 8.749 0 0 1 3.25 8.25a8.738 8.738 0 0 1 3.732-7.169 1.547 1.547 0 0 1 1.709-.064c.484.292.809.835.809 1.46v4.714a.25.25 0 0 0 .119.213l2.25 1.385c.08.05.182.05.262 0l2.25-1.385a.25.25 0 0 0 .119-.213V2.478c0-.626.325-1.169.81-1.461a1.547 1.547 0 0 1 1.708.064 8.741 8.741 0 0 1 3.732 7.17 8.747 8.747 0 0 1-4.41 7.598c-.14.081-.193.206-.188.296v.004l.318 6.062a.75.75 0 1 1-1.498.078l-.317-6.058v-.002c-.041-.727.37-1.355.94-1.682A7.247 7.247 0 0 0 19.25 8.25a7.239 7.239 0 0 0-3.093-5.94.114.114 0 0 0-.032-.018l-.01-.001c-.003 0-.014 0-.031.01-.036.022-.084.079-.084.177V7.19c0 .608-.315 1.172-.833 1.49l-2.25 1.385a1.75 1.75 0 0 1-1.834 0l-2.25-1.384A1.752 1.752 0 0 1 8 7.192V2.477c0-.098-.048-.155-.084-.176a.068.068 0 0 0-.031-.011l-.01.001Z"],h:24,w:24}},ru={16:{p:["M1.5 8a6.5 6.5 0 1 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","m8.677 12.427 2.896 2.896a.25.25 0 0 0 .427-.177V13h3.25a.75.75 0 0 0 0-1.5H12V9.354a.25.25 0 0 0-.427-.177l-2.896 2.896a.25.25 0 0 0 0 .354ZM11.28 6.78a.749.749 0 1 0-1.06-1.06L7.25 8.689 5.78 7.22a.749.749 0 1 0-1.06 1.06l2 2a.749.749 0 0 0 1.06 0l3.5-3.5Z"],h:16,w:16},24:{p:["M12 2.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5.75.75 0 0 1 0 1.5C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11a.75.75 0 0 1-1.5 0A9.5 9.5 0 0 0 12 2.5Z","m13.759 17.48 3.728 3.314a.308.308 0 0 0 .513-.23V18h4.25a.75.75 0 0 0 0-1.5H18v-2.564a.308.308 0 0 0-.513-.23l-3.728 3.314a.307.307 0 0 0 0 .46Zm3.521-8.2a.749.749 0 1 0-1.06-1.06l-5.97 5.969-2.47-2.469a.749.749 0 1 0-1.06 1.06l3 3a.749.749 0 0 0 1.06 0l6.5-6.5Z"],h:24,w:24}},su={16:{p:["M1.5 8a6.5 6.5 0 1 1 13 0A.75.75 0 0 0 16 8a8 8 0 1 0-8 8 .75.75 0 0 0 0-1.5A6.5 6.5 0 0 1 1.5 8Z","m8.677 12.427 2.896 2.896a.25.25 0 0 0 .427-.177V13h3.25a.75.75 0 0 0 0-1.5H12V9.354a.25.25 0 0 0-.427-.177l-2.896 2.896a.25.25 0 0 0 0 .354ZM11.28 5.78a.749.749 0 1 0-1.06-1.06l-5.5 5.5a.749.749 0 1 0 1.06 1.06l5.5-5.5Z"],h:16,w:16},24:{p:["M12 2.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5.75.75 0 0 1 0 1.5C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11a.75.75 0 0 1-1.5 0A9.5 9.5 0 0 0 12 2.5Z","m13.759 17.48 3.728 3.314a.308.308 0 0 0 .513-.23V18h4.25a.75.75 0 0 0 0-1.5H18v-2.564a.308.308 0 0 0-.513-.23l-3.728 3.314a.307.307 0 0 0 0 .46Zm3.521-9.7a.749.749 0 1 0-1.06-1.06l-9.5 9.5a.749.749 0 1 0 1.06 1.06l9.5-9.5Z"],h:24,w:24}},iu={16:{p:["M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"],h:16,w:16},24:{p:["M16 1.75V3h5.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H8V1.75C8 .784 8.784 0 9.75 0h4.5C15.216 0 16 .784 16 1.75Zm-6.5 0V3h5V1.75a.25.25 0 0 0-.25-.25h-4.5a.25.25 0 0 0-.25.25ZM4.997 6.178a.75.75 0 1 0-1.493.144L4.916 20.92a1.75 1.75 0 0 0 1.742 1.58h10.684a1.75 1.75 0 0 0 1.742-1.581l1.413-14.597a.75.75 0 0 0-1.494-.144l-1.412 14.596a.25.25 0 0 1-.249.226H6.658a.25.25 0 0 1-.249-.226L4.997 6.178Z","M9.206 7.501a.75.75 0 0 1 .793.705l.5 8.5A.75.75 0 1 1 9 16.794l-.5-8.5a.75.75 0 0 1 .705-.793Zm6.293.793A.75.75 0 1 0 14 8.206l-.5 8.5a.75.75 0 0 0 1.498.088l.5-8.5Z"],h:24,w:24}},ou={16:{p:["m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"],h:16,w:16},24:{p:["M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"],h:24,w:24}},au={16:{p:["M9.573 4.427 6.177 7.823a.25.25 0 0 0 0 .354l3.396 3.396a.25.25 0 0 0 .427-.177V4.604a.25.25 0 0 0-.427-.177Z"],h:16,w:16},24:{p:["m8.854 11.646 5.792-5.792a.5.5 0 0 1 .854.353v11.586a.5.5 0 0 1-.854.353l-5.792-5.792a.5.5 0 0 1 0-.708Z"],h:24,w:24}},lu={16:{p:["m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"],h:16,w:16},24:{p:["m15.146 12.354-5.792 5.792a.5.5 0 0 1-.854-.353V6.207a.5.5 0 0 1 .854-.353l5.792 5.792a.5.5 0 0 1 0 .708Z"],h:24,w:24}},cu={16:{p:["m4.427 9.573 3.396-3.396a.25.25 0 0 1 .354 0l3.396 3.396a.25.25 0 0 1-.177.427H4.604a.25.25 0 0 1-.177-.427Z"],h:16,w:16},24:{p:["m12.354 8.854 5.792 5.792a.5.5 0 0 1-.353.854H6.207a.5.5 0 0 1-.353-.854l5.792-5.792a.5.5 0 0 1 .708 0Z"],h:24,w:24}},uu={16:{p:["M3.217 6.962A3.75 3.75 0 0 1 0 3.25v-.5C0 1.784.784 1 1.75 1h1.356c.228-.585.796-1 1.462-1h6.864c.647 0 1.227.397 1.462 1h1.356c.966 0 1.75.784 1.75 1.75v.5a3.75 3.75 0 0 1-3.217 3.712 5.014 5.014 0 0 1-2.771 3.117l.144 1.446c.005.05.03.12.114.204.086.087.217.17.373.227.283.103.618.274.89.568.285.31.467.723.467 1.226v.75h1.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H4v-.75c0-.503.182-.916.468-1.226.27-.294.606-.465.889-.568.139-.048.266-.126.373-.227.084-.085.109-.153.114-.204l.144-1.446a5.015 5.015 0 0 1-2.77-3.117ZM4.5 1.568V5.5a3.5 3.5 0 1 0 7 0V1.568a.068.068 0 0 0-.068-.068H4.568a.068.068 0 0 0-.068.068Zm2.957 8.902-.12 1.204c-.093.925-.858 1.47-1.467 1.691a.766.766 0 0 0-.3.176c-.037.04-.07.093-.07.21v.75h5v-.75c0-.117-.033-.17-.07-.21a.766.766 0 0 0-.3-.176c-.609-.221-1.374-.766-1.466-1.69l-.12-1.204a5.064 5.064 0 0 1-1.087 0ZM13 2.5v2.872a2.25 2.25 0 0 0 1.5-2.122v-.5a.25.25 0 0 0-.25-.25H13Zm-10 0H1.75a.25.25 0 0 0-.25.25v.5c0 .98.626 1.813 1.5 2.122Z"],h:16,w:16},24:{p:["M5.09 10.121A5.251 5.251 0 0 1 1 5V3.75C1 2.784 1.784 2 2.75 2h2.364c.236-.586.81-1 1.48-1h10.812c.67 0 1.244.414 1.48 1h2.489c.966 0 1.75.784 1.75 1.75V5a5.252 5.252 0 0 1-4.219 5.149 7.01 7.01 0 0 1-4.644 5.478l.231 3.003a.5.5 0 0 0 .034.031c.079.065.303.203.836.282.838.124 1.637.81 1.637 1.807v.75h2.25a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1 0-1.5H7v-.75c0-.996.8-1.683 1.637-1.807.533-.08.757-.217.836-.282a.5.5 0 0 0 .034-.031l.231-3.003A7.012 7.012 0 0 1 5.09 10.12ZM6.5 2.594V9a5.5 5.5 0 1 0 11 0V2.594a.094.094 0 0 0-.094-.094H6.594a.094.094 0 0 0-.094.094Zm4.717 13.363-.215 2.793-.001.021-.003.043a1.212 1.212 0 0 1-.022.147c-.05.237-.194.567-.553.86-.348.286-.853.5-1.566.605a.478.478 0 0 0-.274.136.264.264 0 0 0-.083.188v.75h7v-.75a.264.264 0 0 0-.083-.188.478.478 0 0 0-.274-.136c-.713-.105-1.218-.32-1.567-.604-.358-.294-.502-.624-.552-.86a1.22 1.22 0 0 1-.025-.19l-.001-.022-.215-2.793a7.069 7.069 0 0 1-1.566 0ZM19 8.578A3.751 3.751 0 0 0 21.625 5V3.75a.25.25 0 0 0-.25-.25H19ZM5 3.5H2.75a.25.25 0 0 0-.25.25V5A3.752 3.752 0 0 0 5 8.537Z"],h:24,w:24}},hu={16:{p:["M6.71 10H2.332l-.874 2.498a.75.75 0 0 1-1.415-.496l3.39-9.688a1.217 1.217 0 0 1 2.302.018l3.227 9.681a.75.75 0 0 1-1.423.474Zm3.13-4.358C10.53 4.374 11.87 4 13 4c1.5 0 3 .939 3 2.601v5.649a.75.75 0 0 1-1.448.275C13.995 12.82 13.3 13 12.5 13c-.77 0-1.514-.231-2.078-.709-.577-.488-.922-1.199-.922-2.041 0-.694.265-1.411.887-1.944C11 7.78 11.88 7.5 13 7.5h1.5v-.899c0-.54-.5-1.101-1.5-1.101-.869 0-1.528.282-1.84.858a.75.75 0 1 1-1.32-.716ZM6.21 8.5 4.574 3.594 2.857 8.5Zm8.29.5H13c-.881 0-1.375.22-1.637.444-.253.217-.363.5-.363.806 0 .408.155.697.39.896.249.21.63.354 1.11.354.732 0 1.26-.209 1.588-.449.35-.257.412-.495.412-.551Z"],h:16,w:16},24:{p:["M10.414 15H3.586l-1.631 4.505a.75.75 0 1 1-1.41-.51l5.08-14.03a1.463 1.463 0 0 1 2.75 0l5.08 14.03a.75.75 0 1 1-1.411.51Zm4.532-5.098c.913-1.683 2.703-2.205 4.284-2.205 1.047 0 2.084.312 2.878.885.801.577 1.392 1.455 1.392 2.548v8.12a.75.75 0 0 1-1.5 0v-.06l-.044.025c-.893.52-2.096.785-3.451.785-1.051 0-2.048-.315-2.795-.948-.76-.643-1.217-1.578-1.217-2.702 0-.919.349-1.861 1.168-2.563.81-.694 2-1.087 3.569-1.087H22v-1.57c0-.503-.263-.967-.769-1.332-.513-.37-1.235-.6-2.001-.6-1.319 0-2.429.43-2.966 1.42a.75.75 0 0 1-1.318-.716ZM9.87 13.5 7 5.572 4.13 13.5Zm12.13.7h-2.77c-1.331 0-2.134.333-2.593.726a1.822 1.822 0 0 0-.644 1.424c0 .689.267 1.203.686 1.557.43.365 1.065.593 1.826.593 1.183 0 2.102-.235 2.697-.581.582-.34.798-.74.798-1.134Z"],h:24,w:24}},pu={16:{p:["M1.22 6.28a.749.749 0 0 1 0-1.06l3.5-3.5a.749.749 0 1 1 1.06 1.06L3.561 5h7.188l.001.007L10.749 5c.058 0 .116.007.171.019A4.501 4.501 0 0 1 10.5 14H8.796a.75.75 0 0 1 0-1.5H10.5a3 3 0 1 0 0-6H3.561L5.78 8.72a.749.749 0 1 1-1.06 1.06l-3.5-3.5Z"],h:16,w:16}},du={16:{p:["m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"],h:16,w:16},24:{p:["M12 23a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 21.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 23Z","M11.47 1.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 2.81 9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042ZM12 22.25a.75.75 0 0 1-.75-.75v-5.75a.75.75 0 0 1 1.5 0v5.75a.75.75 0 0 1-.75.75ZM2.75 12a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z","M12 1.5a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6A.75.75 0 0 1 12 1.5Z"],h:24,w:24}},mu={16:{p:["M12.914 5.914a2 2 0 0 0-2.828-2.828l-.837.837a.75.75 0 1 1-1.06-1.061l.836-.837a3.5 3.5 0 1 1 4.95 4.95l-.195.194a.75.75 0 0 1-1.06-1.06l.194-.195Zm-1.87 3.482a.759.759 0 0 1-.07.079c-.63.63-1.468 1.108-2.343 1.263-.89.159-1.86-.017-2.606-.763a.75.75 0 1 1 1.06-1.06c.329.327.767.438 1.284.347.493-.088 1.018-.36 1.445-.752l-1.247-.897a.709.709 0 0 1-.01-.008l-.295-.212c-.94-.597-1.984-.499-2.676.193l-2.5 2.5a2 2 0 1 0 2.828 2.828l.837-.836a.75.75 0 0 1 1.06 1.06l-.836.837a3.5 3.5 0 0 1-4.95-4.95l2.5-2.5a3.472 3.472 0 0 1 1.354-.848L2.312 3.109a.75.75 0 0 1 .876-1.218l5.93 4.27c.115.074.226.155.335.24l6.235 4.49a.75.75 0 0 1-.876 1.218l-3.768-2.713Z"],h:16,w:16},24:{p:["M20.347 3.653a3.936 3.936 0 0 0-5.567 0l-1.75 1.75a.75.75 0 0 1-1.06-1.06l1.75-1.75a5.436 5.436 0 0 1 7.688 7.687l-1.564 1.564a.75.75 0 0 1-1.06-1.06l1.563-1.564a3.936 3.936 0 0 0 0-5.567ZM9.786 12.369a.75.75 0 0 1 1.053.125c.096.122.2.24.314.353 1.348 1.348 3.386 1.587 4.89.658l-3.922-2.858a.745.745 0 0 1-.057-.037c-1.419-1.013-3.454-.787-4.784.543L3.653 14.78a3.936 3.936 0 0 0 5.567 5.567l3-3a.75.75 0 1 1 1.06 1.06l-3 3a5.436 5.436 0 1 1-7.688-7.687l3.628-3.628a5.517 5.517 0 0 1 3.014-1.547l-7.05-5.136a.75.75 0 0 1 .883-1.213l20.25 14.75a.75.75 0 0 1-.884 1.213l-5.109-3.722c-2.155 1.709-5.278 1.425-7.232-.53a5.491 5.491 0 0 1-.431-.485.75.75 0 0 1 .125-1.053Z"],h:24,w:24}},fu={16:{p:["M5.5 4v2h7A1.5 1.5 0 0 1 14 7.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5v-6A1.5 1.5 0 0 1 3.499 6H4V4a4 4 0 0 1 7.371-2.154.75.75 0 0 1-1.264.808A2.5 2.5 0 0 0 5.5 4Zm-2 3.5v6h9v-6h-9Z"],h:16,w:16},24:{p:["M7.5 7.25V9h11a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-8A2.5 2.5 0 0 1 5.5 9H6V7.25C6 3.845 8.503 1 12 1c2.792 0 4.971 1.825 5.718 4.31a.75.75 0 1 1-1.436.432C15.71 3.84 14.079 2.5 12 2.5c-2.578 0-4.5 2.08-4.5 4.75Zm-3 4.25v8a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-13a1 1 0 0 0-1 1Z"],h:24,w:24}},gu={16:{p:["M7.563 2.069A.75.75 0 0 1 8 2.75v10.5a.751.751 0 0 1-1.238.57L3.472 11H1.75A1.75 1.75 0 0 1 0 9.25v-2.5C0 5.784.784 5 1.75 5h1.723l3.289-2.82a.75.75 0 0 1 .801-.111ZM6.5 4.38 4.238 6.319a.748.748 0 0 1-.488.181h-2a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h2c.179 0 .352.064.488.18L6.5 11.62Zm6.096-2.038a.75.75 0 0 1 1.06 0 8 8 0 0 1 0 11.314.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042 6.5 6.5 0 0 0 0-9.193.75.75 0 0 1 0-1.06Zm-1.06 2.121-.001.001a5 5 0 0 1 0 7.07.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734 3.5 3.5 0 0 0 0-4.95.75.75 0 1 1 1.061-1.061Z"],h:16,w:16},24:{p:["M11.553 3.064A.75.75 0 0 1 12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805a.752.752 0 0 1 .808-.13ZM10.5 5.445l-4.245 3.86a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86Zm8.218-1.223a.75.75 0 0 1 1.06 0c4.296 4.296 4.296 11.26 0 15.556a.75.75 0 0 1-1.06-1.06 9.5 9.5 0 0 0 0-13.436.75.75 0 0 1 0-1.06Z","M16.243 7.757a.75.75 0 1 0-1.061 1.061 4.5 4.5 0 0 1 0 6.364.75.75 0 0 0 1.06 1.06 6 6 0 0 0 0-8.485Z"],h:24,w:24}},yu={16:{p:["M10.5 3.5H1.75a.25.25 0 0 0-.25.25v.32L8 7.88l3.02-1.77a.75.75 0 0 1 .758 1.295L8.379 9.397a.75.75 0 0 1-.758 0L1.5 5.809v6.441c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4.5a.75.75 0 0 1 1.5 0v4.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25V4.513a.75.75 0 0 1 0-.027V3.75C0 2.784.784 2 1.75 2h8.75a.75.75 0 0 1 0 1.5Z","M14 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"],h:16,w:16},24:{p:["M1.75 4.5a.25.25 0 0 0-.25.25v.852l10.36 7a.25.25 0 0 0 .28 0l5.69-3.845A.75.75 0 0 1 18.67 10l-5.69 3.845c-.592.4-1.368.4-1.96 0L1.5 7.412V19.25c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25V4.75C0 3.784.784 3 1.75 3h15.5a.75.75 0 0 1 0 1.5H1.75Z","M24 5.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"],h:24,w:24}},wu={16:{p:["M6.415.52a2.677 2.677 0 0 1 3.17 0l.928.68c.153.113.33.186.518.215l1.138.175a2.678 2.678 0 0 1 2.241 2.24l.175 1.138c.029.187.102.365.215.518l.68.928a2.677 2.677 0 0 1 0 3.17l-.68.928a1.186 1.186 0 0 0-.215.518l-.175 1.138a2.678 2.678 0 0 1-2.241 2.241l-1.138.175a1.186 1.186 0 0 0-.518.215l-.928.68a2.677 2.677 0 0 1-3.17 0l-.928-.68a1.186 1.186 0 0 0-.518-.215L3.83 14.41a2.678 2.678 0 0 1-2.24-2.24l-.175-1.138a1.186 1.186 0 0 0-.215-.518l-.68-.928a2.677 2.677 0 0 1 0-3.17l.68-.928a1.17 1.17 0 0 0 .215-.518l.175-1.14a2.678 2.678 0 0 1 2.24-2.24l1.138-.175c.187-.029.365-.102.518-.215l.928-.68Zm2.282 1.209a1.18 1.18 0 0 0-1.394 0l-.928.68a2.67 2.67 0 0 1-1.18.489l-1.136.174a1.18 1.18 0 0 0-.987.987l-.174 1.137a2.67 2.67 0 0 1-.489 1.18l-.68.927c-.305.415-.305.98 0 1.394l.68.928c.256.348.423.752.489 1.18l.174 1.136c.078.51.478.909.987.987l1.137.174c.427.066.831.233 1.18.489l.927.68c.415.305.98.305 1.394 0l.928-.68a2.67 2.67 0 0 1 1.18-.489l1.136-.174c.51-.078.909-.478.987-.987l.174-1.137c.066-.427.233-.831.489-1.18l.68-.927c.305-.415.305-.98 0-1.394l-.68-.928a2.67 2.67 0 0 1-.489-1.18l-.174-1.136a1.18 1.18 0 0 0-.987-.987l-1.137-.174a2.67 2.67 0 0 1-1.18-.489ZM6.92 6.085h.001a.75.75 0 0 1-1.342-.67c.169-.339.436-.701.849-.977C6.846 4.16 7.369 4 8 4a2.76 2.76 0 0 1 1.638.525c.502.377.862.965.862 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.109-.073.22-.139.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],h:16,w:16},24:{p:["M13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-2.517-7.665c.112-.223.268-.424.488-.57C11.186 8.12 11.506 8 12 8c.384 0 .766.118 1.034.319a.953.953 0 0 1 .403.806c0 .48-.218.81-.62 1.186a9.293 9.293 0 0 1-.409.354 19.8 19.8 0 0 0-.294.249c-.246.213-.524.474-.738.795l-.126.19V13.5a.75.75 0 0 0 1.5 0v-1.12c.09-.1.203-.208.347-.333.063-.055.14-.119.222-.187.166-.14.358-.3.52-.452.536-.5 1.098-1.2 1.098-2.283a2.45 2.45 0 0 0-1.003-2.006C13.37 6.695 12.658 6.5 12 6.5c-.756 0-1.373.191-1.861.517a2.944 2.944 0 0 0-.997 1.148.75.75 0 0 0 1.341.67Z","M9.864 1.2a3.61 3.61 0 0 1 4.272 0l1.375 1.01c.274.2.593.333.929.384l1.686.259a3.61 3.61 0 0 1 3.021 3.02l.259 1.687c.051.336.183.655.384.929l1.01 1.375a3.61 3.61 0 0 1 0 4.272l-1.01 1.375a2.106 2.106 0 0 0-.384.929l-.259 1.686a3.61 3.61 0 0 1-3.02 3.021l-1.687.259a2.106 2.106 0 0 0-.929.384l-1.375 1.01a3.61 3.61 0 0 1-4.272 0l-1.375-1.01a2.106 2.106 0 0 0-.929-.384l-1.686-.259a3.61 3.61 0 0 1-3.021-3.02l-.259-1.687a2.106 2.106 0 0 0-.384-.929L1.2 14.136a3.61 3.61 0 0 1 0-4.272l1.01-1.375c.201-.274.333-.593.384-.929l.259-1.686a3.61 3.61 0 0 1 3.02-3.021l1.687-.259c.336-.051.655-.183.929-.384Zm3.384 1.209a2.11 2.11 0 0 0-2.496 0l-1.376 1.01a3.61 3.61 0 0 1-1.589.658l-1.686.258a2.111 2.111 0 0 0-1.766 1.766l-.258 1.686a3.614 3.614 0 0 1-.658 1.59l-1.01 1.375a2.11 2.11 0 0 0 0 2.496l1.01 1.376a3.61 3.61 0 0 1 .658 1.589l.258 1.686a2.11 2.11 0 0 0 1.766 1.765l1.686.26a3.613 3.613 0 0 1 1.59.657l1.375 1.01a2.11 2.11 0 0 0 2.496 0l1.376-1.01a3.61 3.61 0 0 1 1.589-.658l1.686-.258a2.11 2.11 0 0 0 1.765-1.766l.26-1.686a3.613 3.613 0 0 1 .657-1.59l1.01-1.375a2.11 2.11 0 0 0 0-2.496l-1.01-1.376a3.61 3.61 0 0 1-.658-1.589l-.258-1.686a2.111 2.111 0 0 0-1.766-1.766l-1.686-.258a3.614 3.614 0 0 1-1.59-.658Z"],h:24,w:24}},bu={16:{p:["M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z","M11.78 4.72a.749.749 0 1 1-1.06 1.06L8.75 3.811V9.5a.75.75 0 0 1-1.5 0V3.811L5.28 5.78a.749.749 0 1 1-1.06-1.06l3.25-3.25a.749.749 0 0 1 1.06 0l3.25 3.25Z"],h:16,w:16},24:{p:["M4 20.25V18a.75.75 0 0 1 1.5 0v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25Z","M5.22 9.53a.749.749 0 0 1 0-1.06l6.25-6.25a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 1 1-1.06 1.06l-4.97-4.969V16.75a.75.75 0 0 1-1.5 0V4.561L6.28 9.53a.749.749 0 0 1-1.06 0Z"],h:24,w:24}},Cu={16:{p:["m9.585.52.929.68c.153.112.331.186.518.215l1.138.175a2.678 2.678 0 0 1 2.24 2.24l.174 1.139c.029.187.103.365.215.518l.68.928a2.677 2.677 0 0 1 0 3.17l-.68.928a1.174 1.174 0 0 0-.215.518l-.175 1.138a2.678 2.678 0 0 1-2.241 2.241l-1.138.175a1.17 1.17 0 0 0-.518.215l-.928.68a2.677 2.677 0 0 1-3.17 0l-.928-.68a1.174 1.174 0 0 0-.518-.215L3.83 14.41a2.678 2.678 0 0 1-2.24-2.24l-.175-1.138a1.17 1.17 0 0 0-.215-.518l-.68-.928a2.677 2.677 0 0 1 0-3.17l.68-.928c.112-.153.186-.331.215-.518l.175-1.14a2.678 2.678 0 0 1 2.24-2.24l1.139-.175c.187-.029.365-.103.518-.215l.928-.68a2.677 2.677 0 0 1 3.17 0ZM7.303 1.728l-.927.68a2.67 2.67 0 0 1-1.18.489l-1.137.174a1.179 1.179 0 0 0-.987.987l-.174 1.136a2.677 2.677 0 0 1-.489 1.18l-.68.928a1.18 1.18 0 0 0 0 1.394l.68.927c.256.348.424.753.489 1.18l.174 1.137c.078.509.478.909.987.987l1.136.174a2.67 2.67 0 0 1 1.18.489l.928.68c.414.305.979.305 1.394 0l.927-.68a2.67 2.67 0 0 1 1.18-.489l1.137-.174a1.18 1.18 0 0 0 .987-.987l.174-1.136a2.67 2.67 0 0 1 .489-1.18l.68-.928a1.176 1.176 0 0 0 0-1.394l-.68-.927a2.686 2.686 0 0 1-.489-1.18l-.174-1.137a1.179 1.179 0 0 0-.987-.987l-1.136-.174a2.677 2.677 0 0 1-1.18-.489l-.928-.68a1.176 1.176 0 0 0-1.394 0ZM11.28 6.78l-3.75 3.75a.75.75 0 0 1-1.06 0L4.72 8.78a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L7 8.94l3.22-3.22a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"],h:16,w:16},24:{p:["M17.03 9.78a.75.75 0 0 0-1.06-1.06l-5.47 5.47-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6-6Z","m14.136 1.2 1.375 1.01c.274.201.593.333.929.384l1.687.259a3.61 3.61 0 0 1 3.02 3.021l.259 1.686c.051.336.183.655.384.929l1.01 1.375a3.61 3.61 0 0 1 0 4.272l-1.01 1.375a2.106 2.106 0 0 0-.384.929l-.259 1.687a3.61 3.61 0 0 1-3.021 3.02l-1.686.259a2.106 2.106 0 0 0-.929.384l-1.375 1.01a3.61 3.61 0 0 1-4.272 0l-1.375-1.01a2.106 2.106 0 0 0-.929-.384l-1.687-.259a3.61 3.61 0 0 1-3.02-3.021l-.259-1.686a2.117 2.117 0 0 0-.384-.929L1.2 14.136a3.61 3.61 0 0 1 0-4.272l1.01-1.375c.201-.274.333-.593.384-.929l.259-1.687a3.61 3.61 0 0 1 3.021-3.02l1.686-.259c.336-.051.655-.183.929-.384L9.864 1.2a3.61 3.61 0 0 1 4.272 0Zm-3.384 1.209-1.375 1.01a3.614 3.614 0 0 1-1.59.658l-1.686.258a2.111 2.111 0 0 0-1.766 1.766l-.258 1.686a3.61 3.61 0 0 1-.658 1.589l-1.01 1.376a2.11 2.11 0 0 0 0 2.496l1.01 1.375c.344.469.57 1.015.658 1.59l.258 1.686c.14.911.855 1.626 1.766 1.766l1.686.258a3.61 3.61 0 0 1 1.589.658l1.376 1.01a2.11 2.11 0 0 0 2.496 0l1.375-1.01a3.613 3.613 0 0 1 1.59-.657l1.686-.26a2.11 2.11 0 0 0 1.766-1.765l.258-1.686a3.61 3.61 0 0 1 .658-1.589l1.01-1.376a2.11 2.11 0 0 0 0-2.496l-1.01-1.375a3.613 3.613 0 0 1-.657-1.59l-.26-1.686a2.11 2.11 0 0 0-1.765-1.766l-1.686-.258a3.61 3.61 0 0 1-1.589-.658l-1.376-1.01a2.11 2.11 0 0 0-2.496 0Z"],h:24,w:24}},vu={16:{p:["M7.75 14A1.75 1.75 0 0 1 6 12.25v-8.5C6 2.784 6.784 2 7.75 2h6.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14Zm-.25-1.75c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-6.5a.25.25 0 0 0-.25.25ZM4.9 3.508a.75.75 0 0 1-.274 1.025.249.249 0 0 0-.126.217v6.5c0 .09.048.173.126.217a.75.75 0 0 1-.752 1.298A1.75 1.75 0 0 1 3 11.25v-6.5c0-.649.353-1.214.874-1.516a.75.75 0 0 1 1.025.274ZM1.625 5.533h.001a.249.249 0 0 0-.126.217v4.5c0 .09.048.173.126.217a.75.75 0 0 1-.752 1.298A1.748 1.748 0 0 1 0 10.25v-4.5a1.748 1.748 0 0 1 .873-1.516.75.75 0 1 1 .752 1.299Z"],h:16,w:16},24:{p:["M10 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2Zm-.5-2a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V4a.5.5 0 0 0-.5-.5H10a.5.5 0 0 0-.5.5ZM6.17 4.165a.75.75 0 0 1-.335 1.006c-.228.114-.295.177-.315.201a.035.035 0 0 0-.008.016.423.423 0 0 0-.012.112v13c0 .07.008.102.012.112a.03.03 0 0 0 .008.016c.02.024.087.087.315.201a.749.749 0 1 1-.67 1.342c-.272-.136-.58-.315-.81-.598C4.1 19.259 4 18.893 4 18.5v-13c0-.393.1-.759.355-1.073.23-.283.538-.462.81-.598a.75.75 0 0 1 1.006.336ZM2.15 5.624a.75.75 0 0 1-.274 1.025c-.15.087-.257.17-.32.245C1.5 6.96 1.5 6.99 1.5 7v10c0 .01 0 .04.056.106.063.074.17.158.32.245a.75.75 0 0 1-.752 1.298C.73 18.421 0 17.907 0 17V7c0-.907.73-1.42 1.124-1.65a.75.75 0 0 1 1.025.274Z"],h:24,w:24}},Su={16:{p:["M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25Z","M6 10.559V5.442a.25.25 0 0 1 .379-.215l4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559Z"],h:16,w:16},24:{p:["M0 4.75C0 3.784.784 3 1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14.5A1.75 1.75 0 0 1 22.25 21H1.75A1.75 1.75 0 0 1 0 19.25Zm1.75-.25a.25.25 0 0 0-.25.25v14.5c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25Z","M9 15.584V8.416a.5.5 0 0 1 .77-.42l5.576 3.583a.5.5 0 0 1 0 .842L9.77 16.005a.5.5 0 0 1-.77-.42Z"],h:24,w:24}},Eu={16:{p:["M5.5 4.25a2.25 2.25 0 0 1 4.5 0 .75.75 0 0 0 1.5 0 3.75 3.75 0 1 0-6.14 2.889l-2.272 4.258a.75.75 0 0 0 1.324.706L7 7.25a.75.75 0 0 0-.309-1.015A2.25 2.25 0 0 1 5.5 4.25Z","M7.364 3.607a.75.75 0 0 1 1.03.257l2.608 4.349a3.75 3.75 0 1 1-.628 6.785.75.75 0 0 1 .752-1.299 2.25 2.25 0 1 0-.033-3.88.75.75 0 0 1-1.03-.256L7.107 4.636a.75.75 0 0 1 .257-1.03Z","M2.9 8.776A.75.75 0 0 1 2.625 9.8 2.25 2.25 0 1 0 6 11.75a.75.75 0 0 1 .75-.751h5.5a.75.75 0 0 1 0 1.5H7.425a3.751 3.751 0 1 1-5.55-3.998.75.75 0 0 1 1.024.274Z"],h:16,w:16}},ku={16:{p:["M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"],h:16,w:16},24:{p:["M1 3a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2H7v4.063C7 16.355 7.644 17 8.438 17H12.5v-2.5a2 2 0 0 1 2-2H21a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-2.5H8.437A2.939 2.939 0 0 1 5.5 15.562V11.5H3a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v6.5a.5.5 0 0 0 .5.5h6.5a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5ZM14.5 14a.5.5 0 0 0-.5.5V21a.5.5 0 0 0 .5.5H21a.5.5 0 0 0 .5-.5v-6.5a.5.5 0 0 0-.5-.5Z"],h:24,w:24}},Ru={12:{p:["M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"],h:12,w:12},16:{p:["M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"],h:16,w:16},24:{p:["M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"],h:24,w:24}},Au={16:{p:["M2.344 2.343h-.001a8 8 0 0 1 11.314 11.314A8.002 8.002 0 0 1 .234 10.089a8 8 0 0 1 2.11-7.746Zm1.06 10.253a6.5 6.5 0 1 0 9.108-9.275 6.5 6.5 0 0 0-9.108 9.275ZM6.03 4.97 8 6.94l1.97-1.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-1.97 1.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L6.94 8 4.97 6.03a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018Z"],h:16,w:16},24:{p:["M9.036 7.976a.75.75 0 0 0-1.06 1.06L10.939 12l-2.963 2.963a.75.75 0 1 0 1.06 1.06L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.75.75 0 1 0-1.06-1.06L12 10.939 9.036 7.976Z","M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"],h:24,w:24}},Tu={12:{p:["M1.757 10.243a6.001 6.001 0 1 1 8.488-8.486 6.001 6.001 0 0 1-8.488 8.486ZM6 4.763l-2-2L2.763 4l2 2-2 2L4 9.237l2-2 2 2L9.237 8l-2-2 2-2L8 2.763Z"],h:12,w:12},16:{p:["M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z"],h:16,w:16},24:{p:["M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm8.036-4.024a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L10.939 12l-2.963 2.963a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L12 10.939Z"],h:24,w:24}},xu={16:{p:["M9.504.43a1.516 1.516 0 0 1 2.437 1.713L10.415 5.5h2.123c1.57 0 2.346 1.909 1.22 3.004l-7.34 7.142a1.249 1.249 0 0 1-.871.354h-.302a1.25 1.25 0 0 1-1.157-1.723L5.633 10.5H3.462c-1.57 0-2.346-1.909-1.22-3.004L9.503.429Zm1.047 1.074L3.286 8.571A.25.25 0 0 0 3.462 9H6.75a.75.75 0 0 1 .694 1.034l-1.713 4.188 6.982-6.793A.25.25 0 0 0 12.538 7H9.25a.75.75 0 0 1-.683-1.06l2.008-4.418.003-.006a.036.036 0 0 0-.004-.009l-.006-.006-.008-.001c-.003 0-.006.002-.009.004Z"],h:16,w:16},24:{p:["M15.716 1.329a1.341 1.341 0 0 1 2.109 1.55L15.147 9h4.161c1.623 0 2.372 2.016 1.143 3.075L8.102 22.721a1.148 1.148 0 0 1-1.81-1.317L8.996 15H4.674c-1.619 0-2.37-2.008-1.148-3.07l12.19-10.6Zm.452 1.595L4.51 13.061a.25.25 0 0 0 .164.439h5.45a.749.749 0 0 1 .692 1.041l-2.559 6.066 11.215-9.668a.25.25 0 0 0-.164-.439H14a.75.75 0 0 1-.687-1.05Z"],h:24,w:24}},Du={16:{p:["M3.75 7.5a.75.75 0 0 1 .75-.75h2.25V4.5a.75.75 0 0 1 1.5 0v2.25h2.25a.75.75 0 0 1 0 1.5H8.25v2.25a.75.75 0 0 1-1.5 0V8.25H4.5a.75.75 0 0 1-.75-.75Z","M7.5 0a7.5 7.5 0 0 1 5.807 12.247l2.473 2.473a.749.749 0 1 1-1.06 1.06l-2.473-2.473A7.5 7.5 0 1 1 7.5 0Zm-6 7.5a6 6 0 1 0 12 0 6 6 0 0 0-12 0Z"],h:16,w:16},24:{p:["M10.5 5.75a.75.75 0 0 1 .75.75v3.25h3.25a.75.75 0 0 1 0 1.5h-3.25v3.25a.75.75 0 0 1-1.5 0v-3.25H6.5a.75.75 0 0 1 0-1.5h3.25V6.5a.75.75 0 0 1 .75-.75Z","M0 10.5C0 4.701 4.701 0 10.5 0S21 4.701 21 10.5c0 2.63-.967 5.033-2.564 6.875l4.344 4.345a.749.749 0 1 1-1.06 1.06l-4.345-4.344A10.459 10.459 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5Zm10.5-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z"],h:24,w:24}},Mu={16:{p:["M4.5 6.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1 0-1.5Z","M0 7.5a7.5 7.5 0 1 1 13.307 4.747l2.473 2.473a.749.749 0 1 1-1.06 1.06l-2.473-2.473A7.5 7.5 0 0 1 0 7.5Zm7.5-6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z"],h:16,w:16},24:{p:["M14.5 11.25a.75.75 0 0 0 0-1.5h-8a.75.75 0 0 0 0 1.5h8Z","M0 10.5C0 4.701 4.701 0 10.5 0S21 4.701 21 10.5c0 2.63-.967 5.033-2.564 6.875l4.344 4.345a.749.749 0 1 1-1.06 1.06l-4.345-4.344A10.459 10.459 0 0 1 10.5 21C4.701 21 0 16.299 0 10.5Zm10.5-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z"],h:24,w:24}};class Pu extends ke.Component{getStyle=xr((e=>({height:28})));onTitlebarDoubleClickDarwin=async()=>{switch(await X()){case"Minimize":G();break;case"None":return;default:await Y()?j():z()}};render(){const e="full-screen"===this.props.windowState,t="maximized"===this.props.windowState,n=e?null:ke.createElement(ks,null),r=t?null:ke.createElement("div",{className:"resize-handle top"}),s=t?null:ke.createElement("div",{className:"resize-handle left"}),i="light"===this.props.titleBarStyle?"light-title-bar":"",o=this.props.showAppIcon?ke.createElement(Rs,{className:"app-icon",symbol:Ja}):null;return ke.createElement("div",{className:i,id:"desktop-app-title-bar",onDoubleClick:void 0,style:this.getStyle(this.props.windowZoomFactor)},r,s,o,this.props.children,n)}}class Iu extends ke.Component{infoDisappearTimeoutId=null;transitionGroupDisappearTimeoutId=null;constructor(e){super(e),this.state={windowZoomFactor:e.windowZoomFactor,renderTransitionGroup:!1,renderInfo:!1,transitionName:"zoom-in"}}componentWillReceiveProps(e){const t=this.state.windowZoomFactor!==e.windowZoomFactor;if(!t)return;null!==this.infoDisappearTimeoutId&&window.clearTimeout(this.infoDisappearTimeoutId),null!==this.transitionGroupDisappearTimeoutId&&window.clearTimeout(this.transitionGroupDisappearTimeoutId),this.infoDisappearTimeoutId=window.setTimeout(this.onInfoDisappearTimeout,750),this.transitionGroupDisappearTimeoutId=window.setTimeout(this.onTransitionGroupDisappearTimeout,950);const n=e.windowZoomFactor>this.state.windowZoomFactor?"zoom-in":"zoom-out";this.setState({windowZoomFactor:e.windowZoomFactor,renderTransitionGroup:t,renderInfo:t,transitionName:n})}onInfoDisappearTimeout=()=>{this.setState({renderInfo:!1})};onTransitionGroupDisappearTimeout=()=>{this.setState({renderTransitionGroup:!1})};renderZoomInfo(){if(!this.state.renderInfo)return null;const e=`${(100*this.state.windowZoomFactor).toFixed(0)}%`;return ke.createElement(Ye,{classNames:this.state.transitionName,appear:!0,enter:!1,exit:!0,timeout:100},ke.createElement("div",null,ke.createElement("span",null,e)))}render(){return this.state.renderTransitionGroup?ke.createElement(Be,{id:"window-zoom-info"},this.renderZoomInfo()):null}}class _u extends ke.Component{render(){const e=this.props.keys;return e.map(((t,n)=>ke.createElement(ke.Fragment,{key:t+n},ke.createElement("kbd",null,t),n<e.length-1?ke.createElement(ke.Fragment,null,"+"):null)))}}const Fu={appear:100,exit:250};class Nu extends ke.Component{static getDerivedStateFromProps(e,t){if("hidden"===e.windowState)return null;if(t.windowState!==e.windowState){const t="full-screen"===e.windowState;return{windowState:e.windowState,renderInfo:t,renderTransitionGroup:t}}return null}infoDisappearTimeoutId=null;transitionGroupDisappearTimeoutId=null;constructor(e){super(e),this.state={renderInfo:!1,renderTransitionGroup:!1}}componentDidMount(){this.state.renderInfo&&this.scheduleInfoDisappear(),this.state.renderTransitionGroup&&this.scheduleTransitionGroupDisappear()}componentDidUpdate(e,t){t.renderInfo!==this.state.renderInfo&&(this.state.renderInfo?this.scheduleInfoDisappear():this.clearInfoDisappearTimeout()),t.renderTransitionGroup!==this.state.renderTransitionGroup&&(this.state.renderTransitionGroup?this.scheduleTransitionGroupDisappear():this.clearTransitionGroupDisappearTimeout())}componentWillUnmount(){this.clearInfoDisappearTimeout(),this.clearTransitionGroupDisappearTimeout()}scheduleInfoDisappear(){this.infoDisappearTimeoutId=window.setTimeout(this.onInfoDisappearTimeout,3e3)}clearInfoDisappearTimeout(){null!==this.infoDisappearTimeoutId&&(window.clearTimeout(this.infoDisappearTimeoutId),this.infoDisappearTimeoutId=null)}scheduleTransitionGroupDisappear(){this.transitionGroupDisappearTimeoutId=window.setTimeout(this.onTransitionGroupDisappearTimeout,Fu.appear+3e3+Fu.exit)}clearTransitionGroupDisappearTimeout(){null!==this.transitionGroupDisappearTimeoutId&&(window.clearTimeout(this.transitionGroupDisappearTimeoutId),this.transitionGroupDisappearTimeoutId=null)}onInfoDisappearTimeout=()=>{this.setState({renderInfo:!1})};onTransitionGroupDisappearTimeout=()=>{this.setState({renderTransitionGroup:!1})};renderFullScreenNotification(){return this.state.renderInfo?ke.createElement(Ye,{classNames:"toast-animation",appear:!0,enter:!1,exit:!0,timeout:Fu},ke.createElement("div",{key:"notification",className:"toast-notification"},"Press ",ke.createElement(_u,{darwinKeys:["^","⌘","F"],keys:["F11"]})," ","to exit fullscreen")):null}render(){return this.state.renderTransitionGroup?ke.createElement(Be,{className:"toast-notification-container"},this.renderFullScreenNotification()):null}}function Ou(e){if(e instanceof cs)return Wi;if(e.missing)return xs;const t=e.gitHubRepository;return t?t.isPrivate?ja:t.fork?ec:Xl:Gi}var Lu,Bu,Hu,Uu,Zu,$u,Wu,Vu;function qu(e){switch(e.trim()){case"CR":return"CR";case"LF":return"LF";case"CRLF":return"CRLF";default:return null}}!function(e){e[e.Text=0]="Text",e[e.Image=1]="Image",e[e.Binary=2]="Binary",e[e.Submodule=3]="Submodule",e[e.LargeText=4]="LargeText",e[e.Unrenderable=5]="Unrenderable"}(Lu||(Lu={})),function(e){e[e.Context=0]="Context",e[e.Add=1]="Add",e[e.Delete=2]="Delete",e[e.Hunk=3]="Hunk"}(Bu||(Bu={}));class Gu{text;type;originalLineNumber;oldLineNumber;newLineNumber;noTrailingNewLine;constructor(e,t,n,r,s,i=!1){this.text=e,this.type=t,this.originalLineNumber=n,this.oldLineNumber=r,this.newLineNumber=s,this.noTrailingNewLine=i}withNoTrailingNewLine(e){return new Gu(this.text,this.type,this.originalLineNumber,this.oldLineNumber,this.newLineNumber,e)}isIncludeableLine(){return this.type===Bu.Add||this.type===Bu.Delete}get content(){return this.text.substring(1)}equals(e){return this.text===e.text&&this.type===e.type&&this.originalLineNumber===e.originalLineNumber&&this.oldLineNumber===e.oldLineNumber&&this.newLineNumber===e.newLineNumber&&this.noTrailingNewLine===e.noTrailingNewLine}}function zu(e,t){switch(e){case Hu.All:return t;case Hu.None:return!t;case Hu.Partial:return!1;default:return at(0,`Unknown selection type ${e}`)}}!function(e){e.All="All",e.Partial="Partial",e.None="None"}(Hu||(Hu={}));class ju{defaultSelectionType;divergingLines;selectableLines;static fromInitialSelection(e){return e!==Hu.All&&e!==Hu.None?at(0,"Can only instantiate a DiffSelection with All or None as the initial selection"):new ju(e,null,null)}constructor(e,t=null,n=null){this.defaultSelectionType=e,this.divergingLines=t,this.selectableLines=n}getSelectionType(){const e=this.divergingLines,t=this.selectableLines;if(!e)return this.defaultSelectionType;if(0===e.size)return this.defaultSelectionType;if(t&&t.size===e.size){const n=[...t].every((t=>e.has(t)));if(n)return this.defaultSelectionType===Hu.All?Hu.None:Hu.All}return Hu.Partial}isSelected(e){const t=!!this.divergingLines&&this.divergingLines.has(e);return this.defaultSelectionType===Hu.All?!t:this.defaultSelectionType===Hu.None?t:at(this.defaultSelectionType,`Unknown base selection type ${this.defaultSelectionType}`)}isRangeSelected(e,t){if(t<=0)return Hu.None;const n=this.getSelectionType();if(n!==Hu.Partial)return n;if(1===t)return this.isSelected(e)?Hu.All:Hu.None;const r=e+t;let s=!1,i=!1;for(let t=e;t<r;t++)if(this.isSelected(t)&&(s=!0),this.isSelected(t)||(i=!0),s&&i)return Hu.Partial;return s?Hu.All:Hu.None}isSelectable(e){return!this.selectableLines||this.selectableLines.has(e)}withLineSelection(e,t){return this.withRangeSelection(e,1,t)}withRangeSelection(e,t,n){const r=this.getSelectionType(),s=e+t;if(zu(r,n))return this;if(r===Hu.Partial){const t=new Set(this.divergingLines);if(zu(this.defaultSelectionType,n))for(let n=e;n<s;n++)t.delete(n);else for(let n=e;n<s;n++)this.isSelectable(n)&&t.add(n);return new ju(this.defaultSelectionType,0===t.size?null:t,this.selectableLines)}{const t=new Set;for(let n=e;n<s;n++)this.isSelectable(n)&&t.add(n);return new ju(r,t,this.selectableLines)}}withToggleLineSelection(e){return this.withLineSelection(e,!this.isSelected(e))}withSelectAll(){return new ju(Hu.All,null,this.selectableLines)}withSelectNone(){return new ju(Hu.None,null,this.selectableLines)}withSelectableLines(e){const t=this.divergingLines?new Set([...this.divergingLines].filter((t=>e.has(t)))):null;return new ju(this.defaultSelectionType,t,e)}}class Ku{rawContents;contents;mediaType;bytes;constructor(e,t,n,r){this.rawContents=e,this.contents=t,this.mediaType=n,this.bytes=r}}!function(e){e.None="None",e.Up="Up",e.Down="Down",e.Both="Both",e.Short="Short"}(Uu||(Uu={}));class Yu{header;lines;unifiedDiffStart;unifiedDiffEnd;expansionType;constructor(e,t,n,r,s){this.header=e,this.lines=t,this.unifiedDiffStart=n,this.unifiedDiffEnd=r,this.expansionType=s}equals(e){return this===e||this.header.equals(e.header)&&this.unifiedDiffStart===e.unifiedDiffStart&&this.unifiedDiffEnd===e.unifiedDiffEnd&&this.expansionType===e.expansionType&&this.lines.length===e.lines.length&&this.lines.every(((t,n)=>t.equals(e.lines[n])))}}class Xu{oldStartLine;oldLineCount;newStartLine;newLineCount;constructor(e,t,n,r){this.oldStartLine=e,this.oldLineCount=t,this.newStartLine=n,this.newLineCount=r}toDiffLineRepresentation(){return`@@ -${this.oldStartLine},${this.oldLineCount} +${this.newStartLine},${this.newLineCount} @@`}equals(e){return this.oldStartLine===e.oldStartLine&&this.oldLineCount===e.oldLineCount&&this.newStartLine===e.newStartLine&&this.oldStartLine===e.oldStartLine}}function Qu(e){return e.kind===Wu.Conflicted}function Ju(e){return e.hasOwnProperty("conflictMarkerCount")}function eh(e){return!e.hasOwnProperty("conflictMarkerCount")}!function(e){e[e.TwoUp=0]="TwoUp",e[e.Swipe=1]="Swipe",e[e.OnionSkin=2]="OnionSkin",e[e.Difference=3]="Difference"}(Zu||(Zu={})),function(e){e.Modified="M",e.Added="A",e.Deleted="D",e.Renamed="R",e.Copied="C",e.Unchanged=".",e.Untracked="?",e.Ignored="!",e.UpdatedButUnmerged="U"}($u||($u={})),function(e){e.New="New",e.Modified="Modified",e.Deleted="Deleted",e.Copied="Copied",e.Renamed="Renamed",e.Conflicted="Conflicted",e.Untracked="Untracked"}(Wu||(Wu={})),function(e){e.AddedByUs="added-by-us",e.DeletedByUs="deleted-by-us",e.AddedByThem="added-by-them",e.DeletedByThem="deleted-by-them",e.BothDeleted="both-deleted",e.BothAdded="both-added",e.BothModified="both-modified"}(Vu||(Vu={}));class th{path;status;id;constructor(e,t){this.path=e,this.status=t,t.kind===Wu.Renamed||t.kind===Wu.Copied?this.id=`${t.kind}+${e}+${t.oldPath}`:this.id=`${t.kind}+${e}`}isDeleted(){return this.status.kind===Wu.Deleted}isNew(){return this.status.kind===Wu.New}isModified(){return this.status.kind===Wu.Modified}isUntracked(){return this.status.kind===Wu.Untracked}}class nh extends th{selection;constructor(e,t,n){super(e,t),this.selection=n}withIncludeAll(e){const t=e?this.selection.withSelectAll():this.selection.withSelectNone();return this.withSelection(t)}withSelection(e){return new nh(this.path,this.status,e)}isIncludedInCommit(){return this.selection.getSelectionType()===Hu.All}isExcludedFromCommit(){return this.selection.getSelectionType()===Hu.None}}class rh extends th{commitish;parentCommitish;constructor(e,t,n,r){super(e,t),this.commitish=n,this.parentCommitish=r,this.commitish=n}}class sh{files;includeAll;static fromFiles(e){return new sh(e,function(e){if(!e.length)return!0;const t=e.every((e=>e.selection.getSelectionType()===Hu.All)),n=e.every((e=>e.selection.getSelectionType()===Hu.None));let r=null;return t?r=!0:n&&(r=!1),r}(e))}fileIxById=new Map;constructor(e,t=!0){this.files=e,this.includeAll=t,e.forEach(((e,t)=>this.fileIxById.set(e.id,t)))}withIncludeAllFiles(e){const t=this.files.map((t=>t.withIncludeAll(e)));return new sh(t,e)}findFileWithID(e){const t=this.fileIxById.get(e);return void 0!==t&&this.files[t]||null}findFileIndexByID(e){const t=this.fileIxById.get(e);return void 0!==t?t:-1}}function ih(e){switch(e.kind){case Wu.New:case Wu.Untracked:return Xi;case Wu.Modified:return Ji;case Wu.Deleted:return eo;case Wu.Renamed:return to;case Wu.Conflicted:return Ju(e)?e.conflictMarkerCount>0?xs:ii:xs;case Wu.Copied:return Xi;default:return at(0,`Unknown file status ${e}`)}}const oh={w:16,h:16,p:["M8 2.5c1.645 0 3.123.722 4.131 1.869l-1.204 1.204a.25.25 0 0 0 .177.427h3.646a.25.25 0 0 0 .25-.25V2.104a.25.25 0 0 0-.427-.177l-1.38 1.38A7.001 7.001 0 0 0 1.05 7.16a.75.75 0 1 0 1.49.178A5.501 5.501 0 0 1 8 2.5zm6.294 5.505a.75.75 0 0 0-.833.656 5.501 5.501 0 0 1-9.592 2.97l1.204-1.204A.25.25 0 0 0 4.896 10H1.25a.25.25 0 0 0-.25.25v3.646c0 .223.27.335.427.177l1.38-1.38A7.001 7.001 0 0 0 14.95 8.84a.75.75 0 0 0-.657-.834z"]},ah=({text:e,highlight:t})=>ke.createElement("span",null,e.split("").map(((e,n)=>[e,t.includes(n)])).concat([["",!1]]).reduce(((e,[t,n],r,s)=>{if(n===e.matched&&r<s.length-1)e.str+=t;else{const s=e.matched?"mark":"span";e.result.push(ke.createElement(s,{key:r},e.str)),e.str=t,e.matched=n}return e}),{matched:!1,str:"",result:new Array}).result);class lh extends ke.Component{wrapperRef=vs();render(){const{tooltip:e,tagName:t,children:n,className:r,tooltipClassName:s,...i}=this.props;return ke.createElement(t??"span",{id:this.props.id,ref:this.wrapperRef,className:r,children:ke.createElement(ke.Fragment,null,void 0!==e&&ke.createElement(ys,{target:this.wrapperRef,className:s,...i},e),n)})}}class ch extends ke.Component{listItemRef=vs();render(){const e=this.props.repository,t=e instanceof Kr?e.gitHubRepository:null,n=this.props.changedFilesCount>0,r=e instanceof Kr?e.alias:null;let s=null;this.props.needsDisambiguation&&t&&(s=`${t.owner.login}/`);const i=hs()("name",{alias:null!==r});return ke.createElement("div",{className:"repository-list-item",ref:this.listItemRef},ke.createElement(ys,{target:this.listItemRef,disabled:cn()},this.renderTooltip()),ke.createElement(Rs,{className:"icon-for-repository",symbol:Ou(e)}),ke.createElement("div",{className:hs()(i)},s?ke.createElement("span",{className:"prefix"},s):null,ke.createElement(ah,{text:r??e.name,highlight:this.props.matches.title})),e instanceof Kr&&uh({aheadBehind:this.props.aheadBehind,hasChanges:n}))}renderTooltip(){const e=this.props.repository,t=e instanceof Kr?e.gitHubRepository:null,n=e instanceof Kr?e.alias:null,r=t?t.fullName:e.name;return ke.createElement(ke.Fragment,null,ke.createElement("div",null,ke.createElement("strong",null,r),n&&ke.createElement(ke.Fragment,null," (",n,")")),ke.createElement("div",null,e.path))}shouldComponentUpdate(e){return!(e.repository instanceof Kr&&this.props.repository instanceof Kr)||e.repository.id!==this.props.repository.id||e.matches!==this.props.matches}}const uh=e=>ke.createElement("div",{className:"repo-indicators"},e.aheadBehind&&hh(e.aheadBehind),e.hasChanges&&ph()),hh=e=>{const{ahead:t,behind:n}=e;if(0===t&&0===n)return null;const r="The currently checked out branch is"+(n?` ${dh(n)} behind `:"")+(n&&t?"and":"")+(t?` ${dh(t)} ahead of `:"")+"its tracked branch.";return ke.createElement(lh,{className:"ahead-behind",tagName:"div",tooltip:r,disabled:cn()},t>0&&ke.createElement(Rs,{symbol:Hs}),n>0&&ke.createElement(Rs,{symbol:_s}))},ph=()=>ke.createElement(lh,{className:"change-indicator-wrapper",tooltip:"There are uncommitted changes in this repository",disabled:cn()},ke.createElement(Rs,{symbol:oo})),dh=e=>`${e} commit${e>1?"s":""}`,mh=e=>{const{kind:t}=e;switch(t){case"recent":return"0:recent";case"dotcom":return`1:dotcom:${e.owner.login}`;case"enterprise":return`2:enterprise:${e.host}`;case"other":return"3:other";default:at(0,`Unknown repository group kind ${t}`)}},fh=e=>new URL(ir(e.gitHubRepository.endpoint)).host,gh=e=>e instanceof Kr&&Yr(e)?Dn(e.gitHubRepository.endpoint)?{kind:"dotcom",owner:e.gitHubRepository.owner}:{kind:"enterprise",host:fh(e)}:{kind:"other"},yh=e=>e instanceof Kr&&null!=e.alias?e.alias:e.name,wh=(e,t,n,r)=>{const s=new Map,i=new Map;for(const t of r.values())if("recent"!==t.group.kind)for(const n of t.repos.map(yh))i.set(n,(i.get(n)??0)+1),t.group===e&&s.set(n,(s.get(n)??0)+1);return t.map((t=>{const r=n.get(t.id),o=yh(t);return{text:t instanceof Kr?[o,Qr(t)]:[o],id:t.id.toString(),repository:t,needsDisambiguation:(s.get(o)??0)>1&&"enterprise"===e.kind||(i.get(o)??0)>1&&"recent"===e.kind,aheadBehind:r?.aheadBehind??null,changedFilesCount:r?.changedFilesCount??0}})).sort((({repository:e},{repository:t})=>br(yh(e),yh(t))))};function bh(e){switch(e.toLowerCase()){case"cmdorctrl":case"commandorcontrol":case"ctrl":case"control":return"Ctrl";case"shift":return"Shift";case"alt":return"Alt";case"cmd":case"command":return"⌘";case"option":return"⌥";case" ":return"Space"}return e}async function Ch(e,t=!1){const n=await ie(vh(e),t);if(null!==n){const t=function(e,t){let n={submenu:e};for(const e of t){if(void 0===n||void 0===n.submenu)return;n=n.submenu[e]}return n}(e,n);void 0!==t&&void 0!==t.action&&t.action()}}function vh(e){return e.map((e=>({...e,action:void 0,submenu:e.submenu?vh(e.submenu):void 0})))}var Sh;!function(e){e.RenameBranch="RenameBranch",e.DeleteBranch="DeleteBranch",e.DeleteRemoteBranch="DeleteRemoteBranch",e.ConfirmDiscardChanges="ConfirmDiscardChanges",e.Preferences="Preferences",e.RepositorySettings="RepositorySettings",e.AddRepository="AddRepository",e.CreateRepository="CreateRepository",e.CloneRepository="CloneRepository",e.CreateBranch="CreateBranch",e.SignIn="SignIn",e.About="About",e.InstallGit="InstallGit",e.PublishRepository="PublishRepository",e.Acknowledgements="Acknowledgements",e.UntrustedCertificate="UntrustedCertificate",e.RemoveRepository="RemoveRepository",e.TermsAndConditions="TermsAndConditions",e.PushBranchCommits="PushBranchCommits",e.CLIInstalled="CLIInstalled",e.GenericGitAuthentication="GenericGitAuthentication",e.ExternalEditorFailed="ExternalEditorFailed",e.OpenShellFailed="OpenShellFailed",e.InitializeLFS="InitializeLFS",e.LFSAttributeMismatch="LFSAttributeMismatch",e.UpstreamAlreadyExists="UpstreamAlreadyExists",e.ReleaseNotes="ReleaseNotes",e.DeletePullRequest="DeletePullRequest",e.OversizedFiles="OversizedFiles",e.CommitConflictsWarning="CommitConflictsWarning",e.PushNeedsPull="PushNeedsPull",e.ConfirmForcePush="ConfirmForcePush",e.StashAndSwitchBranch="StashAndSwitchBranch",e.ConfirmOverwriteStash="ConfirmOverwriteStash",e.ConfirmDiscardStash="ConfirmDiscardStash",e.ConfirmCheckoutCommit="ConfirmCheckoutCommit",e.CreateTutorialRepository="CreateTutorialRepository",e.ConfirmExitTutorial="ConfirmExitTutorial",e.PushRejectedDueToMissingWorkflowScope="PushRejectedDueToMissingWorkflowScope",e.SAMLReauthRequired="SAMLReauthRequired",e.CreateFork="CreateFork",e.CreateTag="CreateTag",e.DeleteTag="DeleteTag",e.LocalChangesOverwritten="LocalChangesOverwritten",e.ChooseForkSettings="ChooseForkSettings",e.ConfirmDiscardSelection="ConfirmDiscardSelection",e.MoveToApplicationsFolder="MoveToApplicationsFolder",e.ChangeRepositoryAlias="ChangeRepositoryAlias",e.ThankYou="ThankYou",e.CommitMessage="CommitMessage",e.MultiCommitOperation="MultiCommitOperation",e.WarnLocalChangesBeforeUndo="WarnLocalChangesBeforeUndo",e.WarningBeforeReset="WarningBeforeReset",e.InvalidatedToken="InvalidatedToken",e.AddSSHHost="AddSSHHost",e.SSHKeyPassphrase="SSHKeyPassphrase",e.SSHUserPassword="SSHUserPassword",e.PullRequestChecksFailed="PullRequestChecksFailed",e.CICheckRunRerun="CICheckRunRerun",e.WarnForcePush="WarnForcePush",e.DiscardChangesRetry="DiscardChangesRetry",e.PullRequestReview="PullRequestReview",e.UnreachableCommits="UnreachableCommits",e.StartPullRequest="StartPullRequest",e.Error="Error",e.InstallingUpdate="InstallingUpdate",e.TestNotifications="TestNotifications",e.PullRequestComment="PullRequestComment",e.UnknownAuthors="UnknownAuthors",e.TestIcons="TestIcons",e.ConfirmCommitFilteredChanges="ConfirmCommitFilteredChanges",e.TestAbout="TestAbout",e.PushProtectionError="PushProtectionError",e.BypassPushProtection="BypassPushProtection",e.GenerateCommitMessageOverrideWarning="GenerateCommitMessageOverrideWarning",e.GenerateCommitMessageDisclaimer="GenerateCommitMessageDisclaimer"}(Sh||(Sh={}));const Eh=[".cmd",".exe",".bat",".sh"],kh="复制文件路径",Rh="复制文件相对路径",Ah="打开于 external editor",Th="在资源管理器中显示",xh="回收站",Dh="使用默认程序打开";function Mh(e){return-1===Eh.indexOf(e.toLowerCase())}const Ph=e=>{const{repository:t}=e,n=t instanceof Kr&&t.missing,r=t instanceof Kr&&null!=t.gitHubRepository,s=e.externalEditorLabel?`打开于 ${e.externalEditorLabel}`:Ah,i=e.shellLabel?`打开于 ${e.shellLabel}`:"打开于 shell";return[...Ih(e),{label:"复制仓库名称",action:()=>m.clipboard.writeText(t.name)},{label:"复制仓库路径",action:()=>m.clipboard.writeText(t.path)},{type:"separator"},{label:"在GitHub上查看",action:()=>e.onViewOnGitHub(t),enabled:r},{label:i,action:()=>e.onOpenInShell(t),enabled:!n},{label:Th,action:()=>e.onShowRepository(t),enabled:!n},{label:s,action:()=>e.onOpenInExternalEditor(t),enabled:!n},{type:"separator"},{label:e.askForConfirmationOnRemoveRepository?"移除...":"移除",action:()=>e.onRemoveRepository(t)}]},Ih=e=>{const{repository:t}=e;if(!(t instanceof Kr))return[];const n=[{label:(null==t.alias?"创建":"变更")+" 别名",action:()=>e.onChangeRepositoryAlias(t)}];return null!==t.alias&&n.push({label:"移除别名",action:()=>e.onRemoveRepositoryAlias(t)}),n};var _h=n(3097),Fh=n(1199),Nh=n.n(Fh),Oh=n(1258),Lh=n(6412),Bh=n(1955),Hh=n(7354);var Uh=function(e){function t(){var e,n,r,s;(0,Oh.A)(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=(0,Bh.A)(this,(e=t.__proto__||Nh()(t)).call.apply(e,[this].concat(o))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,s=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,o=r._parentNode.offsetWidth||0,a=window.getComputedStyle(r._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,u=parseInt(a.paddingTop,10)||0,h=parseInt(a.paddingBottom,10)||0,p=i-u-h,d=o-l-c;(!t&&r.state.height!==p||!n&&r.state.width!==d)&&(r.setState({height:i-u-h,width:o-l-c}),s({height:i,width:o}))}},r._setRef=function(e){r._autoSizer=e},s=n,(0,Bh.A)(r,s)}return(0,Hh.A)(t,e),(0,Lh.A)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var n="undefined"!=typeof document&&document.attachEvent;if(!n){var r=function(){var e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(t){return e(t)}}(),i=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,s=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,s.style.width=n.offsetWidth+1+"px",s.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;i(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=r((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},a=!1,l="",c="animationstart",u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=document.createElement("fakeelement");if(void 0!==p.style.animationName&&(a=!0),!1===a)for(var d=0;d<u.length;d++)if(void 0!==p.style[u[d]+"AnimationName"]){l="-"+u[d].toLowerCase()+"-",c=h[d],a=!0;break}var m="resizeanim",f="@"+l+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",g=l+"animation: 1ms "+m+"; "}return{addResizeListener:function(r,s){if(n)r.attachEvent("onresize",s);else{if(!r.__resizeTriggers__){var a=r.ownerDocument,l=t.getComputedStyle(r);l&&"static"==l.position&&(r.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(f||"")+".resize-triggers { "+(g||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],s=t.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),r.appendChild(s)}}(a),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=a.createElement("div")).className="resize-triggers",r.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',r.appendChild(r.__resizeTriggers__),i(r),r.addEventListener("scroll",o,!0),c&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&i(r)},r.__resizeTriggers__.addEventListener(c,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(s)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",o,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(c,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,s=e.disableWidth,i=e.style,o=this.state,a=o.height,l=o.width,c={overflow:"visible"},u={};return r||(c.height=0,u.height=a),s||(c.width=0,u.width=l),ke.createElement("div",{className:n,ref:this._setRef,style:(0,_h.A)({},c,i)},t(u))}}]),t}(ke.PureComponent);Uh.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},Uh.propTypes=null;const Zh=Uh;var $h=n(177),Wh=n.n($h);function Vh(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,s=e.computeMetadataCallbackProps,i=e.nextCellsCount,o=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof o||n===o)||(r(s),l>=0&&l===a&&c())}var qh=n(3932),Gh=function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,s=t.estimatedCellSize;(0,Oh.A)(this,e),this._cellSizeAndPositionData={},this._lastMeasuredIndex=-1,this._lastBatchedIndex=-1,this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=s}return(0,Lh.A)(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var s=this._cellSizeGetter({index:r});if(void 0===s||isNaN(s))throw Error("Invalid size returned for cell "+r+" of value "+s);null===s?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:s},n+=s,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,s=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var o=this.getSizeAndPositionOfCell(i),a=o.offset,l=a-r+o.size,c=void 0;switch(n){case"start":c=a;break;case"end":c=l;break;case"center":c=a-(r-o.size)/2;break;default:c=Math.max(l,Math.min(a,s))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,c))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,s=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(s);n=i.offset+i.size;for(var o=s;n<r&&o<this._cellCount-1;)o++,n+=this.getSizeAndPositionOfCell(o).size;return{start:s,stop:o}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),s=this.getSizeAndPositionOfCell(r).offset;if(s===n)return r;s<n?t=r+1:s>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset "+e+" specified");e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}();const zh=Gh;var jh=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?"undefined"!=typeof window&&window.chrome&&window.chrome.webstore?16777100:15e5:n,s=(0,qh.A)(t,["maxScrollSize"]);(0,Oh.A)(this,e),this._cellSizeAndPositionManager=new zh(s),this._maxScrollSize=r}return(0,Lh.A)(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),s=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:s});return Math.round(i*(s-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,s=e.currentOffset,i=e.targetIndex;s=this._safeOffsetToOffset({containerSize:r,offset:s});var o=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:s,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:o})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),s=this.getTotalSize();if(r===s)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(s-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),s=this.getTotalSize();if(r===s)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:s});return Math.round(i*(r-t))}}]),e}();const Kh=jh;var Yh=n(8420),Xh=n.n(Yh);function Qh(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,s=n.indices,i=Xh()(s),o=!e||i.every((function(e){var t=s[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Xh()(t).length||i.some((function(e){var n=t[e],r=s[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=s,o&&a&&r(s)}}function Jh(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,s=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,s-n),overscanStopIndex:Math.min(t-1,i)}}function ep(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,s=e.previousCellSize,i=e.previousScrollToAlignment,o=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,h=e.size,p=e.sizeJustIncreasedFromZero,d=e.updateScrollIndexCallback,m=n.getCellCount(),f=u>=0&&u<m;f&&(h!==a||p||!s||"number"==typeof t&&t!==s||c!==i||u!==o)?d(u):!f&&m>0&&(h<a||m<r)&&l>n.getTotalSize()-h&&d(m-1)}var tp=n(4283),np=n.n(tp);function rp(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function sp(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function ip(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}rp.__suppressDeprecationWarning=!0,sp.__suppressDeprecationWarning=!0,ip.__suppressDeprecationWarning=!0;var op=void 0,ap=(op="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||op.webkitRequestAnimationFrame||op.mozRequestAnimationFrame||op.oRequestAnimationFrame||op.msRequestAnimationFrame||function(e){return op.setTimeout(e,1e3/60)},lp=op.cancelAnimationFrame||op.webkitCancelAnimationFrame||op.mozCancelAnimationFrame||op.oCancelAnimationFrame||op.msCancelAnimationFrame||function(e){op.clearTimeout(e)},cp=ap,up=lp,hp=function(e){return up(e.id)},pp="requested",dp=function(e){function t(e){(0,Oh.A)(this,t);var n=(0,Bh.A)(this,(t.__proto__||Nh()(t)).call(this,e));n._onGridRenderedMemoizer=Qh(),n._onScrollMemoizer=Qh(!1),n._deferredInvalidateColumnIndex=null,n._deferredInvalidateRowIndex=null,n._recomputeScrollLeftFlag=!1,n._recomputeScrollTopFlag=!1,n._horizontalScrollBarSize=0,n._verticalScrollBarSize=0,n._scrollbarPresenceChanged=!1,n._renderedColumnStartIndex=0,n._renderedColumnStopIndex=0,n._renderedRowStartIndex=0,n._renderedRowStopIndex=0,n._styleCache={},n._cellCache={},n._debounceScrollEndedCallback=function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})},n._invokeOnGridRenderedHelper=function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})},n._setScrollingContainerRef=function(e){n._scrollingContainer=e},n._onScroll=function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)};var r=new Kh({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),s=new Kh({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:s,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return(0,Hh.A)(t,e),(0,Lh.A)(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,s=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,o=void 0===i?this.props.scrollToRow:i,a=(0,_h.A)({},this.props,{scrollToAlignment:n,scrollToColumn:s,scrollToRow:o});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,s=void 0===r?0:r;if(!(s<0)){this._debounceScrollEnded();var i=this.props,o=i.autoHeight,a=i.autoWidth,l=i.height,c=i.width,u=this.state.instanceProps,h=u.scrollbarSize,p=u.rowSizeAndPositionManager.getTotalSize(),d=u.columnSizeAndPositionManager.getTotalSize(),m=Math.min(Math.max(0,d-c+h),n),f=Math.min(Math.max(0,p-l+h),s);if(this.state.scrollLeft!==m||this.state.scrollTop!==f){var g={isScrolling:!0,scrollDirectionHorizontal:m!==this.state.scrollLeft?m>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:f!==this.state.scrollTop?f>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};o||(g.scrollTop=f),a||(g.scrollLeft=m),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:f,totalColumnsWidth:d,totalRowsHeight:p})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,s=void 0===r?0:r,i=this.props,o=i.scrollToColumn,a=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=o>=0&&n<=o,this._recomputeScrollTopFlag=a>=0&&s<=a,this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,s=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn((0,_h.A)({},s,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow((0,_h.A)({},s,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,s=e.scrollLeft,i=e.scrollToColumn,o=e.scrollTop,a=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=(0,_h.A)({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof s&&s>=0||"number"==typeof o&&o>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:s,scrollTop:o});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var h=r>0&&l>0;i>=0&&h&&this._updateScrollLeftForScrollToColumn(),a>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:s||0,scrollTop:o||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,s=r.autoHeight,i=r.autoWidth,o=r.columnCount,a=r.height,l=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,h=r.scrollToRow,p=r.width,d=this.state,m=d.scrollLeft,f=d.scrollPositionChangeReason,g=d.scrollTop,y=d.instanceProps;this._handleInvalidatedGridSize();var w=o>0&&0===e.columnCount||l>0&&0===e.rowCount;f===pp&&(!i&&m>=0&&(m!==this._scrollingContainer.scrollLeft||w)&&(this._scrollingContainer.scrollLeft=m),!s&&g>=0&&(g!==this._scrollingContainer.scrollTop||w)&&(this._scrollingContainer.scrollTop=g));var b=(0===e.width||0===e.height)&&a>0&&p>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):ep({cellSizeAndPositionManager:y.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:m,scrollToAlignment:c,scrollToIndex:u,size:p,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):ep({cellSizeAndPositionManager:y.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:h,size:a,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),m!==t.scrollLeft||g!==t.scrollTop){var C=y.rowSizeAndPositionManager.getTotalSize(),v=y.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:g,totalColumnsWidth:v,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&hp(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,s=e.className,i=e.containerProps,o=e.containerRole,a=e.containerStyle,l=e.height,c=e.id,u=e.noContentRenderer,h=e.role,p=e.style,d=e.tabIndex,m=e.width,f=this.state,g=f.instanceProps,y=f.needToResetStyleCache,w=this._isScrolling(),b={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=g.columnSizeAndPositionManager.getTotalSize(),v=g.rowSizeAndPositionManager.getTotalSize(),S=v>l?g.scrollbarSize:0,E=C>m?g.scrollbarSize:0;E===this._horizontalScrollBarSize&&S===this._verticalScrollBarSize||(this._horizontalScrollBarSize=E,this._verticalScrollBarSize=S,this._scrollbarPresenceChanged=!0),b.overflowX=C+S<=m?"hidden":"auto",b.overflowY=v+E<=l?"hidden":"auto";var k=this._childrenToDisplay,R=0===k.length&&l>0&&m>0;return ke.createElement("div",(0,_h.A)({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:hs()("ReactVirtualized__Grid",s),id:c,onScroll:this._onScroll,role:h,style:(0,_h.A)({},b,p),tabIndex:d}),k.length>0&&ke.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:o,style:(0,_h.A)({width:t?"auto":C,height:v,maxWidth:C,maxHeight:v,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},a)},k),R&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,s=e.columnCount,i=e.deferredMeasurementCache,o=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,h=e.width,p=e.isScrollingOptOut,d=t.scrollDirectionHorizontal,m=t.scrollDirectionVertical,f=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,y=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,w=this._isScrolling(e,t);if(this._childrenToDisplay=[],o>0&&h>0){var b=f.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:y}),C=f.rowSizeAndPositionManager.getVisibleCellRange({containerSize:o,offset:g}),v=f.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:y}),S=f.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:o,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var E=l({direction:"horizontal",cellCount:s,overscanCellsCount:a,scrollDirection:d,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),k=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:m,startIndex:"number"==typeof C.start?C.start:0,stopIndex:"number"==typeof C.stop?C.stop:-1}),R=E.overscanStartIndex,A=E.overscanStopIndex,T=k.overscanStartIndex,x=k.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var D=T;D<=x;D++)if(!i.has(D,0)){R=0,A=s-1;break}if(!i.hasFixedWidth())for(var M=R;M<=A;M++)if(!i.has(0,M)){T=0,x=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:f.columnSizeAndPositionManager,columnStartIndex:R,columnStopIndex:A,deferredMeasurementCache:i,horizontalOffsetAdjustment:v,isScrolling:w,isScrollingOptOut:p,parent:this,rowSizeAndPositionManager:f.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:x,scrollLeft:y,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:b,visibleRowIndices:C}),this._columnStartIndex=R,this._columnStopIndex=A,this._rowStartIndex=T,this._rowStopIndex=x}}},{key:"_debounceScrollEnded",value:function(){var e,t,n,r,s=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&hp(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=(e=this._debounceScrollEndedCallback,t=s,n=Date.now(),r={id:cp((function s(){Date.now()-n>=t?e.call():r.id=cp(s)}))})}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,s=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t.props,a=o.height;(0,o.onScroll)({clientHeight:a,clientWidth:o.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:s})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,s=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});s&&(s.needToResetStyleCache=!1,this.setState(s))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var i=r+"-"+s;this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Wh()(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var s=n.instanceProps;r.needToResetStyleCache=!1,e.columnWidth===s.prevColumnWidth&&e.rowHeight===s.prevRowHeight||(r.needToResetStyleCache=!0),s.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),s.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==s.prevColumnCount&&0!==s.prevRowCount||(s.prevColumnCount=0,s.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===s.prevIsScrolling&&Wh()(r,{isScrolling:!1});var i=void 0,o=void 0;return Vh({cellCount:s.prevColumnCount,cellSize:"number"==typeof s.prevColumnWidth?s.prevColumnWidth:null,computeMetadataCallback:function(){return s.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:s.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),Vh({cellCount:s.prevRowCount,cellSize:"number"==typeof s.prevRowHeight?s.prevRowHeight:null,computeMetadataCallback:function(){return s.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:s.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),s.prevColumnCount=e.columnCount,s.prevColumnWidth=e.columnWidth,s.prevIsScrolling=!0===e.isScrolling,s.prevRowCount=e.rowCount,s.prevRowHeight=e.rowHeight,s.prevScrollToColumn=e.scrollToColumn,s.prevScrollToRow=e.scrollToRow,s.scrollbarSize=e.getScrollbarSize(),void 0===s.scrollbarSize?(s.scrollbarSizeMeasured=!1,s.scrollbarSize=0):s.scrollbarSizeMeasured=!0,r.instanceProps=s,(0,_h.A)({},r,i,o)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,s={scrollPositionChangeReason:pp};return"number"==typeof n&&n>=0&&(s.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,s.scrollLeft=n),"number"==typeof r&&r>=0&&(s.scrollDirectionVertical=r>t.scrollTop?1:-1,s.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?s:null}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,s=e.scrollToAlignment,i=e.scrollToColumn,o=e.width,a=t.scrollLeft,l=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),h=l.rowSizeAndPositionManager.getTotalSize(),p=l.scrollbarSizeMeasured&&h>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:o-p,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,s=t._getCalculatedScrollLeft(e,n);return"number"==typeof s&&s>=0&&r!==s?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:s,scrollTop:-1}):null}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,s=e.scrollToAlignment,i=e.scrollToRow,o=e.width,a=t.scrollTop,l=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),h=l.columnSizeAndPositionManager.getTotalSize(),p=l.scrollbarSizeMeasured&&h>o?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:n-p,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,s=t._getCalculatedScrollTop(e,n);return"number"==typeof s&&s>=0&&r!==s?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:s}):null}}]),t}(ke.PureComponent);dp.defaultProps={"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,s=e.columnStartIndex,i=e.columnStopIndex,o=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,h=e.rowSizeAndPositionManager,p=e.rowStartIndex,d=e.rowStopIndex,m=e.styleCache,f=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,y=e.visibleRowIndices,w=[],b=r.areOffsetsAdjusted()||h.areOffsetsAdjusted(),C=!l&&!b,v=p;v<=d;v++)for(var S=h.getSizeAndPositionOfCell(v),E=s;E<=i;E++){var k=r.getSizeAndPositionOfCell(E),R=E>=g.start&&E<=g.stop&&v>=y.start&&v<=y.stop,A=v+"-"+E,T=void 0;C&&m[A]?T=m[A]:o&&!o.has(v,E)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:S.size,left:k.offset+a,position:"absolute",top:S.offset+f,width:k.size},m[A]=T);var x={columnIndex:E,isScrolling:l,isVisible:R,key:A,parent:u,rowIndex:v,style:T},D=void 0;!c&&!l||a||f?D=n(x):(t[A]||(t[A]=n(x)),D=t[A]),null!=D&&!1!==D&&w.push(D)}return w},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:np(),noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Jh,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1},dp.propTypes=null,function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==s){var i=e.displayName||e.name,o="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+o+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=rp,t.componentWillReceiveProps=sp),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ip;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;a.call(this,e,t,r)}}}(dp);const mp=dp;var fp=n(7646),gp=n.n(fp);function yp(e,t){return gp()(e,t,{strict:!0})}function wp(e,t){if(Object.is(e,t))return!0;if(null===e||null===t||"object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!Object.hasOwn(t,s)||!Object.is(e[s],t[s]))return!1}return!0}function bp(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Cp(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(const n of e.keys())if(!t.has(n))return!1;return!0}class vp extends ke.Component{wrapperRef=null;focusWithinChangedTimeoutId=null;constructor(e){super(e),this.state={focusWithin:!1}}onFocusWithinChanged(e){this.setState({focusWithin:e}),null!==this.focusWithinChangedTimeoutId&&(cancelAnimationFrame(this.focusWithinChangedTimeoutId),this.focusWithinChangedTimeoutId=null),this.focusWithinChangedTimeoutId=requestAnimationFrame((()=>{this.props.onFocusWithinChanged&&this.props.onFocusWithinChanged(e),this.focusWithinChangedTimeoutId=null}))}onWrapperRef=e=>{e&&(e.addEventListener("focusin",(()=>{this.onFocusWithinChanged(!0)})),e.addEventListener("focusout",(()=>{this.onFocusWithinChanged(!1)}))),this.wrapperRef=e};onClick=e=>{this.props.onClick&&this.props.onClick(e)};onKeyDown=e=>{this.props.onKeyDown&&this.props.onKeyDown(e)};onMouseDown=e=>{e.target===this.wrapperRef&&e.preventDefault()};render(){const e=hs()("focus-container",this.props.className,{"focus-within":this.state.focusWithin});return ke.createElement("div",{className:e,ref:this.onWrapperRef,role:this.props.role,onClick:this.onClick,onMouseDown:this.onMouseDown,onKeyDown:this.onKeyDown},this.props.children)}}class Sp extends ke.Component{keyboardFocusDetectionState="ready";listItemRef=null;renderFocusTooltip(){return cn()&&this.listItemRef&&this.props.renderRowFocusTooltip&&this.props.renderRowFocusTooltip(this.props.rowIndex)?ke.createElement(ys,{ancestorFocused:this.props.hasKeyboardFocus,target:this.listItemRef,openOnFocus:!0,positionRelativeToTarget:!0,delay:this.props.hasKeyboardFocus?1e3:void 0,tooltipOffset:new DOMRect(this.listItemRef.current?this.listItemRef.current?.clientWidth/-2+20:0,0)},this.props.renderRowFocusTooltip(this.props.rowIndex)):null}onRowRef=e=>{e&&(this.listItemRef=vs(e)),this.props.onRowRef?.(this.props.rowIndex,e)};onRowMouseDown=e=>{this.props.onRowMouseDown(this.props.rowIndex,e)};onRowMouseUp=e=>{this.props.onRowMouseUp(this.props.rowIndex,e)};onRowClick=e=>{this.props.onRowClick(this.props.rowIndex,e)};onRowDoubleClick=e=>{this.props.onRowDoubleClick(this.props.rowIndex,e)};onRowKeyDown=e=>{this.props.onRowKeyDown(this.props.rowIndex,e),this.keyboardFocusDetectionState="failed"};onRowKeyUp=e=>{"focused"===this.keyboardFocusDetectionState&&this.props.onRowKeyboardFocus?.(this.props.rowIndex,e),this.keyboardFocusDetectionState="ready"};onFocus=e=>{this.props.onRowFocus?.(this.props.rowIndex,e),"ready"===this.keyboardFocusDetectionState&&(this.keyboardFocusDetectionState="focused")};onBlur=e=>{this.keyboardFocusDetectionState="ready",this.props.onRowBlur?.(this.props.rowIndex,e)};onContextMenu=e=>{this.props.onContextMenu?.(this.props.rowIndex,e)};render(){const{selected:e,selectedForKeyboardInsertion:t,selectable:n,inKeyboardInsertionMode:r,className:s,style:i,rowCount:o,id:a,tabIndex:l,rowIndex:c,children:u,sectionHasHeader:h,role:p}=this.props,d=hs()("list-item",{selected:e,"in-keyboard-insertion-mode":r,"selected-for-keyboard-insertion":t,"not-selectable":!1===n},s),m={...i,width:"100%"};let f=o,g=c.row+1;return h&&(0===c.row?(f=void 0,g=void 0):(f-=1,g-=1)),ke.createElement("div",{id:a,role:h&&0===c.row?"presentation":p??"option","aria-setsize":f,"aria-posinset":g,"aria-selected":n?e:void 0,"aria-label":this.props.ariaLabel,className:d,tabIndex:l,ref:this.onRowRef,onMouseDown:this.onRowMouseDown,onMouseUp:this.onRowMouseUp,onClick:this.onRowClick,onDoubleClick:this.onRowDoubleClick,onKeyDown:this.onRowKeyDown,onKeyUp:this.onRowKeyUp,style:m,onFocus:this.onFocus,onBlur:this.onBlur,onContextMenu:this.onContextMenu},this.renderFocusTooltip(),ke.createElement("div",{className:"list-item-content-wrapper","aria-hidden":void 0!==this.props.ariaLabel},u))}}const Ep={section:-1,row:-1};function kp(e,t){return e.section===t.section&&e.row===t.row}function Rp(e,t){return e.some((e=>kp(e,t)))}function Ap(e){return e.reduce(((e,t)=>e+t),0)}function Tp(e,t){if(!Dp(e,t))return null;let n=0;for(let r=0;r<e.section;r++)n+=t[r];return n+=e.row,n}function xp(e,t){if(e<0||e>=Ap(t))return null;let n=0,r=e;for(;r>=t[n];)r-=t[n],n++;return{section:n,row:r}}function Dp(e,t){return e.section>=0&&e.section<t.length&&e.row>=0&&e.row<t[e.section]}function Mp(e,t,n=e=>!0){const r=Ap(e);if(0===r)return null;const{direction:s,row:i}=t,o=void 0===t.wrap||t.wrap,a=kp(Ep,i)?-1:Tp(i,e);if(null===a)return null;let l=Dp(i,e)?a:"up"===s?r-1:0;"down"===s&&kp(i,Ep)&&(l=-1);const c="up"===s?-1:1;for(let t=0;t<r;t++){if(l+=c,l>=r){if(!o)break;l=0}else if(l<0){if(!o)break;l=r-1}const t=xp(l,e);if(null!==t&&!kp(i,t)&&n(t))return t}return null}function Pp(e,t,n){const r=Ap(t);let s="up"===e?0:r-1;const i="up"===e?1:-1;for(;s>=0&&s<r;s+=i){const e=xp(s,t);if(null!==e&&n(e))return e}return null}const Ip=new class{_isDragInProgress=!1;_dragData=null;emitter=new dt.Emitter;get isDragInProgress(){return this._isDragInProgress}emitEnterDropTarget(e){this.emitter.emit("enter-drop-target",e)}emitLeaveDropTarget(){this.emitter.emit("leave-drop-target",{})}onEnterDropTarget(e){return this.emitter.on("enter-drop-target",e)}onLeaveDropTarget(e){return this.emitter.on("leave-drop-target",e)}onDragStarted(e){return this.emitter.on("drag-started",e)}onDragEnded(e){return this.emitter.on("drag-ended",e)}dragStarted(){this._isDragInProgress=!0,this.emitter.emit("drag-started",{})}dragEnded(e){this._isDragInProgress=!1,this.emitter.emit("drag-ended",e)}emitEnterDragZone(e){this.emitter.emit("enter-drop-zone",e)}onEnterDragZone(e){return this.emitter.on("enter-drop-zone",e)}setDragData(e){this._dragData=e}get dragData(){return this._dragData}isDragOfTypeInProgress(e){return this._isDragInProgress&&this.isDragOfType(e)}isDragOfType(e){return null!==this._dragData&&this._dragData.type===e}};var _p,Fp,Np,Op;!function(e){e[e.Commit=0]="Commit"}(_p||(_p={})),function(e){e[e.Branch=0]="Branch",e[e.Commit=1]="Commit",e[e.ListInsertionPoint=2]="ListInsertionPoint"}(Fp||(Fp={})),function(e){e.Branch=".branches-list-item",e.PullRequest=".pull-request-item",e.Commit=".commit",e.ListInsertionPoint=".list-insertion-point"}(Np||(Np={})),function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom"}(Op||(Op={}));class Lp extends ke.PureComponent{onDragStartedDisposable=null;onDragEndedDisposable=null;constructor(e){super(e),this.state={isDragInProgress:this.isDragInProgress(),feedbackType:Op.None}}componentDidMount(){this.onDragStartedDisposable=Ip.onDragStarted(this.updateDragInProgressState),this.onDragEndedDisposable=Ip.onDragEnded((e=>{this.updateDragInProgressState()}))}componentWillUnmount(){null!==this.onDragStartedDisposable&&(this.onDragStartedDisposable.dispose(),this.onDragStartedDisposable=null),null!==this.onDragEndedDisposable&&(this.onDragEndedDisposable.dispose(),this.onDragEndedDisposable=null)}updateDragInProgressState=()=>{const e=this.isDragInProgress();this.setState({isDragInProgress:e,feedbackType:e?this.state.feedbackType:Op.None})};renderInsertionIndicator(e){const t=e===Op.Top,n=hs()("list-item-insertion-indicator",{top:t,bottom:!t});return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:`${n} darwin-circle`}),ke.createElement("div",{className:`${n} darwin-line`}))}render(){return ke.createElement("div",{className:"list-item-insertion-overlay"},this.renderTopElements(),this.props.children,this.renderBottomElements())}renderTopElements(){return!0===this.props.isKeyboardInsertion?this.props.forcedFeedbackType===Op.Top&&this.renderInsertionIndicator(Op.Top):this.state.isDragInProgress?ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"list-insertion-point top",onMouseEnter:this.getOnInsertionAreaMouseEnter(Op.Top),onMouseLeave:this.onInsertionAreaMouseLeave,onMouseUp:this.onInsertionAreaMouseUp}),this.state.feedbackType===Op.Top&&this.renderInsertionIndicator(Op.Top)):null}renderBottomElements(){return!0===this.props.isKeyboardInsertion?this.props.forcedFeedbackType===Op.Bottom&&this.renderInsertionIndicator(Op.Bottom):this.state.isDragInProgress?ke.createElement(ke.Fragment,null,this.state.feedbackType===Op.Bottom&&this.renderInsertionIndicator(Op.Bottom),ke.createElement("div",{className:"list-insertion-point bottom",onMouseEnter:this.getOnInsertionAreaMouseEnter(Op.Bottom),onMouseLeave:this.onInsertionAreaMouseLeave,onMouseUp:this.onInsertionAreaMouseUp})):null}isDragInProgress(){return Ip.isDragOfTypeInProgress(this.props.dragType)}getOnInsertionAreaMouseEnter(e){return t=>{this.switchToInsertionFeedbackType(e)}}onInsertionAreaMouseLeave=e=>{this.switchToInsertionFeedbackType(Op.None)};switchToInsertionFeedbackType(e){(e===Op.None||this.state.isDragInProgress)&&(this.setState({feedbackType:e}),e===Op.None?Ip.emitLeaveDropTarget():this.state.isDragInProgress&&null!==Ip.dragData&&Ip.emitEnterDropTarget({type:Fp.ListInsertionPoint,data:Ip.dragData,index:this.props.itemIndex}))}onInsertionAreaMouseUp=()=>{if(this.state.isDragInProgress&&this.state.feedbackType!==Op.None&&null!==Ip.dragData){if(void 0!==this.props.onDropDataInsertion){let e=this.props.itemIndex;this.state.feedbackType===Op.Bottom&&(e={...e,row:e.row+1}),this.props.onDropDataInsertion(e,Ip.dragData)}this.switchToInsertionFeedbackType(Op.None)}}}function Bp(e,t,n){null===t&&(t=e||0,e=0),n||(n=t<e?-1:1);const r=Math.max(Math.ceil((t-e)/n),0),s=new Array(r);for(let t=0;t<r;t++,e+=n)s[t]=e;return s}const Hp="has-shown-welcome-flow";function Up(){return zt(Hp,!1)}function Zp(e,t){const n=Object.assign({},e);for(const e in t)n[e]=t[e];return n}var $p;function Wp(e){switch(e){case $p.Light:return"light";case $p.Dark:return"dark";default:return"system"}}!function(e){e.Light="light",e.Dark="dark",e.System="system"}($p||($p={}));const Vp="autoSwitchTheme",qp="theme";async function Gp(){return await q()?$p.Dark:$p.Light}function zp(){return"system"===function(){const e=zt(Vp,!1);return localStorage.removeItem(Vp),e?(jp($p.System),"system"):null}()?$p.System:function(){const e=localStorage.getItem(qp);return e===$p.Light||e===$p.Dark?e:$p.System}()}function jp(e){const t=Wp(e);localStorage.setItem(qp,e),V(t)}function Kp(){return Or()}function Yp(e){return Xp(e.endpoint)}function Xp(e){return`GitHub - ${e}`}class Qp{emitter=new dt.Emitter;emitUpdate(){this.emitter.emit("did-update",{})}emitError(e){this.emitter.emit("did-error",e)}onDidUpdate(e){return this.emitter.on("did-update",e)}onDidError(e){return this.emitter.on("did-error",e)}}class Jp{emitter=new dt.Emitter;emitUpdate(e){this.emitter.emit("did-update",e)}emitError(e){this.emitter.emit("did-error",e)}onDidUpdate(e){return this.emitter.on("did-update",e)}onDidError(e){return this.emitter.on("did-error",e)}}const ed=e=>e.map(((e,t)=>[e,t])).sort((([e,t],[n,r])=>yr(wn(e),wn(n))||gr(t,r))).map((([e])=>e));function td(e){const t=e.match(/.*?\/(.*)/);return!t||t.length<2?null:t[1]}const nd="github-desktop-";var rd,sd,id;!function(e){e[e.Local=0]="Local",e[e.Remote=1]="Remote"}(rd||(rd={})),function(e){e.CurrentBranch="CurrentBranch",e.DefaultBranch="DefaultBranch",e.Head="Head",e.UpstreamDefaultBranch="UpstreamDefaultBranch"}(sd||(sd={}));class od{name;upstream;tip;type;ref;constructor(e,t,n,r,s){this.name=e,this.upstream=t,this.tip=n,this.type=r,this.ref=s}get upstreamRemoteName(){const e=this.upstream;if(!e)return null;const t=e.match(/(.*?)\/.*/);return!t||t.length<2?null:t[1]}get remoteName(){if(this.type===rd.Local)return null;const e=this.ref.match(/^refs\/remotes\/(.*?)\/.*/);if(!e||2!==e.length)throw new Error(`Remote branch ref has unexpected format: ${this.ref}`);return e[1]}get upstreamWithoutRemote(){return this.upstream?td(this.upstream):null}get nameWithoutRemote(){return this.type===rd.Local?this.name:td(this.name)||this.name}get isDesktopForkRemoteBranch(){return this.type===rd.Remote&&this.name.startsWith(nd)}}!function(e){e[e.Branches=0]="Branches",e[e.PullRequests=1]="PullRequests"}(id||(id={}));var ad=n(5542),ld=n(3279);const cd=require("net");var ud,hd,pd=n(2319),dd=n.n(pd);!function(e){e.AskPass="ASKPASS",e.CredentialHelper="CREDENTIALHELPER"}(ud||(ud={})),function(e){e[e.ParameterCount=0]="ParameterCount",e[e.Parameters=1]="Parameters",e[e.EnvironmentVariablesCount=2]="EnvironmentVariablesCount",e[e.EnvironmentVariables=3]="EnvironmentVariables",e[e.Stdin=4]="Stdin",e[e.Finished=5]="Finished"}(hd||(hd={}));class md{parameterCount=0;parameters=[];environmentVariablesCount=0;environmentVariables=new Map;stdin="";state=hd.ParameterCount;hasFinished(){return this.state===hd.Finished}processValue(e){switch(this.state){case hd.ParameterCount:this.parameterCount=parseInt(e),this.parameterCount>0?this.state=hd.Parameters:this.state=hd.EnvironmentVariablesCount;break;case hd.Parameters:this.parameters.push(e),this.parameters.length===this.parameterCount&&(this.state=hd.EnvironmentVariablesCount);break;case hd.EnvironmentVariablesCount:this.environmentVariablesCount=parseInt(e),this.environmentVariablesCount>0?this.state=hd.EnvironmentVariables:this.state=hd.Stdin;break;case hd.EnvironmentVariables:const t=/([^=]+)=(.*)/.exec(e);if(null===t||3!==t.length)throw new Error(`Unexpected environment variable format: ${e}`);const n=t[1],r=t[2];this.environmentVariables.set(n,r),this.environmentVariables.size===this.environmentVariablesCount&&(this.state=hd.Stdin);break;case hd.Stdin:this.stdin=e,this.state=hd.Finished;break;case hd.Finished:throw new Error("Received value when in Finished");default:at(this.state,`Invalid state: ${this.state}`)}}toCommand(){if(!1===this.hasFinished()){const e=new Error("The command cannot be generated if parsing is not finished");return this.logCommandCreationError(e),null}const e=this.environmentVariables.get("DESKTOP_TRAMPOLINE_IDENTIFIER");if(void 0===e){const e=new Error(`The command identifier is missing. Env variables received: ${Array.from(this.environmentVariables.keys())}`);return this.logCommandCreationError(e),null}const t=Gt(ud,e);if(void 0===t){const t=new Error(`The command identifier ${e} is not supported`);return this.logCommandCreationError(t),null}const n=this.environmentVariables.get("DESKTOP_TRAMPOLINE_TOKEN");if(void 0===n){const e=new Error("The trampoline token is missing");return this.logCommandCreationError(e),null}return{identifier:t,trampolineToken:n,parameters:this.parameters,environmentVariables:this.environmentVariables,stdin:this.stdin}}logCommandCreationError(e){log.error("Error creating trampoline command:",e),QT("trampolineCommandParser",e)}}const fd=new Set;const gd=new class{server;listeningPromise=null;commandHandlers=new Map;constructor(){this.server=(0,cd.createServer)((e=>this.onNewConnection(e))),this.server.unref()}async listen(){return this.listeningPromise=new Promise(((e,t)=>{this.server.on("error",(e=>{t(e),this.close()})),this.server.listen(0,"127.0.0.1",(async()=>{this.server.removeAllListeners("error"),this.server.on("error",this.onServerError),e()}))})),this.listeningPromise}async close(){null!==this.listeningPromise&&await this.listeningPromise,this.server.close(),this.server.removeAllListeners("error"),this.listeningPromise=null}async getPort(){return null!==this.port||(null!==this.listeningPromise?await this.listeningPromise:await this.listen()),this.port}get port(){const e=this.server.address();return e&&e.port?e.port:null}onNewConnection(e){const t=new md;e.pipe(dd()(/\0/)).on("data",(n=>{this.onDataReceived(e,t,n)})),e.on("error",this.onClientError)}onDataReceived(e,t,n){const r=n.toString("utf8");try{t.processValue(r)}catch(t){return log.error("Error processing trampoline data",t),void e.end()}if(!t.hasFinished())return;const s=t.toCommand();null!==s?this.processCommand(e,s):e.end()}registerCommandHandler(e,t){this.commandHandlers.set(e,t)}async processCommand(e,t){if(n=t.trampolineToken,!fd.has(n))throw new Error("Tried to use invalid trampoline token");var n;const r=this.commandHandlers.get(t.identifier);if(void 0===r)return void e.end();const s=await r(t).catch((e=>log.error("Error processing trampoline command",e)));void 0!==s?e.end(s):e.end()}onServerError=e=>{QT("trampolineServer",e),this.close()};onClientError=e=>{log.error("Trampoline client error",e)}},yd="C:/Windows/System32/OpenSSH/ssh.exe",wd="useWindowsOpenSSH",bd=xr((async()=>"arm64"!==process.arch&&await k(yd)));function Cd(e){return`GitHub Desktop - ${e}`}const vd=new Map;async function Sd(e,t,n,r){Ed(e,t,n),await ST.setItem(t,n,r)}function Ed(e,t,n){vd.set(e,{store:t,key:n})}function kd(e){vd.delete(e)}var Rd=n(4465);const Ad=new Map,Td=(e,t)=>{const n=Ad.get(e);n?n.add(t):Ad.set(e,new Set([t]))},xd=new Map,Dd=new Map,Md=e=>Dd.get(e)??process.cwd(),Pd=e=>xd.get(e)??!1,Id=e=>{const t=e.get("url");if(t)return new URL(t);const n=e.get("protocol")??"",r=e.get("username"),s=r?`${encodeURIComponent(r)}@`:"",i=e.get("host")??"",o=e.get("path")??"";return new URL(`${n}://${s}${i}/${o}`)},_d=xr((()=>(0,ad.exec)(["--version"],process.cwd()).then((e=>/git version (.*)/.exec(e.stdout)?.at(1)??"unknown")).catch((e=>(log.warn("Could not get git version information",e),"unknown"))).then((e=>{const{platform:t,arch:n}=process;return`git/${e} (GitHub Desktop/3.5.3; ${t} ${n})`})))),Fd=/^fatal: could not read .*?: terminal prompts disabled\n$/;async function Nd(e,n,r=!1,s){const i=await async function(){const e={SSH_ASKPASS:t.resolve(__dirname,"desktop-trampoline",(0,Rd.getDesktopAskpassTrampolineFilename)()),DISPLAY:"."};return await bd()&&function(){try{return zt(wd,!1)}catch(e){return!1}}()?{...e,GIT_SSH_COMMAND:yd}:e}();return async function(e){const t=function(){const e=kn();return fd.add(e),e}();let n;try{n=await e(t)}finally{!function(e){fd.delete(e)}(t)}return n}((async t=>{xd.set(t,r),Dd.set(t,n);const o=s?.GIT_CONFIG_PARAMETERS??process.env.GIT_CONFIG_PARAMETERS??"",a=o.length>0?`${o} `:"";try{return await e({DESKTOP_PORT:await gd.getPort(),DESKTOP_TRAMPOLINE_TOKEN:t,GIT_ASKPASS:"",GIT_CONFIG_PARAMETERS:`${a}'credential.helper=' 'credential.helper=desktop'`,GIT_USER_AGENT:await _d(),...i})}catch(e){if(Pd(t)||Od(e)&&async function(e){const t=vd.get(e);t&&(log.info(`SSH auth failed, deleting credential for ${t.store}:${t.key}`),await ST.deleteItem(t.store,t.key))}(t),Ad.has(t)&&e instanceof Gd&&Fd.test(e.message)){const t="Authentication failed: user cancelled authentication",n=Qd(ad.GitError.HTTPSAuthenticationFailed,"")??t,r=new Gd({...e.result,gitErrorDescription:n},e.args,t);throw r.cause=e,r}throw e}finally{kd(t),xd.delete(t),Ad.delete(t),Dd.delete(t)}}))}const Od=e=>e instanceof Gd&&(e.result.gitError===ad.GitError.SSHAuthenticationFailed||e.result.gitError===ad.GitError.SSHPermissionDenied);var Ld=n(2613),Bd=n.n(Ld),Hd=n(2203);const Ud=require("node:stream"),Zd=()=>{let e,t,n;function r(){e=Buffer.alloc(1024),n=t=0}return r(),new Ud.Transform({decodeStrings:!0,transform(s,i,o){let a,l,c,u=0;for(;u<s.length;){let i;l=s.indexOf(13,u),-1===l?(c=s.subarray(u).lastIndexOf(10),c=-1===c?-1:c+u):c=s.indexOf(10,u),a=Math.min(-1===l?s.length-1:l,-1===c?s.length-1:c),a=-1===a?s.length-1:a;let o=u;const h=a+1;for(;(i=h-o)>0;){if(!(n+i>e.length)){s.copy(e,n,o),n+=i,t=Math.max(n,t);break}{n>0&&this.push(e.subarray(0,n));const t=e.length-n;this.push(s.subarray(o,o+t)),o+=t,r()}}10===s[a]&&t>0?(this.push(e.subarray(0,t)),r()):13===s[a]&&(n=0),u=a+1}o()},flush(n){n(null,t>0?e.subarray(0,t):null)}})},$d=require("buffer"),Wd=(e,t="utf8")=>Buffer.isBuffer(e)?e.toString(t):e,Vd=(e,t="utf8")=>Buffer.isBuffer(e)?e:Buffer.from(e,t),qd=e=>e instanceof ad.ExecError&&"ERR_CHILD_PROCESS_STDIO_MAXBUFFER"===e.code;class Gd extends Error{result;args;isRawMessage;constructor(e,t,n){let r,s=!0;e.gitErrorDescription?(r=e.gitErrorDescription,s=!1):n.length>0?r=n:e.stderr.length?r=Wd(e.stderr):e.stdout.length?r=Wd(e.stdout):(r=`Unknown error (exit code ${e.exitCode})`,s=!1),super(r),this.name="GitError",this.result=e,this.args=t,this.isRawMessage=s}}async function zd(e,t,n,r){const s={successExitCodes:new Set([0]),expectedErrors:new Set,maxBuffer:"buffer"===r?.encoding?1/0:$d.kStringMaxLength,...r};let i="";return s.processCallback=e=>{const t=Zd(),n=function(e){Bd().ok(!0,'The "capacity" argument must be greater than 0');const t=[];let n=0;return new Hd.Transform({encoding:"utf8",decodeStrings:!0,transform(r,s,i){for(t.push(r),n+=r.length;n>e;){const r=t[0],s=n-e;s>=r.length?(t.shift(),n-=r.length):(t[0]=r.subarray(s),n-=s)}i()},flush:e=>e(null,Buffer.concat(t))})}(262144);t.pipe(n).on("data",(e=>i=e)).on("error",(e=>log.error("Terminal output error",e))),e.stdout?.pipe(t,{end:!1}),e.stderr?.pipe(t,{end:!1}),e.on("close",(()=>t.end())),r?.processCallback?.(e)},Nd((async r=>{const o=Zp(s.env,r);s.env={TERM:"dumb",...o};const a=`${n}: git ${e.join(" ")}`,l=await ld.measure(a,(()=>(0,ad.exec)(e,t,s))).catch((e=>{if(function(e){return e instanceof Error&&"string"==typeof e.code&&"string"==typeof e.syscall}(e))throw new Error(`Failed to execute ${n}: ${e.code}`);if(qd(e))throw new ad.ExecError(`${e.message} for ${n}`,e.stdout,e.stderr,e.cause??e);throw e})),c=l.exitCode;let u=null;const h=!!s.successExitCodes&&s.successExitCodes.has(c);h||(u=(0,ad.parseError)(Wd(l.stderr)),null===u&&(u=(0,ad.parseError)(Wd(l.stdout))));const p=null!==u?Qd(u,Wd(l.stderr)):null,d={...l,gitError:u,gitErrorDescription:p,path:t};let m=!0;if(null!==u&&s.expectedErrors&&(m=s.expectedErrors.has(u)),null!==u&&m||h)return d;const f=new Array;throw f.push(`\`git ${e.join(" ")}\` exited with an unexpected code: ${c}.`),i.length>0&&f.push(i.slice(-1024)),null!==u&&f.push(`(The error was parsed as ${u}: ${p})`),log.error(f.join("\n")),new Gd(d,e,i)}),t,r?.isBackgroundTask??!1,r?.env)}function jd(e){switch(e){case ad.GitError.SSHAuthenticationFailed:case ad.GitError.SSHPermissionDenied:case ad.GitError.HTTPSAuthenticationFailed:return!0}return!1}function Kd(e){return e instanceof Gd&&e.result.gitError===ad.GitError.ConfigLockFileAlreadyExists}const Yd=/^error: could not lock config file (.+?): File exists$/m;function Xd(e){const n=Yd.exec(Wd(e.stderr));if(null===n)return null;const r=n[1].replace("/","\\");return t.resolve(e.path,`${r}.lock`)}function Qd(e,t){if(jd(e))return"身份验证失败。一些常见原因包括:\n\n- 您尚未登录到您的帐户:请参阅文件>选项。\n- 您可能需要注销并重新登录才能刷新令牌。\n- 您没有访问此存储库的权限。\n- 存储库存档在 GitHub 上。检查存储库设置以确认您仍可以推送提交。\n- 如果您使用 SSH 身份验证,请检查您的密钥是否已添加到 ssh 代理并与您的帐户关联。\n- 如果使用 SSH 身份验证,请确保存储库托管服务的主机密钥验证通过。\n- 如果使用了用户名/密码身份验证,则可能需要使用个人访问令牌而不是帐户密码。请查看存储库托管服务的文档.";switch(e){case ad.GitError.BadConfigValue:const n=(0,ad.parseBadConfigValueErrorInfo)(t);return null===n?"Unsupported git configuration value.":`Unsupported value '${n.value}' for git config key '${n.key}'`;case ad.GitError.SSHKeyAuditUnverified:return"SSH密钥未验证.";case ad.GitError.RemoteDisconnection:return"远程已断开连接。请检查您的Internet连接然后重试.";case ad.GitError.HostDown:return"主机已关闭。请检查您的Internet连接然后重试.";case ad.GitError.RebaseConflicts:return"我们在尝试重新变基时发现了一些冲突。请在继续之前解决冲突.";case ad.GitError.MergeConflicts:return"尝试合并时发现一些冲突。请解决冲突并提交更改.";case ad.GitError.HTTPSRepositoryNotFound:case ad.GitError.SSHRepositoryNotFound:return"存储库似乎不再存在。您可能没有访问权限,或者它可能已被删除或重命名.";case ad.GitError.PushNotFastForward:return"自上次提取后,存储库已更新。在推送之前试着拉取.";case ad.GitError.BranchDeletionFailed:return"无法删除分支。它可能已被删除.";case ad.GitError.DefaultBranchDeletionFailed:return"该分支是仓库的默认分支,无法删除.";case ad.GitError.RevertConflicts:return"要完成还原,请合并并提交更改.";case ad.GitError.EmptyRebasePatch:return"没有要应用的任何更改.";case ad.GitError.NoMatchingRemoteBranch:return"没有任何与当前分支匹配的远程分支.";case ad.GitError.NothingToCommit:return"没有要提交的更改.";case ad.GitError.NoSubmoduleMapping:return"已从中删除子模块。gitmodules但该文件夹仍存在于仓库中。删除文件夹提交更改然后重试.";case ad.GitError.SubmoduleRepositoryDoesNotExist:return"子模块指向不存在的位置.";case ad.GitError.InvalidSubmoduleSHA:return"子模块指向不存在的提交.";case ad.GitError.LocalPermissionDenied:return"权限被拒绝。";case ad.GitError.InvalidMerge:return"这不是我们可以合并的东西.";case ad.GitError.InvalidRebase:return"这不是我们可以调整的变基.";case ad.GitError.NonFastForwardMergeIntoEmptyHead:return"您尝试的合并不是快进,因此无法在空分支上执行.";case ad.GitError.PatchDoesNotApply:return"请求的更改与仓库中的一个或多个文件冲突.";case ad.GitError.BranchAlreadyExists:return"具有该名称的分支已存在.";case ad.GitError.BadRevision:return"错误的修订.";case ad.GitError.NotAGitRepository:return"这不是git仓库.";case ad.GitError.ProtectedBranchForcePush:return"此分支受到强制推送操作的保护.";case ad.GitError.ProtectedBranchRequiresReview:return"此分支受到保护任何更改都需要经过批准的审查。打开一个pull请求更改的目标改为此分支.";case ad.GitError.PushWithFileSizeExceedingLimit:return"推送操作包括一个超过GitHub的100MB文件大小限制的文件。请从历史记录中删除该文件然后重试.";case ad.GitError.HexBranchNameRejected:return"分支名称不能是由十六进制字符组成的40个字符的字符串因为这是Git用于表示对象的格式.";case ad.GitError.ForcePushRejected:return"当前分支的强制推送已被拒绝.";case ad.GitError.InvalidRefLength:return"引用长度不能超过255个字符.";case ad.GitError.CannotMergeUnrelatedHistories:return"无法在此仓库中合并不相关的历史记录.";case ad.GitError.PushWithPrivateEmail:return'无法推送这些提交因为它们包含GitHub上标记为专用的电子邮件地址。要继续推送请访问https://github.com/settings/emails取消选中“保持我的电子邮件地址私有”然后切换回GitHub桌面以推动提交。然后可以再次启用该设置.';case ad.GitError.LFSAttributeDoesNotMatch:return"在全局Git配置中找到的Git LFS属性与预期值不匹配.";case ad.GitError.ProtectedBranchDeleteRejected:return"无法从远程仓库中删除此分支,因为它被标记为受保护.";case ad.GitError.ProtectedBranchRequiredStatus:return"推送被远程服务器拒绝,因为未满足所需的状态检查.";case ad.GitError.BranchRenameFailed:return"无法重命名分支.";case ad.GitError.PathDoesNotExist:return"磁盘上不存在路径.";case ad.GitError.InvalidObjectName:return"在Git仓库中找不到该对象.";case ad.GitError.OutsideRepository:return"此路径不是仓库中的有效路径.";case ad.GitError.LockFileAlreadyExists:return"仓库中已存在锁定文件,这将阻止此操作完成.";case ad.GitError.NoMergeToAbort:return"没有正在进行的合并,因此没有要中止的内容.";case ad.GitError.NoExistingRemoteBranch:return"远程分支不存在.";case ad.GitError.LocalChangesOverwritten:return"无法切换分支,因为存在将被覆盖的工作目录更改。请提交或隐藏您的更改.";case ad.GitError.UnresolvedConflicts:return"工作目录中存在未解决的冲突.";case ad.GitError.ConfigLockFileAlreadyExists:case ad.GitError.RemoteAlreadyExists:return null;case ad.GitError.TagAlreadyExists:return"具有该名称的标记已存在";case ad.GitError.MergeWithLocalChanges:case ad.GitError.RebaseWithLocalChanges:case ad.GitError.GPGFailedToSignData:case ad.GitError.ConflictModifyDeletedInBranch:case ad.GitError.MergeCommitNoMainlineOption:case ad.GitError.UnsafeDirectory:case ad.GitError.PathExistsButNotInRef:case ad.GitError.PushWithSecretDetected:return null;default:return at(0,`Unknown error: ${e}`)}}function Jd(e){return e.stdout.split("]")[0].split(" ")[1]}function em(e,t,n=!1){return rm(t,e.path,n)}function tm(e,t){return rm(e,null,!1,void 0,t)}async function nm(e,t,n=!1,r){const s=await rm(t,e.path,n,"bool",r);return null===s?null:"false"!==s}async function rm(e,t,n=!1,r,s){const i=["config","-z"];t?n&&i.push("--local"):i.push("--global"),void 0!==r&&i.push("--type",r),i.push(e);const o=await zd(i,t||__dirname,"getConfigValueInPath",{successExitCodes:new Set([0,1]),env:s});return 1===o.exitCode?null:o.stdout.split("\0")[0]}async function sm(e,t,n,r){return am(t,n,e.path,r)}async function im(e,t,n){return am(e,t,null,n)}async function om(e){"/"===e[0]&&(e=`%(prefix)/${e}`),await async function(e,t){const{stdout:n,exitCode:r}=await zd(["config","--global","-z","--get-all",e,t],__dirname,"addGlobalConfigValue",{successExitCodes:new Set([0,1])});1!==r&&n.split("\0").includes(t)||await async function(e,t){await zd(["config","--global","--add",e,t],__dirname,"addGlobalConfigValue")}(e,t)}("safe.directory",e)}async function am(e,t,n,r){const s=r?{env:r}:void 0,i=["config"];n||i.push("--global"),i.push("--replace-all",e,t),await zd(i,n||__dirname,"setConfigValueInPath",s)}async function lm(e,t,n){return async function(e,t,n){const r=n?{env:n}:void 0,s=["config"];t||s.push("--global"),s.push("--unset-all",e),await zd(s,t||__dirname,"removeConfigValueInPath",r)}(t,e.path,n)}function cm(e){return"co-authored-by"===e.token.toLowerCase()}function um(e,t){const n=e.split("\n"),r=new Array;for(const e of n){const n=hm(e,t);n&&r.push(n)}return r}function hm(e,t){for(const n of t){const t=e.indexOf(n);if(t>0)return{token:e.substring(0,t).trim(),value:e.substring(t+1).trim()}}return null}async function pm(e){return await em(e,"trailer.separators")||":"}async function dm(e,t,n,r=!1){const s=["interpret-trailers"];s.push("--no-divider"),r&&s.push("--unfold");for(const e of n)s.push("--trailer",`${e.token}=${e.value}`);return(await zd(s,e.path,"mergeTrailers",{stdin:t})).stdout}class mm{name;email;static parse(e){const t=e.match(/^(.*?)\s+<(.*?)>/);return null===t?null:new mm(t[1],t[2])}constructor(e,t){this.name=e,this.email=t}toString(){return`${this.name} <${this.email}>`}}function fm(e){return e.slice(0,7)}class gm{sha;shortSha;summary;body;author;committer;parentSHAs;trailers;tags;coAuthors;bodyNoCoAuthors;authoredByCommitter;isMergeCommit;constructor(e,t,n,r,s,i,o,a,l){this.sha=e,this.shortSha=t,this.summary=n,this.body=r,this.author=s,this.committer=i,this.parentSHAs=o,this.trailers=a,this.tags=l,this.coAuthors=function(e){const t=[];for(const n of e)if(cm(n)){const e=mm.parse(n.value);e&&t.push(e)}return t}(a),this.authoredByCommitter=this.author.name===this.committer.name&&this.author.email===this.committer.email,this.bodyNoCoAuthors=function(e,t){let n=t;return e.filter(cm).forEach((({token:e,value:t})=>{n=n.replace(`${e}: ${t}`,"")})),n}(a,r),this.isMergeCommit=o.length>1}}function ym(e){return`refs/pull/${e}/head`}class wm{ref;sha;gitHubRepository;constructor(e,t,n){this.ref=e,this.sha=t,this.gitHubRepository=n}}class bm{created;title;pullRequestNumber;head;base;author;draft;body;constructor(e,t,n,r,s,i,o,a){this.created=e,this.title=t,this.pullRequestNumber=n,this.head=r,this.base=s,this.author=i,this.draft=o,this.body=a}}var Cm;!function(e){e.PreviewPullRequest="PreviewPullRequest",e.CreatePullRequest="CreatePullRequest"}(Cm||(Cm={}));const vm=Cm.PreviewPullRequest,Sm=new class{emitter=new dt.Emitter;constructor(){this.subscribe()}subscribe=()=>{Kp()&&g("native-theme-updated",this.onThemeNotificationUpdated)};onThemeNotificationUpdated=async()=>{const e=await Gp();this.emitThemeChanged(e)};onThemeChanged(e){return this.emitter.on("theme-changed",e)}emitThemeChanged(e){this.emitter.emit("theme-changed",e)}};class Em extends Error{metadata;constructor(e,t={}){super(e),this.metadata=t}}const km="Visual Studio Code",Rm="https://code.visualstudio.com";n(4980);var Am=n(5303);const Tm=(e,...n)=>({key:e,subKey:t.win32.join(...n)}),xm="SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall",Dm="SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall",Mm=e=>Tm(Am.HKEY.HKEY_CURRENT_USER,xm,e),Pm=e=>Tm(Am.HKEY.HKEY_LOCAL_MACHINE,xm,e),Im=e=>Tm(Am.HKEY.HKEY_LOCAL_MACHINE,Dm,e),_m=e=>{const t=(new Date).getFullYear(),n=t-2,r=new Array;for(let s=n;s<=t;s++)for(let t=1;t<=5;t++)for(let n=0;n<=5;n++){let i=`${e} ${s}.${t}`;n>0&&(i=`${i}.${n}`),r.push(Im(i)),r.push(Mm(i))}return r.reverse()},Fm=e=>[["bin",`${e}64.exe`],["bin",`${e}.exe`]],Nm=(e,t)=>t.some((t=>e.startsWith(t))),Om=e=>e.split(",")[0].replace(/"/g,""),Lm=[{name:"Visual Studio Code",registryKeys:[Mm("{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1"),Mm("{D628A17A-9713-46BF-8D57-E671B46A741E}_is1"),Mm("{D9E514E7-1A56-452D-9337-2990C0DC4310}_is1"),Pm("{EA457B21-F73E-494C-ACAB-524FDE069978}_is1"),Im("{F8A2A208-72B3-4D61-95FC-8A65D340689B}_is1"),Pm("{A5270FC5-65AD-483E-AC30-2C276B63D0AC}_is1")],executableShimPaths:[["code.exe"]],displayNamePrefixes:["Microsoft Visual Studio Code"],publishers:["Microsoft Corporation"]},{name:"Visual Studio Code (Insiders)",registryKeys:[Mm("{217B4C08-948D-4276-BFBB-BEE930AE5A2C}_is1"),Mm("{26F4A15E-E392-4887-8C09-7BC55712FD5B}_is1"),Mm("{69BD8F7B-65EB-4C6F-A14E-44CFA83712C0}_is1"),Pm("{1287CAD5-7C8D-410D-88B9-0D1EE4A83FF2}_is1"),Im("{C26E74D1-022E-4238-8B9D-1E7564A36CC9}_is1"),Pm("{0AEDB616-9614-463B-97D7-119DD86CCA64}_is1")],executableShimPaths:[["Code - Insiders.exe"]],displayNamePrefixes:["Microsoft Visual Studio Code Insiders"],publishers:["Microsoft Corporation"]},{name:"VSCodium",registryKeys:[Mm("{2E1F05D1-C245-4562-81EE-28188DB6FD17}_is1"),Mm("{0FD05EB4-651E-4E78-A062-515204B47A3A}_is1"),Mm("{57FD70A5-1B8D-4875-9F40-C5553F094828}_is1"),Pm("{88DA3577-054F-4CA1-8122-7D820494CFFB}_is1"),Im("{763CBF88-25C6-4B10-952F-326AE657F16B}_is1"),Pm("{67DEE444-3D04-4258-B92A-BC1F0FF2CAE4}_is1"),Mm("{C6065F05-9603-4FC4-8101-B9781A25D88E}}_is1"),Mm("{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}_is1"),Pm("{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}_is1"),Im("{E34003BB-9E10-4501-8C11-BE3FAA83F23F}_is1"),Pm("{D1ACE434-89C5-48D1-88D3-E2991DF85475}_is1")],executableShimPaths:[["VSCodium.exe"]],displayNamePrefixes:["VSCodium"],publishers:["VSCodium","Microsoft Corporation"]},{name:"VSCodium (Insiders)",registryKeys:[Mm("{20F79D0D-A9AC-4220-9A81-CE675FFB6B41}_is1"),Mm("{ED2E5618-3E7E-4888-BF3C-A6CCC84F586F}_is1"),Mm("{2E362F92-14EA-455A-9ABD-3E656BBBFE71}_is1"),Pm("{B2E0DDB2-120E-4D34-9F7E-8C688FF839A2}_is1"),Im("{EF35BB36-FA7E-4BB9-B7DA-D1E09F2DA9C9}_is1"),Pm("{44721278-64C6-4513-BC45-D48E07830599}_is1")],executableShimPaths:[["VSCodium - Insiders.exe"]],displayNamePrefixes:["VSCodium Insiders","VSCodium (Insiders)"],publishers:["VSCodium"]},{name:"Sublime Text",registryKeys:[Pm("Sublime Text_is1"),Pm("Sublime Text 3_is1")],executableShimPaths:[["subl.exe"]],displayNamePrefixes:["Sublime Text"],publishers:["Sublime HQ Pty Ltd"]},{name:"Brackets",registryKeys:[Im("{4F3B6E8C-401B-4EDE-A423-6481C239D6FF}")],executableShimPaths:[["Brackets.exe"]],displayNamePrefixes:["Brackets"],publishers:["brackets.io"]},{name:"ColdFusion Builder",registryKeys:[Pm("Adobe ColdFusion Builder 3_is1"),Pm("Adobe ColdFusion Builder 2016")],executableShimPaths:[["CFBuilder.exe"]],displayNamePrefixes:["Adobe ColdFusion Builder"],publishers:["Adobe Systems Incorporated"]},{name:"Typora",registryKeys:[Pm("{37771A20-7167-44C0-B322-FD3E54C56156}_is1"),Im("{37771A20-7167-44C0-B322-FD3E54C56156}_is1")],executableShimPaths:[["typora.exe"]],displayNamePrefixes:["Typora"],publishers:["typora.io"]},{name:"SlickEdit",registryKeys:[Pm("{18406187-F49E-4822-CAF2-1D25C0C83BA2}"),Im("{18006187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{18606187-F49E-4822-CAF2-1D25C0C83BA2}"),Im("{18206187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{15406187-F49E-4822-CAF2-1D25C0C83BA2}"),Im("{15006187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{10C06187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{10406187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{0DC06187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{0D406187-F49E-4822-CAF2-1D25C0C83BA2}"),Pm("{7CC0E567-ACD6-41E8-95DA-154CEEDB0A18}")],executableShimPaths:[["win","vs.exe"]],displayNamePrefixes:["SlickEdit"],publishers:["SlickEdit Inc."]},{name:"Aptana Studio 3",registryKeys:[Im("{2D6C1116-78C6-469C-9923-3E549218773F}")],executableShimPaths:[["AptanaStudio3.exe"]],displayNamePrefixes:["Aptana Studio"],publishers:["Appcelerator"]},{name:"JetBrains Webstorm",registryKeys:_m("WebStorm"),executableShimPaths:Fm("webstorm"),displayNamePrefixes:["WebStorm"],publishers:["JetBrains s.r.o."]},{name:"JetBrains PhpStorm",registryKeys:_m("PhpStorm"),executableShimPaths:Fm("phpstorm"),displayNamePrefixes:["PhpStorm"],publishers:["JetBrains s.r.o."]},{name:"Android Studio",registryKeys:[Pm("Android Studio")],installLocationRegistryKey:"UninstallString",executableShimPaths:[["..","bin","studio64.exe"],["..","bin","studio.exe"]],displayNamePrefixes:["Android Studio"],publishers:["Google LLC"]},{name:"Notepad++",registryKeys:[Pm("Notepad++"),Im("Notepad++")],installLocationRegistryKey:"DisplayIcon",displayNamePrefixes:["Notepad++"],publishers:["Notepad++ Team"]},{name:"JetBrains Rider",registryKeys:_m("JetBrains Rider"),executableShimPaths:Fm("rider"),displayNamePrefixes:["JetBrains Rider"],publishers:["JetBrains s.r.o."]},{name:"RStudio",registryKeys:[Im("RStudio")],installLocationRegistryKey:"DisplayIcon",displayNamePrefixes:["RStudio"],publishers:["RStudio","Posit Software"]},{name:"JetBrains IntelliJ Idea",registryKeys:_m("IntelliJ IDEA"),executableShimPaths:Fm("idea"),displayNamePrefixes:["IntelliJ IDEA "],publishers:["JetBrains s.r.o."]},{name:"JetBrains IntelliJ Idea Community Edition",registryKeys:_m("IntelliJ IDEA Community Edition"),executableShimPaths:Fm("idea"),displayNamePrefixes:["IntelliJ IDEA Community Edition "],publishers:["JetBrains s.r.o."]},{name:"JetBrains PyCharm",registryKeys:_m("PyCharm"),executableShimPaths:Fm("pycharm"),displayNamePrefixes:["PyCharm "],publishers:["JetBrains s.r.o."]},{name:"JetBrains PyCharm Community Edition",registryKeys:_m("PyCharm Community Edition"),executableShimPaths:Fm("pycharm"),displayNamePrefixes:["PyCharm Community Edition"],publishers:["JetBrains s.r.o."]},{name:"JetBrains CLion",registryKeys:_m("CLion"),executableShimPaths:Fm("clion"),displayNamePrefixes:["CLion "],publishers:["JetBrains s.r.o."]},{name:"JetBrains RubyMine",registryKeys:_m("RubyMine"),executableShimPaths:Fm("rubymine"),displayNamePrefixes:["RubyMine "],publishers:["JetBrains s.r.o."]},{name:"JetBrains GoLand",registryKeys:_m("GoLand"),executableShimPaths:Fm("goland"),displayNamePrefixes:["GoLand "],publishers:["JetBrains s.r.o."]},{name:"JetBrains Fleet",registryKeys:[Pm("Fleet")],installLocationRegistryKey:"DisplayIcon",displayNamePrefixes:["Fleet "],publishers:["JetBrains s.r.o."]},{name:"JetBrains DataSpell",registryKeys:_m("DataSpell"),executableShimPaths:Fm("dataspell"),displayNamePrefixes:["DataSpell "],publishers:["JetBrains s.r.o."]},{name:"JetBrains RustRover",registryKeys:_m("RustRover"),executableShimPaths:Fm("rustrover"),displayNamePrefixes:["RustRover "],publishers:["JetBrains s.r.o."]},{name:"Pulsar",registryKeys:[Mm("0949b555-c22c-56b7-873a-a960bdefa81f"),Pm("0949b555-c22c-56b7-873a-a960bdefa81f")],executableShimPaths:[["..","pulsar","Pulsar.exe"]],displayNamePrefixes:["Pulsar"],publishers:["Pulsar-Edit"]},{name:"Cursor",registryKeys:[Mm("62625861-8486-5be9-9e46-1da50df5f8ff"),Mm("{DADADADA-ADAD-ADAD-ADAD-ADADADADADAD}}_is1")],installLocationRegistryKey:"DisplayIcon",displayNamePrefixes:["Cursor","Cursor (User)"],publishers:["Cursor AI, Inc.","Anysphere"]},{name:"Windsurf",registryKeys:[Mm("{5A8B7D94-9B5F-4D1F-93FC-5609F7159349}_is1")],installLocationRegistryKey:"DisplayIcon",displayNamePrefixes:["Windsurf","Windsurf (User)"],publishers:["Codeium"]}];function Bm(e,t){const n=e.find((e=>e.name===t));return n&&n.type===Am.RegistryValueType.REG_SZ?n.data:""}function Hm(e,t){return{displayName:Bm(t,"DisplayName"),publisher:Bm(t,"Publisher"),installLocation:Bm(t,e.installLocationRegistryKey??"InstallLocation")}}async function Um(e){for(const{key:n,subKey:r}of e.registryKeys){const s=(0,Am.enumerateValues)(n,r);if(0===s.length)continue;const{displayName:i,publisher:o,installLocation:a}=Hm(e,s);if(!Nm(i,e.displayNamePrefixes)||!e.publishers.includes(o)){log.debug(`Unexpected registry entries for ${e.name}`);continue}const l="DisplayIcon"===e.installLocationRegistryKey?[Om(a)]:e.executableShimPaths.map((e=>t.join(a,...e)));for(const t of l){if(await k(t))return t;log.debug(`Executable for ${e.name} not found at '${t}'`)}}}const Zm=xr((async()=>{const e=/^JetBrains Toolbox \((.*)\)/,t=new Array;for(const n of[xm,Dm])for(const r of(0,Am.enumerateKeys)(Am.HKEY.HKEY_CURRENT_USER,n)){const s=e.exec(r);if(s){const[e,i]=s;t.push({name:e,installLocationRegistryKey:"DisplayIcon",registryKeys:[{key:Am.HKEY.HKEY_CURRENT_USER,subKey:`${n}\\${r}`}],displayNamePrefixes:[i],publishers:["JetBrains s.r.o."]})}}return t}));let $m=null;async function Wm(){return $m&&$m.length>0||($m=await async function(){const e=[],t=[...Lm,...await Zm().catch((e=>(log.error("Failed resolving JetBrains Toolbox products",e),[])))];for(const n of t){const t=await Um(n);t&&e.push({editor:n.name,path:t})}return e}()),$m}async function Vm(e){const t=await Wm();if(0===t.length)return null;if(e){const n=t.find((t=>t.editor===e))||null;if(!n)throw new Em(`The editor '${e}' could not be found. Please open Options and choose an available editor.`,{openPreferences:!0});return n}return t[0]}var qm=n(5002);(0,C.promisify)(b.exec);const Gm="%TARGET_PATH%";function zm(e){return(0,qm.z)(e)}function jm(e,t){return e.map((e=>e.replaceAll(Gm,t)))}function Km(e){return e.some((e=>e.includes(Gm)))}async function Ym(e){if(0===e.length)return{isValid:!1};let t;try{const n=await(0,w.lstat)(e),s=await(0,w.access)(e,r.constants.X_OK).then((()=>!0)).catch((()=>!1));return{isValid:(n.isFile()||n.isSymbolicLink())&&s||!1,bundleID:t}}catch(t){return"ENOENT"!==t.code&&log.error(`Failed to validate path: ${e}`,t),{isValid:!1}}}async function Xm(e){try{const t=await Ym(e.path),n=Km(zm(e.arguments));return t.isValid&&n}catch(e){return log.error("Failed to validate custom integration:",e),!1}}function Qm(e){return null===e?null:Array.isArray(e.arguments)?{...e,arguments:e.arguments.join(" ")}:null}async function Jm(e,t,n,r){const s=await k(e),i="选项";if(!s)throw new Em(`Could not find executable for ${n} at path '${e}'. Please open ${i} and select an available editor.`,{openPreferences:!0});return new Promise(((n,s)=>{const i={detached:!0,stdio:"ignore"},o=r?(0,b.spawn)("open",["-a",e,...t],i):(0,b.spawn)(e,t,i);o.on("error",s),o.on("spawn",n),o.unref()})).catch((e=>{throw log.error(`Error while launching ${n}`,e instanceof Error?e:void 0),new Em(e&&"object"==typeof e&&"code"in e&&"EACCES"===e.code?`GitHub Desktop doesn't have the proper permissions to start ${n}. Please open ${i} and try another editor.`:`Something went wrong while trying to start ${n}. Please open ${i} and try another editor.`,{openPreferences:!0})}))}async function ef(e,t){const{summary:n,description:r,trailers:s}=t,i=`${n}\n\n${r||""}\n`.replace(/\s+$/,"\n");return void 0!==s&&s.length>0?dm(e,i,s):i}function tf(e,t){const n=t.gitHubRepository;return n?lr(e,n.endpoint):null}const nf=(e,t,n)=>zd(["show",`${t}:${n}`],e.path,"getBlobContents",{successExitCodes:new Set([0,1]),encoding:"buffer"}).then((e=>e.stdout));async function rf(e,t,n,r){return async function(e,t,n,r){return zd(["show",`${t}:${n}`],e.path,"getPartialBlobContentsCatchPathNotInRef",{maxBuffer:r,expectedErrors:new Set([ad.GitError.PathExistsButNotInRef]),encoding:"buffer"}).then((e=>e.gitError===ad.GitError.PathExistsButNotInRef?null:e.stdout)).catch((e=>qd(e)?Vd(e.stdout):Promise.reject(e)))}(e,t,n,r)}function sf(e){return e.location+e.length}function of(e,t,n,r,s){const i=Math.min(t.length,r.length),o=s?sf(t)-1:t.location,a=s?sf(r)-1:r.location,l=s?-1:1;let c=0;for(;Math.abs(c)<i&&e[o+c]===n[a+c];)c+=l;return Math.abs(c)}var af,lf;function cf(e){return e.type===af.Added||e.type===af.Deleted||e.type===af.Modified}function uf(e,t){const n=function(e,t){let n={location:0,length:t.length},r={location:0,length:e.length};const s=of(t,n,e,r,!1);n={location:n.location+s,length:n.length-s},r={location:r.location+s,length:r.length-s};const i=of(t,n,e,r,!0);return n.length-=i,r.length-=i,{stringARange:r,stringBRange:n}}(e,t);return{before:{[n.stringARange.location]:{token:"diff-delete-inner",length:n.stringARange.length}},after:{[n.stringBRange.location]:{token:"diff-add-inner",length:n.stringBRange.length}}}}function hf(e){return e instanceof nh}function pf(e){if(0===e.length)return 0;for(let t=e.length-1;t>=0;t--){const n=e[t];for(let e=n.lines.length-1;e>=0;e--){const t=n.lines[e];if(t.type===Bu.Hunk)continue;const r=t.newLineNumber??0,s=t.oldLineNumber??0;return r>s?r:s}}return 0}!function(e){e.Context="Context",e.Hunk="Hunk",e.Added="Added",e.Deleted="Deleted",e.Modified="Modified"}(af||(af={})),function(e){e.Before="before",e.After="after"}(lf||(lf={}));function df(e,t,n,r){const s=new Array,i=[r,af.Modified];return i.includes(e.type)?(void 0!==t&&i.includes(t.type)||s.push("is-first"),void 0!==n&&i.includes(n.type)||s.push("is-last"),s):[]}function mf(e,t){return e===t||e.text===t.text&&e.kind===t.kind&&e.hasHiddenBidiChars===t.hasHiddenBidiChars&&e.lineEndingsChange===t.lineEndingsChange&&e.hunks.length===t.hunks.length&&(0===e.hunks.length||e.hunks[e.hunks.length-1].equals(t.hunks[t.hunks.length-1]))}const ff=20;function gf(e){return e.reduce(((e,t)=>e.concat(t.lines)),[]).map((e=>e.text)).join("\n")}function yf(e,t){const n=e.lines.slice(1),r=t.lines.slice(1),s=new Xu(e.header.oldStartLine,e.header.oldLineCount+t.header.oldLineCount,e.header.newStartLine,e.header.newLineCount+t.header.newLineCount),i=[new Gu(s.toDiffLineRepresentation(),Bu.Hunk,null,null,null,!1),...n,...r];return new Yu(s,i,e.unifiedDiffStart,e.unifiedDiffStart+i.length-1,e.expansionType)}function wf(e,t,n){const r=null===n?1/0:t.oldStartLine-n.header.oldStartLine-n.header.oldLineCount;return 0===e?t.oldStartLine>1&&t.newStartLine>1?Uu.Up:Uu.None:r<=ff?Uu.Short:Uu.Both}function bf(e,t,n,r,s=ff){const i=e.hunks.indexOf(t);if(-1===i)return;const o="up"===n,a=o&&i>0?i-1:!o&&i<e.hunks.length-1?i+1:null,l=null!==a?e.hunks[a]:null,c=null!==l&&!1===o&&1===l.lines.length&&l.lines[0].type===Bu.Hunk&&a===e.hunks.length-1,u=t.header.newStartLine,h=t.header.oldStartLine;let[p,d]=o?[u-s,u]:[u+t.header.newLineCount,u+t.header.newLineCount+s],m=!1;if(null!==l)if(o){const e=l.header.newStartLine+l.header.newLineCount;p=Math.max(p,e),m=p===e}else if(!1===c){const e=l.header.newStartLine;d=Math.min(d,e),m=d===e}const f=r.slice(Math.max(p-1,0),Math.min(d-1,r.length)),g=f.length;if(0===g)return;const y=f.map(((e,n)=>{const r=o?u-(g-n):u+t.header.newLineCount+n,s=o?h-(g-n):h+t.header.oldLineCount+n;return new Gu(" "+e,Bu.Context,null,s,r,!1)})),w=e.hasHiddenBidiChars||f.some((e=>vf.test(e))),b=new Xu(o?t.header.oldStartLine-g:t.header.oldStartLine,t.header.oldLineCount+g,o?t.header.newStartLine-g:t.header.newStartLine,t.header.newLineCount+g),C=t.lines[0],v=new Gu(b.toDiffLineRepresentation(),Bu.Hunk,null,C.oldLineNumber,C.newLineNumber,C.noTrailingNewLine),S=t.lines.slice(1),E=o?[v,...y,...S]:[v,...S,...y];let k=E.length-t.lines.length;const R=wf(i,b,0===i?null:e.hunks[i-1]);let A=new Yu(b,E,t.unifiedDiffStart,t.unifiedDiffEnd+k,R),T=0,x=0;m&&null!==l?(o?(A=yf(l,A),T=i-1,x=i+1):(T=i,x=i+2,A=yf(A,l)),k-=1):(T=i,x=i+1);const D=e.hunks.slice(0,T),M=b.newStartLine+b.newLineCount-1>=r.length?[]:e.hunks.slice(x).map(((t,n)=>{const r=n+x===e.hunks.length-1&&1===t.lines.length&&t.lines[0].type===Bu.Hunk,s=0===n&&!r;return new Yu(t.header,t.lines,t.unifiedDiffStart+k,t.unifiedDiffEnd+k,s?wf(x,t.header,A):t.expansionType)})),P=[...D,A,...M],I=gf(P);return{...e,text:I,hunks:P,maxLineNumber:pf(P),hasHiddenBidiChars:w}}const Cf=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,vf=/[\u202A-\u202E]|[\u2066-\u2069]/,Sf=new Set(["+","-"," ","\\"]);class Ef{ls;le;text;constructor(){this.reset()}reset(){this.ls=0,this.le=-1,this.text=""}nextLine(){return this.ls=this.le+1,!(this.ls>=this.text.length)&&(this.le=this.text.indexOf("\n",this.ls),-1===this.le&&(this.le=this.text.length),this.ls!==this.le)}readLine(){return this.nextLine()?this.text.substring(this.ls,this.le):null}lineStartsWith(e){return this.text.startsWith(e,this.ls)}lineEndsWith(e){return this.text.endsWith(e,this.le)}peek(){const e=this.le+1;return e<this.text.length?this.text[e]:null}parseDiffHeader(){for(;this.nextLine();){if(this.lineStartsWith("Binary files ")&&this.lineEndsWith("differ"))return{isBinary:!0};if(this.lineStartsWith("+++"))return{isBinary:!1}}return null}numberFromGroup(e,t,n=null){const r=e[t];if(!r){if(!n)throw new Error(`Group ${t} missing from regexp match and no defaultValue was provided`);return n}const s=parseInt(r,10);if(isNaN(s))throw new Error(`Could not parse capture group ${t} into number: ${r}`);return s}parseHunkHeader(e){const t=Cf.exec(e);if(!t)throw new Error("Invalid hunk header format");const n=this.numberFromGroup(t,1),r=this.numberFromGroup(t,2,1),s=this.numberFromGroup(t,3),i=this.numberFromGroup(t,4,1);return new Xu(n,r,s,i)}parseLinePrefix(e){return e&&e.length&&Sf.has(e[0])?e[0]:null}parseHunk(e,t,n){const r=this.readLine();if(!r)throw new Error("Expected hunk header but reached end of diff");const s=this.parseHunkHeader(r),i=new Array;let o;i.push(new Gu(r,Bu.Hunk,1,null,null));let a=s.oldStartLine,l=s.newStartLine,c=e;for(;o=this.parseLinePrefix(this.peek());){const e=this.readLine();if(!e)throw new Error("Expected unified diff line but reached end of diff");if("\\"===o){if(e.length<12)throw new Error('Expected "no newline at end of file" marker to be at least 12 bytes long');const t=i.length-1,n=i[t];i[t]=n.withNoTrailingNewLine(!0);continue}let t;if(c++,"+"===o)t=new Gu(e,Bu.Add,c,null,l++);else if("-"===o)t=new Gu(e,Bu.Delete,c,a++,null);else{if(" "!==o)return at(0,`Unknown DiffLinePrefix: ${o}`);t=new Gu(e,Bu.Context,c,a++,l++)}i.push(t)}if(1===i.length)throw new Error("Malformed diff, empty hunk");return new Yu(s,i,e,e+i.length-1,wf(t,s,n))}parse(e){this.text=e;try{const t=this.parseDiffHeader(),n=this.le,r=this.text.substring(0,n);if(!t)return{header:r,contents:"",hunks:[],isBinary:!1,maxLineNumber:0,hasHiddenBidiChars:!1};if(t.isBinary)return{header:r,contents:"",hunks:[],isBinary:!0,maxLineNumber:0,hasHiddenBidiChars:!1};const s=new Array;let i=0,o=null;do{const e=this.parseHunk(i,s.length,o);s.push(e),o=e,i+=e.lines.length}while(this.peek());return{header:r,contents:this.text.substring(n+1,this.le).replace(/\n\\ No newline at end of file/g,""),hunks:s,isBinary:t.isBinary,maxLineNumber:pf(s),hasHiddenBidiChars:vf.test(e)}}finally{this.reset()}}}function kf(e){return e.status.kind===Wu.Renamed||e.status.kind===Wu.Copied?e.status.oldPath:e.path}var Rf;function Af(e){const t=function(e){switch(e[0]){case"A":return Rf.Added;case"C":return Rf.Copied;case"D":return Rf.Deleted;case"M":return Rf.Modified;case"R":return Rf.Renamed;case"T":return Rf.TypeChanged;case"U":return Rf.Unmerged;case"X":return Rf.Unknown;default:throw new Error(`Unknown index status: ${e}`)}}(e);switch(t){case Rf.Copied:case Rf.Renamed:throw new Error(`Invalid index status for no-rename index status: ${t}`)}return t}!function(e){e[e.Unknown=0]="Unknown",e[e.Added=1]="Added",e[e.Copied=2]="Copied",e[e.Deleted=3]="Deleted",e[e.Modified=4]="Modified",e[e.Renamed=5]="Renamed",e[e.TypeChanged=6]="TypeChanged",e[e.Unmerged=7]="Unmerged"}(Rf||(Rf={}));const Tf="4b825dc642cb6eb9a060e54bf8d69288fbee4904";class xf{name;email;date;tzOffset;static parseIdentity(e){const t=e.match(/^(.*?) <(.*?)> (\d+) (\+|-)?(\d{2})(\d{2})/);if(!t)throw new Error(`Couldn't parse identity ${e}`);const n=t[1],r=t[2],s=new Date(1e3*parseInt(t[3],10));if(isNaN(s.valueOf()))throw new Error(`Couldn't parse identity ${e}, invalid date`);const i="-"===t[4]?"-":"+",o=t[5],a=t[6],l=60*parseInt(o,10)+parseInt(a,10);return new xf(n,r,s,l*("-"===i?-1:1))}constructor(e,t,n,r=(new Date).getTimezoneOffset()){this.name=e,this.email=t,this.date=n,this.tzOffset=r}toString(){return`${this.name} <${this.email}>`}}function Df(e,t){const n=[];let r=0,s=e.indexOf(t,r);for(;-1!==s;)n.push(e.subarray(r,s)),r=s+t.length,s=e.indexOf(t,r);return r<=e.length&&n.push(e.subarray(r)),n}function Mf(e){const t=Object.keys(e);return{formatArgs:["-z",`--format=${Object.values(e).join("%x00")}`],parse:e=>{const n=Buffer.isBuffer(e)?Df(e,"\0"):e.split("\0"),r=[];for(let e=0;e<n.length-t.length;e+=t.length){const s={};t.forEach(((t,r)=>s[t]=n[e+r])),r.push(s)}return r}}}function Pf(e){const t=Object.keys(e);return{formatArgs:[`--format=%00${Object.values(e).join("%00")}%00`],parse:e=>{const n=e.split("\0"),r=new Array;let s,i=0;for(let e=1;e<n.length-1;e++)if(e%(t.length+1)!=0)s=s??{},s[t[i%t.length]]=n[e],i++,i%t.length==0&&(r.push(s),s=void 0);else if("\n"!==n[e])throw new Error("Expected newline");return r}}}const If="160000";function _f(e,t,n,r){const s=e.trim(),i=function(e,t,n){return t===If&&n===If&&"M"===e?{commitChanged:!0,untrackedChanges:!1,modifiedChanges:!1}:t===If&&"D"===e||n===If&&"A"===e?{commitChanged:!1,untrackedChanges:!1,modifiedChanges:!1}:void 0}(s,n,r);return"M"===s?{kind:Wu.Modified,submoduleStatus:i}:"A"===s?{kind:Wu.New,submoduleStatus:i}:"?"===s?{kind:Wu.Untracked,submoduleStatus:i}:"D"===s?{kind:Wu.Deleted,submoduleStatus:i}:"R"===s&&null!=t?{kind:Wu.Renamed,oldPath:t,submoduleStatus:i,renameIncludesModifications:!1}:"C"===s&&null!=t?{kind:Wu.Copied,oldPath:t,submoduleStatus:i,renameIncludesModifications:!1}:s.match(/R[0-9]+/)&&null!=t?{kind:Wu.Renamed,oldPath:t,submoduleStatus:i,renameIncludesModifications:"R100"!==s}:s.match(/C[0-9]+/)&&null!=t?{kind:Wu.Copied,oldPath:t,submoduleStatus:i,renameIncludesModifications:!1}:{kind:Wu.Modified,submoduleStatus:i}}const Ff=e=>e.kind===Wu.Copied||e.kind===Wu.Renamed;async function Nf(e,t,n,r,s=[]){const{formatArgs:i,parse:o}=Mf({sha:"%H",shortSha:"%h",summary:"%s",body:"%b",author:"%an <%ae> %ad",committer:"%cn <%ce> %cd",parents:"%P",trailers:"%(trailers:unfold,only)",refs:"%D"}),a=["log"];void 0!==t&&a.push(t),a.push("--date=raw"),void 0!==n&&a.push(`--max-count=${n}`),void 0!==r&&a.push(`--skip=${r}`),a.push(...i,"--no-show-signature","--no-color",...s,"--");const l=await zd(a,e.path,"getCommits",{successExitCodes:new Set([0,128]),encoding:"buffer"});return 128===l.exitCode?new Array:o(l.stdout).map((e=>{const t=e.refs.toString().split(", ").flatMap((e=>e.startsWith("tag: ")?e.substring(5):[]));return new gm(e.sha.toString(),e.shortSha.toString(),e.summary.subarray(0,102400).toString(),e.body.subarray(0,102400).toString(),xf.parseIdentity(e.author.toString()),xf.parseIdentity(e.committer.toString()),e.parents.length>0?e.parents.toString().split(" "):[],um(e.trailers.toString(),":"),t)}))}function Of(e,t,n){const r=new Array;let s=0,i=0,o=0;const a=e.split("\0");for(let e=0;e<a.length-1;e++){const l=a[e];if(l.startsWith(":")){const s=l.split(" "),i=lt("Invalid log output (srcMode)",s[0]?.replace(":","")),o=lt("Invalid log output (dstMode)",s[1]),c=lt("Invalid log output (status)",s.at(-1)),u=/^R|C/.test(c)?lt("Missing old path",a.at(++e)):void 0,h=lt("Missing path",a.at(++e));r.push(new rh(h,_f(c,u,i,o),t,n))}else{const t=/^(\d+|-)\t(\d+|-)\t/.exec(l),[,n,a]=lt("Invalid numstat line",t);s+="-"===n?0:parseInt(n,10),i+="-"===a?0:parseInt(a,10),Ff(r[o].status)&&(e+=2),o++}}return{files:r,linesAdded:s,linesDeleted:i}}async function Lf(e,t){const n=await Nf(e,t,1);return n.length<1?null:n[0]}var Bf;!function(e){e[e.Success=0]="Success",e[e.AlreadyUpToDate=1]="AlreadyUpToDate",e[e.Failed=2]="Failed"}(Bf||(Bf={}));async function Hf(e,t,n){const r=await zd(["merge-base",t,n],e.path,"merge-base",{successExitCodes:new Set([0,1,128])});return 1===r.exitCode||128===r.exitCode?null:r.stdout.trim()}function Uf(e,t){switch(e){case 0:return["reset","--hard",t];case 2:return["reset",t];case 1:return["reset","--soft",t];default:return at(0,`Unknown reset mode: ${e}`)}}async function Zf(e,t,n){const r=Uf(t,n);return await zd(r,e.path,"reset"),!0}async function $f(e){return await zd(["reset","--","."],e.path,"unstageAll"),!0}async function Wf(e,t,n={}){if(0===t.length)return;const r=["update-index"];!1!==n.add&&r.push("--add"),!1===n.remove&&!0!==n.forceRemove||r.push("--remove"),n.forceRemove&&r.push("--force-remove"),!1!==n.replace&&r.push("--replace"),r.push("-z","--stdin"),await zd(r,e.path,"updateIndex",{stdin:t.join("\0")})}async function Vf(e,t){const n=[],r=[],s=[],i=[];for(const e of t)e.selection.getSelectionType()===Hu.All?(n.push(e.path),e.status.kind===Wu.Renamed?r.push(e.status.oldPath):e.status.kind===Wu.Deleted&&i.push(e.path)):s.push(e);await Wf(e,r,{forceRemove:!0}),await Wf(e,n),await Wf(e,i,{forceRemove:!0});for(const t of s)await ug(e,t)}const qf=7e7,Gf=qf/16,zf=5e3,jf=new Set([".png",".jpg",".jpeg",".gif",".ico",".webp",".bmp",".avif"]);async function Kf(e,t,n,r=!1){const s=["log",n,...r?["-w"]:[],"-m","-1","--first-parent","--patch-with-raw","--format=","-z","--no-color","--",ag(t.path)];t.status.kind!==Wu.Renamed&&t.status.kind!==Wu.Copied||s.push(ag(t.status.oldPath));const{stdout:i}=await zd(s,e.path,"getCommitDiff",{encoding:"buffer"});return tg(i,e,t,n,n)}async function Yf(e,t,n,r=!1,s=!1){if(0===n.length)throw new Error("No commits to diff...");const i=s?Tf:n[0],o=s?Tf:`${n[0]}^`,a=n.at(-1)??"",l=["diff",o,a,...r?["-w"]:[],"--patch-with-raw","--format=","-z","--no-color","--",ag(t.path)];t.status.kind!==Wu.Renamed&&t.status.kind!==Wu.Copied||l.push(ag(t.status.oldPath));const c=await zd(l,e.path,"getCommitsDiff",{encoding:"buffer",expectedErrors:new Set([ad.GitError.BadRevision])});return c.gitError===ad.GitError.BadRevision&&!1===s?Yf(e,t,n,r,!0):tg(c.stdout,e,t,a,i)}async function Xf(e,t,n=!1){if(0===t.length)throw new Error("No commits to diff...");const r=n?Tf:`${t[0]}^`,s=t.at(-1)??"",i=["diff",r,s,"-C","-M","-z","--raw","--numstat","--"],{stdout:o,gitError:a}=await zd(i,e.path,"getCommitRangeChangedFiles",{expectedErrors:new Set([ad.GitError.BadRevision])});return a===ad.GitError.BadRevision&&!1===n?Xf(e,t,!0):Of(o,s,r)}async function Qf(e,t,n=!1){const r=["diff",...n?["-w"]:[],"--no-ext-diff","--patch-with-raw","-z","--no-color"],s=new Set([0]);void 0!==t.status.submoduleStatus||t.status.kind!==Wu.New&&t.status.kind!==Wu.Untracked?t.status.kind===Wu.Renamed?r.push("--",ag(t.path)):r.push("HEAD","--",ag(t.path)):(s.add(1),r.push("--no-index","--","/dev/null",t.path));const{stdout:i,stderr:o}=await zd(r,e.path,"getWorkingDirectoryDiff",{successExitCodes:s,encoding:"buffer"}),a=function(e){if(0===e.length)return;const t=e.toString("utf-8"),n=eg.exec(t);if(n){const e=qu(n[1]),t=qu(n[2]);if(e&&t)return{from:e,to:t}}}(o);return tg(i,e,t,"HEAD","HEAD",a)}function Jf(e){return".png"===e?"image/png":".jpg"===e||".jpeg"===e?"image/jpg":".gif"===e?"image/gif":".ico"===e?"image/x-icon":".webp"===e?"image/webp":".bmp"===e?"image/bmp":".avif"===e?"image/avif":".dds"===e?"image/vnd-ms.dds":"text/plain"}on()&&jf.add(".dds");const eg=/', (CRLF|CR|LF) will be replaced by (CRLF|CR|LF) the .*/;async function tg(e,n,r,s,i,o){if(void 0!==r.status.submoduleStatus)return async function(e,n,r,s){const i=r.path,o=t.join(n.path,i),a=await em(n,`submodule.${i}.url`,!0);let l=null,c=null;if(s.commitChanged||r.status.kind===Wu.New||r.status.kind===Wu.Deleted){const t=e.toString("utf-8").split("\n"),n="Subproject commit ([^-]+)(-dirty)?$",r=new RegExp("-"+n),s=new RegExp("\\+"+n),i=e=>t.flatMap((t=>{const n=t.match(e);return n?n[1]:[]})).at(0)??null;l=i(r),c=i(s)}return{kind:Lu.Submodule,fullPath:o,path:i,url:a,status:s,oldSHA:l,newSHA:c}}(e,n,r,r.status.submoduleStatus);if(!function(e){return e.length<=qf}(e))return{kind:Lu.Unrenderable};const a=function(e){const t=e.toString("utf-8").split("\0");return(new Ef).parse(lt("Invalid diff output",t.at(-1)))}(e);return function(e){return e.length>=Gf}(e)||function(e){for(const t of e.hunks)for(const e of t.lines)if(e.text.length>zf)return!0;return!1}(a)?{kind:Lu.LargeText,text:a.contents,hunks:a.hunks,lineEndingsChange:o,maxLineNumber:a.maxLineNumber,hasHiddenBidiChars:a.hasHiddenBidiChars}:async function(e,n,r,s,i,o){const a=t.extname(n.path).toLowerCase();return r.isBinary?jf.has(a)?async function(e,n,r,s){let i,o;if(n instanceof nh){if(n.status.kind===Wu.Conflicted)return{kind:Lu.Image};n.status.kind!==Wu.Deleted&&(i=await async function(e,n){const r=await(0,w.readFile)(t.join(e.path,n.path));return new Ku(r.buffer,r.toString("base64"),Jf(t.extname(n.path)),r.length)}(e,n)),n.status.kind!==Wu.New&&n.status.kind!==Wu.Untracked&&(o=await ng(e,kf(n),"HEAD"))}else n.status.kind!==Wu.Deleted&&(i=await ng(e,n.path,r)),n.status.kind!==Wu.New&&n.status.kind!==Wu.Untracked&&n.status.kind!==Wu.Deleted&&(o=await ng(e,kf(n),`${s}^`)),n instanceof rh&&n.status.kind===Wu.Deleted&&(o=await ng(e,kf(n),n.parentCommitish));return{kind:Lu.Image,previous:o,current:i}}(e,n,s,i):{kind:Lu.Binary}:{kind:Lu.Text,text:r.contents,hunks:r.hunks,lineEndingsChange:o,maxLineNumber:r.maxLineNumber,hasHiddenBidiChars:r.hasHiddenBidiChars}}(n,r,a,s,i,o)}async function ng(e,n,r){const s=t.extname(n),i=await nf(e,r,n);return new Ku(i.buffer,i.toString("base64"),Jf(s),i.length)}async function rg(e,t,n){const[r,s]=await Promise.all([sg(e,t),og(e,n)]);return Array.from(new Set([...r,...s]))}async function sg(e,t){const{stdout:n}=await zd(["diff","--numstat","-z",t],e.path,"getBinaryPaths");return Array.from(n.matchAll(ig),(e=>e[1]))}const ig=/-\t-\t(?:\0.+\0)?([^\0]*)/gi;async function og(e,t){const{stdout:n}=await zd(["check-attr","--stdin","-z","merge"],e.path,"getConflictedFilesUsingBinaryMergeDriver",{stdin:t.map((e=>e.path)).join("\0")});return Mf({path:"",attr:"",value:""}).parse(n).filter((e=>"merge"===e.attr&&"binary"===e.value)).map((e=>e.path))}const ag=e=>(0,t.isAbsolute)(e)?`:(top,literal)${e}`:e;function lg(e,t){return`--- ${e?`a/${e}`:"/dev/null"}\n+++ ${t?`b/${t}`:"/dev/null"}\n`}function cg(e,t,n,r,s){return`@@ -${1===t?`${e}`:`${e},${t}`} +${1===r?`${n}`:`${n},${r}`} @@${s=s?` ${s}`:""}\n`}async function ug(e,t){if(t.status.kind===Wu.Renamed){await zd(["add","--u","--",t.status.oldPath],e.path,"applyPatchToIndex");const n=await zd(["ls-tree","HEAD","--",t.status.oldPath],e.path,"applyPatchToIndex"),[r]=n.stdout.split("\t",1),[s,,i]=r.split(" ",3);await zd(["update-index","--add","--cacheinfo",s,i,t.path],e.path,"applyPatchToIndex")}const n=await Qf(e,t);if(n.kind!==Lu.Text&&n.kind!==Lu.LargeText){const{kind:e}=n;switch(n.kind){case Lu.Binary:case Lu.Submodule:case Lu.Image:throw new Error(`Can't create partial commit in binary file: ${t.path}`);case Lu.Unrenderable:throw new Error(`File diff is too large to generate a partial commit: ${t.path}`);default:at(0,`Unknown diff kind: ${e}`)}}const r=await function(e,t){let n="";if(t.hunks.forEach(((t,r)=>{let s="",i=0,o=0,a=!1;t.lines.forEach(((n,r)=>{const l=t.unifiedDiffStart+r;if(n.type!==Bu.Hunk){if(n.type===Bu.Context)s+=`${n.text}\n`,i++,o++;else if(e.selection.isSelected(l))s+=`${n.text}\n`,n.type===Bu.Add&&o++,n.type===Bu.Delete&&i++,a=!0;else{if(e.status.kind===Wu.New||e.status.kind===Wu.Untracked)return;if(n.type===Bu.Add)return;n.type===Bu.Delete?(s+=` ${n.text.substring(1)}\n`,i++,o++):at(n.type,`Unsupported line type ${n.type}`)}n.noTrailingNewLine&&(s+="\\ No newline at end of file\n")}})),a&&(n+=cg(t.header.oldStartLine,i,t.header.newStartLine,o),n+=s)})),!n.length)throw log.debug(`formatPatch: empty path for ${e.path}`),new Error("Could not generate a patch, no changes");return n=function(e){switch(e.status.kind){case Wu.New:case Wu.Untracked:return lg(null,e.path);case Wu.Renamed:case Wu.Deleted:case Wu.Modified:case Wu.Copied:case Wu.Conflicted:return lg(e.path,e.path);default:return at(e.status,`Unknown file status ${e.status}`)}}(e)+n,n}(t,n);return await zd(["apply","--cached","--unidiff-zero","--whitespace=nowarn","-"],e.path,"applyPatchToIndex",{stdin:r}),Promise.resolve()}function hg(e){return e.startsWith("heads/")?`refs/${e}`:e.startsWith("refs/heads/")?e:`refs/heads/${e}`}async function pg(e,t){const n=await zd(["symbolic-ref","-q",t],e.path,"getSymbolicRef",{successExitCodes:new Set([0,1,128])});return 1===n.exitCode||128===n.exitCode?null:n.stdout.trim()}async function dg(e,t,n){const r=["update-ref","-d",t];void 0!==n&&r.push("-m",n),await zd(r,e.path,"deleteRef")}const mg=new Set([ad.GitError.HTTPSAuthenticationFailed,ad.GitError.SSHAuthenticationFailed,ad.GitError.HTTPSRepositoryNotFound,ad.GitError.SSHRepositoryNotFound]);function fg(e,t){switch(e.toLowerCase()){case"proxy":case"http":return`http://${t}`;case"https":return`https://${t}`;case"socks":case"socks4":return`socks4://${t}`;case"socks5":return`socks5://${t}`}return null}async function gg(e){const t=function(e){if("DIRECT"===e)return null;const t=e.trim().split(/\s*;\s*/),n=new Array;for(const e of t){if(e.match(/^direct/i))break;const[t,r]=e.split(/\s+/,2);if(void 0!==r){const s=fg(t,r);null!==s?n.push(s):log.warn(`Skipping proxy spec: ${e}`)}}return n.length>0?n:null}(await he(e).catch((t=>(log.error(`Failed resolving proxy for '${e}'`,t),"DIRECT"))));if(null!==t)for(const e of t){if(!e.startsWith("https://"))return e;log.warn("ignoring https proxy, not supported in cURL/schannel")}}function yg(e,t){return Yr(e)?ir(e.gitHubRepository.endpoint):t?t.url:"https://github.com"}async function wg(e){return{GIT_TERMINAL_PROMPT:"0",GIT_TRACE:localStorage.getItem("git-trace")||"0",...await bg(e)}}async function bg(e,t=process.env,n=gg){const r=/^(https?):\/\//i.exec(e);if(null===r)return;const s=r[1].toLowerCase();if("ALL_PROXY"in t||"all_proxy"in t)return void log.info("proxy url not resolved, ALL_PROXY already set");const i=`${s}_proxy`;if(i in t||"https"===s&&"HTTPS_PROXY"in t)return void log.info(`proxy url not resolved, ${i} already set`);const o=await n(e).catch((e=>{log.error("Failed resolving Git proxy",e)}));return void 0===o?void 0:{[i]:o}}async function Cg(e,t){return await zd(["branch","-D",t],e.path,"deleteLocalBranch"),!0}async function vg(e,t,n){const r=["push",t.name,`:${n}`];if((await zd(r,e.path,"deleteRemoteBranch",{env:await wg(t.url),expectedErrors:new Set([ad.GitError.BranchDeletionFailed])})).gitError===ad.GitError.BranchDeletionFailed){const r=`refs/remotes/${t.name}/${n}`;await dg(e,r)}return!0}class Sg{steps;stepIndex=0;lastPercent=0;constructor(e){if(!e.length)throw new Error("must specify at least one step");const t=e.reduce(((e,t)=>e+t.weight),0);this.steps=e.map((e=>({title:e.title,weight:e.weight/t})))}parse(e){const t=function(e){const t=e.lastIndexOf(": ");if(0===t)return null;if(t-2>=e.length)return null;const n=e.substring(0,t),r=e.substring(n.length+2).trim();if(!r.length)return null;const s=r.split(", ");if(!s.length)return null;let i,o,a;if(kg.test(s[0])){if(i=parseInt(s[0],10),isNaN(i))return null}else{const e=Eg.exec(s[0]);if(!e||4!==e.length)return null;if(a=parseInt(e[1],10),i=parseInt(e[2],10),o=parseInt(e[3],10),isNaN(a)||isNaN(i)||isNaN(o))return null}let l=!1;for(let e=1;e<s.length;e++)if("done."===s[e]){l=!0;break}return{title:n,value:i,percent:a,total:o,done:l,text:e}}(e);if(!t)return{kind:"context",text:e,percent:this.lastPercent};let n=0;for(let e=0;e<this.steps.length;e++){const r=this.steps[e];if(e>=this.stepIndex&&t.title===r.title)return t.total&&(n+=r.weight*(t.value/t.total)),this.stepIndex=e,this.lastPercent=n,{kind:"progress",percent:n,details:t};n+=r.weight}return{kind:"context",text:e,percent:this.lastPercent}}}const Eg=/^(\d{1,3})% \((\d+)\/(\d+)\)$/,kg=/^\d+$/,Rg=[{title:"检出文件",weight:1}];class Ag extends Sg{constructor(){super(Rg)}}const Tg=[{title:"远程: 压缩对象",weight:.1},{title:"接收对象",weight:.6},{title:"解决增量",weight:.1},{title:"检出文件",weight:.2}];class xg extends Sg{constructor(){super(Tg)}}const Dg=[{title:"压缩对象",weight:.2},{title:"写入对象",weight:.7},{title:"远程: 解决增量",weight:.1}];class Mg extends Sg{constructor(){super(Dg)}}const Pg=[{title:"远程: 压缩对象",weight:.1},{title:"接收对象",weight:.7},{title:"解决增量",weight:.2}];class Ig extends Sg{constructor(){super(Pg)}}const _g=[{title:"远程: 压缩对象",weight:.1},{title:"接收对象",weight:.7},{title:"解决增量",weight:.15},{title:"检出文件",weight:.15}];class Fg extends Sg{constructor(){super(_g)}}var Ng=n(3295),Og=n.n(Ng);class Lg{path;emitter=new dt.Emitter;state=null;constructor(e){this.path=e}onDataAvailable(e){return this.emitter.on("data",e)}onError(e){return this.emitter.on("error",e)}handleError(e){this.state=null,this.emitter.emit("error",e)}start(){if(this.state)throw new Error("Tailer already running");try{const e=r.watch(this.path,this.onWatchEvent);e.on("error",(e=>{this.handleError(e)})),this.state={watcher:e,position:0}}catch(e){this.handleError(e)}}onWatchEvent=e=>{"change"===e&&this.state&&r.stat(this.path,((e,t)=>{if(e)return;const n=this.state;n&&(t.size<=n.position||(this.state={...n,position:t.size},this.readChunk(t,n.position)))}))};readChunk(e,t){const n=r.createReadStream(this.path,{start:t,end:e.size});this.emitter.emit("data",n)}stop(){const e=this.state;e&&(e.watcher.close(),this.state=null)}}const Bg=e=>(0,t.join)((0,Rr.tmpdir)(),`${e}-${(0,Cn.randomBytes)(8).toString("hex")}`);function Hg(e,t){if(t<=0)return Math.round(e);const n=Math.pow(10,t);return Math.round((e+Number.EPSILON)*n)/n}const Ug=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];function Zg(e,t=0,n=!0){if(!Number.isFinite(e))return`${e}`;const r=Math.floor(Math.log(Math.abs(e))/Math.log(1024)),s=Hg(e/Math.pow(1024,r),t);return`${n?s.toFixed(t):s} ${Ug[r]}`}const $g=/^(.+?)\s{1}(\d+)\/(\d+)\s{1}(\d+)\/(\d+)\s{1}(.+)$/;class Wg{files=new Map;parse(e){const t=e.match($g);if(!t||7!==t.length)return{kind:"context",percent:0,text:e};const n=t[1],r=parseInt(t[3],10),s=parseInt(t[4],10),i=parseInt(t[5],10),o=t[6];if(isNaN(r)||isNaN(s)||isNaN(i))return{kind:"context",percent:0,text:e};this.files.set(o,{transferred:s,size:i,done:s===i});let a=0,l=0,c=0;const u=Math.max(r,this.files.size);for(const e of this.files.values())a+=e.transferred,l+=e.size,c+=e.done?1:0;const h=`${Zg(a,1)} / ${Zg(l,1)}`,p=this.directionToHumanFacingVerb(n);return{kind:"progress",percent:0,details:{title:`${p} "${o}"`,value:a,total:l,percent:0,done:!1,text:`${p} ${o} (${c} out of an estimated ${u} completed, ${h})`}}}directionToHumanFacingVerb(e){switch(e){case"download":default:return"Downloading";case"upload":return"Uploading";case"checkout":return"Checking out"}}}async function Vg(e,t,n){let r=null,s={};if(e.trackLFSProgress)try{r=await async function(){const e=await Bg("GitHubDesktop-lfs-progress");return await(0,w.open)(e,"wx").then((e=>e.close())),e}(),s={GIT_LFS_PROGRESS:r}}catch(e){log.error("Error writing LFS progress file",e),s={GIT_LFS_PROGRESS:null}}return Zp(e,{processCallback:qg(t,r,n),env:Zp(e.env,s)})}function qg(e,n,s){return i=>{let o=!1;if(n){const e=new Wg,a=function(t){const n=new Lg(t),r=n.onError((e=>{log.warn(`Unable to tail path: ${t}`,e)})),i=n.onDataAvailable((t=>{Og()(t).on("data",(t=>{if(i.disposed)return;(t=>{const n=e.parse(t);"progress"===n.kind&&(o=!0,s(n))})(t.toString())}))}));return n.start(),new dt.Disposable((()=>{i.dispose(),r.dispose(),n.stop()}))}(n);i.on("close",(()=>{a.dispose(),r.unlink(n,(e=>{if(null==e){const e=t.dirname(n);r.rmdir(e,(()=>{}))}}))}))}i.stderr&&Og()(i.stderr).on("data",(t=>{const n=e.parse(t);if(o){if("context"===n.kind)return;const{title:e,done:t}=n.details;if("Filtering content"===e)return void(t&&(o=!1))}s(n)}))}}function Gg(e){return["checkout",...e?["--progress"]:[]]}async function zg(e){return[e.name,...e.type===rd.Remote?["-b",e.nameWithoutRemote]:[],"--recurse-submodules","--"]}async function jg(e,t,n,r,s,i){const o={env:await wg(yg(e,r)),expectedErrors:mg};if(!s)return o;const a="checkout";return s({kind:a,title:t,description:i??t,value:0,target:n}),await Vg({...o,trackLFSProgress:!0},new Ag,(e=>{if("progress"===e.kind){const r=e.details.text,i=e.percent;s({kind:a,title:t,description:r,value:i,target:n})}}))}async function Kg(e,t,n,r){const s=await jg(e,`Checking out branch ${t.name}`,t.name,n,r,"切换到分支"),i=[...Gg(r),...await zg(t)];return await zd(i,e.path,"checkoutBranch",s),!0}const Yg="main",Xg="init.defaultBranch";async function Qg(){return await async function(){return tm(Xg)}()??Yg}var Jg;async function ey(e,t,n){const{status:r}=t;if(!Qu(r))return void log.error(`tried to manually resolve unconflicted file (${t.path})`);if(Ju(r)&&0===r.conflictMarkerCount)return;const s=n===Jg.theirs?r.entry.them:r.entry.us,i=r.entry.us===$u.Added&&r.entry.them===$u.Added;switch((s===$u.UpdatedButUnmerged||i)&&await async function(e,t,n){await zd(["checkout",`--${n}`,"--",t.path],e.path,"checkoutConflictedFile")}(e,t,n),s){case $u.Deleted:return async function(e,t){await zd(["rm","--",t.path],e.path,"removeConflictedFile")}(e,t);case $u.Added:case $u.UpdatedButUnmerged:return async function(e,t){await zd(["add","--",t.path],e.path,"addConflictedFile")}(e,t);default:at(0,"unaccounted for git status entry possibility")}}async function ty(e,t,n,r=!1){await $f(e),await Vf(e,n);const s=["-F","-"];return r&&s.push("--amend"),Jd(await zd(["commit",...s],e.path,"createCommit",{stdin:t}))}!function(e){e.theirs="theirs",e.ours="ours"}(Jg||(Jg={}));const ny=".git/description";async function ry(e,t,n){await zd(["fetch",t.name,n],e.path,"fetchRefspec",{successExitCodes:new Set([0,128]),env:await wg(t.url)})}async function sy(e,...t){const{formatArgs:n,parse:r}=Pf({fullName:"%(refname)",shortName:"%(refname:short)",upstreamShortName:"%(upstream:short)",sha:"%(objectname)",symRef:"%(symref)"});t&&t.length||(t=["refs/heads","refs/remotes"]);const s=await zd(["for-each-ref",...n,...t],e.path,"getBranches",{expectedErrors:new Set([ad.GitError.NotAGitRepository])});if(s.gitError===ad.GitError.NotAGitRepository)return[];const i=[];for(const e of r(s.stdout)){if(e.symRef.length>0)continue;const t={sha:e.sha},n=e.fullName.startsWith("refs/heads")?rd.Local:rd.Remote,r=e.upstreamShortName.length>0?e.upstreamShortName:null;i.push(new od(e.shortName,r,t,n,e.fullName))}return i}async function iy(e){try{return null!==await em(e,"pull.ff")?[]:["--ff"]}catch(e){log.error("Couldn't read 'pull.ff' config",e)}return[]}const oy=new RegExp("fatal: your current branch '.*' does not have any commits yet");async function ay(e){const t=await zd(["remote","-v"],e.path,"getRemotes",{expectedErrors:new Set([ad.GitError.NotAGitRepository])});return t.gitError===ad.GitError.NotAGitRepository?[]:[...t.stdout.matchAll(/^(.+)\t(.+)\s\(fetch\)/gm)].map((([,e,t])=>({name:e,url:t})))}async function ly(e,t,n){return await zd(["remote","add",t,n],e.path,"addRemote"),{url:n,name:t}}async function cy(e,t){const n={successExitCodes:new Set([0,2,128])};await zd(["remote","remove",t],e.path,"removeRemote",n)}async function uy(e,t,n){return await zd(["remote","set-url",t,n],e.path,"setRemoteURL"),!0}async function hy(e,t){const n=await zd(["remote","get-url",t],e.path,"getRemoteURL",{successExitCodes:new Set([0,2,128])});return 0!==n.exitCode?null:n.stdout}async function py(e,t,n){const r={successExitCodes:new Set([0,1,128]),env:await wg(t.url),isBackgroundTask:n};await zd(["remote","set-head","-a",t.name],e.path,"updateRemoteHEAD",r)}async function dy(e,t){const n=`refs/remotes/${t}/`,r=await pg(e,`${n}HEAD`);return null!=r&&r.length>n.length&&r.startsWith(n)?r.substring(n.length):null}function my(e,t){return`${e}..${t}`}function fy(e,t){return`${e}...${t}`}async function gy(e,t){const n=["rev-list","--left-right","--count",t,"--"],r=await zd(n,e.path,"getAheadBehind",{expectedErrors:new Set([ad.GitError.BadRevision])});if(r.gitError===ad.GitError.BadRevision)return null;const s=r.stdout.split("\t");if(2!==s.length)return null;const i=parseInt(s[0],10);if(isNaN(i))return null;const o=parseInt(s[1],10);return isNaN(o)?null:{ahead:i,behind:o}}async function yy(e,t,n){return wy(e,my(t,n))}async function wy(e,t){const n=["rev-list",t,"--reverse","--oneline","--no-abbrev-commit","--"],r={expectedErrors:new Set([ad.GitError.BadRevision])},s=await zd(n,e.path,"getCommitsInRange",r);if(s.gitError===ad.GitError.BadRevision)return null;const i=s.stdout.split("\n"),o=new Array,a=/^([a-z0-9]{40}) (.*)$/;for(const e of i){const t=a.exec(e);if(null!==t&&3===t.length){const e=t[1],n=t[2];o.push({sha:e,summary:n})}}return o}async function by(e,t){return zd(["rev-list","-1","--merges",null===t?"HEAD":my(t,"HEAD"),"--"],e.path,"doMergeCommitsExistAfterCommit",{successExitCodes:new Set([0,128])}).then((e=>e.stdout.length>0))}const Cy=async e=>{try{return(await(0,w.stat)(e)).isDirectory()}catch(e){return!1}};async function vy(e){if(!await Cy(e))return{kind:"missing"};try{const n=await zd(["rev-parse","--is-bare-repository","--show-cdup"],e,"getRepositoryType",{successExitCodes:new Set([0,128])});if(0===n.exitCode){const[r,s]=n.stdout.split("\n",2);return"true"===r?{kind:"bare"}:{kind:"regular",topLevelWorkingDirectory:(0,t.resolve)(e,s)}}const r=/fatal: detected dubious ownership in repository at '(.+)'/.exec(n.stderr);return r?{kind:"unsafe",path:r[1]}:{kind:"missing"}}catch(e){if("ENOENT"===e.code)return{kind:"missing"};throw e}}async function Sy(e){const{stdout:t}=await zd(["diff","--check"],e,"getFilesWithConflictMarkers",{successExitCodes:new Set([0,2])}),n=new Map,r=t.matchAll(/^(.+):\d+: leftover conflict marker/gm);for(const[,e]of r)n.set(e,(n.get(e)??0)+1);return n}function Ey(e){return"header"===e.kind}function ky(e){return"entry"===e.kind}const Ry="1",Ay="2",Ty="u",xy="?",Dy=/^1 ([MADRCUTX?!.]{2}) (N\.\.\.|S[C.][M.][U.]) (\d+) (\d+) (\d+) ([a-f0-9]+) ([a-f0-9]+) ([\s\S]*?)$/;function My(e){const t=Dy.exec(e);if(!t)throw log.debug(`parseChangedEntry parse error: ${e}`),new Error("Failed to parse status line for changed entry");return{kind:"entry",statusCode:t[1],submoduleStatusCode:t[2],path:t[8]}}const Py=/^2 ([MADRCUTX?!.]{2}) (N\.\.\.|S[C.][M.][U.]) (\d+) (\d+) (\d+) ([a-f0-9]+) ([a-f0-9]+) ([RC]\d+) ([\s\S]*?)$/;function Iy(e,t){const n=Py.exec(e);if(!n)throw log.debug(`parsedRenamedOrCopiedEntry parse error: ${e}`),new Error("Failed to parse status line for renamed or copied entry");if(!t)throw new Error("Failed to parse renamed or copied entry, could not parse old path");return{kind:"entry",statusCode:n[1],submoduleStatusCode:n[2],oldPath:t,renameOrCopyScore:parseInt(n[8].substring(1),10),path:n[9]}}const _y=/^u ([DAU]{2}) (N\.\.\.|S[C.][M.][U.]) (\d+) (\d+) (\d+) (\d+) ([a-f0-9]+) ([a-f0-9]+) ([a-f0-9]+) ([\s\S]*?)$/;function Fy(e){const t=_y.exec(e);if(!t)throw log.debug(`parseUnmergedEntry parse error: ${e}`),new Error("Failed to parse status line for unmerged entry");return{kind:"entry",statusCode:t[1],submoduleStatusCode:t[2],path:t[10]}}function Ny(e){return{kind:"entry",statusCode:"??",submoduleStatusCode:"????",path:e.substring(2)}}function Oy(e,t=-1/0,n=1/0){return"number"!=typeof e?Oy(e.value,e.min,e.max):e<t?t:e>n?n:e}var Ly,By;function Hy(e){return Math.round(100*Oy(e,0,1))/100}function Uy(e,t){if(null===t)return Ly.NotAvailable;const{ahead:n,behind:r}=t;if(0===r||0===n)return Ly.NotAvailable;const{tip:s,forcePushBranches:i}=e;let o=!1;if(s.kind===zr.Valid){const e=s.branch.nameWithoutRemote,{sha:t}=s.branch.tip;o=i.get(e)===t}return o?Ly.Recommended:Ly.Available}function Zy(e){const n=t.join(e.path,".git","REBASE_HEAD");return k(n)}async function $y(e){if(!await Zy(e))return null;let n=null,r=null,s=null;try{n=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","orig-head"),"utf8"),n=n.trim(),r=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","head-name"),"utf8"),r.startsWith("refs/heads/")&&(r=r.substring(11).trim()),s=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","onto"),"utf8"),s=s.trim()}catch{}return null!=n&&null!=r&&null!=s?{originalBranchTip:n,targetBranch:r,baseBranchTip:s}:null}async function Wy(e){if(!await Zy(e))return null;let n=-1,r=-1,s=null,i=null;try{const o=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","msgnum"),"utf8");n=parseInt(o,10),isNaN(n)&&(log.warn(`[getCurrentProgress] found '${o}' in .git/rebase-merge/msgnum which could not be parsed to a valid number`),n=-1);const a=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","end"),"utf8");r=parseInt(a,10),isNaN(r)&&(log.warn(`[getCurrentProgress] found '${a}' in .git/rebase-merge/last which could not be parsed to a valid number`),r=-1),s=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","orig-head"),"utf8"),s=s.trim(),i=await(0,w.readFile)(t.join(e.path,".git","rebase-merge","onto"),"utf8"),i=i.trim()}catch{}if(n>0&&r>0&&null!==s&&null!==i){const t=Hy(n/r),o=await yy(e,i,s);if(null===o||0===o.length)return null;const a=n-1;return{progress:{kind:"multiCommitOperation",value:t,position:n,totalCommitCount:r,currentCommitSummary:o.length>0&&a>=0&&a<o.length?o[a].summary:""},commits:o}}return null}!function(e){e[e.NotAvailable=0]="NotAvailable",e[e.Available=1]="Available",e[e.Recommended=2]="Recommended"}(Ly||(Ly={})),function(e){e.CompletedWithoutError="CompletedWithoutError",e.AlreadyUpToDate="AlreadyUpToDate",e.ConflictsEncountered="ConflictsEncountered",e.OutstandingFilesNotStaged="OutstandingFilesNotStaged",e.Aborted="Aborted",e.Error="Error"}(By||(By={}));const Vy=/^Rebasing \((\d+)\/(\d+)\)$/;class qy{commits;constructor(e){this.commits=e}parse(e){const t=Vy.exec(e);if(null===t||3!==t.length)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);if(isNaN(n)||isNaN(r))return null;const s=this.commits[n-1]?.summary??"";return{kind:"multiCommitOperation",value:Hy(n/r),position:n,totalCommitCount:r,currentCommitSummary:s}}}function Gy(e,t){if(void 0===t)return e;const{commits:n,progressCallback:r}=t;return Zp(e,{processCallback:e=>{if(null===e.stderr)return;const t=new qy(n);Og()(e.stderr).on("data",(e=>{const n=t.parse(e);null!=n&&r(n)}))}})}function zy(e){if(0===e.exitCode)return e.stdout.trim().match(/^Current branch [^ ]+ is up to date.$/i)?By.AlreadyUpToDate:By.CompletedWithoutError;if(e.gitError===ad.GitError.RebaseConflicts)return By.ConflictsEncountered;if(e.gitError===ad.GitError.UnresolvedConflicts)return By.OutstandingFilesNotStaged;throw new Error(`Unhandled result found: '${JSON.stringify(e)}'`)}async function jy(e,t,n,r="Interactive rebase",s=":",i,o){const a={expectedErrors:new Set([ad.GitError.RebaseConflicts]),env:{GIT_SEQUENCE_EDITOR:void 0,GIT_EDITOR:s}};let l=a;if(void 0!==i){if(void 0===o)return log.warn("Unable to interactively rebase if no commits"),By.Error;l=Gy(a,{commits:o,progressCallback:i})}const c=null==n?"--root":n;return zy(await zd(["-c",`sequence.editor=cat "${t}" >`,"rebase","-i",c],e.path,r,l))}var Ky;!function(e){e.CompletedWithoutError="CompletedWithoutError",e.ConflictsEncountered="ConflictsEncountered",e.OutstandingFilesNotStaged="OutstandingFilesNotStaged",e.UnableToStart="UnableToStart",e.Error="Error"}(Ky||(Ky={}));class Yy{commits;count;constructor(e,t=0){this.commits=e,this.count=t}parse(e){return null===/^\[(.*\s.*)\]/.exec(e)?null:(this.count++,{kind:"multiCommitOperation",value:Hg(this.count/this.commits.length,2),position:this.count,totalCommitCount:this.commits.length,currentCommitSummary:this.commits[this.count-1]?.summary??""})}}function Xy(e,t,n,r=0){return Zp(e,{processCallback:e=>{if(null===e.stdout)return;const s=new Yy(t,r);Og()(e.stdout).on("data",(e=>{const t=s.parse(e);null!=t&&n(t)}))}})}function Qy(e){if(0===e.exitCode)return Ky.CompletedWithoutError;switch(e.gitError){case ad.GitError.ConflictModifyDeletedInBranch:case ad.GitError.MergeConflicts:return Ky.ConflictsEncountered;case ad.GitError.UnresolvedConflicts:return Ky.OutstandingFilesNotStaged;default:throw new Error(`Unhandled result found: '${JSON.stringify(e)}'`)}}async function Jy(e){if(!tw(e))return null;let n="",r="";const s=[];try{if(n=(await(0,w.readFile)(t.join(e.path,".git","sequencer","abort-safety"),"utf8")).trim(),""===n)return null;if(r=(await(0,w.readFile)(t.join(e.path,".git","sequencer","head"),"utf8")).trim(),""===r)return null;const i=(await(0,w.readFile)(t.join(e.path,".git","sequencer","todo"),"utf8")).trim();if(""===i)return null;if(i.split("\n").forEach((e=>{if((e=e.replace(/^pick /,"")).trim().includes(" ")){const t=e.substr(0,e.indexOf(" ")),n={sha:t,summary:e.substr(t.length+1)};s.push(n)}})),0===s.length)return null}catch{if(!tw(e))return null;const n=(await(0,w.readFile)(t.join(e.path,".git","CHERRY_PICK_HEAD"),"utf8")).trim(),s=await Lf(e,n);return null===s?null:{progress:{kind:"multiCommitOperation",value:1,position:1,totalCommitCount:1,currentCommitSummary:s.summary},remainingCommits:[],commits:[{sha:s.sha,summary:s.summary}],targetBranchUndoSha:r,cherryPickedCount:0}}const i=n!==r?await wy(e,my(r,n)):[];if(null===i)return null;const o=[...i,...s],a=i.length+1;return{progress:{kind:"multiCommitOperation",value:Hg(a/o.length,2),position:a,totalCommitCount:o.length,currentCommitSummary:s[0].summary??""},remainingCommits:s,commits:o,targetBranchUndoSha:r,cherryPickedCount:i.length}}async function ew(e){await zd(["cherry-pick","--abort"],e.path,"abortCherryPick")}async function tw(e){try{const n=t.join(e.path,".git","CHERRY_PICK_HEAD");return k(n)}catch(e){return log.warn("[cherryPick] a problem was encountered reading .git/CHERRY_PICK_HEAD,\n so it is unsafe to continue cherry-picking",e),!1}}function nw(e,t,n,r){if("ordinary"===t.kind)switch(t.type){case"added":return{kind:Wu.New,submoduleStatus:t.submoduleStatus};case"modified":return{kind:Wu.Modified,submoduleStatus:t.submoduleStatus};case"deleted":return{kind:Wu.Deleted,submoduleStatus:t.submoduleStatus}}else{if("copied"===t.kind&&null!=r)return{kind:Wu.Copied,oldPath:r,submoduleStatus:t.submoduleStatus,renameIncludesModifications:!1};if("renamed"===t.kind&&null!=r)return{kind:Wu.Renamed,oldPath:r,submoduleStatus:t.submoduleStatus,renameIncludesModifications:t.workingTree===$u.Modified||void 0!==t.renameOrCopyScore&&t.renameOrCopyScore<100};if("untracked"===t.kind)return{kind:Wu.Untracked,submoduleStatus:t.submoduleStatus};if("conflicted"===t.kind)return function(e,t,n){switch(e.action){case Vu.BothAdded:case Vu.BothModified:return n.binaryFilePaths.includes(t)?{kind:Wu.Conflicted,entry:e}:{kind:Wu.Conflicted,entry:e,conflictMarkerCount:n.conflictCountsByPath.get(t)||0};default:return{kind:Wu.Conflicted,entry:e}}}(t,e,n)}return ot(`Unknown file status ${status}`)}const rw=["DD","AU","UD","UA","DU","AA","UU"];async function sw(e,n=!0,r=!1){const s=["--no-optional-locks","status",...n?["--untracked-files=all"]:[],"--branch","--porcelain=2","-z"],{stdout:i,exitCode:o}=await zd(s,e.path,"getStatus",{successExitCodes:new Set(r?[0]:[0,128]),encoding:"buffer"});if(128===o)return log.debug(`'git status' returned 128 for '${e.path}' and is likely missing its .git directory`),null;const a=function(e){const t=new Array,n=Df(e,"\0");for(let e=0;e<n.length;e++){const r=n[e].toString();if(r.startsWith("# ")&&r.length>2){t.push({kind:"header",value:r.substring(2)});continue}const s=r.substring(0,1);s===Ry?t.push(My(r)):s===Ay?t.push(Iy(r,n[++e].toString())):s===Ty?t.push(Fy(r)):s===xy&&t.push(Ny(r))}return t}(i),l=a.filter(Ey),c=a.filter(ky),u=await async function(e){const n=t.join(e.path,".git","MERGE_HEAD");return await k(n)}(e),h=c.filter((e=>rw.includes(e.statusCode))),p=await $y(e),d=await async function(e,t,n,r){try{if(t)return await async function(e,t){return{conflictCountsByPath:await Sy(e.path),binaryFilePaths:await rg(e,"MERGE_HEAD",t)}}(e,n);if(null!==r)return await async function(e,t){return{conflictCountsByPath:await Sy(e.path),binaryFilePaths:await rg(e,"REBASE_HEAD",t)}}(e,n);if(n.length>0)return await async function(e,t){const n=await Sy(e.path);let r=[];try{r=await rg(e,"HEAD",t)}catch(e){}return{conflictCountsByPath:n,binaryFilePaths:r}}(e,n)}catch(e){log.error("Unexpected error from git operations in getConflictDetails",e)}return{conflictCountsByPath:new Map,binaryFilePaths:new Array}}(e,u,h,p),m=c.reduce(((e,t)=>function(e,t,n){const r=function(e,t,n){const r=function(e){if(e.startsWith("S"))return{commitChanged:"C"===e[1],modifiedChanges:"M"===e[2],untrackedChanges:"U"===e[3]}}(t);return"??"===e?{kind:"untracked",submoduleStatus:r}:".M"===e?{kind:"ordinary",type:"modified",index:$u.Unchanged,workingTree:$u.Modified,submoduleStatus:r}:"M."===e?{kind:"ordinary",type:"modified",index:$u.Modified,workingTree:$u.Unchanged,submoduleStatus:r}:".A"===e?{kind:"ordinary",type:"added",index:$u.Unchanged,workingTree:$u.Added,submoduleStatus:r}:"A."===e?{kind:"ordinary",type:"added",index:$u.Added,workingTree:$u.Unchanged,submoduleStatus:r}:".D"===e?{kind:"ordinary",type:"deleted",index:$u.Unchanged,workingTree:$u.Deleted,submoduleStatus:r}:"D."===e?{kind:"ordinary",type:"deleted",index:$u.Deleted,workingTree:$u.Unchanged,submoduleStatus:r}:"R."===e?{kind:"renamed",index:$u.Renamed,workingTree:$u.Unchanged,renameOrCopyScore:n,submoduleStatus:r}:".R"===e?{kind:"renamed",index:$u.Unchanged,workingTree:$u.Renamed,renameOrCopyScore:n,submoduleStatus:r}:"C."===e?{kind:"copied",index:$u.Copied,workingTree:$u.Unchanged,submoduleStatus:r}:".C"===e?{kind:"copied",index:$u.Unchanged,workingTree:$u.Copied,submoduleStatus:r}:"AD"===e?{kind:"ordinary",type:"added",index:$u.Added,workingTree:$u.Deleted,submoduleStatus:r}:"AM"===e?{kind:"ordinary",type:"added",index:$u.Added,workingTree:$u.Modified,submoduleStatus:r}:"RM"===e?{kind:"renamed",index:$u.Renamed,workingTree:$u.Modified,renameOrCopyScore:n,submoduleStatus:r}:"RD"===e?{kind:"renamed",index:$u.Renamed,workingTree:$u.Deleted,renameOrCopyScore:n,submoduleStatus:r}:"DD"===e?{kind:"conflicted",action:Vu.BothDeleted,us:$u.Deleted,them:$u.Deleted,submoduleStatus:r}:"AU"===e?{kind:"conflicted",action:Vu.AddedByUs,us:$u.Added,them:$u.UpdatedButUnmerged,submoduleStatus:r}:"UD"===e?{kind:"conflicted",action:Vu.DeletedByThem,us:$u.UpdatedButUnmerged,them:$u.Deleted,submoduleStatus:r}:"UA"===e?{kind:"conflicted",action:Vu.AddedByThem,us:$u.UpdatedButUnmerged,them:$u.Added,submoduleStatus:r}:"DU"===e?{kind:"conflicted",action:Vu.DeletedByUs,us:$u.Deleted,them:$u.UpdatedButUnmerged,submoduleStatus:r}:"AA"===e?{kind:"conflicted",action:Vu.BothAdded,us:$u.Added,them:$u.Added,submoduleStatus:r}:"UU"===e?{kind:"conflicted",action:Vu.BothModified,us:$u.UpdatedButUnmerged,them:$u.UpdatedButUnmerged,submoduleStatus:r}:{kind:"ordinary",type:"modified",submoduleStatus:r}}(t.statusCode,t.submoduleStatusCode,t.renameOrCopyScore);if("ordinary"===r.kind&&r.index===$u.Added&&r.workingTree===$u.Deleted)return e;"untracked"===r.kind&&e.delete(t.path);const s=nw(t.path,r,n,t.oldPath),i=s.kind!==Wu.Modified||void 0===s.submoduleStatus||s.submoduleStatus.commitChanged?Hu.All:Hu.None,o=ju.fromInitialSelection(i);return e.set(t.path,new nh(t.path,s,o)),e}(e,t,d)),new Map),{currentBranch:f,currentUpstreamBranch:g,currentTip:y,branchAheadBehind:w}=l.reduce(iw,{currentBranch:void 0,currentUpstreamBranch:void 0,currentTip:void 0,branchAheadBehind:void 0,match:null}),b=sh.fromFiles([...m.values()]),C=await tw(e),v=await async function(e){const n=t.join(e.path,".git","SQUASH_MSG");return await k(n)}(e);return{currentBranch:f,currentTip:y,currentUpstreamBranch:g,branchAheadBehind:w,exists:!0,mergeHeadFound:u,rebaseInternalState:p,workingDirectory:b,isCherryPickingHeadFound:C,squashMsgFound:v,doConflictedFilesExist:h.length>0}}function iw(e,t){let{currentBranch:n,currentUpstreamBranch:r,currentTip:s,branchAheadBehind:i,match:o}=e;const a=t.value;if(o=a.match(/^branch\.oid ([a-f0-9]+)$/))s=o[1];else if(o=a.match(/^branch.head (.*)/))"(detached)"!==o[1]&&(n=o[1]);else if(o=a.match(/^branch.upstream (.*)/))r=o[1];else if(o=a.match(/^branch.ab \+(\d+) -(\d+)$/)){const e=parseInt(o[1],10),t=parseInt(o[2],10);isNaN(e)||isNaN(t)||(i={ahead:e,behind:t})}return{currentBranch:n,currentUpstreamBranch:r,currentTip:s,branchAheadBehind:i,match:o}}async function ow(e){const t=await zd(["var","GIT_AUTHOR_IDENT"],e.path,"getAuthorIdentity",{successExitCodes:new Set([0,128])});if(128===t.exitCode)return null;try{return xf.parseIdentity(t.stdout)}catch(e){return null}}const aw=[{title:"",weight:0}];class lw extends Sg{constructor(){super(aw)}}class cw{sha;path;describe;constructor(e,t,n){this.sha=e,this.path=t,this.describe=n}}async function uw(e){const n=t.join(e.path,".gitignore");return new Promise(((e,t)=>{r.readFile(n,"utf8",((n,r)=>{n?"ENOENT"===n.code?e(null):t(n):e(r)}))}))}async function hw(e,n){const s=t.join(e.path,".gitignore");if(""===n)return new Promise(((e,t)=>{r.unlink(s,(n=>{n?t(n):e()}))}));const i=await mw(n,e);await(0,w.writeFile)(s,i)}async function pw(e,t){const n=await uw(e)||"",r=await mw(n,e),s=t instanceof Array?t.join("\n"):t,i=await mw(`${r}${s}`,e);await hw(e,i)}function dw(e){return e.replaceAll(/[\[\]!\*\#\?]/g,(e=>"\\"+e))}async function mw(e,t){const n=await em(t,"core.autocrlf"),r=await em(t,"core.safecrlf");return new Promise(((t,s)=>{"true"!==n||"true"!==r?""===e||e.endsWith("\n")?t(e):t(null==n||"true"===n?`${e}\n`:`${e}\r\n`):t(e.replace(/\r\n|\n\r|\n|\r/g,"\r\n")+"\r\n")}))}async function fw(e,t){const n=["lfs","install"];t&&n.push("--force"),await zd(n,e.path,"installLFSHooks")}async function gw(e,t){const{stdout:n}=await zd(["check-attr","filter",t],e.path,"checkAttrForLFS");return null!==/: filter: lfs/.exec(n)}function yw(e){switch(e.kind){case Wu.New:case Wu.Untracked:return"New";case Wu.Modified:return"Modified";case Wu.Deleted:return"Deleted";case Wu.Renamed:return"Renamed";case Wu.Conflicted:return Ju(e)?e.conflictMarkerCount>0?"Conflicted":"Resolved":"Conflicted";case Wu.Copied:return"Copied";default:return at(0,`Unknown file status ${e}`)}}function ww(e){return e.kind===Wu.Conflicted}function bw(e){return e.files.some((e=>ww(e.status)))}function Cw(e,t){return void 0===t&&(!Ju(e)||e.conflictMarkerCount>0)}function vw(e,t){const n=t?` from ${t}`:"";switch(e){case $u.Added:return`Using the added file${n}`;case $u.UpdatedButUnmerged:return`Using the modified file${n}`;case $u.Deleted:return`Using the deleted file${n}`;default:return at(0,"Unknown status entry to format")}}function Sw(e,t){const n=t?` from ${t}`:"";switch(e){case $u.Added:return`Use the added file${n}`;case $u.UpdatedButUnmerged:return`Use the modified file${n}`;case $u.Deleted:return"Do not include this file"+(t?` on ${t}`:"");default:return at(0,"Unknown status entry to format")}}function Ew(e,t){return e.files.filter((e=>Qu(e.status)&&!Cw(e.status,t.get(e.path))))}function kw(e,t){return e.files.filter((e=>Qu(e.status)&&Cw(e.status,t.get(e.path))))}function Rw(e,{defaultBranch:t,upstreamDefaultBranch:n}){return Yr(e)?n??t:t}class Aw{_state;constructor(e=new Map){this._state=e}get state(){return new Map(this._state)}updateMenuItem(e,t){const n=this._state.get(e)||{};this._state.set(e,Zp(n,t))}enable(e){return this.updateMenuItem(e,{enabled:!0}),this}disable(e){return this.updateMenuItem(e,{enabled:!1}),this}setEnabled(e,t){return this.updateMenuItem(e,{enabled:t}),this}merge(e){const t=new Map(this._state);for(const[n,r]of e._state)t.set(n,r);return new Aw(t)}}function Tw(e,t){return void 0===e.enabled||"separator"===t.type||t.enabled===e.enabled}const xw=["rename-branch","delete-branch","discard-all-changes","stash-all-changes","preferences","update-branch-with-contribution-target-branch","compare-to-branch","merge-branch","rebase-branch","view-repository-on-github","compare-on-github","branch-on-github","open-in-shell","push","pull","branch","repository","go-to-commit-message","create-branch","show-changes","show-history","show-repository-list","show-branches-list","open-working-directory","show-repository-settings","open-external-editor","remove-repository","new-repository","add-local-repository","clone-repository","about","create-pull-request","preview-pull-request","squash-and-merge-branch"];function Dw(e){return e.currentPopup?function(){const e=new Aw;for(const t of xw)e.disable(t);return e}().state:function(){const e=new Aw;for(const t of xw)e.enable(t);return e}().merge(function(e){const t=e.selectedState,n=!(!t||!(r=t.repository)||r instanceof cs||!r.gitHubRepository||null===r.gitHubRepository.htmlURL);var r;let s=!1,i=!1,o=!1,a=!1,l=!1,c=!1,u=!1,h=!1,p=!1,d=!1,m=!1,f=!1,g=!1,y=!1;const w=null!==t&&t.repository instanceof Kr&&function(e){if(Yr(e)){const t=e.gitHubRepository;return t.parent?!1!==t.parent.issuesEnabled&&!0!==t.parent.isArchived:!1!==t.issuesEnabled&&!0!==t.isArchived}return!1}(t.repository);if(t&&t.type===Xe.Repository){s=!0;const{branchesState:e,changesState:n}=t.state,r=e.tip,w=e.defaultBranch;o=r.kind===zr.Valid,a=r.kind===zr.Detached,p=r.kind===zr.Unknown,d=r.kind===zr.Unborn;const b=Rw(t.repository,e);y=null!==b,g=r.kind===zr.Valid&&b?.name===r.branch.name,r.kind===zr.Valid?(i=null===w||r.branch.name!==w.name,u=!!r.branch.upstream,f=null!==n.stashEntry):i=!0,h=t.state.isPushPullFetchInProgress;const{conflictState:C,workingDirectory:v}=t.state.changesState;m=null!==C&&"rebase"===C.kind,c=null!==n.conflictState||bw(v),l=v.files.length>0}const b=["branch","repository","remove-repository","open-in-shell","open-working-directory","show-repository-settings","go-to-commit-message","show-changes","show-history","show-branches-list","open-external-editor","compare-to-branch","toggle-changes-filter"],C=new Aw,v="hidden"!==e.windowState,S=e.showWelcomeFlow,E=v&&s&&!S;if(E){for(const e of b)C.enable(e);C.setEnabled("rename-branch",(i||!u)&&!d&&!a),C.setEnabled("delete-branch",i&&!d&&!a),C.setEnabled("update-branch-with-contribution-target-branch",o&&y&&!g),C.setEnabled("merge-branch",o),C.setEnabled("squash-and-merge-branch",o),C.setEnabled("rebase-branch",o),C.setEnabled("compare-on-github",n&&u),C.setEnabled("branch-on-github",n&&u),C.setEnabled("view-repository-on-github",n),C.setEnabled("create-issue-in-repository-on-github",w),C.setEnabled("create-pull-request",n&&!d&&!a),C.setEnabled("preview-pull-request",!d&&!a&&n),C.setEnabled("push",!d&&!a&&!h),C.setEnabled("pull",u&&!h),C.setEnabled("create-branch",!p&&!d&&!m),C.setEnabled("discard-all-changes",E&&l&&!m),C.setEnabled("stash-all-changes",l&&o&&!m&&!c),C.setEnabled("compare-to-branch",!a),C.setEnabled("toggle-stashed-changes",f),t&&t.type===Xe.MissingRepository&&C.disable("open-external-editor")}else{for(const e of b)C.disable(e);C.disable("view-repository-on-github"),C.disable("create-pull-request"),C.disable("preview-pull-request"),t&&t.type===Xe.MissingRepository&&(t.repository.gitHubRepository&&C.enable("view-repository-on-github"),C.enable("remove-repository")),C.disable("create-branch"),C.disable("rename-branch"),C.disable("delete-branch"),C.disable("discard-all-changes"),C.disable("stash-all-changes"),C.disable("update-branch-with-contribution-target-branch"),C.disable("merge-branch"),C.disable("squash-and-merge-branch"),C.disable("rebase-branch"),C.disable("push"),C.disable("pull"),C.disable("compare-to-branch"),C.disable("compare-on-github"),C.disable("branch-on-github"),C.disable("toggle-stashed-changes")}return C}(e)).merge(function(e){const t=new Aw,n=e.resizablePaneActive;return t.setEnabled("increase-active-resizable-width",n),t.setEnabled("decrease-active-resizable-width",n),t}(e)).merge(function(e){const t=["new-repository","add-local-repository","clone-repository","preferences","about"],n=new Aw;if(e)for(const e of t)n.disable(e);else for(const e of t)n.enable(e);return n}(e.showWelcomeFlow)).merge(function(e){const t=["show-repository-list"],n=new Aw;if(0===e.repositories.length)for(const e of t)n.disable(e);return n}(e)).state}var Mw;!function(e){e.Terminal="Terminal",e.Hyper="Hyper",e.iTerm2="iTerm2",e.PowerShellCore="PowerShell Core",e.Kitty="Kitty",e.Alacritty="Alacritty",e.Tabby="Tabby",e.WezTerm="WezTerm",e.Warp="Warp",e.Ghostty="Ghostty"}(Mw||(Mw={})),Mw.Terminal;const Pw=()=>(()=>{{const e=process.env.SystemRoot||"C:\\Windows",n=t.join(e,"System32","where.exe");return v(n,["git"],{cwd:e})}})().then((({stdout:e})=>e.split(/\r?\n/,1)[0])).catch((e=>{log.warn("Failed trying to find Git on PATH",e)}));var Iw;!function(e){e.Cmd="命令行",e.PowerShell="PowerShell",e.PowerShellCore="PowerShell Core",e.Hyper="Hyper",e.GitBash="Git Bash",e.Cygwin="Cygwin",e.WSL="WSL",e.WindowsTerminal="Windows Terminal",e.FluentTerminal="Fluent Terminal",e.Alacritty="Alacritty"}(Iw||(Iw={}));const _w=Iw.Cmd;var Fw;!function(e){e.Gnome="GNOME Terminal",e.GnomeConsole="GNOME Console",e.Ptyxis="Ptyxis",e.Mate="MATE Terminal",e.Tilix="Tilix",e.Terminator="Terminator",e.Urxvt="URxvt",e.Konsole="Konsole",e.Xterm="XTerm",e.Terminology="Terminology",e.Deepin="Deepin Terminal",e.Elementary="Elementary Terminal",e.XFCE="XFCE Terminal",e.Alacritty="Alacritty",e.Kitty="Kitty",e.LXTerminal="LXDE Terminal",e.Warp="Warp",e.Ghostty="Ghostty"}(Fw||(Fw={})),Fw.Gnome;class Nw extends Error{}const Ow=_w;let Lw=null;function Bw(e){return function(e){return Gt(Iw,e)??_w}(e)}async function Hw(){return Lw||(Lw=await async function(){const e=await Pw(),n=`"${process.env.WINDIR||"C:\\Windows"}\\system32\\doskey.exe git=^"${e}^" $*"`,r=[{shell:Iw.Cmd,path:process.env.comspec||"C:\\Windows\\System32\\cmd.exe",extraArgs:e?["/K",n]:[]}],s=await async function(){const e=(0,Am.enumerateValues)(Am.HKEY.HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\PowerShell.exe");if(0===e.length)return null;const t=e[0];if(t.type===Am.RegistryValueType.REG_EXPAND_SZ||t.type===Am.RegistryValueType.REG_SZ){const e=t.data.replace(/^%SystemRoot%/i,process.env.SystemRoot||"C:\\Windows");if(await k(e))return e;log.debug(`[PowerShell] registry entry found but does not exist at '${e}'`)}return null}();null!=s&&r.push({shell:Iw.PowerShell,path:s});const i=await async function(){const e=(0,Am.enumerateValues)(Am.HKEY.HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\pwsh.exe");if(0===e.length)return null;const t=e[0];if(t.type===Am.RegistryValueType.REG_SZ){const e=t.data;if(await k(e))return e;log.debug(`[PowerShellCore] registry entry found but does not exist at '${e}'`)}return null}();null!=i&&r.push({shell:Iw.PowerShellCore,path:i});const o=await async function(){const e=(0,Am.enumerateValues)(Am.HKEY.HKEY_CURRENT_USER,"Software\\Classes\\Directory\\Background\\shell\\Hyper\\command");if(0===e.length)return null;const t=e[0];if(t.type===Am.RegistryValueType.REG_SZ){const e=t.data.match(/(["'])(.*?)\1/),n=process.env.LocalAppData,r=e?e[2]:null!=n?n.concat("\\hyper\\Hyper.exe"):null;if(null==r)log.debug("[Hyper] LOCALAPPDATA environment variable is unset, aborting fallback behavior");else{if(await k(r))return r;log.debug(`[Hyper] registry entry found but does not exist at '${r}'`)}}return null}();null!=o&&r.push({shell:Iw.Hyper,path:o});const a=await async function(){const e=(0,Am.enumerateValues)(Am.HKEY.HKEY_LOCAL_MACHINE,"SOFTWARE\\GitForWindows");if(0===e.length)return null;const n=e.find((e=>"InstallPath"===e.name));if(n&&n.type===Am.RegistryValueType.REG_SZ){const e=t.join(n.data,"git-bash.exe");if(await k(e))return e;log.debug(`[Git Bash] registry entry found but does not exist at '${e}'`)}return null}();null!=a&&r.push({shell:Iw.GitBash,path:a});const l=await async function(){const e=(0,Am.enumerateValues)(Am.HKEY.HKEY_LOCAL_MACHINE,"SOFTWARE\\Cygwin\\setup"),n=(0,Am.enumerateValues)(Am.HKEY.HKEY_LOCAL_MACHINE,"SOFTWARE\\WOW6432Node\\Cygwin\\setup");if(null==e||null==n)return null;const r=e.find((e=>"rootdir"===e.name)),s=n.find((e=>"rootdir"===e.name));if(r&&r.type===Am.RegistryValueType.REG_SZ){const e=t.join(r.data,"bin\\mintty.exe");if(await k(e))return e;if(s&&s.type===Am.RegistryValueType.REG_SZ){const e=t.join(s.data,"bin\\mintty.exe");if(await k(e))return e}else log.debug(`[Cygwin] registry entry found but does not exist at '${e}'`)}return null}();if(null!=l&&r.push({shell:Iw.Cygwin,path:l}),on()){const e=await async function(){const e=t.join(process.env.SystemRoot||"C:\\Windows","System32"),n=t.join(e,"wsl.exe"),r=t.join(e,"wslconfig.exe");if(!await k(n))return log.debug(`[WSL] wsl.exe does not exist at '${n}'`),null;if(!await k(r))return log.debug(`[WSL] found wsl.exe, but wslconfig.exe does not exist at '${r}'`),null;const s=new Promise(((e,t)=>{const n=(0,b.spawn)(r,["/list"]);n.on("error",t),n.on("exit",e)}));try{const e=await s;return 0!==e?(log.debug(`[WSL] found wsl.exe and wslconfig.exe, but no distros are installed. Error Code: ${e}`),null):n}catch(e){log.error("[WSL] unhandled error when invoking 'wsl /list'",e)}return null}();null!=e&&r.push({shell:Iw.WSL,path:e})}const c=await async function(){const e=(0,Am.enumerateValues)(Am.HKEY.HKEY_CLASSES_ROOT,"Directory\\Background\\shell\\Open Alacritty here");if(0===e.length)return null;const t=e.find((e=>"Icon"===e.name));if(t&&t.type===Am.RegistryValueType.REG_SZ){const e=t.data;if(await k(e))return e;log.debug(`[Alacritty] registry entry found but does not exist at '${e}'`)}return null}();null!=c&&r.push({shell:Iw.Alacritty,path:c});const u=await async function(){const e=process.env.LocalAppData;if(null!=e){const n=t.join(e,"\\Microsoft\\WindowsApps\\wt.exe");if(await k(n))return n;log.debug(`[Windows Terminal] wt.exe doest not exist at '${n}'`)}return null}();null!=u&&r.push({shell:Iw.WindowsTerminal,path:u});const h=await async function(){const e=process.env.LocalAppData;if(null!=e){const n=t.join(e,"\\Microsoft\\WindowsApps\\flute.exe");if(await k(n))return n;log.debug(`[Fluent Terminal] flute.exe doest not exist at '${n}'`)}return null}();return null!=h&&r.push({shell:Iw.FluentTerminal,path:h}),r}(),Lw)}async function Uw(e,t,n){if(!await k(e.path)){const t="选项";throw new Nw(`Could not find executable for custom shell at path '${e.path}'. Please open ${t} and select an available shell.`)}let r=null;return r=function(e,t){log.info(`launching custom shell at path: ${e.path}`);const n=jm(zm(e.arguments),t);return((e,t,n)=>(0,b.spawn)(e,t,{stdio:"ignore",detached:!0,...n}))(`"${e.path}"`,n,{shell:!0,cwd:t})}(e,t),null!=r?(Zw("Custom Shell",r,n),Promise.resolve()):Promise.reject("Platform not currently supported for launching shells: win32")}function Zw(e,t,n){null!==t.stderr&&t.stderr.on("data",(t=>{const n=t instanceof Buffer?t.toString():t;log.debug(`[${e}] stderr: '${n}'`)})),t.on("error",(t=>{log.debug(`[${e}] an error was encountered`,t),n(t)})),t.on("exit",(t=>{0!==t&&log.debug(`[${e}] exit code: ${t}`)}))}function $w(e,t){return Promise.all([e(),Ww(t)]).then((e=>e[0]))}async function Ww(e){return new Promise((t=>window.setTimeout(t,e)))}const Vw=36e5;class qw{repository;accountsStore;fetch;shouldPerformFetch;timeoutHandle=null;stopped=!1;constructor(e,t,n,r){this.repository=e,this.accountsStore=t,this.fetch=n,this.shouldPerformFetch=r}start(e){this.stopped&&ot("Cannot start a background fetcher that has been stopped.");const t=this.repository.gitHubRepository;t&&(e?this.timeoutHandle=window.setTimeout((()=>this.performAndScheduleFetch(t)),zw()):this.performAndScheduleFetch(t))}stop(){this.stopped=!0;const e=this.timeoutHandle;e&&(window.clearTimeout(e),this.timeoutHandle=null)}async performAndScheduleFetch(e){if(this.stopped)return;const t=await this.shouldPerformFetch(this.repository);if(this.stopped)return;if(t)try{await this.fetch(this.repository)}catch(e){const t=this.repository.gitHubRepository,n=null!==t?t.fullName:this.repository.name;log.error(`Error performing periodic fetch for '${n}'`,e)}if(this.stopped)return;const n=await this.getFetchInterval(e);this.stopped||(this.timeoutHandle=window.setTimeout((()=>this.performAndScheduleFetch(e)),n))}async getFetchInterval(e){const t=lr(await this.accountsStore.getAll(),e.endpoint);let n=Vw;if(t){const r=rr.fromAccount(t);try{const t=await r.getFetchPollInterval(e.owner.login,e.name);n=t?Math.max(t,3e5):Vw}catch(e){log.error("Error fetching poll interval",e)}}return n+zw()}}let Gw=null;function zw(){if(null!==Gw)return Gw;const e=Math.ceil(3e4*Math.random());return Gw=e,e}function jw(e){return Ft(__dirname,"emoji",e)}function Kw(e){const t=e.toString(16);return t.length>=4?t:("0000"+t).substring(t.length)}const Yw={summary:"",description:"",timestamp:0};async function Xw(){return new Promise(((e,t)=>{requestAnimationFrame(e)}))}class Qw extends Error{repository;existingRemote;constructor(e,t){super(`The remote '${t.name}' 已存在`),this.repository=e,this.existingRemote=t}}const Jw="upstream";function eb(e,t){const n=t.find((e=>e.name===Jw));return n&&Sr(e,n)?n:null}function tb(e){return"known"===e.kind}var nb;!function(e){e.NotLoaded="NotLoaded",e.Loading="Loading",e.Loaded="Loaded"}(nb||(nb={}));const rb=/!!GitHub_Desktop<(.+)>$/;async function sb(e){const{formatArgs:t,parse:n}=Mf({name:"%gD",stashSha:"%H",message:"%gs",tree:"%T",parents:"%P"}),r=await zd(["log","-g",...t,"refs/stash","--"],e.path,"getStashEntries",{successExitCodes:new Set([0,128])});if(128===r.exitCode)return{desktopEntries:[],stashEntryCount:0};const s=[],i={kind:nb.NotLoaded},o=n(r.stdout);for(const{name:e,message:t,stashSha:n,tree:r,parents:a}of o){const o=ub(t);null!==o&&s.push({name:e,stashSha:n,branchName:o,tree:r,parents:a.length>0?a.split(" "):[],files:i})}return{desktopEntries:s,stashEntryCount:o.length-1}}async function ib(e,t){const n=await sb(e),r="string"==typeof t?t:t.name;return n.desktopEntries.find((e=>e.branchName===r))||null}function ob(e){return`!!GitHub_Desktop<${e}>`}async function ab(e,t){return(await sb(e)).desktopEntries.find((e=>e.stashSha===t))||null}async function lb(e,t){const n=await ab(e,t);if(null!==n){const t=["stash","drop",n.name];await zd(t,e.path,"dropStashEntry")}}async function cb(e,t){const n=new Set([ad.GitError.MergeConflicts]),r=await ab(e,t);if(null!==r){const s=["stash","pop","--quiet",`${r.name}`];await zd(s,e.path,"popStashEntry",{expectedErrors:n}).catch((n=>n instanceof Gd&&1===n.result.exitCode&&0===n.result.stderr.length?(log.info(`[popStashEntry] a stash was popped successfully but exit code ${n.result.exitCode} reported.`),lb(e,t)):Promise.reject(n)))}}function ub(e){const t=rb.exec(e);return null===t||0===t[1].length?null:t[1]}function hb(e,t){0===t.length?pb(e):function(e,t){const n=JSON.stringify(t);localStorage.setItem(e,n)}(db(e),t)}function pb(e){localStorage.removeItem(db(e))}function db(e){return`tags-to-push-${e.id}`}const mb=100,fb="history";class gb extends Qp{repository;shell;statsStore;commitLookup=new Map;pullWithRebase;_history=[];requestsInFight=new Set;_tip={kind:zr.Unknown};_defaultBranch=null;_upstreamDefaultBranch=null;_localTags=null;_allBranches=[];_recentBranches=[];_localCommitSHAs=[];_commitMessage=Yw;_showCoAuthoredBy=!1;_coAuthors=[];_aheadBehind=null;_tagsToPush=[];_remotes=[];_defaultRemote=null;_currentRemote=null;_upstreamRemote=null;_lastFetched=null;_desktopStashEntries=new Map;_stashEntryCount=0;constructor(e,t,n){super(),this.repository=e,this.shell=t,this.statsStore=n,this._tagsToPush=function(e){return function(e){const t=localStorage.getItem(e)||"[]";try{const e=JSON.parse(t);return e instanceof Array?e.some((e=>"string"!=typeof e))?[]:e:[]}catch(e){return[]}}(db(e))}(e)}async reconcileHistory(e){if(0===this._history.length)return;if(this.requestsInFight.has(fb))return;this.requestsInFight.add(fb);const t=my("HEAD",e),n=await this.performFailableOperation((()=>Nf(this.repository,t,mb)));if(null==n)return;const r=this._history,s=r.findIndex((t=>t===e));if(s>-1){log.debug(`reconciling history - adding ${n.length} commits before merge base ${e.substring(0,8)}`);const t=r.slice(s);this._history=[...n.map((e=>e.sha)),...t]}this.storeCommits(n),this.requestsInFight.delete(fb),this.emitUpdate()}async loadCommitBatch(e,t){if(this.requestsInFight.has(fb))return null;const n=`history/compare/${e}/skip/${t}`;if(this.requestsInFight.has(n))return null;this.requestsInFight.add(n);const r=await this.performFailableOperation((()=>Nf(this.repository,e,mb,t)));return this.requestsInFight.delete(n),r?(this.storeCommits(r),r.map((e=>e.sha))):null}async refreshTags(){const e=this._localTags,t=await this.performFailableOperation((()=>async function(e){const t=(await zd(["show-ref","--tags","-d"],e.path,"getAllTags",{successExitCodes:new Set([0,1])})).stdout.split("\n").filter((e=>""!==e)).map((e=>{const[t,n]=e.split(" ");return[n.replace(/^refs\/tags\//,"").replace(/\^\{\}$/,""),t]}));return new Map(t)}(this.repository)));if(void 0!==t){this._localTags=t;for(const e of this._tagsToPush)this._localTags.has(e)||this.removeTagToPush(e);null!==e&&this.emitUpdatesForChangedTags(e,this._localTags)}}async emitUpdatesForChangedTags(e,t){const n=new Set;let r=0;for(const[r,s]of e){const e=t.get(r);e?e!==s&&(n.add(s),n.add(e)):n.add(s)}for(const[s,i]of t)e.has(s)||(n.add(i),r++);r>0&&this.statsStore.increment("tagsCreated",r);const s=[];for(const e of n){const t=await Lf(this.repository,e);null!==t&&s.push(t)}this.storeCommits(s)}async createBranch(e,t,n=!1){const r=await this.performFailableOperation((async()=>(await async function(e,t,n,r){const s=null!==n?["branch",t,n]:["branch",t];r&&s.push("--no-track"),await zd(s,e.path,"createBranch")}(this.repository,e,t,n),!0)));if(!0===r)return await this.loadBranches(),this.allBranches.find((t=>t.type===rd.Local&&t.name===e))}async createTag(e,t){const n=await this.performFailableOperation((async()=>(await async function(e,t,n){const r=["tag","-a","-m","",t,n];await zd(r,e.path,"createTag")}(this.repository,e,t),!0)));void 0!==n&&(await this.refreshTags(),this.addTagToPush(e),this.statsStore.increment("tagsCreatedInDesktop"))}async deleteTag(e){const t=await this.performFailableOperation((async()=>(await async function(e,t){const n=["tag","-d",t];await zd(n,e.path,"deleteTag")}(this.repository,e),!0)));void 0!==t&&(await this.refreshTags(),this.removeTagToPush(e),this.statsStore.increment("tagsDeleted"))}get history(){return this._history}get tagsToPush(){return this._tagsToPush}get localTags(){return this._localTags}async loadBranches(){const[e,t]=await Promise.all([this.performFailableOperation((()=>sy(this.repository)))||[],this.performFailableOperation((()=>async function(e){const t=new RegExp(/.*? (renamed|checkout)(?:: moving from|\s*) (?:refs\/heads\/|\s*)(.*?) to (?:refs\/heads\/|\s*)(.*?)$/i),n=await zd(["log","-g","--no-abbrev-commit","--pretty=oneline","HEAD","-n","2500","--"],e.path,"getRecentBranches",{successExitCodes:new Set([0,128])});if(128===n.exitCode)return[];const r=n.stdout.split("\n"),s=new Set,i=new Set;for(const e of r){const n=t.exec(e);if(n&&4===n.length){const e=n[1],t=n[2],r=n[3];"renamed"===e&&i.add(t),i.has(r)||s.add(r)}if(6===s.size)break}return[...s]}(this.repository)))]);e&&(this._allBranches=this.mergeRemoteAndLocalBranches(e),await this.refreshDefaultBranch(),this.refreshRecentBranches(t),await this.checkPullWithRebase(),this.emitUpdate())}mergeRemoteAndLocalBranches(e){const t=new Array,n=new Array;for(const r of e)r.type===rd.Local?t.push(r):r.type===rd.Remote&&n.push(r);const r=new Set,s=new Array;for(const e of t)s.push(e),e.upstream&&r.add(e.upstream);for(const e of n)r.has(e.name)||s.push(e);return s}async checkPullWithRebase(){const e=await em(this.repository,"pull.rebase");null===e||""===e?this.pullWithRebase=void 0:"true"===e?this.pullWithRebase=!0:"false"===e?this.pullWithRebase=!1:(log.warn(`Unexpected value found for pull.rebase in config: '${e}'`),this.pullWithRebase=void 0)}async refreshDefaultBranch(){if(this._defaultBranch=await async function(e,t,n){const r=ns(e)?Jw:n,s=r?await dy(e,r):null,i=s??await Qg(),o=s?`${r}/${s}`:void 0;let a,l,c;for(const e of t)e.type===rd.Local?(e.name===i&&(a=e),o&&e.upstream===o&&(l&&e.name!==i||(l=e))):o&&e.name===o&&(c=e);return l??a??c??null}(this.repository,this.allBranches,this.defaultRemote?.name),!Xr(this.repository)||es(this.repository)===this.repository.gitHubRepository)return void(this._upstreamDefaultBranch=null);const e=await dy(this.repository,Jw)??Qg();this._upstreamDefaultBranch=this._allBranches.find((t=>t.type===rd.Remote&&t.remoteName===Jw&&t.nameWithoutRemote===e))??null}addTagToPush(e){this._tagsToPush=[...this._tagsToPush,e],hb(this.repository,this._tagsToPush),this.emitUpdate()}removeTagToPush(e){this._tagsToPush=this._tagsToPush.filter((t=>t!==e)),hb(this.repository,this._tagsToPush),this.emitUpdate()}clearTagsToPush(){this._tagsToPush=[],hb(this.repository,this._tagsToPush),this.emitUpdate()}refreshRecentBranches(e){if(!e||!e.length)return void(this._recentBranches=[]);const t=new Map;for(const e of this._allBranches)e.type===rd.Local&&t.set(e.name,e);const n=new Array;for(const r of e){if(r===this.defaultBranch?.name)continue;const e=t.get(r);if(e&&(n.push(e),n.length>=5))break}this._recentBranches=n}get tip(){return this._tip}get defaultBranch(){return this._defaultBranch}get upstreamDefaultBranch(){return this._upstreamDefaultBranch}get allBranches(){return this._allBranches}get recentBranches(){return this._recentBranches}async loadLocalCommits(e){if(null===e)return void(this._localCommitSHAs=[]);let t;if(e.upstream){const n=my(e.upstream,e.name);t=await this.performFailableOperation((()=>Nf(this.repository,n,mb)))}else t=await this.performFailableOperation((()=>Nf(this.repository,"HEAD",mb,void 0,["--not","--remotes"])));t&&(this.storeCommits(t),this._localCommitSHAs=t.map((e=>e.sha)),this.emitUpdate())}get localCommitSHAs(){return this._localCommitSHAs}storeCommits(e){for(const t of e)this.commitLookup.set(t.sha,t)}async undoFirstCommit(e){const t=await this.performFailableOperation((()=>sw(this.repository)));if(null==t)throw new Error("Unable to undo commit because there are too many files in your repository's working directory.");const n=t.workingDirectory.files.filter((e=>e.status.kind===Wu.Deleted)),r=n.map((e=>e.path));return await async function(e,t){await zd(["checkout","HEAD","--",...t],e.path,"checkoutPaths")}(e,r),await dg(e,"HEAD","Reverting first commit"),await async function(e){await zd(["rm","--cached","-r","-f","."],e.path,"unstageAllFiles")}(e),!0}async undoCommit(e){void 0!==await this.performFailableOperation((()=>0===e.parentSHAs.length?this.undoFirstCommit(this.repository):Zf(this.repository,2,e.parentSHAs[0])))&&(await this.restoreCoAuthorsFromCommit(e)||(this._commitMessage={summary:e.summary,description:e.body,timestamp:Date.now()},this.emitUpdate()))}async prepareToAmendCommit(e){await this.restoreCoAuthorsFromCommit(e)||(this._commitMessage={summary:e.summary,description:e.body,timestamp:Date.now()},this.emitUpdate())}async restoreCoAuthorsFromCommit(e){if(this.repository.gitHubRepository)try{return await this.loadCommitAndCoAuthors(e),this.emitUpdate(),!0}catch(e){log.error("Failed to restore commit and co-authors, falling back",e)}return!1}async loadCommitAndCoAuthors(e){const t=this.repository,n=await ef(t,{summary:e.summary,description:e.body}),r=await async function(e,t){const n=await zd(["interpret-trailers","--parse"],e.path,"parseTrailers",{stdin:t});if(0===n.stdout.length)return[];const r=await pm(e);return um(n.stdout,r)}(t,n),s=r.filter(cm);if(0===s.length)return void(this._commitMessage={summary:e.summary,description:e.body,timestamp:Date.now()});const i=(await dm(t,n,[],!0)).split("\n");let o;const a=/^co-authored-by(.)\s(.*)/i,l=[];for(let e=i.length-1;e>=0;e--){const t=i[e],n=a.exec(t);if(!n)continue;if(o??=await pm(this.repository),-1===o.indexOf(n[1]))continue;const r=hm(t,n[1]);if(!r)continue;const c=s.findIndex((e=>e.value===r.value));-1!==c&&(l.unshift(s[c]),s.splice(c,1),i.splice(e,1))}i.splice(0,2);const c=i.join("\n").trim();this._commitMessage={summary:e.summary,description:c,timestamp:Date.now()};const u=l.map((e=>mm.parse(e.value))),h=new Array;for(let e=0;e<u.length;e++){const t=u[e];if(null===t)continue;const{name:n,email:r}=t,s=this.coAuthors.filter(tb).find((e=>e.name===n&&e.email===r&&null!==e.username));h.push(s||{kind:"known",name:n,email:r,username:null})}this._coAuthors=h,this._coAuthors.length>0&&!1===this._showCoAuthoredBy&&(this._showCoAuthoredBy=!0)}async performFailableOperation(e,t){try{return await e()}catch(e){return e=new mt(e,{repository:this.repository,...t}),void this.emitError(e)}}get commitMessage(){return this._commitMessage}get showCoAuthoredBy(){return this._showCoAuthoredBy}get coAuthors(){return this._coAuthors}async fetch(e,t){const n=new Map;if(null!==this.currentRemote&&n.set(this.currentRemote.name,this.currentRemote),null!==this.defaultRemote&&n.set(this.defaultRemote.name,this.defaultRemote),null!==this.upstreamRemote&&n.set(this.upstreamRemote.name,this.upstreamRemote),n.size>0&&await this.fetchRemotes([...n.values()],e,t),this.tip.kind===zr.Valid){const e=this.tip.branch;if(null!==e.upstreamRemoteName&&null!==e.upstream){const t=fy(e.name,e.upstream);this._aheadBehind=await gy(this.repository,t)}else this._aheadBehind=null}else this._aheadBehind=null;this.emitUpdate()}async fetchRemotes(e,t,n){if(!e.length)return;const r=1/e.length;for(let s=0;s<e.length;s++){const i=e[s],o=s*r;await this.fetchRemote(i,t,(e=>{e&&n&&n({...e,value:o+e.value*r})}))}}async fetchRemote(e,t,n){const r=this.repository,s={type:pt.Fetch,repository:r},i=await this.performFailableOperation((async()=>(await async function(e,t,n,r=!1){let s={successExitCodes:new Set([0]),env:await wg(t.url)};if(n){const e=`同步 ${t.name}`,i="fetch";s=await Vg({...s,trackLFSProgress:!0,isBackgroundTask:r},new Ig,(r=>{if("context"===r.kind&&!r.text.startsWith("remote: Counting objects"))return;const s="progress"===r.kind?r.details.text:r.text,o=r.percent;n({kind:i,title:e,description:s,value:o,remote:t.name})})),n({kind:i,title:e,value:0,remote:t.name})}const i=await async function(e,t){return["fetch",...t?["--progress"]:[],"--prune","--recurse-submodules=on-demand",e]}(t.name,n);await zd(i,e.path,"fetch",s)}(r,e,n,t),!0)),{backgroundTask:t,retryAction:s});i&&await py(r,e,t).catch((e=>log.error("Failed updating remote HEAD",e)))}async fetchRefspec(e){const t=await ay(this.repository);for(const n of t)await this.performFailableOperation((()=>ry(this.repository,n,e)))}async loadStatus(){const e=await this.performFailableOperation((()=>sw(this.repository)));if(!e)return null;this._aheadBehind=e.branchAheadBehind||null;const{currentBranch:t,currentTip:n}=e;if(t||n)if(n&&t){const r=await this.lookupCommit(n),s=new od(t,e.currentUpstreamBranch||null,r,rd.Local,`refs/heads/${t}`);this._tip={kind:zr.Valid,branch:s}}else n?this._tip={kind:zr.Detached,currentSha:n}:t&&(this._tip={kind:zr.Unborn,ref:t});else this._tip={kind:zr.Unknown};return this.emitUpdate(),e}async lookupCommit(e){const t=this.commitLookup.get(e);if(null!=t)return Promise.resolve(t);const n=await this.performFailableOperation((()=>Lf(this.repository,e)));if(null!=n)return this.commitLookup.set(e,n),n;throw new Error(`Could not load commit: '${e}'`)}async loadStashEntries(){const e=new Map,t=await sb(this.repository);for(const n of t.desktopEntries)if(!e.has(n.branchName)){const t=this._desktopStashEntries.get(n.branchName);void 0!==t&&t.stashSha===n.stashSha?e.set(n.branchName,{...n,files:t.files}):e.set(n.branchName,n)}this._desktopStashEntries=e,this._stashEntryCount=t.stashEntryCount,this.emitUpdate(),this.loadFilesForCurrentStashEntry()}get currentBranchStashEntry(){return this._tip&&this._tip.kind===zr.Valid&&this._desktopStashEntries.get(this._tip.branch.name)||null}get desktopStashEntries(){return this._desktopStashEntries}get stashEntryCount(){return this._stashEntryCount}get desktopStashEntryCount(){return this._desktopStashEntries.size}async loadFilesForCurrentStashEntry(){const e=this.currentBranchStashEntry;if(!e||e.files.kind!==nb.NotLoaded)return;const{branchName:t}=e;this._desktopStashEntries.set(t,{...e,files:{kind:nb.Loading}}),this.emitUpdate();const n=await async function(e,t){const n=["stash","show",t,"--raw","--numstat","-z","--format=format:","--no-show-signature","--"],{stdout:r}=await zd(n,e.path,"getStashedFiles");return Of(r,t,`${t}^`).files}(this.repository,e.stashSha),r=this._desktopStashEntries.get(t);r&&r.stashSha===e.stashSha&&(this._desktopStashEntries.set(t,{...r,files:{kind:nb.Loaded,files:n}}),this.emitUpdate())}async loadRemotes(){const e=await ay(this.repository);this._remotes=e,this._defaultRemote=function(e){return e.find((e=>"origin"===e.name))||e[0]||null}(e);const t=this.tip.kind===zr.Valid&&null!==this.tip.branch.upstreamRemoteName?this.tip.branch.upstreamRemoteName:null;this._currentRemote=null!==t&&e.find((e=>e.name===t))||this._defaultRemote;const n=this.repository.gitHubRepository&&this.repository.gitHubRepository.parent;this._upstreamRemote=n?eb(n,e):null,this.emitUpdate()}async addUpstreamRemoteIfNeeded(){const e=this.repository.gitHubRepository&&this.repository.gitHubRepository.parent;if(!e)return;const t=await ay(this.repository);if(eb(e,t))return;const n=t.find((e=>e.name===Jw));if(n){const e=new Qw(this.repository,n);return void this.emitError(e)}const r=lt("Parent repositories are fully loaded",e.cloneURL);this._upstreamRemote=await this.performFailableOperation((()=>ly(this.repository,Jw,r)))??null}async ensureUpstreamRemoteURL(e){await this.performFailableOperation((async()=>{try{await ly(this.repository,Jw,e)}catch(t){if(!(t instanceof Gd&&t.result.gitError===ad.GitError.RemoteAlreadyExists))throw t;await uy(this.repository,Jw,e)}}))}get aheadBehind(){return this._aheadBehind}get remotes(){return this._remotes}get defaultRemote(){return this._defaultRemote}get currentRemote(){return this._currentRemote}get upstreamRemote(){return this._upstreamRemote}setShowCoAuthoredBy(e){this._showCoAuthoredBy=e,e||(this._coAuthors=[]),this.emitUpdate()}setCoAuthors(e){this._coAuthors=e,this.emitUpdate()}setCommitMessage(e){return this._commitMessage=e,this.emitUpdate(),Promise.resolve()}get lastFetched(){return this._lastFetched}async updateLastFetched(){const e=t.join(this.repository.path,".git","FETCH_HEAD");try{const t=await(0,w.stat)(e);t.size>0&&(this._lastFetched=t.mtime)}catch{this._lastFetched=null}return this.emitUpdate(),this._lastFetched}merge(e,t=!1){if(this.tip.kind!==zr.Valid)throw new Error(`unable to merge as tip state is '${this.tip.kind}' and the application expects the repository to be on a branch currently`);const n=this.tip.branch.name;return this.performFailableOperation((()=>async function(e,t,n=!1){const r=["merge"];n&&r.push("--squash"),r.push(t);const{exitCode:s,stdout:i}=await zd(r,e.path,"merge",{expectedErrors:new Set([ad.GitError.MergeConflicts])});if(0!==s)return Bf.Failed;if(n){const{exitCode:t}=await zd(["commit","--no-edit"],e.path,"createSquashMergeCommit");if(0!==t)return Bf.Failed}return"Already up to date.\n"===i?Bf.AlreadyUpToDate:Bf.Success}(this.repository,e.name,t)),{gitContext:{kind:"merge",currentBranch:n,theirBranch:e.name},retryAction:{type:pt.Merge,currentBranch:n,theirBranch:e,repository:this.repository}})}async setRemoteURL(e,t){const n=!0===await this.performFailableOperation((()=>uy(this.repository,e,t)));return await this.loadRemotes(),this.emitUpdate(),n}async discardChanges(e,n=!0,r=!1){const s=new Array,i=new Array,o=await async function(e){const[n,r]=await Promise.all([k(t.join(e.path,".gitmodules")),k(t.join(e.path,".git","modules"))]);if(!n&&!r)return log.info('No submodules found. Skipping "git submodule status"'),[];const{stdout:s,exitCode:i}=await zd(["submodule","status","--"],e.path,"listSubmodules",{successExitCodes:new Set([0,128])});if(128===i)return[];const o=new Array,a=/^.([^ ]+) (.+) \((.+?)\)$/gm;for(const[,e,t,n]of s.matchAll(a))o.push(new cw(e,t,n));return o}(this.repository);await async function(e,t){const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;){const e=await Xw();do{await Promise.resolve(t(r.value)),r=n.next()}while(!r.done&&performance.now()-e<10)}}(e,(async a=>{const l=o.some((e=>e.path===a.path));if(a.status.kind!==Wu.Deleted&&!l)if(n)try{await this.shell.moveItemToTrash(t.resolve(this.repository.path,a.path))}catch(n){if(r)throw new gt(n,this.repository,e);a.status.kind===Wu.Untracked&&await(0,w.rm)(t.join(this.repository.path,a.path))}else!1===n&&a.status.kind===Wu.Untracked&&await(0,w.rm)(t.join(this.repository.path,a.path));a.status.kind===Wu.Copied||a.status.kind===Wu.Renamed?(i.push(a.path),s.push(a.status.oldPath),i.push(a.status.oldPath)):(s.push(a.path),i.push(a.path))}));const a=await async function(e){const t=["diff-index","--cached","--name-status","--no-renames","-z"];let n=await zd([...t,"HEAD","--"],e.path,"getIndexChanges",{successExitCodes:new Set([0,128])});128===n.exitCode&&(n=await zd([...t,Tf],e.path,"getIndexChanges"));const r=new Map,s=n.stdout.split("\0");for(let e=0;e<s.length-1;e+=2){const t=Af(s[e]),n=s[e+1];r.set(n,t)}return r}(this.repository),l=i.filter((e=>a.has(e))),c=s.filter((e=>o.find((t=>t.path===e)))),u=s.filter((e=>-1===c.indexOf(e)||a.get(e)!==Rf.Added));await this.performFailableOperation((async()=>{c.length>0&&await async function(e,t){0!==t.length&&await zd(["submodule","update","--recursive","--force","--",...t],e.path,"updateSubmodule")}(this.repository,c),await async function(e,t,n,r){if(!r.length)return;const s=Uf(2,"HEAD");{const t=[...s,"--stdin","-z","--"];await zd(t,e.path,"resetPaths",{stdin:r.join("\0")})}}(this.repository,0,0,l),await async function(e,t){if(!t.length)return;const n={successExitCodes:new Set([0,1]),stdin:t.join("\0")};await zd(["checkout-index","-f","-u","-q","--stdin","-z"],e.path,"checkoutIndex",n)}(this.repository,u)}))}async discardChangesFromSelection(e,t,n){await this.performFailableOperation((()=>async function(e,t,n,r){const s=function(e,t,n){let r="";return t.hunks.forEach(((e,t)=>{let s="",i=0,o=0,a=!1;e.lines.forEach(((t,r)=>{const l=e.unifiedDiffStart+r;if(t.type!==Bu.Hunk){if(t.type===Bu.Context)s+=`${t.text}\n`,i++,o++;else if(n.isSelected(l))t.type===Bu.Add?(s+=`-${t.text.substring(1)}\n`,o++):t.type===Bu.Delete?(s+=`+${t.text.substring(1)}\n`,i++):at(t.type,`Unsupported line type ${t.type}`),a=!0;else if(t.type===Bu.Add)i++,o++,s+=` ${t.text.substring(1)}\n`;else{if(t.type===Bu.Delete)return;at(t.type,`Unsupported line type ${t.type}`)}t.noTrailingNewLine&&(s+="\\ No newline at end of file\n")}})),a&&(r+=cg(e.header.newStartLine,o,e.header.oldStartLine,i),r+=s)})),0===r.length?null:lg(e,e)+r}(t,n,r);null!==s&&await zd(["apply","--unidiff-zero","--whitespace=nowarn","-"],e.path,"discardChangesFromSelection",{stdin:s})}(this.repository,e,t,n)))}async revertCommit(e,t,n){await this.performFailableOperation((()=>async function(e,t,n,r){const s=["revert"];t.parentSHAs.length>1&&s.push("-m","1"),s.push(t.sha);let i={};if(r){const t=await wg(yg(e,n));i=await Vg({env:t,trackLFSProgress:!0},new lw,(e=>{const t="progress"===e.kind?e.details.text:e.text,n="progress"===e.kind?e.details.title:"",s=e.percent;r({kind:"revert",description:t,value:s,title:n})}))}await zd(s,e.path,"revert",i)}(e,t,this.currentRemote,n))),this.emitUpdate()}async updateExistingUpstreamRemote(){const e=lt("To update an upstream remote, the repository must be a GitHub repository",this.repository.gitHubRepository),t=lt("To update an upstream remote, the repository must have a parent",e.parent),n=lt("Parent repositories are always fully loaded",t.cloneURL);await this.performFailableOperation((()=>uy(this.repository,Jw,n)))}async getCompareCommits(e,t){if(this.tip.kind!==zr.Valid)return null;const n=this.tip.branch,r=await gy(this.repository,fy(n.name,e.name));if(null==r)return null;const s=t===nt.Ahead?my(e.name,n.name):my(n.name,e.name),i=t===nt.Ahead?r.ahead:r.behind,o=await Nf(this.repository,s,i);return o.length>0&&this.storeCommits(o),{commits:o,ahead:r.ahead,behind:r.behind}}async pruneForkedRemotes(e){const t=function(e,t,n){const r=new Set(t.map((e=>e.head.gitHubRepository.cloneURL))),s=new Set(n.map((e=>e.upstreamRemoteName)));return e.filter((e=>e.name.startsWith(nd)&&!r.has(e.url)&&!s.has(e.name)))}(await ay(this.repository),e,this.allBranches);for(const e of t)await cy(this.repository,e.name)}async getCommitsBetweenBranches(e,t){const n=my(e.name,t.name),r=await this.performFailableOperation((()=>Nf(this.repository,n)));return null==r?[]:(r.length>0&&this.storeCommits(r),r)}}class yb{shell;statsStore;onGitStoreUpdated;onDidError;gitStores=new Map;constructor(e,t,n,r){this.shell=e,this.statsStore=t,this.onGitStoreUpdated=n,this.onDidError=r}remove(e){this.gitStores.has(e.hash)&&this.gitStores.delete(e.hash)}get(e){let t=this.gitStores.get(e.hash);return void 0===t&&(t=new gb(e,this.shell,this.statsStore),t.onDidUpdate((()=>this.onGitStoreUpdated(e,t))),t.onDidError((e=>this.onDidError(e))),this.gitStores.set(e.hash,t)),t}}function wb(e,t,n){const r=e.conflictState,s=function(e,t){if(null!==e.rebaseInternalState){const{currentTip:n}=e;if(null==n)return null;const{targetBranch:r,originalBranchTip:s,baseBranchTip:i}=e.rebaseInternalState;return{kind:"rebase",currentTip:n,manualResolutions:t,targetBranch:r,originalBranchTip:s,baseBranchTip:i}}if(e.isCherryPickingHeadFound){const{currentBranch:n}=e;return null==n?null:{kind:"cherryPick",manualResolutions:t,targetBranchName:n}}const{currentBranch:n,currentTip:r,mergeHeadFound:s,squashMsgFound:i}=e;return null==n||null==r||!s&&!i||!s&&!e.doConflictedFilesExist?null:{kind:"merge",currentBranch:n,currentTip:r,manualResolutions:t}}(t,null!==r?r.manualResolutions:new Map);return null==r&&null==s?null:null!=r&&!rt(r)||null!=s&&!rt(s)?(null!=r&&!st(r)||null!=s&&!st(s)||function(e,t,n,r){const s=null!=e?e.targetBranch:null,i=null!=t?t.targetBranch:null;if(null!=s&&null!=i&&s!==i)return void r.increment("rebaseAbortedAfterConflictsCount");const{currentTip:o,currentBranch:a}=n;null!=e&&null==t&&null!=o&&null!=a&&(e.originalBranchTip!==o&&a===e.targetBranch||r.increment("rebaseAbortedAfterConflictsCount"))}(r,s,t,n),s):(function(e,t,n,r){const s=null!=e?e.currentBranch:null,i=null!=t?t.currentBranch:null;if(null!=s&&null!=i&&s!==i)return void r.increment("mergeAbortedAfterConflictsCount");const{currentTip:o}=n;null!=e&&null==t&&null!=o&&(e.currentTip!==o?r.increment("mergeSuccessAfterConflictsCount"):r.increment("mergeAbortedAfterConflictsCount"))}(r,s,t,n),s)}const bb=At()(((e,t)=>new Intl.RelativeTimeFormat(e,t)),{cache:new(xt())({maxSize:100}),cacheKey:(...e)=>JSON.stringify(e)});function Cb(e){const t=bb("zh-CN",{numeric:"auto"}),n=e<0?-1:1,r=Math.round(Math.abs(e)/1e3),s=Math.round(r/60),i=Math.round(s/60),o=Math.round(i/24),a=Math.round(o/30),l=Math.round(a/12);return r<45?t.format(r*n,"second"):s<45?t.format(s*n,"minute"):i<24?t.format(i*n,"hour"):o<30?t.format(o*n,"day"):a<18?t.format(a*n,"month"):t.format(l*n,"year")}const vb=["HEAD","refs/heads/main","refs/heads/master","refs/heads/gh-pages","refs/heads/develop","refs/heads/dev","refs/heads/development","refs/heads/trunk","refs/heads/devel","refs/heads/release"],Sb={enforcePruneThreshold:!0,deleteBranch:!0};class Eb{repository;gitStoreCache;repositoriesStore;repositoriesStateCache;onPruneCompleted;timer=null;constructor(e,t,n,r,s){this.repository=e,this.gitStoreCache=t,this.repositoriesStore=n,this.repositoriesStateCache=r,this.onPruneCompleted=s}runOnce(){return this.pruneLocalBranches(Sb)}async start(){null!==this.timer&&ot(`A background prune task is already active and cannot begin pruning on ${this.repository.name}`),await this.pruneLocalBranches(Sb),this.timer=window.setInterval((()=>this.pruneLocalBranches(Sb)),144e5)}stop(){null!==this.timer&&(clearInterval(this.timer),this.timer=null)}async testPrune(){return this.pruneLocalBranches({enforcePruneThreshold:!1,deleteBranch:!1})}async findBranchesMergedIntoDefaultBranch(e,t){const n=this.gitStoreCache.get(e),r=await n.performFailableOperation((()=>async function(e,t){const n=hg(t),{formatArgs:r,parse:s}=Pf({sha:"%(objectname)",canonicalRef:"%(refname)"}),i=["branch",...r,"--merged",t],o=new Map,{stdout:a}=await zd(i,e.path,"mergedBranches");for(const e of s(a))e.canonicalRef!==n&&o.set(e.canonicalRef,e.sha);return o}(e,t.name)));if(void 0===r)return new Map;const s=await pg(e,"HEAD");return s&&r.delete(s),r}async pruneLocalBranches(e){if(!Yr(this.repository))return;const t=await this.repositoriesStore.getLastPruneDate(this.repository),n=It(-24,"hours");if(e.enforcePruneThreshold&&null!=t&&n<t){const e=Cb(t-Date.now());return void log.info(`[BranchPruner] Last prune took place ${e} - skipping`)}await this.repositoriesStore.updateLastPruneDate(this.repository,Date.now());const{branchesState:r}=this.repositoriesStateCache.get(this.repository),{defaultBranch:s,allBranches:i}=r;if(null===s)return;const o=await this.findBranchesMergedIntoDefaultBranch(this.repository,s);if(0===o.size)return void log.info("[BranchPruner] No branches to prune.");const a=new Date(It(-14,"days")),l=await async function(e,t){const n=new RegExp(/^[a-z0-9]{40}\sHEAD@{(.*)}\scheckout: moving from\s.*\sto\s(.*)$/),r=await zd(["reflog","--date=iso",`--after="${t.toISOString()}"`,"--pretty=%H %gd %gs","--grep-reflog=checkout: moving from .* to .*$","--"],e.path,"getCheckoutsAfterDate",{successExitCodes:new Set([0,128])}),s=new Map;if(128===r.exitCode&&oy.test(r.stderr))return s;const i=r.stdout.split("\n");for(const e of i){const t=n.exec(e);if(null===t||3!==t.length)continue;const[,r,i]=t;s.has(i)||s.set(i,new Date(r))}return s}(this.repository,a),c=new Set([...l.keys()].map(hg)),u=(await sy(this.repository,"refs/remotes/")).map((e=>hg(e.name))),h=Array.from(o.keys()).filter((e=>{if(vb.includes(e))return!1;if(c.has(e))return!1;const t=function(e,t){const n=t.find((t=>hg(t.name)===e));if(void 0===n)return;const{upstream:r}=n;return null!==r?hg(r):void 0}(e,i);return void 0!==t&&!u.includes(t)}));log.info(`[BranchPruner] Pruning ${h.length} branches that have been merged into the default branch, ${s.name} (${s.tip.sha}), from '${this.repository.name}`);const p=this.gitStoreCache.get(this.repository);for(const t of h){if(!t.startsWith("refs/heads/"))continue;const n=t.substring(11);e.deleteBranch?await p.performFailableOperation((()=>Cg(this.repository,n)))&&log.info(`[BranchPruner] Pruned branch ${n} ((was ${o.get(t)}))`):log.info(`[BranchPruner] Branch '${n}' marked for deletion`)}this.onPruneCompleted(this.repository).catch((e=>{log.error("[BranchPruner] Error calling onPruneCompleted",e)}))}}var kb,Rb,Ab;!function(e){e.SuccessfulMerge="SuccessfulMerge",e.MergeConflictsFound="MergeConflictsFound",e.SuccessfulRebase="SuccessfulRebase",e.RebaseConflictsFound="RebaseConflictsFound",e.BranchAlreadyUpToDate="BranchAlreadyUpToDate",e.SuccessfulCherryPick="SuccessfulCherryPick",e.CherryPickConflictsFound="CherryPickConflictsFound",e.CherryPickUndone="CherryPickUndone",e.SquashUndone="SquashUndone",e.ReorderUndone="ReorderUndone",e.OpenThankYouCard="OpenThankYouCard",e.SuccessfulSquash="SuccessfulSquash",e.SuccessfulReorder="SuccessfulReorder",e.ConflictsFound="ConflictsFound",e.OSVersionNoLongerSupported="OSVersionNoLongerSupported"}(kb||(kb={})),function(e){e.Loading="loading",e.Clean="clean",e.Conflicts="conflicts",e.Invalid="invalid"}(Rb||(Rb={})),function(e){e.AskForConfirmation="AskForConfirmation",e.StashOnCurrentBranch="StashOnCurrentBranch",e.MoveToNewBranch="MoveToNewBranch"}(Ab||(Ab={}));const Tb=Ab.AskForConfirmation;function xb(e,t,n){return e.kind!==zr.Valid?null:null!==e.branch.upstreamWithoutRemote&&null!==t&&function(e,t){return null!==t.cloneURL&&kr(t.cloneURL,e)}(t.url,n)?e.branch.upstreamWithoutRemote:e.branch.nameWithoutRemote}var Db;function Mb(e){return e!==Db.NotApplicable&&e!==Db.Paused}!function(e){e.NotApplicable="NotApplicable",e.PickEditor="PickEditor",e.CreateBranch="CreateBranch",e.EditFile="EditFile",e.MakeCommit="MakeCommit",e.PushBranch="PushBranch",e.OpenPullRequest="OpenPullRequest",e.AllDone="AllDone",e.Paused="Paused",e.Announced="Announced"}(Db||(Db={}));const Pb=[Db.PickEditor,Db.CreateBranch,Db.EditFile,Db.MakeCommit,Db.PushBranch,Db.OpenPullRequest,Db.AllDone,Db.Announced],Ib="tutorial-install-editor-skipped",_b="tutorial-pull-request-step-complete",Fb="tutorial-paused";class Nb{getResolvedExternalEditor;installEditorSkipped=zt(Ib,!1);prStepComplete=zt(_b,!1);tutorialPaused=zt(Fb,!1);tutorialAnnounced=!1;constructor(e){this.getResolvedExternalEditor=e}async getCurrentStep(e,t){return e?this.tutorialPaused?Db.Paused:await this.isEditorInstalled()?this.isBranchCheckedOut(t)?this.hasChangedFile(t)?this.hasMultipleCommits(t)?this.commitPushed(t)?this.pullRequestCreated(t)?this.tutorialAnnounced?Db.Announced:Db.AllDone:Db.OpenPullRequest:Db.PushBranch:Db.MakeCommit:Db.EditFile:Db.CreateBranch:Db.PickEditor:(this.tutorialPaused&&this.resumeTutorial(),Db.NotApplicable)}async isEditorInstalled(){return this.installEditorSkipped||null!==this.getResolvedExternalEditor()}isBranchCheckedOut(e){const{branchesState:t}=e,{tip:n}=t,r=n.kind===zr.Valid?n.branch.name:null,s=null!==t.defaultBranch?t.defaultBranch.name:null;return null!==r&&null!==s&&r!==s}hasChangedFile(e){if(this.hasMultipleCommits(e))return!0;const{changesState:t}=e;return t.workingDirectory.files.length>0}hasMultipleCommits(e){const{branchesState:t}=e,{tip:n}=t;if(n.kind===zr.Valid){const t=e.commitLookup.get(n.branch.tip.sha);return void 0!==t&&t.parentSHAs.some((e=>e.length>0))}return!1}commitPushed(e){const{aheadBehind:t}=e;return null!==t&&0===t.ahead}pullRequestCreated(e){return null!==e.branchesState.currentPullRequest&&this.markPullRequestTutorialStepAsComplete(),this.prStepComplete}skipPickEditor=()=>{this.installEditorSkipped=!0,jt(Ib,this.installEditorSkipped)};markPullRequestTutorialStepAsComplete=()=>{this.prStepComplete=!0,jt(_b,this.prStepComplete)};markTutorialCompletionAsAnnounced=()=>{this.tutorialAnnounced=!0};onNewTutorialRepository=()=>{this.installEditorSkipped=!1,localStorage.removeItem(Ib),this.prStepComplete=!1,localStorage.removeItem(_b),this.tutorialPaused=!1,localStorage.removeItem(Fb)};pauseTutorial(){this.tutorialPaused=!0,jt(Fb,this.tutorialPaused)}resumeTutorial(){this.tutorialPaused=!1,jt(Fb,this.tutorialPaused)}}function Ob(e,t,n){return null==e.upstreamWithoutRemote?null:t.find((t=>Lb(e,t,n)))||null}function Lb(e,t,n){return t.head.ref===e.upstreamWithoutRemote&&Sr(t.head.gitHubRepository,n)}const Bb="\r\n",Hb=`# Welcome to GitHub Desktop!${Bb}${Bb}This is your README. READMEs are where you can communicate what your project is and how to use it.${Bb}${Bb}Write your name on line 6, save it, and then head back to GitHub Desktop.${Bb}`;const Ub="last-clone-location";async function Zb(){return localStorage.getItem(Ub)||t.join(await async function(){if(!Et)try{Et=await J("documents")}catch(e){Et=await J("home")}return Et}(),"GitHub")}function $b(e){localStorage.setItem(Ub,e)}const Wb=Math.ceil(3e4*Math.random());class Vb{getRepositories;refreshRepositoryIndicators;running=!1;refreshTimeoutId=null;paused=!1;pausePromise=Promise.resolve();resolvePausePromise=null;lastRefreshStartedAt=null;constructor(e,t){this.getRepositories=e,this.refreshRepositoryIndicators=t}start(){this.running||(log.debug("[RepositoryIndicatorUpdater] Starting"),this.running=!0,this.scheduleRefresh())}scheduleRefresh(){if(this.running&&null===this.refreshTimeoutId){const e=null===this.lastRefreshStartedAt?1/0:Date.now()-this.lastRefreshStartedAt,t=Math.max(9e5-e,0)+Wb,n=isFinite(e)?`${(e/1e3).toFixed(3)}s前`:"never",r=`${(t/1e3).toFixed(3)}s`;log.debug(`[RepositoryIndicatorUpdater] Last refresh: ${n}, scheduling in ${r}`),this.refreshTimeoutId=window.setTimeout((()=>this.refreshAllRepositories()),t)}}async refreshAllRepositories(){if(this.refreshTimeoutId=null,log.debug("[RepositoryIndicatorUpdater] Running refreshAllRepositories"),this.paused&&(log.debug("[RepositoryIndicatorUpdater] Paused before starting refreshAllRepositories"),await this.pausePromise,!this.running))return;let e;this.lastRefreshStartedAt=Date.now();const t=new Set,n=()=>this.getRepositories().find((e=>!t.has(e.id))),r=Date.now();let s=0;for(;this.running&&void 0!==(e=n());){if(await this.refreshRepositoryIndicators(e),this.paused){log.debug(`[RepositoryIndicatorUpdater] Pausing after ${t.size} repositories`);const e=Date.now();await this.pausePromise,s+=Date.now()-e,log.debug(`[RepositoryIndicatorUpdater] Resuming after ${s/1e3}s`)}t.add(e.id)}if(t.size>=1){const e=Date.now()-r,n=((e-s)/1e3).toFixed(1),i=(s/1e3).toFixed(1),o=(e/1e3).toFixed(1);log.info(`[RepositoryIndicatorUpdater]: Refreshing sidebar indicators for ${t.size} repositories took ${n}s of which ${i}s paused, total ${o}s`)}this.scheduleRefresh()}clearRefreshTimeout(){null!==this.refreshTimeoutId&&(window.clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null)}stop(){this.running&&(log.debug("[RepositoryIndicatorUpdater] Stopping"),this.running=!1,this.clearRefreshTimeout())}pause(){!1===this.paused&&(this.pausePromise=new Promise((e=>{this.resolvePausePromise=e})),this.paused=!0)}resume(){this.paused&&(null!==this.resolvePausePromise&&(this.resolvePausePromise(),this.resolvePausePromise=null),this.paused=!1)}}function qb(e){const t=e.emails;if(0===t.length)return Kb(e.id,e.login,e.endpoint);const n=t.find((e=>e.primary));if(n&&("public"===(r=n).visibility||!r.visibility))return n.email;var r;const s=`@${Gb(e.endpoint)}`,i=t.find((e=>e.email.toLowerCase().endsWith(s)));return i?i.email:t[0].email}const Gb=e=>Pn(e)?`users.noreply.${new URL(e).hostname}`:"users.noreply.github.com";function zb(e,t){return`${e}@${Gb(t)}`}const jb=e=>Kb(e.id,e.login,e.endpoint);function Kb(e,t,n){return`${e}+${t}@${Gb(n)}`}const Yb=(e,t)=>{const{id:n,login:r,endpoint:s,emails:i}=e,o=t.toLowerCase();return i.some((e=>e.verified&&e.email.toLowerCase()===o))||Kb(n,r,s).toLowerCase()===o||zb(r,s).toLowerCase()===o},Xb=/^(?:(\d+)\+)?(.+?)@(users\.noreply\..+)$/i,Qb=!1,Jb="show-side-by-side-diff";function eC(){return zt(Jb,Qb)}function tC(e){return e.kind===zr.Valid?e.branch.tip.sha:e.kind===zr.Detached?e.currentSha:"(unknown)"}function nC(e){return"Rebase"===e||"Cherry-pick"===e||"Squash"===e||"Merge"===e||"Reorder"===e}const rC=["ShowConflicts","ConfirmAbort"];function sC(e,t){const{defaultBranch:n,allBranches:r,recentBranches:s,tip:i}=e.branchesState;let o=null;if(i.kind!==zr.Valid)throw new Error("Tip is not in a valid state, which is required to start the multi commit operation");return o=i.branch,{kind:"ChooseBranch",defaultBranch:n,currentBranch:o,allBranches:r,recentBranches:s,initialBranch:null!==t?t:void 0}}function iC(e){switch(e.state){case"APPROVED":return"approved";case"CHANGES_REQUESTED":return"requested changes on";case"COMMENTED":return"reviewed"}}function oC(e){switch(e){case"APPROVED":return{symbol:ii,className:"pr-review-approved"};case"CHANGES_REQUESTED":return{symbol:Lo,className:"pr-review-changes-requested"};case"COMMENTED":return{symbol:uo,className:"pr-review-commented"}}}const aC=[{shortUnit:"d",longUnit:"day",ms:864e5},{shortUnit:"h",longUnit:"hour",ms:36e5},{shortUnit:"m",longUnit:"minute",ms:6e4},{shortUnit:"s",longUnit:"second",ms:1e3}],lC=e=>{const t=new Array;e=Math.abs(e);for(const n of aC)if(t.length>0||e>=n.ms||"s"===n.shortUnit){const r=Math.floor(e/n.ms);e-=r*n.ms,t.push(`${r}${n.shortUnit}`)}return t.join(" ")};function cC(e){let t,n=null;return"success"===e.state?(t=Xn.Completed,n=Qn.Success):"pending"===e.state?t=Xn.InProgress:(t=Xn.Completed,n=Qn.Failure),{id:e.id,name:e.context,description:hC(t,n),status:t,conclusion:n,appName:"",checkSuiteId:null,htmlUrl:e.target_url}}function uC(e){if(null===e)return"In progress";switch(e){case Qn.ActionRequired:return"Action required";case Qn.Canceled:return"Canceled";case Qn.TimedOut:return"Timed out";case Qn.Failure:return"Failed";case Qn.Neutral:return"Neutral";case Qn.Success:return"Successful";case Qn.Skipped:return"Skipped";case Qn.Stale:return"Marked as stale"}}function hC(e,t,n){if(e!==Xn.Completed||null===t)return"In progress";const r=uC(t);if([Qn.ActionRequired,Qn.Skipped,Qn.Stale].includes(t))return r;const s=t===Qn.Success?"in":"after";return void 0!==n&&n>0?`${r} ${s} ${lC(n)}`:r}const pC=e=>Date.parse(e.completed_at)-Date.parse(e.started_at);function dC(e){return{id:e.id,name:e.name,description:hC(e.status,e.conclusion,pC(e)),status:e.status,conclusion:e.conclusion,appName:e.app.name,checkSuiteId:e.check_suite.id,htmlUrl:e.html_url}}function mC(e){if(0===e.length)return null;if(1===e.length){const{status:t,conclusion:n}=e[0];return{status:t,conclusion:n,checks:e}}return e.some(fC)?{status:Xn.Completed,conclusion:Qn.Failure,checks:e}:e.every(yC)?{status:Xn.Completed,conclusion:Qn.Success,checks:e}:{status:Xn.InProgress,conclusion:null,checks:e}}function fC(e){return function(e){if("completed"===e.status)switch(e.conclusion){case"timed_out":case"stale":case"cancelled":return!0}return!1}(e)||gC(e)}function gC(e){if("completed"===e.status)switch(e.conclusion){case"failure":case"action_required":return!0}return!1}function yC(e){if("completed"===e.status)switch(e.conclusion){case"success":case"neutral":case"skipped":return!0}return!1}function wC(e){const t=new Map;for(const n of e){const e=n.id+(n.pull_requests.length>0?"isPullRequestCheckRun":"isPushCheckRun"),r=t.get(e);(void 0===r||r.check_suite.id<n.check_suite.id)&&t.set(e,n)}return[...t.values()]}async function bC(e,t,n,r){const s=new Map,i=new Array;for(const o of r){if(void 0===o.actionsWorkflow){i.push(o);continue}const{id:r}=o.actionsWorkflow,a=s.get(r)??await e.fetchWorkflowRunJobs(t,n,r);s.set(r,a);const l=a?.jobs.find((e=>e.id===o.id));void 0!==l?i.push({...o,htmlUrl:l.html_url,actionJobSteps:l.steps}):i.push(o)}return i}async function CC(e,t,n,r,s){const i=rr.fromAccount(e);return Bn(e.endpoint)?async function(e,t,n,r){if(0===r.length)return r;const s=new Array,i=new Map;for(const o of r){if(null===o.checkSuiteId){s.push(o);continue}const r=i.get(o.checkSuiteId),a=void 0===r?await e.fetchPRActionWorkflowRunByCheckSuiteId(t,n,o.checkSuiteId):r;i.set(o.checkSuiteId,a),null!==a?s.push({...o,actionsWorkflow:a}):s.push(o)}return s}(i,t,n,s):async function(e,t,n,r,s){const i=await async function(e,t,n,r){const s=new Map,i=await e.fetchPRWorkflowRunsByBranchName(t,n,r);if(null===i)return[];for(const e of i.workflow_runs){const t=s.get(e.workflow_id);if(void 0===t){s.set(e.workflow_id,e);continue}const n=new Date(t.created_at),r=new Date(e.created_at);n.getTime()<r.getTime()&&s.set(e.workflow_id,e)}return Array.from(s.values())}(e,t,n,r);return 0===i.length?s:function(e,t){if(0===t.length||0===e.length)return e;const n=new Array;for(const r of e){const e=t.find((e=>e.check_suite_id===r.checkSuiteId));void 0!==e?n.push({...r,actionsWorkflow:e}):n.push(r)}return n}(s,i)}(i,t,n,r,s)}function vC(e){const t=pC(e);return isNaN(t)?"":(e=>{const t=new Array;e=Math.abs(e);for(const n of aC)if(t.length>0||e>=n.ms||"s"===n.shortUnit){const r=Math.floor(e/n.ms);e-=r*n.ms,t.push(`${r} ${n.longUnit}${1===r?"":"s"}`)}return t.join(" ")})(t)}function SC(e,t,n,r){return null===e.htmlUrl&&null===n.htmlURL?null:null!==e.htmlUrl?`${e.htmlUrl}/#step:${t.number}:1`:`${n.htmlURL}/pull/${r}`}function EC(e){const t=new Set(e.map((e=>e.actionsWorkflow?.event)).filter((e=>void 0!==e&&""!==e.trim()))),n=t.size>1,r=new Map;for(const t of e){let e=t.actionsWorkflow?.name||"Other";n&&void 0!==t.actionsWorkflow&&""!==t.actionsWorkflow.event.trim()&&(e=`${e} (${t.actionsWorkflow.event})`),"Other"===e&&"GitHub Code Scanning"===t.appName&&(e="Code scanning results");const s=r.get(e),i=void 0!==s?[...s,t]:[t];r.set(e,i)}return kC(r).forEach((e=>{const t=r.get(e);if(void 0!==t){const n=t.sort(((e,t)=>e.name.localeCompare(t.name)));r.set(e,n)}})),r}function kC(e){const t=[...e.keys()];return t.sort(((e,t)=>"Other"===e&&"Other"!==t?1:"Other"!==e&&"Other"===t?-1:"Other"===e&&"Other"===t?0:e.localeCompare(t))),t}const RC=[Qn.Failure,Qn.Canceled,Qn.ActionRequired,Qn.TimedOut];var AC=n(3575);const TC=new(xt())({maxSize:200});async function xC(e){if(!(0,AC.xx)())return void(new Notification(e.title,{body:e.body}).onclick=()=>{I(),e.onClick()});const t=await ge(e.title,e.body,e.userInfo);null!==t&&TC.set(t,e.onClick)}function DC(e,t){if(e.length<=t)return e;const n=[...e];if(n.length<=t)return e;const r=n.reduce(((e,t)=>(t>=""&&t<=""?e.length&&e.push(`${e.pop()}${t}`):e.push(t),e)),[]);return r.length<=t?e:`${r.slice(0,t).join("")}…`}function MC(e){return"APPROVED"===e.state||"CHANGES_REQUESTED"===e.state||"COMMENTED"===e.state}const PC="high-signal-notifications-enabled";function IC(){return zt(PC,!0)}async function _C(e,t,n){return zd(["merge-tree","--write-tree","--name-only","--no-messages","-z",t.tip.sha,n.tip.sha],e.path,"determineMergeability",{successExitCodes:new Set([0,1])}).then((({stdout:e})=>{const t=(e.match(/\0/g)?.length??0)-1;return t>0?{kind:Rb.Conflicts,conflictedFiles:t}:{kind:Rb.Clean}})).catch((e=>((e,t)=>e instanceof Gd&&(void 0===t||e.result.gitError===t))(e,ad.GitError.CannotMergeUnrelatedHistories)?Promise.resolve({kind:Rb.Invalid}):Promise.reject(e)))}class FC{popupLimit;popupStack=[];constructor(e=50){this.popupLimit=e}get currentPopup(){return this.popupStack.at(-1)??null}get allPopups(){return this.popupStack}get isAPopupOpen(){return null!==this.currentPopup}getPopupsOfType(e){return this.popupStack.filter((t=>t.type===e))}areTherePopupsOfType(e){return this.popupStack.some((t=>t.type===e))}addPopup(e){if(e.type===Sh.Error)return this.addErrorPopup(e.error);const t=this.getPopupsOfType(e.type),n={id:kn(),...e};return t.length>0?(log.warn(`Attempted to add a popup of already existing type - ${e.type}.`),e):(this.insertBeforeErrorPopups(n),this.checkStackLength(),n)}insertBeforeErrorPopups(e){if(this.popupStack.at(-1)?.type!==Sh.Error)return void(this.popupStack=this.popupStack.concat(e));const t=this.getPopupsOfType(Sh.Error),n=this.popupStack.filter((e=>e.type!==Sh.Error));this.popupStack=[...n,e,...t]}addErrorPopup(e){const t={id:kn(),type:Sh.Error,error:e};return this.popupStack=this.popupStack.concat(t),this.checkStackLength(),t}checkStackLength(){if(this.popupStack.length>this.popupLimit){const e=this.popupStack[0],t=e.type===Sh.Error?`: ${e.error.message}`:null,n=this.currentPopup?.type===Sh.Error?`Just added another Error: ${this.currentPopup.error.message}.`:null;QT("TooManyPopups",new Error(`Max number of ${this.popupLimit} popups reached while adding popup of type ${this.currentPopup?.type}.\n Removing last popup from the stack. Type ${e.type}${t}.\n ${n}`)),this.popupStack=this.popupStack.slice(1)}}updatePopup(e){if(void 0===e.id)return void log.warn("Attempted to update a popup without an id.");const t=this.popupStack.findIndex((t=>t.id===e.id));t<0?log.warn("Attempted to update a popup not in the stack."):this.popupStack=[...this.popupStack.slice(0,t),e,...this.popupStack.slice(t+1)]}removePopup(e){void 0!==e.id?this.popupStack=this.popupStack.filter((t=>t.id!==e.id)):log.warn("Attempted to remove a popup without an id.")}removePopupByType(e){this.popupStack=this.popupStack.filter((t=>t.type!==e))}removePopupById(e){this.popupStack=this.popupStack.filter((t=>t.id!==e))}}var NC=n(9669),OC=n.n(NC);class LC extends ke.Component{suffix="";onTrackedInputChanged=OC()((()=>{this.setState({message:this.buildMessage()})}),1e3);constructor(e){super(e),this.state={message:null!==this.props.message?this.buildMessage():null}}componentDidUpdate(e){e.trackedUserInput!==this.props.trackedUserInput&&this.onTrackedInputChanged()}componentWillUnmount(){this.onTrackedInputChanged.cancel()}buildMessage(){return this.suffix="  "===this.suffix?" ":"  ",Re().createElement(Re().Fragment,null,this.props.message+this.suffix)}renderMessage(){return void 0===this.props.trackedUserInput?this.props.message:null!==this.props.message?this.state.message:""}render(){return Re().createElement("div",{id:this.props.id,className:"sr-only","aria-live":"polite","aria-atomic":"true"},this.renderMessage())}}const BC="resizable-component";var HC;!function(e){e.Increase="Increase",e.Decrease="Decrease"}(HC||(HC={}));class UC extends ke.Component{resizeContainer=null;startWidth=null;startX=null;constructor(e){super(e),this.state={resizeMessage:""}}getCurrentWidth(){return this.clampWidth(this.props.width)}clampWidth(e){const{minimumWidth:t,maximumWidth:n}=this.props;return Oy(e,t??200,n??350)}handleDragStart=e=>{this.startX=e.clientX,this.startWidth=this.getCurrentWidth(),document.addEventListener("mousemove",this.handleDragMove),document.addEventListener("mouseup",this.handleDragStop),e.preventDefault()};handleDragMove=e=>{if(null===this.startWidth||null===this.startX)return;const t=e.clientX-this.startX,n=this.startWidth+t;this.updateResizeMessage(t>0?HC.Increase:HC.Decrease),this.props.onResize(this.clampWidth(n)),e.preventDefault()};unsubscribeFromGlobalEvents(){document.removeEventListener("mousemove",this.handleDragMove),document.removeEventListener("mouseup",this.handleDragStop)}handleDragStop=e=>{this.unsubscribeFromGlobalEvents(),e.preventDefault()};handleMenuResizeEventIncrease=e=>{this.handleMenuResizeEvent(HC.Increase),e?.preventDefault()};handleMenuResizeEventDecrease=e=>{this.handleMenuResizeEvent(HC.Decrease),e?.preventDefault()};handleMenuResizeEvent(e){const{width:t}=this.props,n=e===HC.Decrease?t-5:t+5,r=this.clampWidth(n);this.updateResizeMessage(e),this.props.onResize(this.clampWidth(r))}onResizableRef=e=>{null===e?(this.resizeContainer?.removeEventListener("increase-active-resizable-width",this.handleMenuResizeEventIncrease),this.resizeContainer?.removeEventListener("decrease-active-resizable-width",this.handleMenuResizeEventDecrease)):(e.addEventListener("increase-active-resizable-width",this.handleMenuResizeEventIncrease),e.addEventListener("decrease-active-resizable-width",this.handleMenuResizeEventDecrease)),this.resizeContainer=e};getResizePercentage(){const e=this.props.minimumWidth??0,t=this.props.maximumWidth??350;return Math.round((this.getCurrentWidth()-e)/(t-e)*100)}updateResizeMessage(e){const t=e===HC.Increase?"increased":"decreased";this.setState({resizeMessage:`${this.props.description} width ${t}. Set to ${this.getResizePercentage()}%`})}render(){const e={width:this.getCurrentWidth(),maxWidth:this.props.maximumWidth,minWidth:this.props.minimumWidth};return ke.createElement("div",{id:this.props.id,className:BC,style:e,ref:this.onResizableRef},this.props.children,ke.createElement("button",{type:"button",tabIndex:-1,onMouseDown:this.handleDragStart,onDoubleClick:this.props.onReset,className:"resize-handle","aria-label":"Resize handle"}),ke.createElement(LC,{message:this.state.resizeMessage,trackedUserInput:this.state.resizeMessage}))}}class ZC{static FOLD_CASE=1;static LITERAL=2;static CLASS_NL=4;static DOT_NL=8;static ONE_LINE=16;static NON_GREEDY=32;static PERL_X=64;static UNICODE_GROUPS=128;static WAS_DOLLAR=256;static MATCH_NL=ZC.CLASS_NL|ZC.DOT_NL;static PERL=ZC.CLASS_NL|ZC.ONE_LINE|ZC.PERL_X|ZC.UNICODE_GROUPS;static POSIX=0;static UNANCHORED=0;static ANCHOR_START=1;static ANCHOR_BOTH=2}class $C{static CODES=new Map([["",7],["\b",8],["\t",9],["\n",10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]);static toUpperCase(e){const t=String.fromCodePoint(e).toUpperCase();if(t.length>1)return e;const n=String.fromCodePoint(t.codePointAt(0)).toLowerCase();return n.length>1||n.codePointAt(0)!==e?e:t.codePointAt(0)}static toLowerCase(e){const t=String.fromCodePoint(e).toLowerCase();if(t.length>1)return e;const n=String.fromCodePoint(t.codePointAt(0)).toUpperCase();return n.length>1||n.codePointAt(0)!==e?e:t.codePointAt(0)}}class WC{static CASE_ORBIT=new Map([[75,107],[107,8490],[8490,75],[83,115],[115,383],[383,83],[181,924],[924,956],[956,181],[197,229],[229,8491],[8491,197],[452,453],[453,454],[454,452],[455,456],[456,457],[457,455],[458,459],[459,460],[460,458],[497,498],[498,499],[499,497],[837,921],[921,953],[953,8126],[8126,837],[914,946],[946,976],[976,914],[917,949],[949,1013],[1013,917],[920,952],[952,977],[977,1012],[1012,920],[922,954],[954,1008],[1008,922],[928,960],[960,982],[982,928],[929,961],[961,1009],[1009,929],[931,962],[962,963],[963,931],[934,966],[966,981],[981,934],[937,969],[969,8486],[8486,937],[1042,1074],[1074,7296],[7296,1042],[1044,1076],[1076,7297],[7297,1044],[1054,1086],[1086,7298],[7298,1054],[1057,1089],[1089,7299],[7299,1057],[1058,1090],[1090,7300],[7300,7301],[7301,1058],[1066,1098],[1098,7302],[7302,1066],[1122,1123],[1123,7303],[7303,1122],[7304,42570],[42570,42571],[42571,7304],[7776,7777],[7777,7835],[7835,7776],[223,7838],[7838,223],[8064,8072],[8072,8064],[8065,8073],[8073,8065],[8066,8074],[8074,8066],[8067,8075],[8075,8067],[8068,8076],[8076,8068],[8069,8077],[8077,8069],[8070,8078],[8078,8070],[8071,8079],[8079,8071],[8080,8088],[8088,8080],[8081,8089],[8089,8081],[8082,8090],[8090,8082],[8083,8091],[8091,8083],[8084,8092],[8092,8084],[8085,8093],[8093,8085],[8086,8094],[8094,8086],[8087,8095],[8095,8087],[8096,8104],[8104,8096],[8097,8105],[8105,8097],[8098,8106],[8106,8098],[8099,8107],[8107,8099],[8100,8108],[8108,8100],[8101,8109],[8109,8101],[8102,8110],[8110,8102],[8103,8111],[8111,8103],[8115,8124],[8124,8115],[8131,8140],[8140,8131],[8179,8188],[8188,8179],[66560,66600],[66600,66560],[66561,66601],[66601,66561],[66562,66602],[66602,66562],[66563,66603],[66603,66563],[66564,66604],[66604,66564],[66565,66605],[66605,66565],[66566,66606],[66606,66566],[66567,66607],[66607,66567],[66568,66608],[66608,66568],[66569,66609],[66609,66569],[66570,66610],[66610,66570],[66571,66611],[66611,66571],[66572,66612],[66612,66572],[66573,66613],[66613,66573],[66574,66614],[66614,66574],[66575,66615],[66615,66575],[66576,66616],[66616,66576],[66577,66617],[66617,66577],[66578,66618],[66618,66578],[66579,66619],[66619,66579],[66580,66620],[66620,66580],[66581,66621],[66621,66581],[66582,66622],[66622,66582],[66583,66623],[66623,66583],[66584,66624],[66624,66584],[66585,66625],[66625,66585],[66586,66626],[66626,66586],[66587,66627],[66627,66587],[66588,66628],[66628,66588],[66589,66629],[66629,66589],[66590,66630],[66630,66590],[66591,66631],[66631,66591],[66592,66632],[66632,66592],[66593,66633],[66633,66593],[66594,66634],[66634,66594],[66595,66635],[66635,66595],[66596,66636],[66636,66596],[66597,66637],[66637,66597],[66598,66638],[66638,66598],[66599,66639],[66639,66599],[66736,66776],[66776,66736],[66737,66777],[66777,66737],[66738,66778],[66778,66738],[66739,66779],[66779,66739],[66740,66780],[66780,66740],[66741,66781],[66781,66741],[66742,66782],[66782,66742],[66743,66783],[66783,66743],[66744,66784],[66784,66744],[66745,66785],[66785,66745],[66746,66786],[66786,66746],[66747,66787],[66787,66747],[66748,66788],[66788,66748],[66749,66789],[66789,66749],[66750,66790],[66790,66750],[66751,66791],[66791,66751],[66752,66792],[66792,66752],[66753,66793],[66793,66753],[66754,66794],[66794,66754],[66755,66795],[66795,66755],[66756,66796],[66796,66756],[66757,66797],[66797,66757],[66758,66798],[66798,66758],[66759,66799],[66799,66759],[66760,66800],[66800,66760],[66761,66801],[66801,66761],[66762,66802],[66802,66762],[66763,66803],[66803,66763],[66764,66804],[66804,66764],[66765,66805],[66805,66765],[66766,66806],[66806,66766],[66767,66807],[66807,66767],[66768,66808],[66808,66768],[66769,66809],[66809,66769],[66770,66810],[66810,66770],[66771,66811],[66811,66771],[66928,66967],[66967,66928],[66929,66968],[66968,66929],[66930,66969],[66969,66930],[66931,66970],[66970,66931],[66932,66971],[66971,66932],[66933,66972],[66972,66933],[66934,66973],[66973,66934],[66935,66974],[66974,66935],[66936,66975],[66975,66936],[66937,66976],[66976,66937],[66938,66977],[66977,66938],[66940,66979],[66979,66940],[66941,66980],[66980,66941],[66942,66981],[66981,66942],[66943,66982],[66982,66943],[66944,66983],[66983,66944],[66945,66984],[66984,66945],[66946,66985],[66985,66946],[66947,66986],[66986,66947],[66948,66987],[66987,66948],[66949,66988],[66988,66949],[66950,66989],[66989,66950],[66951,66990],[66990,66951],[66952,66991],[66991,66952],[66953,66992],[66992,66953],[66954,66993],[66993,66954],[66956,66995],[66995,66956],[66957,66996],[66996,66957],[66958,66997],[66997,66958],[66959,66998],[66998,66959],[66960,66999],[66999,66960],[66961,67e3],[67e3,66961],[66962,67001],[67001,66962],[66964,67003],[67003,66964],[66965,67004],[67004,66965],[68736,68800],[68800,68736],[68737,68801],[68801,68737],[68738,68802],[68802,68738],[68739,68803],[68803,68739],[68740,68804],[68804,68740],[68741,68805],[68805,68741],[68742,68806],[68806,68742],[68743,68807],[68807,68743],[68744,68808],[68808,68744],[68745,68809],[68809,68745],[68746,68810],[68810,68746],[68747,68811],[68811,68747],[68748,68812],[68812,68748],[68749,68813],[68813,68749],[68750,68814],[68814,68750],[68751,68815],[68815,68751],[68752,68816],[68816,68752],[68753,68817],[68817,68753],[68754,68818],[68818,68754],[68755,68819],[68819,68755],[68756,68820],[68820,68756],[68757,68821],[68821,68757],[68758,68822],[68822,68758],[68759,68823],[68823,68759],[68760,68824],[68824,68760],[68761,68825],[68825,68761],[68762,68826],[68826,68762],[68763,68827],[68827,68763],[68764,68828],[68828,68764],[68765,68829],[68829,68765],[68766,68830],[68830,68766],[68767,68831],[68831,68767],[68768,68832],[68832,68768],[68769,68833],[68833,68769],[68770,68834],[68834,68770],[68771,68835],[68835,68771],[68772,68836],[68836,68772],[68773,68837],[68837,68773],[68774,68838],[68838,68774],[68775,68839],[68839,68775],[68776,68840],[68840,68776],[68777,68841],[68841,68777],[68778,68842],[68842,68778],[68779,68843],[68843,68779],[68780,68844],[68844,68780],[68781,68845],[68845,68781],[68782,68846],[68846,68782],[68783,68847],[68847,68783],[68784,68848],[68848,68784],[68785,68849],[68849,68785],[68786,68850],[68850,68786],[71840,71872],[71872,71840],[71841,71873],[71873,71841],[71842,71874],[71874,71842],[71843,71875],[71875,71843],[71844,71876],[71876,71844],[71845,71877],[71877,71845],[71846,71878],[71878,71846],[71847,71879],[71879,71847],[71848,71880],[71880,71848],[71849,71881],[71881,71849],[71850,71882],[71882,71850],[71851,71883],[71883,71851],[71852,71884],[71884,71852],[71853,71885],[71885,71853],[71854,71886],[71886,71854],[71855,71887],[71887,71855],[71856,71888],[71888,71856],[71857,71889],[71889,71857],[71858,71890],[71890,71858],[71859,71891],[71891,71859],[71860,71892],[71892,71860],[71861,71893],[71893,71861],[71862,71894],[71894,71862],[71863,71895],[71895,71863],[71864,71896],[71896,71864],[71865,71897],[71897,71865],[71866,71898],[71898,71866],[71867,71899],[71899,71867],[71868,71900],[71900,71868],[71869,71901],[71901,71869],[71870,71902],[71902,71870],[71871,71903],[71903,71871],[93760,93792],[93792,93760],[93761,93793],[93793,93761],[93762,93794],[93794,93762],[93763,93795],[93795,93763],[93764,93796],[93796,93764],[93765,93797],[93797,93765],[93766,93798],[93798,93766],[93767,93799],[93799,93767],[93768,93800],[93800,93768],[93769,93801],[93801,93769],[93770,93802],[93802,93770],[93771,93803],[93803,93771],[93772,93804],[93804,93772],[93773,93805],[93805,93773],[93774,93806],[93806,93774],[93775,93807],[93807,93775],[93776,93808],[93808,93776],[93777,93809],[93809,93777],[93778,93810],[93810,93778],[93779,93811],[93811,93779],[93780,93812],[93812,93780],[93781,93813],[93813,93781],[93782,93814],[93814,93782],[93783,93815],[93815,93783],[93784,93816],[93816,93784],[93785,93817],[93817,93785],[93786,93818],[93818,93786],[93787,93819],[93819,93787],[93788,93820],[93820,93788],[93789,93821],[93821,93789],[93790,93822],[93822,93790],[93791,93823],[93823,93791],[125184,125218],[125218,125184],[125185,125219],[125219,125185],[125186,125220],[125220,125186],[125187,125221],[125221,125187],[125188,125222],[125222,125188],[125189,125223],[125223,125189],[125190,125224],[125224,125190],[125191,125225],[125225,125191],[125192,125226],[125226,125192],[125193,125227],[125227,125193],[125194,125228],[125228,125194],[125195,125229],[125229,125195],[125196,125230],[125230,125196],[125197,125231],[125231,125197],[125198,125232],[125232,125198],[125199,125233],[125233,125199],[125200,125234],[125234,125200],[125201,125235],[125235,125201],[125202,125236],[125236,125202],[125203,125237],[125237,125203],[125204,125238],[125238,125204],[125205,125239],[125239,125205],[125206,125240],[125240,125206],[125207,125241],[125241,125207],[125208,125242],[125242,125208],[125209,125243],[125243,125209],[125210,125244],[125244,125210],[125211,125245],[125245,125211],[125212,125246],[125246,125212],[125213,125247],[125247,125213],[125214,125248],[125248,125214],[125215,125249],[125249,125215],[125216,125250],[125250,125216],[125217,125251],[125251,125217]]);static C=[[0,31,1],[127,159,1],[173,888,715],[889,896,7],[897,899,1],[907,909,2],[930,1328,398],[1367,1368,1],[1419,1420,1],[1424,1480,56],[1481,1487,1],[1515,1518,1],[1525,1541,1],[1564,1757,193],[1806,1807,1],[1867,1868,1],[1970,1983,1],[2043,2044,1],[2094,2095,1],[2111,2140,29],[2141,2143,2],[2155,2159,1],[2191,2199,1],[2274,2436,162],[2445,2446,1],[2449,2450,1],[2473,2481,8],[2483,2485,1],[2490,2491,1],[2501,2502,1],[2505,2506,1],[2511,2518,1],[2520,2523,1],[2526,2532,6],[2533,2559,26],[2560,2564,4],[2571,2574,1],[2577,2578,1],[2601,2609,8],[2612,2618,3],[2619,2621,2],[2627,2630,1],[2633,2634,1],[2638,2640,1],[2642,2648,1],[2653,2655,2],[2656,2661,1],[2679,2688,1],[2692,2702,10],[2706,2729,23],[2737,2740,3],[2746,2747,1],[2758,2766,4],[2767,2769,2],[2770,2783,1],[2788,2789,1],[2802,2808,1],[2816,2820,4],[2829,2830,1],[2833,2834,1],[2857,2865,8],[2868,2874,6],[2875,2885,10],[2886,2889,3],[2890,2894,4],[2895,2900,1],[2904,2907,1],[2910,2916,6],[2917,2936,19],[2937,2945,1],[2948,2955,7],[2956,2957,1],[2961,2966,5],[2967,2968,1],[2971,2973,2],[2976,2978,1],[2981,2983,1],[2987,2989,1],[3002,3005,1],[3011,3013,1],[3017,3022,5],[3023,3025,2],[3026,3030,1],[3032,3045,1],[3067,3071,1],[3085,3089,4],[3113,3130,17],[3131,3141,10],[3145,3150,5],[3151,3156,1],[3159,3163,4],[3164,3166,2],[3167,3172,5],[3173,3184,11],[3185,3190,1],[3213,3217,4],[3241,3252,11],[3258,3259,1],[3269,3273,4],[3278,3284,1],[3287,3292,1],[3295,3300,5],[3301,3312,11],[3316,3327,1],[3341,3345,4],[3397,3401,4],[3408,3411,1],[3428,3429,1],[3456,3460,4],[3479,3481,1],[3506,3516,10],[3518,3519,1],[3527,3529,1],[3531,3534,1],[3541,3543,2],[3552,3557,1],[3568,3569,1],[3573,3584,1],[3643,3646,1],[3676,3712,1],[3715,3717,2],[3723,3748,25],[3750,3774,24],[3775,3781,6],[3783,3791,8],[3802,3803,1],[3808,3839,1],[3912,3949,37],[3950,3952,1],[3992,4029,37],[4045,4059,14],[4060,4095,1],[4294,4296,2],[4297,4300,1],[4302,4303,1],[4681,4686,5],[4687,4695,8],[4697,4702,5],[4703,4745,42],[4750,4751,1],[4785,4790,5],[4791,4799,8],[4801,4806,5],[4807,4823,16],[4881,4886,5],[4887,4955,68],[4956,4989,33],[4990,4991,1],[5018,5023,1],[5110,5111,1],[5118,5119,1],[5789,5791,1],[5881,5887,1],[5910,5918,1],[5943,5951,1],[5972,5983,1],[5997,6001,4],[6004,6015,1],[6110,6111,1],[6122,6127,1],[6138,6143,1],[6158,6170,12],[6171,6175,1],[6265,6271,1],[6315,6319,1],[6390,6399,1],[6431,6444,13],[6445,6447,1],[6460,6463,1],[6465,6467,1],[6510,6511,1],[6517,6527,1],[6572,6575,1],[6602,6607,1],[6619,6621,1],[6684,6685,1],[6751,6781,30],[6782,6794,12],[6795,6799,1],[6810,6815,1],[6830,6831,1],[6863,6911,1],[6989,6991,1],[7039,7156,117],[7157,7163,1],[7224,7226,1],[7242,7244,1],[7305,7311,1],[7355,7356,1],[7368,7375,1],[7419,7423,1],[7958,7959,1],[7966,7967,1],[8006,8007,1],[8014,8015,1],[8024,8030,2],[8062,8063,1],[8117,8133,16],[8148,8149,1],[8156,8176,20],[8177,8181,4],[8191,8203,12],[8204,8207,1],[8234,8238,1],[8288,8303,1],[8306,8307,1],[8335,8349,14],[8350,8351,1],[8385,8399,1],[8433,8447,1],[8588,8591,1],[9255,9279,1],[9291,9311,1],[11124,11125,1],[11158,11508,350],[11509,11512,1],[11558,11560,2],[11561,11564,1],[11566,11567,1],[11624,11630,1],[11633,11646,1],[11671,11679,1],[11687,11743,8],[11870,11903,1],[11930,12020,90],[12021,12031,1],[12246,12271,1],[12352,12439,87],[12440,12544,104],[12545,12548,1],[12592,12687,95],[12772,12782,1],[12831,42125,29294],[42126,42127,1],[42183,42191,1],[42540,42559,1],[42744,42751,1],[42955,42959,1],[42962,42964,2],[42970,42993,1],[43053,43055,1],[43066,43071,1],[43128,43135,1],[43206,43213,1],[43226,43231,1],[43348,43358,1],[43389,43391,1],[43470,43482,12],[43483,43485,1],[43519,43575,56],[43576,43583,1],[43598,43599,1],[43610,43611,1],[43715,43738,1],[43767,43776,1],[43783,43784,1],[43791,43792,1],[43799,43807,1],[43815,43823,8],[43884,43887,1],[44014,44015,1],[44026,44031,1],[55204,55215,1],[55239,55242,1],[55292,63743,1],[64110,64111,1],[64218,64255,1],[64263,64274,1],[64280,64284,1],[64311,64317,6],[64319,64325,3],[64451,64466,1],[64912,64913,1],[64968,64974,1],[64976,65007,1],[65050,65055,1],[65107,65127,20],[65132,65135,1],[65141,65277,136],[65278,65280,1],[65471,65473,1],[65480,65481,1],[65488,65489,1],[65496,65497,1],[65501,65503,1],[65511,65519,8],[65520,65531,1],[65534,65535,1],[65548,65575,27],[65595,65598,3],[65614,65615,1],[65630,65663,1],[65787,65791,1],[65795,65798,1],[65844,65846,1],[65935,65949,14],[65950,65951,1],[65953,65999,1],[66046,66175,1],[66205,66207,1],[66257,66271,1],[66300,66303,1],[66340,66348,1],[66379,66383,1],[66427,66431,1],[66462,66500,38],[66501,66503,1],[66518,66559,1],[66718,66719,1],[66730,66735,1],[66772,66775,1],[66812,66815,1],[66856,66863,1],[66916,66926,1],[66939,66955,16],[66963,66966,3],[66978,66994,16],[67002,67005,3],[67006,67071,1],[67383,67391,1],[67414,67423,1],[67432,67455,1],[67462,67505,43],[67515,67583,1],[67590,67591,1],[67593,67638,45],[67641,67643,1],[67645,67646,1],[67670,67743,73],[67744,67750,1],[67760,67807,1],[67827,67830,3],[67831,67834,1],[67868,67870,1],[67898,67902,1],[67904,67967,1],[68024,68027,1],[68048,68049,1],[68100,68103,3],[68104,68107,1],[68116,68120,4],[68150,68151,1],[68155,68158,1],[68169,68175,1],[68185,68191,1],[68256,68287,1],[68327,68330,1],[68343,68351,1],[68406,68408,1],[68438,68439,1],[68467,68471,1],[68498,68504,1],[68509,68520,1],[68528,68607,1],[68681,68735,1],[68787,68799,1],[68851,68857,1],[68904,68911,1],[68922,69215,1],[69247,69290,43],[69294,69295,1],[69298,69372,1],[69416,69423,1],[69466,69487,1],[69514,69551,1],[69580,69599,1],[69623,69631,1],[69710,69713,1],[69750,69758,1],[69821,69827,6],[69828,69839,1],[69865,69871,1],[69882,69887,1],[69941,69960,19],[69961,69967,1],[70007,70015,1],[70112,70133,21],[70134,70143,1],[70162,70210,48],[70211,70271,1],[70279,70281,2],[70286,70302,16],[70314,70319,1],[70379,70383,1],[70394,70399,1],[70404,70413,9],[70414,70417,3],[70418,70441,23],[70449,70452,3],[70458,70469,11],[70470,70473,3],[70474,70478,4],[70479,70481,2],[70482,70486,1],[70488,70492,1],[70500,70501,1],[70509,70511,1],[70517,70655,1],[70748,70754,6],[70755,70783,1],[70856,70863,1],[70874,71039,1],[71094,71095,1],[71134,71167,1],[71237,71247,1],[71258,71263,1],[71277,71295,1],[71354,71359,1],[71370,71423,1],[71451,71452,1],[71468,71471,1],[71495,71679,1],[71740,71839,1],[71923,71934,1],[71943,71944,1],[71946,71947,1],[71956,71959,3],[71990,71993,3],[71994,72007,13],[72008,72015,1],[72026,72095,1],[72104,72105,1],[72152,72153,1],[72165,72191,1],[72264,72271,1],[72355,72367,1],[72441,72447,1],[72458,72703,1],[72713,72759,46],[72774,72783,1],[72813,72815,1],[72848,72849,1],[72872,72887,15],[72888,72959,1],[72967,72970,3],[73015,73017,1],[73019,73022,3],[73032,73039,1],[73050,73055,1],[73062,73065,3],[73103,73106,3],[73113,73119,1],[73130,73439,1],[73465,73471,1],[73489,73531,42],[73532,73533,1],[73562,73647,1],[73649,73663,1],[73714,73726,1],[74650,74751,1],[74863,74869,6],[74870,74879,1],[75076,77711,1],[77811,77823,1],[78896,78911,1],[78934,82943,1],[83527,92159,1],[92729,92735,1],[92767,92778,11],[92779,92781,1],[92863,92874,11],[92875,92879,1],[92910,92911,1],[92918,92927,1],[92998,93007,1],[93018,93026,8],[93048,93052,1],[93072,93759,1],[93851,93951,1],[94027,94030,1],[94088,94094,1],[94112,94175,1],[94181,94191,1],[94194,94207,1],[100344,100351,1],[101590,101631,1],[101641,110575,1],[110580,110588,8],[110591,110883,292],[110884,110897,1],[110899,110927,1],[110931,110932,1],[110934,110947,1],[110952,110959,1],[111356,113663,1],[113771,113775,1],[113789,113791,1],[113801,113807,1],[113818,113819,1],[113824,118527,1],[118574,118575,1],[118599,118607,1],[118724,118783,1],[119030,119039,1],[119079,119080,1],[119155,119162,1],[119275,119295,1],[119366,119487,1],[119508,119519,1],[119540,119551,1],[119639,119647,1],[119673,119807,1],[119893,119965,72],[119968,119969,1],[119971,119972,1],[119975,119976,1],[119981,119994,13],[119996,120004,8],[120070,120075,5],[120076,120085,9],[120093,120122,29],[120127,120133,6],[120135,120137,1],[120145,120486,341],[120487,120780,293],[120781,121484,703],[121485,121498,1],[121504,121520,16],[121521,122623,1],[122655,122660,1],[122667,122879,1],[122887,122905,18],[122906,122914,8],[122917,122923,6],[122924,122927,1],[122990,123022,1],[123024,123135,1],[123181,123183,1],[123198,123199,1],[123210,123213,1],[123216,123535,1],[123567,123583,1],[123642,123646,1],[123648,124111,1],[124154,124895,1],[124903,124908,5],[124911,124927,16],[125125,125126,1],[125143,125183,1],[125260,125263,1],[125274,125277,1],[125280,126064,1],[126133,126208,1],[126270,126463,1],[126468,126496,28],[126499,126501,2],[126502,126504,2],[126515,126520,5],[126522,126524,2],[126525,126529,1],[126531,126534,1],[126536,126540,2],[126544,126547,3],[126549,126550,1],[126552,126560,2],[126563,126565,2],[126566,126571,5],[126579,126589,5],[126591,126602,11],[126620,126624,1],[126628,126634,6],[126652,126703,1],[126706,126975,1],[127020,127023,1],[127124,127135,1],[127151,127152,1],[127168,127184,16],[127222,127231,1],[127406,127461,1],[127491,127503,1],[127548,127551,1],[127561,127567,1],[127570,127583,1],[127590,127743,1],[128728,128731,1],[128749,128751,1],[128765,128767,1],[128887,128890,1],[128986,128991,1],[129004,129007,1],[129009,129023,1],[129036,129039,1],[129096,129103,1],[129114,129119,1],[129160,129167,1],[129198,129199,1],[129202,129279,1],[129620,129631,1],[129646,129647,1],[129661,129663,1],[129673,129679,1],[129726,129734,8],[129735,129741,1],[129756,129759,1],[129769,129775,1],[129785,129791,1],[129939,129995,56],[129996,130031,1],[130042,131071,1],[173792,173823,1],[177978,177983,1],[178206,178207,1],[183970,183983,1],[191457,194559,1],[195102,196607,1],[201547,201551,1],[205744,917759,1],[918e3,1114111,1]];static Cc=[[0,31,1],[127,159,1]];static Cf=[[173,1536,1363],[1537,1541,1],[1564,1757,193],[1807,2192,385],[2193,2274,81],[6158,8203,2045],[8204,8207,1],[8234,8238,1],[8288,8292,1],[8294,8303,1],[65279,65529,250],[65530,65531,1],[69821,69837,16],[78896,78911,1],[113824,113827,1],[119155,119162,1],[917505,917536,31],[917537,917631,1]];static Co=[[57344,63743,1],[983040,1048573,1],[1048576,1114109,1]];static Cs=[[55296,57343,1]];static L=[[65,90,1],[97,122,1],[170,181,11],[186,192,6],[193,214,1],[216,246,1],[248,705,1],[710,721,1],[736,740,1],[748,750,2],[880,884,1],[886,887,1],[890,893,1],[895,902,7],[904,906,1],[908,910,2],[911,929,1],[931,1013,1],[1015,1153,1],[1162,1327,1],[1329,1366,1],[1369,1376,7],[1377,1416,1],[1488,1514,1],[1519,1522,1],[1568,1610,1],[1646,1647,1],[1649,1747,1],[1749,1765,16],[1766,1774,8],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2036,2037,1],[2042,2048,6],[2049,2069,1],[2074,2084,10],[2088,2112,24],[2113,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2249,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2417,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3654,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3782,3804,22],[3805,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4256,18],[4257,4293,1],[4295,4301,6],[4304,4346,1],[4348,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5024,5109,1],[5112,5117,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6103,6108,5],[6176,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6823,6917,94],[6918,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7293,1],[7296,7304,1],[7312,7354,1],[7357,7359,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,7424,6],[7425,7615,1],[7680,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8124,1],[8126,8130,4],[8131,8132,1],[8134,8140,1],[8144,8147,1],[8150,8155,1],[8160,8172,1],[8178,8180,1],[8182,8188,1],[8305,8319,14],[8336,8348,1],[8450,8455,5],[8458,8467,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8495,8505,1],[8508,8511,1],[8517,8521,1],[8526,8579,53],[8580,11264,2684],[11265,11492,1],[11499,11502,1],[11506,11507,1],[11520,11557,1],[11559,11565,6],[11568,11623,1],[11631,11648,17],[11649,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[11823,12293,470],[12294,12337,43],[12338,12341,1],[12347,12348,1],[12353,12438,1],[12445,12447,1],[12449,12538,1],[12540,12543,1],[12549,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,42124,1],[42192,42237,1],[42240,42508,1],[42512,42527,1],[42538,42539,1],[42560,42606,1],[42623,42653,1],[42656,42725,1],[42775,42783,1],[42786,42888,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43471,43488,17],[43489,43492,1],[43494,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43741,1],[43744,43754,1],[43762,43764,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43824,43866,1],[43868,43881,1],[43888,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64256,64262,1],[64275,64279,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65313,65338,1],[65345,65370,1],[65382,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66560,66717,1],[66736,66771,1],[66776,66811,1],[66816,66855,1],[66864,66915,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68736,68786,1],[68800,68850,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71840,71903,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[92992,92995,1],[93027,93047,1],[93053,93071,1],[93760,93823,1],[93952,94026,1],[94032,94099,67],[94100,94111,1],[94176,94177,1],[94179,94208,29],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120512,1],[120514,120538,1],[120540,120570,1],[120572,120596,1],[120598,120628,1],[120630,120654,1],[120656,120686,1],[120688,120712,1],[120714,120744,1],[120746,120770,1],[120772,120779,1],[122624,122654,1],[122661,122666,1],[122928,122989,1],[123136,123180,1],[123191,123197,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124139,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[125184,125251,1],[125259,126464,1205],[126465,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]];static foldL=[[837,837,1]];static Ll=[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,311,2],[312,328,2],[329,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[397,402,5],[405,409,4],[410,411,1],[414,417,3],[419,421,2],[424,426,2],[427,429,2],[432,436,4],[438,441,3],[442,445,3],[446,447,1],[454,460,3],[462,476,2],[477,495,2],[496,499,3],[501,505,4],[507,563,2],[564,569,1],[572,575,3],[576,578,2],[583,591,2],[592,659,1],[661,687,1],[881,883,2],[887,891,4],[892,893,1],[912,940,28],[941,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1020,1072,52],[1073,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1376,1416,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7424,7467,1],[7531,7543,1],[7545,7578,1],[7681,7829,2],[7830,7837,1],[7839,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8016,8023,1],[8032,8039,1],[8048,8061,1],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8112,8116,1],[8118,8119,1],[8126,8130,4],[8131,8132,1],[8134,8135,1],[8144,8147,1],[8150,8151,1],[8160,8167,1],[8178,8180,1],[8182,8183,1],[8458,8462,4],[8463,8467,4],[8495,8505,5],[8508,8509,1],[8518,8521,1],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11377,11379,2],[11380,11382,2],[11383,11387,1],[11393,11491,2],[11492,11500,8],[11502,11507,5],[11520,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42800,42801,1],[42803,42865,2],[42866,42872,1],[42874,42876,2],[42879,42887,2],[42892,42894,2],[42897,42899,2],[42900,42901,1],[42903,42921,2],[42927,42933,6],[42935,42947,2],[42952,42954,2],[42961,42969,2],[42998,43002,4],[43824,43866,1],[43872,43880,1],[43888,43967,1],[64256,64262,1],[64275,64279,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[119834,119859,1],[119886,119892,1],[119894,119911,1],[119938,119963,1],[119990,119993,1],[119995,119997,2],[119998,120003,1],[120005,120015,1],[120042,120067,1],[120094,120119,1],[120146,120171,1],[120198,120223,1],[120250,120275,1],[120302,120327,1],[120354,120379,1],[120406,120431,1],[120458,120485,1],[120514,120538,1],[120540,120545,1],[120572,120596,1],[120598,120603,1],[120630,120654,1],[120656,120661,1],[120688,120712,1],[120714,120719,1],[120746,120770,1],[120772,120777,1],[120779,122624,1845],[122625,122633,1],[122635,122654,1],[122661,122666,1],[125218,125251,1]];static foldLl=[[65,90,1],[192,214,1],[216,222,1],[256,302,2],[306,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,453,1],[455,456,1],[458,459,1],[461,475,2],[478,494,2],[497,498,1],[500,502,2],[503,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[837,880,43],[882,886,4],[895,902,7],[904,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,984,9],[986,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8072,8079,1],[8088,8095,1],[8104,8111,1],[8120,8124,1],[8136,8140,1],[8152,8155,1],[8168,8172,1],[8184,8188,1],[8486,8490,4],[8491,8498,7],[8579,11264,2685],[11265,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[125184,125217,1]];static Lm=[[688,705,1],[710,721,1],[736,740,1],[748,750,2],[884,890,6],[1369,1600,231],[1765,1766,1],[2036,2037,1],[2042,2074,32],[2084,2088,4],[2249,2417,168],[3654,3782,128],[4348,6103,1755],[6211,6823,612],[7288,7293,1],[7468,7530,1],[7544,7579,35],[7580,7615,1],[8305,8319,14],[8336,8348,1],[11388,11389,1],[11631,11823,192],[12293,12337,44],[12338,12341,1],[12347,12445,98],[12446,12540,94],[12541,12542,1],[40981,42232,1251],[42233,42237,1],[42508,42623,115],[42652,42653,1],[42775,42783,1],[42864,42888,24],[42994,42996,1],[43e3,43001,1],[43471,43494,23],[43632,43741,109],[43763,43764,1],[43868,43871,1],[43881,65392,21511],[65438,65439,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[92992,92995,1],[94099,94111,1],[94176,94177,1],[94179,110576,16397],[110577,110579,1],[110581,110587,1],[110589,110590,1],[122928,122989,1],[123191,123197,1],[124139,125259,1120]];static Lo=[[170,186,16],[443,448,5],[449,451,1],[660,1488,828],[1489,1514,1],[1519,1522,1],[1568,1599,1],[1601,1610,1],[1646,1647,1],[1649,1747,1],[1749,1774,25],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2048,2069,1],[2112,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2248,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2418,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3653,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3804,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4352,114],[4353,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6108,6176,68],[6177,6210,1],[6212,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6917,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7287,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,8501,1083],[8502,8504,1],[11568,11623,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[12294,12348,54],[12353,12438,1],[12447,12449,2],[12450,12538,1],[12543,12549,6],[12550,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,40980,1],[40982,42124,1],[42192,42231,1],[42240,42507,1],[42512,42527,1],[42538,42539,1],[42606,42656,50],[42657,42725,1],[42895,42999,104],[43003,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43488,43492,1],[43495,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43631,1],[43633,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43740,1],[43744,43754,1],[43762,43777,15],[43778,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43968,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65382,65391,1],[65393,65437,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66640,66717,1],[66816,66855,1],[66864,66915,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[93027,93047,1],[93053,93071,1],[93952,94026,1],[94032,94208,176],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[122634,123136,502],[123137,123180,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124138,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]];static Lt=[[453,459,3],[498,8072,7574],[8073,8079,1],[8088,8095,1],[8104,8111,1],[8124,8140,16],[8188,8188,1]];static foldLt=[[452,454,2],[455,457,2],[458,460,2],[497,499,2],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8115,8131,16],[8179,8179,1]];static Lu=[[65,90,1],[192,214,1],[216,222,1],[256,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,461,3],[463,475,2],[478,494,2],[497,500,3],[502,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[880,882,2],[886,895,9],[902,904,2],[905,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,978,3],[979,980,1],[984,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8120,8123,1],[8136,8139,1],[8152,8155,1],[8168,8172,1],[8184,8187,1],[8450,8455,5],[8459,8461,1],[8464,8466,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8496,8499,1],[8510,8511,1],[8517,8579,62],[11264,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[119808,119833,1],[119860,119885,1],[119912,119937,1],[119964,119966,2],[119967,119973,3],[119974,119977,3],[119978,119980,1],[119982,119989,1],[120016,120041,1],[120068,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120120,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120172,120197,1],[120224,120249,1],[120276,120301,1],[120328,120353,1],[120380,120405,1],[120432,120457,1],[120488,120512,1],[120546,120570,1],[120604,120628,1],[120662,120686,1],[120720,120744,1],[120778,125184,4406],[125185,125217,1]];static Upper=this.Lu;static foldLu=[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,303,2],[307,311,2],[314,328,2],[331,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[402,405,3],[409,410,1],[414,417,3],[419,421,2],[424,429,5],[432,436,4],[438,441,3],[445,447,2],[453,454,1],[456,457,1],[459,460,1],[462,476,2],[477,495,2],[498,499,1],[501,505,4],[507,543,2],[547,563,2],[572,575,3],[576,578,2],[583,591,2],[592,596,1],[598,599,1],[601,603,2],[604,608,4],[609,613,2],[614,616,2],[617,620,1],[623,625,2],[626,629,3],[637,640,3],[642,643,1],[647,652,1],[658,669,11],[670,837,167],[881,883,2],[887,891,4],[892,893,1],[940,943,1],[945,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1072,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1377,1414,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7545,7549,4],[7566,7681,115],[7683,7829,2],[7835,7841,6],[7843,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8017,8023,2],[8032,8039,1],[8048,8061,1],[8112,8113,1],[8126,8144,18],[8145,8160,15],[8161,8165,4],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11379,11382,3],[11393,11491,2],[11500,11502,2],[11507,11520,13],[11521,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42803,42863,2],[42874,42876,2],[42879,42887,2],[42892,42897,5],[42899,42900,1],[42903,42921,2],[42933,42947,2],[42952,42954,2],[42961,42967,6],[42969,42998,29],[43859,43888,29],[43889,43967,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[125218,125251,1]];static M=[[768,879,1],[1155,1161,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2307,1],[2362,2364,1],[2366,2383,1],[2385,2391,1],[2402,2403,1],[2433,2435,1],[2492,2494,2],[2495,2500,1],[2503,2504,1],[2507,2509,1],[2519,2530,11],[2531,2558,27],[2561,2563,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2672,31],[2673,2677,4],[2689,2691,1],[2748,2750,2],[2751,2757,1],[2759,2761,1],[2763,2765,1],[2786,2787,1],[2810,2815,1],[2817,2819,1],[2876,2878,2],[2879,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2914,2915,1],[2946,3006,60],[3007,3010,1],[3014,3016,1],[3018,3021,1],[3031,3072,41],[3073,3076,1],[3132,3134,2],[3135,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3203,1],[3260,3262,2],[3263,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3298,3299,1],[3315,3328,13],[3329,3331,1],[3387,3388,1],[3390,3396,1],[3398,3400,1],[3402,3405,1],[3415,3426,11],[3427,3457,30],[3458,3459,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3570,3571,1],[3633,3636,3],[3637,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3902,3903,1],[3953,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4139,101],[4140,4158,1],[4182,4185,1],[4190,4192,1],[4194,4196,1],[4199,4205,1],[4209,4212,1],[4226,4237,1],[4239,4250,11],[4251,4253,1],[4957,4959,1],[5906,5909,1],[5938,5940,1],[5970,5971,1],[6002,6003,1],[6068,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6443,1],[6448,6459,1],[6679,6683,1],[6741,6750,1],[6752,6780,1],[6783,6832,49],[6833,6862,1],[6912,6916,1],[6964,6980,1],[7019,7027,1],[7040,7042,1],[7073,7085,1],[7142,7155,1],[7204,7223,1],[7376,7378,1],[7380,7400,1],[7405,7412,7],[7415,7417,1],[7616,7679,1],[8400,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12335,1],[12441,12442,1],[42607,42610,1],[42612,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43043,24],[43044,43047,1],[43052,43136,84],[43137,43188,51],[43189,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43347,1],[43392,43395,1],[43443,43456,1],[43493,43561,68],[43562,43574,1],[43587,43596,9],[43597,43643,46],[43644,43645,1],[43696,43698,2],[43699,43700,1],[43703,43704,1],[43710,43711,1],[43713,43755,42],[43756,43759,1],[43765,43766,1],[44003,44010,1],[44012,44013,1],[64286,65024,738],[65025,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69632,69634,1],[69688,69702,1],[69744,69747,3],[69748,69759,11],[69760,69762,1],[69808,69818,1],[69826,69888,62],[69889,69890,1],[69927,69940,1],[69957,69958,1],[70003,70016,13],[70017,70018,1],[70067,70080,1],[70089,70092,1],[70094,70095,1],[70188,70199,1],[70206,70209,3],[70367,70378,1],[70400,70403,1],[70459,70460,1],[70462,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70502,3],[70503,70508,1],[70512,70516,1],[70709,70726,1],[70750,70832,82],[70833,70851,1],[71087,71093,1],[71096,71104,1],[71132,71133,1],[71216,71232,1],[71339,71351,1],[71453,71467,1],[71724,71738,1],[71984,71989,1],[71991,71992,1],[71995,71998,1],[72e3,72002,2],[72003,72145,142],[72146,72151,1],[72154,72160,1],[72164,72193,29],[72194,72202,1],[72243,72249,1],[72251,72254,1],[72263,72273,10],[72274,72283,1],[72330,72345,1],[72751,72758,1],[72760,72767,1],[72850,72871,1],[72873,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73098,67],[73099,73102,1],[73104,73105,1],[73107,73111,1],[73459,73462,1],[73472,73473,1],[73475,73524,49],[73525,73530,1],[73534,73538,1],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94033,2],[94034,94087,1],[94095,94098,1],[94180,94192,12],[94193,113821,19628],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119141,119145,1],[119149,119154,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]];static foldM=[[921,953,32],[8126,8126,1]];static Mc=[[2307,2363,56],[2366,2368,1],[2377,2380,1],[2382,2383,1],[2434,2435,1],[2494,2496,1],[2503,2504,1],[2507,2508,1],[2519,2563,44],[2622,2624,1],[2691,2750,59],[2751,2752,1],[2761,2763,2],[2764,2818,54],[2819,2878,59],[2880,2887,7],[2888,2891,3],[2892,2903,11],[3006,3007,1],[3009,3010,1],[3014,3016,1],[3018,3020,1],[3031,3073,42],[3074,3075,1],[3137,3140,1],[3202,3203,1],[3262,3264,2],[3265,3268,1],[3271,3272,1],[3274,3275,1],[3285,3286,1],[3315,3330,15],[3331,3390,59],[3391,3392,1],[3398,3400,1],[3402,3404,1],[3415,3458,43],[3459,3535,76],[3536,3537,1],[3544,3551,1],[3570,3571,1],[3902,3903,1],[3967,4139,172],[4140,4145,5],[4152,4155,3],[4156,4182,26],[4183,4194,11],[4195,4196,1],[4199,4205,1],[4227,4228,1],[4231,4236,1],[4239,4250,11],[4251,4252,1],[5909,5940,31],[6070,6078,8],[6079,6085,1],[6087,6088,1],[6435,6438,1],[6441,6443,1],[6448,6449,1],[6451,6456,1],[6681,6682,1],[6741,6743,2],[6753,6755,2],[6756,6765,9],[6766,6770,1],[6916,6965,49],[6971,6973,2],[6974,6977,1],[6979,6980,1],[7042,7073,31],[7078,7079,1],[7082,7143,61],[7146,7148,1],[7150,7154,4],[7155,7204,49],[7205,7211,1],[7220,7221,1],[7393,7415,22],[12334,12335,1],[43043,43044,1],[43047,43136,89],[43137,43188,51],[43189,43203,1],[43346,43347,1],[43395,43444,49],[43445,43450,5],[43451,43454,3],[43455,43456,1],[43567,43568,1],[43571,43572,1],[43597,43643,46],[43645,43755,110],[43758,43759,1],[43765,44003,238],[44004,44006,2],[44007,44009,2],[44010,44012,2],[69632,69634,2],[69762,69808,46],[69809,69810,1],[69815,69816,1],[69932,69957,25],[69958,70018,60],[70067,70069,1],[70079,70080,1],[70094,70188,94],[70189,70190,1],[70194,70195,1],[70197,70368,171],[70369,70370,1],[70402,70403,1],[70462,70463,1],[70465,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70709,210],[70710,70711,1],[70720,70721,1],[70725,70832,107],[70833,70834,1],[70841,70843,2],[70844,70846,1],[70849,71087,238],[71088,71089,1],[71096,71099,1],[71102,71216,114],[71217,71218,1],[71227,71228,1],[71230,71340,110],[71342,71343,1],[71350,71456,106],[71457,71462,5],[71724,71726,1],[71736,71984,248],[71985,71989,1],[71991,71992,1],[71997,72e3,3],[72002,72145,143],[72146,72147,1],[72156,72159,1],[72164,72249,85],[72279,72280,1],[72343,72751,408],[72766,72873,107],[72881,72884,3],[73098,73102,1],[73107,73108,1],[73110,73461,351],[73462,73475,13],[73524,73525,1],[73534,73535,1],[73537,94033,20496],[94034,94087,1],[94192,94193,1],[119141,119142,1],[119149,119154,1]];static Me=[[1160,1161,1],[6846,8413,1567],[8414,8416,1],[8418,8420,1],[42608,42610,1]];static Mn=[[768,879,1],[1155,1159,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2306,1],[2362,2364,2],[2369,2376,1],[2381,2385,4],[2386,2391,1],[2402,2403,1],[2433,2492,59],[2497,2500,1],[2509,2530,21],[2531,2558,27],[2561,2562,1],[2620,2625,5],[2626,2631,5],[2632,2635,3],[2636,2637,1],[2641,2672,31],[2673,2677,4],[2689,2690,1],[2748,2753,5],[2754,2757,1],[2759,2760,1],[2765,2786,21],[2787,2810,23],[2811,2815,1],[2817,2876,59],[2879,2881,2],[2882,2884,1],[2893,2901,8],[2902,2914,12],[2915,2946,31],[3008,3021,13],[3072,3076,4],[3132,3134,2],[3135,3136,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3260,59],[3263,3270,7],[3276,3277,1],[3298,3299,1],[3328,3329,1],[3387,3388,1],[3393,3396,1],[3405,3426,21],[3427,3457,30],[3530,3538,8],[3539,3540,1],[3542,3633,91],[3636,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3953,3966,1],[3968,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4141,103],[4142,4144,1],[4146,4151,1],[4153,4154,1],[4157,4158,1],[4184,4185,1],[4190,4192,1],[4209,4212,1],[4226,4229,3],[4230,4237,7],[4253,4957,704],[4958,4959,1],[5906,5908,1],[5938,5939,1],[5970,5971,1],[6002,6003,1],[6068,6069,1],[6071,6077,1],[6086,6089,3],[6090,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6434,1],[6439,6440,1],[6450,6457,7],[6458,6459,1],[6679,6680,1],[6683,6742,59],[6744,6750,1],[6752,6754,2],[6757,6764,1],[6771,6780,1],[6783,6832,49],[6833,6845,1],[6847,6862,1],[6912,6915,1],[6964,6966,2],[6967,6970,1],[6972,6978,6],[7019,7027,1],[7040,7041,1],[7074,7077,1],[7080,7081,1],[7083,7085,1],[7142,7144,2],[7145,7149,4],[7151,7153,1],[7212,7219,1],[7222,7223,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8400,8412,1],[8417,8421,4],[8422,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12333,1],[12441,12442,1],[42607,42612,5],[42613,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43045,26],[43046,43052,6],[43204,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43345,1],[43392,43394,1],[43443,43446,3],[43447,43449,1],[43452,43453,1],[43493,43561,68],[43562,43566,1],[43569,43570,1],[43573,43574,1],[43587,43596,9],[43644,43696,52],[43698,43700,1],[43703,43704,1],[43710,43711,1],[43713,43756,43],[43757,43766,9],[44005,44008,3],[44013,64286,20273],[65024,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69633,69688,55],[69689,69702,1],[69744,69747,3],[69748,69759,11],[69760,69761,1],[69811,69814,1],[69817,69818,1],[69826,69888,62],[69889,69890,1],[69927,69931,1],[69933,69940,1],[70003,70016,13],[70017,70070,53],[70071,70078,1],[70089,70092,1],[70095,70191,96],[70192,70193,1],[70196,70198,2],[70199,70206,7],[70209,70367,158],[70371,70378,1],[70400,70401,1],[70459,70460,1],[70464,70502,38],[70503,70508,1],[70512,70516,1],[70712,70719,1],[70722,70724,1],[70726,70750,24],[70835,70840,1],[70842,70847,5],[70848,70850,2],[70851,71090,239],[71091,71093,1],[71100,71101,1],[71103,71104,1],[71132,71133,1],[71219,71226,1],[71229,71231,2],[71232,71339,107],[71341,71344,3],[71345,71349,1],[71351,71453,102],[71454,71455,1],[71458,71461,1],[71463,71467,1],[71727,71735,1],[71737,71738,1],[71995,71996,1],[71998,72003,5],[72148,72151,1],[72154,72155,1],[72160,72193,33],[72194,72202,1],[72243,72248,1],[72251,72254,1],[72263,72273,10],[72274,72278,1],[72281,72283,1],[72330,72342,1],[72344,72345,1],[72752,72758,1],[72760,72765,1],[72767,72850,83],[72851,72871,1],[72874,72880,1],[72882,72883,1],[72885,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73104,73],[73105,73109,4],[73111,73459,348],[73460,73472,12],[73473,73526,53],[73527,73530,1],[73536,73538,2],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94095,64],[94096,94098,1],[94180,113821,19641],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]];static foldMn=[[921,953,32],[8126,8126,1]];static N=[[48,57,1],[178,179,1],[185,188,3],[189,190,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2548,2553,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[2930,2935,1],[3046,3058,1],[3174,3183,1],[3192,3198,1],[3302,3311,1],[3416,3422,1],[3430,3448,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3891,1],[4160,4169,1],[4240,4249,1],[4969,4988,1],[5870,5872,1],[6112,6121,1],[6128,6137,1],[6160,6169,1],[6470,6479,1],[6608,6618,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[8304,8308,4],[8309,8313,1],[8320,8329,1],[8528,8578,1],[8581,8585,1],[9312,9371,1],[9450,9471,1],[10102,10131,1],[11517,12295,778],[12321,12329,1],[12344,12346,1],[12690,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[42528,42537,1],[42726,42735,1],[43056,43061,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[65799,65843,1],[65856,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[66369,66378,9],[66513,66517,1],[66720,66729,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[68912,68921,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70113,70132,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71483,1],[71904,71922,1],[72016,72025,1],[72784,72812,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[73664,73684,1],[74752,74862,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125127,125135,1],[125264,125273,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1],[130032,130041,1]];static Nd=[[48,57,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[3046,3055,1],[3174,3183,1],[3302,3311,1],[3430,3439,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3881,1],[4160,4169,1],[4240,4249,1],[6112,6121,1],[6160,6169,1],[6470,6479,1],[6608,6617,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[42528,42537,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[66720,66729,1],[68912,68921,1],[69734,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71481,1],[71904,71913,1],[72016,72025,1],[72784,72793,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125264,125273,1],[130032,130041,1]];static Nl=[[5870,5872,1],[8544,8578,1],[8581,8584,1],[12295,12321,26],[12322,12329,1],[12344,12346,1],[42726,42735,1],[65856,65908,1],[66369,66378,9],[66513,66517,1],[74752,74862,1]];static No=[[178,179,1],[185,188,3],[189,190,1],[2548,2553,1],[2930,2935,1],[3056,3058,1],[3192,3198,1],[3416,3422,1],[3440,3448,1],[3882,3891,1],[4969,4988,1],[6128,6137,1],[6618,8304,1686],[8308,8313,1],[8320,8329,1],[8528,8543,1],[8585,9312,727],[9313,9371,1],[9450,9471,1],[10102,10131,1],[11517,12690,1173],[12691,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[43056,43061,1],[65799,65843,1],[65909,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69733,1],[70113,70132,1],[71482,71483,1],[71914,71922,1],[72794,72812,1],[73664,73684,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[125127,125135,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1]];static P=[[33,35,1],[37,42,1],[44,47,1],[58,59,1],[63,64,1],[91,93,1],[95,123,28],[125,161,36],[167,171,4],[182,183,1],[187,191,4],[894,903,9],[1370,1375,1],[1417,1418,1],[1470,1472,2],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3898,38],[3899,3901,1],[3973,4048,75],[4049,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5120,5742,622],[5787,5788,1],[5867,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8208,829],[8209,8231,1],[8240,8259,1],[8261,8273,1],[8275,8286,1],[8317,8318,1],[8333,8334,1],[8968,8971,1],[9001,9002,1],[10088,10101,1],[10181,10182,1],[10214,10223,1],[10627,10648,1],[10712,10715,1],[10748,10749,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11822,1],[11824,11855,1],[11858,11869,1],[12289,12291,1],[12296,12305,1],[12308,12319,1],[12336,12349,13],[12448,12539,91],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,64830,20819],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65121,1],[65123,65128,5],[65130,65131,1],[65281,65283,1],[65285,65290,1],[65292,65295,1],[65306,65307,1],[65311,65312,1],[65339,65341,1],[65343,65371,28],[65373,65375,2],[65376,65381,1],[65792,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69293,69461,168],[69462,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]];static Pc=[[95,8255,8160],[8256,8276,20],[65075,65076,1],[65101,65103,1],[65343,65343,1]];static Pd=[[45,1418,1373],[1470,5120,3650],[6150,8208,2058],[8209,8213,1],[11799,11802,3],[11834,11835,1],[11840,11869,29],[12316,12336,20],[12448,65073,52625],[65074,65112,38],[65123,65293,170],[69293,69293,1]];static Pe=[[41,93,52],[125,3899,3774],[3901,5788,1887],[8262,8318,56],[8334,8969,635],[8971,9002,31],[10089,10101,2],[10182,10215,33],[10217,10223,2],[10628,10648,2],[10713,10715,2],[10749,11811,1062],[11813,11817,2],[11862,11868,2],[12297,12305,2],[12309,12315,2],[12318,12319,1],[64830,65048,218],[65078,65092,2],[65096,65114,18],[65116,65118,2],[65289,65341,52],[65373,65379,3]];static Pf=[[187,8217,8030],[8221,8250,29],[11779,11781,2],[11786,11789,3],[11805,11809,4]];static Pi=[[171,8216,8045],[8219,8220,1],[8223,8249,26],[11778,11780,2],[11785,11788,3],[11804,11808,4]];static Po=[[33,35,1],[37,39,1],[42,46,2],[47,58,11],[59,63,4],[64,92,28],[161,167,6],[182,183,1],[191,894,703],[903,1370,467],[1371,1375,1],[1417,1472,55],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3973,113],[4048,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5742,5867,125],[5868,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6149,1],[6151,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8214,835],[8215,8224,9],[8225,8231,1],[8240,8248,1],[8251,8254,1],[8257,8259,1],[8263,8273,1],[8275,8277,2],[8278,8286,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11782,5],[11783,11784,1],[11787,11790,3],[11791,11798,1],[11800,11801,1],[11803,11806,3],[11807,11818,11],[11819,11822,1],[11824,11833,1],[11836,11839,1],[11841,11843,2],[11844,11855,1],[11858,11860,1],[12289,12291,1],[12349,12539,190],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,65040,21029],[65041,65046,1],[65049,65072,23],[65093,65094,1],[65097,65100,1],[65104,65106,1],[65108,65111,1],[65119,65121,1],[65128,65130,2],[65131,65281,150],[65282,65283,1],[65285,65287,1],[65290,65294,2],[65295,65306,11],[65307,65311,4],[65312,65340,28],[65377,65380,3],[65381,65792,411],[65793,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69461,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]];static Ps=[[40,91,51],[123,3898,3775],[3900,5787,1887],[8218,8222,4],[8261,8317,56],[8333,8968,635],[8970,9001,31],[10088,10100,2],[10181,10214,33],[10216,10222,2],[10627,10647,2],[10712,10714,2],[10748,11810,1062],[11812,11816,2],[11842,11861,19],[11863,11867,2],[12296,12304,2],[12308,12314,2],[12317,64831,52514],[65047,65077,30],[65079,65091,2],[65095,65113,18],[65115,65117,2],[65288,65339,51],[65371,65375,4],[65378,65378,1]];static S=[[36,43,7],[60,62,1],[94,96,2],[124,126,2],[162,166,1],[168,169,1],[172,174,2],[175,177,1],[180,184,4],[215,247,32],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,1014,113],[1154,1421,267],[1422,1423,1],[1542,1544,1],[1547,1550,3],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2046,2047,1],[2184,2546,362],[2547,2554,7],[2555,2801,246],[2928,3059,131],[3060,3066,1],[3199,3407,208],[3449,3647,198],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6107,366],[6464,6622,158],[6623,6655,1],[7009,7018,1],[7028,7036,1],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8352,8384,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8472,1],[8478,8483,1],[8485,8489,2],[8494,8506,12],[8507,8512,5],[8513,8516,1],[8522,8525,1],[8527,8586,59],[8587,8592,5],[8593,8967,1],[8972,9e3,1],[9003,9254,1],[9280,9290,1],[9372,9449,1],[9472,10087,1],[10132,10180,1],[10183,10213,1],[10224,10626,1],[10649,10711,1],[10716,10747,1],[10750,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12443,12444,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43048,43051,1],[43062,43065,1],[43639,43641,1],[43867,43882,15],[43883,64297,20414],[64434,64450,1],[64832,64847,1],[64975,65020,45],[65021,65023,1],[65122,65124,2],[65125,65126,1],[65129,65284,155],[65291,65308,17],[65309,65310,1],[65342,65344,2],[65372,65374,2],[65504,65510,1],[65512,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,123647,432],[126124,126128,4],[126254,126704,450],[126705,126976,271],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]];static Sc=[[36,162,126],[163,165,1],[1423,1547,124],[2046,2047,1],[2546,2547,1],[2555,2801,246],[3065,3647,582],[6107,8352,2245],[8353,8384,1],[43064,65020,21956],[65129,65284,155],[65504,65505,1],[65509,65510,1],[73693,73696,1],[123647,126128,2481]];static Sk=[[94,96,2],[168,175,7],[180,184,4],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,2184,1283],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[12443,12444,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43867,43882,15],[43883,64434,20551],[64435,64450,1],[65342,65344,2],[65507,127995,62488],[127996,127999,1]];static Sm=[[43,60,17],[61,62,1],[124,126,2],[172,177,5],[215,247,32],[1014,1542,528],[1543,1544,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8472,8512,40],[8513,8516,1],[8523,8592,69],[8593,8596,1],[8602,8603,1],[8608,8614,3],[8622,8654,32],[8655,8658,3],[8660,8692,32],[8693,8959,1],[8992,8993,1],[9084,9115,31],[9116,9139,1],[9180,9185,1],[9655,9665,10],[9720,9727,1],[9839,10176,337],[10177,10180,1],[10183,10213,1],[10224,10239,1],[10496,10626,1],[10649,10711,1],[10716,10747,1],[10750,11007,1],[11056,11076,1],[11079,11084,1],[64297,65122,825],[65124,65126,1],[65291,65308,17],[65309,65310,1],[65372,65374,2],[65506,65513,7],[65514,65516,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[126704,126705,1]];static So=[[166,169,3],[174,176,2],[1154,1421,267],[1422,1550,128],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2554,2928,374],[3059,3064,1],[3066,3199,133],[3407,3449,42],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6464,723],[6622,6655,1],[7009,7018,1],[7028,7036,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8478,7],[8479,8483,1],[8485,8489,2],[8494,8506,12],[8507,8522,15],[8524,8525,1],[8527,8586,59],[8587,8597,10],[8598,8601,1],[8604,8607,1],[8609,8610,1],[8612,8613,1],[8615,8621,1],[8623,8653,1],[8656,8657,1],[8659,8661,2],[8662,8691,1],[8960,8967,1],[8972,8991,1],[8994,9e3,1],[9003,9083,1],[9085,9114,1],[9140,9179,1],[9186,9254,1],[9280,9290,1],[9372,9449,1],[9472,9654,1],[9656,9664,1],[9666,9719,1],[9728,9838,1],[9840,10087,1],[10132,10175,1],[10240,10495,1],[11008,11055,1],[11077,11078,1],[11085,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[43048,43051,1],[43062,43063,1],[43065,43639,574],[43640,43641,1],[64832,64847,1],[64975,65021,46],[65022,65023,1],[65508,65512,4],[65517,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73692,1],[73697,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,126124,2909],[126254,126976,722],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,127994,1],[128e3,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]];static Z=[[32,160,128],[5760,8192,2432],[8193,8202,1],[8232,8233,1],[8239,8287,48],[12288,12288,1]];static Zl=[[8232,8232,1]];static Zp=[[8233,8233,1]];static Zs=[[32,160,128],[5760,8192,2432],[8193,8202,1],[8239,8287,48],[12288,12288,1]];static Adlam=[[125184,125259,1],[125264,125273,1],[125278,125279,1]];static Ahom=[[71424,71450,1],[71453,71467,1],[71472,71494,1]];static Anatolian_Hieroglyphs=[[82944,83526,1]];static Arabic=[[1536,1540,1],[1542,1547,1],[1549,1562,1],[1564,1566,1],[1568,1599,1],[1601,1610,1],[1622,1647,1],[1649,1756,1],[1758,1791,1],[1872,1919,1],[2160,2190,1],[2192,2193,1],[2200,2273,1],[2275,2303,1],[64336,64450,1],[64467,64829,1],[64832,64911,1],[64914,64967,1],[64975,65008,33],[65009,65023,1],[65136,65140,1],[65142,65276,1],[69216,69246,1],[69373,69375,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[126704,126705,1]];static Armenian=[[1329,1366,1],[1369,1418,1],[1421,1423,1],[64275,64279,1]];static Avestan=[[68352,68405,1],[68409,68415,1]];static Balinese=[[6912,6988,1],[6992,7038,1]];static Bamum=[[42656,42743,1],[92160,92728,1]];static Bassa_Vah=[[92880,92909,1],[92912,92917,1]];static Batak=[[7104,7155,1],[7164,7167,1]];static Bengali=[[2432,2435,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2492,2500,1],[2503,2504,1],[2507,2510,1],[2519,2524,5],[2525,2527,2],[2528,2531,1],[2534,2558,1]];static Bhaiksuki=[[72704,72712,1],[72714,72758,1],[72760,72773,1],[72784,72812,1]];static Bopomofo=[[746,747,1],[12549,12591,1],[12704,12735,1]];static Brahmi=[[69632,69709,1],[69714,69749,1],[69759,69759,1]];static Braille=[[10240,10495,1]];static Buginese=[[6656,6683,1],[6686,6687,1]];static Buhid=[[5952,5971,1]];static Canadian_Aboriginal=[[5120,5759,1],[6320,6389,1],[72368,72383,1]];static Carian=[[66208,66256,1]];static Caucasian_Albanian=[[66864,66915,1],[66927,66927,1]];static Chakma=[[69888,69940,1],[69942,69959,1]];static Cham=[[43520,43574,1],[43584,43597,1],[43600,43609,1],[43612,43615,1]];static Cherokee=[[5024,5109,1],[5112,5117,1],[43888,43967,1]];static Chorasmian=[[69552,69579,1]];static Common=[[0,64,1],[91,96,1],[123,169,1],[171,185,1],[187,191,1],[215,247,32],[697,735,1],[741,745,1],[748,767,1],[884,894,10],[901,903,2],[1541,1548,7],[1563,1567,4],[1600,1757,157],[2274,2404,130],[2405,3647,1242],[4053,4056,1],[4347,5867,1520],[5868,5869,1],[5941,5942,1],[6146,6147,1],[6149,7379,1230],[7393,7401,8],[7402,7404,1],[7406,7411,1],[7413,7415,1],[7418,8192,774],[8193,8203,1],[8206,8292,1],[8294,8304,1],[8308,8318,1],[8320,8334,1],[8352,8384,1],[8448,8485,1],[8487,8489,1],[8492,8497,1],[8499,8525,1],[8527,8543,1],[8585,8587,1],[8592,9254,1],[9280,9290,1],[9312,10239,1],[10496,11123,1],[11126,11157,1],[11159,11263,1],[11776,11869,1],[12272,12292,1],[12294,12296,2],[12297,12320,1],[12336,12343,1],[12348,12351,1],[12443,12444,1],[12448,12539,91],[12540,12688,148],[12689,12703,1],[12736,12771,1],[12783,12832,49],[12833,12895,1],[12927,13007,1],[13055,13144,89],[13145,13311,1],[19904,19967,1],[42752,42785,1],[42888,42890,1],[43056,43065,1],[43310,43471,161],[43867,43882,15],[43883,64830,20947],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65126,1],[65128,65131,1],[65279,65281,2],[65282,65312,1],[65339,65344,1],[65371,65381,1],[65392,65438,46],[65439,65504,65],[65505,65510,1],[65512,65518,1],[65529,65533,1],[65792,65794,1],[65799,65843,1],[65847,65855,1],[65936,65948,1],[66e3,66044,1],[66273,66299,1],[113824,113827,1],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119142,1],[119146,119162,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119488,119507,1],[119520,119539,1],[119552,119638,1],[119648,119672,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120779,1],[120782,120831,1],[126065,126132,1],[126209,126269,1],[126976,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127232,127405,1],[127462,127487,1],[127489,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1],[130032,130041,1],[917505,917536,31],[917537,917631,1]];static foldCommon=[[924,956,32]];static Coptic=[[994,1007,1],[11392,11507,1],[11513,11519,1]];static Cuneiform=[[73728,74649,1],[74752,74862,1],[74864,74868,1],[74880,75075,1]];static Cypriot=[[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3]];static Cypro_Minoan=[[77712,77810,1]];static Cyrillic=[[1024,1156,1],[1159,1327,1],[7296,7304,1],[7467,7544,77],[11744,11775,1],[42560,42655,1],[65070,65071,1],[122928,122989,1],[123023,123023,1]];static Deseret=[[66560,66639,1]];static Devanagari=[[2304,2384,1],[2389,2403,1],[2406,2431,1],[43232,43263,1],[72448,72457,1]];static Dives_Akuru=[[71936,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71989,1],[71991,71992,1],[71995,72006,1],[72016,72025,1]];static Dogra=[[71680,71739,1]];static Duployan=[[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[113820,113823,1]];static Egyptian_Hieroglyphs=[[77824,78933,1]];static Elbasan=[[66816,66855,1]];static Elymaic=[[69600,69622,1]];static Ethiopic=[[4608,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4957,4988,1],[4992,5017,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1]];static Georgian=[[4256,4293,1],[4295,4301,6],[4304,4346,1],[4348,4351,1],[7312,7354,1],[7357,7359,1],[11520,11557,1],[11559,11565,6]];static Glagolitic=[[11264,11359,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1]];static Gothic=[[66352,66378,1]];static Grantha=[[70400,70403,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70460,70468,1],[70471,70472,1],[70475,70477,1],[70480,70487,7],[70493,70499,1],[70502,70508,1],[70512,70516,1]];static Greek=[[880,883,1],[885,887,1],[890,893,1],[895,900,5],[902,904,2],[905,906,1],[908,910,2],[911,929,1],[931,993,1],[1008,1023,1],[7462,7466,1],[7517,7521,1],[7526,7530,1],[7615,7936,321],[7937,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8132,1],[8134,8147,1],[8150,8155,1],[8157,8175,1],[8178,8180,1],[8182,8190,1],[8486,43877,35391],[65856,65934,1],[65952,119296,53344],[119297,119365,1]];static foldGreek=[[181,837,656]];static Gujarati=[[2689,2691,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2748,2757,1],[2759,2761,1],[2763,2765,1],[2768,2784,16],[2785,2787,1],[2790,2801,1],[2809,2815,1]];static Gunjala_Gondi=[[73056,73061,1],[73063,73064,1],[73066,73102,1],[73104,73105,1],[73107,73112,1],[73120,73129,1]];static Gurmukhi=[[2561,2563,1],[2565,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2649,8],[2650,2652,1],[2654,2662,8],[2663,2678,1]];static Han=[[11904,11929,1],[11931,12019,1],[12032,12245,1],[12293,12295,2],[12321,12329,1],[12344,12347,1],[13312,19903,1],[19968,40959,1],[63744,64109,1],[64112,64217,1],[94178,94179,1],[94192,94193,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]];static Hangul=[[4352,4607,1],[12334,12335,1],[12593,12686,1],[12800,12830,1],[12896,12926,1],[43360,43388,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1]];static Hanifi_Rohingya=[[68864,68903,1],[68912,68921,1]];static Hanunoo=[[5920,5940,1]];static Hatran=[[67808,67826,1],[67828,67829,1],[67835,67839,1]];static Hebrew=[[1425,1479,1],[1488,1514,1],[1519,1524,1],[64285,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64335,1]];static Hiragana=[[12353,12438,1],[12445,12447,1],[110593,110879,1],[110898,110928,30],[110929,110930,1],[127488,127488,1]];static Imperial_Aramaic=[[67648,67669,1],[67671,67679,1]];static Inherited=[[768,879,1],[1157,1158,1],[1611,1621,1],[1648,2385,737],[2386,2388,1],[6832,6862,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8204,8205,1],[8400,8432,1],[12330,12333,1],[12441,12442,1],[65024,65039,1],[65056,65069,1],[66045,66272,227],[70459,118528,48069],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[917760,917999,1]];static foldInherited=[[921,953,32],[8126,8126,1]];static Inscriptional_Pahlavi=[[68448,68466,1],[68472,68479,1]];static Inscriptional_Parthian=[[68416,68437,1],[68440,68447,1]];static Javanese=[[43392,43469,1],[43472,43481,1],[43486,43487,1]];static Kaithi=[[69760,69826,1],[69837,69837,1]];static Kannada=[[3200,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3260,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3293,3294,1],[3296,3299,1],[3302,3311,1],[3313,3315,1]];static Katakana=[[12449,12538,1],[12541,12543,1],[12784,12799,1],[13008,13054,1],[13056,13143,1],[65382,65391,1],[65393,65437,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110880,288],[110881,110882,1],[110933,110948,15],[110949,110951,1]];static Kawi=[[73472,73488,1],[73490,73530,1],[73534,73561,1]];static Kayah_Li=[[43264,43309,1],[43311,43311,1]];static Kharoshthi=[[68096,68099,1],[68101,68102,1],[68108,68115,1],[68117,68119,1],[68121,68149,1],[68152,68154,1],[68159,68168,1],[68176,68184,1]];static Khitan_Small_Script=[[94180,101120,6940],[101121,101589,1]];static Khmer=[[6016,6109,1],[6112,6121,1],[6128,6137,1],[6624,6655,1]];static Khojki=[[70144,70161,1],[70163,70209,1]];static Khudawadi=[[70320,70378,1],[70384,70393,1]];static Lao=[[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3773,1],[3776,3780,1],[3782,3784,2],[3785,3790,1],[3792,3801,1],[3804,3807,1]];static Latin=[[65,90,1],[97,122,1],[170,186,16],[192,214,1],[216,246,1],[248,696,1],[736,740,1],[7424,7461,1],[7468,7516,1],[7522,7525,1],[7531,7543,1],[7545,7614,1],[7680,7935,1],[8305,8319,14],[8336,8348,1],[8490,8491,1],[8498,8526,28],[8544,8584,1],[11360,11391,1],[42786,42887,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43007,1],[43824,43866,1],[43868,43876,1],[43878,43881,1],[64256,64262,1],[65313,65338,1],[65345,65370,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[122624,122654,1],[122661,122666,1]];static Lepcha=[[7168,7223,1],[7227,7241,1],[7245,7247,1]];static Limbu=[[6400,6430,1],[6432,6443,1],[6448,6459,1],[6464,6468,4],[6469,6479,1]];static Linear_A=[[67072,67382,1],[67392,67413,1],[67424,67431,1]];static Linear_B=[[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1]];static Lisu=[[42192,42239,1],[73648,73648,1]];static Lycian=[[66176,66204,1]];static Lydian=[[67872,67897,1],[67903,67903,1]];static Mahajani=[[69968,70006,1]];static Makasar=[[73440,73464,1]];static Malayalam=[[3328,3340,1],[3342,3344,1],[3346,3396,1],[3398,3400,1],[3402,3407,1],[3412,3427,1],[3430,3455,1]];static Mandaic=[[2112,2139,1],[2142,2142,1]];static Manichaean=[[68288,68326,1],[68331,68342,1]];static Marchen=[[72816,72847,1],[72850,72871,1],[72873,72886,1]];static Masaram_Gondi=[[72960,72966,1],[72968,72969,1],[72971,73014,1],[73018,73020,2],[73021,73023,2],[73024,73031,1],[73040,73049,1]];static Medefaidrin=[[93760,93850,1]];static Meetei_Mayek=[[43744,43766,1],[43968,44013,1],[44016,44025,1]];static Mende_Kikakui=[[124928,125124,1],[125127,125142,1]];static Meroitic_Cursive=[[68e3,68023,1],[68028,68047,1],[68050,68095,1]];static Meroitic_Hieroglyphs=[[67968,67999,1]];static Miao=[[93952,94026,1],[94031,94087,1],[94095,94111,1]];static Modi=[[71168,71236,1],[71248,71257,1]];static Mongolian=[[6144,6145,1],[6148,6150,2],[6151,6169,1],[6176,6264,1],[6272,6314,1],[71264,71276,1]];static Mro=[[92736,92766,1],[92768,92777,1],[92782,92783,1]];static Multani=[[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70313,1]];static Myanmar=[[4096,4255,1],[43488,43518,1],[43616,43647,1]];static Nabataean=[[67712,67742,1],[67751,67759,1]];static Nag_Mundari=[[124112,124153,1]];static Nandinagari=[[72096,72103,1],[72106,72151,1],[72154,72164,1]];static New_Tai_Lue=[[6528,6571,1],[6576,6601,1],[6608,6618,1],[6622,6623,1]];static Newa=[[70656,70747,1],[70749,70753,1]];static Nko=[[1984,2042,1],[2045,2047,1]];static Nushu=[[94177,110960,16783],[110961,111355,1]];static Nyiakeng_Puachue_Hmong=[[123136,123180,1],[123184,123197,1],[123200,123209,1],[123214,123215,1]];static Ogham=[[5760,5788,1]];static Ol_Chiki=[[7248,7295,1]];static Old_Hungarian=[[68736,68786,1],[68800,68850,1],[68858,68863,1]];static Old_Italic=[[66304,66339,1],[66349,66351,1]];static Old_North_Arabian=[[68224,68255,1]];static Old_Permic=[[66384,66426,1]];static Old_Persian=[[66464,66499,1],[66504,66517,1]];static Old_Sogdian=[[69376,69415,1]];static Old_South_Arabian=[[68192,68223,1]];static Old_Turkic=[[68608,68680,1]];static Old_Uyghur=[[69488,69513,1]];static Oriya=[[2817,2819,1],[2821,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2876,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2908,2909,1],[2911,2915,1],[2918,2935,1]];static Osage=[[66736,66771,1],[66776,66811,1]];static Osmanya=[[66688,66717,1],[66720,66729,1]];static Pahawh_Hmong=[[92928,92997,1],[93008,93017,1],[93019,93025,1],[93027,93047,1],[93053,93071,1]];static Palmyrene=[[67680,67711,1]];static Pau_Cin_Hau=[[72384,72440,1]];static Phags_Pa=[[43072,43127,1]];static Phoenician=[[67840,67867,1],[67871,67871,1]];static Psalter_Pahlavi=[[68480,68497,1],[68505,68508,1],[68521,68527,1]];static Rejang=[[43312,43347,1],[43359,43359,1]];static Runic=[[5792,5866,1],[5870,5880,1]];static Samaritan=[[2048,2093,1],[2096,2110,1]];static Saurashtra=[[43136,43205,1],[43214,43225,1]];static Sharada=[[70016,70111,1]];static Shavian=[[66640,66687,1]];static Siddham=[[71040,71093,1],[71096,71133,1]];static SignWriting=[[120832,121483,1],[121499,121503,1],[121505,121519,1]];static Sinhala=[[3457,3459,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3558,3567,1],[3570,3572,1],[70113,70132,1]];static Sogdian=[[69424,69465,1]];static Sora_Sompeng=[[69840,69864,1],[69872,69881,1]];static Soyombo=[[72272,72354,1]];static Sundanese=[[7040,7103,1],[7360,7367,1]];static Syloti_Nagri=[[43008,43052,1]];static Syriac=[[1792,1805,1],[1807,1866,1],[1869,1871,1],[2144,2154,1]];static Tagalog=[[5888,5909,1],[5919,5919,1]];static Tagbanwa=[[5984,5996,1],[5998,6e3,1],[6002,6003,1]];static Tai_Le=[[6480,6509,1],[6512,6516,1]];static Tai_Tham=[[6688,6750,1],[6752,6780,1],[6783,6793,1],[6800,6809,1],[6816,6829,1]];static Tai_Viet=[[43648,43714,1],[43739,43743,1]];static Takri=[[71296,71353,1],[71360,71369,1]];static Tamil=[[2946,2947,1],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3006,3010,1],[3014,3016,1],[3018,3021,1],[3024,3031,7],[3046,3066,1],[73664,73713,1],[73727,73727,1]];static Tangsa=[[92784,92862,1],[92864,92873,1]];static Tangut=[[94176,94208,32],[94209,100343,1],[100352,101119,1],[101632,101640,1]];static Telugu=[[3072,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3132,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3160,3162,1],[3165,3168,3],[3169,3171,1],[3174,3183,1],[3191,3199,1]];static Thaana=[[1920,1969,1]];static Thai=[[3585,3642,1],[3648,3675,1]];static Tibetan=[[3840,3911,1],[3913,3948,1],[3953,3991,1],[3993,4028,1],[4030,4044,1],[4046,4052,1],[4057,4058,1]];static Tifinagh=[[11568,11623,1],[11631,11632,1],[11647,11647,1]];static Tirhuta=[[70784,70855,1],[70864,70873,1]];static Toto=[[123536,123566,1]];static Ugaritic=[[66432,66461,1],[66463,66463,1]];static Vai=[[42240,42539,1]];static Vithkuqi=[[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1]];static Wancho=[[123584,123641,1],[123647,123647,1]];static Warang_Citi=[[71840,71922,1],[71935,71935,1]];static Yezidi=[[69248,69289,1],[69291,69293,1],[69296,69297,1]];static Yi=[[40960,42124,1],[42128,42182,1]];static Zanabazar_Square=[[72192,72263,1]];static CATEGORIES=new Map([["C",WC.C],["Cc",WC.Cc],["Cf",WC.Cf],["Co",WC.Co],["Cs",WC.Cs],["L",WC.L],["Ll",WC.Ll],["Lm",WC.Lm],["Lo",WC.Lo],["Lt",WC.Lt],["Lu",WC.Lu],["M",WC.M],["Mc",WC.Mc],["Me",WC.Me],["Mn",WC.Mn],["N",WC.N],["Nd",WC.Nd],["Nl",WC.Nl],["No",WC.No],["P",WC.P],["Pc",WC.Pc],["Pd",WC.Pd],["Pe",WC.Pe],["Pf",WC.Pf],["Pi",WC.Pi],["Po",WC.Po],["Ps",WC.Ps],["S",WC.S],["Sc",WC.Sc],["Sk",WC.Sk],["Sm",WC.Sm],["So",WC.So],["Z",WC.Z],["Zl",WC.Zl],["Zp",WC.Zp],["Zs",WC.Zs]]);static SCRIPTS=new Map([["Adlam",WC.Adlam],["Ahom",WC.Ahom],["Anatolian_Hieroglyphs",WC.Anatolian_Hieroglyphs],["Arabic",WC.Arabic],["Armenian",WC.Armenian],["Avestan",WC.Avestan],["Balinese",WC.Balinese],["Bamum",WC.Bamum],["Bassa_Vah",WC.Bassa_Vah],["Batak",WC.Batak],["Bengali",WC.Bengali],["Bhaiksuki",WC.Bhaiksuki],["Bopomofo",WC.Bopomofo],["Brahmi",WC.Brahmi],["Braille",WC.Braille],["Buginese",WC.Buginese],["Buhid",WC.Buhid],["Canadian_Aboriginal",WC.Canadian_Aboriginal],["Carian",WC.Carian],["Caucasian_Albanian",WC.Caucasian_Albanian],["Chakma",WC.Chakma],["Cham",WC.Cham],["Cherokee",WC.Cherokee],["Chorasmian",WC.Chorasmian],["Common",WC.Common],["Coptic",WC.Coptic],["Cuneiform",WC.Cuneiform],["Cypriot",WC.Cypriot],["Cypro_Minoan",WC.Cypro_Minoan],["Cyrillic",WC.Cyrillic],["Deseret",WC.Deseret],["Devanagari",WC.Devanagari],["Dives_Akuru",WC.Dives_Akuru],["Dogra",WC.Dogra],["Duployan",WC.Duployan],["Egyptian_Hieroglyphs",WC.Egyptian_Hieroglyphs],["Elbasan",WC.Elbasan],["Elymaic",WC.Elymaic],["Ethiopic",WC.Ethiopic],["Georgian",WC.Georgian],["Glagolitic",WC.Glagolitic],["Gothic",WC.Gothic],["Grantha",WC.Grantha],["Greek",WC.Greek],["Gujarati",WC.Gujarati],["Gunjala_Gondi",WC.Gunjala_Gondi],["Gurmukhi",WC.Gurmukhi],["Han",WC.Han],["Hangul",WC.Hangul],["Hanifi_Rohingya",WC.Hanifi_Rohingya],["Hanunoo",WC.Hanunoo],["Hatran",WC.Hatran],["Hebrew",WC.Hebrew],["Hiragana",WC.Hiragana],["Imperial_Aramaic",WC.Imperial_Aramaic],["Inherited",WC.Inherited],["Inscriptional_Pahlavi",WC.Inscriptional_Pahlavi],["Inscriptional_Parthian",WC.Inscriptional_Parthian],["Javanese",WC.Javanese],["Kaithi",WC.Kaithi],["Kannada",WC.Kannada],["Katakana",WC.Katakana],["Kawi",WC.Kawi],["Kayah_Li",WC.Kayah_Li],["Kharoshthi",WC.Kharoshthi],["Khitan_Small_Script",WC.Khitan_Small_Script],["Khmer",WC.Khmer],["Khojki",WC.Khojki],["Khudawadi",WC.Khudawadi],["Lao",WC.Lao],["Latin",WC.Latin],["Lepcha",WC.Lepcha],["Limbu",WC.Limbu],["Linear_A",WC.Linear_A],["Linear_B",WC.Linear_B],["Lisu",WC.Lisu],["Lycian",WC.Lycian],["Lydian",WC.Lydian],["Mahajani",WC.Mahajani],["Makasar",WC.Makasar],["Malayalam",WC.Malayalam],["Mandaic",WC.Mandaic],["Manichaean",WC.Manichaean],["Marchen",WC.Marchen],["Masaram_Gondi",WC.Masaram_Gondi],["Medefaidrin",WC.Medefaidrin],["Meetei_Mayek",WC.Meetei_Mayek],["Mende_Kikakui",WC.Mende_Kikakui],["Meroitic_Cursive",WC.Meroitic_Cursive],["Meroitic_Hieroglyphs",WC.Meroitic_Hieroglyphs],["Miao",WC.Miao],["Modi",WC.Modi],["Mongolian",WC.Mongolian],["Mro",WC.Mro],["Multani",WC.Multani],["Myanmar",WC.Myanmar],["Nabataean",WC.Nabataean],["Nag_Mundari",WC.Nag_Mundari],["Nandinagari",WC.Nandinagari],["New_Tai_Lue",WC.New_Tai_Lue],["Newa",WC.Newa],["Nko",WC.Nko],["Nushu",WC.Nushu],["Nyiakeng_Puachue_Hmong",WC.Nyiakeng_Puachue_Hmong],["Ogham",WC.Ogham],["Ol_Chiki",WC.Ol_Chiki],["Old_Hungarian",WC.Old_Hungarian],["Old_Italic",WC.Old_Italic],["Old_North_Arabian",WC.Old_North_Arabian],["Old_Permic",WC.Old_Permic],["Old_Persian",WC.Old_Persian],["Old_Sogdian",WC.Old_Sogdian],["Old_South_Arabian",WC.Old_South_Arabian],["Old_Turkic",WC.Old_Turkic],["Old_Uyghur",WC.Old_Uyghur],["Oriya",WC.Oriya],["Osage",WC.Osage],["Osmanya",WC.Osmanya],["Pahawh_Hmong",WC.Pahawh_Hmong],["Palmyrene",WC.Palmyrene],["Pau_Cin_Hau",WC.Pau_Cin_Hau],["Phags_Pa",WC.Phags_Pa],["Phoenician",WC.Phoenician],["Psalter_Pahlavi",WC.Psalter_Pahlavi],["Rejang",WC.Rejang],["Runic",WC.Runic],["Samaritan",WC.Samaritan],["Saurashtra",WC.Saurashtra],["Sharada",WC.Sharada],["Shavian",WC.Shavian],["Siddham",WC.Siddham],["SignWriting",WC.SignWriting],["Sinhala",WC.Sinhala],["Sogdian",WC.Sogdian],["Sora_Sompeng",WC.Sora_Sompeng],["Soyombo",WC.Soyombo],["Sundanese",WC.Sundanese],["Syloti_Nagri",WC.Syloti_Nagri],["Syriac",WC.Syriac],["Tagalog",WC.Tagalog],["Tagbanwa",WC.Tagbanwa],["Tai_Le",WC.Tai_Le],["Tai_Tham",WC.Tai_Tham],["Tai_Viet",WC.Tai_Viet],["Takri",WC.Takri],["Tamil",WC.Tamil],["Tangsa",WC.Tangsa],["Tangut",WC.Tangut],["Telugu",WC.Telugu],["Thaana",WC.Thaana],["Thai",WC.Thai],["Tibetan",WC.Tibetan],["Tifinagh",WC.Tifinagh],["Tirhuta",WC.Tirhuta],["Toto",WC.Toto],["Ugaritic",WC.Ugaritic],["Vai",WC.Vai],["Vithkuqi",WC.Vithkuqi],["Wancho",WC.Wancho],["Warang_Citi",WC.Warang_Citi],["Yezidi",WC.Yezidi],["Yi",WC.Yi],["Zanabazar_Square",WC.Zanabazar_Square]]);static FOLD_CATEGORIES=new Map([["L",WC.foldL],["Ll",WC.foldLl],["Lt",WC.foldLt],["Lu",WC.foldLu],["M",WC.foldM],["Mn",WC.foldMn]]);static FOLD_SCRIPT=new Map([["Common",WC.foldCommon],["Greek",WC.foldGreek],["Inherited",WC.foldInherited]])}class VC{static MAX_RUNE=1114111;static MAX_ASCII=127;static MAX_LATIN1=255;static MAX_BMP=65535;static MIN_FOLD=65;static MAX_FOLD=66639;static is32(e,t){let n=0,r=e.length;for(;n<r;){let s=n+Math.floor((r-n)/2),i=e[s];if(i[0]<=t&&t<=i[1])return(t-i[0])%i[2]==0;t<i[0]?r=s:n=s+1}return!1}static is(e,t){if(t<=this.MAX_LATIN1){for(let n of e)if(!(t>n[1]))return!(t<n[0])&&(t-n[0])%n[2]==0;return!1}return e.length>0&&t>=e[0][0]&&this.is32(e,t)}static isUpper(e){if(e<=this.MAX_LATIN1){const t=String.fromCodePoint(e);return t.toUpperCase()===t&&t.toLowerCase()!==t}return this.is(WC.Upper,e)}static isPrint(e){return e<=this.MAX_LATIN1?e>=32&&e<127||e>=161&&173!==e:this.is(WC.L,e)||this.is(WC.M,e)||this.is(WC.N,e)||this.is(WC.P,e)||this.is(WC.S,e)}static simpleFold(e){if(WC.CASE_ORBIT.has(e))return WC.CASE_ORBIT.get(e);const t=$C.toLowerCase(e);return t!==e?t:$C.toUpperCase(e)}static equalsIgnoreCase(e,t){if(e<0||t<0||e===t)return!0;if(e<=this.MAX_ASCII&&t<=this.MAX_ASCII)return $C.CODES.get("A")<=e&&e<=$C.CODES.get("Z")&&(e|=32),$C.CODES.get("A")<=t&&t<=$C.CODES.get("Z")&&(t|=32),e===t;for(let n=this.simpleFold(e);n!==e;n=this.simpleFold(n))if(n===t)return!0;return!1}}class qC{static METACHARACTERS="\\.+*?()|[]{}^$";static EMPTY_BEGIN_LINE=1;static EMPTY_END_LINE=2;static EMPTY_BEGIN_TEXT=4;static EMPTY_END_TEXT=8;static EMPTY_WORD_BOUNDARY=16;static EMPTY_NO_WORD_BOUNDARY=32;static EMPTY_ALL=-1;static emptyInts(){return[]}static isalnum(e){return $C.CODES.get("0")<=e&&e<=$C.CODES.get("9")||$C.CODES.get("a")<=e&&e<=$C.CODES.get("z")||$C.CODES.get("A")<=e&&e<=$C.CODES.get("Z")}static unhex(e){return $C.CODES.get("0")<=e&&e<=$C.CODES.get("9")?e-$C.CODES.get("0"):$C.CODES.get("a")<=e&&e<=$C.CODES.get("f")?e-$C.CODES.get("a")+10:$C.CODES.get("A")<=e&&e<=$C.CODES.get("F")?e-$C.CODES.get("A")+10:-1}static escapeRune(e){let t="";if(VC.isPrint(e))this.METACHARACTERS.indexOf(String.fromCodePoint(e))>=0&&(t+="\\"),t+=String.fromCodePoint(e);else switch(e){case $C.CODES.get('"'):t+='\\"';break;case $C.CODES.get("\\"):t+="\\\\";break;case $C.CODES.get("\t"):t+="\\t";break;case $C.CODES.get("\n"):t+="\\n";break;case $C.CODES.get("\r"):t+="\\r";break;case $C.CODES.get("\b"):t+="\\b";break;case $C.CODES.get("\f"):t+="\\f";break;default:{let n=e.toString(16);e<256?(t+="\\x",1===n.length&&(t+="0"),t+=n):t+=`\\x{${n}}`;break}}return t}static stringToRunes(e){return String(e).split("").map((e=>e.codePointAt(0)))}static runeToString(e){return String.fromCodePoint(e)}static isWordRune(e){return $C.CODES.get("a")<=e&&e<=$C.CODES.get("z")||$C.CODES.get("A")<=e&&e<=$C.CODES.get("Z")||$C.CODES.get("0")<=e&&e<=$C.CODES.get("9")||e===$C.CODES.get("_")}static emptyOpContext(e,t){let n=0;return e<0&&(n|=this.EMPTY_BEGIN_TEXT|this.EMPTY_BEGIN_LINE),e===$C.CODES.get("\n")&&(n|=this.EMPTY_BEGIN_LINE),t<0&&(n|=this.EMPTY_END_TEXT|this.EMPTY_END_LINE),t===$C.CODES.get("\n")&&(n|=this.EMPTY_END_LINE),this.isWordRune(e)!==this.isWordRune(t)?n|=this.EMPTY_WORD_BOUNDARY:n|=this.EMPTY_NO_WORD_BOUNDARY,n}static quoteMeta(e){return e.split("").map((e=>this.METACHARACTERS.indexOf(e)>=0?`\\${e}`:e)).join("")}static charCount(e){return e>VC.MAX_BMP?2:1}static stringToUtf8ByteArray(e){if(globalThis.TextEncoder)return Array.from((new TextEncoder).encode(e));{let t=[],n=0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);s<128?t[n++]=s:s<2048?(t[n++]=s>>6|192,t[n++]=63&s|128):55296==(64512&s)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),t[n++]=s>>18|240,t[n++]=s>>12&63|128,t[n++]=s>>6&63|128,t[n++]=63&s|128):(t[n++]=s>>12|224,t[n++]=s>>6&63|128,t[n++]=63&s|128)}return t}}static utf8ByteArrayToString(e){if(globalThis.TextDecoder)return new TextDecoder("utf-8").decode(new Uint8Array(e));{let t=[],n=0,r=0;for(;n<e.length;){let s=e[n++];if(s<128)t[r++]=String.fromCharCode(s);else if(s>191&&s<224){let i=e[n++];t[r++]=String.fromCharCode((31&s)<<6|63&i)}else if(s>239&&s<365){let i=((7&s)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{let i=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&s)<<12|(63&i)<<6|63&o)}}return t.join("")}}}const GC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n={};for(let r=0;r<e.length;r++){const s=e[r],i=t+r;n[s]=i,n[i]=s}return Object.freeze(n)};class zC{static Encoding=GC(["UTF_16","UTF_8"]);getEncoding(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===zC.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===zC.Encoding.UTF_16}}class jC extends zC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;super(),this.bytes=e}getEncoding(){return zC.Encoding.UTF_8}asCharSequence(){return qC.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}}class KC extends zC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;super(),this.charSequence=e}getEncoding(){return zC.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return this.charSequence.toString().split("").map((e=>e.codePointAt(0)))}length(){return this.charSequence.length}}class YC{static utf16(e){return new KC(e)}static utf8(e){return Array.isArray(e)?new jC(e):new jC(qC.stringToUtf8ByteArray(e))}}class XC extends Error{constructor(e){super(e),this.name="RE2JSException"}}class QC extends XC{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=`error parsing regexp: ${e}`;t&&(n+=`: \`${t}\``),super(n),this.name="RE2JSSyntaxException",this.message=n,this.error=e,this.input=t}getDescription(){return this.error}getPattern(){return this.input}}class JC extends XC{constructor(e){super(e),this.name="RE2JSCompileException"}}class ev extends XC{constructor(e){super(e),this.name="RE2JSGroupException"}}class tv extends XC{constructor(e){super(e),this.name="RE2JSFlagsException"}}class nv{static quoteReplacement(e){return e.indexOf("\\")<0&&e.indexOf("$")<0?e:e.split("").map((e=>{const t=e.codePointAt(0);return t===$C.CODES["\\"]||t===$C.CODES.$?`\\${e}`:e})).join("")}constructor(e,t){if(null===e)throw new Error("pattern is null");this.patternInput=e;const n=this.patternInput.re2();this.patternGroupCount=n.numberOfCapturingGroups(),this.groups=[],this.namedGroups=n.namedGroups,t instanceof zC?this.resetMatcherInput(t):Array.isArray(t)?this.resetMatcherInput(YC.utf8(t)):this.resetMatcherInput(YC.utf16(t))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(e){if(null===e)throw new Error("input is null");return this.matcherInput=e,this.reset(),this}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new ev(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e]}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new ev(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e+1]}group(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new ev(`group '${e}' not found`);e=t}const t=this.start(e),n=this.end(e);return t<0&&n<0?null:this.substring(t,n)}groupCount(){return this.patternGroupCount}loadGroup(e){if(e<0||e>this.patternGroupCount)throw new ev(`Group index out of bounds: ${e}`);if(!this.hasMatch)throw new ev("perhaps no match attempted");if(0===e||this.hasGroups)return;let t=this.groups[1]+1;t>this.matcherInputLength&&(t=this.matcherInputLength);const n=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],t,this.anchorFlag,1+this.patternGroupCount);if(!n[0])throw new ev("inconsistency in matching group data");this.groups=n[1],this.hasGroups=!0}matches(){return this.genMatch(0,ZC.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,ZC.ANCHOR_START)}find(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==e){if(e<0||e>this.matcherInputLength)throw new ev(`start index out of bounds: ${e}`);return this.reset(),this.genMatch(e,0)}return e=0,this.hasMatch&&(e=this.groups[1],this.groups[0]===this.groups[1]&&e++),this.genMatch(e,ZC.UNANCHORED)}genMatch(e,t){const n=this.patternInput.re2().matchMachineInput(this.matcherInput,e,this.matcherInputLength,t,1);return!!n[0]&&(this.groups=n[1],this.hasMatch=!0,this.hasGroups=!1,this.anchorFlag=t,!0)}substring(e,t){return this.matcherInput.isUTF8Encoding()?qC.utf8ByteArrayToString(this.matcherInput.asBytes().slice(e,t)):this.matcherInput.asCharSequence().substring(e,t).toString()}inputLength(){return this.matcherInputLength}appendReplacement(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="";const r=this.start(),s=this.end();return this.appendPos<r&&(n+=this.substring(this.appendPos,r)),this.appendPos=s,n+=t?this.appendReplacementInternalPerl(e):this.appendReplacementInternal(e),n}appendReplacementInternal(e){let t="",n=0;const r=e.length;for(let s=0;s<r-1;s++)if(e.codePointAt(s)!==$C.CODES.get("\\")){if(e.codePointAt(s)===$C.CODES.get("$")){let i=e.codePointAt(s+1);if($C.CODES.get("0")<=i&&i<=$C.CODES.get("9")){let o=i-$C.CODES.get("0");for(n<s&&(t+=e.substring(n,s)),s+=2;s<r&&(i=e.codePointAt(s),!(i<$C.CODES.get("0")||i>$C.CODES.get("9")||10*o+i-$C.CODES.get("0")>this.patternGroupCount));s++)o=10*o+i-$C.CODES.get("0");if(o>this.patternGroupCount)throw new ev(`n > number of groups: ${o}`);const a=this.group(o);null!==a&&(t+=a),n=s,s--;continue}if(i===$C.CODES.get("{")){n<s&&(t+=e.substring(n,s)),s++;let r=s+1;for(;r<e.length&&e.codePointAt(r)!==$C.CODES.get("}")&&e.codePointAt(r)!==$C.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==$C.CODES.get("}"))throw new ev("named capture group is missing trailing '}'");const i=e.substring(s+1,r);t+=this.group(i),n=r+1}}}else n<s&&(t+=e.substring(n,s)),s++,n=s;return n<r&&(t+=e.substring(n,r)),t}appendReplacementInternalPerl(e){let t="",n=0;const r=e.length;for(let s=0;s<r-1;s++)if(e.codePointAt(s)===$C.CODES.get("$")){let i=e.codePointAt(s+1);if($C.CODES.get("$")===i){n<s&&(t+=e.substring(n,s)),t+="$",s++,n=s+1;continue}if($C.CODES.get("&")===i){n<s&&(t+=e.substring(n,s));const r=this.group(0);t+=null!==r?r:"$&",s++,n=s+1;continue}if($C.CODES.get("1")<=i&&i<=$C.CODES.get("9")){let o=i-$C.CODES.get("0");for(n<s&&(t+=e.substring(n,s)),s+=2;s<r&&(i=e.codePointAt(s),!(i<$C.CODES.get("0")||i>$C.CODES.get("9")||10*o+i-$C.CODES.get("0")>this.patternGroupCount));s++)o=10*o+i-$C.CODES.get("0");if(o>this.patternGroupCount){t+=`$${o}`,n=s,s--;continue}const a=this.group(o);null!==a&&(t+=a),n=s,s--;continue}if(i===$C.CODES.get("<")){n<s&&(t+=e.substring(n,s)),s++;let r=s+1;for(;r<e.length&&e.codePointAt(r)!==$C.CODES.get(">")&&e.codePointAt(r)!==$C.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==$C.CODES.get(">")){t+=e.substring(s-1,r+1),n=r+1;continue}const i=e.substring(s+1,r);Object.prototype.hasOwnProperty.call(this.namedGroups,i)?t+=this.group(i):t+=`$<${i}>`,n=r+1}}return n<r&&(t+=e.substring(n,r)),t}appendTail(){return this.substring(this.appendPos,this.matcherInputLength)}replaceAll(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.replace(e,!0,t)}replaceFirst(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.replace(e,!1,t)}replace(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";for(this.reset();this.find()&&(r+=this.appendReplacement(e,n),t););return r+=this.appendTail(),r}}class rv{static EOF(){return-8}canCheckPrefix(){return!0}endPos(){return this.end}}class sv extends rv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;super(),this.bytes=e,this.start=t,this.end=n}step(e){if((e+=this.start)>=this.end)return rv.EOF();let t=255&this.bytes[e++];return 128&t?192==(224&t)?(t&=31,e>=this.end?rv.EOF():(t=t<<6|63&this.bytes[e++],t<<3|2)):224==(240&t)?(t&=15,e+1>=this.end?rv.EOF():(t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t<<3|3)):(t&=7,e+2>=this.end?rv.EOF():(t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t<<3|4)):t<<3|1}index(e,t){t+=this.start;const n=this.indexOf(this.bytes,e.prefixUTF8,t);return n<0?n:n-t}context(e){let t=-1;if((e+=this.start)>this.start&&e<=this.end){let n=e-1;if(t=this.bytes[n--],t>=128){let r=e-4;for(r<this.start&&(r=this.start);n>=r&&128==(192&this.bytes[n]);)n--;n<this.start&&(n=this.start),t=this.step(n)>>3}}const n=e<this.end?this.step(e)>>3:-1;return qC.emptyOpContext(t,n)}indexOf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.length;if(0===r)return-1;let s=e.length;for(let i=n;i<=s-r;i++)for(let n=0;n<r&&e[i+n]===t[n];n++)if(n===r-1)return i;return-1}}class iv extends rv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;super(),this.charSequence=e,this.start=t,this.end=n}step(e){if((e+=this.start)<this.end){const t=this.charSequence.codePointAt(e);return t<<3|qC.charCount(t)}return rv.EOF()}index(e,t){t+=this.start;const n=this.charSequence.indexOf(e.prefix,t);return n<0?n:n-t}context(e){const t=(e+=this.start)>0&&e<=this.charSequence.length?this.charSequence.codePointAt(e-1):-1,n=e<this.charSequence.length?this.charSequence.codePointAt(e):-1;return qC.emptyOpContext(t,n)}}class ov{static fromUTF8(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new sv(e,t,n)}static fromUTF16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new iv(e,t,n)}}class av{static Op=GC(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","LEFT_PAREN","VERTICAL_BAR"]);static isPseudoOp(e){return e>=av.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(e){return e===$C.CODES.get("-")?"\\":""}static fromRegexp(e){const t=new av(e.op);return t.flags=e.flags,t.subs=e.subs,t.runes=e.runes,t.cap=e.cap,t.min=e.min,t.max=e.max,t.name=e.name,t.namedGroups=e.namedGroups,t}constructor(e){this.op=e,this.flags=0,this.subs=av.emptySubs(),this.runes=null,this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups={}}reinit(){this.flags=0,this.subs=av.emptySubs(),this.runes=null,this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups={}}toString(){return this.appendTo()}appendTo(){let e="";switch(this.op){case av.Op.NO_MATCH:e+="[^\\x00-\\x{10FFFF}]";break;case av.Op.EMPTY_MATCH:e+="(?:)";break;case av.Op.STAR:case av.Op.PLUS:case av.Op.QUEST:case av.Op.REPEAT:{const t=this.subs[0];switch(t.op>av.Op.CAPTURE||t.op===av.Op.LITERAL&&t.runes.length>1?e+=`(?:${t.appendTo()})`:e+=t.appendTo(),this.op){case av.Op.STAR:e+="*";break;case av.Op.PLUS:e+="+";break;case av.Op.QUEST:e+="?";break;case av.Op.REPEAT:e+=`{${this.min}`,this.min!==this.max&&(e+=",",this.max>=0&&(e+=this.max)),e+="}"}this.flags&ZC.NON_GREEDY&&(e+="?");break}case av.Op.CONCAT:for(let t of this.subs)t.op===av.Op.ALTERNATE?e+=`(?:${t.appendTo()})`:e+=t.appendTo();break;case av.Op.ALTERNATE:{let t="";for(let n of this.subs)e+=t,t="|",e+=n.appendTo();break}case av.Op.LITERAL:this.flags&ZC.FOLD_CASE&&(e+="(?i:");for(let t of this.runes)e+=qC.escapeRune(t);this.flags&ZC.FOLD_CASE&&(e+=")");break;case av.Op.ANY_CHAR_NOT_NL:e+="(?-s:.)";break;case av.Op.ANY_CHAR:e+="(?s:.)";break;case av.Op.CAPTURE:null===this.name||0===this.name.length?e+="(":e+=`(?P<${this.name}>`,this.subs[0].op!==av.Op.EMPTY_MATCH&&(e+=this.subs[0].appendTo()),e+=")";break;case av.Op.BEGIN_TEXT:e+="\\A";break;case av.Op.END_TEXT:this.flags&ZC.WAS_DOLLAR?e+="(?-m:$)":e+="\\z";break;case av.Op.BEGIN_LINE:e+="^";break;case av.Op.END_LINE:e+="$";break;case av.Op.WORD_BOUNDARY:e+="\\b";break;case av.Op.NO_WORD_BOUNDARY:e+="\\B";break;case av.Op.CHAR_CLASS:if(this.runes.length%2!=0){e+="[invalid char class]";break}if(e+="[",0===this.runes.length)e+="^\\x00-\\x{10FFFF}";else if(0===this.runes[0]&&this.runes[this.runes.length-1]===VC.MAX_RUNE){e+="^";for(let t=1;t<this.runes.length-1;t+=2){const n=this.runes[t]+1,r=this.runes[t+1]-1;e+=av.quoteIfHyphen(n),e+=qC.escapeRune(n),n!==r&&(e+="-",e+=av.quoteIfHyphen(r),e+=qC.escapeRune(r))}}else for(let t=0;t<this.runes.length;t+=2){const n=this.runes[t],r=this.runes[t+1];e+=av.quoteIfHyphen(n),e+=qC.escapeRune(n),n!==r&&(e+="-",e+=av.quoteIfHyphen(r),e+=qC.escapeRune(r))}e+="]";break;default:e+=this.op}return e}maxCap(){let e=0;if(this.op===av.Op.CAPTURE&&(e=this.cap),null!==this.subs)for(let t of this.subs){const n=t.maxCap();e<n&&(e=n)}return e}equals(e){if(!(null!==e&&e instanceof av))return!1;if(this.op!==e.op)return!1;switch(this.op){case av.Op.END_TEXT:if((this.flags&ZC.WAS_DOLLAR)!=(e.flags&ZC.WAS_DOLLAR))return!1;break;case av.Op.LITERAL:case av.Op.CHAR_CLASS:if(null===this.runes&&null===e.runes)break;if(null===this.runes||null===e.runes)return!1;if(this.runes.length!==e.runes.length)return!1;for(let t=0;t<this.runes.length;t++)if(this.runes[t]!==e.runes[t])return!1;break;case av.Op.ALTERNATE:case av.Op.CONCAT:if(this.subs.length!==e.subs.length)return!1;for(let t=0;t<this.subs.length;++t)if(!this.subs[t].equals(e.subs[t]))return!1;break;case av.Op.STAR:case av.Op.PLUS:case av.Op.QUEST:if((this.flags&ZC.NON_GREEDY)!=(e.flags&ZC.NON_GREEDY)||!this.subs[0].equals(e.subs[0]))return!1;break;case av.Op.REPEAT:if((this.flags&ZC.NON_GREEDY)!=(e.flags&ZC.NON_GREEDY)||this.min!==e.min||this.max!==e.max||!this.subs[0].equals(e.subs[0]))return!1;break;case av.Op.CAPTURE:if(this.cap!==e.cap||(null===this.name?null!==e.name:this.name!==e.name)||!this.subs[0].equals(e.subs[0]))return!1}return!0}}class lv{static ALT=1;static ALT_MATCH=2;static CAPTURE=3;static EMPTY_WIDTH=4;static FAIL=5;static MATCH=6;static NOP=7;static RUNE=8;static RUNE1=9;static RUNE_ANY=10;static RUNE_ANY_NOT_NL=11;static isRuneOp(e){return lv.RUNE<=e&&e<=lv.RUNE_ANY_NOT_NL}static escapeRunes(e){let t='"';for(let n of e)t+=qC.escapeRune(n);return t+='"',t}constructor(e){this.op=e,this.out=0,this.arg=0,this.runes=null}matchRune(e){if(1===this.runes.length){const t=this.runes[0];return this.arg&ZC.FOLD_CASE?VC.equalsIgnoreCase(t,e):e===t}for(let t=0;t<this.runes.length&&t<=8;t+=2){if(e<this.runes[t])return!1;if(e<=this.runes[t+1])return!0}let t=0,n=this.runes.length/2|0;for(;t<n;){const r=t+((n-t)/2|0);if(this.runes[2*r]<=e){if(e<=this.runes[2*r+1])return!0;t=r+1}else n=r}return!1}toString(){switch(this.op){case lv.ALT:return`alt -> ${this.out}, ${this.arg}`;case lv.ALT_MATCH:return`altmatch -> ${this.out}, ${this.arg}`;case lv.CAPTURE:return`cap ${this.arg} -> ${this.out}`;case lv.EMPTY_WIDTH:return`empty ${this.arg} -> ${this.out}`;case lv.MATCH:return"match";case lv.FAIL:return"fail";case lv.NOP:return`nop -> ${this.out}`;case lv.RUNE:return null===this.runes?"rune <null>":["rune ",lv.escapeRunes(this.runes),this.arg&ZC.FOLD_CASE?"/i":""," -> ",this.out].join("");case lv.RUNE1:return`rune1 ${lv.escapeRunes(this.runes)} -> ${this.out}`;case lv.RUNE_ANY:return`any -> ${this.out}`;case lv.RUNE_ANY_NOT_NL:return`anynotnl -> ${this.out}`;default:throw new Error("unhandled case in Inst.toString")}}}class cv{constructor(){this.inst=[],this.start=0,this.numCap=2}getInst(e){return this.inst[e]}numInst(){return this.inst.length}addInst(e){this.inst.push(new lv(e))}skipNop(e){let t=this.inst[e];for(;t.op===lv.NOP||t.op===lv.CAPTURE;)t=this.inst[e],e=t.out;return t}prefix(){let e="",t=this.skipNop(this.start);if(!lv.isRuneOp(t.op)||1!==t.runes.length)return[t.op===lv.MATCH,e];for(;lv.isRuneOp(t.op)&&1===t.runes.length&&!(t.arg&ZC.FOLD_CASE);)e+=String.fromCodePoint(t.runes[0]),t=this.skipNop(t.out);return[t.op===lv.MATCH,e]}startCond(){let e=0,t=this.start;e:for(;;){const n=this.inst[t];switch(n.op){case lv.EMPTY_WIDTH:e|=n.arg;break;case lv.FAIL:return-1;case lv.CAPTURE:case lv.NOP:break;default:break e}t=n.out}return e}next(e){const t=this.inst[e>>1];return 1&e?t.arg:t.out}patch(e,t){for(;0!==e;){const n=this.inst[e>>1];1&e?(e=n.arg,n.arg=t):(e=n.out,n.out=t)}}append(e,t){if(0===e)return t;if(0===t)return e;let n=e;for(;;){const e=this.next(n);if(0===e)break;n=e}const r=this.inst[n>>1];return 1&n?r.arg=t:r.out=t,e}toString(){let e="";for(let t=0;t<this.inst.length;t++){const n=e.length;e+=t,t===this.start&&(e+="*"),e+=" ".substring(e.length-n),e+=this.inst[t],e+="\n"}return e}}class uv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.i=e,this.out=t,this.nullable=n}}class hv{static ANY_RUNE_NOT_NL(){return[0,$C.CODES.get("\n")-1,$C.CODES.get("\n")+1,VC.MAX_RUNE]}static ANY_RUNE(){return[0,VC.MAX_RUNE]}static compileRegexp(e){const t=new hv,n=t.compile(e);return t.prog.patch(n.out,t.newInst(lv.MATCH).i),t.prog.start=n.i,t.prog}constructor(){this.prog=new cv,this.newInst(lv.FAIL)}newInst(e){return this.prog.addInst(e),new uv(this.prog.numInst()-1,0,!0)}nop(){const e=this.newInst(lv.NOP);return e.out=e.i<<1,e}fail(){return new uv}cap(e){const t=this.newInst(lv.CAPTURE);return t.out=t.i<<1,this.prog.getInst(t.i).arg=e,this.prog.numCap<e+1&&(this.prog.numCap=e+1),t}cat(e,t){return 0===e.i||0===t.i?this.fail():(this.prog.patch(e.out,t.i),new uv(e.i,t.out,e.nullable&&t.nullable))}alt(e,t){if(0===e.i)return t;if(0===t.i)return e;const n=this.newInst(lv.ALT),r=this.prog.getInst(n.i);return r.out=e.i,r.arg=t.i,n.out=this.prog.append(e.out,t.out),n.nullable=e.nullable||t.nullable,n}loop(e,t){const n=this.newInst(lv.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=n.i<<1):(r.out=e.i,n.out=n.i<<1|1),this.prog.patch(e.out,n.i),n}quest(e,t){const n=this.newInst(lv.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=n.i<<1):(r.out=e.i,n.out=n.i<<1|1),n.out=this.prog.append(n.out,e.out),n}star(e,t){return e.nullable?this.quest(this.plus(e,t),t):this.loop(e,t)}plus(e,t){return new uv(e.i,this.loop(e,t).out,e.nullable)}empty(e){const t=this.newInst(lv.EMPTY_WIDTH);return this.prog.getInst(t.i).arg=e,t.out=t.i<<1,t}rune(e,t){const n=this.newInst(lv.RUNE);n.nullable=!1;const r=this.prog.getInst(n.i);return r.runes=e,t&=ZC.FOLD_CASE,1===e.length&&VC.simpleFold(e[0])!==e[0]||(t&=~ZC.FOLD_CASE),r.arg=t,n.out=n.i<<1,!(t&ZC.FOLD_CASE)&&1===e.length||2===e.length&&e[0]===e[1]?r.op=lv.RUNE1:2===e.length&&0===e[0]&&e[1]===VC.MAX_RUNE?r.op=lv.RUNE_ANY:4===e.length&&0===e[0]&&e[1]===$C.CODES.get("\n")-1&&e[2]===$C.CODES.get("\n")+1&&e[3]===VC.MAX_RUNE&&(r.op=lv.RUNE_ANY_NOT_NL),n}compile(e){switch(e.op){case av.Op.NO_MATCH:return this.fail();case av.Op.EMPTY_MATCH:return this.nop();case av.Op.LITERAL:if(0===e.runes.length)return this.nop();{let t=null;for(let n of e.runes){const r=this.rune([n],e.flags);t=null===t?r:this.cat(t,r)}return t}case av.Op.CHAR_CLASS:return this.rune(e.runes,e.flags);case av.Op.ANY_CHAR_NOT_NL:return this.rune(hv.ANY_RUNE_NOT_NL(),0);case av.Op.ANY_CHAR:return this.rune(hv.ANY_RUNE(),0);case av.Op.BEGIN_LINE:return this.empty(qC.EMPTY_BEGIN_LINE);case av.Op.END_LINE:return this.empty(qC.EMPTY_END_LINE);case av.Op.BEGIN_TEXT:return this.empty(qC.EMPTY_BEGIN_TEXT);case av.Op.END_TEXT:return this.empty(qC.EMPTY_END_TEXT);case av.Op.WORD_BOUNDARY:return this.empty(qC.EMPTY_WORD_BOUNDARY);case av.Op.NO_WORD_BOUNDARY:return this.empty(qC.EMPTY_NO_WORD_BOUNDARY);case av.Op.CAPTURE:{const t=this.cap(e.cap<<1),n=this.compile(e.subs[0]),r=this.cap(e.cap<<1|1);return this.cat(this.cat(t,n),r)}case av.Op.STAR:return this.star(this.compile(e.subs[0]),!!(e.flags&ZC.NON_GREEDY));case av.Op.PLUS:return this.plus(this.compile(e.subs[0]),!!(e.flags&ZC.NON_GREEDY));case av.Op.QUEST:return this.quest(this.compile(e.subs[0]),!!(e.flags&ZC.NON_GREEDY));case av.Op.CONCAT:if(0===e.subs.length)return this.nop();{let t=null;for(let n of e.subs){const e=this.compile(n);t=null===t?e:this.cat(t,e)}return t}case av.Op.ALTERNATE:if(0===e.subs.length)return this.nop();{let t=null;for(let n of e.subs){const e=this.compile(n);t=null===t?e:this.alt(t,e)}return t}default:throw new JC("regexp: unhandled case in compile")}}}class pv{static simplify(e){if(null===e)return null;switch(e.op){case av.Op.CAPTURE:case av.Op.CONCAT:case av.Op.ALTERNATE:{let t=e;for(let n=0;n<e.subs.length;n++){const r=e.subs[n],s=pv.simplify(r);t===e&&s!==r&&(t=av.fromRegexp(e),t.runes=null,t.subs=e.subs.slice(0,e.subs.length)),t!==e&&(t.subs[n]=s)}return t}case av.Op.STAR:case av.Op.PLUS:case av.Op.QUEST:{const t=pv.simplify(e.subs[0]);return pv.simplify1(e.op,e.flags,t,e)}case av.Op.REPEAT:{if(0===e.min&&0===e.max)return new av(av.Op.EMPTY_MATCH);const t=pv.simplify(e.subs[0]);if(-1===e.max){if(0===e.min)return pv.simplify1(av.Op.STAR,e.flags,t,null);if(1===e.min)return pv.simplify1(av.Op.PLUS,e.flags,t,null);const n=new av(av.Op.CONCAT),r=[];for(let n=0;n<e.min-1;n++)r.push(t);return r.push(pv.simplify1(av.Op.PLUS,e.flags,t,null)),n.subs=r.slice(0),n}if(1===e.min&&1===e.max)return t;let n=null;if(e.min>0){n=[];for(let r=0;r<e.min;r++)n.push(t)}if(e.max>e.min){let r=pv.simplify1(av.Op.QUEST,e.flags,t,null);for(let n=e.min+1;n<e.max;n++){const n=new av(av.Op.CONCAT);n.subs=[t,r],r=pv.simplify1(av.Op.QUEST,e.flags,n,null)}if(null===n)return r;n.push(r)}if(null!==n){const e=new av(av.Op.CONCAT);return e.subs=n.slice(0),e}return new av(av.Op.NO_MATCH)}}return e}static simplify1(e,t,n,r){return n.op===av.Op.EMPTY_MATCH||e===n.op&&(t&ZC.NON_GREEDY)==(n.flags&ZC.NON_GREEDY)?n:(null!==r&&r.op===e&&(r.flags&ZC.NON_GREEDY)==(t&ZC.NON_GREEDY)&&n===r.subs[0]||((r=new av(e)).flags=t,r.subs=[n]),r)}}class dv{constructor(e,t){this.sign=e,this.cls=t}}const mv=[48,57],fv=[9,10,12,13,32,32],gv=[48,57,65,90,95,95,97,122],yv=new Map([["\\d",new dv(1,mv)],["\\D",new dv(-1,mv)],["\\s",new dv(1,fv)],["\\S",new dv(-1,fv)],["\\w",new dv(1,gv)],["\\W",new dv(-1,gv)]]),wv=[48,57,65,90,97,122],bv=[65,90,97,122],Cv=[0,127],vv=[9,9,32,32],Sv=[0,31,127,127],Ev=[48,57],kv=[33,126],Rv=[97,122],Av=[32,126],Tv=[33,47,58,64,91,96,123,126],xv=[9,13,32,32],Dv=[65,90],Mv=[48,57,65,90,95,95,97,122],Pv=[48,57,65,70,97,102],Iv=new Map([["[:alnum:]",new dv(1,wv)],["[:^alnum:]",new dv(-1,wv)],["[:alpha:]",new dv(1,bv)],["[:^alpha:]",new dv(-1,bv)],["[:ascii:]",new dv(1,Cv)],["[:^ascii:]",new dv(-1,Cv)],["[:blank:]",new dv(1,vv)],["[:^blank:]",new dv(-1,vv)],["[:cntrl:]",new dv(1,Sv)],["[:^cntrl:]",new dv(-1,Sv)],["[:digit:]",new dv(1,Ev)],["[:^digit:]",new dv(-1,Ev)],["[:graph:]",new dv(1,kv)],["[:^graph:]",new dv(-1,kv)],["[:lower:]",new dv(1,Rv)],["[:^lower:]",new dv(-1,Rv)],["[:print:]",new dv(1,Av)],["[:^print:]",new dv(-1,Av)],["[:punct:]",new dv(1,Tv)],["[:^punct:]",new dv(-1,Tv)],["[:space:]",new dv(1,xv)],["[:^space:]",new dv(-1,xv)],["[:upper:]",new dv(1,Dv)],["[:^upper:]",new dv(-1,Dv)],["[:word:]",new dv(1,Mv)],["[:^word:]",new dv(-1,Mv)],["[:xdigit:]",new dv(1,Pv)],["[:^xdigit:]",new dv(-1,Pv)]]);class _v{static charClassToString(e,t){let n="[";for(let r=0;r<t;r+=2){r>0&&(n+=" ");const t=e[r],s=e[r+1];n+=t===s?`0x${t.toString(16)}`:`0x${t.toString(16)}-0x${s.toString(16)}`}return n+="]",n}static cmp(e,t,n,r){const s=e[t]-n;return 0!==s?s:r-e[t+1]}static qsortIntPair(e,t,n){const r=(t+n)/2&-2,s=e[r],i=e[r+1];let o=t,a=n;for(;o<=a;){for(;o<n&&_v.cmp(e,o,s,i)<0;)o+=2;for(;a>t&&_v.cmp(e,a,s,i)>0;)a-=2;if(o<=a){if(o!==a){let t=e[o];e[o]=e[a],e[a]=t,t=e[o+1],e[o+1]=e[a+1],e[a+1]=t}o+=2,a-=2}}t<a&&_v.qsortIntPair(e,t,a),o<n&&_v.qsortIntPair(e,o,n)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qC.emptyInts();this.r=e,this.len=e.length}toArray(){return this.len===this.r.length?this.r:this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;_v.qsortIntPair(this.r,0,this.len-2);let e=2;for(let t=2;t<this.len;t+=2){const n=this.r[t],r=this.r[t+1];n<=this.r[e-1]+1?r>this.r[e-1]&&(this.r[e-1]=r):(this.r[e]=n,this.r[e+1]=r,e+=2)}return this.len=e,this}appendLiteral(e,t){return t&ZC.FOLD_CASE?this.appendFoldedRange(e,e):this.appendRange(e,e)}appendRange(e,t){if(this.len>0)for(let n=2;n<=4;n+=2)if(this.len>=n){const r=this.r[this.len-n],s=this.r[this.len-n+1];if(e<=s+1&&r<=t+1)return e<r&&(this.r[this.len-n]=e),t>s&&(this.r[this.len-n+1]=t),this}return this.r[this.len++]=e,this.r[this.len++]=t,this}appendFoldedRange(e,t){if(e<=VC.MIN_FOLD&&t>=VC.MAX_FOLD)return this.appendRange(e,t);if(t<VC.MIN_FOLD||e>VC.MAX_FOLD)return this.appendRange(e,t);e<VC.MIN_FOLD&&(this.appendRange(e,VC.MIN_FOLD-1),e=VC.MIN_FOLD),t>VC.MAX_FOLD&&(this.appendRange(VC.MAX_FOLD+1,t),t=VC.MAX_FOLD);for(let n=e;n<=t;n++){this.appendRange(n,n);for(let e=VC.simpleFold(n);e!==n;e=VC.simpleFold(e))this.appendRange(e,e)}return this}appendClass(e){for(let t=0;t<e.length;t+=2)this.appendRange(e[t],e[t+1]);return this}appendFoldedClass(e){for(let t=0;t<e.length;t+=2)this.appendFoldedRange(e[t],e[t+1]);return this}appendNegatedClass(e){let t=0;for(let n=0;n<e.length;n+=2){const r=e[n],s=e[n+1];t<=r-1&&this.appendRange(t,r-1),t=s+1}return t<=VC.MAX_RUNE&&this.appendRange(t,VC.MAX_RUNE),this}appendTable(e){for(let t of e){const e=t[0],n=t[1],r=t[2];if(1!==r)for(let t=e;t<=n;t+=r)this.appendRange(t,t);else this.appendRange(e,n)}return this}appendNegatedTable(e){let t=0;for(let n of e){const e=n[0],r=n[1],s=n[2];if(1!==s)for(let n=e;n<=r;n+=s)t<=n-1&&this.appendRange(t,n-1),t=n+1;else t<=e-1&&this.appendRange(t,e-1),t=r+1}return t<=VC.MAX_RUNE&&this.appendRange(t,VC.MAX_RUNE),this}appendTableWithSign(e,t){return t<0?this.appendNegatedTable(e):this.appendTable(e)}negateClass(){let e=0,t=0;for(let n=0;n<this.len;n+=2){const r=this.r[n],s=this.r[n+1];e<=r-1&&(this.r[t]=e,this.r[t+1]=r-1,t+=2),e=s+1}return this.len=t,e<=VC.MAX_RUNE&&(this.r[this.len++]=e,this.r[this.len++]=VC.MAX_RUNE),this}appendClassWithSign(e,t){return t<0?this.appendNegatedClass(e):this.appendClass(e)}appendGroup(e,t){let n=e.cls;return t&&(n=(new _v).appendFoldedClass(n).cleanClass().toArray()),this.appendClassWithSign(n,e.sign)}toString(){return _v.charClassToString(this.r,this.len)}}class Fv{static of(e,t){return new Fv(e,t)}constructor(e,t){this.first=e,this.second=t}}class Nv{constructor(e){this.str=e,this.position=0}pos(){return this.position}rewindTo(e){this.position=e}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(e){this.position+=e}skipString(e){this.position+=e.length}pop(){const e=this.str.codePointAt(this.position);return this.position+=qC.charCount(e),e}lookingAt(e){return this.rest().startsWith(e)}rest(){return this.str.substring(this.position)}from(e){return this.str.substring(e,this.position)}toString(){return this.rest()}}class Ov{static ERR_INTERNAL_ERROR="regexp/syntax: internal error";static ERR_INVALID_CHAR_RANGE="invalid character class range";static ERR_INVALID_ESCAPE="invalid escape sequence";static ERR_INVALID_NAMED_CAPTURE="invalid named capture";static ERR_INVALID_PERL_OP="invalid or unsupported Perl syntax";static ERR_INVALID_REPEAT_OP="invalid nested repetition operator";static ERR_INVALID_REPEAT_SIZE="invalid repeat count";static ERR_MISSING_BRACKET="missing closing ]";static ERR_MISSING_PAREN="missing closing )";static ERR_MISSING_REPEAT_ARGUMENT="missing argument to repetition operator";static ERR_TRAILING_BACKSLASH="trailing backslash at end of expression";static ERR_DUPLICATE_NAMED_CAPTURE="duplicate capture group name";static ANY_TABLE(){return[[0,VC.MAX_RUNE,1]]}static unicodeTable(e){return"Any"===e?Fv.of(Ov.ANY_TABLE(),Ov.ANY_TABLE()):WC.CATEGORIES.has(e)?Fv.of(WC.CATEGORIES.get(e),WC.FOLD_CATEGORIES.get(e)):WC.SCRIPTS.has(e)?Fv.of(WC.SCRIPTS.get(e),WC.FOLD_SCRIPT.get(e)):null}static minFoldRune(e){if(e<VC.MIN_FOLD||e>VC.MAX_FOLD)return e;let t=e;const n=e;for(e=VC.simpleFold(e);e!==n;e=VC.simpleFold(e))t>e&&(t=e);return t}static leadingRegexp(e){if(e.op===av.Op.EMPTY_MATCH)return null;if(e.op===av.Op.CONCAT&&e.subs.length>0){const t=e.subs[0];return t.op===av.Op.EMPTY_MATCH?null:t}return e}static literalRegexp(e,t){const n=new av(av.Op.LITERAL);return n.flags=t,n.runes=qC.stringToRunes(e),n}static parse(e,t){return new Ov(e,t).parseInternal()}static parseRepeat(e){const t=e.pos();if(!e.more()||!e.lookingAt("{"))return-1;e.skip(1);const n=Ov.parseInt(e);if(-1===n)return-1;if(!e.more())return-1;let r;if(e.lookingAt(",")){if(e.skip(1),!e.more())return-1;if(e.lookingAt("}"))r=-1;else if(-1===(r=Ov.parseInt(e)))return-1}else r=n;if(!e.more()||!e.lookingAt("}"))return-1;if(e.skip(1),n<0||n>1e3||-2===r||r>1e3||r>=0&&n>r)throw new QC(Ov.ERR_INVALID_REPEAT_SIZE,e.from(t));return n<<16|r&VC.MAX_BMP}static isValidCaptureName(e){if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.codePointAt(t);if(n!==$C.CODES.get("_")&&!qC.isalnum(n))return!1}return!0}static parseInt(e){const t=e.pos();for(;e.more()&&e.peek()>=$C.CODES.get("0")&&e.peek()<=$C.CODES.get("9");)e.skip(1);const n=e.from(t);return 0===n.length||n.length>1&&n.codePointAt(0)===$C.CODES.get("0")?-1:n.length>8?-2:parseFloat(n,10)}static isCharClass(e){return e.op===av.Op.LITERAL&&1===e.runes.length||e.op===av.Op.CHAR_CLASS||e.op===av.Op.ANY_CHAR_NOT_NL||e.op===av.Op.ANY_CHAR}static matchRune(e,t){switch(e.op){case av.Op.LITERAL:return 1===e.runes.length&&e.runes[0]===t;case av.Op.CHAR_CLASS:for(let n=0;n<e.runes.length;n+=2)if(e.runes[n]<=t&&t<=e.runes[n+1])return!0;return!1;case av.Op.ANY_CHAR_NOT_NL:return t!==$C.CODES.get("\n");case av.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(e,t){switch(e.op){case av.Op.ANY_CHAR:break;case av.Op.ANY_CHAR_NOT_NL:Ov.matchRune(t,$C.CODES.get("\n"))&&(e.op=av.Op.ANY_CHAR);break;case av.Op.CHAR_CLASS:t.op===av.Op.LITERAL?e.runes=new _v(e.runes).appendLiteral(t.runes[0],t.flags).toArray():e.runes=new _v(e.runes).appendClass(t.runes).toArray();break;case av.Op.LITERAL:if(t.runes[0]===e.runes[0]&&t.flags===e.flags)break;e.op=av.Op.CHAR_CLASS,e.runes=(new _v).appendLiteral(e.runes[0],e.flags).appendLiteral(t.runes[0],t.flags).toArray()}}static parseEscape(e){const t=e.pos();if(e.skip(1),!e.more())throw new QC(Ov.ERR_TRAILING_BACKSLASH);let n=e.pop();e:switch(n){case $C.CODES.get("1"):case $C.CODES.get("2"):case $C.CODES.get("3"):case $C.CODES.get("4"):case $C.CODES.get("5"):case $C.CODES.get("6"):case $C.CODES.get("7"):if(!e.more()||e.peek()<$C.CODES.get("0")||e.peek()>$C.CODES.get("7"))break;case $C.CODES.get("0"):{let t=n-$C.CODES.get("0");for(let n=1;n<3&&!(!e.more()||e.peek()<$C.CODES.get("0")||e.peek()>$C.CODES.get("7"));n++)t=8*t+e.peek()-$C.CODES.get("0"),e.skip(1);return t}case $C.CODES.get("x"):{if(!e.more())break;if(n=e.pop(),n===$C.CODES.get("{")){let t=0,r=0;for(;;){if(!e.more())break e;if(n=e.pop(),n===$C.CODES.get("}"))break;const s=qC.unhex(n);if(s<0)break e;if(r=16*r+s,r>VC.MAX_RUNE)break e;t++}if(0===t)break e;return r}const t=qC.unhex(n);if(!e.more())break;n=e.pop();const r=qC.unhex(n);if(t<0||r<0)break;return 16*t+r}case $C.CODES.get("a"):return $C.CODES.get("");case $C.CODES.get("f"):return $C.CODES.get("\f");case $C.CODES.get("n"):return $C.CODES.get("\n");case $C.CODES.get("r"):return $C.CODES.get("\r");case $C.CODES.get("t"):return $C.CODES.get("\t");case $C.CODES.get("v"):return $C.CODES.get("\v");default:if(!qC.isalnum(n))return n}throw new QC(Ov.ERR_INVALID_ESCAPE,e.from(t))}static parseClassChar(e,t){if(!e.more())throw new QC(Ov.ERR_MISSING_BRACKET,e.from(t));return e.lookingAt("\\")?Ov.parseEscape(e):e.pop()}static concatRunes(e,t){return[...e,...t]}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.wholeRegexp=e,this.flags=t,this.numCap=0,this.namedGroups={},this.stack=[],this.free=null}newRegexp(e){let t=this.free;return null!==t&&null!==t.subs&&t.subs.length>0?(this.free=t.subs[0],t.reinit(),t.op=e):t=new av(e),t}reuse(e){null!==e.subs&&e.subs.length>0&&(e.subs[0]=this.free),this.free=e}pop(){return this.stack.pop()}popToPseudo(){const e=this.stack.length;let t=e;for(;t>0&&!av.isPseudoOp(this.stack[t-1].op);)t--;const n=this.stack.slice(t,e);return this.stack=this.stack.slice(0,t),n}push(e){if(e.op===av.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]===e.runes[1]){if(this.maybeConcat(e.runes[0],this.flags&~ZC.FOLD_CASE))return null;e.op=av.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags&~ZC.FOLD_CASE}else if(e.op===av.Op.CHAR_CLASS&&4===e.runes.length&&e.runes[0]===e.runes[1]&&e.runes[2]===e.runes[3]&&VC.simpleFold(e.runes[0])===e.runes[2]&&VC.simpleFold(e.runes[2])===e.runes[0]||e.op===av.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]+1===e.runes[1]&&VC.simpleFold(e.runes[0])===e.runes[1]&&VC.simpleFold(e.runes[1])===e.runes[0]){if(this.maybeConcat(e.runes[0],this.flags|ZC.FOLD_CASE))return null;e.op=av.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags|ZC.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(e),e}maybeConcat(e,t){const n=this.stack.length;if(n<2)return!1;const r=this.stack[n-1],s=this.stack[n-2];return r.op===av.Op.LITERAL&&s.op===av.Op.LITERAL&&(r.flags&ZC.FOLD_CASE)==(s.flags&ZC.FOLD_CASE)&&(s.runes=Ov.concatRunes(s.runes,r.runes),e>=0?(r.runes=[e],r.flags=t,!0):(this.pop(),this.reuse(r),!1))}newLiteral(e,t){const n=this.newRegexp(av.Op.LITERAL);return n.flags=t,t&ZC.FOLD_CASE&&(e=Ov.minFoldRune(e)),n.runes=[e],n}literal(e){this.push(this.newLiteral(e,this.flags))}op(e){const t=this.newRegexp(e);return t.flags=this.flags,this.push(t)}repeat(e,t,n,r,s,i){let o=this.flags;if(o&ZC.PERL_X&&(s.more()&&s.lookingAt("?")&&(s.skip(1),o^=ZC.NON_GREEDY),-1!==i))throw new QC(Ov.ERR_INVALID_REPEAT_OP,s.from(i));const a=this.stack.length;if(0===a)throw new QC(Ov.ERR_MISSING_REPEAT_ARGUMENT,s.from(r));const l=this.stack[a-1];if(av.isPseudoOp(l.op))throw new QC(Ov.ERR_MISSING_REPEAT_ARGUMENT,s.from(r));const c=this.newRegexp(e);c.min=t,c.max=n,c.flags=o,c.subs=[l],this.stack[a-1]=c}concat(){this.maybeConcat(-1,0);const e=this.popToPseudo();return 0===e.length?this.push(this.newRegexp(av.Op.EMPTY_MATCH)):this.push(this.collapse(e,av.Op.CONCAT))}alternate(){const e=this.popToPseudo();return e.length>0&&this.cleanAlt(e[e.length-1]),0===e.length?this.push(this.newRegexp(av.Op.NO_MATCH)):this.push(this.collapse(e,av.Op.ALTERNATE))}cleanAlt(e){e.op===av.Op.CHAR_CLASS&&(e.runes=new _v(e.runes).cleanClass().toArray(),2===e.runes.length&&0===e.runes[0]&&e.runes[1]===VC.MAX_RUNE?(e.runes=null,e.op=av.Op.ANY_CHAR):4===e.runes.length&&0===e.runes[0]&&e.runes[1]===$C.CODES.get("\n")-1&&e.runes[2]===$C.CODES.get("\n")+1&&e.runes[3]===VC.MAX_RUNE&&(e.runes=null,e.op=av.Op.ANY_CHAR_NOT_NL))}collapse(e,t){if(1===e.length)return e[0];let n=0;for(let r of e)n+=r.op===t?r.subs.length:1;let r=new Array(n).fill(null),s=0;for(let n of e)n.op===t?(r.splice(s,n.subs.length,...n.subs),s+=n.subs.length,this.reuse(n)):r[s++]=n;let i=this.newRegexp(t);if(i.subs=r,t===av.Op.ALTERNATE&&(i.subs=this.factor(i.subs),1===i.subs.length)){const e=i;i=i.subs[0],this.reuse(e)}return i}factor(e){if(e.length<2)return e;let t=0,n=e.length,r=0,s=null,i=0,o=0,a=0;for(let l=0;l<=n;l++){let c=null,u=0,h=0;if(l<n){let n=e[t+l];if(n.op===av.Op.CONCAT&&n.subs.length>0&&(n=n.subs[0]),n.op===av.Op.LITERAL&&(c=n.runes,u=n.runes.length,h=n.flags&ZC.FOLD_CASE),h===o){let e=0;for(;e<i&&e<u&&s[e]===c[e];)e++;if(e>0){i=e;continue}}}if(l===a);else if(l===a+1)e[r++]=e[t+a];else{const n=this.newRegexp(av.Op.LITERAL);n.flags=o,n.runes=s.slice(0,i);for(let n=a;n<l;n++)e[t+n]=this.removeLeadingString(e[t+n],i);const c=this.collapse(e.slice(t+a,t+l),av.Op.ALTERNATE),u=this.newRegexp(av.Op.CONCAT);u.subs=[n,c],e[r++]=u}a=l,s=c,i=u,o=h}n=r,t=0,a=0,r=0;let l=null;for(let s=0;s<=n;s++){let i=null;if(!(s<n&&(i=Ov.leadingRegexp(e[t+s]),null!==l&&l.equals(i)&&(Ov.isCharClass(l)||l.op===av.Op.REPEAT&&l.min===l.max&&Ov.isCharClass(l.subs[0]))))){if(s===a);else if(s===a+1)e[r++]=e[t+a];else{const n=l;for(let n=a;n<s;n++){const r=n!==a;e[t+n]=this.removeLeadingRegexp(e[t+n],r)}const i=this.collapse(e.slice(t+a,t+s),av.Op.ALTERNATE),o=this.newRegexp(av.Op.CONCAT);o.subs=[n,i],e[r++]=o}a=s,l=i}}n=r,t=0,a=0,r=0;for(let s=0;s<=n;s++)if(!(s<n&&Ov.isCharClass(e[t+s]))){if(s===a);else if(s===a+1)e[r++]=e[t+a];else{let n=a;for(let r=a+1;r<s;r++){const s=e[t+n],i=e[t+r];(s.op<i.op||s.op===i.op&&(null!==s.runes?s.runes.length:0)<(null!==i.runes?i.runes.length:0))&&(n=r)}const i=e[t+a];e[t+a]=e[t+n],e[t+n]=i;for(let n=a+1;n<s;n++)Ov.mergeCharClass(e[t+a],e[t+n]),this.reuse(e[t+n]);this.cleanAlt(e[t+a]),e[r++]=e[t+a]}s<n&&(e[r++]=e[t+s]),a=s+1}n=r,t=0,a=0,r=0;for(let s=0;s<n;++s)s+1<n&&e[t+s].op===av.Op.EMPTY_MATCH&&e[t+s+1].op===av.Op.EMPTY_MATCH||(e[r++]=e[t+s]);return n=r,t=0,e.slice(t,n)}removeLeadingString(e,t){if(e.op===av.Op.CONCAT&&e.subs.length>0){const n=this.removeLeadingString(e.subs[0],t);if(e.subs[0]=n,n.op===av.Op.EMPTY_MATCH)switch(this.reuse(n),e.subs.length){case 0:case 1:e.op=av.Op.EMPTY_MATCH,e.subs=null;break;case 2:{const t=e;e=e.subs[1],this.reuse(t);break}default:e.subs=e.subs.slice(1,e.subs.length)}return e}return e.op===av.Op.LITERAL&&(e.runes=e.runes.slice(t,e.runes.length),0===e.runes.length&&(e.op=av.Op.EMPTY_MATCH)),e}removeLeadingRegexp(e,t){if(e.op===av.Op.CONCAT&&e.subs.length>0){switch(t&&this.reuse(e.subs[0]),e.subs=e.subs.slice(1,e.subs.length),e.subs.length){case 0:e.op=av.Op.EMPTY_MATCH,e.subs=av.emptySubs();break;case 1:{const t=e;e=e.subs[0],this.reuse(t);break}}return e}return t&&this.reuse(e),this.newRegexp(av.Op.EMPTY_MATCH)}parseInternal(){if(this.flags&ZC.LITERAL)return Ov.literalRegexp(this.wholeRegexp,this.flags);let e=-1,t=-1,n=-1;const r=new Nv(this.wholeRegexp);for(;r.more();){let s=-1;e:switch(r.peek()){case $C.CODES.get("("):if(this.flags&ZC.PERL_X&&r.lookingAt("(?")){this.parsePerlFlags(r);break}this.op(av.Op.LEFT_PAREN).cap=++this.numCap,r.skip(1);break;case $C.CODES.get("|"):this.parseVerticalBar(),r.skip(1);break;case $C.CODES.get(")"):this.parseRightParen(),r.skip(1);break;case $C.CODES.get("^"):this.flags&ZC.ONE_LINE?this.op(av.Op.BEGIN_TEXT):this.op(av.Op.BEGIN_LINE),r.skip(1);break;case $C.CODES.get("$"):this.flags&ZC.ONE_LINE?this.op(av.Op.END_TEXT).flags|=ZC.WAS_DOLLAR:this.op(av.Op.END_LINE),r.skip(1);break;case $C.CODES.get("."):this.flags&ZC.DOT_NL?this.op(av.Op.ANY_CHAR):this.op(av.Op.ANY_CHAR_NOT_NL),r.skip(1);break;case $C.CODES.get("["):this.parseClass(r);break;case $C.CODES.get("*"):case $C.CODES.get("+"):case $C.CODES.get("?"):{s=r.pos();let i=null;switch(r.pop()){case $C.CODES.get("*"):i=av.Op.STAR;break;case $C.CODES.get("+"):i=av.Op.PLUS;break;case $C.CODES.get("?"):i=av.Op.QUEST}this.repeat(i,t,n,s,r,e);break}case $C.CODES.get("{"):{s=r.pos();const i=Ov.parseRepeat(r);if(i<0){r.rewindTo(s),this.literal(r.pop());break}t=i>>16,n=(i&VC.MAX_BMP)<<16>>16,this.repeat(av.Op.REPEAT,t,n,s,r,e);break}case $C.CODES.get("\\"):{const e=r.pos();if(r.skip(1),this.flags&ZC.PERL_X&&r.more())switch(r.pop()){case $C.CODES.get("A"):this.op(av.Op.BEGIN_TEXT);break e;case $C.CODES.get("b"):this.op(av.Op.WORD_BOUNDARY);break e;case $C.CODES.get("B"):this.op(av.Op.NO_WORD_BOUNDARY);break e;case $C.CODES.get("C"):throw new QC(Ov.ERR_INVALID_ESCAPE,"\\C");case $C.CODES.get("Q"):{let e=r.rest();const t=e.indexOf("\\E");t>=0&&(e=e.substring(0,t)),r.skipString(e),r.skipString("\\E");let n=0;for(;n<e.length;){const t=e.codePointAt(n);this.literal(t),n+=qC.charCount(t)}break e}case $C.CODES.get("z"):this.op(av.Op.END_TEXT);break e;default:r.rewindTo(e)}const t=this.newRegexp(av.Op.CHAR_CLASS);if(t.flags=this.flags,r.lookingAt("\\p")||r.lookingAt("\\P")){const e=new _v;if(this.parseUnicodeClass(r,e)){t.runes=e.toArray(),this.push(t);break e}}const n=new _v;if(this.parsePerlClassEscape(r,n)){t.runes=n.toArray(),this.push(t);break e}r.rewindTo(e),this.reuse(t),this.literal(Ov.parseEscape(r));break}default:this.literal(r.pop())}e=s}if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),1!==this.stack.length)throw new QC(Ov.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(e){const t=e.pos(),n=e.rest();if(n.startsWith("(?P<")){const t=n.indexOf(">");if(t<0)throw new QC(Ov.ERR_INVALID_NAMED_CAPTURE,n);const r=n.substring(4,t);if(e.skipString(r),e.skip(5),!Ov.isValidCaptureName(r))throw new QC(Ov.ERR_INVALID_NAMED_CAPTURE,n.substring(0,t));const s=this.op(av.Op.LEFT_PAREN);if(s.cap=++this.numCap,this.namedGroups[r])throw new QC(Ov.ERR_DUPLICATE_NAMED_CAPTURE,r);return this.namedGroups[r]=this.numCap,void(s.name=r)}e.skip(2);let r=this.flags,s=1,i=!1;e:for(;e.more();){const t=e.pop();switch(t){case $C.CODES.get("i"):r|=ZC.FOLD_CASE,i=!0;break;case $C.CODES.get("m"):r&=~ZC.ONE_LINE,i=!0;break;case $C.CODES.get("s"):r|=ZC.DOT_NL,i=!0;break;case $C.CODES.get("U"):r|=ZC.NON_GREEDY,i=!0;break;case $C.CODES.get("-"):if(s<0)break e;s=-1,r=~r,i=!1;break;case $C.CODES.get(":"):case $C.CODES.get(")"):if(s<0){if(!i)break e;r=~r}return t===$C.CODES.get(":")&&this.op(av.Op.LEFT_PAREN),void(this.flags=r);default:break e}}throw new QC(Ov.ERR_INVALID_PERL_OP,e.from(t))}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(av.Op.VERTICAL_BAR)}swapVerticalBar(){const e=this.stack.length;if(e>=3&&this.stack[e-2].op===av.Op.VERTICAL_BAR&&Ov.isCharClass(this.stack[e-1])&&Ov.isCharClass(this.stack[e-3])){let t=this.stack[e-1],n=this.stack[e-3];if(t.op>n.op){const r=n;n=t,t=r,this.stack[e-3]=n}return Ov.mergeCharClass(n,t),this.reuse(t),this.pop(),!0}if(e>=2){const t=this.stack[e-1],n=this.stack[e-2];if(n.op===av.Op.VERTICAL_BAR)return e>=3&&this.cleanAlt(this.stack[e-3]),this.stack[e-2]=t,this.stack[e-1]=n,!0}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length<2)throw new QC(Ov.ERR_INTERNAL_ERROR,"stack underflow");const e=this.pop(),t=this.pop();if(t.op!==av.Op.LEFT_PAREN)throw new QC(Ov.ERR_MISSING_PAREN,this.wholeRegexp);this.flags=t.flags,0===t.cap?this.push(e):(t.op=av.Op.CAPTURE,t.subs=[e],this.push(t))}parsePerlClassEscape(e,t){const n=e.pos();if(!(this.flags&ZC.PERL_X&&e.more()&&e.pop()===$C.CODES.get("\\")&&e.more()))return!1;e.pop();const r=e.from(n),s=yv.has(r)?yv.get(r):null;return null!==s&&(t.appendGroup(s,!!(this.flags&ZC.FOLD_CASE)),!0)}parseNamedClass(e,t){const n=e.rest(),r=n.indexOf(":]");if(r<0)return!1;const s=n.substring(0,r+2);e.skipString(s);const i=Iv.has(s)?Iv.get(s):null;if(null===i)throw new QC(Ov.ERR_INVALID_CHAR_RANGE,s);return t.appendGroup(i,!!(this.flags&ZC.FOLD_CASE)),!0}parseUnicodeClass(e,t){const n=e.pos();if(!(this.flags&ZC.UNICODE_GROUPS)||!e.lookingAt("\\p")&&!e.lookingAt("\\P"))return!1;e.skip(1);let r,s=1,i=e.pop();if(i===$C.CODES.get("P")&&(s=-1),!e.more())throw e.rewindTo(n),new QC(Ov.ERR_INVALID_CHAR_RANGE,e.rest());if(i=e.pop(),i!==$C.CODES.get("{"))r=qC.runeToString(i);else{const t=e.rest(),s=t.indexOf("}");if(s<0)throw e.rewindTo(n),new QC(Ov.ERR_INVALID_CHAR_RANGE,e.rest());r=t.substring(0,s),e.skipString(r),e.skip(1)}0!==r.length&&r.codePointAt(0)===$C.CODES.get("^")&&(s=0-s,r=r.substring(1));const o=Ov.unicodeTable(r);if(null===o)throw new QC(Ov.ERR_INVALID_CHAR_RANGE,e.from(n));const a=o.first,l=o.second;if(this.flags&ZC.FOLD_CASE&&null!==l){const e=(new _v).appendTable(a).appendTable(l).cleanClass().toArray();t.appendClassWithSign(e,s)}else t.appendTableWithSign(a,s);return!0}parseClass(e){const t=e.pos();e.skip(1);const n=this.newRegexp(av.Op.CHAR_CLASS);n.flags=this.flags;const r=new _v;let s=1;e.more()&&e.lookingAt("^")&&(s=-1,e.skip(1),this.flags&ZC.CLASS_NL||r.appendRange($C.CODES.get("\n"),$C.CODES.get("\n")));let i=!0;for(;!e.more()||e.peek()!==$C.CODES.get("]")||i;){if(e.more()&&e.lookingAt("-")&&!(this.flags&ZC.PERL_X)&&!i){const n=e.rest();if("-"===n||!n.startsWith("-]"))throw e.rewindTo(t),new QC(Ov.ERR_INVALID_CHAR_RANGE,e.rest())}i=!1;const n=e.pos();if(e.lookingAt("[:")){if(this.parseNamedClass(e,r))continue;e.rewindTo(n)}if(this.parseUnicodeClass(e,r))continue;if(this.parsePerlClassEscape(e,r))continue;e.rewindTo(n);const s=Ov.parseClassChar(e,t);let o=s;if(e.more()&&e.lookingAt("-"))if(e.skip(1),e.more()&&e.lookingAt("]"))e.skip(-1);else if(o=Ov.parseClassChar(e,t),o<s)throw new QC(Ov.ERR_INVALID_CHAR_RANGE,e.from(n));this.flags&ZC.FOLD_CASE?r.appendFoldedRange(s,o):r.appendRange(s,o)}e.skip(1),r.cleanClass(),s<0&&r.negateClass(),n.runes=r.toArray(),this.push(n)}}class Lv{constructor(){this.inst=null,this.cap=[]}}class Bv{constructor(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}contains(e){const t=this.sparse[e];return t<this.size&&this.densePcs[t]===e}isEmpty(){return 0===this.size}add(e){const t=this.size++;return this.sparse[e]=t,this.denseThreads[t]=null,this.densePcs[t]=e,t}clear(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}toString(){let e="{";for(let t=0;t<this.size;t++)0!==t&&(e+=", "),e+=this.densePcs[t];return e+="}",e}}class Hv{static fromRE2(e){const t=new Hv;return t.prog=e.prog,t.re2=e,t.q0=new Bv(t.prog.numInst()),t.q1=new Bv(t.prog.numInst()),t.pool=[],t.poolSize=0,t.matched=!1,t.matchcap=Array(t.prog.numCap<2?2:t.prog.numCap).fill(0),t.ncap=0,t}static fromMachine(e){const t=new Hv;return t.re2=e.re2,t.prog=e.prog,t.q0=e.q0,t.q1=e.q1,t.pool=e.pool,t.poolSize=e.poolSize,t.matched=e.matched,t.matchcap=e.matchcap,t.ncap=e.ncap,t}init(e){this.ncap=e,e>this.matchcap.length?this.initNewCap(e):this.resetCap(e)}resetCap(e){for(let t=0;t<this.poolSize;t++)this.pool[t].cap=Array(e).fill(0)}initNewCap(e){for(let t=0;t<this.poolSize;t++)this.pool[t].cap=Array(e).fill(0);this.matchcap=Array(e).fill(0)}submatches(){return 0===this.ncap?qC.emptyInts():this.matchcap.slice(0,this.ncap)}alloc(e){let t;return this.poolSize>0?(this.poolSize--,t=this.pool[this.poolSize]):t=new Lv,t.inst=e,t}freeQueue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.size-t,r=this.poolSize+n;this.pool.length<r&&(this.pool=this.pool.slice(0,Math.max(2*this.pool.length,r)));for(let n=t;n<e.size;n++){const t=e.denseThreads[n];null!==t&&(this.pool[this.poolSize]=t,this.poolSize++)}e.clear()}freeThread(e){this.pool.length<=this.poolSize&&(this.pool=this.pool.slice(0,2*this.pool.length)),this.pool[this.poolSize]=e,this.poolSize++}match(e,t,n){const r=this.re2.cond;if(r===qC.EMPTY_ALL)return!1;if((n===ZC.ANCHOR_START||n===ZC.ANCHOR_BOTH)&&0!==t)return!1;this.matched=!1,this.matchcap=Array(this.prog.numCap).fill(-1);let s,i=this.q0,o=this.q1,a=e.step(t),l=a>>3,c=7&a,u=-1,h=0;for(a!==rv.EOF()&&(a=e.step(t+c),u=a>>3,h=7&a),s=0===t?qC.emptyOpContext(-1,l):e.context(t);;){if(i.isEmpty()){if(r&qC.EMPTY_BEGIN_TEXT&&0!==t)break;if(this.matched)break;if(0!==this.re2.prefix.length&&u!==this.re2.prefixRune&&e.canCheckPrefix()){const n=e.index(this.re2,t);if(n<0)break;t+=n,a=e.step(t),l=a>>3,c=7&a,a=e.step(t+c),u=a>>3,h=7&a}}this.matched||0!==t&&n!==ZC.UNANCHORED||(this.ncap>0&&(this.matchcap[0]=t),this.add(i,this.prog.start,t,this.matchcap,s,null));const p=t+c;if(s=e.context(p),this.step(i,o,t,p,l,s,n,t===e.endPos()),0===c)break;if(0===this.ncap&&this.matched)break;t+=c,l=u,c=h,-1!==l&&(a=e.step(t+c),u=a>>3,h=7&a);const d=i;i=o,o=d}return this.freeQueue(o),this.matched}step(e,t,n,r,s,i,o,a){const l=this.re2.longest;for(let c=0;c<e.size;c++){let u=e.denseThreads[c];if(null===u)continue;if(l&&this.matched&&this.ncap>0&&this.matchcap[0]<u.cap[0]){this.freeThread(u);continue}const h=u.inst;let p=!1;switch(h.op){case lv.MATCH:if(o===ZC.ANCHOR_BOTH&&!a)break;this.ncap>0&&(!l||!this.matched||this.matchcap[1]<n)&&(u.cap[1]=n,this.matchcap=u.cap.slice(0,this.ncap)),l||this.freeQueue(e,c+1),this.matched=!0;break;case lv.RUNE:p=h.matchRune(s);break;case lv.RUNE1:p=s===h.runes[0];break;case lv.RUNE_ANY:p=!0;break;case lv.RUNE_ANY_NOT_NL:p=s!==$C.CODES.get("\n");break;default:throw new Error("bad inst")}p&&(u=this.add(t,h.out,r,u.cap,i,u)),null!==u&&(this.freeThread(u),e.denseThreads[c]=null)}e.clear()}add(e,t,n,r,s,i){if(0===t)return i;if(e.contains(t))return i;const o=e.add(t),a=this.prog.inst[t];switch(a.op){case lv.FAIL:break;case lv.ALT:case lv.ALT_MATCH:i=this.add(e,a.out,n,r,s,i),i=this.add(e,a.arg,n,r,s,i);break;case lv.EMPTY_WIDTH:a.arg&~s||(i=this.add(e,a.out,n,r,s,i));break;case lv.NOP:i=this.add(e,a.out,n,r,s,i);break;case lv.CAPTURE:if(a.arg<this.ncap){const t=r[a.arg];r[a.arg]=n,this.add(e,a.out,n,r,s,null),r[a.arg]=t}else i=this.add(e,a.out,n,r,s,i);break;case lv.MATCH:case lv.RUNE:case lv.RUNE1:case lv.RUNE_ANY:case lv.RUNE_ANY_NOT_NL:null===i?i=this.alloc(a):i.inst=a,this.ncap>0&&i.cap!==r&&(i.cap=r.slice(0,this.ncap)),e.denseThreads[o]=i,i=null;break;default:throw new Error("unhandled")}return i}}class Uv{constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}compareAndSet(e,t){return this.value===e&&(this.value=t,!0)}}class Zv{static initTest(e){const t=Zv.compile(e),n=new Zv(t.expr,t.prog,t.numSubexp,t.longest);return n.cond=t.cond,n.prefix=t.prefix,n.prefixUTF8=t.prefixUTF8,n.prefixComplete=t.prefixComplete,n.prefixRune=t.prefixRune,n}static compile(e){return Zv.compileImpl(e,ZC.PERL,!1)}static compilePOSIX(e){return Zv.compileImpl(e,ZC.POSIX,!0)}static compileImpl(e,t,n){let r=Ov.parse(e,t);const s=r.maxCap();r=pv.simplify(r);const i=hv.compileRegexp(r),o=new Zv(e,i,s,n),[a,l]=i.prefix();return o.prefixComplete=a,o.prefix=l,o.prefixUTF8=qC.stringToUtf8ByteArray(o.prefix),o.prefix.length>0&&(o.prefixRune=o.prefix.codePointAt(0)),o.namedGroups=r.namedGroups,o}static match(e,t){return Zv.compile(e).match(t)}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.expr=e,this.prog=t,this.numSubexp=n,this.longest=r,this.cond=t.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.pooled=new Uv}numberOfCapturingGroups(){return this.numSubexp}get(){let e;do{e=this.pooled.get()}while(e&&!this.pooled.compareAndSet(e,e.next));return e}reset(){this.pooled.set(null)}put(e,t){let n=this.pooled.get();do{n=this.pooled.get(),!t&&n&&(e=Hv.fromMachine(e),t=!0),e.next!==n&&(e.next=n)}while(!this.pooled.compareAndSet(n,e))}toString(){return this.expr}doExecute(e,t,n,r){let s=this.get(),i=!1;s?null!==s.next&&(s=Hv.fromMachine(s),i=!0):(s=Hv.fromRE2(this),i=!0),s.init(r);const o=s.match(e,t,n)?s.submatches():null;return this.put(s,i),o}match(e){return null!==this.doExecute(ov.fromUTF16(e),0,ZC.UNANCHORED,0)}matchWithGroup(e,t,n,r,s){return e instanceof zC||(e=YC.utf16(e)),this.matchMachineInput(e,t,n,r,s)}matchMachineInput(e,t,n,r,s){if(t>n)return[!1,null];const i=e.isUTF16Encoding()?ov.fromUTF16(e.asCharSequence(),0,n):ov.fromUTF8(e.asBytes(),0,n),o=this.doExecute(i,t,r,2*s);return null===o?[!1,null]:[!0,o]}matchUTF8(e){return null!==this.doExecute(ov.fromUTF8(e),0,ZC.UNANCHORED,0)}replaceAll(e,t){return this.replaceAllFunc(e,(()=>t),2*e.length+1)}replaceFirst(e,t){return this.replaceAllFunc(e,(()=>t),1)}replaceAllFunc(e,t,n){let r=0,s=0,i="";const o=ov.fromUTF16(e);let a=0;for(;s<=e.length;){const l=this.doExecute(o,s,ZC.UNANCHORED,2);if(null===l||0===l.length)break;i+=e.substring(r,l[0]),(l[1]>r||0===l[0])&&(i+=t(e.substring(l[0],l[1])),a++),r=l[1];const c=7&o.step(s);if(s+c>l[1]?s+=c:s+1>l[1]?s++:s=l[1],a>=n)break}return i+=e.substring(r),i}pad(e){if(null===e)return null;let t=2*(1+this.numSubexp);if(e.length<t){let n=new Array(t).fill(-1);for(let t=0;t<e.length;t++)n[t]=e[t];e=n}return e}allMatches(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=[];const s=e.endPos();t<0&&(t=s+1);let i=0,o=0,a=-1;for(;o<t&&i<=s;){const t=this.doExecute(e,i,ZC.UNANCHORED,this.prog.numCap);if(null===t||0===t.length)break;let l=!0;if(t[1]===i){t[0]===a&&(l=!1);const n=e.step(i);n<0?i=s+1:i+=7&n}else i=t[1];a=t[1],l&&(r.push(n(this.pad(t))),o++)}return r}findUTF8(e){const t=this.doExecute(ov.fromUTF8(e),0,ZC.UNANCHORED,2);return null===t?null:e.slice(t[0],t[1])}findUTF8Index(e){const t=this.doExecute(ov.fromUTF8(e),0,ZC.UNANCHORED,2);return null===t?null:t.slice(0,2)}find(e){const t=this.doExecute(ov.fromUTF16(e),0,ZC.UNANCHORED,2);return null===t?"":e.substring(t[0],t[1])}findIndex(e){return this.doExecute(ov.fromUTF16(e),0,ZC.UNANCHORED,2)}findUTF8Submatch(e){const t=this.doExecute(ov.fromUTF8(e),0,ZC.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n}findUTF8SubmatchIndex(e){return this.pad(this.doExecute(ov.fromUTF8(e),0,ZC.UNANCHORED,this.prog.numCap))}findSubmatch(e){const t=this.doExecute(ov.fromUTF16(e),0,ZC.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n}findSubmatchIndex(e){return this.pad(this.doExecute(ov.fromUTF16(e),0,ZC.UNANCHORED,this.prog.numCap))}findAllUTF8(e,t){const n=this.allMatches(ov.fromUTF8(e),t,(t=>e.slice(t[0],t[1])));return 0===n.length?null:n}findAllUTF8Index(e,t){const n=this.allMatches(ov.fromUTF8(e),t,(e=>e.slice(0,2)));return 0===n.length?null:n}findAll(e,t){const n=this.allMatches(ov.fromUTF16(e),t,(t=>e.substring(t[0],t[1])));return 0===n.length?null:n}findAllIndex(e,t){const n=this.allMatches(ov.fromUTF16(e),t,(e=>e.slice(0,2)));return 0===n.length?null:n}findAllUTF8Submatch(e,t){const n=this.allMatches(ov.fromUTF8(e),t,(t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n}));return 0===n.length?null:n}findAllUTF8SubmatchIndex(e,t){const n=this.allMatches(ov.fromUTF8(e),t);return 0===n.length?null:n}findAllSubmatch(e,t){const n=this.allMatches(ov.fromUTF16(e),t,(t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n}));return 0===n.length?null:n}findAllSubmatchIndex(e,t){const n=this.allMatches(ov.fromUTF16(e),t);return 0===n.length?null:n}}class $v{static CASE_INSENSITIVE=1;static DOTALL=2;static MULTILINE=4;static DISABLE_UNICODE_GROUPS=8;static LONGEST_MATCH=16;static quote(e){return qC.quoteMeta(e)}static compile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;if(t&$v.CASE_INSENSITIVE&&(n=`(?i)${n}`),t&$v.DOTALL&&(n=`(?s)${n}`),t&$v.MULTILINE&&(n=`(?m)${n}`),t&~($v.MULTILINE|$v.DOTALL|$v.CASE_INSENSITIVE|$v.DISABLE_UNICODE_GROUPS|$v.LONGEST_MATCH))throw new tv("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH");let r=ZC.PERL;t&$v.DISABLE_UNICODE_GROUPS&&(r&=~ZC.UNICODE_GROUPS);const s=new $v(e,t);return s.re2Input=Zv.compileImpl(n,r,!!(t&$v.LONGEST_MATCH)),s}static matches(e,t){return $v.compile(e).matcher(t).matches()}static initTest(e,t,n){if(null==e)throw new Error("pattern is null");if(null==n)throw new Error("re2 is null");const r=new $v(e,t);return r.re2Input=n,r}constructor(e,t){this.patternInput=e,this.flagsInput=t}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(e){return this.matcher(e).matches()}matcher(e){return Array.isArray(e)&&(e=YC.utf8(e)),new nv(this,e)}split(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.matcher(e),r=[];let s=0,i=0;for(;n.find();)if(0!==i||0!==n.end()){if(t>0&&r.length===t-1)break;if(i===n.start()){if(0===t){s+=1,i=n.end();continue}}else for(;s>0;)r.push(""),s-=1;r.push(n.substring(i,n.start())),i=n.end()}else i=n.end();if(0===t&&i!==n.inputLength()){for(;s>0;)r.push(""),s-=1;r.push(n.substring(i,n.inputLength()))}return 0===t&&0!==r.length||r.push(n.substring(i,n.inputLength())),r}toString(){return this.patternInput}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(e){return this===e||null!==e&&this.constructor===e.constructor&&this.flagsInput===e.flagsInput&&this.patternInput===e.patternInput}}class Wv{failed=[];bypassed=[];get status(){return 0===this.failed.length?0===this.bypassed.length?"pass":"bypass":"fail"}}class Vv{rules=[];push(e){void 0!==e&&this.rules.push(e)}get hasRules(){return this.rules.length>0}getFailedRules(e){const t=new Wv;for(const n of this.rules)n.matcher(e)||("bypass"===n.enforced?t.bypassed.push({description:n.humanDescription,rulesetId:n.rulesetId}):t.failed.push({description:n.humanDescription,rulesetId:n.rulesetId}));return t}}class qv{basicCommitWarning=!1;creationRestricted=!1;signedCommitsRequired=!1;pullRequestRequired=!1;commitMessagePatterns=new Vv;commitAuthorEmailPatterns=new Vv;committerEmailPatterns=new Vv;branchNamePatterns=new Vv}function Gv(e,t){if(!e||!t||!Yr(t))return!1;const{endpoint:n,owner:r,isPrivate:s}=t.gitHubRepository;return!(!Un(n)||!(e.login!==r.login||e.plan&&"free"!==e.plan)&&s)}async function zv(e,t,n){const r=new qv;let s;for(const i of e){const e=t.get(i.ruleset_id);if(null==e)continue;const o="always"!==e.current_user_can_bypass||"bypass";switch(i.type){case Jn.Update:case Jn.RequiredDeployments:case Jn.RequiredStatusChecks:r.basicCommitWarning=!0===r.basicCommitWarning||o;break;case Jn.Creation:r.creationRestricted=!0===r.creationRestricted||o;break;case Jn.RequiredSignatures:s??=await nm(n,"commit.gpgsign")??!1,!0!==s&&(r.signedCommitsRequired=!0===r.signedCommitsRequired||o);break;case Jn.PullRequest:r.pullRequestRequired=!0===r.pullRequestRequired||o;break;case Jn.CommitMessagePattern:r.commitMessagePatterns.push(jv(i,o));break;case Jn.CommitAuthorEmailPattern:r.commitAuthorEmailPatterns.push(jv(i,o));break;case Jn.CommitterEmailPattern:r.committerEmailPatterns.push(jv(i,o));break;case Jn.BranchNamePattern:r.branchNamePatterns.push(jv(i,o))}}return r}function jv(e,t){if(e?.parameters)return{enforced:t,matcher:Yv(e.parameters),humanDescription:Kv(e.parameters),rulesetId:e.ruleset_id}}function Kv(e){let t="must ";if(e.negate&&(t+="not "),e.operator===er.RegexMatch)return t+`match the regular expression "${e.pattern}"`;switch(e.operator){case er.StartsWith:t+="start with ";break;case er.EndsWith:t+="end with ";break;case er.Contains:t+="contain "}return t+`"${e.pattern}"`}function Yv(e){if(!e)return()=>!1;let t;switch(e.operator){case er.StartsWith:t=$v.compile(`^${$v.quote(e.pattern)}`);break;case er.EndsWith:t=$v.compile(`${$v.quote(e.pattern)}$`);break;case er.Contains:t=$v.compile(`.*${$v.quote(e.pattern)}.*`);break;case er.RegexMatch:t=$v.compile(e.pattern)}return t?e.negate?e=>!t.matcher(e).find():e=>t.matcher(e).find():()=>!1}const Xv=!1,Qv="useExternalCredentialHelper",Jv=()=>zt(Qv,Xv),eS="last-selected-repository-id",tS="recently-selected-repositories",nS="sidebar-width",rS="commit-summary-width",sS="stashed-files-width",iS="pull-request-files-width",oS=230,aS="branch-dropdown-width",lS=230,cS="push-pull-button-width",uS=!0,hS=!0,pS=!1,dS=!0,mS=!0,fS=!0,gS=!0,yS=!0,wS=!0,bS=!0,CS="askToMoveToApplicationsFolder",vS="confirmRepoRemoval",SS="showCommitLengthWarning",ES="confirmDiscardChanges",kS="confirmDiscardStash",RS="confirmCheckoutCommit",AS="confirmDiscardChangesPermanentlyKey",TS="confirmForcePush",xS="confirmUndoCommit",DS="confirmCommitFilteredChangesKey",MS="uncommittedChangesStrategyKind",PS="externalEditor",IS=Zu.TwoUp,_S="image-diff-type",FS="hide-whitespace-in-changes-diff",NS="hide-whitespace-in-diff",OS="hide-whitespace-in-pull-request-diff",LS=!0,BS="commit-spellcheck-enabled",HS="tab-size",US="shell",ZS="enable-repository-indicators",$S="version-and-users-of-last-thank-you",WS="pull-request-suggested-next-action-key",VS="use-custom-editor",qS="custom-editor",GS="use-custom-shell",zS="custom-shell",jS="underline-links",KS=!0,YS=!0,XS="diff-check-marks-visible",QS="commit-message-generation-disclaimer-last-seen",JS="commit-message-generation-button-clicked",eE="show-changes-filter",tE=!0;function nE(e){return e instanceof mt?nE(e.underlyingError):e instanceof Gd&&e.result.gitError===ad.GitError.LocalChangesOverwritten}function rE(e,t=-1/0,n=1/0){const r=n<t?t:n;return{value:"number"==typeof e?e:e.value,min:t,max:r}}const sE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,iE=Object.keys,oE=Array.isArray;function aE(e,t){return"object"!=typeof t||iE(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||sE.Promise||(sE.Promise=Promise);const lE=Object.getPrototypeOf,cE={}.hasOwnProperty;function uE(e,t){return cE.call(e,t)}function hE(e,t){"function"==typeof t&&(t=t(lE(e))),("undefined"==typeof Reflect?iE:Reflect.ownKeys)(t).forEach((n=>{dE(e,n,t[n])}))}const pE=Object.defineProperty;function dE(e,t,n,r){pE(e,t,aE(n&&uE(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function mE(e){return{from:function(t){return e.prototype=Object.create(t.prototype),dE(e.prototype,"constructor",e),{extend:hE.bind(null,e.prototype)}}}}const fE=Object.getOwnPropertyDescriptor;function gE(e,t){let n;return fE(e,t)||(n=lE(e))&&gE(n,t)}const yE=[].slice;function wE(e,t,n){return yE.call(e,t,n)}function bE(e,t){return t(e)}function CE(e){if(!e)throw new Error("Assertion Failed")}function vE(e){sE.setImmediate?setImmediate(e):setTimeout(e,0)}function SE(e,t){return e.reduce(((e,n,r)=>{var s=t(n,r);return s&&(e[s[0]]=s[1]),e}),{})}function EE(e,t){if("string"==typeof t&&uE(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,s=t.length;r<s;++r){var i=EE(e,t[r]);n.push(i)}return n}var o=t.indexOf(".");if(-1!==o){var a=e[t.substr(0,o)];return null==a?void 0:EE(a,t.substr(o+1))}}function kE(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){CE("string"!=typeof n&&"length"in n);for(var r=0,s=t.length;r<s;++r)kE(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var o=t.substr(0,i),a=t.substr(i+1);if(""===a)void 0===n?oE(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=n;else{var l=e[o];l&&uE(e,o)||(l=e[o]={}),kE(l,a,n)}}else void 0===n?oE(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function RE(e){var t={};for(var n in e)uE(e,n)&&(t[n]=e[n]);return t}const AE=[].concat;function TE(e){return AE.apply([],e)}const xE="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(TE([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>sE[e])),DE=xE.map((e=>sE[e]));SE(xE,(e=>[e,!0]));let ME=null;function PE(e){ME="undefined"!=typeof WeakMap&&new WeakMap;const t=IE(e);return ME=null,t}function IE(e){if(!e||"object"!=typeof e)return e;let t=ME&&ME.get(e);if(t)return t;if(oE(e)){t=[],ME&&ME.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(IE(e[n]))}else if(DE.indexOf(e.constructor)>=0)t=e;else{const n=lE(e);for(var s in t=n===Object.prototype?{}:Object.create(n),ME&&ME.set(e,t),e)uE(e,s)&&(t[s]=IE(e[s]))}return t}const{toString:_E}={};function FE(e){return _E.call(e).slice(8,-1)}const NE="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",OE="symbol"==typeof NE?function(e){var t;return null!=e&&(t=e[NE])&&t.apply(e)}:function(){return null},LE={};function BE(e){var t,n,r,s;if(1===arguments.length){if(oE(e))return e.slice();if(this===LE&&"string"==typeof e)return[e];if(s=OE(e)){for(n=[];!(r=s.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const HE="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var UE="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ZE(e,t){UE=e,$E=t}var $E=()=>!0;const WE=!new Error("").stack;function VE(){if(WE)try{throw VE.arguments,new Error}catch(e){return e}return new Error}function qE(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter($E).map((e=>"\n"+e)).join("")):""}var GE=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],zE=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(GE),jE={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function KE(e,t){this._e=VE(),this.name=e,this.message=t}function YE(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function XE(e,t,n,r){this._e=VE(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=YE(e,t)}function QE(e,t){this._e=VE(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=YE(e,t)}mE(KE).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+qE(this._e,2))}},toString:function(){return this.name+": "+this.message}}),mE(XE).from(KE),mE(QE).from(KE);var JE=zE.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const ek=KE;var tk=zE.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=VE(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=jE[t]||n,this.inner=null)}return mE(r).from(ek),e[t]=r,e}),{});tk.Syntax=SyntaxError,tk.Type=TypeError,tk.Range=RangeError;var nk=GE.reduce(((e,t)=>(e[t+"Error"]=tk[t],e)),{}),rk=zE.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=tk[t]),e)),{});function sk(){}function ik(e){return e}function ok(e,t){return null==e||e===ik?t:function(n){return t(e(n))}}function ak(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function lk(e,t){return e===sk?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ak(r,this.onsuccess):r),s&&(this.onerror=this.onerror?ak(s,this.onerror):s),void 0!==i?i:n}}function ck(e,t){return e===sk?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ak(n,this.onsuccess):n),r&&(this.onerror=this.onerror?ak(r,this.onerror):r)}}function uk(e,t){return e===sk?t:function(n){var r=e.apply(this,arguments);aE(n,r);var s=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return s&&(this.onsuccess=this.onsuccess?ak(s,this.onsuccess):s),i&&(this.onerror=this.onerror?ak(i,this.onerror):i),void 0===r?void 0===o?void 0:o:aE(r,o)}}function hk(e,t){return e===sk?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function pk(e,t){return e===sk?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,s=arguments.length,i=new Array(s);s--;)i[s]=arguments[s];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}rk.ModifyError=XE,rk.DexieError=KE,rk.BulkError=QE;var dk={};const mk=100,[fk,gk,yk]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,lE(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,lE(t),e]})(),wk=gk&&gk.then,bk=fk&&fk.constructor,Ck=!!yk;var vk=!1,Sk=yk?()=>{yk.then(qk)}:sE.setImmediate?setImmediate.bind(null,qk):sE.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{qk(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(qk,0)},Ek=function(e,t){Ik.push([e,t]),Rk&&(Sk(),Rk=!1)},kk=!0,Rk=!0,Ak=[],Tk=[],xk=null,Dk=ik,Mk={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:gR,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{gR(e[0],e[1])}catch(e){}}))}},Pk=Mk,Ik=[],_k=0,Fk=[];function Nk(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=sk,this._lib=!1;var t=this._PSD=Pk;if(UE&&(this._stackHolder=VE(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==dk)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Hk(this,this._value))}this._state=null,this._value=null,++t.ref,Bk(this,e)}const Ok={get:function(){var e=Pk,t=tR;function n(n,r){var s=!e.global&&(e!==Pk||t!==tR);const i=s&&!iR();var o=new Nk(((t,o)=>{Zk(this,new Lk(dR(n,e,s,i),dR(r,e,s,i),t,o,e))}));return UE&&Vk(o,this),o}return n.prototype=dk,n},set:function(e){dE(this,"then",e&&e.prototype===dk?Ok:{get:function(){return e},set:Ok.set})}};function Lk(e,t,n,r,s){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=s}function Bk(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Gk();t&&"function"==typeof t.then?Bk(e,((e,n)=>{t instanceof Nk?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,Uk(e)),n&&zk()}}),Hk.bind(null,e))}catch(t){Hk(e,t)}}function Hk(e,t){if(Tk.push(t),null===e._state){var n=e._lib&&Gk();t=Dk(t),e._state=!1,e._value=t,UE&&null!==t&&"object"==typeof t&&!t._promise&&function(e){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=gE(t,"stack");t._promise=e,dE(t,"stack",{get:()=>vk?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){Ak.some((t=>t._value===e._value))||Ak.push(e)}(e),Uk(e),n&&zk()}}function Uk(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Zk(e,t[n]);var s=e._PSD;--s.ref||s.finalize(),0===_k&&(++_k,Ek((()=>{0==--_k&&jk()}),[]))}function Zk(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++_k,Ek($k,[n,e,t])}else e._listeners.push(t)}function $k(e,t,n){try{xk=t;var r,s=t._value;t._state?r=e(s):(Tk.length&&(Tk=[]),r=e(s),-1===Tk.indexOf(s)&&function(e){for(var t=Ak.length;t;)if(Ak[--t]._value===e._value)return void Ak.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{xk=null,0==--_k&&jk(),--n.psd.ref||n.psd.finalize()}}function Wk(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var s,i,o=e._value;null!=o?(s=o.name||"Error",i=o.message||o,r=qE(o,0)):(s=o,i=""),t.push(s+(i?": "+i:"")+r)}return UE&&((r=qE(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&Wk(e._prev,t,n)),t}function Vk(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function qk(){Gk()&&zk()}function Gk(){var e=kk;return kk=!1,Rk=!1,e}function zk(){var e,t,n;do{for(;Ik.length>0;)for(e=Ik,Ik=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Ik.length>0);kk=!0,Rk=!0}function jk(){var e=Ak;Ak=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Fk.slice(0),n=t.length;n;)t[--n]()}function Kk(e){return new Nk(dk,!1,e)}function Yk(e,t){var n=Pk;return function(){var r=Gk(),s=Pk;try{return cR(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{cR(s,!1),r&&zk()}}}hE(Nk.prototype,{then:Ok,_then:function(e,t){Zk(this,new Lk(null,null,e,t,Pk))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):Kk(e))):this.then(null,(e=>e&&e.name===t?n(e):Kk(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),Kk(t))))},stack:{get:function(){if(this._stack)return this._stack;try{vk=!0;var e=Wk(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{vk=!1}}},timeout:function(e,t){return e<1/0?new Nk(((n,r)=>{var s=setTimeout((()=>r(new tk.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,s))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&dE(Nk.prototype,Symbol.toStringTag,"Dexie.Promise"),Mk.env=uR(),hE(Nk,{all:function(){var e=BE.apply(null,arguments).map(oR);return new Nk((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((s,i)=>Nk.resolve(s).then((n=>{e[i]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof Nk)return e;if(e&&"function"==typeof e.then)return new Nk(((t,n)=>{e.then(t,n)}));var t=new Nk(dk,!0,e);return Vk(t,xk),t},reject:Kk,race:function(){var e=BE.apply(null,arguments).map(oR);return new Nk(((t,n)=>{e.map((e=>Nk.resolve(e).then(t,n)))}))},PSD:{get:()=>Pk,set:e=>Pk=e},totalEchoes:{get:()=>tR},newPSD:rR,usePSD:hR,scheduler:{get:()=>Ek,set:e=>{Ek=e}},rejectionMapper:{get:()=>Dk,set:e=>{Dk=e}},follow:(e,t)=>new Nk(((n,r)=>rR(((t,n)=>{var r=Pk;r.unhandleds=[],r.onunhandled=n,r.finalize=ak((function(){!function(e){Fk.push((function t(){e(),Fk.splice(Fk.indexOf(t),1)})),++_k,Ek((()=>{0==--_k&&jk()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),bk&&(bk.allSettled&&dE(Nk,"allSettled",(function(){const e=BE.apply(null,arguments).map(oR);return new Nk((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,s)=>Nk.resolve(e).then((e=>r[s]={status:"fulfilled",value:e}),(e=>r[s]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),bk.any&&"undefined"!=typeof AggregateError&&dE(Nk,"any",(function(){const e=BE.apply(null,arguments).map(oR);return new Nk(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const s=new Array(r);e.forEach(((e,i)=>Nk.resolve(e).then((e=>t(e)),(e=>{s[i]=e,--r||n(new AggregateError(s))}))))}))})));const Xk={awaits:0,echoes:0,id:0};var Qk=0,Jk=[],eR=0,tR=0,nR=0;function rR(e,t,n,r){var s=Pk,i=Object.create(s);i.parent=s,i.ref=0,i.global=!1,i.id=++nR;var o=Mk.env;i.env=Ck?{Promise:Nk,PromiseProp:{value:Nk,configurable:!0,writable:!0},all:Nk.all,race:Nk.race,allSettled:Nk.allSettled,any:Nk.any,resolve:Nk.resolve,reject:Nk.reject,nthen:mR(o.nthen,i),gthen:mR(o.gthen,i)}:{},t&&aE(i,t),++s.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=hR(i,e,n,r);return 0===i.ref&&i.finalize(),a}function sR(){return Xk.id||(Xk.id=++Qk),++Xk.awaits,Xk.echoes+=mk,Xk.id}function iR(){return!!Xk.awaits&&(0==--Xk.awaits&&(Xk.id=0),Xk.echoes=Xk.awaits*mk,!0)}function oR(e){return Xk.echoes&&e&&e.constructor===bk?(sR(),e.then((e=>(iR(),e)),(e=>(iR(),yR(e))))):e}function aR(e){++tR,Xk.echoes&&0!=--Xk.echoes||(Xk.echoes=Xk.id=0),Jk.push(Pk),cR(e,!0)}function lR(){var e=Jk[Jk.length-1];Jk.pop(),cR(e,!1)}function cR(e,t){var n=Pk;if((t?!Xk.echoes||eR++&&e===Pk:!eR||--eR&&e===Pk)||pR(t?aR.bind(null,e):lR),e!==Pk&&(Pk=e,n===Mk&&(Mk.env=uR()),Ck)){var r=Mk.env.Promise,s=e.env;gk.then=s.nthen,r.prototype.then=s.gthen,(n.global||e.global)&&(Object.defineProperty(sE,"Promise",s.PromiseProp),r.all=s.all,r.race=s.race,r.resolve=s.resolve,r.reject=s.reject,s.allSettled&&(r.allSettled=s.allSettled),s.any&&(r.any=s.any))}}function uR(){var e=sE.Promise;return Ck?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(sE,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:gk.then,gthen:e.prototype.then}:{}}function hR(e,t,n,r,s){var i=Pk;try{return cR(e,!0),t(n,r,s)}finally{cR(i,!1)}}function pR(e){wk.call(fk,e)}function dR(e,t,n,r){return"function"!=typeof e?e:function(){var s=Pk;n&&sR(),cR(t,!0);try{return e.apply(this,arguments)}finally{cR(s,!1),r&&pR(iR)}}}function mR(e,t){return function(n,r){return e.call(this,dR(n,t),dR(r,t))}}-1===(""+wk).indexOf("[native code]")&&(sR=iR=sk);const fR="unhandledrejection";function gR(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,s={promise:t,reason:e};if(sE.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(fR,!0,!0),aE(r,s)):sE.CustomEvent&&aE(r=new CustomEvent(fR,{detail:s}),s),r&&sE.dispatchEvent&&(dispatchEvent(r),!sE.PromiseRejectionEvent&&sE.onunhandledrejection))try{sE.onunhandledrejection(r)}catch(e){}UE&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}var yR=Nk.reject;function wR(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Pk.letThrough||e._vip)){var s=e._createTransaction(t,n,e._dbSchema);try{s.create(),e._state.PR1398_maxLoop=3}catch(s){return s.name===JE.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>wR(e,t,n,r)))):yR(s)}return s._promise(t,((e,t)=>rR((()=>(Pk.trans=s,r(e,t,s)))))).then((e=>s._completion.then((()=>e))))}if(e._state.openComplete)return yR(new tk.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return yR(new tk.DatabaseClosed);e.open().catch(sk)}return e._state.dbReadyPromise.then((()=>wR(e,t,n,r)))}const bR="3.2.7",CR=String.fromCharCode(65535),vR=-1/0,SR="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",ER="String expected.",kR=[],RR="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),AR=RR,TR=RR,xR=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),DR="__dbnames",MR="readonly",PR="readwrite";function IR(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const _R={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function FR(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=PE(t))[e],t)}class NR{_trans(e,t,n){const r=this._tx||Pk.trans,s=this.name;function i(e,n,r){if(!r.schema[s])throw new tk.NotFound("Table "+s+" not part of transaction");return t(r.idbtrans,r)}const o=Gk();try{return r&&r.db===this.db?r===Pk.trans?r._promise(e,i,n):rR((()=>r._promise(e,i,n)),{trans:r,transless:Pk.transless||Pk}):wR(this.db,e,[this.name],i)}finally{o&&zk()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(oE(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=iE(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>{if(e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))){for(let n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1})).sort(((e,t)=>e.keyPath.length-t.keyPath.length))[0];if(n&&this.db._maxKey!==CR){const r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map((t=>e[t])))}!n&&UE&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,s=this.db._deps.indexedDB;function i(e,t){try{return 0===s.cmp(e,t)}catch(e){return!1}}const[o,a]=t.reduce((([t,n],s)=>{const o=r[s],a=e[s];return[t||o,t||!o?IR(n,o&&o.multi?e=>{const t=EE(e,s);return oE(t)&&t.some((e=>i(a,e)))}:e=>i(a,EE(e,s))):n]}),[null,null]);return o?this.where(o.name).equals(e[o.keyPath]).filter(a):n?this.filter(a):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,oE(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(uE(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){aE(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let s=e;return r&&n&&(s=FR(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[s]}))).then((e=>e.numFailures?Nk.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{kE(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||oE(e))return this.where(":id").equals(e).modify(t);{const n=EE(e,this.schema.primKey.keyPath);if(void 0===n)return yR(new tk.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?iE(t).forEach((n=>{kE(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let s=e;return r&&n&&(s=FR(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[s],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Nk.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{kE(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Nk.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:_R}))).then((e=>e.numFailures?Nk.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,s=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new tk.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new tk.InvalidArgument("Arguments objects and keys must have the same length");const o=e.length;let a=i&&n?e.map(FR(i)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:a,wantResults:s}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return s?t:n;throw new QE(`${this.name}.bulkAdd(): ${e} of ${o} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,s=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new tk.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new tk.InvalidArgument("Arguments objects and keys must have the same length");const o=e.length;let a=i&&n?e.map(FR(i)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:a,wantResults:s}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return s?t:n;throw new QE(`${this.name}.bulkPut(): ${e} of ${o} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new QE(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function OR(e){var t={},n=function(n,r){if(r){for(var s=arguments.length,i=new Array(s-1);--s;)i[s-1]=arguments[s];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,s=arguments.length;r<s;++r)i(arguments[r]);return n;function i(e,r,s){if("object"!=typeof e){var o;r||(r=hk),s||(s=sk);var a={subscribers:[],fire:s,subscribe:function(e){-1===a.subscribers.indexOf(e)&&(a.subscribers.push(e),a.fire=r(a.fire,e))},unsubscribe:function(e){a.subscribers=a.subscribers.filter((function(t){return t!==e})),a.fire=a.subscribers.reduce(r,s)}};return t[e]=n[e]=a,a}iE(o=e).forEach((function(e){var t=o[e];if(oE(t))i(e,o[e][0],o[e][1]);else{if("asap"!==t)throw new tk.InvalidArgument("Invalid event config");var n=i(e,ik,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach((function(e){vE((function(){e.apply(null,t)}))}))}))}}))}}function LR(e,t){return mE(t).from({prototype:e}),t}function BR(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function HR(e,t){e.filter=IR(e.filter,t)}function UR(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>IR(r(),t()):t,e.justLimit=n&&!r}function ZR(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new tk.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function $R(e,t,n){const r=ZR(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function WR(e,t,n,r){const s=e.replayFilter?IR(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},o=(e,n,r)=>{if(!s||s(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var o=n.primaryKey,a=""+o;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(o)),uE(i,a)||(i[a]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(o,n),VR($R(e,r,n),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return VR($R(e,r,n),IR(e.algorithm,s),t,!e.keysOnly&&e.valueMapper)}function VR(e,t,n,r){var s=Yk(r?(e,t,s)=>n(r(e),t,s):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=sk}),(t=>{e.fail(t),n=sk}))||s(e.value,e,(e=>n=e)),n()}))}))}function qR(e,t){try{const n=GR(e),r=GR(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,r=t.length,s=n<r?n:r;for(let n=0;n<s;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(zR(e),zR(t));case"Array":return function(e,t){const n=e.length,r=t.length,s=n<r?n:r;for(let n=0;n<s;++n){const r=qR(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function GR(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=FE(e);return"ArrayBuffer"===n?"binary":n}function zR(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class jR{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,yR.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,yR.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=IR(t.algorithm,e)}_iterate(e,t){return WR(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&aE(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>WR(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(BR(t,!0))return n.count({trans:e,query:{index:ZR(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return WR(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],s=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function a(e,t){var n=i(e,s),r=i(t,s);return n<r?-o:n>r?o:0}return this.toArray((function(e){return e.sort(a)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&BR(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=ZR(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return WR(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,BR(t)?UR(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):UR(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),UR(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return HR(this._ctx,(function(n,r,s){return!e(n.value)||(r(s),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return HR(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=IR(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&BR(t,!0)&&t.limit>0)return this._read((e=>{var n=ZR(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return HR(this._ctx,(function(e){var t=e.primaryKey.toString(),r=uE(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var s=iE(e),i=s.length;r=function(t){for(var n=!1,r=0;r<i;++r){var o=s[r],a=e[o];EE(t,o)!==a&&(kE(t,o,a),n=!0)}return n}}const o=t.table.core,{outbound:a,extractKey:l}=o.schema.primaryKey,c=this.db._options.modifyChunkSize||200,u=[];let h=0;const p=[],d=(e,t)=>{const{failures:n,numFailures:r}=t;h+=e-r;for(let e of iE(n))u.push(n[e])};return this.clone().primaryKeys().then((s=>{const i=u=>{const h=Math.min(c,s.length-u);return o.getMany({trans:n,keys:s.slice(u,u+h),cache:"immutable"}).then((p=>{const m=[],f=[],g=a?[]:null,y=[];for(let e=0;e<h;++e){const t=p[e],n={value:PE(t),primKey:s[u+e]};!1!==r.call(n,n.value,n)&&(null==n.value?y.push(s[u+e]):a||0===qR(l(t),l(n.value))?(f.push(n.value),a&&g.push(s[u+e])):(y.push(s[u+e]),m.push(n.value)))}const w=BR(t)&&t.limit===1/0&&("function"!=typeof e||e===KR)&&{index:t.index,range:t.range};return Promise.resolve(m.length>0&&o.mutate({trans:n,type:"add",values:m}).then((e=>{for(let t in e.failures)y.splice(parseInt(t),1);d(m.length,e)}))).then((()=>(f.length>0||w&&"object"==typeof e)&&o.mutate({trans:n,type:"put",keys:g,values:f,criteria:w,changeSpec:"function"!=typeof e&&e}).then((e=>d(f.length,e))))).then((()=>(y.length>0||w&&e===KR)&&o.mutate({trans:n,type:"delete",keys:y,criteria:w}).then((e=>d(y.length,e))))).then((()=>s.length>u+h&&i(u+c)))}))};return i(0).then((()=>{if(u.length>0)throw new XE("Error modifying one or more objects",u,h,p);return s.length}))}))}))}delete(){var e=this._ctx,t=e.range;return BR(e)&&(e.isPrimKey&&!TR||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,s=t;return e.table.core.count({trans:n,query:{index:r,range:s}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:s}).then((({failures:e,lastResult:n,results:r,numFailures:s})=>{if(s)throw new XE("Could not delete some values",Object.keys(e).map((t=>e[t])),t-s);return t-s}))))})):this.modify(KR)}}const KR=(e,t)=>t.value=null;function YR(e,t){return e<t?-1:e===t?0:1}function XR(e,t){return e>t?-1:e===t?0:1}function QR(e,t,n){var r=e instanceof sA?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function JR(e){return new e.Collection(e,(()=>rA(""))).limit(0)}function eA(e,t,n,r,s,i){for(var o=Math.min(e.length,r.length),a=-1,l=0;l<o;++l){var c=t[l];if(c!==r[l])return s(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):s(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):a>=0?e.substr(0,a)+t[a]+n.substr(a+1):null;s(e[l],c)<0&&(a=l)}return o<r.length&&"next"===i?e+n.substr(e.length):o<e.length&&"prev"===i?e.substr(0,n.length):a<0?null:e.substr(0,a)+r[a]+n.substr(a+1)}function tA(e,t,n,r){var s,i,o,a,l,c,u,h=n.length;if(!n.every((e=>"string"==typeof e)))return QR(e,ER);function p(e){s=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),i=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),o="next"===e?YR:XR;var t=n.map((function(e){return{lower:i(e),upper:s(e)}})).sort((function(e,t){return o(e.lower,t.lower)}));a=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,u="next"===e?"":r}p("next");var d=new e.Collection(e,(()=>nA(a[0],l[h-1]+r)));d._ondirectionchange=function(e){p(e)};var m=0;return d._addAlgorithm((function(e,n,r){var s=e.key;if("string"!=typeof s)return!1;var p=i(s);if(t(p,l,m))return!0;for(var d=null,f=m;f<h;++f){var g=eA(s,p,a[f],l[f],o,c);null===g&&null===d?m=f+1:(null===d||o(d,g)>0)&&(d=g)}return n(null!==d?function(){e.continue(d+u)}:r),!1})),d}function nA(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function rA(e){return{type:1,lower:e,upper:e}}class sA{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?JR(this):new this.Collection(this,(()=>nA(e,t,!n,!r)))}catch(e){return QR(this,SR)}}equals(e){return null==e?QR(this,SR):new this.Collection(this,(()=>rA(e)))}above(e){return null==e?QR(this,SR):new this.Collection(this,(()=>nA(e,void 0,!0)))}aboveOrEqual(e){return null==e?QR(this,SR):new this.Collection(this,(()=>nA(e,void 0,!1)))}below(e){return null==e?QR(this,SR):new this.Collection(this,(()=>nA(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?QR(this,SR):new this.Collection(this,(()=>nA(void 0,e)))}startsWith(e){return"string"!=typeof e?QR(this,ER):this.between(e,e+CR,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tA(this,((e,t)=>0===e.indexOf(t[0])),[e],CR)}equalsIgnoreCase(e){return tA(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=BE.apply(LE,arguments);return 0===e.length?JR(this):tA(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=BE.apply(LE,arguments);return 0===e.length?JR(this):tA(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,CR)}anyOf(){const e=BE.apply(LE,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return QR(this,SR)}if(0===e.length)return JR(this);const n=new this.Collection(this,(()=>nA(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,s,i)=>{const o=n.key;for(;t(o,e[r])>0;)if(++r,r===e.length)return s(i),!1;return 0===t(o,e[r])||(s((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[vR,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=BE.apply(LE,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return QR(this,SR)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[vR,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,s=this._descending,i=this._min,o=this._max;if(0===e.length)return JR(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return QR(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",tk.InvalidArgument);const a=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let c,u=r;function h(e,t){return u(e[0],t[0])}try{c=e.reduce((function(e,t){let r=0,s=e.length;for(;r<s;++r){const s=e[r];if(n(t[0],s[1])<0&&n(t[1],s[0])>0){s[0]=i(s[0],t[0]),s[1]=o(s[1],t[1]);break}}return r===s&&e.push(t),e}),[]),c.sort(h)}catch(e){return QR(this,SR)}let p=0;const d=l?e=>r(e,c[p][1])>0:e=>r(e,c[p][1])>=0,m=a?e=>s(e,c[p][0])>0:e=>s(e,c[p][0])>=0;let f=d;const g=new this.Collection(this,(()=>nA(c[0][0],c[c.length-1][1],!a,!l)));return g._ondirectionchange=e=>{"next"===e?(f=d,u=r):(f=m,u=s),c.sort(h)},g._addAlgorithm(((e,t,n)=>{for(var s=e.key;f(s);)if(++p,p===c.length)return t(n),!1;return!!function(e){return!d(e)&&!m(e)}(s)||(0===this._cmp(s,c[p][1])||0===this._cmp(s,c[p][0])||t((()=>{u===r?e.continue(c[p][0]):e.continue(c[p][1])})),!1)})),g}startsWithAnyOf(){const e=BE.apply(LE,arguments);return e.every((e=>"string"==typeof e))?0===e.length?JR(this):this.inAnyRange(e.map((e=>[e,e+CR]))):QR(this,"startsWithAnyOf() only works with strings")}}function iA(e){return Yk((function(t){return oA(t),e(t.target.error),!1}))}function oA(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const aA="storagemutated",lA="x-storagemutated-1",cA=OR(null,aA);class uA{_lock(){return CE(!Pk.global),++this._reculock,1!==this._reculock||Pk.global||(Pk.lockOwnerFor=this),this}_unlock(){if(CE(!Pk.global),0==--this._reculock)for(Pk.global||(Pk.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{hR(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Pk.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(CE(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new tk.DatabaseClosed(n);case"MissingAPIError":throw new tk.MissingAPI(n.message,n);default:throw new tk.OpenFailed(n)}if(!this.active)throw new tk.TransactionInactive;return CE(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Yk((t=>{oA(t),this._reject(e.error)})),e.onabort=Yk((t=>{oA(t),this.active&&this._reject(new tk.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=Yk((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&cA.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return yR(new tk.ReadOnly("Transaction is readonly"));if(!this.active)return yR(new tk.TransactionInactive);if(this._locked())return new Nk(((r,s)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,s)},Pk])}));if(n)return rR((()=>{var e=new Nk(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new Nk(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=Nk.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var s=t._waitingFor;return new Nk(((e,r)=>{n.then((n=>t._waitingQueue.push(Yk(e.bind(null,n)))),(e=>t._waitingQueue.push(Yk(r.bind(null,e))))).finally((()=>{t._waitingFor===s&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new tk.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(uE(t,e))return t[e];const n=this.schema[e];if(!n)throw new tk.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function hA(e,t,n,r,s,i,o){return{name:e,keyPath:t,unique:n,multi:r,auto:s,compound:i,src:(n&&!o?"&":"")+(r?"*":"")+(s?"++":"")+pA(t)}}function pA(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function dA(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:SE(n,(e=>[e.name,e]))}}let mA=e=>{try{return e.only([[]]),mA=()=>[[]],[[]]}catch(e){return mA=()=>CR,CR}};function fA(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>EE(t,e)}(e):t=>EE(t,e)}function gA(e){return[].slice.call(e)}let yA=0;function wA(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function bA(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:s,upperOpen:i}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!s):t.bound(n,r,!!s,!!i)}const{schema:s,hasGetAll:i}=function(e,t){const n=gA(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=oE(t),s=null==t,i={},o={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:s,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:fA(t)},indexes:gA(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:s}=e,o={name:t,compound:oE(s),keyPath:s,unique:n,multiEntry:r,extractKey:fA(s)};return i[wA(s)]=o,o})),getIndexByKeyPath:e=>i[wA(e)]};return i[":id"]=o.primaryKey,null!=t&&(i[wA(t)]=o.primaryKey),o}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),o=s.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:s,values:i,range:o}){return new Promise(((a,l)=>{a=Yk(a);const c=e.objectStore(t),u=null==c.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:p}=s||i||{length:1};if(s&&i&&s.length!==i.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return a({numFailures:0,failures:{},results:[],lastResult:void 0});let d;const m=[],f=[];let g=0;const y=e=>{++g,oA(e)};if("deleteRange"===n){if(4===o.type)return a({numFailures:g,failures:f,results:[],lastResult:void 0});3===o.type?m.push(d=c.clear()):m.push(d=c.delete(r(o)))}else{const[e,t]=h?u?[i,s]:[i,null]:[s,null];if(h)for(let r=0;r<p;++r)m.push(d=t&&void 0!==t[r]?c[n](e[r],t[r]):c[n](e[r])),d.onerror=y;else for(let t=0;t<p;++t)m.push(d=c[n](e[t])),d.onerror=y}const w=e=>{const t=e.target.result;m.forEach(((e,t)=>null!=e.error&&(f[t]=e.error))),a({numFailures:g,failures:f,results:"delete"===n?s:m.map((e=>e.result)),lastResult:t})};d.onerror=e=>{y(e),w(e)},d.onsuccess=w}))},getMany:({trans:e,keys:n})=>new Promise(((r,s)=>{r=Yk(r);const i=e.objectStore(t),o=n.length,a=new Array(o);let l,c=0,u=0;const h=e=>{const t=e.target;a[t._pos]=t.result,++u===c&&r(a)},p=iA(s);for(let e=0;e<o;++e)null!=n[e]&&(l=i.get(n[e]),l._pos=e,l.onsuccess=h,l.onerror=p,++c);0===c&&r(a)})),get:({trans:e,key:n})=>new Promise(((r,s)=>{r=Yk(r);const i=e.objectStore(t).get(n);i.onsuccess=e=>r(e.target.result),i.onerror=iA(s)})),query:function(e){return n=>new Promise(((s,i)=>{s=Yk(s);const{trans:o,values:a,limit:l,query:c}=n,u=l===1/0?void 0:l,{index:h,range:p}=c,d=o.objectStore(t),m=h.isPrimaryKey?d:d.index(h.name),f=r(p);if(0===l)return s({result:[]});if(e){const e=a?m.getAll(f,u):m.getAllKeys(f,u);e.onsuccess=e=>s({result:e.target.result}),e.onerror=iA(i)}else{let e=0;const t=a||!("openKeyCursor"in m)?m.openCursor(f):m.openKeyCursor(f),n=[];t.onsuccess=r=>{const i=t.result;return i?(n.push(a?i.value:i.primaryKey),++e===l?s({result:n}):void i.continue()):s({result:n})},t.onerror=iA(i)}}))}(i),openCursor:function({trans:e,values:n,query:s,reverse:i,unique:o}){return new Promise(((a,l)=>{a=Yk(a);const{index:c,range:u}=s,h=e.objectStore(t),p=c.isPrimaryKey?h:h.index(c.name),d=i?o?"prevunique":"prev":o?"nextunique":"next",m=n||!("openKeyCursor"in p)?p.openCursor(r(u),d):p.openKeyCursor(r(u),d);m.onerror=iA(l),m.onsuccess=Yk((t=>{const n=m.result;if(!n)return void a(null);n.___id=++yA,n.done=!1;const r=n.continue.bind(n);let s=n.continuePrimaryKey;s&&(s=s.bind(n));const i=n.advance.bind(n),o=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=Yk(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=Yk(e),m.onerror=iA(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=o,e(t)}})),a=()=>{if(m.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return m.onsuccess=Yk((e=>{m.onsuccess=a,a()})),n.continue=r,n.continuePrimaryKey=s,n.advance=i,a(),t},a(n)}),l)}))},count({query:e,trans:n}){const{index:s,range:i}=e;return new Promise(((e,o)=>{const a=n.objectStore(t),l=s.isPrimaryKey?a:a.index(s.name),c=r(i),u=c?l.count(c):l.count();u.onsuccess=Yk((t=>e(t.target.result))),u.onerror=iA(o)}))}}}(e))),a={};return o.forEach((e=>a[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!a[e])throw new Error(`Table '${e}' not found`);return a[e]},MIN_KEY:-1/0,MAX_KEY:mA(t),schema:s}}function CA({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},s){const i=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(bA(t,n,s),e.dbcore);return{dbcore:i}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function vA({_novip:e},t,n,r){n.forEach((n=>{const s=r[n];t.forEach((t=>{const r=gE(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?dE(t,n,{get(){return this.table(n)},set(e){pE(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,s))}))}))}function SA({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function EA(e,t){return e._cfg.version-t._cfg.version}function kA(e,t,n,r){const s=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,s);i.create(n),i._completion.catch(r);const o=i._reject.bind(i),a=Pk.transless||Pk;rR((()=>{Pk.trans=i,Pk.transless=a,0===t?(iE(s).forEach((e=>{AA(n,e,s[e].primKey,s[e].indexes)})),CA(e,n),Nk.follow((()=>e.on.populate.fire(i))).catch(o)):function({_novip:e},t,n,r){const s=[],i=e._versions;let o=e._dbSchema=xA(0,e.idbdb,r),a=!1;const l=i.filter((e=>e._cfg.version>=t));return l.forEach((i=>{s.push((()=>{const s=o,l=i._cfg.dbschema;DA(e,s,r),DA(e,l,r),o=e._dbSchema=l;const c=RA(s,l);c.add.forEach((e=>{AA(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new tk.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>TA(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),TA(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const u=i._cfg.contentUpgrade;if(u&&i._cfg.version>t){CA(e,r),n._memoizedTables={},a=!0;let t=RE(l);c.del.forEach((e=>{t[e]=s[e]})),SA(e,[e.Transaction.prototype]),vA(e,[e.Transaction.prototype],iE(t),t),n.schema=t;const i=HE(u);let o;i&&sR();const h=Nk.follow((()=>{if(o=u(n),o&&i){var e=iR.bind(null,null);o.then(e,e)}}));return o&&"function"==typeof o.then?Nk.resolve(o):h.then((()=>o))}})),s.push((t=>{a&&AR||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(i._cfg.dbschema,t),SA(e,[e.Transaction.prototype]),vA(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return s.length?Nk.resolve(s.shift()(n.idbtrans)).then(e):Nk.resolve()}().then((()=>{var e,t;t=r,iE(e=o).forEach((n=>{t.db.objectStoreNames.contains(n)||AA(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,i,n).catch(o)}))}function RA(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const s=e[r],i=t[r];if(s){const e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(s.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||s.primKey.auto!==i.primKey.auto&&!RR)e.recreate=!0,n.change.push(e);else{const t=s.idxByName,r=i.idxByName;let o;for(o in t)r[o]||e.del.push(o);for(o in r){const n=t[o],s=r[o];n?n.src!==s.src&&e.change.push(s):e.add.push(s)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,i])}return n}function AA(e,t,n,r){const s=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>TA(s,e))),s}function TA(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function xA(e,t,n){const r={};return wE(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let s=t.keyPath;const i=hA(pA(s),s||"",!1,!1,!!t.autoIncrement,s&&"string"!=typeof s,!0),o=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);s=n.keyPath;var a=hA(n.name,s,!!n.unique,!!n.multiEntry,!1,s&&"string"!=typeof s,!1);o.push(a)}r[e]=dA(e,i,o)})),r}function DA({_novip:e},t,n){const r=n.db.objectStoreNames;for(let s=0;s<r.length;++s){const i=r[s],o=n.objectStore(i);e._hasGetAll="getAll"in o;for(let e=0;e<o.indexNames.length;++e){const n=o.indexNames[e],r=o.index(n).keyPath,s="string"==typeof r?r:"["+wE(r).join("+")+"]";if(t[i]){const e=t[i].idxByName[s];e&&(e.name=n,delete t[i].idxByName[s],t[i].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&sE.WorkerGlobalScope&&sE instanceof sE.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class MA{_parseStoresSpec(e,t){iE(e).forEach((n=>{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return hA(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),oE(r),0===t)})),s=r.shift();if(s.multi)throw new tk.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new tk.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new tk.Schema("Index must have a name and cannot be an empty string")})),t[n]=dA(n,s,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?aE(this._cfg.storesSource,e):e;const n=t._versions,r={};let s={};return n.forEach((e=>{aE(r,e._cfg.storesSource),s=e._cfg.dbschema={},e._parseStoresSpec(r,s)})),t._dbSchema=s,SA(t,[t._allTables,t,t.Transaction.prototype]),vA(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],iE(s),s),t._storeNames=iE(s),this}upgrade(e){return this._cfg.contentUpgrade=pk(this._cfg.contentUpgrade||sk,e),this}}function PA(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new QA(DR,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function IA(e){return e&&"function"==typeof e.databases}function _A(e){return rR((function(){return Pk.letThrough=!0,e()}))}function FA(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function NA(e){var t=t=>e.next(t),n=s(t),r=s((t=>e.throw(t)));function s(e){return t=>{var s=e(t),i=s.value;return s.done?i:i&&"function"==typeof i.then?i.then(n,r):oE(i)?Promise.all(i).then(n,r):n(i)}}return s(t)()}function OA(e,t,n){var r=arguments.length;if(r<2)throw new tk.InvalidArgument("Too few arguments");for(var s=new Array(r-1);--r;)s[r-1]=arguments[r];return n=s.pop(),[e,TE(s),n]}function LA(e,t,n,r,s){return Nk.resolve().then((()=>{const i=Pk.transless||Pk,o=e._createTransaction(t,n,e._dbSchema,r),a={trans:o,transless:i};if(r)o.idbtrans=r.idbtrans;else try{o.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===JE.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>LA(e,t,n,null,s)))):yR(r)}const l=HE(s);let c;l&&sR();const u=Nk.follow((()=>{if(c=s.call(o,o),c)if(l){var e=iR.bind(null,null);c.then(e,e)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=NA(c))}),a);return(c&&"function"==typeof c.then?Nk.resolve(c).then((e=>o.active?e:yR(new tk.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):u.then((()=>c))).then((e=>(r&&o._resolve(),o._completion.then((()=>e))))).catch((e=>(o._reject(e),yR(e))))}))}function BA(e,t,n){const r=oE(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}const HA={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:r}=n,s={},i=[];function o(e,t,n){const r=wA(e),a=s[r]=s[r]||[],l=null==e?0:"string"==typeof e?1:e.length,c=t>0,u={...n,isVirtual:c,keyTail:t,keyLength:l,extractKey:fA(e),unique:!c&&n.unique};return a.push(u),u.isPrimaryKey||i.push(u),l>1&&o(2===l?e[0]:e.slice(0,l-1),t+1,n),a.sort(((e,t)=>e.keyTail-t.keyTail)),u}const a=o(r.primaryKey.keyPath,0,r.primaryKey);s[":id"]=[a];for(const e of r.indexes)o(e.keyPath,0,e);function l(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,s=n.keyTail,{type:1===r.type?2:r.type,lower:BA(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,s),lowerOpen:!0,upper:BA(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,s),upperOpen:!0})}}:t;var r,s}const c={...n,schema:{...r,primaryKey:a,indexes:i,getIndexByKeyPath:function(e){const t=s[wA(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){const{keyTail:r,isVirtual:s,keyLength:i}=t.query.index;return s?n.openCursor(l(t)).then((n=>n&&function(n){const s=Object.create(n,{continue:{value:function(s){null!=s?n.continue(BA(s,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,s){n.continuePrimaryKey(BA(t,e.MAX_KEY,r),s)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>n.value}});return s}(n))):n.openCursor(t)}};return c}}}};function UA(e,t,n,r){return n=n||{},r=r||"",iE(e).forEach((s=>{if(uE(t,s)){var i=e[s],o=t[s];if("object"==typeof i&&"object"==typeof o&&i&&o){const e=FE(i);e!==FE(o)?n[r+s]=t[s]:"Object"===e?UA(i,o,n,r+s+"."):i!==o&&(n[r+s]=t[s])}else i!==o&&(n[r+s]=t[s])}else n[r+s]=void 0})),iE(t).forEach((s=>{uE(e,s)||(n[r+s]=t[s])})),n}const ZA={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,s={...n,mutate(e){const s=Pk.trans,{deleting:i,creating:o,updating:a}=s.table(t).hook;switch(e.type){case"add":if(o.fire===sk)break;return s._promise("readwrite",(()=>l(e)),!0);case"put":if(o.fire===sk&&a.fire===sk)break;return s._promise("readwrite",(()=>l(e)),!0);case"delete":if(i.fire===sk)break;return s._promise("readwrite",(()=>l(e)),!0);case"deleteRange":if(i.fire===sk)break;return s._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function l(e){const t=Pk.trans,s=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!s)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:s}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,s).then((l=>{const c=s.map(((n,s)=>{const c=l[s],u={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(u,n,c,t);else if("add"===e.type||void 0===c){const i=o.fire.call(u,n,e.values[s],t);null==n&&null!=i&&(n=i,e.keys[s]=n,r.outbound||kE(e.values[s],r.keyPath,n))}else{const r=UA(c,e.values[s]),i=a.fire.call(u,r,n,c,t);if(i){const t=e.values[s];Object.keys(i).forEach((e=>{uE(t,e)?t[e]=i[e]:kE(t,e,i[e])}))}}return u}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:i})=>{for(let r=0;r<s.length;++r){const i=n?n[r]:s[r],o=c[r];null==i?o.onerror&&o.onerror(t[r]):o.onsuccess&&o.onsuccess("put"===e.type&&l[r]?e.values[r]:i)}return{failures:t,results:n,numFailures:r,lastResult:i}})).catch((e=>(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,s){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:s}).then((({result:n})=>l({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<s?{failures:[],numFailures:0,lastResult:void 0}:c(e,{...t,lower:n[n.length-1],lowerOpen:!0},s)))))}}};return s}})};function $A(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const r=[];for(let s=0,i=0;s<t.keys.length&&i<e.length;++s)0===qR(t.keys[s],e[i])&&(r.push(n?PE(t.values[s]):t.values[s]),++i);return r.length===e.length?r:null}catch(e){return null}}const WA={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=$A(e.keys,e.trans._cache,"clone"===e.cache);return t?Nk.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?PE(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function VA(e){return!("from"in e)}const qA=function(e,t){if(!this){const t=new qA;return e&&"d"in e&&aE(t,e),t}aE(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function GA(e,t,n){const r=qR(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(VA(e))return aE(e,{from:t,to:n,d:1});const s=e.l,i=e.r;if(qR(n,e.from)<0)return s?GA(s,t,n):e.l={from:t,to:n,d:1,l:null,r:null},KA(e);if(qR(t,e.to)>0)return i?GA(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},KA(e);qR(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),qR(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const o=!e.r;s&&!e.l&&zA(e,s),i&&o&&zA(e,i)}function zA(e,t){VA(t)||function e(t,{from:n,to:r,l:s,r:i}){GA(t,n,r),s&&e(t,s),i&&e(t,i)}(e,t)}function jA(e){let t=VA(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&qR(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||qR(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function KA(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),s=r>1?"r":r<-1?"l":"";if(s){const t="r"===s?"l":"r",n={...e},r=e[s];e.from=r.from,e.to=r.to,e[s]=r[s],n[s]=r[t],e[t]=n,n.d=YA(n)}e.d=YA(e)}function YA({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}hE(qA.prototype,{add(e){return zA(this,e),this},addKey(e){return GA(this,e,e),this},addKeys(e){return e.forEach((e=>GA(this,e,e))),this},[NE](){return jA(this)}});const XA={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new qA(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const s=e.table(r),{schema:i}=s,{primaryKey:o}=i,{extractKey:a,outbound:l}=o,c={...s,mutate:e=>{const o=e.trans,a=o.mutatedParts||(o.mutatedParts={}),l=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new qA)},c=l(""),u=l(":dels"),{type:h}=e;let[p,d]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const m=e.trans._cache;return s.mutate(e).then((e=>{if(oE(p)){"delete"!==h&&(p=e.results),c.addKeys(p);const t=$A(p,m);t||"add"===h||u.addKeys(p),(t||d)&&function(e,t,n,r){t.indexes.forEach((function(t){const s=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}const o=e=>t.multiEntry&&oE(e)?e.forEach((e=>s.addKey(e))):s.addKey(e);(n||r).forEach(((e,t)=>{const s=n&&i(n[t]),a=r&&i(r[t]);0!==qR(s,a)&&(null!=s&&o(s),null!=a&&o(a))}))}))}(l,i,t,d)}else if(p){const e={from:p.lower,to:p.upper};u.add(e),c.add(e)}else c.add(n),u.add(n),i.indexes.forEach((e=>l(e.name).add(n)));return e}))}},u=({query:{index:t,range:n}})=>{var r,s;return[t,new qA(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(s=n.upper)&&void 0!==s?s:e.MAX_KEY)]},h={get:e=>[o,new qA(e.key)],getMany:e=>[o,(new qA).addKeys(e.keys)],count:u,query:u,openCursor:u};return iE(h).forEach((e=>{c[e]=function(i){const{subscr:o}=Pk;if(o){const c=e=>{const n=`idb://${t}/${r}/${e}`;return o[n]||(o[n]=new qA)},u=c(""),p=c(":dels"),[d,m]=h[e](i);if(c(d.name||"").add(m),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&l&&i.values&&s.query({...i,values:!1});return s[e].apply(this,arguments).then((n=>{if("query"===e){if(l&&i.values)return t.then((({result:e})=>(u.addKeys(e),n)));const e=i.values?n.result.map(a):n.result;i.values?u.addKeys(e):p.addKeys(e)}else if("openCursor"===e){const e=n,t=i.values;return e&&Object.create(e,{key:{get:()=>(p.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return p.addKey(t),t}},value:{get:()=>(t&&u.addKey(e.primaryKey),e.value)}})}return n}))}p.add(n)}}return s[e].apply(this,arguments)}})),c}}}};class QA{constructor(e,t){this._middlewares={},this.verno=0;const n=QA.dependencies;this._options=t={addons:QA.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:sk,dbReadyPromise:null,cancelOpen:sk,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var i;s.dbReadyPromise=new Nk((e=>{s.dbReadyResolve=e})),s.openCanceller=new Nk(((e,t)=>{s.cancelOpen=t})),this._state=s,this.name=e,this.on=OR(this,"populate","blocked","versionchange","close",{ready:[pk,sk]}),this.on.ready.subscribe=bE(this.on.ready.subscribe,(e=>(t,n)=>{QA.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||Nk.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(i=this,LR(jR.prototype,(function(e,t){this.db=i;let n=_R,r=null;if(t)try{n=t()}catch(e){r=e}const s=e._ctx,o=s.table,a=o.hook.reading.fire;this._ctx={table:o,index:s.index,isPrimKey:!s.index||o.schema.primKey.keyPath&&s.index===o.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:s.or,valueMapper:a!==ik?a:null}}))),this.Table=function(e){return LR(NR.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:OR(null,{creating:[lk,sk],reading:[ok,ik],updating:[uk,sk],deleting:[ck,sk]})}))}(this),this.Transaction=function(e){return LR(uA.prototype,(function(t,n,r,s,i){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=s,this.idbtrans=null,this.on=OR(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Nk(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),yR(e)}))}))}(this),this.Version=function(e){return LR(MA.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return LR(sA.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const s=e._deps.indexedDB;if(!s)throw new tk.MissingAPI;this._cmp=this._ascending=s.cmp.bind(s),this._descending=(e,t)=>s.cmp(t,e),this._max=(e,t)=>s.cmp(e,t)>0?e:t,this._min=(e,t)=>s.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=mA(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),kR.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(HA),this.use(ZA),this.use(XA),this.use(WA),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new tk.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new tk.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(EA),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Pk.letThrough||this._vip)?e():new Nk(((e,t)=>{if(this._state.openComplete)return t(new tk.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new tk.DatabaseClosed);this.open().catch(sk)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const s=this._middlewares[e]||(this._middlewares[e]=[]);return s.push({stack:e,create:t,level:null==n?10:n,name:r}),s.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?yR(t.dbOpenError):e));UE&&(t.openCanceller._stackHolder=VE()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function s(){if(t.openCanceller!==r)throw new tk.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,o=null,a=!1;const l=()=>new Nk(((r,i)=>{if(s(),!n)throw new tk.MissingAPI;const l=e.name,c=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!c)throw new tk.MissingAPI;c.onerror=iA(i),c.onblocked=Yk(e._fireOnBlocked),c.onupgradeneeded=Yk((r=>{if(o=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=oA,o.abort(),c.result.close();const e=n.deleteDatabase(l);e.onsuccess=e.onerror=Yk((()=>{i(new tk.NoSuchDatabase(`Database ${l} doesnt exist`))}))}else{o.onerror=iA(i);var s=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;a=s<1,e._novip.idbdb=c.result,kA(e,s/10,o,i)}}),i),c.onsuccess=Yk((()=>{o=null;const n=e._novip.idbdb=c.result,s=wE(n.objectStoreNames);if(s.length>0)try{const r=n.transaction(1===(i=s).length?i[0]:i,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=xA(0,t,n);e._storeNames=wE(t.objectStoreNames,0),vA(e,[e._allTables],iE(r),r)}(e,n,r):(DA(e,e._dbSchema,r),function(e,t){const n=RA(xA(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),CA(e,r)}catch(e){}var i;kR.push(e),n.onversionchange=Yk((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=Yk((t=>{e.on("close").fire(t)})),a&&function({indexedDB:e,IDBKeyRange:t},n){!IA(e)&&n!==DR&&PA(e,t).put({name:n}).catch(sk)}(e._deps,l),r()}),i)})).catch((e=>e&&"UnknownError"===e.name&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),l()):Nk.reject(e)));return Nk.race([r,("undefined"==typeof navigator?Nk.resolve():FA()).then(l)]).then((()=>(s(),t.onReadyBeingFired=[],Nk.resolve(_A((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(pk,sk);return t.onReadyBeingFired=[],Nk.resolve(_A((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{o&&o.abort()}catch(e){}return r===t.openCanceller&&e._close(),yR(n)})).finally((()=>{t.openComplete=!0,i()}))}(this)}_close(){const e=this._state,t=kR.indexOf(this);if(t>=0&&kR.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Nk((t=>{e.dbReadyResolve=t})),e.openCanceller=new Nk(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new tk.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Nk(((n,r)=>{const s=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=Yk((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!IA(e)&&n!==DR&&PA(e,t).delete(n).catch(sk)}(this._deps,this.name),n()})),e.onerror=iA(r),e.onblocked=this._fireOnBlocked};if(e)throw new tk.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(s):s()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return iE(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=OA.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=Pk.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const s=-1!==e.indexOf("?");let i,o;e=e.replace("!","").replace("?","");try{if(o=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===MR)i=MR;else{if("rw"!=e&&e!=PR)throw new tk.InvalidArgument("Invalid transaction mode: "+e);i=PR}if(r){if(r.mode===MR&&i===PR){if(!s)throw new tk.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&o.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!s)throw new tk.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),s&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):yR(e)}const a=LA.bind(null,this,i,o,r,n);return r?r._promise(i,a,"lock"):Pk.trans?hR(Pk.transless,(()=>this._whenReady(a))):this._whenReady(a)}table(e){if(!uE(this._allTables,e))throw new tk.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const JA="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class eT{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[JA](){return this}}function tT(e,t){return iE(t).forEach((n=>{zA(e[n]||(e[n]=new qA),t[n])})),e}let nT;try{nT={indexedDB:sE.indexedDB||sE.mozIndexedDB||sE.webkitIndexedDB||sE.msIndexedDB,IDBKeyRange:sE.IDBKeyRange||sE.webkitIDBKeyRange}}catch(sE){nT={indexedDB:null,IDBKeyRange:null}}const rT=QA;function sT(e){let t=iT;try{iT=!0,cA.storagemutated.fire(e)}finally{iT=t}}hE(rT,{...rk,delete:e=>new rT(e,{addons:[]}).delete(),exists:e=>new rT(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return IA(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>e!==DR)))):PA(e,t).toCollection().primaryKeys()}(rT.dependencies).then(e)}catch(e){return yR(new tk.MissingAPI)}},defineClass:()=>function(e){aE(this,e)},ignoreTransaction:e=>Pk.trans?hR(Pk.transless,e):e(),vip:_A,async:function(e){return function(){try{var t=NA(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Nk.resolve(t)}catch(e){return yR(e)}}},spawn:function(e,t,n){try{var r=NA(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Nk.resolve(r)}catch(e){return yR(e)}},currentTransaction:{get:()=>Pk.trans||null},waitFor:function(e,t){const n=Nk.resolve("function"==typeof e?rT.ignoreTransaction(e):e).timeout(t||6e4);return Pk.trans?Pk.trans.waitFor(n):n},Promise:Nk,debug:{get:()=>UE,set:e=>{ZE(e,"dexie"===e?()=>!0:xR)}},derive:mE,extend:aE,props:hE,override:bE,Events:OR,on:cA,liveQuery:function(e){let t,n=!1;const r=new eT((r=>{const s=HE(e);let i=!1,o={},a={};const l={get closed(){return i},unsubscribe:()=>{i=!0,cA.storagemutated.unsubscribe(p)}};r.start&&r.start(l);let c=!1,u=!1;function h(){return iE(a).some((e=>o[e]&&function(e,t){const n=jA(t);let r=n.next();if(r.done)return!1;let s=r.value;const i=jA(e);let o=i.next(s.from),a=o.value;for(;!r.done&&!o.done;){if(qR(a.from,s.to)<=0&&qR(a.to,s.from)>=0)return!0;qR(s.from,a.from)<0?s=(r=n.next(a.from)).value:a=(o=i.next(s.from)).value}return!1}(o[e],a[e])))}const p=e=>{tT(o,e),h()&&d()},d=()=>{if(c||i)return;o={};const m={},f=function(t){s&&sR();const n=()=>rR(e,{subscr:t,trans:null}),r=Pk.trans?hR(Pk.transless,n):n();return s&&r.then(iR,iR),r}(m);u||(cA(aA,p),u=!0),c=!0,Promise.resolve(f).then((e=>{n=!0,t=e,c=!1,i||(h()?d():(o={},a=m,r.next&&r.next(e)))}),(e=>{c=!1,n=!1,r.error&&r.error(e),l.unsubscribe()}))};return d(),l}));return r.hasValue=()=>n,r.getValue=()=>t,r},extendObservabilitySet:tT,getByKeyPath:EE,setByKeyPath:kE,delByKeyPath:function(e,t){"string"==typeof t?kE(e,t,void 0):"length"in t&&[].map.call(t,(function(t){kE(e,t,void 0)}))},shallowClone:RE,deepClone:PE,getObjectDiff:UA,cmp:qR,asap:vE,minKey:vR,addons:[],connections:kR,errnames:JE,dependencies:nT,semVer:bR,version:bR.split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),rT.maxKey=mA(rT.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(cA(aA,(e=>{if(!iT){let t;RR?(t=document.createEvent("CustomEvent"),t.initCustomEvent(lA,!0,!0,e)):t=new CustomEvent(lA,{detail:e}),iT=!0,dispatchEvent(t),iT=!1}})),addEventListener(lA,(({detail:e})=>{iT||sT(e)})));let iT=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel(lA);"function"==typeof e.unref&&e.unref(),cA(aA,(t=>{iT||e.postMessage(t)})),e.onmessage=e=>{e.data&&sT(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){cA(aA,(e=>{try{iT||("undefined"!=typeof localStorage&&localStorage.setItem(lA,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:lA,changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if(e.key===lA){const t=JSON.parse(e.newValue);t&&sT(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&e.type===lA&&sT(e.changedParts)}))}Nk.rejectionMapper=function(e,t){if(!e||e instanceof KE||e instanceof TypeError||e instanceof SyntaxError||!e.name||!nk[e.name])return e;var n=new nk[e.name](t||e.message,e);return"stack"in e&&dE(n,"stack",{get:function(){return this.inner.stack}}),n},ZE(UE,xR);class oT extends QA{schemaVersion;constructor(e,t){super(e),this.schemaVersion=t}async conditionalVersion(e,t,n){if(null!=this.schemaVersion&&this.schemaVersion<e)return;const r=this.version(e).stores(t);null!=n&&await r.upgrade(n)}}function aT(e){const t=e.table("gitHubRepositories"),n=new Set;return t.toCollection().each((e=>{const r=`${e.ownerID}+${e.name}`;if(n.has(r)){const n=e.id;t.delete(n)}else n.add(r)}))}async function lT(e){return e.table("gitHubRepositories").toCollection().filter((e=>void 0===e.parentID)).modify({parentID:null}).then((e=>log.info(`ensureNoUndefinedParentID: ${e}`)))}async function cT(e){const t=e.table("owners"),n=e.table("gitHubRepositories"),r=await t.toArray(),s=new Map,i=new Array,o=new Array;for(const e of r){ct(e.id,"Missing owner id");const t=uT(e.endpoint,e.login),n=s.get(t);void 0!==n?(ct(n.id,"Missing existing owner id"),log.warn(`createOwnerKey: Conflicting owner data ${e.id} (${e.login}) and ${n.id} (${n.login})`),i.push({from:e.id,to:n.id}),o.push(e.id)):s.set(t,{...e,key:t})}log.info(`createOwnerKey: Updating ${s.size} owners with keys`),await t.bulkPut([...s.values()]);for(const e of i){const t=await n.where("[ownerID+name]").between([e.from],[e.from+1]).modify({ownerID:e.to});log.info(`createOwnerKey: ${t} repositories got new owner ids`)}await t.bulkDelete(o)}function uT(e,t){return`${e}/users/${t}`.toLowerCase()}class hT{login;endpoint;id;type;constructor(e,t,n,r){this.login=e,this.endpoint=t,this.id=n,this.type=r}}function pT(e,t){return`${dT(e)}${t}`}function dT(e){return`${e}-`}const mT="invalid-url",fT="invalid-protocol";var gT,yT=n(2022),wT=n.n(yT),bT=n(294),CT=n.n(bT);!function(e){e.EndpointEntry="EndpointEntry",e.ExistingAccountWarning="ExistingAccountWarning",e.Authentication="Authentication",e.TwoFactorAuthentication="TwoFactorAuthentication",e.Success="Success"}(gT||(gT={}));var vT=n(741);const ST={setItem:function(e,t,n){return vT.setPassword(e,t,n)},getItem:function(e,t){return vT.getPassword(e,t)},deleteItem:function(e,t){return vT.deletePassword(e,t)}};function ET(e,t){return[e.dbID,t]}function kT(e){const t=e.owner.login;return{name:e.name,owner:t}}const RT=12e4;class AT{repository;account;coordinator;timeoutId=null;running=!1;constructor(e,t,n){this.repository=e,this.account=t,this.coordinator=n}start(){this.running||(this.running=!0,this.scheduleTick(RT))}getTimeSinceLastRefresh(){const e=this.coordinator.getLastRefreshed(this.repository);return void 0===e?1/0:Date.now()-e}scheduleTick(e=18e5){if(this.running){const t=Math.max(e-this.getTimeSinceLastRefresh(),0);this.timeoutId=window.setTimeout((()=>this.tick()),t)}}tick(){this.running&&(this.timeoutId=null,this.getTimeSinceLastRefresh()<RT&&this.scheduleTick(),this.coordinator.refreshPullRequests(this.repository,this.account).catch((()=>{})).then((()=>this.scheduleTick())))}stop(){this.running&&(null!==this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=null),this.running=!1)}}function TT(e,t){const{dbID:n}=e;return t.filter((e=>es(e).dbID===n))}const xT="stats-guid";let DT=null;async function MT(){return DT=DT??await fe(),DT}const PT="https://desktop.github.com/usage-data/",IT="last-daily-stats-report",_T="stats-opt-out",FT="has-sent-stats-opt-in-ping",NT="welcome-wizard-initiated-at",OT="welcome-wizard-terminated-at",LT="first-repository-added-at",BT="first-repository-cloned-at",HT="first-repository-created-at",UT="first-commit-created-at",ZT="first-push-to-github-at",$T="first-non-default-branch-checkout-at",WT="repositories-committed-in-without-write-access",VT={commits:0,partialCommits:0,openShellCount:0,coAuthoredCommits:0,commitsUndoneWithChanges:0,commitsUndoneWithoutChanges:0,branchComparisons:0,defaultBranchComparisons:0,mergesInitiatedFromComparison:0,updateFromDefaultBranchMenuCount:0,mergeIntoCurrentBranchMenuCount:0,prBranchCheckouts:0,repoWithIndicatorClicked:0,repoWithoutIndicatorClicked:0,dotcomPushCount:0,dotcomForcePushCount:0,enterprisePushCount:0,enterpriseForcePushCount:0,externalPushCount:0,externalForcePushCount:0,active:!1,mergeConflictFromPullCount:0,mergeConflictFromExplicitMergeCount:0,mergedWithLoadingHintCount:0,mergedWithCleanMergeHintCount:0,mergedWithConflictWarningHintCount:0,mergeSuccessAfterConflictsCount:0,mergeAbortedAfterConflictsCount:0,unattributedCommits:0,enterpriseCommits:0,dotcomCommits:0,mergeConflictsDialogDismissalCount:0,anyConflictsLeftOnMergeConflictsDialogDismissalCount:0,mergeConflictsDialogReopenedCount:0,guidedConflictedMergeCompletionCount:0,unguidedConflictedMergeCompletionCount:0,createPullRequestCount:0,createPullRequestFromPreviewCount:0,rebaseConflictsDialogDismissalCount:0,rebaseConflictsDialogReopenedCount:0,rebaseAbortedAfterConflictsCount:0,rebaseSuccessAfterConflictsCount:0,rebaseSuccessWithoutConflictsCount:0,rebaseWithBranchAlreadyUpToDateCount:0,pullWithRebaseCount:0,pullWithDefaultSettingCount:0,stashEntriesCreatedOutsideDesktop:0,errorWhenSwitchingBranchesWithUncommmittedChanges:0,rebaseCurrentBranchMenuCount:0,stashViewedAfterCheckoutCount:0,stashCreatedOnCurrentBranchCount:0,stashNotViewedAfterCheckoutCount:0,changesTakenToNewBranchCount:0,stashRestoreCount:0,stashDiscardCount:0,stashViewCount:0,noActionTakenOnStashCount:0,suggestedStepOpenInExternalEditor:0,suggestedStepOpenWorkingDirectory:0,suggestedStepViewOnGitHub:0,suggestedStepPublishRepository:0,suggestedStepPublishBranch:0,suggestedStepCreatePullRequest:0,suggestedStepViewStash:0,commitsToProtectedBranch:0,commitsToRepositoryWithBranchProtections:0,tutorialStarted:!1,tutorialRepoCreated:!1,tutorialEditorInstalled:!1,tutorialBranchCreated:!1,tutorialFileEdited:!1,tutorialCommitCreated:!1,tutorialBranchPushed:!1,tutorialPrCreated:!1,tutorialCompleted:!1,highestTutorialStepCompleted:-1,commitsToRepositoryWithoutWriteAccess:0,forksCreated:0,issueCreationWebpageOpenedCount:0,tagsCreatedInDesktop:0,tagsCreated:0,tagsDeleted:0,diffModeChangeCount:0,diffOptionsViewedCount:0,repositoryViewChangeCount:0,unhandledRejectionCount:0,cherryPickSuccessfulCount:0,cherryPickViaDragAndDropCount:0,cherryPickViaContextMenuCount:0,dragStartedAndCanceledCount:0,cherryPickConflictsEncounteredCount:0,cherryPickSuccessfulWithConflictsCount:0,cherryPickMultipleCommitsCount:0,cherryPickUndoneCount:0,cherryPickBranchCreatedCount:0,amendCommitStartedCount:0,amendCommitSuccessfulWithFileChangesCount:0,amendCommitSuccessfulWithoutFileChangesCount:0,reorderSuccessfulCount:0,reorderStartedCount:0,reorderConflictsEncounteredCount:0,reorderSuccessfulWithConflictsCount:0,reorderMultipleCommitsCount:0,reorderUndoneCount:0,squashConflictsEncounteredCount:0,squashMultipleCommitsInvokedCount:0,squashSuccessfulCount:0,squashSuccessfulWithConflictsCount:0,squashViaContextMenuInvokedCount:0,squashViaDragAndDropInvokedCount:0,squashUndoneCount:0,squashMergeIntoCurrentBranchMenuCount:0,squashMergeSuccessfulWithConflictsCount:0,squashMergeSuccessfulCount:0,squashMergeInvokedCount:0,resetToCommitCount:0,opensCheckRunsPopover:0,viewsCheckOnline:0,viewsCheckJobStepOnline:0,rerunsChecks:0,checksFailedNotificationCount:0,checksFailedNotificationFromRecentRepoCount:0,checksFailedNotificationFromNonRecentRepoCount:0,checksFailedNotificationClicked:0,checksFailedDialogOpenCount:0,checksFailedDialogSwitchToPullRequestCount:0,checksFailedDialogRerunChecksCount:0,pullRequestReviewNotificationFromRecentRepoCount:0,pullRequestReviewNotificationFromNonRecentRepoCount:0,pullRequestReviewApprovedNotificationCount:0,pullRequestReviewApprovedNotificationClicked:0,pullRequestReviewApprovedDialogSwitchToPullRequestCount:0,pullRequestReviewCommentedNotificationCount:0,pullRequestReviewCommentedNotificationClicked:0,pullRequestReviewCommentedDialogSwitchToPullRequestCount:0,pullRequestReviewChangesRequestedNotificationCount:0,pullRequestReviewChangesRequestedNotificationClicked:0,pullRequestReviewChangesRequestedDialogSwitchToPullRequestCount:0,pullRequestCommentNotificationCount:0,pullRequestCommentNotificationClicked:0,pullRequestCommentNotificationFromRecentRepoCount:0,pullRequestCommentNotificationFromNonRecentRepoCount:0,pullRequestCommentDialogSwitchToPullRequestCount:0,multiCommitDiffWithUnreachableCommitWarningCount:0,multiCommitDiffFromHistoryCount:0,multiCommitDiffFromCompareCount:0,multiCommitDiffUnreachableCommitsDialogOpenedCount:0,submoduleDiffViewedFromChangesListCount:0,submoduleDiffViewedFromHistoryCount:0,openSubmoduleFromDiffCount:0,previewedPullRequestCount:0,typedInChangesFilterCount:0,appliesIncludedInCommitFilterCount:0,appliesExcludedFromCommitFilterCount:0,appliesNewFilesChangesFilterCount:0,appliesModifiedFilesChangesFilterCount:0,appliesDeletedFilesChangesFilterCount:0,appliesClearAllChangesListFilterCount:0,adjustedFiltersForHiddenChangesCount:0,enterpriseAccountCount:0,generateCommitMessageButtonClickCount:0,generateCommitMessageCount:0,generateCommitMessageUsedVerbatimCount:0,pushBlockedBySecretScanningCount:0,secretsDetectedOnPushCount:0,secretsDetectedOnPushBypassedCount:0,secretsDetectedOnPushBypassedAsFalsePositiveCount:0,secretsDetectedOnPushBypassedAsUsedInTestCount:0,secretsDetectedOnPushBypassedAsWillFixLaterCount:0,secretsDetectedOnPushDelegatedBypassLinkClickedCount:0,secretRemediationInstructionsLinkClickedCount:0},qT=e=>fetch("https://central.github.com/api/usage/desktop",{method:"POST",headers:{"Content-Type":"application/json","user-agent":"GitHubDesktop/3.5.3 (Windows)"},body:JSON.stringify(e)});function GT(e){null===localStorage.getItem(e)&&Yt(e,Date.now())}function zT(e){return Kt(e)??null}function jT(e){const t=zT(NT);if(null===t)return;const n=zT(e);return null===n||n<=t?-1:Math.round((n-t)/1e3)}function KT(){return zt(_T)}let YT;const XT=6e4;function QT(e,t){if(KT())return;const n=Date.now();void 0!==YT&&n-YT<XT||(YT=n,process.emit("send-non-fatal-exception",t,{kind:e}))}function JT(e,t,n){const r=Tp(e,n),s=Tp(t,n);if(null===r||null===s)return[];const i=Bp(r,s>r?s+1:s-1),o=new Array(i.length);for(let e=0;e<i.length;e++){const t=xp(i[e],n);null!==t&&(o[e]=t)}return o}class ex{map=new Map;getIndexPathKey(e){return`${e.section}-${e.row}`}get(e){return this.map.get(this.getIndexPathKey(e))}set(e,t){this.map.set(this.getIndexPathKey(e),t)}delete(e){this.map.delete(this.getIndexPathKey(e))}}class tx extends ke.Component{fakeScroll=null;focusRow=Ep;rowRefs=new ex;gridStyle={overflowX:"hidden"};lastScroll=null;list=null;rootGrid=null;grids=new Map;resizeObserver=null;updateSizeTimeoutId=null;getContainerProps=xr((e=>({onKeyDown:this.onKeyDown,"aria-activedescendant":e,"aria-multiselectable":"multi"===this.props.selectionMode||"range"===this.props.selectionMode?"true":void 0})));constructor(e){super(e),this.state={scrollTop:0};const t=window.ResizeObserver;ResizeObserver&&(this.resizeObserver=new t((e=>{for(const{target:t,contentRect:n}of e)t===this.list&&null!==this.list&&(null!==this.updateSizeTimeoutId&&clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=setImmediate(this.onResized,this.list,n))})))}get totalRowCount(){return Ap(this.props.rowCount)}getRowId(e){return this.props.rowId?this.props.rowId(e):void 0===this.state.rowIdPrefix?void 0:`${this.state.rowIdPrefix}-${e.section}-${e.row}`}onResized=(e,t)=>{this.updateSizeTimeoutId=null;const[n,r]=[e.offsetWidth,e.offsetHeight];this.state.width===n&&this.state.height===r||this.setState({width:n,height:r})};onSelectAll=e=>{const t=this.props.selectionMode;if("range"!==t&&"multi"!==t)return;if(e.preventDefault(),this.totalRowCount<=0)return;const n={kind:"select-all"},r={section:0,row:0},s={section:this.props.rowCount.length-1,row:this.props.rowCount[this.props.rowCount.length-1]-1};if(this.props.onSelectionChanged){const e=JT(r,s,this.props.rowCount);this.props.onSelectionChanged(e,n)}"range"===t&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(r,s,n)};onRef=e=>{null===e&&null!==this.list&&this.list.removeEventListener("select-all",this.onSelectAll),this.list=e,null!==e&&e.addEventListener("select-all",this.onSelectAll),this.resizeObserver&&(this.resizeObserver.disconnect(),null!==e?this.resizeObserver.observe(e):this.setState({width:void 0,height:void 0}))};onKeyDown=e=>{if(this.props.onRowKeyDown)for(const t of this.props.selectedRows)this.props.onRowKeyDown(t,e);if(e.defaultPrevented)return;const t={kind:"keyboard",event:e},n="Home"===e.key,r="End"===e.key,s=e.shiftKey&&void 0!==this.props.selectionMode&&"single"!==this.props.selectionMode;if(n||r){const r=n?"up":"down";s?this.addSelectionToLastSelectableRow(r,t):this.moveSelectionToLastSelectableRow(r,t),e.preventDefault()}else if("ArrowUp"===e.key||"ArrowDown"===e.key){const n="ArrowUp"===e.key?"up":"down";s?this.addSelection(n,t):this.moveSelection(n,t),e.preventDefault()}else if("a"===e.key&&e.ctrlKey)this.onSelectAll(e);else if("PageUp"===e.key||"PageDown"===e.key){const n="PageUp"===e.key?"up":"down";s?this.addSelectionByPage(n,t):this.moveSelectionByPage(n,t),e.preventDefault()}};moveSelectionByPage(e,t){const n=this.getNextPageRowIndexPath(e);this.moveSelectionTo(n,t)}addSelectionByPage(e,t){const{selectedRows:n}=this.props,r=this.getNextPageRowIndexPath(e),s=JT(n[0]??0,r,this.props.rowCount);this.props.onSelectionChanged&&this.props.onSelectionChanged(s,t),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(s[0],s[s.length-1],t),this.scrollRowToVisible(r)}getNextPageRowIndexPath(e){const{selectedRows:t}=this.props,n=t.at(-1)??{row:0,section:0};return this.findNextPageSelectableRow(n,e)}getHeightForRowAtIndexPath(e){const{rowHeight:t}=this.props;return"number"==typeof t?t:t({index:e})}findNextPageSelectableRow(e,t){const{height:n}=this.state,{rowCount:r}=this.props;if(void 0===n)return e;let s=0,i=e;const o="up"===t?-1:1;for(let t=e.section;t<r.length&&t>=0;t+=o)for(let a=t===e.section?e.row:0;a<r[t]&&a>=0;a+=o){const e={section:t,row:a},r=this.getHeightForRowAtIndexPath(e);if(s+r>n)break;s+=r,this.canSelectRow(e)&&(i=e)}return i}onRowKeyDown=(e,t)=>{this.props.onRowKeyDown&&this.props.onRowKeyDown(e,t);const n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;t.defaultPrevented||n||"Enter"!==t.key&&" "!==t.key||(this.toggleSelection(t),t.preventDefault())};onFocusContainerKeyDown=e=>{const t=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;e.defaultPrevented||t||"Enter"!==e.key&&" "!==e.key||(this.toggleSelection(e),e.preventDefault())};onFocusWithinChanged=e=>{if(e){if(0===this.props.selectedRows.length){const e=this.getFirstSelectableRowIndexPath();null!==e&&this.moveSelectionTo(e,{kind:"focus"})}}else this.focusRow=Ep};toggleSelection=e=>{this.props.selectedRows.forEach((t=>{this.props.onRowClick&&(Dp(t,this.props.rowCount)?this.props.onRowClick(t,{kind:"keyboard",event:e}):log.debug(`[List.toggleSelection] unable to onRowClick for row ${t} as it is outside the bounds`))}))};onRowFocus=(e,t)=>{this.focusRow=e,this.props.onRowFocus?.(e,t)};onRowKeyboardFocus=(e,t)=>{this.props.onRowKeyboardFocus?.(e,t)};onRowBlur=(e,t)=>{kp(this.focusRow,e)&&(this.focusRow=Ep),this.props.onRowBlur?.(e,t)};onRowContextMenu=(e,t)=>{this.props.onRowContextMenu?.(e,t)};get firstRowIndexPath(){for(let e=0;e<this.props.rowCount.length;e++)if(this.props.rowCount[e]>0)return{section:e,row:0};return Ep}canSelectRow=e=>!this.props.canSelectRow||this.props.canSelectRow(e);getFirstSelectableRowIndexPath(){const{rowCount:e}=this.props;for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n;e++){const n={section:t,row:e};if(this.canSelectRow(n))return n}}return null}addSelection(e,t){if(0===this.props.selectedRows.length)return this.moveSelection(e,t);const n="down"===e?this.props.selectedRows[this.props.selectedRows.length-1]:this.props.selectedRows[0],r="down"===e?this.props.selectedRows[0]:this.props.selectedRows.at(-1),s=Mp(this.props.rowCount,{direction:e,row:n,wrap:!1},this.canSelectRow);if(null!=s&&void 0!==r){if(this.props.onSelectionChanged){const e=JT(r,s,this.props.rowCount);this.props.onSelectionChanged(e,t)}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(r,s,t),this.scrollRowToVisible(s)}}moveSelection(e,t){const n=this.props.selectedRows.length>0?this.props.selectedRows[this.props.selectedRows.length-1]:Ep,r=Mp(this.props.rowCount,{direction:e,row:n},this.canSelectRow);null!=r&&this.moveSelectionTo(r,t)}moveSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:s}=r,i=Pp(e,s,n);null!==i&&this.moveSelectionTo(i,t)}addSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:s,selectedRows:i}=r,o=Pp(e,s,n);if(null===o)return;const a=this.firstRowIndexPath,l=JT(i[0]??a,o,s);this.props.onSelectionChanged?.(l,t);const c=l.at(0)??a,u=l.at(-1)??a;this.props.onSelectedRangeChanged?.(c,u,t),this.scrollRowToVisible(o)}moveSelectionTo(e,t){if(this.props.onSelectionChanged&&this.props.onSelectionChanged([e],t),this.props.onSelectedRowChanged){if(!Dp(e,this.props.rowCount))return void log.debug(`[List.moveSelection] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds`);this.props.onSelectedRowChanged(e,t)}this.scrollRowToVisible(e)}scrollRowToVisible(e,t=!0){if(null===this.rootGrid)return;const{scrollTop:n}=this.state,r=this.getHeightForRowAtIndexPath(e),s=this.getSectionScrollOffset(e.section),i=this.getRowOffsetInSection(e),o=Ae.findDOMNode(this.rootGrid);if(!(o instanceof HTMLElement))return;const a=s+i+r-o.getBoundingClientRect().height,l=s+i,c=Math.max(a,Math.min(l,n));this.rootGrid?.scrollToPosition({scrollLeft:0,scrollTop:c}),t&&(this.focusRow=e,this.rowRefs.get(e)?.focus({preventScroll:!0}))}componentDidMount(){const{props:e}=this,{selectedRows:t,scrollToRow:n,setScrollTop:r}=e,s=n??t.at(0);if(void 0===s)return;const i=this.grids.get(s.section);void 0!==i&&void 0===r&&i.scrollToCell({rowIndex:s.row,columnIndex:0})}componentDidUpdate(e,t){const{scrollToRow:n,setScrollTop:r}=this.props;if(void 0===n||void 0!==e.scrollToRow&&kp(e.scrollToRow,n)||void 0===r&&this.scrollRowToVisible(n,!1),this.grids.size>0){const n=yp(this.props.rowCount,e.rowCount),r=!n||this.state.width!==t.width||this.state.height!==t.height;if(n||this.rootGrid?.recomputeGridSize(),!r){const t=!yp(e.selectedRows,this.props.selectedRows),n=!wp(e.invalidationProps,this.props.invalidationProps);if(t||n)for(const e of this.grids.values())e.forceUpdate()}}}componentWillMount(){this.setState({rowIdPrefix:ds("ListRow")})}componentWillUnmount(){null!==this.updateSizeTimeoutId&&(clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=null),this.resizeObserver&&this.resizeObserver.disconnect(),this.state.rowIdPrefix&&ms(this.state.rowIdPrefix)}onRowRef=(e,t)=>{if(null===t?this.rowRefs.delete(e):this.rowRefs.set(e,t),kp(e,this.focusRow))if(null===t){const t=this.grids.get(e.section);if(void 0===t){const e=Ae.findDOMNode(t);e instanceof HTMLElement&&e.focus({preventScroll:!0})}}else t.focus({preventScroll:!0})};getCustomRowClassNames=e=>{const{rowCustomClassNameMap:t}=this.props;if(void 0===t)return;const n=new Array;return t.forEach(((t,r)=>{Rp(t,e)&&n.push(r)})),0===n.length?void 0:n.join(" ")};getRowRenderer=(e,t)=>n=>{const{selectedRows:r}=this.props,s={section:e,row:n.rowIndex},i=this.canSelectRow(s),o=-1!==r.findIndex((e=>kp(e,s))),a=this.getCustomRowClassNames(s);let l;i&&(l=o&&kp(r[0],s)||0===r.length&&null!==t&&kp(t,s)?0:-1);const c=this.props.rowRenderer(s),u=this.props.sectionHasHeader?.(s.section)??!1,h=void 0!==this.props.insertionDragType?ke.createElement(Lp,{onDropDataInsertion:this.props.onDropDataInsertion,itemIndex:s,dragType:this.props.insertionDragType,forcedFeedbackType:Op.None},c):c,p=this.getRowId(s),d=void 0!==this.props.getRowAriaLabel?this.props.getRowAriaLabel(s):void 0;return ke.createElement(Sp,{key:n.key,id:p,ariaLabel:d,sectionHasHeader:u,onRowRef:this.onRowRef,rowCount:this.props.rowCount[s.section],rowIndex:s,selected:o,inKeyboardInsertionMode:!1,onRowClick:this.onRowClick,onRowDoubleClick:this.onRowDoubleClick,onRowKeyDown:this.onRowKeyDown,onRowMouseDown:this.onRowMouseDown,onRowMouseUp:this.onRowMouseUp,onRowFocus:this.onRowFocus,onRowKeyboardFocus:this.onRowKeyboardFocus,onRowBlur:this.onRowBlur,onContextMenu:this.onRowContextMenu,style:n.style,tabIndex:l,children:h,selectable:i,className:a,renderRowFocusTooltip:this.props.renderRowFocusTooltip,hasKeyboardFocus:this.focusRow!==Ep&&this.focusRow.section===e&&this.focusRow.row===s.row})};render(){let e;return e=this.resizeObserver?this.renderContents(this.state.width??0,this.state.height??0):ke.createElement(Zh,{disableWidth:!0,disableHeight:!0},(({width:e,height:t})=>this.renderContents(e,t))),ke.createElement("div",{ref:this.onRef,id:this.props.id,className:"list"},e)}renderContents(e,t){return ke.createElement(ke.Fragment,null,this.renderGrid(e,t),this.renderFakeScroll(t))}getRowHeight=e=>{const t=this.props.rowHeight;return"number"==typeof t?t:n=>{const r={section:e,row:n.index};return t({index:r})}};onRootGridRef=e=>{this.rootGrid=e};getOnGridRef=e=>t=>{null===t?this.grids.delete(e):this.grids.set(e,t)};onFakeScrollRef=e=>{this.fakeScroll=e};getSectionScrollOffset=e=>this.props.rowCount.slice(0,e).reduce(((e,t,n)=>e+this.getSectionHeight(n)),0);getSectionGridRenderer=(e,t)=>e=>{const n=e.rowIndex,r=this.getSectionHeight(n),s=this.getSectionScrollOffset(n),i=Math.max(0,Math.min(r,this.state.scrollTop-s));return ke.createElement(mp,{key:n,id:this.props.accessibleListId,role:"listbox",ref:this.getOnGridRef(n),autoContainerWidth:!0,containerRole:"presentation","aria-multiselectable":"single"!==this.props.selectionMode||void 0,columnWidth:1e4,width:1e4,height:Math.min(r,t),columnCount:1,rowCount:this.props.rowCount[n],rowHeight:this.getRowHeight(n),cellRenderer:this.getRowRenderer(n,this.getFirstSelectableRowIndexPath()),scrollTop:i,overscanRowCount:4,style:{...e.style,width:"100%"},tabIndex:-1,"aria-label":this.props.getSectionAriaLabel?.(n)})};getRowOffsetInSection(e){if("number"==typeof this.props.rowHeight)return e.row*this.props.rowHeight;let t=0;for(let n=0;n<e.row;n++)t+=this.props.rowHeight({index:e});return t}getSectionHeight(e){if("number"==typeof this.props.rowHeight)return this.props.rowCount[e]*this.props.rowHeight;let t=0;for(let n=0;n<this.props.rowCount[e];n++)t+=this.props.rowHeight({index:{section:e,row:n}});return t}get totalHeight(){return this.props.rowCount.reduce(((e,t,n)=>e+this.getSectionHeight(n)),0)}sectionHeight=({index:e})=>this.getSectionHeight(e);renderGrid(e,t){const n=this.props.selectedRows.at(0);n&&kp(n,Ep)&&QT("invalidListSelection",new Error("Invalid selected rows that contained a negative number passed to SectionList component. This will cause keyboard navigation and focus problems."));const{selectedRows:r}=this.props,s=r.length&&this.state.rowIdPrefix?this.getRowId(r[r.length-1]):void 0,i=this.getContainerProps(s),o=r.length>0?-1:0;return ke.createElement(vp,{className:"list-focus-container",onKeyDown:this.onFocusContainerKeyDown,onFocusWithinChanged:this.onFocusWithinChanged},ke.createElement(mp,{id:this.props.accessibleListId,role:"presentation",ref:this.onRootGridRef,autoContainerWidth:!0,containerRole:"presentation",containerProps:i,width:e,height:t,columnWidth:e,columnCount:1,rowCount:this.props.rowCount.length,rowHeight:this.sectionHeight,cellRenderer:this.getSectionGridRenderer(e,t),onScroll:this.onScroll,scrollTop:this.props.setScrollTop,overscanRowCount:4,style:this.gridStyle,tabIndex:o}))}renderFakeScroll(e){return ke.createElement("div",{className:"fake-scroll",ref:this.onFakeScrollRef,style:{height:e},onScroll:this.onFakeScroll},ke.createElement("div",{style:{height:this.totalHeight,pointerEvents:"none"}}))}onFakeScroll=e=>{if("grid"!==this.lastScroll){if(this.lastScroll="fake",this.rootGrid){const t=Ae.findDOMNode(this.rootGrid);t instanceof Element&&(t.scrollTop=e.currentTarget.scrollTop)}this.setState({scrollTop:e.currentTarget.scrollTop}),this.rootGrid?.recomputeGridSize()}else this.lastScroll=null};onRowMouseDown=(e,t)=>{if(this.canSelectRow(e)){if(this.props.onRowMouseDown&&this.props.onRowMouseDown(e,t),2===t.button&&Rp(this.props.selectedRows,e))return;const n=t.ctrlKey;if(t.shiftKey&&this.props.selectedRows.length&&this.props.selectionMode&&"single"!==this.props.selectionMode){const n=this.props.selectedRows[0];if(this.props.onSelectionChanged){const r=JT(n,e,this.props.rowCount);this.props.onSelectionChanged(r,{kind:"mouseclick",event:t})}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(n,e,{kind:"mouseclick",event:t})}else if(n&&"multi"===this.props.selectionMode){if(this.props.onSelectionChanged){let n;if(Rp(this.props.selectedRows,e)){if(1===this.props.selectedRows.length)return;n=this.props.selectedRows.filter((t=>!kp(t,e)))}else n=[...this.props.selectedRows,e];this.props.onSelectionChanged(n,{kind:"mouseclick",event:t})}}else("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.props.selectedRows.length>1&&Rp(this.props.selectedRows,e)||(1!==this.props.selectedRows.length||1===this.props.selectedRows.length&&!kp(e,this.props.selectedRows[0]))&&this.selectSingleRowAfterMouseEvent(e,t)}};onRowMouseUp=(e,t)=>{if(!this.canSelectRow(e))return;if(2===t.button&&Rp(this.props.selectedRows,e))return;const n=t.ctrlKey;!t.shiftKey&&!n&&this.props.selectedRows.length>1&&Rp(this.props.selectedRows,e)&&("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.selectSingleRowAfterMouseEvent(e,t)};selectSingleRowAfterMouseEvent(e,t){if(this.props.onSelectionChanged&&this.props.onSelectionChanged([e],{kind:"mouseclick",event:t}),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(e,e,{kind:"mouseclick",event:t}),this.props.onSelectedRowChanged){if(!Dp(e,this.props.rowCount))return void log.debug(`[List.selectSingleRowAfterMouseEvent] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds`);this.props.onSelectedRowChanged(e,{kind:"mouseclick",event:t})}}onRowClick=(e,t)=>{if(this.canSelectRow(e)&&this.props.onRowClick){if(!Dp(e,this.props.rowCount))return void log.debug(`[List.onRowClick] unable to onRowClick for row ${e} as it is outside the bounds`);this.props.onRowClick(e,{kind:"mouseclick",event:t})}};onRowDoubleClick=(e,t)=>{this.props.onRowDoubleClick&&this.props.onRowDoubleClick(e,{kind:"mouseclick",event:t})};onScroll=({scrollTop:e,clientHeight:t})=>{if(this.props.onScroll&&this.props.onScroll(e,t),this.fakeScroll){if("fake"===this.lastScroll)return void(this.lastScroll=null);this.lastScroll="grid",this.fakeScroll.scrollTop=e}this.setState({scrollTop:e}),this.rootGrid?.recomputeGridSize()};focus(){const{selectedRows:e,rowCount:t}=this.props,n=e.at(-1);void 0!==n&&Dp(n,t)&&this.scrollRowToVisible(n)}}class nx extends ke.Component{inputElement=null;componentWillMount(){const e=ds(`TextBox_${this.props.label||this.props.placeholder}`);this.setState({inputId:e,value:this.props.value,valueCleared:!1})}componentWillUnmount(){this.state.inputId&&ms(this.state.inputId)}componentWillReceiveProps(e){this.state.value!==e.value&&this.setState({value:e.value})}selectAll(){null!==this.inputElement&&this.inputElement.select()}get isFocused(){return null!==this.inputElement&&null!==document.activeElement&&this.inputElement===document.activeElement}focus(){null!==this.inputElement&&this.inputElement.focus()}blur(){null!==this.inputElement&&this.inputElement.blur()}onChange=e=>{const t=e.currentTarget.value;this.setState({value:t,valueCleared:!1},(()=>{this.props.onValueChanged&&this.props.onValueChanged(t)}))};onSearchTextCleared=()=>{this.setState({valueCleared:!0}),this.props.onSearchCleared?.()};clearSearchText=e=>{e.preventDefault(),null!==this.inputElement&&(this.inputElement.value="",this.setState({value:"",valueCleared:!0},(()=>{this.props.onValueChanged&&this.props.onValueChanged(""),this.props.onSearchCleared?.(),this.focus()})))};onInputRef=e=>{null!=this.inputElement&&"search"===this.props.type&&this.inputElement.removeEventListener("search",this.onSearchTextCleared),this.inputElement=e,null!=this.inputElement&&"search"===this.props.type&&this.inputElement.addEventListener("search",this.onSearchTextCleared)};onContextMenu=e=>{e.preventDefault(),Ch([{role:"editMenu"}])};onKeyDown=e=>{const t=this.state.value;if(""!==t&&"search"===this.props.type&&"Escape"===e.key){const t="";e.preventDefault(),this.setState({value:t}),this.props.onValueChanged&&this.props.onValueChanged(t)}else"search"===this.props.type&&"Escape"===e.key&&""===t?this.props.onBlur&&(this.props.onBlur(t),null!==this.inputElement&&this.inputElement.blur()):"search"===this.props.type&&"Enter"===e.key&&void 0!==t&&""!==t&&void 0!==this.props.onEnterPressed&&this.props.onEnterPressed(t);void 0!==this.props.onKeyDown&&this.props.onKeyDown(e)};render(){const{label:e,className:t,prefixedIcon:n}=this.props,r=e?this.state.inputId:void 0;return ke.createElement("div",{className:hs()("text-box-component",t,{"no-invalid-state":!1===this.props.displayInvalidState,"display-clear-button":!0===this.props.displayClearButton,"display-prefixed-icon":void 0!==n})},e&&ke.createElement("label",{htmlFor:r},e),n&&ke.createElement(Rs,{className:"prefixed-icon",symbol:n}),ke.createElement("input",{id:r,ref:this.onInputRef,onFocus:this.onFocus,onBlur:this.onBlur,autoFocus:this.props.autoFocus,disabled:this.props.disabled,readOnly:this.props.readOnly,type:this.props.type??"text",placeholder:this.props.placeholder,value:this.state.value,onChange:this.onChange,onKeyDown:this.onKeyDown,tabIndex:this.props.tabIndex,onContextMenu:this.onContextMenu,spellCheck:!0===this.props.spellcheck,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-controls":this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy,required:this.props.required}),this.props.displayClearButton&&void 0!==this.state.value&&""!==this.state.value&&ke.createElement("button",{className:"clear-button","aria-label":"Clear",onClick:this.clearSearchText},ke.createElement(Rs,{symbol:Ru})),this.state.valueCleared&&ke.createElement(LC,{message:"Input cleared"}))}onFocus=e=>{this.props.autoFocus||void 0===this.props.onFocus||this.props.onFocus()};onBlur=e=>{void 0!==this.props.onBlur&&this.props.onBlur(e.target.value)}}class rx extends ke.Component{render(){const e=hs()("row-component",this.props.className);return ke.createElement("div",{id:this.props.id,className:e},this.props.children)}}var sx=n(4506);function ix(e,t,n){return sx.score(e,t)/n}function ox(e,t,n){const r=ix(e,e,1);return t.map((t=>{const s=[],i=n(t);return i.forEach((t=>{s.push(sx.match(t,e))})),{score:ix(i.join(""),e,r),item:t,matches:{title:s[0],subtitle:s.length>1?s[1]:[]}}})).filter((({matches:e})=>e.title.length>0||e.subtitle.length>0)).sort((({score:e},{score:t})=>yr(e,t)))}class ax extends ke.Component{list=null;filterTextBox=null;constructor(e){super(e),void 0!==e.filterTextBox&&(this.filterTextBox=e.filterTextBox),this.state=cx(e,null)}componentWillReceiveProps(e){this.setState(cx(e,this.state))}componentDidUpdate(e,t){if(this.props.onSelectionChanged){const e=hx(t.rows,t.selectedRow),n=hx(this.state.rows,this.state.selectedRow);if(e!==n&&(this.props.selectedItem?this.props.selectedItem.id:null)!==n){const e=ux(this.state.rows,this.state.selectedRow);this.props.onSelectionChanged(e,{kind:"filter",filterText:this.props.filterText||""})}}if(void 0!==this.props.onFilterListResultsChanged){const e=this.state.rows.flat().filter((e=>"item"===e.kind)).length;this.props.onFilterListResultsChanged(e)}}componentDidMount(){null!==this.filterTextBox&&this.filterTextBox.selectAll()}renderTextBox(){return ke.createElement(nx,{ref:this.onTextBoxRef,displayClearButton:!0,prefixedIcon:pc,autoFocus:!0,placeholder:this.props.placeholderText||"请输入筛选条件",className:"filter-list-filter-field",onValueChanged:this.onFilterValueChanged,onEnterPressed:this.onEnterPressed,onKeyDown:this.onKeyDown,value:this.props.filterText,disabled:this.props.disabled})}renderLiveContainer(){if(!this.state.filterValueChanged)return null;const e=this.state.rows.flat().filter((e=>"item"===e.kind)),t=1===e.length?"result":"results",n=`${e.length} ${t}`;return ke.createElement(LC,{trackedUserInput:this.state.filterValue,message:n})}renderFilterRow(){return!0===this.props.hideFilterRow?null:ke.createElement(rx,{className:"filter-field-row"},this.props.renderPreFilter?.(),void 0===this.props.filterTextBox?this.renderTextBox():null,this.props.renderPostFilter?.())}render(){return ke.createElement("div",{className:hs()("filter-list",this.props.className)},this.renderLiveContainer(),this.props.renderPreList?this.props.renderPreList():null,this.renderFilterRow(),ke.createElement("div",{className:"filter-list-container"},this.renderContent()))}selectNextItem(e=!1,t="down"){if(null===this.list)return;let n=null;const r=this.state.rows.map((e=>e.length));n=-1===this.state.selectedRow.row||this.state.selectedRow.row===this.state.rows.length?Mp(r,{direction:t,row:Ep},this.canSelectRow):Mp(r,{direction:t,row:this.state.selectedRow},this.canSelectRow),null!==n&&this.setState({selectedRow:n},(()=>{e&&null!==this.list&&this.list.focus()}))}renderContent(){return 0===this.state.rows.length&&this.props.renderNoItems?this.props.renderNoItems():ke.createElement(tx,{ref:this.onListRef,rowCount:this.state.rows.map((e=>e.length)),rowRenderer:this.renderRow,renderRowFocusTooltip:this.renderRowFocusTooltip,sectionHasHeader:this.sectionHasHeader,getRowAriaLabel:this.getRowAriaLabel,getSectionAriaLabel:this.getSectionAriaLabel,rowHeight:this.props.rowHeight,selectedRows:kp(this.state.selectedRow,Ep)?[]:[this.state.selectedRow],onSelectedRowChanged:this.onSelectedRowChanged,onRowClick:this.onRowClick,onRowKeyDown:this.onRowKeyDown,onRowContextMenu:this.onRowContextMenu,canSelectRow:this.canSelectRow,invalidationProps:{...this.props,...this.props.invalidationProps}})}sectionHasHeader=e=>{const t=this.state.rows[e];return t.length>0&&"group"===t[0].kind};getRowAriaLabel=e=>{const t=this.state.rows[e.section][e.row];if("item"!==t.kind)return;const n=this.props.getItemAriaLabel?.(t.item);if(void 0===n)return;const r=this.props.getGroupAriaLabel?.(this.state.groups[e.section]);return void 0!==r?`${n}, ${r}`:n};getSectionAriaLabel=e=>{const t=this.props.getGroupAriaLabel?.(this.state.groups[e]);return void 0!==t?t:void 0};renderRow=e=>{const t=this.state.rows[e.section][e.row];return"item"===t.kind?this.props.renderItem(t.item,t.matches):this.props.renderGroupHeader?this.props.renderGroupHeader(t.identifier):null};renderRowFocusTooltip=e=>{const t=this.state.rows[e.section][e.row];return"item"===t.kind&&this.props.renderRowFocusTooltip?this.props.renderRowFocusTooltip(t.item):null};onTextBoxRef=e=>{this.filterTextBox=e};onListRef=e=>{this.list=e};onFilterValueChanged=e=>{this.props.onFilterTextChanged&&this.props.onFilterTextChanged(e)};onEnterPressed=e=>{0===this.state.rows.length&&e.trim().length>0&&void 0!==this.props.onEnterPressedWithoutFilteredItems&&this.props.onEnterPressedWithoutFilteredItems(e)};onSelectedRowChanged=(e,t)=>{if(this.setState({selectedRow:e}),this.props.onSelectionChanged){const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onSelectionChanged(n.item,t)}};canSelectRow=e=>!this.props.disabled&&"item"===this.state.rows[e.section][e.row].kind;onRowClick=(e,t)=>{if(this.props.onItemClick){const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemClick(n.item,t)}};onRowContextMenu=(e,t)=>{if(!this.props.onItemContextMenu)return;const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemContextMenu(n.item,t)};onRowKeyDown=(e,t)=>{if(!this.list)return;const n=this.state.rows.map((e=>e.length)),r=Mp(n,{direction:"down",row:Ep},this.canSelectRow),s=Mp(n,{direction:"up",row:{section:0,row:0}},this.canSelectRow);let i=!1;if(("ArrowUp"===t.key&&r&&kp(e,r)||"ArrowDown"===t.key&&s&&kp(e,s))&&(i=!0),i){const e=this.filterTextBox;e&&(t.preventDefault(),e.focus())}};onKeyDown=e=>{const t=this.list,n=e.key;if(!t)return;if(this.props.onFilterKeyDown&&this.props.onFilterKeyDown(e),e.defaultPrevented)return;const r=this.state.rows.map((e=>e.length));if("ArrowDown"===n){if(r.length>0){const e=Mp(r,{direction:"down",row:Ep},this.canSelectRow);null!=e&&this.setState({selectedRow:e},(()=>{t.focus()}))}e.preventDefault()}else if("ArrowUp"===n){if(r.length>0){const e=Mp(r,{direction:"up",row:{section:0,row:0}},this.canSelectRow);null!=e&&this.setState({selectedRow:e},(()=>{t.focus()}))}e.preventDefault()}else if("Enter"===n){if(0===r.length)return e.preventDefault();const t=this.props.filterText;if(void 0!==t&&!/\S/.test(t))return e.preventDefault();const n=Mp(r,{direction:"down",row:Ep},this.canSelectRow);null!=n&&this.onRowClick(n,{kind:"keyboard",event:e})}}}function lx(e){return e.text}function cx(e,t){const n=new Array,r=(e.filterText||"").toLowerCase();let s=Ep,i=0;const o=e.selectedItem,a=[];for(const[t,l]of e.groups.entries()){const c=new Array,u=r?ox(r,l.items,lx):l.items.map((e=>({score:1,matches:{title:[],subtitle:[]},item:e})));if(u.length){a.push(t),e.renderGroupHeader&&c.push({kind:"group",identifier:l.identifier});for(const{item:e,matches:t}of u)o&&e.id===o.id&&(s={section:i,row:c.length}),c.push({kind:"item",item:e,matches:t});n.push(c),i++}}return s.row<0&&r.length&&(s=function(e){for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)if("item"===n[e].kind)return{section:t,row:e}}return Ep}(n)),{rows:n,selectedRow:s,filterValue:r,filterValueChanged:!!t?.filterValueChanged||r.length>0,groups:a}}function ux(e,t){if(t.section<0||t.section>=e.length)return null;const n=e[t.section];if(t.row<0||t.row>=n.length)return null;const r=n[t.row];return"item"===r.kind?r.item:null}function hx(e,t){const n=ux(e,t);return n?n.id:null}const px=Ft(__dirname,"static/empty-no-repo.svg");function dx(e,t){if(null!==t)for(const n of e)for(const e of n.items)if(e.repository.id===t.id)return e;return null}class mx extends ke.Component{getRepositoryGroups=xr(((e,t,n)=>null===e?[]:function(e,t,n){const r=e.length>7?new Set(n):void 0,s=new Map,i=(e,t)=>{const n=mh(e);let r=s.get(n);r||(r={group:e,repos:[]},s.set(n,r)),r.repos.push(t)};for(const t of e)r?.has(t.id)&&t instanceof Kr&&i({kind:"recent"},t),i(gh(t),t);return Array.from(s).sort((([e],[t])=>gr(e,t))).map((([,{group:e,repos:n}])=>({identifier:e,items:wh(e,n,t,s)})))}(e,t,n)));getSelectedListItem=xr(dx);constructor(e){super(e),this.state={newRepositoryMenuExpanded:!1,selectedItem:null}}renderItem=(e,t)=>{const n=e.repository;return ke.createElement(ch,{key:n.id,repository:n,needsDisambiguation:e.needsDisambiguation,matches:t,aheadBehind:e.aheadBehind,changedFilesCount:e.changedFilesCount})};getAheadBehindTooltip=e=>{if(null===e)return null;const{ahead:t,behind:n}=e;return 0===n&&0===t?null:"The currently checked out branch is"+(n?` ${dh(n)} behind `:"")+(n&&t?"and":"")+(t?` ${dh(t)} ahead of `:"")+"its tracked branch."};renderRowFocusTooltip=e=>{const{repository:t,aheadBehind:n,changedFilesCount:r}=e,s=t instanceof Kr?t.gitHubRepository:null,i=t instanceof Kr?t.alias:null,o=s?s.fullName:t.name,a=this.getAheadBehindTooltip(n),l=r>0?"There are uncommitted changes in this repository.":null,c=n?.ahead??0,u=n?.behind??0;return ke.createElement("div",{className:"repository-list-item-tooltip list-item-tooltip"},ke.createElement("div",null,ke.createElement("div",{className:"label"},"Full Name: "),o,i&&ke.createElement(ke.Fragment,null," (",i,")")),ke.createElement("div",null,ke.createElement("div",{className:"label"},"Path: "),t.path),a&&ke.createElement("div",null,ke.createElement("div",{className:"label"},ke.createElement("div",{className:"ahead-behind"},c>0&&ke.createElement(Rs,{symbol:Hs}),u>0&&ke.createElement(Rs,{symbol:_s}))),a),l&&ke.createElement("div",null,ke.createElement("div",{className:"label"},ke.createElement("span",{className:"change-indicator-wrapper"},ke.createElement(Rs,{symbol:oo}))),l))};getGroupLabel(e){const{kind:t}=e;return"enterprise"===t?e.host:"other"===t?"Other":"dotcom"===t?e.owner.login:"recent"===t?"Recent":void at(0,`Unknown repository group kind ${t}`)}renderGroupHeader=e=>{const t=this.getGroupLabel(e);return ke.createElement(lh,{key:mh(e),className:"filter-list-group-header",tooltip:t,onlyWhenOverflowed:!0,tagName:"div"},t)};onItemClick=e=>{const t=e.changedFilesCount>0||null!==e.aheadBehind&&(e.aheadBehind.ahead>0||e.aheadBehind.behind>0);this.props.dispatcher.recordRepoClicked(t),this.props.onSelectionChanged(e.repository)};onItemContextMenu=(e,t)=>{t.preventDefault(),Ch(Ph({onRemoveRepository:this.props.onRemoveRepository,onShowRepository:this.props.onShowRepository,onOpenInShell:this.props.onOpenInShell,onOpenInExternalEditor:this.props.onOpenInExternalEditor,askForConfirmationOnRemoveRepository:this.props.askForConfirmationOnRemoveRepository,externalEditorLabel:this.props.externalEditorLabel,onChangeRepositoryAlias:this.onChangeRepositoryAlias,onRemoveRepositoryAlias:this.onRemoveRepositoryAlias,onViewOnGitHub:this.props.onViewOnGitHub,repository:e.repository,shellLabel:this.props.shellLabel}))};getItemAriaLabel=e=>e.repository.name;getGroupAriaLabelGetter=e=>t=>this.getGroupLabel(e[t].identifier);render(){const e=this.getRepositoryGroups(this.props.repositories,this.props.localRepositoryStateLookup,this.props.recentRepositories),t=this.state.selectedItem??this.getSelectedListItem(e,this.props.selectedRepository);return ke.createElement("div",{className:"repository-list"},ke.createElement(ax,{rowHeight:29,selectedItem:t,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,renderItem:this.renderItem,renderRowFocusTooltip:this.renderRowFocusTooltip,renderGroupHeader:this.renderGroupHeader,onItemClick:this.onItemClick,renderPostFilter:this.renderPostFilter,renderNoItems:this.renderNoItems,groups:e,invalidationProps:{repositories:this.props.repositories,filterText:this.props.filterText},onItemContextMenu:this.onItemContextMenu,getGroupAriaLabel:this.getGroupAriaLabelGetter(e),getItemAriaLabel:this.getItemAriaLabel,onSelectionChanged:this.onSelectionChanged}))}onSelectionChanged=e=>{this.setState({selectedItem:e})};renderPostFilter=()=>ke.createElement(Ss,{className:"new-repository-button",onClick:this.onNewRepositoryButtonClick,ariaExpanded:this.state.newRepositoryMenuExpanded,onKeyDown:this.onNewRepositoryButtonKeyDown},"添加",ke.createElement(Rs,{symbol:ou}));onNewRepositoryButtonKeyDown=e=>{"ArrowDown"===e.key&&this.onNewRepositoryButtonClick()};renderNoItems=()=>ke.createElement("div",{className:"no-items no-results-found"},ke.createElement("img",{src:px,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"title"},"抱歉,未找到存储库"),ke.createElement("div",{className:"protip"},"ProTip! Press"," ",ke.createElement("div",{className:"kbd-shortcut"},ke.createElement(_u,{darwinKeys:["⌘","O"],keys:["Ctrl","O"]}))," ","可快速添加本地存储库,"," ",ke.createElement("div",{className:"kbd-shortcut"},ke.createElement(_u,{darwinKeys:["⇧","⌘","O"],keys:["Ctrl","Shift","O"]}))," ","to clone from anywhere within the app"));onNewRepositoryButtonClick=()=>{const e=[{label:"克隆存储库",action:this.onCloneRepository},{label:"创建存储库",action:this.onCreateNewRepository},{label:"添加存储库",action:this.onAddExistingRepository}];this.setState({newRepositoryMenuExpanded:!0}),Ch(e).then((()=>{this.setState({newRepositoryMenuExpanded:!1})}))};onCloneRepository=()=>{this.props.dispatcher.showPopup({type:Sh.CloneRepository,initialURL:null})};onAddExistingRepository=()=>{this.props.dispatcher.showPopup({type:Sh.AddRepository})};onCreateNewRepository=()=>{this.props.dispatcher.showPopup({type:Sh.CreateRepository})};onChangeRepositoryAlias=e=>{this.props.dispatcher.showPopup({type:Sh.ChangeRepositoryAlias,repository:e})};onRemoveRepositoryAlias=e=>{this.props.dispatcher.changeRepositoryAlias(e,null)}}class fx extends ke.Component{render(){const{id:e,className:t,children:n}=this.props,r=hs()(t,"ui-view");return ke.createElement("div",{id:e,className:r},n)}}function gx(e,t,n=e=>!0){if(0===e)return null;const{direction:r,row:s}=t,i=t.wrap??!0;let o=s<0||s>=e?"up"===r?e-1:0:s;"down"===r&&-1===s&&(o=-1);const a="up"===r?-1:1;for(let t=0;t<e;t++){if(o+=a,o>=e){if(!i)break;o=0}else if(o<0){if(!i)break;o=e-1}if(s!==o&&n(o))return o}return null}function yx(e,t,n){let r="up"===e?0:t-1;const s="up"===e?1:-1;for(;r>=0&&r<t;r+=s)if(n(r))return r;return null}function wx(e,t){return Bp(e,t>e?t+1:t-1)}class bx extends ke.Component{fakeScroll=null;focusRow=-1;rowRefs=new Map;keyboardInsertionElementRef=ke.createRef();gridStyle={overflowX:"hidden"};lastScroll=null;list=null;grid=null;resizeObserver=null;updateSizeTimeoutId=null;getContainerProps=xr((e=>({onKeyDown:this.onKeyDown,"aria-activedescendant":e,"aria-multiselectable":"multi"===this.props.selectionMode||"range"===this.props.selectionMode?"true":void 0})));constructor(e){super(e),this.state={keyboardInsertionIndexPath:null};const t=window.ResizeObserver;ResizeObserver&&(this.resizeObserver=new t((e=>{for(const{target:t,contentRect:n}of e)t===this.list&&null!==this.list&&(null!==this.updateSizeTimeoutId&&clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=setImmediate(this.onResized,this.list,n))})))}getRowId(e){return this.props.rowId?this.props.rowId(e):void 0===this.state.rowIdPrefix?void 0:`${this.state.rowIdPrefix}-${e}`}onResized=(e,t)=>{this.updateSizeTimeoutId=null;const[n,r]=[e.offsetWidth,e.offsetHeight];this.state.width===n&&this.state.height===r||this.setState({width:n,height:r})};onSelectAll=e=>{const t=this.props.selectionMode;if("range"!==t&&"multi"!==t)return;if(e.preventDefault(),this.props.rowCount<=0)return;const n={kind:"select-all"},r=this.props.rowCount-1;if(this.props.onSelectionChanged){const e=wx(0,r);this.props.onSelectionChanged(e,n)}"range"===t&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(0,r,n)};onRef=e=>{null===e&&null!==this.list&&this.list.removeEventListener("select-all",this.onSelectAll),this.list=e,null!==e&&e.addEventListener("select-all",this.onSelectAll),this.resizeObserver&&(this.resizeObserver.disconnect(),null!==e?this.resizeObserver.observe(e):this.setState({width:void 0,height:void 0}))};onKeyDown=e=>{if(this.props.onRowKeyDown)for(const t of this.props.selectedRows)this.props.onRowKeyDown(t,e);if(e.defaultPrevented)return;const t={kind:"keyboard",event:e},n="Home"===e.key,r="End"===e.key,{keyboardInsertionData:s}=this.props;if(void 0!==s){if("Escape"===e.key)return this.props.onCancelKeyboardInsertion?.(),void e.preventDefault();const{keyboardInsertionIndexPath:i}=this.state;if("Enter"===e.key&&i)return this.props.onConfirmKeyboardInsertion?.(i,s),void e.preventDefault();const{rowCount:o}=this.props;let a=-1;if(n)a=0;else if(r)a=o;else{if(!i)return;if("ArrowUp"===e.key)a=Math.max(i.row-1,0);else{if("ArrowDown"!==e.key)return;a=Math.min(i.row+1,o)}}const l={section:0,row:a};return this.setState({keyboardInsertionIndexPath:l}),this.props.onKeyboardInsertionIndexPathChanged?.(l),this.moveSelectionTo(Math.min(a,o-1),t),void e.preventDefault()}const i=e.shiftKey&&void 0!==this.props.selectionMode&&"single"!==this.props.selectionMode;if(n||r){const r=n?"up":"down";i?this.addSelectionToLastSelectableRow(r,t):this.moveSelectionToLastSelectableRow(r,t),e.preventDefault()}else if("ArrowUp"===e.key||"ArrowDown"===e.key){const n="ArrowUp"===e.key?"up":"down";i?this.addSelection(n,t):this.moveSelection(n,t),e.preventDefault()}else if("a"===e.key&&e.ctrlKey)this.onSelectAll(e);else if("PageUp"===e.key||"PageDown"===e.key){const n="PageUp"===e.key?"up":"down";i?this.addSelectionByPage(n,t):this.moveSelectionByPage(n,t),e.preventDefault()}};get inKeyboardInsertionMode(){return void 0!==this.props.keyboardInsertionData}moveSelectionByPage(e,t){const n=this.getNextPageRowIndex(e);this.moveSelectionTo(n,t)}addSelectionByPage(e,t){const{selectedRows:n}=this.props,r=this.getNextPageRowIndex(e),s=wx(n[0]??0,r);this.props.onSelectionChanged&&this.props.onSelectionChanged(s,t),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(s[0],s[s.length-1],t),this.scrollRowToVisible(r)}getNextPageRowIndex(e){const{selectedRows:t}=this.props,n=t.at(-1)??0;return this.findNextPageSelectableRow(n,e)}getRowHeight(e){const{rowHeight:t}=this.props;return"number"==typeof t?t:t({index:e})}findNextPageSelectableRow(e,t){const{height:n}=this.state,{rowCount:r}=this.props;if(void 0===n)return e;let s=0,i=e;const o="up"===t?-1:1;for(let t=e;t<r&&t>=0;t+=o){const e=this.getRowHeight(t);if(s+e>n)break;s+=e,this.canSelectRow(t)&&(i=t)}return i}onRowKeyDown=(e,t)=>{if(this.inKeyboardInsertionMode)return;this.props.onRowKeyDown&&this.props.onRowKeyDown(e.row,t);const n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;t.defaultPrevented||n||"Enter"!==t.key&&" "!==t.key||(this.toggleSelection(t),t.preventDefault())};onFocusContainerKeyDown=e=>{if(this.inKeyboardInsertionMode)return;const t=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;e.defaultPrevented||t||"Enter"!==e.key&&" "!==e.key||(this.toggleSelection(e),e.preventDefault())};onFocusWithinChanged=e=>{if(e){if(0===this.props.selectedRows.length){const e=this.getFirstSelectableRowIndexPath();null!==e&&this.moveSelectionTo(e,{kind:"focus"})}}else this.focusRow=-1,this.inKeyboardInsertionMode&&this.props.onCancelKeyboardInsertion?.()};toggleSelection=e=>{this.props.selectedRows.forEach((t=>{if(!this.props.onRowClick)return;const{rowCount:n}=this.props;t<0||t>=n?log.debug(`[List.toggleSelection] unable to onRowClick for row ${t} as it is outside the bounds of the array [0, ${n}]`):this.props.onRowClick(t,{kind:"keyboard",event:e})}))};onRowFocus=(e,t)=>{this.focusRow=e.row,this.props.onRowFocus?.(e.row,t)};onRowKeyboardFocus=(e,t)=>{this.focusRow=e.row,this.props.onRowKeyboardFocus?.(e.row,t)};onRowBlur=(e,t)=>{this.focusRow===e.row&&(this.focusRow=-1),this.props.onRowBlur?.(e.row,t)};onRowContextMenu=(e,t)=>{this.props.onRowContextMenu?.(e.row,t)};canSelectRow=e=>!this.props.canSelectRow||this.props.canSelectRow(e);getFirstSelectableRowIndexPath(){for(let e=0;e<this.props.rowCount;e++)if(this.canSelectRow(e))return e;return null}addSelection(e,t){if(0===this.props.selectedRows.length)return this.moveSelection(e,t);const n=this.props.selectedRows[this.props.selectedRows.length-1],r=this.props.selectedRows[0],s=gx(this.props.rowCount,{direction:e,row:n,wrap:!1},this.canSelectRow);if(null!=s){if(this.props.onSelectionChanged){const e=wx(r,s);this.props.onSelectionChanged(e,t)}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(r,s,t),this.scrollRowToVisible(s)}}moveSelection(e,t){const n=this.props.selectedRows.length>0?this.props.selectedRows[this.props.selectedRows.length-1]:-1,r=gx(this.props.rowCount,{direction:e,row:n},this.canSelectRow);null!=r&&this.moveSelectionTo(r,t)}moveSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:s}=r,i=yx(e,s,n);null!==i&&this.moveSelectionTo(i,t)}addSelectionToLastSelectableRow(e,t){const{canSelectRow:n,props:r}=this,{rowCount:s,selectedRows:i}=r,o=yx(e,s,n);if(null===o)return;const a=wx(i[0]??0,o);this.props.onSelectionChanged?.(a,t);const l=a.at(0)??0,c=a.at(-1)??0;this.props.onSelectedRangeChanged?.(l,c,t),this.scrollRowToVisible(o)}moveSelectionTo(e,t){if(this.props.onSelectionChanged&&!this.inKeyboardInsertionMode&&this.props.onSelectionChanged([e],t),this.props.onSelectedRowChanged&&!this.inKeyboardInsertionMode){const n=this.props.rowCount;if(e<0||e>=n)return void log.debug(`[List.moveSelection] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds of the array [0, ${n}]`);this.props.onSelectedRowChanged(e,t)}this.scrollRowToVisible(e)}scrollRowToVisible(e,t=!0){null!==this.grid&&(this.grid.scrollToCell({rowIndex:e,columnIndex:0}),t&&(this.focusRow=e,this.rowRefs.get(e)?.focus({preventScroll:!0})))}componentDidMount(){const{props:e,grid:t}=this,{selectedRows:n,scrollToRow:r,setScrollTop:s}=e;null!==t&&void 0===s&&(void 0!==r?t.scrollToCell({rowIndex:r,columnIndex:0}):n.length>0&&t.scrollToCell({rowIndex:n[0],columnIndex:0}))}componentDidUpdate(e,t){const{scrollToRow:n,setScrollTop:r}=this.props;if(void 0!==n&&e.scrollToRow!==n&&void 0===r&&this.scrollRowToVisible(n,!1),this.grid&&this.props.rowCount===e.rowCount&&this.state.width===t.width&&this.state.height===t.height){const t=!bp(e.selectedRows,this.props.selectedRows),n=!wp(e.invalidationProps,this.props.invalidationProps);(t||n)&&this.grid.forceUpdate()}void 0===e.keyboardInsertionData&&void 0!==this.props.keyboardInsertionData&&this.setState({keyboardInsertionIndexPath:this.props.selectedRows.length>0?{section:0,row:this.props.selectedRows[0]}:{section:0,row:0}}),t.keyboardInsertionIndexPath!==this.state.keyboardInsertionIndexPath&&this.updateKeyboardInsertionElementPosition()}componentWillMount(){this.setState({rowIdPrefix:ds("ListRow")})}componentWillUnmount(){null!==this.updateSizeTimeoutId&&(clearImmediate(this.updateSizeTimeoutId),this.updateSizeTimeoutId=null),this.resizeObserver&&this.resizeObserver.disconnect(),this.state.rowIdPrefix&&ms(this.state.rowIdPrefix)}onRowRef=(e,t)=>{if(null===t?this.rowRefs.delete(e.row):this.rowRefs.set(e.row,t),e.row===this.focusRow)if(null===t){const e=Ae.findDOMNode(this.grid);e instanceof HTMLElement&&e.focus({preventScroll:!0})}else t.focus({preventScroll:!0})};getCustomRowClassNames=e=>{const{rowCustomClassNameMap:t}=this.props;if(void 0===t)return;const n=new Array;return t.forEach(((t,r)=>{t.includes(e)&&n.push(r)})),0===n.length?void 0:n.join(" ")};getRowRenderer=e=>t=>{const{selectedRows:n,keyboardInsertionData:r,shouldDisableTabFocus:s}=this.props,{keyboardInsertionIndexPath:i}=this.state,o=t.rowIndex,a=this.canSelectRow(o),l=-1!==n.indexOf(o),c=this.getCustomRowClassNames(o);let u;!0===s?u=-1:a&&(u=l&&n[0]===o||0===n.length&&e===o?0:-1);const h=this.props.rowRenderer(o);let p=Op.None;r&&i&&(i.row===o?p=Op.Top:i.row===o+1&&(p=Op.Bottom));const d=void 0!==this.props.insertionDragType?ke.createElement(Lp,{isKeyboardInsertion:this.inKeyboardInsertionMode,onDropDataInsertion:this.onDropDataInsertion,itemIndex:{section:0,row:o},dragType:this.props.insertionDragType,forcedFeedbackType:p},h):h,m=this.getRowId(o),f=void 0!==this.props.getRowAriaLabel?this.props.getRowAriaLabel(o):void 0;return ke.createElement(Sp,{key:t.key,id:m,role:"list"===this.props.role?"listitem":void 0,onRowRef:this.onRowRef,rowCount:this.props.rowCount,rowIndex:{section:0,row:o},sectionHasHeader:!1,selected:l,selectedForKeyboardInsertion:void 0!==r&&r.itemIndices.includes(o),inKeyboardInsertionMode:this.inKeyboardInsertionMode,ariaLabel:f,onRowClick:this.onRowClick,onRowDoubleClick:this.onRowDoubleClick,onRowKeyDown:this.onRowKeyDown,onRowMouseDown:this.onRowMouseDown,onRowMouseUp:this.onRowMouseUp,onRowFocus:this.onRowFocus,onRowKeyboardFocus:this.onRowKeyboardFocus,onRowBlur:this.onRowBlur,onContextMenu:this.onRowContextMenu,style:t.style,tabIndex:u,children:d,selectable:a,className:c,hasKeyboardFocus:this.focusRow===o,renderRowFocusTooltip:this.props.renderRowFocusTooltip})};render(){let e;return e=this.resizeObserver?this.renderContents(this.state.width??0,this.state.height??0):ke.createElement(Zh,{disableWidth:!0,disableHeight:!0},(({width:e,height:t})=>this.renderContents(e,t))),ke.createElement("div",{ref:this.onRef,id:this.props.id,className:"list"},e,this.renderKeyboardInsertionElement())}renderKeyboardInsertionElement=()=>{const{keyboardInsertionData:e,keyboardInsertionElementRenderer:t}=this.props,{keyboardInsertionIndexPath:n}=this.state;if(!e||!n)return null;if(!this.list)return;const r=this.list.getBoundingClientRect(),s=(e,t,n,r)=>ke.createElement("div",{style:{top:e,left:t,width:n,height:r},className:"overlay"});return ke.createElement(ke.Fragment,null,s(0,0,"100%",r.top),s(r.top,0,r.left,r.height),s(r.top,r.right,"100%",r.height),s(r.bottom,0,"100%","100%"),ke.createElement("div",{className:"keyboard-insertion-element",style:{top:0,left:0},ref:this.keyboardInsertionElementRef},t?.(e)))};updateKeyboardInsertionElementPosition=()=>{const{keyboardInsertionData:e}=this.props,{keyboardInsertionIndexPath:t}=this.state,n=this.keyboardInsertionElementRef.current;if(!e||!t||!n)return;const r=this.rowRefs.get(t.row);if(!r||!this.list)return;const s=r.getBoundingClientRect(),i=this.list.getBoundingClientRect(),o=Math.min(Math.max(i.top,s.top),i.top+i.height-n.clientHeight);n.style.top=`${o}px`,n.style.left=`${s.right+20}px`};renderContents(e,t){return ke.createElement(ke.Fragment,null,this.renderGrid(e,t),this.renderFakeScroll(t))}onGridRef=e=>{this.grid=e};onFakeScrollRef=e=>{this.fakeScroll=e};renderGrid(e,t){this.props.selectedRows[0]<0&&QT("invalidListSelection",new Error("Invalid selected rows that contained a negative number passed to List component. This will cause keyboard navigation and focus problems."));const n=!0===this.props.shouldDisableTabFocus?-1:this.props.selectedRows.length<1?0:-1,r=this.props.selectedRows.length&&this.state.rowIdPrefix?this.getRowId(this.props.selectedRows[this.props.selectedRows.length-1]):void 0,s=this.getContainerProps(r),i=hs()("list-focus-container",{"in-keyboard-insertion-mode":this.inKeyboardInsertionMode});return ke.createElement(vp,{className:i,onKeyDown:this.onFocusContainerKeyDown,onFocusWithinChanged:this.onFocusWithinChanged},ke.createElement(mp,{id:this.props.accessibleListId,"aria-labelledby":this.props.ariaLabelledBy,"aria-label":this.props.ariaLabel,role:this.props.role??"listbox",ref:this.onGridRef,autoContainerWidth:!0,containerRole:"presentation",containerProps:s,width:e,height:t,columnWidth:e,columnCount:1,"aria-multiselectable":"single"!==this.props.selectionMode||void 0,rowCount:this.props.rowCount,rowHeight:this.props.rowHeight,cellRenderer:this.getRowRenderer(this.getFirstSelectableRowIndexPath()),onScroll:this.onScroll,scrollTop:this.props.setScrollTop,overscanRowCount:4,style:this.gridStyle,tabIndex:n}))}renderFakeScroll(e){let t=0;if("number"==typeof this.props.rowHeight)t=this.props.rowHeight*this.props.rowCount;else for(let e=0;e<this.props.rowCount;e++)t+=this.props.rowHeight({index:e});return ke.createElement("div",{className:"fake-scroll",ref:this.onFakeScrollRef,style:{height:e},onScroll:this.onFakeScroll},ke.createElement("div",{style:{height:t,pointerEvents:"none"}}))}onFakeScroll=e=>{if("grid"!==this.lastScroll){if(this.lastScroll="fake",this.grid){const t=Ae.findDOMNode(this.grid);t instanceof Element&&(t.scrollTop=e.currentTarget.scrollTop)}}else this.lastScroll=null};onRowMouseDown=(e,t)=>{if(this.inKeyboardInsertionMode)return;const{row:n}=e;if(this.canSelectRow(n)){if(this.props.onRowMouseDown&&this.props.onRowMouseDown(n,t),2===t.button&&this.props.selectedRows.includes(n))return;const e=t.ctrlKey;if(t.shiftKey&&this.props.selectedRows.length&&this.props.selectionMode&&"single"!==this.props.selectionMode){const e=this.props.selectedRows[0];if(this.props.onSelectionChanged){const r=wx(e,n);this.props.onSelectionChanged(r,{kind:"mouseclick",event:t})}"range"===this.props.selectionMode&&this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(e,n,{kind:"mouseclick",event:t})}else if(e&&"multi"===this.props.selectionMode){if(this.props.onSelectionChanged){let e;if(this.props.selectedRows.includes(n)){if(1===this.props.selectedRows.length)return;e=this.props.selectedRows.filter((e=>e!==n))}else e=[...this.props.selectedRows,n];this.props.onSelectionChanged(e,{kind:"mouseclick",event:t})}}else("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.props.selectedRows.length>1&&this.props.selectedRows.includes(n)||(1!==this.props.selectedRows.length||1===this.props.selectedRows.length&&n!==this.props.selectedRows[0])&&this.selectSingleRowAfterMouseEvent(n,t)}};onRowMouseUp=(e,t)=>{if(this.inKeyboardInsertionMode)return;const{row:n}=e;if(!this.canSelectRow(n))return;if(2===t.button&&this.props.selectedRows.includes(n))return;const r=t.ctrlKey;!t.shiftKey&&!r&&this.props.selectedRows.length>1&&this.props.selectedRows.includes(n)&&("range"===this.props.selectionMode||"multi"===this.props.selectionMode)&&this.selectSingleRowAfterMouseEvent(n,t)};selectSingleRowAfterMouseEvent(e,t){if(this.props.onSelectionChanged&&this.props.onSelectionChanged([e],{kind:"mouseclick",event:t}),this.props.onSelectedRangeChanged&&this.props.onSelectedRangeChanged(e,e,{kind:"mouseclick",event:t}),this.props.onSelectedRowChanged){const{rowCount:n}=this.props;if(e<0||e>=n)return void log.debug(`[List.selectSingleRowAfterMouseEvent] unable to onSelectedRowChanged for row '${e}' as it is outside the bounds of the array [0, ${n}]`);this.props.onSelectedRowChanged(e,{kind:"mouseclick",event:t})}}onDropDataInsertion=(e,t)=>{this.props.onDropDataInsertion?.(e.row,t)};onRowClick=(e,t)=>{if(!this.inKeyboardInsertionMode&&this.canSelectRow(e.row)&&this.props.onRowClick){const n=this.props.rowCount;if(e.row<0||e.row>=n)return void log.debug(`[List.onRowClick] unable to onRowClick for row ${e.row} as it is outside the bounds of the array [0, ${n}]`);this.props.onRowClick(e.row,{kind:"mouseclick",event:t})}};onRowDoubleClick=(e,t)=>{this.inKeyboardInsertionMode||this.props.onRowDoubleClick&&this.props.onRowDoubleClick(e.row,{kind:"mouseclick",event:t})};onScroll=({scrollTop:e,clientHeight:t})=>{if(this.props.onScroll&&this.props.onScroll(e,t),this.fakeScroll){if("fake"===this.lastScroll)return void(this.lastScroll=null);this.lastScroll="grid",this.fakeScroll.scrollTop=e}this.updateKeyboardInsertionElementPosition()};focus(){const{selectedRows:e,rowCount:t}=this.props,n=e.at(-1);if(void 0!==n&&n<t)this.scrollRowToVisible(n);else if(this.grid){const e=Ae.findDOMNode(this.grid);e&&e.focus()}}}var Cx;!function(e){e[e.On=0]="On",e[e.Off=1]="Off",e[e.Mixed=2]="Mixed"}(Cx||(Cx={}));class vx extends ke.Component{input=null;onChange=e=>{this.props.onChange&&this.props.onChange(e)};componentDidUpdate(){this.updateInputState()}componentWillMount(){const e=ds(`Checkbox_${this.props.label&&"string"==typeof this.props.label?this.props.label:wT()()}`);this.setState({inputId:e})}componentWillUnmount(){this.state.inputId&&ms(this.state.inputId)}focus(){this.input?.focus()}updateInputState(){const e=this.input;if(e){const t=this.props.value;e.indeterminate=t===Cx.Mixed,e.checked=t!==Cx.Off}}onInputRef=e=>{this.input=e,this.updateInputState()};onDoubleClick=e=>{e.preventDefault(),e.stopPropagation()};renderLabel(){const e=this.props.label,t=this.state.inputId;return e?ke.createElement("label",{htmlFor:t},e):null}render(){return ke.createElement("div",{className:hs()("checkbox-component",this.props.className)},ke.createElement("input",{id:this.state.inputId,tabIndex:this.props.tabIndex,type:"checkbox",onChange:this.onChange,onDoubleClick:this.onDoubleClick,ref:this.onInputRef,disabled:this.props.disabled,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy}),this.renderLabel())}}var Sx=n(165),Ex=n.n(Sx),kx=n(7580),Rx=n.n(kx);const Ax=Math.min,Tx=Math.max,xx=Math.round,Dx=Math.floor,Mx=e=>({x:e,y:e}),Px={left:"right",right:"left",bottom:"top",top:"bottom"},Ix={start:"end",end:"start"};function _x(e,t,n){return Tx(e,Ax(t,n))}function Fx(e,t){return"function"==typeof e?e(t):e}function Nx(e){return e.split("-")[0]}function Ox(e){return e.split("-")[1]}function Lx(e){return"x"===e?"y":"x"}function Bx(e){return"y"===e?"height":"width"}function Hx(e){return["top","bottom"].includes(Nx(e))?"y":"x"}function Ux(e){return Lx(Hx(e))}function Zx(e){return e.replace(/start|end/g,(e=>Ix[e]))}function $x(e){return e.replace(/left|right|bottom|top/g,(e=>Px[e]))}function Wx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Vx(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function qx(e,t,n){let{reference:r,floating:s}=e;const i=Hx(t),o=Ux(t),a=Bx(o),l=Nx(t),c="y"===i,u=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,p=r[a]/2-s[a]/2;let d;switch(l){case"top":d={x:u,y:r.y-s.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-s.width,y:h};break;default:d={x:r.x,y:r.y}}switch(Ox(t)){case"start":d[o]-=p*(n&&c?-1:1);break;case"end":d[o]+=p*(n&&c?-1:1)}return d}async function Gx(e,t){var n;void 0===t&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=Fx(t,e),m=Wx(d),f=a[p?"floating"===h?"reference":"floating":h],g=Vx(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(f)))||n?f:f.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===h?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},C=Vx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(g.top-C.top+m.top)/b.y,bottom:(C.bottom-g.bottom+m.bottom)/b.y,left:(g.left-C.left+m.left)/b.x,right:(C.right-g.right+m.right)/b.x}}const zx=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...g}=Fx(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Nx(s),w=Hx(a),b=Nx(a)===a,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),v=p||(b||!f?[$x(a)]:function(e){const t=$x(e);return[Zx(e),t,Zx(t)]}(a)),S="none"!==m;!p&&S&&v.push(...function(e,t,n,r){const s=Ox(e);let i=function(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}(Nx(e),"start"===n,r);return s&&(i=i.map((e=>e+"-"+s)),t&&(i=i.concat(i.map(Zx)))),i}(a,f,m,C));const E=[a,...v],k=await Gx(t,g),R=[];let A=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&R.push(k[y]),h){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ox(e),s=Ux(e),i=Bx(s);let o="x"===s?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=$x(o)),[o,$x(o)]}(s,o,C);R.push(k[e[0]],k[e[1]])}if(A=[...A,{placement:s,overflows:R}],!R.every((e=>e<=0))){var T,x;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(x=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:x.placement;if(!n)switch(d){case"bestFit":{var D;const e=null==(D=A.filter((e=>{if(S){const t=Hx(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(s!==n)return{reset:{placement:n}}}return{}}}},jx=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Fx(e,t),c={x:n,y:r},u=await Gx(t,l),h=Hx(Nx(s)),p=Lx(h);let d=c[p],m=c[h];if(i){const e="y"===p?"bottom":"right";d=_x(d+u["y"===p?"top":"left"],d,d-u[e])}if(o){const e="y"===h?"bottom":"right";m=_x(m+u["y"===h?"top":"left"],m,m-u[e])}const f=a.fn({...t,[p]:d,[h]:m});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[p]:i,[h]:o}}}}}},Kx=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Fx(e,t),u=await Gx(t,c),h=Nx(s),p=Ox(s),d="y"===Hx(s),{width:m,height:f}=i.floating;let g,y;"top"===h||"bottom"===h?(g=h,y=p===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,g="end"===p?"top":"bottom");const w=f-u.top-u.bottom,b=m-u.left-u.right,C=Ax(f-u[g],w),v=Ax(m-u[y],b),S=!t.middlewareData.shift;let E=C,k=v;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=w),S&&!p){const e=Tx(u.left,0),t=Tx(u.right,0),n=Tx(u.top,0),r=Tx(u.bottom,0);d?k=m-2*(0!==e||0!==t?e+t:Tx(u.left,u.right)):E=f-2*(0!==n||0!==r?n+r:Tx(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:E});const R=await o.getDimensions(a.floating);return m!==R.width||f!==R.height?{reset:{rects:!0}}:{}}}};function Yx(){return"undefined"!=typeof window}function Xx(e){return eD(e)?(e.nodeName||"").toLowerCase():"#document"}function Qx(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Jx(e){var t;return null==(t=(eD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eD(e){return!!Yx()&&(e instanceof Node||e instanceof Qx(e).Node)}function tD(e){return!!Yx()&&(e instanceof Element||e instanceof Qx(e).Element)}function nD(e){return!!Yx()&&(e instanceof HTMLElement||e instanceof Qx(e).HTMLElement)}function rD(e){return!(!Yx()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Qx(e).ShadowRoot)}function sD(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=uD(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function iD(e){return["table","td","th"].includes(Xx(e))}function oD(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function aD(e){const t=lD(),n=tD(e)?uD(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function lD(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function cD(e){return["html","body","#document"].includes(Xx(e))}function uD(e){return Qx(e).getComputedStyle(e)}function hD(e){return tD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pD(e){if("html"===Xx(e))return e;const t=e.assignedSlot||e.parentNode||rD(e)&&e.host||Jx(e);return rD(t)?t.host:t}function dD(e){const t=pD(e);return cD(t)?e.ownerDocument?e.ownerDocument.body:e.body:nD(t)&&sD(t)?t:dD(t)}function mD(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const s=dD(e),i=s===(null==(r=e.ownerDocument)?void 0:r.body),o=Qx(s);if(i){const e=fD(o);return t.concat(o,o.visualViewport||[],sD(s)?s:[],e&&n?mD(e):[])}return t.concat(s,mD(s,[],n))}function fD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gD(e){const t=uD(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=nD(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=xx(n)!==i||xx(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function yD(e){return tD(e)?e:e.contextElement}function wD(e){const t=yD(e);if(!nD(t))return Mx(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=gD(t);let o=(i?xx(n.width):n.width)/r,a=(i?xx(n.height):n.height)/s;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const bD=Mx(0);function CD(e){const t=Qx(e);return lD()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bD}function vD(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect(),i=yD(e);let o=Mx(1);t&&(r?tD(r)&&(o=wD(r)):o=wD(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Qx(e))&&t}(i,n,r)?CD(i):Mx(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,h=s.height/o.y;if(i){const e=Qx(i),t=r&&tD(r)?Qx(r):r;let n=e,s=fD(n);for(;s&&r&&t!==n;){const e=wD(s),t=s.getBoundingClientRect(),r=uD(s),i=t.left+(s.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(s.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,h*=e.y,l+=i,c+=o,n=Qx(s),s=fD(n)}}return Vx({width:u,height:h,x:l,y:c})}function SD(e,t){const n=hD(e).scrollLeft;return t?t.left+n:vD(Jx(e)).left+n}function ED(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:SD(e,r)),y:r.top+t.scrollTop}}function kD(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Qx(e),r=Jx(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const e=lD();(!e||e&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Jx(e),n=hD(e),r=e.ownerDocument.body,s=Tx(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Tx(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+SD(e);const a=-n.scrollTop;return"rtl"===uD(r).direction&&(o+=Tx(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}(Jx(e));else if(tD(t))r=function(e,t){const n=vD(e,!0,"fixed"===t),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=nD(e)?wD(e):Mx(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:s*i.x,y:r*i.y}}(t,n);else{const n=CD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Vx(r)}function RD(e,t){const n=pD(e);return!(n===t||!tD(n)||cD(n))&&("fixed"===uD(n).position||RD(n,t))}function AD(e,t,n){const r=nD(t),s=Jx(t),i="fixed"===n,o=vD(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Mx(0);if(r||!r&&!i)if(("body"!==Xx(t)||sD(s))&&(a=hD(t)),r){const e=vD(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else s&&(l.x=SD(s));const c=!s||r||i?Mx(0):ED(s,a);return{x:o.left+a.scrollLeft-l.x-c.x,y:o.top+a.scrollTop-l.y-c.y,width:o.width,height:o.height}}function TD(e){return"static"===uD(e).position}function xD(e,t){if(!nD(e)||"fixed"===uD(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Jx(e)===n&&(n=n.ownerDocument.body),n}function DD(e,t){const n=Qx(e);if(oD(e))return n;if(!nD(e)){let t=pD(e);for(;t&&!cD(t);){if(tD(t)&&!TD(t))return t;t=pD(t)}return n}let r=xD(e,t);for(;r&&iD(r)&&TD(r);)r=xD(r,t);return r&&cD(r)&&TD(r)&&!aD(r)?n:r||function(e){let t=pD(e);for(;nD(t)&&!cD(t);){if(aD(t))return t;if(oD(t))return null;t=pD(t)}return null}(e)||n}const MD={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i="fixed"===s,o=Jx(r),a=!!t&&oD(t.floating);if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Mx(1);const u=Mx(0),h=nD(r);if((h||!h&&!i)&&(("body"!==Xx(r)||sD(o))&&(l=hD(r)),nD(r))){const e=vD(r);c=wD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!o||h||i?Mx(0):ED(o,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Jx,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i="clippingAncestors"===n?oD(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=mD(e,[],!1).filter((e=>tD(e)&&"body"!==Xx(e))),s=null;const i="fixed"===uD(e).position;let o=i?pD(e):e;for(;tD(o)&&!cD(o);){const t=uD(o),n=aD(o);n||"fixed"!==t.position||(s=null),(i?!n&&!s:!n&&"static"===t.position&&s&&["absolute","fixed"].includes(s.position)||sD(o)&&!n&&RD(e,o))?r=r.filter((e=>e!==o)):s=t,o=pD(o)}return t.set(e,r),r}(t,this._c):[].concat(n),o=[...i,r],a=o[0],l=o.reduce(((e,n)=>{const r=kD(t,n,s);return e.top=Tx(r.top,e.top),e.right=Ax(r.right,e.right),e.bottom=Ax(r.bottom,e.bottom),e.left=Tx(r.left,e.left),e}),kD(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:DD,getElementRects:async function(e){const t=this.getOffsetParent||DD,n=this.getDimensions,r=await n(e.floating);return{reference:AD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=gD(e);return{width:t,height:n}},getScale:wD,isElement:tD,isRTL:function(e){return"rtl"===uD(e).direction}};function PD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var ID,_D,FD;!function(e){e.Top="top",e.TopRight="top-right",e.TopLeft="top-left",e.Left="left",e.LeftTop="left-top",e.LeftBottom="left-bottom",e.Bottom="bottom",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e.Right="right",e.RightTop="right-top",e.RightBottom="right-bottom"}(ID||(ID={})),function(e){e.Shake="shake"}(_D||(_D={})),function(e){e.None="none",e.Balloon="balloon"}(FD||(FD={}));class ND extends ke.Component{focusTrapOptions;containerDivRef=ke.createRef();contentDivRef=ke.createRef();tipDivRef=ke.createRef();floatingCleanUp=null;constructor(e){super(e),this.focusTrapOptions={allowOutsideClick:!0,escapeDeactivates:!0,onDeactivate:this.props.onMousedownOutside??this.props.onClickOutside},this.state={position:null}}async setupPosition(){this.floatingCleanUp?.(),this.floatingCleanUp=null;const{anchor:e}=this.props;null!=e&&null!==this.containerDivRef.current&&(this.floatingCleanUp=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=yD(e),u=s||i?[...c?mD(c):[],...mD(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=c&&a?function(e,t){let n,r=null;const s=Jx(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function o(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:h,width:p,height:d}=c;if(a||t(),!p||!d)return;const m={rootMargin:-Dx(h)+"px "+-Dx(s.clientWidth-(u+p))+"px "+-Dx(s.clientHeight-(h+d))+"px "+-Dx(u)+"px",threshold:Tx(0,Ax(1,l))||1};let f=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!f)return o();r?o(!1,r):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}1!==r||PD(c,e.getBoundingClientRect())||o(),f=!1}try{r=new IntersectionObserver(g,{...m,root:s.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let p,d=-1,m=null;o&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let f=l?vD(e):null;return l&&function t(){const r=vD(e);f&&!PD(f,r)&&n(),f=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(e,this.containerDivRef.current,this.updatePosition))}updatePosition=async()=>{const{anchor:e,anchorOffset:t,decoration:n,maxHeight:r}=this.props,s=this.containerDivRef.current,i=this.contentDivRef.current;if(null==e||null===s||null===i)return;const o=this.tipDivRef.current,a=t??0,l=n===FD.Balloon?8:0,c=[(u=l+a,void 0===u&&(u=0),{name:"offset",options:u,async fn(e){var t,n;const{x:r,y:s,placement:i,middlewareData:o}=e,a=await async function(e,t){const{placement:n,platform:r,elements:s}=e,i=await(null==r.isRTL?void 0:r.isRTL(s.floating)),o=Nx(n),a=Ox(n),l="y"===Hx(n),c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,h=Fx(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof m&&(d="end"===a?-1*m:m),l?{x:d*u,y:p*c}:{x:p*c,y:d*u}}(e,u);return i===(null==(t=o.offset)?void 0:t.placement)&&null!=(n=o.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:i}}}}),jx({padding:10}),zx({padding:10}),Kx({apply({availableHeight:e,availableWidth:t}){const n=void 0===r?`${e}px`:`${Math.min(e,r)}px`;i.style.setProperty("--available-height",`${n}px`),i.style.setProperty("--available-width",`${t}px`)},padding:10})];var u;n===FD.Balloon&&o&&c.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Fx(e,t)||{};if(null==c)return{};const h=Wx(u),p={x:n,y:r},d=Ux(s),m=Bx(d),f=await o.getDimensions(c),g="y"===d,y=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[d]-p[d]-i.floating[m],v=p[d]-i.reference[d],S=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let E=S?S[b]:0;E&&await(null==o.isElement?void 0:o.isElement(S))||(E=a.floating[b]||i.floating[m]);const k=C/2-v/2,R=E/2-f[m]/2-1,A=Ax(h[y],R),T=Ax(h[w],R),x=A,D=E-f[m]-T,M=E/2-f[m]/2+k,P=_x(x,M,D),I=!l.arrow&&null!=Ox(s)&&M!==P&&i.reference[m]/2-(M<x?A:T)-f[m]/2<0,_=I?M<x?M-x:M-D:0;return{[d]:p[d]+_,data:{[d]:P,centerOffset:M-P-_,...I&&{alignmentOffset:_}},reset:I}}}))({element:o,padding:8}));const h=await((e,t,n)=>{const r=new Map,s={platform:MD,...n},i={...s.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:h}=qx(c,r,l),p=r,d={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:f}=a[n],{x:g,y,data:w,reset:b}=await f({x:u,y:h,initialPlacement:r,placement:p,strategy:s,middlewareData:d,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=g?g:u,h=null!=y?y:h,d={...d,[i]:{...d[i],...w}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:s}):b.rects),({x:u,y:h}=qx(c,p,l))),n=-1)}return{x:u,y:h,placement:p,strategy:s,middlewareData:d}})(e,t,{...s,platform:i})})(e,s,{strategy:"fixed",placement:this.getFloatingPlacementForAnchorPosition(),middleware:c});this.setState({position:h})};componentDidMount(){document.addEventListener("click",this.onDocumentClick),document.addEventListener("mousedown",this.onDocumentMouseDown),this.setupPosition()}componentDidUpdate(e){e.anchor!==this.props.anchor&&this.setupPosition()}componentWillUnmount(){document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("mousedown",this.onDocumentMouseDown)}onDocumentClick=e=>{const t=this.containerDivRef.current,{target:n}=e;!e.defaultPrevented&&null!==t&&null!==t.parentElement&&n instanceof Node&&!t.parentElement.contains(n)&&void 0!==this.props.onClickOutside&&this.props.onClickOutside(e)};onDocumentMouseDown=e=>{const t=this.containerDivRef.current,{target:n}=e;!e.defaultPrevented&&null!==t&&null!==t.parentElement&&n instanceof Node&&!t.parentElement.contains(n)&&void 0!==this.props.onMousedownOutside&&this.props.onMousedownOutside(e)};getAriaAttributes(){return!1===this.props.isDialog?{}:Pr()?{"aria-describedby":`${this.props.ariaLabelledby} ${this.props.ariaDescribedBy}`}:Ir()||_r()?{}:{"aria-labelledby":this.props.ariaLabelledby,"aria-describedby":this.props.ariaDescribedBy}}render(){const{trapFocus:e,className:t,appearEffect:n,children:r,decoration:s,maxHeight:i,minHeight:o,isDialog:a}=this.props,l=hs()(s===FD.Balloon&&"popover-component",t,n&&`appear-${n}`),{position:c}=this.state,u={position:"fixed",zIndex:17,height:"auto",...this.props.style},h={overflow:"hidden",width:"100%"};let p={};if(c){u.top=void 0===c.y?void 0:`${c.y}px`,u.left=void 0===c.x?void 0:`${c.x}px`,h.minHeight=void 0===o?void 0:`${o}px`,h.height=void 0===i?void 0:`${i}px`;const e=c.middlewareData.arrow;if(e){const t=c.placement.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[t],r={top:"270deg",right:"0deg",bottom:"90deg",left:"180deg"}[t];p={top:e.y,left:e.x,transform:`rotate(${r})`,[n]:this.tipDivRef.current?-this.tipDivRef.current.offsetWidth+"px":void 0}}}const d=ke.createElement("div",{className:l,style:u,ref:this.containerDivRef,...this.getAriaAttributes(),role:!1===a?void 0:"dialog"},ke.createElement("div",{className:"popover-content",style:h,ref:this.contentDivRef},r),s===FD.Balloon&&ke.createElement("div",{className:"popover-tip",style:{position:"absolute",width:16,height:16,...p},ref:this.tipDivRef},ke.createElement("div",{className:"popover-tip-border",style:{position:"absolute",right:1,width:0,height:0,borderWidth:"8px",borderRightWidth:"7px"}}),ke.createElement("div",{className:"popover-tip-background",style:{position:"absolute",right:0,width:0,height:0,borderWidth:"8px",borderRightWidth:"7px"}})));return!1!==e?ke.createElement(Rx(),{focusTrapOptions:this.focusTrapOptions},d):d}getFloatingPlacementForAnchorPosition(){const{anchorPosition:e}=this.props;switch(e){case ID.Top:return"top";case ID.TopLeft:return"top-start";case ID.TopRight:return"top-end";case ID.Left:return"left";case ID.LeftTop:return"left-start";case ID.LeftBottom:return"left-end";case ID.Right:return"right";case ID.RightTop:return"right-start";case ID.RightBottom:return"right-end";case ID.Bottom:return"bottom";case ID.BottomLeft:return"bottom-start";case ID.BottomRight:return"bottom-end";default:at(0,"Unknown anchor position")}}}class OD extends ke.Component{element=null;invisibleCaretRef=ke.createRef();autocompletionRequestID=0;constructor(e){super(e),this.state={autocompletionState:null,caretCoordinates:null}}componentWillMount(){const e=this.props.inputId??ds("autocompleting-text-input"),t=ds("autocomplete-container");this.setState({uniqueInternalElementId:e,autocompleteContainerId:t})}componentWillUnmount(){this.state.uniqueInternalElementId&&ms(this.state.uniqueInternalElementId),this.state.autocompleteContainerId&&ms(this.state.autocompleteContainerId)}componentDidUpdate(e){this.props.autocompleteItemFilter!==e.autocompleteItemFilter&&null!==this.state.autocompletionState&&this.open(this.element?.value??"")}get elementId(){return this.props.elementId??this.state.uniqueInternalElementId}getItemAriaLabel=e=>{const t=this.state.autocompletionState;if(!t)return;const n=t.items[e];return t.provider.getItemAriaLabel?.(n)};renderItem=e=>{const t=this.state.autocompletionState;if(!t)return null;const n=t.items[e],r=n===t.selectedItem?"selected":"";return ke.createElement("div",{className:`autocompletion-item ${r}`},t.provider.renderItem(n))};renderAutocompletions(){const e=this.state.autocompletionState;if(!e)return null;const t=e.items;if(!t.length)return null;const n=e.selectedItem?[t.indexOf(e.selectedItem)]:[],r=29*t.length,s=29*Math.min(t.length,3),i=e.rangeText,o=hs()("autocompletion-popup",e.provider.kind);return ke.createElement(ND,{anchor:this.invisibleCaretRef.current,anchorPosition:ID.BottomLeft,decoration:FD.None,maxHeight:Math.min(100,r),minHeight:s,trapFocus:!1,className:o,isDialog:!1},ke.createElement(bx,{accessibleListId:this.state.autocompleteContainerId,ref:this.onAutocompletionListRef,rowCount:t.length,rowHeight:29,rowId:this.getRowId,selectedRows:n,rowRenderer:this.renderItem,getRowAriaLabel:this.getItemAriaLabel,scrollToRow:n.at(0),onRowMouseDown:this.onRowMouseDown,onRowClick:this.insertCompletionOnClick,onSelectedRowChanged:this.onSelectedRowChanged,invalidationProps:i,shouldDisableTabFocus:!0}))}getRowId=e=>{const t=this.state.autocompletionState;return t?`autocomplete-item-row-${t.itemListRowIdPrefix}-${e}`:""};onAutocompletionListRef=e=>{const{autocompletionState:t}=this.state;if(e&&t&&t.selectedItem){const{items:e,selectedItem:n}=t;this.setState({autocompletionState:{...t,selectedRowId:this.getRowId(e.indexOf(n))}})}};onRowMouseDown=(e,t)=>{const n=this.state.autocompletionState;if(!n)return;const r=n.items[e];r&&this.insertCompletion(r,"mouseclick")};onSelectedRowChanged=(e,t)=>{const n=this.state.autocompletionState;if(!n)return;const r=n.items[e],s={...n,selectedItem:r,selectedRowId:null===r?void 0:this.getRowId(e)};this.setState({autocompletionState:s})};insertCompletionOnClick=e=>{const t=this.state.autocompletionState;if(!t)return;const n=t.items;if(!n.length)return;const r=n[e];this.insertCompletion(r,"mouseclick")};onContextMenu=e=>{this.props.onContextMenu?this.props.onContextMenu(e):(e.preventDefault(),Ch([{role:"editMenu"}]))};getActiveAutocompleteItemId(){const{autocompletionState:e}=this.state;if(null===e)return;if(e.selectedRowId)return e.selectedRowId;if(null===e.selectedItem)return;const t=e.items.indexOf(e.selectedItem);return this.getRowId(t)}renderTextInput(){const{autocompletionState:e}=this.state,t=null!==e&&e.items.length>0,n={type:"text",id:this.elementId,role:"combobox",placeholder:this.props.placeholder,value:this.props.value,ref:this.onRef,onChange:this.onChange,onScroll:this.onScroll,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onContextMenu:this.onContextMenu,readOnly:this.props.readOnly,required:!!this.props.required,spellCheck:this.props.spellcheck,autoComplete:"off","aria-expanded":t,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":this.state.autocompleteContainerId,"aria-owns":this.state.autocompleteContainerId,"aria-activedescendant":this.getActiveAutocompleteItemId()};return ke.createElement(this.getElementTagName(),n)}updateCaretCoordinates=()=>{const e=this.element;if(!e)return void this.setState({caretCoordinates:null});const t=e.selectionEnd;if(null===t)return void this.setState({caretCoordinates:null});const n=Ex()(e,t);this.setState({caretCoordinates:{top:n.top-e.scrollTop,left:n.left-e.scrollLeft,height:n.height}})};renderInvisibleCaret=()=>{const{caretCoordinates:e}=this.state;return e?ke.createElement("div",{style:{backgroundColor:"transparent",width:2,height:20,position:"absolute",left:e.left,top:e.top},ref:this.invisibleCaretRef}," "):null};onBlur=e=>{this.close()};onFocus=e=>{this.props.alwaysAutocomplete&&null!==this.element&&(this.open(this.element.value),this.props.onFocus?.(e))};onRef=e=>{this.element=e,this.updateCaretCoordinates(),this.props.onElementRef&&this.props.onElementRef(e)};focus(){this.element&&this.element.focus()}render(){const e=this.getElementTagName(),t=hs()("autocompletion-container","no-invalid-state",this.props.className,{"text-box-component":"input"===e,"text-area-component":"textarea"===e}),{label:n,screenReaderLabel:r}=this.props,s=this.state.autocompletionState?.items??[],i=1===s.length?"1 suggestion":`${s.length} suggestions`;return ke.createElement("div",{className:t},this.renderAutocompletions(),r&&void 0===n&&ke.createElement("label",{className:"sr-only",htmlFor:this.elementId},r),n&&ke.createElement("label",{htmlFor:this.elementId},n),this.renderTextInput(),this.renderInvisibleCaret(),ke.createElement(LC,{message:s.length>0?i:null,trackedUserInput:this.state.autocompletionState?.rangeText}))}setCursorPosition(e){null!=this.element?(this.element.selectionStart=e,this.element.selectionEnd=e):log.warn("Unable to set cursor position when element is null")}insertCompletion(e,t){const n=this.element,r=this.state.autocompletionState,s=n.value,i=r.range,o=r.provider.getCompletionText(e),a=s.substr(0,i.start-1)+o+" ",l=a+s.substring(i.start+i.length);n.value=l,this.props.onValueChanged&&this.props.onValueChanged(l);const c=a.length;"mouseclick"===t?window.setTimeout((()=>{n.focus(),this.setCursorPosition(c)}),0):this.setCursorPosition(c),this.props.onAutocompleteItemSelected?.(e),this.close(),this.props.alwaysAutocomplete&&this.open("")}getMovementDirection(e){switch(e.key){case"ArrowUp":return"up";case"ArrowDown":return"down"}return null}onKeyDown=e=>{if(this.props.onKeyDown&&this.props.onKeyDown(e),e.defaultPrevented)return;const t=this.state.autocompletionState;if(!t||!t.items.length)return;const n=t.selectedItem?t.items.indexOf(t.selectedItem):-1,r=this.getMovementDirection(e);if(r){e.preventDefault();const s=gx(t.items.length,{direction:r,row:n});if(null!==s){const e=t.items[s],n={...t,selectedItem:e,selectedRowId:null===e?void 0:this.getRowId(s)};this.setState({autocompletionState:n})}}else if("Enter"===e.key||"Tab"===e.key&&!e.shiftKey){const n=t.selectedItem;n&&(e.preventDefault(),this.insertCompletion(n,"keyboard"))}else"Escape"===e.key&&this.close()};close(){this.setState({autocompletionState:null})}async attemptAutocompletion(e,t){const n=e.toLowerCase();for(const e of this.props.autocompletionProviders){const r=new RegExp(e.getRegExp());r.global||ot(`The regex (${r}) returned from ${e} isn't global, but it should be!`);let s=null;for(;s=r.exec(n);){const n=r.lastIndex,i=s[1]||"";if(n===t||this.props.alwaysAutocomplete){const t={start:n-i.length,length:i.length};let r=await e.getAutocompletionItems(i);return this.props.autocompleteItemFilter&&(r=r.filter(this.props.autocompleteItemFilter)),{provider:e,items:r,range:t,selectedItem:null,selectedRowId:void 0,rangeText:i,itemListRowIdPrefix:this.buildAutocompleteListRowIdPrefix()}}}}return null}buildAutocompleteListRowIdPrefix(){return(new Date).getTime().toString()}onScroll=()=>{this.updateCaretCoordinates()};onChange=async e=>{const t=e.currentTarget.value;return this.props.onValueChanged&&this.props.onValueChanged(t),this.updateCaretCoordinates(),this.open(t)};async open(e){const t=this.element;if(null===t)return;const n=t.selectionStart;if(null===n)return;const r=++this.autocompletionRequestID,s=await this.attemptAutocompletion(e,n);r===this.autocompletionRequestID&&this.setState({autocompletionState:s})}}class LD extends OD{getElementTagName(){return"textarea"}}class BD extends OD{getElementTagName(){return"input"}}const HD=e=>e.replaceAll(":","");class UD{kind="emoji";allEmoji;constructor(e){this.allEmoji=e}getRegExp(){return/(?:^|\n| )(?::)([a-z\d\\+-][a-z\d_]*)?/g}async getAutocompletionItems(e,t=25){if(0===e.length)return[...this.allEmoji.entries()].map((([e,{emoji:t}])=>({title:e,emoji:t,matchStart:0,matchLength:0}))).slice(0,t);const n=new Array,r=e.toLowerCase();for(const[e,t]of this.allEmoji.entries()){const s=e.indexOf(r);-1!==s&&n.push({title:e,emoji:t.emoji,matchStart:s,matchLength:r.length})}return n.sort(((e,t)=>gr(e.matchStart,t.matchStart)||gr(e.title.length,t.title.length)||gr(e.title,t.title))).slice(0,t)}getItemAriaLabel(e){const t=this.allEmoji.get(e.title),n=HD(e.title),r=t?.emoji?t.emoji:t?.description??n;return r===n?r:`${r}, ${n}`}renderItem(e){const t=this.allEmoji.get(e.title);return ke.createElement("div",{className:"emoji",key:e.title},t?.emoji?ke.createElement("div",{className:"icon"},t?.emoji):ke.createElement("img",{className:"icon",src:t?.url,alt:t?.description??e.title}),this.renderHighlightedTitle(e))}renderHighlightedTitle(e){const t=HD(e.title);if(!e.matchLength)return ke.createElement("div",{className:"title"},t);const n=e.matchStart-1;return ke.createElement("div",{className:"title"},t.substring(0,n),ke.createElement("mark",null,t.substring(n,n+e.matchLength)),t.substring(n+e.matchLength))}getCompletionText(e){return e.emoji??e.title}}class ZD{delay;timeoutId=null;constructor(e){this.delay=e}queue(e){this.clear(),this.timeoutId=window.setTimeout(e,this.delay)}clear(){null!=this.timeoutId&&window.clearTimeout(this.timeoutId)}}class $D{kind="issue";issuesStore;repository;dispatcher;updateIssuesScheduler=new ZD(6e4);constructor(e,t,n){this.issuesStore=e,this.repository=t,this.dispatcher=n}getRegExp(){return/(?:^|\n| )(?:#)([a-z\d\\+-][a-z\d_]*)?/g}getAutocompletionItems(e){return this.updateIssuesScheduler.queue((()=>{this.dispatcher.refreshIssues(this.repository)})),this.issuesStore.getIssuesMatching(this.repository,e)}renderItem(e){return ke.createElement("div",{className:"issue",key:e.number},ke.createElement("span",{className:"number"},"#",e.number)," ",ke.createElement("span",{className:"title"},e.title))}getCompletionText(e){return`#${e.number}`}}function WD(e,t){return{kind:"known-user",username:t.login,name:t.name,email:t.email,endpoint:e.endpoint}}class VD{kind="user";gitHubUserStore;repository;account;constructor(e,t,n){this.gitHubUserStore=e,this.repository=t,this.account=n||null}getRegExp(){return/(?:^|\n| )(?:@)([a-z\d\\+-][a-z\d_-]*)?/g}async getUserAutocompletionItems(e,t){const n=await this.gitHubUserStore.getMentionableUsersMatching(this.repository,e),r=this.account,s=r?n.filter((e=>e.login!==r.login)):n,i=s.map((e=>WD(this.repository,e)));return t&&e.length>0&&(i.some((t=>t.username.toLowerCase()===e.toLowerCase()))||i.push({kind:"unknown-user",username:e})),i}async getAutocompletionItems(e){return this.getUserAutocompletionItems(e,!1)}renderItem(e){return"known-user"===e.kind?ke.createElement("div",{className:"user",key:e.username},ke.createElement("span",{className:"username"},e.username),ke.createElement("span",{className:"name"},e.name)):ke.createElement("div",{className:"user unknown",key:e.username},ke.createElement("span",{className:"username"},e.username),ke.createElement("span",{className:"description"},"Search for user"))}getCompletionText(e){return`@${e.username}`}async exactMatch(e){if(null===this.account)return null;const t=await this.gitHubUserStore.getByLogin(this.account,e);return t?WD(this.repository,t):null}}class qD extends VD{getRegExp(){return/(?:^|\n| )(?:@)?([a-z\d\\+-][a-z\d_-]*)?/g}async getAutocompletionItems(e){return super.getUserAutocompletionItems(e,!0)}}function GD(e,t,n,r,s,i){const o=[new UD(n)],a=Yr(e)?es(e):null;if(null!==a){o.push(new $D(r,a,t));const e=i.find((e=>e.endpoint===a.endpoint));o.push(new VD(s,a,e),new qD(s,a,e))}return o}class zD extends ke.Component{render(){return ke.createElement(Rs,{className:"spin",symbol:oh})}}function jD(e){return tb(e)?null===e.username?e.name:`@${e.username} (${e.name})`:`@${e.username}`}class KD extends Re().Component{containerRef=vs();getAriaLabel(){const{author:e}=this.props;if(tb(e))return`${jD(e)} press backspace or delete to remove`;const t="error"===e.state?"user not found":"searching";return`${e.username}, ${t}, press backspace or delete to remove`}getClassName(){const{author:e,isFocused:t}=this.props,n=["handle",{focused:t}];if(!tb(e)){const t="error"===e.state;n.push({progress:!t,error:t})}return hs()(n)}getTitle(){const{author:e}=this.props;if(!tb(e))return"error"===e.state?`Could not find user with username ${e.username}`:`Searching for @${e.username}`}getTabIndex(){const{isFocusWithinContainer:e,isFocused:t,isLastAuthor:n,isFirstAuthor:r,isInputFocused:s}=this.props;return e?t||n&&s?0:-1:r?0:-1}render(){const{author:e,isFocused:t}=this.props,n=this.getTitle();return Re().createElement("div",{className:this.getClassName(),role:"option","aria-label":this.getAriaLabel(),"aria-selected":t,onKeyDown:this.onKeyDown,onClick:this.onHandleClick,tabIndex:this.getTabIndex(),ref:this.containerRef,onFocus:this.onFocus},n&&Re().createElement(ys,{target:this.containerRef},this.getTitle()),Re().createElement("span",{"aria-hidden":"true"},function(e){return tb(e)&&null===e.username?e.name:`@${e.username}`}(e)),!tb(e)&&Re().createElement(Rs,{className:hs()("icon",{spin:"error"!==e.state}),symbol:"error"===e.state?Uc:oh}),Re().createElement("button",{onClick:this.onRemoveClick,tabIndex:-1},Re().createElement(Rs,{className:"delete",symbol:Ru})))}onKeyDown=e=>{this.props.onKeyDown(this.props.index,e)};onRemoveClick=e=>{e.preventDefault(),this.props.onRemoveClick(this.props.index,e)};onHandleClick=e=>{e.isDefaultPrevented()||this.props.onHandleClick(this.props.index,e)};onFocus=e=>{this.props.onFocus(this.props.index,e)}}function YD(e){return e.email&&e.email.length>0?e.email:zb(e.username,e.endpoint)}function XD(e){return{kind:"known",name:e.name||e.username,email:YD(e),username:e.username}}class QD extends ke.Component{autocompletingInputRef=ke.createRef();shadowInputRef=ke.createRef();inputRef=null;authorContainerRef=ke.createRef();getAutocompleteItemFilter=xr((e=>t=>{if("known-user"!==t.kind)return!0;const n=e.map((e=>e.username));return!n.some((e=>e===t.username))}));constructor(e){super(e),this.state={isFocusedWithin:!1,focusedAuthorIndex:null,lastActionDescription:null}}componentDidUpdate(e,t){!this.state.isFocusedWithin||e.authors.length===this.props.authors.length&&t.focusedAuthorIndex===this.state.focusedAuthorIndex||this.focusAuthorHandle(this.state.focusedAuthorIndex)}focus(){this.autocompletingInputRef.current?.focus()}focusAuthorHandle(e){if(null===e)return void this.inputRef?.focus();const t=this.authorContainerRef.current?.getElementsByClassName("handle")[e];t?.focus()}render(){const e=hs()("author-input-component",this.props.className,{disabled:this.props.readOnly});return ke.createElement(vp,{className:e,onFocusWithinChanged:this.onFocusWithinChanged},ke.createElement("div",{className:"sr-only","aria-live":"polite","aria-atomic":"true"},this.state.lastActionDescription),ke.createElement("div",{className:"shadow-input",ref:this.shadowInputRef}),ke.createElement("label",{id:"author-input-label",className:"label",htmlFor:"author-input"},"Co-Authors "),this.renderAuthors(),ke.createElement(BD,{elementId:"author-input",placeholder:"@username",alwaysAutocomplete:!0,autocompletionProviders:[this.props.autoCompleteProvider],autocompleteItemFilter:this.getAutocompleteItemFilter(this.props.authors),ref:this.autocompletingInputRef,onElementRef:this.onInputRef,onAutocompleteItemSelected:this.onAutocompleteItemSelected,onValueChanged:this.onCoAuthorsValueChanged,onKeyDown:this.onInputKeyDown,onFocus:this.onInputFocus,readOnly:this.props.readOnly}))}renderAuthors(){return ke.createElement("div",{className:"added-author-container",ref:this.authorContainerRef,"aria-labelledby":"author-input-label",role:"listbox"},this.props.authors.map(((e,t)=>this.renderAuthor(e,t))))}renderAuthor(e,t){const{focusedAuthorIndex:n,isFocusedWithin:r}=this.state;return ke.createElement(KD,{key:tb(e)?jD(e):e.username,index:t,author:e,isFocusWithinContainer:r,isFocused:n===t,isLastAuthor:t===this.props.authors.length-1,isFirstAuthor:0===t,isInputFocused:null===n,onKeyDown:this.onAuthorKeyDown,onHandleClick:this.onAuthorClick,onRemoveClick:this.onRemoveAuthorClick,onFocus:this.onAuthorFocus})}onFocusWithinChanged=e=>{const t=e?this.state.focusedAuthorIndex:null;this.setState({focusedAuthorIndex:t,isFocusedWithin:e})};onAuthorKeyDown=(e,t)=>{"ArrowLeft"===t.key?this.focusPreviousAuthor():"ArrowRight"===t.key?this.focusNextAuthor():null===this.state.focusedAuthorIndex||"Backspace"!==t.key&&"Delete"!==t.key||this.removeAuthor(this.state.focusedAuthorIndex,"Backspace"===t.key?"back":"forward")};removeAuthor(e,t){const{authors:n}=this.props;if(e>=n.length)return;const r=n[e],s=n.slice(0,e).concat(n.slice(e+1));let i=null;s.length>0&&(i="back"===t?Math.max(0,e-1):e===n.length-1?null:Math.min(s.length-1,e));let o=`Removed ${r.username}`;tb(r)&&(o+=` (${r.name})`),this.setState({focusedAuthorIndex:i,lastActionDescription:o}),this.emitAuthorsUpdated(s)}emitAuthorsUpdated(e){this.props.onAuthorsUpdated(e)}focusPreviousAuthor(){const{focusedAuthorIndex:e}=this.state,{authors:t}=this.props;null===e?this.setState({focusedAuthorIndex:t.length-1}):e>0&&this.setState({focusedAuthorIndex:e-1})}focusNextAuthor(){const{focusedAuthorIndex:e}=this.state,{authors:t}=this.props;null!==e&&e<t.length-1?this.setState({focusedAuthorIndex:e+1}):this.setState({focusedAuthorIndex:null})}onInputFocus=()=>{this.setState({focusedAuthorIndex:null})};onCoAuthorsValueChanged=e=>{if(null===this.shadowInputRef.current||null===this.inputRef||null===this.inputRef.parentElement||null===this.inputRef.parentElement.parentElement)return;this.shadowInputRef.current.textContent=e;const t=this.shadowInputRef.current.clientWidth;this.shadowInputRef.current.textContent=this.inputRef.placeholder;const n=this.shadowInputRef.current.clientWidth,r=this.inputRef.parentElement,s=this.inputRef.parentElement.parentElement;r.style.minWidth=`${Math.min(s.getBoundingClientRect().width-10,Math.max(t,n))}px`};onInputRef=e=>{null!==e&&(this.inputRef=e)};onAutocompleteItemSelected=e=>{const t="known-user"===e.kind?XD(e):{kind:"unknown",username:e.username,state:"searching"},n=[...this.props.authors,t];this.emitAuthorsUpdated(n);let r=`Added ${t.username}`;tb(t)?r+=` (${t.name})`:this.attemptUnknownAuthorSearch(t),this.setState({lastActionDescription:r}),null!==this.inputRef&&(this.inputRef.value="",this.onCoAuthorsValueChanged(""))};async attemptUnknownAuthorSearch(e){const t=this.props.authors.filter(tb).find((t=>t.username?.toLowerCase()===e.username.toLowerCase()));if(void 0!==t)return void this.updateUnknownAuthor(t);const n=await this.props.autoCompleteProvider.exactMatch(e.username);if(null===n||"known-user"!==n.kind){const t={...e,state:"error"};return this.updateUnknownAuthor(t),void this.setState({lastActionDescription:`Error: user ${e.username} not found`})}const r=XD(n);this.updateUnknownAuthor(r)}updateUnknownAuthor(e){const t=this.props.authors.map((t=>t.username?.toLowerCase()!==e.username?.toLowerCase()||tb(t)?t:e));this.emitAuthorsUpdated(t)}onInputKeyDown=e=>{if(null!==this.inputRef&&("ArrowLeft"!==e.key&&"Backspace"!==e.key||0!==this.inputRef.selectionStart||this.focusPreviousAuthor()," "===e.key&&this.inputRef.selectionStart===this.inputRef.value.length)){e.preventDefault();const t=this.inputRef.value.trim();0!==t.length&&this.onAutocompleteItemSelected({kind:"unknown-user",username:t})}};onAuthorClick=e=>{this.setState({focusedAuthorIndex:e})};onRemoveAuthorClick=e=>{this.removeAuthor(e,"forward")};onAuthorFocus=e=>{this.setState({focusedAuthorIndex:e})}}function JD(e,t){return()=>{const n=((performance.now()-e)/1e3).toFixed(3),r=`[Timing] ${t} took ${n}s`;log.info(r)}}function eM(e,t){const n=performance&&performance.now?performance.now():null;return null===n?(log.warn("[Timing] invoked but performance.now not found - are you using this outside the renderer?"),{done:()=>{}}):{done:JD(n,`Action '${e}' for '${Qr(t)}'`)}}var tM;!function(e){e[e.Warning=0]="Warning",e[e.Information=1]="Information",e[e.Error=2]="Error"}(tM||(tM={}));const nM=e=>ke.createElement("div",{className:"commit-warning-component",onContextMenu:rM},ke.createElement("div",{className:"warning-icon-container"},(e=>{let t="",n=xs;switch(e){case tM.Warning:t="warning-icon",n=xs;break;case tM.Information:t="information-icon",n=Da;break;case tM.Error:t="error-icon",n=Uc;break;default:at(0,`Unexpected icon value ${e}`)}return ke.createElement(Rs,{className:t,symbol:n})})(e.icon)),ke.createElement("div",{className:"warning-message"},e.children)),rM=e=>{e.preventDefault()};class sM extends ke.Component{anchorRef=vs();render(){const e=this.props.uri||"",t=void 0===this.props.uri?"button":void 0,n=hs()("link-button-component",this.props.className),{title:r}=this.props;return ke.createElement("a",{ref:this.anchorRef,className:n,href:e,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onFocus:this.props.onMouseOver,onBlur:this.props.onMouseOut,onClick:this.onClick,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel,role:t},r&&ke.createElement(ys,{target:this.anchorRef},r),this.props.children)}onClick=e=>{if(e.preventDefault(),this.props.disabled)return;const t=this.props.uri;t&&ut.openExternal(t);const n=this.props.onClick;n&&n()}}function iM(e,t){if(!t)return!1;const n=t.owner.endpoint,{name:r,email:s}=e.committer;return n===ar()&&"GitHub"===r&&"noreply@github.com"===s||n!==ar()&&"GitHub Enterprise"===r}function oM(e,t){return{email:e.email,name:e.name,endpoint:null===t?null:t.endpoint,avatarURL:void 0}}function aM(e,t){const n=[];n.push(oM(t.author,e)),n.push(...t.coAuthors.map((t=>oM(t,e))));const r=t.coAuthors.some((e=>e.name===t.committer.name&&e.email===t.committer.email)),s=null!==e&&iM(t,e);t.authoredByCommitter||s||r||n.push(oM(t.committer,e));const i=new Map(n.map((e=>[e.name+e.email,e])));return[...i.values()]}class lM extends ke.Component{componentWillMount(){const e=ds(`Select_${this.props.label||"unknown"}`);this.setState({inputId:e})}componentWillUnmount(){this.state.inputId&&ms(this.state.inputId)}renderLabel(){const e=this.props.label,t=this.state.inputId;return e?ke.createElement("label",{htmlFor:t},e):null}render(){return ke.createElement("div",{className:hs()("select-component",this.props.className)},this.renderLabel(),ke.createElement("select",{id:this.state.inputId,onChange:this.props.onChange,value:this.props.value,defaultValue:this.props.defaultValue,disabled:this.props.disabled},this.props.children))}}const cM=e=>"object"==typeof e&&null!==e&&"then"in e;class uM{keyFunc;valueFunc;expirationFunc;data=new Map;constructor(e,t,n=()=>1/0){this.keyFunc=e,this.valueFunc=t,this.expirationFunc=n}set(e,t,n){const r=n??this.expirationFunc(e,t);if(r<=0)return this.delete(e);const s=this.keyFunc(e),i={item:t,timeoutId:isFinite(r)?window.setTimeout((()=>{this.data.get(s)===i&&this.data.delete(s)}),r):void 0};this.delete(e),this.data.set(s,i)}delete(e){const t=this.keyFunc(e),n=this.data.get(t);n&&!cM(n)&&void 0!==n.timeoutId&&window.clearTimeout(n.timeoutId),this.data.delete(t)}tryGet(e){const t=this.data.get(this.keyFunc(e));return t&&!cM(t)?t.item:void 0}async get(e){const t=this.keyFunc(e),n=this.data.get(t);if(n)return cM(n)?n:n.item;const r=this.valueFunc(e).then((n=>(this.data.get(t)===r&&this.set(e,n),n))).catch((e=>(this.data.get(t)===r&&this.data.delete(t),Promise.reject(e))));return this.data.set(this.keyFunc(e),r),r}}const hM=new uM((({endpoint:e})=>e),(async({endpoint:e,accounts:t})=>{if(!Mn(e))throw new Error("Avatar tokens are only available for ghe.com");const n=t.find((t=>t.endpoint===e));if(!n)throw new Error("No account found for endpoint");const r=new rr(e,n.token);return lt("Avatar token missing",await r.getAvatarToken())}),(()=>_t(0,50,"minutes"))),pM=e=>{const{endpoint:t}=e;if(void 0!==e.avatarURL||null===t)return;const n=((e,t)=>{const n=Gb(t),r=Xb.exec(e);if(!r||n!==r[3])return null;const[,s,i]=r;return{id:s?parseInt(s,10):void 0,login:i}})(e.email,t);return n?.login?.endsWith("[bot]")?n.login:void 0},dM=new uM((({user:e})=>`${e.endpoint}:${e.email}`),(async({user:e,accounts:t})=>{const{endpoint:n}=e;if(void 0!==e.avatarURL||null===n)throw new Error("Avatar URL already resolved or endpoint is missing");const r=t.find((t=>t.endpoint===e.endpoint));if(!r)throw new Error("No account found for endpoint");const s=pM(e);if(!s)throw new Error("Email does not appear to be a bot email");const i=new rr(n,r.token),o=await i.fetchUser(s);if(!o?.avatar_url)throw new Error("No avatar url returned from API");return{...e,avatarURL:o.avatar_url}}),(({user:e})=>e.endpoint&&Mn(e.endpoint)?_t(0,50,"minutes"):1/0)),mM=(e,t,n)=>{const r=`https://avatars.githubusercontent.com/in/${n}?v=4`,s=ar(),i="users.noreply.github.com";return[{email:`${t}+${e}@${i}`,name:e,avatarURL:r,endpoint:s},{email:`${e}@${i}`,name:e,avatarURL:r,endpoint:s}]};[...mM("dependabot[bot]",49699333,29110),...mM("github-actions[bot]",41898282,15368),...mM("github-pages[bot]",52472962,34598)].forEach((e=>dM.set({user:e,accounts:[]},e,1/0)));const fM=new Map,gM=3e5,yM={w:16,h:16,p:["M13 13.145a.844.844 0 0 1-.832.855H3.834A.846.846 0 0 1 3 13.142v-.856c0-2.257 3.333-3.429 3.333-3.429s.191-.35 0-.857c-.7-.531-.786-1.363-.833-3.429C5.644 2.503 7.056 2 8 2s2.356.502 2.5 2.571C10.453 6.637 10.367 7.47 9.667 8c-.191.506 0 .857 0 .857S13 10.03 13 12.286v.859z"]};function wM(e,t,n=64){const r=new Array;if(void 0===e)return r;const{email:s,avatarURL:i}=e,o=e.endpoint??ar();if(!Pn(o)&&void 0!==i)try{const e=new URL(i);e.searchParams.set("s",`${n}`),r.push(e.toString())}catch(e){r.push(i)}if(Pn(o)&&!Nn(o))return[];if(Mn(o)&&!t)return[];const a=function(e){return Pn(e)?new URL("enterprise/avatars/u/e",e.endsWith("/")?e:`${e}/`):Mn(e)?new URL("/avatars/u/e",ir(e)):new URL("https://avatars.githubusercontent.com/u/e")}(o);return a.searchParams.set("email",s),a.searchParams.set("s",`${n}`),Mn(o)&&t&&a.searchParams.set("token",t),r.push(`${a}`),r}const bM=(e,t,n,r)=>{e&&!e.avatarURL&&(e=dM.tryGet({user:e,accounts:t})??e);const s=e?.endpoint;return r??=s&&Mn(s)?hM.tryGet({endpoint:s,accounts:t}):void 0,{user:e,candidates:wM(e,r,n),avatarToken:r}};class CM extends ke.Component{static getDerivedStateFromProps(e,t){return e.user?.email!==t.user?.email||e.user?.endpoint!==t.user?.endpoint||e.user?.name!==t.user?.name?bM(e.user,e.accounts,e.size):null}cancelAvatarRequests=!1;constructor(e){super(e);const{user:t,size:n,accounts:r}=e;this.state={...bM(t,r,n),imageError:!1}}getTitle(){const{title:e,accounts:t}=this.props,{user:n}=this.state;if(null!==e)return void 0!==e?e:n?.name?ke.createElement(ke.Fragment,null,ke.createElement(CM,{title:null,user:n,accounts:t}),ke.createElement("div",null,ke.createElement("div",null,ke.createElement("strong",null,n.name)),ke.createElement("div",null,n.email))):n?.email??"Unknown user"}onImageError=e=>{const{src:t}=e.currentTarget,n=this.state.candidates.filter((e=>e!==t));this.setState({candidates:n,imageError:0===n.length})};onImageLoad=e=>{this.state.imageError&&this.setState({imageError:!1})};render(){const e=this.getTitle();return!1===this.props.tooltip?ke.createElement("div",{className:"avatar-container"},this.renderAvatar()):ke.createElement(lh,{className:"avatar-container",tooltipClassName:this.props.title?void 0:"user-info",tooltip:e,direction:gs.NORTH,tagName:"div"},this.renderAvatar())}renderAvatar=()=>{const{imageError:e,user:t}=this.state,n=t?`Avatar for ${t.name||t.email}`:"Avatar for unknown user",r=Date.now(),s=this.state.candidates.find((e=>{const t=fM.get(e);return void 0===t||r-t>gM}));return ke.createElement(ke.Fragment,null,(!s||e)&&ke.createElement(Rs,{symbol:yM,className:"avatar"}),s&&ke.createElement("img",{className:"avatar",key:s,ref:this.onImageRef,src:s,alt:n,onLoad:this.onImageLoad,onError:this.onImageError,style:{display:e?"none":void 0}}))};onImageRef=e=>{e?.addEventListener("error",(()=>{fM.delete(e.src),fM.set(e.src,Date.now())}))};ensureAvatarToken(){const{accounts:e}=this.props,{user:t}=this.state,n=t?.endpoint;if(this.state.avatarToken||!t||!e)return;if(!n||!Mn(n))return;const r=hM.tryGet({endpoint:n,accounts:e});r?this.resetAvatarCandidates(r):this.setState({avatarToken:hM.get({endpoint:n,accounts:e}).then((e=>{this.cancelAvatarRequests||e&&this.state.user?.endpoint===n&&this.resetAvatarCandidates(e)})).catch((e=>log.debug(`Failed to fetch avatar token: ${e}`)))})}componentDidUpdate(e,t){this.ensureAvatarToken();const n=t.user,r=this.state.user;n?.endpoint===r?.endpoint&&n?.email===r?.email||this.resolveBotAvatar()}resetAvatarCandidates(e){const{user:t}=this.state,{size:n,accounts:r}=this.props;this.setState(bM(t,r,n,e))}componentDidMount(){window.addEventListener("online",this.onInternetConnected),function(){const e=new Array;for(const[t,n]of fM.entries()){if(!(Date.now()-n>gM))break;e.push(t)}e.forEach((e=>fM.delete(e)))}(),this.ensureAvatarToken(),this.resolveBotAvatar()}resolveBotAvatar(){const{accounts:e}=this.props,{user:t}=this.state;t?.endpoint&&!t.avatarURL&&pM(t)&&dM.get({user:t,accounts:e}).then((e=>{this.cancelAvatarRequests||t.endpoint!==e.endpoint||t.email!==e.email||t.name!==e.name||t.avatarURL===e.avatarURL||this.setState({user:e},(()=>this.resetAvatarCandidates()))})).catch(CT())}componentWillUnmount(){window.removeEventListener("online",this.onInternetConnected),this.cancelAvatarRequests=!0}onInternetConnected=()=>{fM.clear(),0===this.state.candidates.length&&this.resetAvatarCandidates()}}class vM extends ke.Component{render(){const e=hs()("dialog-content",this.props.className);return ke.createElement("div",{className:e,ref:this.props.onRef},this.props.children)}}class SM extends ke.Component{onCloseButtonClick=e=>{e.preventDefault(),this.props.onCloseButtonClick&&this.props.onCloseButtonClick()};renderCloseButton(){return!1===this.props.showCloseButton?null:ke.createElement("button",{className:"close",onClick:this.onCloseButtonClick,"aria-label":"Close"},ke.createElement(Rs,{symbol:Ru}))}render(){const e=this.props.loading?ke.createElement(Rs,{className:"icon spin",symbol:oh}):null;return ke.createElement("div",{className:"dialog-header"},ke.createElement("h1",{id:this.props.titleId},this.props.title),this.props.renderAccessory?.(),e,this.renderCloseButton(),this.props.children)}}function EM(e,t){return xr((n=>{n?e():t()}))}const kM="dialog-preferred-focus",RM=ke.createContext({isTopMost:!1});class AM extends ke.Component{static contextType=RM;checkIsTopMostDialog=EM((()=>{this.onDialogIsTopMost()}),(()=>{this.onDialogIsNotTopMost()}));dialogElement=null;dismissGraceTimeoutId;disableClickDismissalTimeoutId=null;disableClickDismissal=!1;resizeObserver;resizeDebounceId=null;constructor(e){super(e),this.state={isAppearing:!0,titleId:this.props.titleId},this.resizeObserver=new ResizeObserver(this.scheduleResizeEvent)}scheduleResizeEvent=()=>{null!==this.resizeDebounceId&&(cancelAnimationFrame(this.resizeDebounceId),this.resizeDebounceId=null),this.resizeDebounceId=requestAnimationFrame(this.onResized)};onResized=()=>{if(!this.dialogElement)return;const{offsetTop:e,offsetHeight:t}=this.dialogElement;if(t>window.innerHeight-28)return;const n=e+t+10-window.innerHeight;if(n>0){const t=Math.max(28,e-n);this.dialogElement.style.top=`${t}px`}};clearDismissGraceTimeout(){void 0!==this.dismissGraceTimeoutId&&(window.clearTimeout(this.dismissGraceTimeoutId),this.dismissGraceTimeoutId=void 0)}scheduleDismissGraceTimeout(){this.clearDismissGraceTimeout(),this.dismissGraceTimeoutId=window.setTimeout(this.onDismissGraceTimer,250)}onDismissGraceTimer=()=>{this.setState({isAppearing:!1}),this.dialogElement?.dispatchEvent(new CustomEvent("dialog-appeared",{bubbles:!0,cancelable:!1}))};isBackdropDismissable(){return!1!==this.props.backdropDismissable}isDismissable(){return!0!==this.props.dismissDisabled}updateTitleId(){if(!this.props.titleId&&(this.state.titleId&&(ms(this.state.titleId),this.setState({titleId:void 0})),this.props.title)){const e="string"==typeof this.props.title?this.props.title:"???";this.setState({titleId:ds(`Dialog_${this.props.id}_${e}`)})}}componentWillMount(){this.updateTitleId()}componentDidMount(){H(),this.checkIsTopMostDialog(this.context.isTopMost)}onDialogIsTopMost(){null!=this.dialogElement&&(this.dialogElement.open||this.dialogElement.showModal(),this.dialogElement.dispatchEvent(new CustomEvent("dialog-show",{bubbles:!0,cancelable:!1})),this.setState({isAppearing:!0}),this.scheduleDismissGraceTimeout(),this.focusFirstSuitableChild(),window.addEventListener("focus",this.onWindowFocus),this.resizeObserver.observe(this.dialogElement),window.addEventListener("resize",this.scheduleResizeEvent))}onDialogIsNotTopMost(){null!==this.dialogElement&&this.dialogElement.open&&this.dialogElement?.close(),this.clearDismissGraceTimeout(),window.removeEventListener("focus",this.onWindowFocus),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.scheduleResizeEvent)}focusFirstSuitableChild(){const e=this.dialogElement;if(null===e)return;const t=['input:not([type=hidden]):not(:disabled):not([tabindex="-1"])','textarea:not(:disabled):not([tabindex="-1"])','button:not(:disabled):not([tabindex="-1"])','[tabindex]:not(:disabled):not([tabindex="-1"])'].join(", ");let n=null,r=[1/0,null],s=null,i=null,o=null;const a=e.querySelector(":scope > div.dialog-header button.close");if(a instanceof HTMLElement&&this.props.focusCloseButtonOnOpen)return void a.focus();const l=`.${kM}`,c=`input${[":not([type=button])",":not([type=submit])",":not([type=reset])",":not([type=hidden])",":not([type=radio])"].join("")}, textarea`;for(const u of e.querySelectorAll(t)){if(!(u instanceof HTMLElement))continue;const e=parseInt(u.getAttribute("tabindex")||"",10);null===n&&u.matches(l)?n=u:e>0&&e<r[0]?r=[e,u]:null!==o||0!==e&&!u.matches(c)?null===s&&u.matches("input[type=submit], button[type=submit]")?s=u:null===i&&u.matches("input[type=button], input[type=submit] input[type=reset], button")&&u!==a&&(i=u):o=u}const u=[n,r[1],o,s,i,a];for(const e of u)if(e instanceof HTMLElement){e.focus();break}}onWindowFocus=()=>{this.clearClickDismissalTimer(),this.disableClickDismissal=!0,this.disableClickDismissalTimeoutId=window.setTimeout((()=>{this.disableClickDismissal=!1,this.disableClickDismissalTimeoutId=null}),500)};clearClickDismissalTimer(){this.disableClickDismissalTimeoutId&&(window.clearTimeout(this.disableClickDismissalTimeoutId),this.disableClickDismissalTimeoutId=null)}componentWillUnmount(){this.state.titleId&&ms(this.state.titleId),this.checkIsTopMostDialog(!1)}componentDidUpdate(e){!this.props.title&&this.state.titleId&&this.updateTitleId(),this.checkIsTopMostDialog(this.context.isTopMost)}onDialogCancel=e=>{e.preventDefault(),this.onDismiss()};onDialogMouseDown=e=>{if(!e.defaultPrevented&&this.isDismissable()&&this.isBackdropDismissable()&&e.target===this.dialogElement)return this.disableClickDismissal?(this.disableClickDismissal=!1,void this.clearClickDismissalTimer()):void(this.mouseEventIsInsideDialog(e)||document.addEventListener("mouseup",this.onDocumentMouseUp,{once:!0}))};mouseEventIsInsideDialog(e){if(null===this.dialogElement)return!1;if(e.clientY<=28)return!1;const t=this.dialogElement.getBoundingClientRect();return t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width}onDocumentMouseUp=e=>{e.defaultPrevented||this.mouseEventIsInsideDialog(e)||(e.preventDefault(),this.onDismiss())};onDialogRef=e=>{e?e.addEventListener("cancel",this.onDialogCancel):this.dialogElement&&this.dialogElement.removeEventListener("cancel",this.onDialogCancel),this.dialogElement=e,this.props.onDialogRef?.(e)};onKeyDown=e=>{if(!e.defaultPrevented&&((e.ctrlKey&&"w"===e.key||"Escape"===e.key)&&this.onDialogCancel(e),"Tab"===e.key&&"alertdialog"===this.props.role)){const t=this.dialogElement?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(t&&t.length>0){const n=!e.shiftKey,r=n?t[t.length-1]:t[0];document.activeElement===r&&(e.preventDefault(),(n?t[0]:t[t.length-1]).focus())}}};onDismiss=()=>{this.isDismissable()&&!this.state.isAppearing&&this.props.onDismissed&&this.props.onDismissed()};onSubmit=e=>{e.preventDefault(),this.props.onSubmit?this.props.onSubmit():this.onDismiss()};renderHeader(){return this.props.title?ke.createElement(SM,{title:this.props.title,titleId:this.state.titleId,showCloseButton:this.isDismissable(),onCloseButtonClick:this.onDismiss,renderAccessory:this.props.renderHeaderAccessory,loading:this.props.loading}):null}getAriaAttributes(){return Pr()?"alertdialog"===this.props.role?{"aria-labelledby":`${this.state.titleId} ${this.props.ariaDescribedBy}`}:{"aria-describedby":`${this.state.titleId} ${this.props.ariaDescribedBy??""}`}:Fr()&&"alertdialog"!==this.props.role?{"aria-describedby":this.props.ariaDescribedBy}:{"aria-labelledby":this.state.titleId,"aria-describedby":this.props.ariaDescribedBy}}render(){const e=hs()({error:"error"===this.props.type,warning:"warning"===this.props.type},this.props.className,"tooltip-host");return ke.createElement("dialog",{ref:this.onDialogRef,id:this.props.id,role:this.props.role,onMouseDown:this.onDialogMouseDown,onKeyDown:this.onKeyDown,className:e,...this.getAriaAttributes(),tabIndex:-1},this.renderHeader(),ke.createElement("form",{onSubmit:this.onSubmit,onReset:this.onDismiss},ke.createElement("fieldset",{disabled:this.props.disabled},this.props.children)))}}class TM extends ke.Component{render(){return ke.createElement("div",{className:"dialog-banner dialog-error",role:"alert"},ke.createElement(Rs,{symbol:Uc}),ke.createElement("div",null,this.props.children))}}class xM extends ke.Component{render(){return ke.createElement("div",{className:"dialog-footer"},this.props.children)}}class DM extends ke.Component{onOkButtonClick=e=>{void 0!==this.props.onOkButtonClick&&this.props.onOkButtonClick(e),e.defaultPrevented||!0===this.props.destructive&&(e.preventDefault(),e.currentTarget.form&&e.currentTarget.form.dispatchEvent(new Event("submit")))};onCancelButtonClick=e=>{void 0!==this.props.onCancelButtonClick&&this.props.onCancelButtonClick(e),e.defaultPrevented||!0===this.props.destructive&&(e.preventDefault(),e.currentTarget.form&&e.currentTarget.form.dispatchEvent(new Event("reset")))};renderOkButton(){return ke.createElement(Ss,{onClick:this.onOkButtonClick,disabled:this.props.okButtonDisabled,tooltip:this.props.okButtonTitle,type:!0===this.props.destructive?"button":"submit",ariaDescribedBy:this.props.okButtonAriaDescribedBy},this.props.okButtonText||"Ok")}renderCancelButton(){return!1===this.props.cancelButtonVisible?null:ke.createElement(Ss,{onClick:this.onCancelButtonClick,disabled:this.props.cancelButtonDisabled,tooltip:this.props.cancelButtonTitle,type:!0===this.props.destructive?"submit":"reset"},this.props.cancelButtonText||"取消")}renderButtons(){return ke.createElement(ke.Fragment,null,this.renderOkButton(),this.renderCancelButton())}render(){const e=hs()("button-group",this.props.className,{destructive:!0===this.props.destructive});return ke.createElement("div",{className:e},this.renderButtons(),this.props.children)}}class MM extends ke.Component{render(){return ke.createElement(xM,null,ke.createElement(DM,{okButtonText:this.props.buttonText||"关闭",okButtonTitle:this.props.buttonTitle,onOkButtonClick:this.props.onButtonClick,okButtonDisabled:this.props.disabled,cancelButtonVisible:!1}))}}class PM extends ke.Component{render(){const{repository:e,branch:t,children:n}=this.props;if(!e||!t)return n;const r=`${e.htmlURL}/rules/?ref=${encodeURIComponent("refs/heads/"+t)}`;return ke.createElement(sM,{uri:r,className:"repo-rulesets-for-branch-link"},n)}}class IM extends ke.Component{render(){const{repository:e,rulesetId:t,children:n}=this.props,r=`${e.htmlURL}/rules/${t}`;return ke.createElement(sM,{uri:r,className:"repo-ruleset-link"},n)}}class _M extends ke.Component{render(){const{repository:e,branch:t,failures:n,leadingText:r}=this.props,s=n.failed.length+n.bypassed.length;let i;return i="bypass"===n.status?`, but you can bypass ${1===s?"it":"them"}. Proceed with caution!`:".",ke.createElement("div",{className:"repo-rules-failure-list-component"},ke.createElement("p",null,r," fails ",s," rule",s>1?"s":"",i," ",ke.createElement(PM,{repository:e,branch:t},"View all rulesets for this branch.")),this.renderRuleFailureList(n.failed,"Failed"),this.renderRuleFailureList(n.bypassed,"Bypassed"))}renderRuleFailureList(e,t){if(0===e.length)return null;const n=`repo-rule-list-label-${t.toLowerCase()}`;return ke.createElement("div",{className:"repo-rule-list"},ke.createElement("label",{id:n},t," ","rules",":"),ke.createElement("ul",{"aria-labelledby":n},e.map((e=>ke.createElement("li",{key:`${e.description}-${e.rulesetId}`},ke.createElement(IM,{repository:this.props.repository,rulesetId:e.rulesetId},e.description))))))}}class FM extends Re().Component{avatarButtonRef=null;warningBadgeRef=Re().createRef();constructor(e){super(e),this.state={isPopoverOpen:!1,accountEmail:this.props.preferredAccountEmail,isGitConfigLocal:!1},this.determineGitConfigLocation()}componentDidUpdate(e){this.props.user?.name===e.user?.name&&this.props.user?.email===e.user?.email||this.determineGitConfigLocation()}async determineGitConfigLocation(){const e=await this.isGitConfigLocal();this.setState({isGitConfigLocal:e})}isGitConfigLocal=async()=>{const{repository:e}=this.props,t=await em(e,"user.name",!0),n=await em(e,"user.email",!0);return null!==t||null!==n};onButtonRef=e=>{this.avatarButtonRef=e};render(){const{warningType:e,user:t}=this.props;let n="";switch(e){case"none":n="View commit author information";break;case"misattribution":n="Commit may be misattributed. View warning.";break;case"disallowedEmail":n="Email address is disallowed. View warning."}const r=hs()("commit-message-avatar-component",{misattributed:"none"!==e});return Re().createElement("div",{className:r},Re().createElement(Ss,{className:"avatar-button",ariaLabel:n,onButtonRef:this.onButtonRef,onClick:this.onAvatarClick},"none"!==e&&this.renderWarningBadge(),Re().createElement(CM,{accounts:this.props.accounts,user:t,title:null})),this.state.isPopoverOpen&&this.renderPopover())}renderWarningBadge(){const{warningType:e,emailRuleFailures:t}=this.props,n="disallowedEmail"===e&&"fail"===t?.status,r=hs()("warning-badge",{error:n,warning:!n}),s=n?Uc:xs;return Re().createElement("div",{className:r,ref:this.warningBadgeRef},Re().createElement(Rs,{symbol:s}))}openPopover=()=>{this.setState((e=>!1===e.isPopoverOpen?{isPopoverOpen:!0}:null))};closePopover=()=>{this.setState((e=>e.isPopoverOpen?{isPopoverOpen:!1}:null))};onAvatarClick=e=>{e.preventDefault(),this.state.isPopoverOpen?this.closePopover():this.openPopover()};renderGitConfigPopover(){const{user:e}=this.props,{isGitConfigLocal:t}=this.state,n=t?"local":"global",r=t?"for your repository":"",s=t?"存储库设置":"git options";return Re().createElement(Re().Fragment,null,Re().createElement("p",null,e&&e.name&&`Email: ${e.email}`),Re().createElement("p",null,"You can update your ",n," git configuration ",r," in your ",s,"."),!t&&Re().createElement("p",{className:"secondary-text"},"You can also set an email local to this repository from the"," ",Re().createElement(sM,{onClick:this.onRepositorySettingsClick},"存储库设置"),"."),Re().createElement(rx,{className:"button-row"},Re().createElement(DM,{okButtonText:"Open git settings",onOkButtonClick:this.onOpenGitSettings,onCancelButtonClick:this.onIgnoreClick})))}renderWarningPopover(){const{warningType:e,emailRuleFailures:t}=this.props,n=Re().createElement(Re().Fragment,null,"Git 全局配置文件中的邮箱 (",Re().createElement("span",{className:"git-email"},this.props.email),")"),r=this.props.accountEmails.length>0,s=Re().createElement(Re().Fragment,null,r&&Re().createElement(rx,null,Re().createElement(lM,{label:"Your Account Emails",value:this.state.accountEmail,onChange:this.onSelectedGitHubEmailChange},this.props.accountEmails.map((e=>Re().createElement("option",{key:e,value:e},e))))),Re().createElement(rx,null,Re().createElement("div",{className:"secondary-text"},"You can",r?" also":""," choose an email local to this repository from the"," ",Re().createElement(sM,{onClick:this.onRepositorySettingsClick},"存储库设置"),".")),Re().createElement(rx,{className:"button-row"},Re().createElement(Ss,{onClick:this.onIgnoreClick,type:"button"},"忽略"),r&&Re().createElement(Ss,{onClick:this.onUpdateEmailClick,type:"submit"},"更新邮箱")));if("misattribution"===e){const e=this.props.isEnterpriseAccount?" Enterprise":"",t=this.props.user&&this.props.user.name?` for ${this.props.user.name}`:"";return Re().createElement(Re().Fragment,null,Re().createElement(rx,null,Re().createElement("div",null,n," 与你的 GitHub 邮箱地址不匹配",e," ","account",t,"."," ",Re().createElement(sM,{ariaLabel:"Learn more about commit attribution",uri:"https://docs.github.com/en/github/committing-changes-to-your-project/why-are-my-commits-linked-to-the-wrong-user"},"了解更多"))),s)}if("disallowedEmail"===e&&t&&this.props.branch&&this.props.repository.gitHubRepository)return Re().createElement(Re().Fragment,null,Re().createElement(_M,{repository:this.props.repository.gitHubRepository,branch:this.props.branch,failures:t,leadingText:n}),s)}getCommittingAsTitle(){const{user:e}=this.props;if(void 0===e)return"Unknown user";const{name:t,email:n}=e;return t?Re().createElement(Re().Fragment,null,"提交者为 ",Re().createElement("strong",null,t)):Re().createElement(Re().Fragment,null,"Committing with ",n)}renderPopover(){const{warningType:e}=this.props;let t="";switch(this.props.warningType){case"misattribution":t="此次提交有误";break;case"disallowedEmail":t="This email address is disallowed";break;default:t=this.getCommittingAsTitle()}return Re().createElement(ND,{anchor:"none"!==e?this.warningBadgeRef.current:this.avatarButtonRef,anchorPosition:ID.RightBottom,decoration:FD.Balloon,onClickOutside:this.closePopover,ariaLabelledby:"commit-avatar-popover-header"},Re().createElement("h3",{id:"commit-avatar-popover-header"},t),"none"!==e?this.renderWarningPopover():this.renderGitConfigPopover())}onRepositorySettingsClick=()=>{this.closePopover(),this.props.onOpenRepositorySettings()};onOpenGitSettings=()=>{this.closePopover(),this.state.isGitConfigLocal?this.props.onOpenRepositorySettings():this.props.onOpenGitSettings()};onIgnoreClick=e=>{e.preventDefault(),this.closePopover()};onUpdateEmailClick=async e=>{e.preventDefault(),this.closePopover(),this.props.email!==this.state.accountEmail&&this.props.onUpdateEmail(this.state.accountEmail)};onSelectedGitHubEmailChange=e=>{const t=e.currentTarget.value;t&&this.setState({accountEmail:t})}}var NM;!function(e){e[e.Tabs=0]="Tabs",e[e.Switch=1]="Switch",e[e.Vertical=2]="Vertical"}(NM||(NM={}));class OM extends ke.Component{onClick=e=>{this.props.onClick(this.props.index)};onKeyDown=e=>{const{type:t,index:n}=this.props,r=t===NM.Vertical?"ArrowUp":"ArrowLeft",s=t===NM.Vertical?"ArrowDown":"ArrowRight";e.key===r?(this.props.onSelectAdjacent("previous",n),e.preventDefault()):e.key===s&&(this.props.onSelectAdjacent("next",n),e.preventDefault())};onButtonRef=e=>{this.props.onButtonRef(this.props.index,e)};onMouseEnter=()=>{this.props.onMouseEnter(this.props.index)};render(){const e=this.props.selected,t=hs()("tab-bar-item",{selected:e});return ke.createElement("button",{ref:this.onButtonRef,className:t,onClick:this.onClick,role:"tab","aria-selected":e,tabIndex:e?void 0:-1,onKeyDown:this.onKeyDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.props.onMouseLeave,type:"button"},this.props.children)}}class LM extends ke.Component{tabRefsByIndex=new Map;mouseOverTimeoutId=null;render(){const{type:e}=this.props;return ke.createElement("div",{className:"tab-bar "+(e===NM.Switch?"switch":e===NM.Vertical?"vertical":"tabs"),role:"tablist"},this.renderItems())}onSelectAdjacentTab=(e,t)=>{const n=ke.Children.toArray(this.props.children);if(0===n.length)return;const r=(t+("next"===e?1:-1)+n.length)%n.length,s=this.tabRefsByIndex.get(r);s&&s.focus(),this.props.onTabClicked(r)};onTabClicked=e=>{this.props.onTabClicked(e)};onTabRef=(e,t)=>{t?this.tabRefsByIndex.set(e,t):this.tabRefsByIndex.delete(e)};onMouseEnter=e=>{e!==this.props.selectedIndex&&Ip.isDragInProgress&&void 0!==this.props.allowDragOverSwitching&&this.props.allowDragOverSwitching&&(this.mouseOverTimeoutId=window.setTimeout((()=>{this.onTabClicked(e)}),500))};onMouseLeave=()=>{null!==this.mouseOverTimeoutId&&window.clearTimeout(this.mouseOverTimeoutId)};renderItems(){const{type:e,selectedIndex:t}=this.props,n=ke.Children.toArray(this.props.children);return n.map(((r,s)=>{const i=s===t;return ke.createElement(ke.Fragment,{key:s},ke.createElement(OM,{selected:i,index:s,onClick:this.onTabClicked,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onSelectAdjacent:this.onSelectAdjacentTab,onButtonRef:this.onTabRef,type:e},r),e===NM.Switch&&s<n.length-1&&ke.createElement("div",{className:"tab-bar-separator"}))}))}}class BM extends ke.Component{render(){const e=this.props.remote;return ke.createElement(vM,null,ke.createElement(nx,{placeholder:"远程 URL",label:`远程存储库 (${e.name}) URL`,value:e.url,onValueChanged:this.props.onRemoteUrlChanged}))}}class HM extends ke.Component{onChange=e=>{this.props.onChange&&this.props.onChange(e),this.props.onValueChanged&&!e.defaultPrevented&&this.props.onValueChanged(e.currentTarget.value)};onContextMenu=e=>{e.preventDefault(),Ch([{role:"editMenu"}])};render(){const e=hs()("text-area-component",this.props.labelClassName);return ke.createElement("label",{className:e},this.props.label,ke.createElement("textarea",{autoFocus:this.props.autoFocus,className:this.props.textareaClassName,disabled:this.props.disabled,rows:this.props.rows||3,placeholder:this.props.placeholder,value:this.props.value,onChange:this.onChange,onKeyDown:this.props.onKeyDown,ref:this.props.onTextAreaRef,onContextMenu:this.onContextMenu,"aria-label":this.props.ariaLabel,"aria-describedby":this.props.ariaDescribedBy}))}}class UM extends ke.Component{render(){return ke.createElement("em",{className:"ref-component"},this.props.children)}}class ZM extends ke.Component{render(){return ke.createElement(vM,null,ke.createElement("p",{id:"ignored-files-description"},"编辑 ",ke.createElement(UM,null,".gitignore"),". 文件该文件指定Git应该忽略的故意未跟踪的文件Git已经跟踪的文件不受影响."," ",ke.createElement(sM,{onClick:this.props.onShowExamples},"了解有关gitignore文件的更多信息")),ke.createElement(HM,{ariaLabel:"忽略文件",ariaDescribedBy:"ignored-files-description",placeholder:"忽略文件",value:this.props.text||"",onValueChanged:this.props.onIgnoreTextChanged,textareaClassName:"gitignore"}))}}class $M extends ke.Component{render(){const e=hs()("action-button","button-component-primary",this.props.buttonClassName);return ke.createElement(rx,{className:"call-to-action"},this.props.children,ke.createElement(Ss,{className:e,onClick:this.onClick},this.props.actionTitle))}onClick=e=>{e.preventDefault(),this.props.onAction()}}class WM extends ke.Component{render(){return ke.createElement(vM,null,ke.createElement($M,{actionTitle:"发布",onAction:this.props.onPublish},ke.createElement("div",{className:"no-remote-publish-message"},"将存储库发布到Github。需要帮助"," ",ke.createElement(sM,{uri:"https://help.github.com/articles/about-remote-repositories/"},"Learn more 关于远程存储库。"))))}}function VM(e){const t=e.forkContributionTarget===qr.Self?e.repository.gitHubRepository:e.repository.gitHubRepository.parent;return ke.createElement("ul",{className:"fork-settings-description"},ke.createElement("li",null,"针对的拉取请求目标 ",ke.createElement("strong",null,t.fullName)," ","将显示在拉取请求列表中."),ke.createElement("li",null,"Issues will be created in ",ke.createElement("strong",null,t.fullName),"."),ke.createElement("li",null,'"在Github上查看" will open ',ke.createElement("strong",null,t.fullName)," ","in the browser."),ke.createElement("li",null,"New branches will be based on"," ",ke.createElement("strong",null,t.fullName),"'s default branch."),ke.createElement("li",null,"Autocompletion of user and issues will be based on"," ",ke.createElement("strong",null,t.fullName),"."))}class qM extends ke.Component{constructor(e){super(e),this.state={inputId:ds(`RadioButton_${this.props.value}`)}}componentWillUnmount(){ms(this.state.inputId)}render(){return ke.createElement("div",{className:"radio-button-component"},ke.createElement("label",{htmlFor:this.state.inputId,onDoubleClick:this.onDoubleClick},ke.createElement("input",{type:"radio",id:this.state.inputId,value:this.props.value,checked:this.props.checked,onChange:this.onSelected,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus}),ke.createElement("span",null,this.props.label??this.props.children)))}onSelected=e=>{this.props.onSelected(this.props.value,e)};onDoubleClick=e=>{this.props.onDoubleClick?.(this.props.value,e)}}class GM extends ke.Component{onSelectionChanged=e=>{this.props.onSelectionChanged(e)};onRadioButtonDoubleClick=(e,t)=>{this.props.onRadioButtonDoubleClick?.(e,t)};renderRadioButtons(){const{radioButtonKeys:e,selectedKey:t}=this.props;return e.map((e=>{const n=t===e;return ke.createElement(qM,{key:e,checked:n,value:e,onSelected:this.onSelectionChanged,tabIndex:n?0:-1,onDoubleClick:this.onRadioButtonDoubleClick},this.props.renderRadioButtonLabelContents(e))}))}render(){return ke.createElement("div",{role:"radiogroup","aria-labelledby":this.props.ariaLabelledBy,className:this.props.className},this.renderRadioButtons())}}class zM extends ke.Component{renderForkOptionsLabel=e=>{switch(e){case qr.Parent:return"To contribute to the parent repository";case qr.Self:return"For my own purposes";default:return at(0,`Unknown fork contribution target: ${e}`)}};render(){const e=[qr.Parent,qr.Self],t=e.find((e=>e===this.props.forkContributionTarget))??qr.Parent;return ke.createElement(vM,null,ke.createElement("h2",{id:"fork-usage-heading"},"使用这个 fork…"),ke.createElement(GM,{ariaLabelledBy:"fork-usage-heading",selectedKey:t,radioButtonKeys:e,onSelectionChanged:this.onForkContributionTargetChanged,renderRadioButtonLabelContents:this.renderForkOptionsLabel}),ke.createElement(VM,{repository:this.props.repository,forkContributionTarget:this.props.forkContributionTarget}))}onForkContributionTargetChanged=e=>{this.props.onForkContributionTargetChanged(e)}}class jM extends ke.Component{buildMessage(e){const t=e?ke.createElement("span",{className:"green-circle"},ke.createElement(Rs,{className:"check-icon",symbol:ii})):ke.createElement("span",{className:"warning-icon"},"⚠️"),n=e?null:ke.createElement(sM,{ariaLabel:"Learn more about commit attribution",uri:"https://docs.github.com/en/github/committing-changes-to-your-project/why-are-my-commits-linked-to-the-wrong-user"},"学习更多");return ke.createElement(ke.Fragment,null,t,this.buildScreenReaderMessage(e),n)}buildScreenReaderMessage(e){const t=e?"":"Your commits will be wrongly attributed. ";return`This email address ${e?"matches":"does not match"} ${this.getAccountTypeDescription()}. ${t}`}render(){const{accounts:e,email:t}=this.props;if(0===e.length||0===t.trim().length)return null;const n=e.some((e=>Yb(e,t)));return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"git-email-not-found-warning"},this.buildMessage(n)),ke.createElement(LC,{id:"git-email-not-found-warning-for-screen-readers",trackedUserInput:this.props.email,message:this.buildScreenReaderMessage(n)}))}getAccountTypeDescription(){return 1===this.props.accounts.length?`your ${wn(this.props.accounts[0])?"GitHub":"GitHub Enterprise"} account`:"either of your GitHub.com nor GitHub Enterprise accounts"}}const KM="Other";class YM extends ke.Component{emailInputRef=ke.createRef();getAccountEmailsFromAccounts=xr((e=>{const t=new Set,n=new Array;for(const r of e){const e=r.emails.filter((e=>e.verified)).map((e=>e.email)),s=wn(r)?[...e,jb(r)]:e;for(const e of s){const s=e.toLowerCase();t.has(s)||(t.add(s),n.push({email:e,normalizedEmail:s,account:r}))}}return n}));constructor(e){super(e),this.state={emailIsOther:!this.isValidEmail(e.email)&&!e.isLoadingGitConfig}}isValidEmail=e=>{const t=e.toLowerCase();return this.accountEmails.some((e=>e.normalizedEmail===t))};componentDidUpdate(e,t){const n=null!==this.emailInputRef.current&&this.emailInputRef.current.isFocused;if(e.email===this.props.email||n||this.setState({emailIsOther:!this.isValidEmail(this.props.email)&&!this.props.isLoadingGitConfig}),this.state.emailIsOther!==t.emailIsOther&&!0===this.state.emailIsOther&&null!==this.emailInputRef.current){const e=this.emailInputRef.current;e.focus(),e.selectAll()}}render(){return ke.createElement("div",null,ke.createElement(rx,null,ke.createElement(nx,{label: "名称",value:this.props.name,disabled:this.props.disabled,onValueChanged:this.props.onNameChanged})),this.renderEmailDropdown(),this.renderEmailTextBox(),this.state.emailIsOther?ke.createElement(jM,{accounts:this.props.accounts,email:this.props.email}):null)}renderEmailDropdown(){if(0===this.accountEmails.length)return null;const e=this.props.accounts.some(wn)&&this.props.accounts.some(bn);return ke.createElement(rx,null,ke.createElement(lM,{label:"邮箱",value:this.state.emailIsOther?KM:this.props.email,disabled:this.props.disabled,onChange:this.onEmailSelectChange},this.accountEmails.map((t=>{return ke.createElement("option",{key:t.email,value:t.email},t.email," ",e&&(n=t.account,wn(n)?"(GitHub.com)":"(GitHub Enterprise)"));var n})),ke.createElement("option",{key:KM,value:KM},KM)))}renderEmailTextBox(){if(!1===this.state.emailIsOther&&this.accountEmails.length>0)return null;const e=this.state.emailIsOther?void 0:"Email",t=e?void 0:"Email";return ke.createElement(rx,null,ke.createElement(nx,{ref:this.emailInputRef,label:e,type:"email",value:this.props.email,disabled:this.props.disabled,onValueChanged:this.props.onEmailChanged,ariaLabel:t,ariaDescribedBy:"git-email-not-found-warning-for-screen-readers",ariaControls:"git-email-not-found-warning-for-screen-readers"}))}get accountEmails(){return this.getAccountEmailsFromAccounts(this.props.accounts)}onEmailSelectChange=e=>{const t=e.currentTarget.value;this.setState({emailIsOther:t===KM}),t!==KM&&this.props.onEmailChanged?.(t)}}var XM;!function(e){e.Global="Global",e.Local="Local"}(XM||(XM={}));class QM extends ke.Component{getAccounts=xr((e=>e?[e]:[]));onGitConfigLocationChanged=e=>{this.props.onGitConfigLocationChanged(e)};renderConfigOptionLabel=e=>{switch(e){case XM.Global:return"使用全局Git配置";case XM.Local:return"使用本地Git配置";default:return at(0,`Unknown git config location: ${e}`)}};render(){const e=[XM.Global,XM.Local],t=e.find((e=>e===this.props.gitConfigLocation))??XM.Global;return ke.createElement(vM,null,ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",{id:"git-config-heading"},"对于此仓库,我想"),ke.createElement(rx,null,ke.createElement(GM,{ariaLabelledBy:"git-config-heading",selectedKey:t,radioButtonKeys:e,onSelectionChanged:this.onGitConfigLocationChanged,renderRadioButtonLabelContents:this.renderConfigOptionLabel})),ke.createElement(YM,{email:this.props.gitConfigLocation===XM.Global?this.props.globalEmail:this.props.email,name:this.props.gitConfigLocation===XM.Global?this.props.globalName:this.props.name,accounts:this.getAccounts(this.props.account),disabled:this.props.gitConfigLocation===XM.Global,onEmailChanged:this.props.onEmailChanged,onNameChanged:this.props.onNameChanged,isLoadingGitConfig:this.props.isLoadingGitConfig})))}}const JM=/^[\x00-\x20.,:;<>"\\']+$/;function eP(e){return!JM.test(e)}const tP="Name is invalid, it consists only of disallowed characters.";var nP,rP;!function(e){e[e.Remote=0]="Remote",e[e.IgnoredFiles=1]="IgnoredFiles",e[e.GitConfig=2]="GitConfig",e[e.ForkSettings=3]="ForkSettings"}(nP||(nP={}));class sP extends ke.Component{constructor(e){super(e),this.state={selectedTab:this.props.initialSelectedTab||nP.Remote,remote:e.remote,ignoreText:null,ignoreTextHasChanged:!1,disabled:!1,forkContributionTarget:ts(e.repository),saveDisabled:!1,gitConfigLocation:XM.Global,committerName:"",committerEmail:"",globalCommitterName:"",globalCommitterEmail:"",initialGitConfigLocation:XM.Global,initialCommitterName:null,initialCommitterEmail:null,isLoadingGitConfig:!0}}async componentWillMount(){try{const e=await uw(this.props.repository);this.setState({ignoreText:e})}catch(e){log.error(`RepositorySettings: unable to read root .gitignore file for ${this.props.repository.path}`,e),this.setState({errors:[`Could not read root .gitignore: ${e}`]})}const e=await em(this.props.repository,"user.name",!0),t=await em(this.props.repository,"user.email",!0),n=await tm("user.name")||"",r=await tm("user.email")||"",s=null===e&&null===t?XM.Global:XM.Local;let i=n,o=r;s===XM.Local&&(i=e??"",o=t??""),this.setState({gitConfigLocation:s,committerName:i,committerEmail:o,globalCommitterName:n,globalCommitterEmail:r,initialGitConfigLocation:s,initialCommitterName:e,initialCommitterEmail:t,isLoadingGitConfig:!1})}renderErrors(){const e=this.state.errors;return e&&e.length?e.map(((e,t)=>{const n=`err-${t}`;return ke.createElement(TM,{key:n},e)})):null}render(){const e=Xr(this.props.repository);return ke.createElement(AM,{id:"repository-settings",title:"存储库设置",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,disabled:this.state.disabled},this.renderErrors(),ke.createElement("div",{className:"tab-container"},ke.createElement(LM,{onTabClicked:this.onTabClicked,selectedIndex:this.state.selectedTab,type:NM.Vertical},ke.createElement("span",null,ke.createElement(Rs,{className:"icon",symbol:dc}),"远程"),ke.createElement("span",null,ke.createElement(Rs,{className:"icon",symbol:Io}),"忽略文件"),ke.createElement("span",null,ke.createElement(Rs,{className:"icon",symbol:sa}),"Git 配置"),e&&ke.createElement("span",null,ke.createElement(Rs,{className:"icon",symbol:ec}),"分支行为")),ke.createElement("div",{className:"active-tab"},this.renderActiveTab())),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"保存",okButtonDisabled:this.state.saveDisabled})))}renderActiveTab(){const e=this.state.selectedTab;switch(e){case nP.Remote:{const e=this.state.remote;return e?ke.createElement(BM,{remote:e,onRemoteUrlChanged:this.onRemoteUrlChanged}):ke.createElement(WM,{onPublish:this.onPublish})}case nP.IgnoredFiles:return ke.createElement(ZM,{text:this.state.ignoreText,onIgnoreTextChanged:this.onIgnoreTextChanged,onShowExamples:this.onShowGitIgnoreExamples});case nP.ForkSettings:return Xr(this.props.repository)?ke.createElement(zM,{forkContributionTarget:this.state.forkContributionTarget,repository:this.props.repository,onForkContributionTargetChanged:this.onForkContributionTargetChanged}):null;case nP.GitConfig:return ke.createElement(QM,{account:this.props.repositoryAccount,gitConfigLocation:this.state.gitConfigLocation,onGitConfigLocationChanged:this.onGitConfigLocationChanged,name:this.state.committerName,email:this.state.committerEmail,globalName:this.state.globalCommitterName,globalEmail:this.state.globalCommitterEmail,onNameChanged:this.onCommitterNameChanged,onEmailChanged:this.onCommitterEmailChanged,isLoadingGitConfig:this.state.isLoadingGitConfig});default:return at(0,`Unknown tab type: ${e}`)}}onPublish=()=>{this.props.dispatcher.showPopup({type:Sh.PublishRepository,repository:this.props.repository})};onShowGitIgnoreExamples=()=>{this.props.dispatcher.openInBrowser("https://git-scm.com/docs/gitignore")};onSubmit=async()=>{this.setState({disabled:!0,errors:void 0});const e=new Array;if(this.state.remote&&this.props.remote){const t=this.state.remote.url.trim();if(t!==this.props.remote.url)try{await this.props.dispatcher.setRemoteURL(this.props.repository,this.props.remote.name,t)}catch(t){log.error(`RepositorySettings: unable to set remote URL at ${this.props.repository.path}`,t),e.push(`Failed setting the remote URL: ${t}`)}}if(this.state.ignoreTextHasChanged&&null!==this.state.ignoreText)try{await this.props.dispatcher.saveGitIgnore(this.props.repository,this.state.ignoreText)}catch(t){log.error(`RepositorySettings: unable to save gitignore at ${this.props.repository.path}`,t),e.push(`Failed saving the .gitignore file: ${t}`)}this.state.forkContributionTarget!==this.props.repository.workflowPreferences.forkContributionTarget&&await this.props.dispatcher.updateRepositoryWorkflowPreferences(this.props.repository,{...this.props.repository.workflowPreferences,forkContributionTarget:this.state.forkContributionTarget});let t=!1;this.state.gitConfigLocation!==this.state.initialGitConfigLocation&&this.state.gitConfigLocation===XM.Global?(await lm(this.props.repository,"user.name"),await lm(this.props.repository,"user.email"),t=!0):this.state.gitConfigLocation===XM.Local&&(this.state.committerName!==this.state.initialCommitterName&&(await sm(this.props.repository,"user.name",this.state.committerName),t=!0),this.state.committerEmail!==this.state.initialCommitterEmail&&(await sm(this.props.repository,"user.email",this.state.committerEmail),t=!0)),t&&this.props.dispatcher.refreshAuthor(this.props.repository),e.length?this.setState({disabled:!1,errors:e}):this.props.onDismissed()};onRemoteUrlChanged=e=>{const t=this.props.remote;if(!t)return;const n={...t,url:e};this.setState({remote:n})};onIgnoreTextChanged=e=>{this.setState({ignoreText:e,ignoreTextHasChanged:!0})};onTabClicked=e=>{this.setState({selectedTab:e})};onForkContributionTargetChanged=e=>{this.setState({forkContributionTarget:e})};onGitConfigLocationChanged=e=>{this.setState({gitConfigLocation:e})};onCommitterNameChanged=e=>{const t=new Array;eP(e)?this.setState({saveDisabled:!1}):(this.setState({saveDisabled:!0}),t.push(tP)),this.setState({committerName:e,errors:t})};onCommitterEmailChanged=e=>{this.setState({committerEmail:e})}}!function(e){e[e.Text=0]="Text",e[e.Emoji=1]="Emoji",e[e.Link=2]="Link"}(rP||(rP={}));class iP{allEmoji;repository=null;_results=new Array;_currentString="";constructor(e,t){this.allEmoji=e,t&&Yr(t)&&(this.repository=es(t))}reset(){this._results=new Array,this._currentString=""}append(e){this._currentString+=e}flush(){this._currentString.length&&(this._results.push({kind:rP.Text,text:this._currentString}),this._currentString="")}getLastProcessedChar=()=>this._currentString?.at(-1);scanForEndOfWord(e,t){const n=e.indexOf("\n",t+1),r=e.indexOf(" ",t+1);return n>-1&&r>-1?Math.min(n,r):n>-1?n:r>-1?r:e.length}scanForEmoji(e,t){const n=this.scanForEndOfWord(e,t),r=e.slice(t,n);if(!/^:.*?:$/.test(r))return null;const s=this.allEmoji.get(r);return s?(this.flush(),this._results.push({kind:rP.Emoji,text:r,path:s.url,emoji:s.emoji,description:s.description}),{nextIndex:n}):null}scanForIssue(e,t,n){let r=this.scanForEndOfWord(e,t),s=e.slice(t,r);if(s.endsWith(")")&&(r-=1,s=e.slice(t,r)),s.endsWith(".")&&(r-=1,s=e.slice(t,r)),s.endsWith(",")&&(r-=1,s=e.slice(t,r)),!/^#\d+$/.test(s))return null;this.flush();const i=parseInt(s.substring(1),10);if(isNaN(i))return null;const o=`${n.htmlURL}/issues/${i}`;return this._results.push({kind:rP.Link,text:s,url:o}),{nextIndex:r}}scanForMention(e,t,n){const r=this.getLastProcessedChar();if(r&&!/\s/.test(r))return null;let s=this.scanForEndOfWord(e,t),i=e.slice(t,s);if((i.endsWith("!")||i.endsWith(","))&&(s-=1,i=e.slice(t,s)),!/^@[a-zA-Z0-9\-]+$/.test(i))return null;this.flush();const o=i.substring(1),a=`${ir(n.endpoint)}/${o}`;return this._results.push({kind:rP.Link,text:i,url:a}),{nextIndex:s}}scanForHyperlink(e,t,n){const r=this.getLastProcessedChar();if(r&&!/\s/.test(r))return null;const s=this.scanForEndOfWord(e,t),i=e.slice(t,s);if(!/^https?:\/\/.+/.test(i))return null;if(this.flush(),n&&n.htmlURL){const e=n.htmlURL.toLowerCase();if(i.toLowerCase().startsWith(`${e}/issues/`)){const e=/\/issues\/(\d+)/.exec(i);if(e){const t=e[1];return this._results.push({kind:rP.Link,url:i,text:`#${t}`}),{nextIndex:s}}}}return this._results.push({kind:rP.Link,url:i,text:i}),{nextIndex:s}}inspectAndMove(e,t,n){const r=n();return r?r.nextIndex:(this.append(e),t+1)}tokenizeNonGitHubRepository(e){let t=0;for(;t<e.length;){const n=e[t];switch(n){case":":t=this.inspectAndMove(n,t,(()=>this.scanForEmoji(e,t)));break;case"h":t=this.inspectAndMove(n,t,(()=>this.scanForHyperlink(e,t)));break;default:this.append(n),t++}}return this.flush(),this._results}tokenizeGitHubRepository(e,t){let n=0;for(;n<e.length;){const r=e[n];switch(r){case":":n=this.inspectAndMove(r,n,(()=>this.scanForEmoji(e,n)));break;case"#":n=this.inspectAndMove(r,n,(()=>this.scanForIssue(e,n,t)));break;case"@":n=this.inspectAndMove(r,n,(()=>this.scanForMention(e,n,t)));break;case"h":n=this.inspectAndMove(r,n,(()=>this.scanForHyperlink(e,n,t)));break;default:this.append(r),n++}}return this.flush(),this._results}tokenize(e){return this.reset(),this.repository?this.tokenizeGitHubRepository(e,this.repository):this.tokenizeNonGitHubRepository(e)}}function oP(){return aP("…")}function aP(e){return{kind:rP.Text,text:e}}function lP(e,t){return{kind:rP.Link,text:e,url:t}}const cP=e=>0===e.length||!/\S/.test(e);class uP extends ke.Component{buttonRef=null;buttonRefObservable=vs();shouldForceAriaLiveMessage=!1;constructor(e){super(e),this.state={tooltipVisible:!1},this.buttonRefObservable.subscribe(this.onButtonRef)}onToggle=()=>{this.shouldForceAriaLiveMessage=!this.shouldForceAriaLiveMessage};onTooltipVisible=()=>{this.setState({tooltipVisible:!0})};onTooltipHidden=()=>{this.setState({tooltipVisible:!1})};onButtonRef=e=>{if(null===e){const e=this.buttonRef;e?.removeEventListener("tooltip-shown",this.onTooltipVisible),e?.removeEventListener("tooltip-hidden",this.onTooltipHidden)}else e.addEventListener("tooltip-shown",this.onTooltipVisible),e.addEventListener("tooltip-hidden",this.onTooltipHidden);this.buttonRef=e};render(){const{tooltip:e,children:t,className:n,tooltipClassName:r,ariaLabel:s,ariaLiveMessage:i,...o}=this.props,a=hs()("toggletip",n);return ke.createElement("button",{ref:this.buttonRefObservable,className:a,"aria-label":s,"aria-haspopup":"dialog",type:"button",onClick:this.onToggle},ke.createElement(ke.Fragment,null,void 0!==e&&ke.createElement(ys,{target:this.buttonRefObservable,className:r,isToggleTip:!0,...o},e),t,this.state.tooltipVisible&&ke.createElement(LC,{message:i,trackedUserInput:this.shouldForceAriaLiveMessage})))}}const hP={w:18,h:13,p:["M14 6V4.25a.75.75 0 0 1 1.5 0V6h1.75a.75.75 0 1 1 0 1.5H15.5v1.75a.75.75 0 0 1-1.5 0V7.5h-1.75a.75.75 0 1 1 0-1.5H14zM8.5 4a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm.063 3.064a3.995 3.995 0 0 0 1.2-4.429A3.996 3.996 0 0 0 8.298.725a4.01 4.01 0 0 0-6.064 1.91 3.987 3.987 0 0 0 1.2 4.43A5.988 5.988 0 0 0 0 12.2a.748.748 0 0 0 .716.766.751.751 0 0 0 .784-.697 4.49 4.49 0 0 1 1.39-3.04 4.51 4.51 0 0 1 6.218 0 4.49 4.49 0 0 1 1.39 3.04.748.748 0 0 0 .786.73.75.75 0 0 0 .714-.8 5.989 5.989 0 0 0-3.435-5.136z"]};function pP(e){return e.filter((e=>!(e instanceof qD)))}function dP(e){for(const t of e)if(t instanceof qD)return t;return null}class mP extends ke.Component{descriptionComponent=null;wrapperRef=ke.createRef();summaryGroupRef=ke.createRef();summaryTextInput=null;descriptionTextArea=null;descriptionTextAreaScrollDebounceId=null;coAuthorInputRef=ke.createRef();COMMIT_MSG_ERROR_BTN_ID="commit-message-failure-hint";constructor(e){super(e);const{commitMessage:t}=this.props;this.state={commitMessage:t??Yw,commitMessageAutocompletionProviders:pP(e.autocompletionProviders),coAuthorAutocompletionProvider:dP(e.autocompletionProviders),descriptionObscured:!1,isCommittingStatusMessage:"",repoRulesEnabled:!1,isRuleFailurePopoverOpen:!1,repoRuleCommitMessageFailures:new Wv,repoRuleCommitAuthorFailures:new Wv,repoRuleBranchNameFailures:new Wv}}componentWillUnmount(){const{props:e,state:t}=this;e.onPersistCommitMessage?.(t.commitMessage),window.removeEventListener("keydown",this.onKeyDown)}async componentDidMount(){window.addEventListener("keydown",this.onKeyDown),await this.updateRepoRuleFailures(void 0,void 0,!0)}componentWillReceiveProps(e){const{commitMessage:t}=e;t&&t!==this.props.commitMessage&&t.timestamp>this.state.commitMessage.timestamp&&this.setState({commitMessage:t})}async componentDidUpdate(e,t){this.props.autocompletionProviders!==e.autocompletionProviders&&this.setState({commitMessageAutocompletionProviders:pP(this.props.autocompletionProviders),coAuthorAutocompletionProvider:dP(this.props.autocompletionProviders)}),this.props.focusCommitMessage&&this.props.focusCommitMessage!==e.focusCommitMessage?this.focusSummary():!1===e.showCoAuthoredBy&&this.isCoAuthorInputVisible&&e.repository.id===this.props.repository.id&&!!e.commitToAmend==!!this.props.commitToAmend&&this.coAuthorInputRef.current?.focus(),e.isCommitting!==this.props.isCommitting&&this.props.isCommitting&&""===this.state.isCommittingStatusMessage&&this.setState({isCommittingStatusMessage:this.getButtonTitle()}),e.mostRecentLocalCommit?.sha!==this.props.mostRecentLocalCommit?.sha&&null!==this.props.mostRecentLocalCommit&&this.setState({isCommittingStatusMessage:`Committed Just now - ${this.props.mostRecentLocalCommit.summary} (Sha: ${this.props.mostRecentLocalCommit.shortSha})`}),await this.updateRepoRuleFailures(e,t)}async updateRepoRuleFailures(e,t,n=!1){let r=this.state.repoRulesEnabled;(n||e?.repository!==this.props.repository||e?.repositoryAccount!==this.props.repositoryAccount)&&(r=Gv(this.props.repositoryAccount,this.props.repository),this.setState({repoRulesEnabled:r})),r&&(await this.updateRepoRulesCommitMessageFailures(e,t,n),this.updateRepoRulesCommitAuthorFailures(e,n),this.updateRepoRulesBranchNameFailures(e,n))}async updateRepoRulesCommitMessageFailures(e,t,n){if(n||t?.commitMessage.summary!==this.state.commitMessage.summary||t?.commitMessage.description!==this.state.commitMessage.description||e?.coAuthors!==this.props.coAuthors||e?.commitToAmend!==this.props.commitToAmend||e?.repository!==this.props.repository||e?.repoRulesInfo.commitMessagePatterns!==this.props.repoRulesInfo.commitMessagePatterns){let e=this.state.commitMessage.summary;e||this.state.commitMessage.description||(e=this.summaryOrPlaceholder);const t={summary:e,description:this.state.commitMessage.description,trailers:this.getCoAuthorTrailers(),amend:null!==this.props.commitToAmend,messageGeneratedByCopilot:this.state.commitMessage.generatedByCopilot??!1},n=await ef(this.props.repository,t),r=this.props.repoRulesInfo.commitMessagePatterns.getFailedRules(n);this.setState({repoRuleCommitMessageFailures:r})}}updateRepoRulesCommitAuthorFailures(e,t){if(t||e?.commitAuthor?.email!==this.props.commitAuthor?.email||e?.repoRulesInfo.commitAuthorEmailPatterns!==this.props.repoRulesInfo.commitAuthorEmailPatterns){const e=this.props.commitAuthor?.email;let t;t=e?this.props.repoRulesInfo.commitAuthorEmailPatterns.getFailedRules(e):new Wv,this.setState({repoRuleCommitAuthorFailures:t})}}updateRepoRulesBranchNameFailures(e,t){if(t||e?.branch!==this.props.branch||e?.repoRulesInfo.branchNamePatterns!==this.props.repoRulesInfo.branchNamePatterns){const e=this.props.branch;let t;t=e?this.props.repoRulesInfo.branchNamePatterns.getFailedRules(e):new Wv,this.setState({repoRuleBranchNameFailures:t})}}clearCommitMessage(){this.setState({commitMessage:Yw})}focusSummary(){null!==this.summaryTextInput&&(this.summaryTextInput.focus(),this.props.onCommitMessageFocusSet())}onSummaryChanged=e=>{this.setState({commitMessage:{...this.state.commitMessage,summary:e,generatedByCopilot:!1,timestamp:Date.now()}})};onDescriptionChanged=e=>{this.setState({commitMessage:{...this.state.commitMessage,description:e,generatedByCopilot:!1,timestamp:Date.now()}})};onSubmit=()=>{this.createCommit()};getCoAuthorTrailers(){const{coAuthors:e}=this.props;return this.isCoAuthorInputEnabled?e.filter(tb).map((e=>({token:"Co-Authored-By",value:`${e.name} <${e.email}>`}))):[]}get summaryOrPlaceholder(){return this.props.prepopulateCommitSummary&&!this.state.commitMessage.summary?this.props.placeholder:this.state.commitMessage.summary}async createCommit(e){const{description:t}=this.state.commitMessage;if(!this.canCommit()&&!this.canAmend())return;if(!1!==e?.warnUnknownAuthors){const t=this.props.coAuthors.filter((e=>!tb(e)));if(t.length>0)return void this.props.onConfirmCommitWithUnknownCoAuthors(t,(()=>this.createCommit({warnUnknownAuthors:!1,warnFilesNotVisible:!0===e?.warnFilesNotVisible})))}const n=this.getCoAuthorTrailers(),r={summary:this.summaryOrPlaceholder,description:t,trailers:n,amend:null!==this.props.commitToAmend,messageGeneratedByCopilot:this.state.commitMessage.generatedByCopilot??!1};if(!1!==e?.warnFilesNotVisible&&!0===this.props.showPromptForCommittingFileHiddenByFilter&&this.props.onFilesToCommitNotVisible)return void this.props.onFilesToCommitNotVisible((()=>this.createCommit({warnUnknownAuthors:!0===e?.warnUnknownAuthors,warnFilesNotVisible:!1})));const s=eM("create commit",this.props.repository),i=await this.props.onCreateCommit(r);s.done(),i&&(this.props.onSuccessfulCommitCreated?.(),this.clearCommitMessage())}canCommit(){return(!0===this.props.anyFilesSelected&&this.state.commitMessage.summary.length>0||this.props.prepopulateCommitSummary)&&!this.hasRepoRuleFailure()}canAmend(){return null!==this.props.commitToAmend&&(this.state.commitMessage.summary.length>0||this.props.prepopulateCommitSummary)&&!this.hasRepoRuleFailure()}hasRepoRuleFailure(){const{aheadBehind:e,repoRulesInfo:t}=this.props;return!!this.state.repoRulesEnabled&&(!0===t.basicCommitWarning||!0===t.signedCommitsRequired||!0===t.pullRequestRequired||"fail"===this.state.repoRuleCommitMessageFailures.status||"fail"===this.state.repoRuleCommitAuthorFailures.status||null===e&&(!0===t.creationRestricted||"fail"===this.state.repoRuleBranchNameFailures.status))}canExcecuteCommitShortcut(e){return e.target instanceof Node&&this.wrapperRef.current?.contains(e.target)||!this.props.isShowingFoldout&&!this.props.isShowingModal}onKeyDown=e=>{e.defaultPrevented||e.ctrlKey&&"Enter"===e.key&&(this.canCommit()||this.canAmend())&&this.canExcecuteCommitShortcut(e)&&(this.createCommit(),e.preventDefault())};renderAvatar(){const{commitAuthor:e,repository:t}=this.props,{gitHubRepository:n}=t,r=null!==e?oM(e,n):void 0,s=this.props.repositoryAccount,i=s?.emails.filter((e=>e.verified)).map((e=>e.email))??[];if(s&&Dn(s.endpoint)){const{id:e,login:t,endpoint:n}=s,r=Kb(e,t,n);i.map((e=>e.toLowerCase())).includes(r.toLowerCase())||i.push(r)}const o=e?.email;let a="none";return void 0!==o&&(this.state.repoRulesEnabled&&"pass"!==this.state.repoRuleCommitAuthorFailures.status?a="disallowedEmail":null!=s&&!1===Yb(s,o)&&(a="misattribution")),ke.createElement(FM,{user:r,email:e?.email,isEnterpriseAccount:null!==s&&bn(s),warningType:a,emailRuleFailures:this.state.repoRuleCommitAuthorFailures,branch:this.props.branch,accountEmails:i,preferredAccountEmail:null!=s?qb(s):"",onUpdateEmail:this.onUpdateUserEmail,onOpenRepositorySettings:this.onOpenRepositorySettings,onOpenGitSettings:this.onOpenGitSettings,repository:t,accounts:this.props.accounts})}onUpdateUserEmail=async e=>{await im("user.email",e),this.props.onRefreshAuthor()};onOpenRepositorySettings=()=>{this.props.onShowPopup({type:Sh.RepositorySettings,repository:this.props.repository,initialSelectedTab:nP.GitConfig})};onOpenGitSettings=()=>{this.props.onShowPopup({type:Sh.Preferences,initialSelectedTab:Gr.Git})};get isCoAuthorInputEnabled(){return null!==this.props.repository.gitHubRepository}get isCoAuthorInputVisible(){return this.props.showCoAuthoredBy&&this.isCoAuthorInputEnabled}onCoAuthorsUpdated=e=>this.props.onCoAuthorsUpdated(e);renderCoAuthorInput(){if(!this.isCoAuthorInputVisible)return null;const e=this.state.coAuthorAutocompletionProvider;return e?ke.createElement(QD,{ref:this.coAuthorInputRef,onAuthorsUpdated:this.onCoAuthorsUpdated,authors:this.props.coAuthors,autoCompleteProvider:e,readOnly:!0===this.props.isCommitting}):null}onToggleCoAuthors=()=>{this.props.onShowCoAuthoredByChanged(!this.props.showCoAuthoredBy)};get toggleCoAuthorsText(){return this.props.showCoAuthoredBy?"移除合作者":"添加合作者"}getAddRemoveCoAuthorsMenuItem(){return{label:this.toggleCoAuthorsText,action:this.onToggleCoAuthors,enabled:null!==this.props.repository.gitHubRepository&&!0!==this.props.isCommitting}}onContextMenu=e=>{e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement||Ch([this.getAddRemoveCoAuthorsMenuItem()])};onAutocompletingInputContextMenu=()=>{const e=[this.getAddRemoveCoAuthorsMenuItem(),{type:"separator"},{role:"editMenu"},{type:"separator"}];e.push(this.getCommitSpellcheckEnabilityMenuItem(this.props.commitSpellcheckEnabled)),Ch(e,!0)};getCommitSpellcheckEnabilityMenuItem(e){return{label:e?"禁用提交时的拼写检查":"启用提交时的拼写检查",action:()=>this.props.onCommitSpellcheckEnabledChanged(!e)}}onCopilotButtonClick=async e=>{e.preventDefault();const{commitMessage:t}=this.state;this.props.onGenerateCommitMessage?.(this.props.filesSelected,!!t.summary||!!t.description)};onCoAuthorToggleButtonClick=async e=>{e.preventDefault(),this.onToggleCoAuthors()};renderCopilotButton(){const{accounts:e,onGenerateCommitMessage:t,filesSelected:n,isCommitting:r,isGeneratingCommitMessage:s,commitToAmend:i,shouldShowGenerateCommitMessageCallOut:o}=this.props;if(!e.some(ln)||void 0===t)return null;const a=0===n.length,l=!i&&a,c=s?"Generating commit details…'":"Generate commit message with Copilot"+(l?". Files must be selected to generate a commit message.":"");return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"separator"}),ke.createElement(Ss,{className:"copilot-button",onClick:this.onCopilotButtonClick,ariaLabel:c,tooltip:c,disabled:!0===r||s||l},ke.createElement(LC,{message:s?"Generating commit details…":""}),ke.createElement(Rs,{symbol:_i}),o&&ke.createElement("span",{className:"call-to-action-bubble"},"New")))}renderCoAuthorToggleButton(){return null===this.props.repository.gitHubRepository?null:ke.createElement(Ss,{className:"co-authors-toggle",onClick:this.onCoAuthorToggleButtonClick,ariaLabel:this.toggleCoAuthorsText,tooltip:this.toggleCoAuthorsText,disabled:!0===this.props.isCommitting||this.props.isGeneratingCommitMessage},ke.createElement(Rs,{symbol:hP}))}onDescriptionFieldRef=e=>{this.descriptionComponent=e};onDescriptionTextAreaScroll=()=>{this.descriptionTextAreaScrollDebounceId=null;const e=this.descriptionTextArea,t=null!==e&&e.scrollTop+e.offsetHeight<e.scrollHeight;this.state.descriptionObscured!==t&&this.setState({descriptionObscured:t})};onDescriptionTextAreaRef=e=>{if(e){const t=()=>{null!==this.descriptionTextAreaScrollDebounceId&&(cancelAnimationFrame(this.descriptionTextAreaScrollDebounceId),this.descriptionTextAreaScrollDebounceId=null),this.descriptionTextAreaScrollDebounceId=requestAnimationFrame(this.onDescriptionTextAreaScroll)};e.addEventListener("input",t),e.addEventListener("scroll",t)}this.descriptionTextArea=e};onSummaryInputRef=e=>{this.summaryTextInput=e};onFocusContainerClick=e=>{e.defaultPrevented||this.descriptionComponent&&this.descriptionComponent.focus()};get isActionBarEnabled(){return this.isCoAuthorInputEnabled}renderActionBar(){if(!this.isCoAuthorInputEnabled)return null;const{isCommitting:e,isGeneratingCommitMessage:t}=this.props,n=hs()("action-bar",{disabled:!0===e||!0===t});return ke.createElement("div",{className:n},this.renderCoAuthorToggleButton(),this.renderCopilotButton())}renderAmendCommitNotice(){const{commitToAmend:e}=this.props;return null!==e?ke.createElement(nM,{icon:tM.Information},"您的更改将修改 ",ke.createElement("strong",null,"最近提交"),"."," ",ke.createElement(sM,{onClick:this.props.onStopAmending},"停止修改")," ","将这些更改作为新提交。"):null}renderBranchProtectionsRepoRulesCommitWarning(){const{showNoWriteAccess:e,showBranchProtected:t,repoRulesInfo:n,aheadBehind:r,repository:s,branch:i}=this.props,{repoRuleBranchNameFailures:o,repoRulesEnabled:a}=this.state,l=new Map;let c=null;if(a){null===r&&null!==i&&(!0===n.creationRestricted||"fail"===o.status?l.set("publish",!0):"bypass"===n.creationRestricted||"bypass"===o.status?l.set("publish","bypass"):l.set("publish",!1)),l.set("commitSigning",n.signedCommitsRequired),l.set("basic",n.basicCommitWarning);for(const e of l)if(!0===e[1]){c=e[0];break}if(null===c)for(const e of l)if("bypass"===e[1]){c=e[0];break}}if(e)return ke.createElement(nM,{icon:tM.Warning},"您没有写入权限 ",ke.createElement("strong",null,s.name),". 想要"," ",ke.createElement(sM,{onClick:this.props.onShowCreateForkDialog},"创建分支"),"?");if(t)return null===i?null:ke.createElement(nM,{icon:tM.Warning},ke.createElement("strong",null,i)," 是受保护的分支。想要"," ",ke.createElement(sM,{onClick:this.onSwitchBranch},"交换分支"),"?");if("publish"===c){const e="bypass"===l.get("publish");return ke.createElement(nM,{icon:e?tM.Warning:tM.Error},"The branch name ",ke.createElement("strong",null,i)," fails"," ",ke.createElement(PM,{repository:s.gitHubRepository,branch:i},"one or more rules")," ","that ",e?"would":"will"," prevent it from being published",e&&", but you can bypass them. Proceed with caution!",!e&&ke.createElement(ke.Fragment,null,". 想要"," ",ke.createElement(sM,{onClick:this.onSwitchBranch},"交换分支"),"?"))}if("commitSigning"===c){const e="bypass"===n.signedCommitsRequired;return ke.createElement(nM,{icon:e?tM.Warning:tM.Error},ke.createElement(PM,{repository:s.gitHubRepository,branch:i},"One or more rules")," ","apply to the branch ",ke.createElement("strong",null,i)," that require signed commits",e&&", but you can bypass them. Proceed with caution!",!e&&"."," ",ke.createElement(sM,{uri:"https://docs.github.com/authentication/managing-commit-signature-verification/signing-commits"},"Learn more about commit signing."))}if("basic"===c){const e="bypass"===n.basicCommitWarning;return ke.createElement(nM,{icon:e?tM.Warning:tM.Error},ke.createElement(PM,{repository:s.gitHubRepository,branch:i},"One or more rules")," ","apply to the branch ",ke.createElement("strong",null,i)," 那"," ",e?"would":"will"," prevent pushing",e&&", but you can bypass them. Proceed with caution!",!e&&ke.createElement(ke.Fragment,null,". 想要"," ",ke.createElement(sM,{onClick:this.onSwitchBranch},"交换分支"),"?"))}return null}renderRuleFailurePopover(){const{branch:e,repository:t}=this.props;if(e&&t.gitHubRepository&&this.state.repoRulesEnabled&&"pass"!==this.state.repoRuleCommitMessageFailures.status)return ke.createElement(ND,{anchor:this.summaryTextInput,anchorPosition:ID.Right,decoration:FD.Balloon,minHeight:200,ariaLabelledby:"commit-message-rule-failure-popover-header",onClickOutside:this.closeRuleFailurePopover},ke.createElement("h3",{id:"commit-message-rule-failure-popover-header"},"Commit message rule failures"),ke.createElement(_M,{repository:t.gitHubRepository,branch:e,failures:this.state.repoRuleCommitMessageFailures,leadingText:"This commit message"}))}toggleRuleFailurePopover=()=>{this.setState({isRuleFailurePopoverOpen:!this.state.isRuleFailurePopoverOpen})};closeRuleFailurePopover=()=>{this.setState({isRuleFailurePopoverOpen:!1})};onSwitchBranch=()=>{this.props.onShowFoldout({type:Qe.Branch})};getButtonVerb(){const{isCommitting:e,commitToAmend:t}=this.props;return null!==t?e?"修改中":"修改":e?"提交中":"Commit"}getCommittingButtonText(){const{branch:e}=this.props,t=this.getButtonVerb();if(null===e)return t;const n=`${t} ${this.getFilesToBeCommittedButtonText()}to `;return ke.createElement(ke.Fragment,null,n,ke.createElement("strong",null,e))}getFilesToBeCommittedButtonText(){const{filesToBeCommittedCount:e}=this.props;return void 0===e||0===e?"":`${e} ${e>1?"files":"file"} `}getCommittingButtonTitle(){const{branch:e}=this.props,t=this.getButtonVerb();return null===e?t:`${t} to ${e}`}getButtonText(){const{commitToAmend:e,commitButtonText:t}=this.props;return t||(null!==e?this.getButtonTitle():this.getCommittingButtonText())}getButtonTitle(){const{commitToAmend:e,commitButtonText:t}=this.props;return t||(null!==e?`${this.getButtonVerb()} 上次提交`:this.getCommittingButtonTitle())}getButtonTooltip(e){return e?this.getButtonTitle():cP(this.summaryOrPlaceholder)?"提交时需要提交摘要":!this.props.anyFilesSelected&&this.props.anyFilesAvailable?"请选择一个或多个要提交的文件":this.props.isCommitting?"正在提交更改…":void 0}renderSubmitButton(){const{isCommitting:e,isGeneratingCommitMessage:t}=this.props,n=cP(this.summaryOrPlaceholder),r=(this.canCommit()||this.canAmend())&&!e&&!n&&!t,s=e||t?ke.createElement(zD,null):void 0,i=t?"Generating commit details…":null,o=i??this.getButtonTooltip(r),a=i??this.getButtonText();return ke.createElement(Ss,{type:"submit",className:"commit-button",onClick:this.onSubmit,disabled:!r,tooltip:o,tooltipDismissable:!1,onlyShowTooltipWhenOverflowed:r,ariaDescribedBy:this.props.submitButtonAriaDescribedBy},ke.createElement(ke.Fragment,null,s,a))}renderSummaryLengthHint(){return ke.createElement(uP,{delay:0,tooltip:ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"title"},"优秀的提交摘要要精简"),ke.createElement("div",{className:"description"},"在描述字段中放置额外信息。")),ariaLiveMessage:"优秀的提交摘要要精简. 在描述字段中放置额外信息。",direction:gs.NORTH,className:"length-hint",tooltipClassName:"length-hint-tooltip",ariaLabel:"Open Summary Length Info"},ke.createElement(Rs,{symbol:$a}))}renderRepoRuleCommitMessageFailureHint(){if("pass"===this.state.repoRuleCommitMessageFailures.status)return null;const e="bypass"===this.state.repoRuleCommitMessageFailures.status;let t,n="";return e?(t="Warning",n=", but you can bypass them"):t="Error",ke.createElement("button",{id:"commit-message-failure-hint",className:"commit-message-failure-hint button-component","aria-label":`${t}: Commit message fails repository rules${n}. View details.`,"aria-haspopup":"dialog","aria-expanded":this.state.isRuleFailurePopoverOpen,onClick:this.toggleRuleFailurePopover},ke.createElement(Rs,{symbol:e?xs:Uc,className:e?"warning-icon":"error-icon"}))}render(){const e=hs()("commit-message-component",{"with-action-bar":this.isActionBarEnabled,"with-co-authors":this.isCoAuthorInputVisible}),t=hs()("description-field",{"with-overflow":this.state.descriptionObscured}),n=this.state.repoRulesEnabled&&"pass"!==this.state.repoRuleCommitMessageFailures.status,r=this.props.showCommitLengthWarning&&!n&&this.state.commitMessage.summary.length>50,s=hs()("summary",{"with-trailing-icon":n||r}),i=hs()("summary-field","nudge-arrow",{"nudge-arrow-left":!0===this.props.shouldNudge}),o=n?this.COMMIT_MSG_ERROR_BTN_ID:void 0,{placeholder:a,isCommitting:l,isGeneratingCommitMessage:c,commitSpellcheckEnabled:u}=this.props;return ke.createElement("div",{role:"group","aria-label":"Create commit",className:e,onContextMenu:this.onContextMenu,ref:this.wrapperRef},ke.createElement("div",{className:s,ref:this.summaryGroupRef},this.renderAvatar(),ke.createElement(BD,{required:!0,label:!0===this.props.showInputLabels?"Summary":void 0,screenReaderLabel:"Commit summary",className:i,placeholder:a,value:this.state.commitMessage.summary,onValueChanged:this.onSummaryChanged,onElementRef:this.onSummaryInputRef,autocompletionProviders:this.state.commitMessageAutocompletionProviders,"aria-describedby":o,onContextMenu:this.onAutocompletingInputContextMenu,readOnly:!0===l||!0===c,spellcheck:u}),n&&this.renderRepoRuleCommitMessageFailureHint(),r&&this.renderSummaryLengthHint()),this.state.isRuleFailurePopoverOpen&&this.renderRuleFailurePopover(),!0===this.props.showInputLabels&&ke.createElement("label",{htmlFor:"commit-message-description"},"Description"),ke.createElement(vp,{className:"description-focus-container",onClick:this.onFocusContainerClick},ke.createElement(LD,{inputId:"commit-message-description",className:t,screenReaderLabel:!0!==this.props.showInputLabels?"Commit description":void 0,placeholder:"描述",value:this.state.commitMessage.description||"",onValueChanged:this.onDescriptionChanged,autocompletionProviders:this.state.commitMessageAutocompletionProviders,"aria-describedby":o,ref:this.onDescriptionFieldRef,onElementRef:this.onDescriptionTextAreaRef,onContextMenu:this.onAutocompletingInputContextMenu,readOnly:!0===l||!0===c,spellcheck:u}),this.renderActionBar()),this.renderCoAuthorInput(),this.renderAmendCommitNotice(),this.renderBranchProtectionsRepoRulesCommitWarning(),this.renderSubmitButton(),ke.createElement("span",{className:"sr-only","aria-live":"polite","aria-atomic":"true"},this.state.isCommittingStatusMessage))}}function fP(e,t){if(e.length<=t)return e;if(t<=0)return"";if(1===t)return"…";const n=(t-1)/2;return`${e.substring(0,Math.floor(n))}…${e.substring(e.length-Math.ceil(n))}`}function gP(e,n){if((n=void 0===n?e.length:n)<=0)return{normalizedPath:e,directoryText:"",fileText:"",length:n};const{normalizedFileName:r,normalizedDirectory:s}=function(e){e=e.endsWith(t.sep)?e.substring(0,e.length-1):e;const n=t.basename(e);return{normalizedFileName:n,normalizedDirectory:e.substring(0,e.length-n.length)}}(e);if(n>=e.length)return{normalizedPath:e,directoryText:s,fileText:r,length:n};const i=function(e,n){if(e.length<=n)return e;if(n<=0)return"";if(1===n)return"…";const r=e.lastIndexOf(t.sep);if(-1===r)return fP(e,n);const s=e.length-r-1;return s+2>n?fP(e,n):`${e.substring(0,n-s-2)}…${e.substring(r)}`}(e,n);let o=0;for(let e=0;e<i.length&&e<s.length;e++){const n=s[e],r=i[e];if(n!==r){if("…"===r){o++;const n=e+1;i.length>n&&i[n]===t.sep&&o++}break}o++}const a=i.substring(o);return{normalizedPath:e,directoryText:i.substring(0,o),fileText:a,length:n}}function yP(e,n){return{longestFit:0,shortestNonFit:void 0,availableWidth:void 0,fullTextWidth:void 0,...gP(t.normalize(e),n)}}class wP extends ke.PureComponent{pathElementRef=vs();pathInnerElement=null;constructor(e){super(e),this.state=yP(e.path)}componentWillReceiveProps(e){e.path!==this.props.path&&this.setState(yP(e.path))}componentDidMount(){this.resizeIfNecessary(),document.addEventListener("dialog-show",this.onDialogShow)}componentWillUnmount(){document.removeEventListener("dialog-show",this.onDialogShow)}componentDidUpdate(){this.resizeIfNecessary()}onDialogShow=e=>{const t=e.target;t instanceof Element&&t.contains(this.pathElementRef.current)&&this.resizeIfNecessary()};onPathInnerElementRef=e=>{this.pathInnerElement=e};render(){const e=this.props.matches?.title.filter((e=>e<=this.state.directoryText.length-1)),t=this.props.matches?.title.map((e=>e-(this.state.normalizedPath.length-this.state.fileText.length))).filter((e=>e>=0)),n=e?ke.createElement(ah,{text:this.state.directoryText,highlight:e}):this.state.directoryText,r=this.state.directoryText&&this.state.directoryText.length?ke.createElement("span",{className:"dirname"},n):null,s=this.state.length<this.state.normalizedPath.length,i=t?ke.createElement(ah,{text:this.state.fileText,highlight:t}):this.state.fileText,o=this.props.matches?ke.createElement(ah,{text:this.state.normalizedPath,highlight:this.props.matches.title}):this.state.normalizedPath;return ke.createElement("div",{className:"path-text-component",ref:this.pathElementRef},ke.createElement("span",{ref:this.onPathInnerElementRef},r,ke.createElement("span",{className:"filename"},i)),s&&ke.createElement(ys,{target:this.pathElementRef,interactive:!0,className:"selectable path-text"},o))}resizeIfNecessary(){if(!this.pathElementRef.current||!this.pathInnerElement)return;const e=void 0!==this.props.availableWidth?this.props.availableWidth:this.pathElementRef.current.getBoundingClientRect().width,t=Math.max(e,0);if(void 0!==this.state.fullTextWidth&&this.state.fullTextWidth<=t)return this.state.length===this.state.normalizedPath.length?void(t!==this.state.availableWidth&&this.setState({...this.state,availableWidth:t})):void this.setState({...this.state,...gP(this.state.normalizedPath),availableWidth:t});if(void 0!==this.state.availableWidth&&this.state.availableWidth!==t){const e=yP(this.props.path,this.state.length);return void(t<this.state.availableWidth?this.setState({...e,fullTextWidth:this.state.fullTextWidth,shortestNonFit:this.state.shortestNonFit,availableWidth:t}):t>this.state.availableWidth&&this.setState({...e,fullTextWidth:this.state.fullTextWidth,longestFit:this.state.longestFit,availableWidth:t}))}if(0===t)return void(0!==this.state.length&&this.setState({...this.state,...gP(this.state.normalizedPath,0),availableWidth:t,longestFit:0,shortestNonFit:1}));const n=this.pathInnerElement.getBoundingClientRect().width,r=this.state.length===this.state.normalizedPath.length?n:this.state.fullTextWidth,s=0===n?.5:t/n;if(n<=t){if(this.state.length===this.state.normalizedPath.length)return void this.setState({...this.state,availableWidth:t,fullTextWidth:r});{const e=this.state.length,i=void 0!==this.state.shortestNonFit?this.state.shortestNonFit-1:this.state.normalizedPath.length,o=e+1;if(o>=i)return void this.setState({...this.state,longestFit:e,availableWidth:t,fullTextWidth:r});if(t-n<3)return void this.setState({...this.state,longestFit:e,availableWidth:t,fullTextWidth:r});const a=Oy(Math.floor(this.state.length*s),o,i);this.setState({...this.state,...gP(this.state.normalizedPath,a),longestFit:e,availableWidth:t,fullTextWidth:r})}}else{const e=this.state.length,n=e-1,i=this.state.longestFit||0,o=Oy(Math.floor(this.state.length*s),i,n);this.setState({...this.state,...gP(this.state.normalizedPath,o),shortestNonFit:e,availableWidth:t,fullTextWidth:r})}}}class bP extends ke.Component{render(){const e={className:"path-label-component"},{status:t,matches:n}=this.props,r=this.props.availableWidth;if(t.kind===Wu.Renamed||t.kind===Wu.Copied){const s=r?r/2-10:void 0;return ke.createElement("span",{...e,"aria-hidden":this.props.ariaHidden},ke.createElement(wP,{path:t.oldPath,availableWidth:s}),ke.createElement(Rs,{className:"rename-arrow",symbol:Ls}),ke.createElement(wP,{path:this.props.path,availableWidth:s,matches:n}))}return ke.createElement("span",{...e,"aria-hidden":this.props.ariaHidden},ke.createElement(wP,{path:this.props.path,matches:n,availableWidth:r}))}}class CP extends ke.Component{handleCheckboxChange=e=>{const t=e.currentTarget.checked;this.props.onIncludeChanged(this.props.file,t)};get checkboxValue(){return!0===this.props.include?Cx.On:!1===this.props.include?Cx.Off:Cx.Mixed}render(){const{file:e,availableWidth:t,disableSelection:n,checkboxTooltip:r,focused:s,matches:i}=this.props,{status:o,path:a}=e,l=yw(o),c=t-20-20-5-16,u=!0===this.props.include?"included":void 0===this.props.include?"partially included":"not included",h=`${a} ${yw(o)} ${u}`;return ke.createElement("div",{className:"file"},ke.createElement(lh,{tooltip:r,direction:gs.EAST,tagName:"div"},ke.createElement(vx,{tabIndex:-1,value:this.checkboxValue,onChange:this.handleCheckboxChange,disabled:n})),ke.createElement(bP,{path:a,status:o,availableWidth:c,ariaHidden:!0,matches:i}),ke.createElement(LC,{message:h}),ke.createElement(lh,{ancestorFocused:s,openOnFocus:!0,tooltip:l,direction:gs.EAST},ke.createElement(Rs,{symbol:ih(o),className:"status status-"+l.toLowerCase()})))}}class vP extends ke.Component{onSubmit=async()=>{const{rebaseConflictState:e}=this.props;await this.props.dispatcher.continueRebase("Rebase",this.props.repository,this.props.workingDirectory,e)};render(){const{manualResolutions:e}=this.props.rebaseConflictState;let t=!0,n="Continue rebase";kw(this.props.workingDirectory,e).length>0&&(n="Resolve all conflicts before continuing",t=!1);const r=t&&!this.props.isCommitting,s=this.props.isCommitting?ke.createElement(zD,null):void 0,i=this.props.hasUntrackedChanges?ke.createElement("div",{className:"warning-untracked-files"},"Untracked files will be excluded"):void 0;return ke.createElement("div",{id:"continue-rebase"},ke.createElement(Ss,{type:"submit",className:"commit-button",onClick:this.onSubmit,disabled:!r,tooltip:n},s,ke.createElement("span",null,void 0!==s?"Rebasing":"Continue rebase")),i)}}class SP extends ke.Component{render(){const{file:e,focused:t}=this.props,{status:n}=e,r=yw(n),s=this.props.availableWidth-20-5-16;return ke.createElement("div",{className:"file"},ke.createElement(bP,{path:e.path,status:e.status,availableWidth:s,ariaHidden:!0}),ke.createElement(lh,{ancestorFocused:t,openOnFocus:!0,tooltip:r,direction:gs.NORTH},ke.createElement(Rs,{symbol:ih(n),className:"status status-"+r.toLowerCase()})))}}class EP extends ke.Component{constructor(e){super(e),this.state={focusedRow:null}}onSelectedRowChanged=e=>{const t=this.props.files[e];this.props.onSelectedFileChanged(t)};renderFile=e=>ke.createElement(SP,{file:this.props.files[e],availableWidth:this.props.availableWidth,focused:this.state.focusedRow===e});selectedRowsForFile(){const{selectedFile:e,files:t}=this.props,n=e?t.findIndex((t=>t.path===e.path)):-1;return n>=0?[n]:[]}onRowContextMenu=(e,t)=>{this.props.onContextMenu?.(this.props.files[e],t)};getFileAriaLabel=e=>{const t=this.props.files[e],{path:n,status:r}=t;return`${n} ${yw(r)}`};render(){return ke.createElement("div",{className:"file-list"},ke.createElement(bx,{rowRenderer:this.renderFile,rowCount:this.props.files.length,rowHeight:29,selectedRows:this.selectedRowsForFile(),onSelectedRowChanged:this.onSelectedRowChanged,onRowDoubleClick:this.props.onRowDoubleClick,onRowContextMenu:this.onRowContextMenu,onRowKeyboardFocus:this.onRowFocus,onRowBlur:this.onRowBlur,getRowAriaLabel:this.getFileAriaLabel,invalidationProps:{focusedRow:this.state.focusedRow}}))}onRowFocus=e=>{this.setState({focusedRow:e})};onRowBlur=e=>{this.state.focusedRow===e&&this.setState({focusedRow:null})}}class kP extends ke.Component{constructor(e){super(e),this.state={isRestoring:!1,isDiscarding:!1}}render(){const{isRestoring:e,isDiscarding:t}=this.state;return ke.createElement("div",{className:"header"},ke.createElement("h3",null,"暂存的更改"),ke.createElement("div",{className:"row"},ke.createElement(DM,{okButtonText:"恢复",okButtonDisabled:e||t,onOkButtonClick:this.onRestoreClick,cancelButtonText:"放弃",cancelButtonDisabled:e||t,onCancelButtonClick:this.onDiscardClick,okButtonAriaDescribedBy:"restore-description"}),ke.createElement("div",{className:"explanatory-text",id:"restore-description"},ke.createElement("span",{className:"text"},ke.createElement("strong",null,"Restore")," will move your stashed files to the Changes list."))))}onDiscardClick=async()=>{const{dispatcher:e,repository:t,stashEntry:n,askForConfirmationOnDiscardStash:r}=this.props;if(r)e.showPopup({type:Sh.ConfirmDiscardStash,stash:n,repository:t});else{this.setState({isDiscarding:!0});try{await e.dropStash(t,n)}finally{this.setState({isDiscarding:!1})}}};onRestoreClick=async()=>{const{dispatcher:e,repository:t,stashEntry:n}=this.props;try{this.setState({isRestoring:!0}),await e.popStash(t,n)}catch(n){const r=new mt(n,{repository:t});e.postError(r)}finally{this.setState({isRestoring:!1})}}}var RP=n(2568),AP=n.n(RP);function TP(e,t,n){const r=e.createShader(t);if(!r)return null;if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){const t=e.getShaderInfoLog(r);throw new Error("Error compiling shader:\n"+t)}return r}function xP(e,t,n,r,s){e.width=n,e.height=r;const i=e.getContext("webgl2",{preserveDrawingBuffer:!0});if(!i)throw new Error("Failed to get webgl2 context");i.bindTexture(i.TEXTURE_2D,i.createTexture()),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR);const o=i.getExtension("WEBGL_compressed_texture_s3tc");if(!o)throw new Error("Failed to get WEBGL_compressed_texture_s3tc extension");const a=function(e,t){switch(t){case"dxt1":return e.COMPRESSED_RGB_S3TC_DXT1_EXT;case"dxt3":return e.COMPRESSED_RGBA_S3TC_DXT3_EXT;case"dxt5":return e.COMPRESSED_RGBA_S3TC_DXT5_EXT;default:throw new Error("Unsupported format "+t)}}(o,t);i.compressedTexImage2D(i.TEXTURE_2D,0,a,n,r,0,s);const l=function(e,t,n){const r=TP(e,e.VERTEX_SHADER,t);if(!r)throw new Error("Failed to compile vertex shader");const s=TP(e,e.FRAGMENT_SHADER,n);if(!s)throw new Error("Failed to compile fragment shader");const i=function(e,t,n){const r=e.createProgram();if(!r)return null;if(e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS)){const t=e.getProgramInfoLog(r);throw new Error("Error linking program: "+t)}return r}(e,r,s);return i}(i,"\nattribute vec2 position;\nvarying vec2 vUv;\n\nvoid main() {\n vUv = (position + 1.0) * 0.5;\n vUv.y = 1.0 - vUv.y;\n gl_Position = vec4(position, 1.0, 1.0);\n}\n","\nprecision mediump float;\n\nvarying vec2 vUv;\nuniform sampler2D tex0;\n\nvoid main() {\n gl_FragColor = texture2D(tex0, vUv);\n}\n");i.useProgram(l),i.viewport(0,0,n,r),function(e){const t=function(e,t){const n=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,n),e.bufferData(e.ARRAY_BUFFER,t,e.DYNAMIC_DRAW),n}(e,new Float32Array([-1,-1,-1,4,4,-1]));if(!t)throw new Error("Failed to create WebGLBuffer");const n=function(e,t){const n=e.createVertexArray();if(!n)throw new Error("Failed to create WebGLVertexArrayObject");return e.bindVertexArray(n),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null),e.bindBuffer(e.ARRAY_BUFFER,t),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.bindVertexArray(null),n}(e,t);e.bindVertexArray(n),e.bindBuffer(e.ARRAY_BUFFER,t),e.drawArrays(e.TRIANGLES,0,3),e.bindVertexArray(null),e.bindBuffer(e.ARRAY_BUFFER,null)}(i)}class DP extends ke.Component{constructor(e){super(e),this.state={imageSource:null}}loadImage(e){if("image/vnd-ms.dds"===e.mediaType)try{const t=function(e){const t=AP()(e),[n]=t.images,[r,s]=n.shape,i=new Uint8Array(e,n.offset,n.length),o=document.createElement("canvas");return xP(o,t.format,r,s,i),o.toDataURL("image/png",1)}(e.rawContents);this.setState({imageSource:t})}catch(e){console.error("Error loading DDS image:",e),this.setState({imageSource:null})}else this.setState({imageSource:`data:${e.mediaType};base64,${e.contents}`})}componentDidMount(){const{image:e}=this.props;this.loadImage(e)}componentDidUpdate(e){const{image:t}=this.props;t!==e.image&&this.loadImage(t)}render(){const{imageSource:e}=this.state;return e?ke.createElement("div",{className:"image-wrapper"},ke.createElement("img",{src:e,style:this.props.style,onLoad:this.onLoad,alt:""})):null}onLoad=e=>{this.props.onElementLoad&&this.props.onElementLoad(e.currentTarget)}}class MP extends ke.Component{render(){const e={width:0,height:0},t=this.props.previousImageSize||e,n=this.props.currentImageSize||e,{current:r,previous:s}=this.props,i=function(e,t){return`${Math.abs(Math.round(t/e*100))}%`}(s.bytes,r.bytes),o=r.bytes-s.bytes,a=o>=0?"+":"",l={maxWidth:this.props.maxSize.width<200?void 0:this.props.maxSize.width};return ke.createElement("div",{className:"image-diff-container",ref:this.props.onContainerRef},ke.createElement("div",{className:"image-diff-two-up"},ke.createElement("div",{className:"image-diff-previous",style:l},ke.createElement("div",{className:"image-diff-header"},"Deleted"),ke.createElement(DP,{image:s,onElementLoad:this.props.onPreviousImageLoad}),ke.createElement("div",{className:"image-diff-footer"},ke.createElement("span",{className:"strong"},"W:")," ",t.width,"px | ",ke.createElement("span",{className:"strong"},"H:")," ",t.height,"px | ",ke.createElement("span",{className:"strong"},"Size:")," ",Zg(s.bytes,2,!1))),ke.createElement("div",{className:"image-diff-current",style:l},ke.createElement("div",{className:"image-diff-header"},"Added"),ke.createElement(DP,{image:r,onElementLoad:this.props.onCurrentImageLoad}),ke.createElement("div",{className:"image-diff-footer"},ke.createElement("span",{className:"strong"},"W:")," ",n.width,"px | ",ke.createElement("span",{className:"strong"},"H:")," ",n.height,"px | ",ke.createElement("span",{className:"strong"},"Size:")," ",Zg(r.bytes,2,!1)))),ke.createElement("div",{className:"image-diff-summary"},"Diff:"," ",ke.createElement("span",{className:hs()({added:o>0,removed:o<0})},0!==o?`${a}${Zg(o,2,!1)} (${i})`:"No size difference")))}}class PP extends ke.Component{render(){const e={height:this.props.maxSize.height,width:this.props.maxSize.width},t={maxHeight:this.props.maxSize.height,maxWidth:this.props.maxSize.width};return ke.createElement("div",{className:"image-diff-difference",ref:this.props.onContainerRef},ke.createElement("div",{className:"sizing-container"},ke.createElement("div",{className:"image-container",style:e},ke.createElement("div",{className:"image-diff-previous"},ke.createElement(DP,{image:this.props.previous,onElementLoad:this.props.onPreviousImageLoad,style:t})),ke.createElement("div",{className:"image-diff-current"},ke.createElement(DP,{image:this.props.current,onElementLoad:this.props.onCurrentImageLoad,style:{...t,mixBlendMode:"difference"}})))))}}class IP extends ke.Component{constructor(e){super(e),this.state={crossfade:1}}render(){const e={height:this.props.maxSize.height,width:this.props.maxSize.width},t={maxHeight:this.props.maxSize.height,maxWidth:this.props.maxSize.width};return ke.createElement("div",{className:"image-diff-onion-skin"},ke.createElement("input",{style:{width:this.props.maxSize.width/2},className:"slider",type:"range",max:100,min:0,value:this.state.crossfade,step:.1,onChange:this.onValueChange}),ke.createElement("div",{className:"sizing-container",ref:this.props.onContainerRef},ke.createElement("div",{className:"image-container",style:e},ke.createElement("div",{className:"image-diff-previous",style:e},ke.createElement(DP,{image:this.props.previous,onElementLoad:this.props.onPreviousImageLoad,style:t})),ke.createElement("div",{className:"image-diff-current",style:{...e,opacity:this.state.crossfade/100}},ke.createElement(DP,{image:this.props.current,onElementLoad:this.props.onCurrentImageLoad,style:t})))))}onValueChange=e=>{this.setState({crossfade:e.currentTarget.valueAsNumber})}}class _P extends ke.Component{constructor(e){super(e),this.state={percentage:0}}render(){const e={height:this.props.maxSize.height,width:this.props.maxSize.width},t=this.props.maxSize.width*(1-this.state.percentage/100),n={position:"absolute",top:0,left:0,height:this.props.maxSize.height,width:this.props.maxSize.width,clipPath:`inset(0 ${Math.floor(t)}px 0 0)`},r={position:"absolute",top:0,left:0,height:this.props.maxSize.height,width:this.props.maxSize.width,clipPath:`inset(0 0 0 ${Math.floor(this.props.maxSize.width-t)}px)`},s={maxHeight:this.props.maxSize.height,maxWidth:this.props.maxSize.width};return ke.createElement("div",{className:"image-diff-swipe"},ke.createElement("input",{style:{width:this.props.maxSize.width+14},className:"slider",type:"range",max:100,min:0,value:this.state.percentage,step:.1,onChange:this.onValueChange}),ke.createElement("div",{className:"sizing-container",ref:this.props.onContainerRef},ke.createElement("div",{className:"image-container",style:e},ke.createElement("div",{className:"image-diff-previous",style:n},ke.createElement(DP,{image:this.props.previous,onElementLoad:this.props.onPreviousImageLoad,style:s})),ke.createElement("div",{className:"image-diff-current",style:r},ke.createElement(DP,{image:this.props.current,onElementLoad:this.props.onCurrentImageLoad,style:s})))))}onValueChange=e=>{const t=e.currentTarget.valueAsNumber;this.setState({percentage:t})}}function FP(e,t){const n=t.height<e.height?e.height/t.height:1,r=t.width<e.width?e.width/t.width:1;let s=Math.max(1,r);return r<n&&(s=Math.max(1,n)),{width:e.width/s,height:e.height/s}}class NP extends ke.Component{container=null;resizeObserver;resizedTimeoutID=null;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>{for(const{target:t,contentRect:n}of e)t===this.container&&t instanceof HTMLElement&&(null!==this.resizedTimeoutID&&clearImmediate(this.resizedTimeoutID),this.resizedTimeoutID=setImmediate(this.onResized,t,n))})),this.state={previousImageSize:null,currentImageSize:null,containerSize:null}}onPreviousImageLoad=e=>{const t={width:e.naturalWidth,height:e.naturalHeight};this.setState({previousImageSize:t})};onCurrentImageLoad=e=>{const t={width:e.naturalWidth,height:e.naturalHeight};this.setState({currentImageSize:t})};onResized=(e,t)=>{this.resizedTimeoutID=null;const n={width:e.offsetWidth,height:e.offsetHeight};this.setState({containerSize:n})};getMaxSize(){const e={width:0,height:0,containerWidth:0},t=this.state.containerSize;if(!t)return e;const{previousImageSize:n,currentImageSize:r}=this.state;if(!n||!r)return e;const s=function(e,t,n){const r=FP(e,n),s=FP(t,n);return{width:Math.max(r.width,s.width),height:Math.max(r.height,s.height)}}(n,r,t);return s}onContainerRef=e=>{this.container=e,this.resizeObserver.disconnect(),e&&this.resizeObserver.observe(e)};render(){return ke.createElement("div",{className:"panel image",id:"diff"},ke.createElement(LM,{selectedIndex:this.props.diffType,onTabClicked:this.props.onChangeDiffType,type:NM.Switch},ke.createElement("span",null,"2-up"),ke.createElement("span",null,"Swipe"),ke.createElement("span",null,"Onion Skin"),ke.createElement("span",null,"Difference")),this.renderCurrentDiffType())}renderCurrentDiffType(){const e=this.getMaxSize(),t=this.props.diffType;switch(t){case Zu.TwoUp:return ke.createElement(MP,{...this.getCommonProps(e),previousImageSize:this.state.previousImageSize,currentImageSize:this.state.currentImageSize});case Zu.Swipe:return ke.createElement(_P,{...this.getCommonProps(e)});case Zu.OnionSkin:return ke.createElement(IP,{...this.getCommonProps(e)});case Zu.Difference:return ke.createElement(PP,{...this.getCommonProps(e)});default:return at(0,`Unknown diff type: ${t}`)}}getCommonProps(e){return{maxSize:e,previous:this.props.previous,current:this.props.current,onPreviousImageLoad:this.onPreviousImageLoad,onCurrentImageLoad:this.onCurrentImageLoad,onContainerRef:this.onContainerRef}}}class OP extends ke.Component{render(){return ke.createElement("div",{className:"panel image",id:"diff"},ke.createElement("div",{className:"image-diff-current"},ke.createElement("div",{className:"image-diff-header"},"Added"),ke.createElement(DP,{image:this.props.current})))}}class LP extends ke.Component{render(){return ke.createElement("div",{className:"panel image",id:"diff"},ke.createElement("div",{className:"image-diff-previous"},ke.createElement("div",{className:"image-diff-header"},"Deleted"),ke.createElement(DP,{image:this.props.previous})))}}class BP extends ke.Component{open=()=>{const e=t.join(this.props.repository.path,this.props.path);this.props.onOpenBinaryFile(e)};render(){return ke.createElement("div",{className:"panel binary",id:"diff"},ke.createElement("div",{className:"image-header"},"此二进制文件已更改"),ke.createElement("div",{className:"image-header"},ke.createElement(sM,{onClick:this.open},"使用外部程序打开文件")))}}const HP=new Array,UP=Ft(__dirname,"highlighter.js");function ZP(e,t,n,r,s){if(!e.length||!s.length)return Promise.resolve({});const i=HP.shift()||new Worker(UP);return new Promise(((o,a)=>{let l=null;const c=()=>{l&&(window.clearTimeout(l),l=null)};i.onerror=e=>{c(),i.terminate(),a(e.error||new Error(e.message))},i.onmessage=e=>{c(),HP.length<2?HP.push(i):i.terminate(),o(e.data)};const u={contentLines:e,basename:t,extension:n,tabSize:r,lines:s,addModeClass:!0};i.postMessage(u),l=window.setTimeout((()=>{i.terminate(),a(new Error("timed out"))}),5e3)}))}const $P=262144;async function WP(e,t){if(t.status.kind===Wu.New||t.status.kind===Wu.Untracked)return null;let n;if(t instanceof nh)n="HEAD";else{if(!(t instanceof rh))return at(0,"Unknown file change type");n=t.parentCommitish}return rf(e,n,kf(t),$P)}async function VP(e,n){return n.status.kind===Wu.Deleted?null:n instanceof nh?async function(e){return await new Promise(((t,n)=>{const s=new Array;let i=0;(0,r.createReadStream)(e,{start:0,end:262143}).on("data",(e=>{s.push(e),i+=e.length})).on("error",n).on("end",(()=>t(Buffer.concat(s,i))))}))}(t.join(e.path,n.path)):n instanceof rh?rf(e,n.commitish,n.path,$P):at(0,"Unknown file change type")}var qP=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,Oh.A)(this,e),this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._columnCount=0,this._rowCount=0,this.columnWidth=function(e){var n=e.index,r=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(r)?t._columnWidthCache[r]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,r=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(r)?t._rowHeightCache[r]:t._defaultHeight};var r=n.defaultHeight,s=n.defaultWidth,i=n.fixedHeight,o=n.fixedWidth,a=n.keyMapper,l=n.minHeight,c=n.minWidth;this._hasFixedHeight=!0===i,this._hasFixedWidth=!0===o,this._minHeight=l||0,this._minWidth=c||0,this._keyMapper=a||zP,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof s?s:100)}return(0,Lh.A)(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,r){var s=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[s]=r,this._cellWidthCache[s]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var s=this._keyMapper(0,t);this._columnWidthCache[s]=n}if(!this._hasFixedHeight){for(var i=0,o=0;o<this._columnCount;o++)i=Math.max(i,this.getHeight(e,o));var a=this._keyMapper(e,0);this._rowHeightCache[a]=i}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();const GP=qP;function zP(e,t){return e+"-"+t}var jP=n(791),KP=n.n(jP),YP=function(e){function t(){var e,n,r,s;(0,Oh.A)(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=(0,Bh.A)(this,(e=t.__proto__||Nh()(t)).call.apply(e,[this].concat(o))),r._cellRenderer=function(e){var t=e.parent,n=e.rowIndex,s=e.style,i=e.isScrolling,o=e.isVisible,a=e.key,l=r.props.rowRenderer;return KP()(s,"width").writable&&(s.width="100%"),l({index:n,style:s,isScrolling:i,isVisible:o,key:a,parent:t})},r._setRef=function(e){r.Grid=e},r._onScroll=function(e){var t=e.clientHeight,n=e.scrollHeight,s=e.scrollTop;(0,r.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:s})},r._onSectionRendered=function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,s=e.rowStartIndex,i=e.rowStopIndex;(0,r.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:s,stopIndex:i})},s=n,(0,Bh.A)(r,s)}return(0,Hh.A)(t,e),(0,Lh.A)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,s=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,s=e.width,i=hs()("ReactVirtualized__List",t);return ke.createElement(mp,(0,_h.A)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:s,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(ke.PureComponent);YP.defaultProps={autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,s=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,s-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,s-n),overscanStopIndex:Math.min(t-1,i+1)}},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}},YP.propTypes=null;const XP=YP;var QP=function(e){function t(){var e,n,r,s;(0,Oh.A)(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=(0,Bh.A)(this,(e=t.__proto__||Nh()(t)).call.apply(e,[this].concat(o))),r._measure=function(){var e=r.props,t=e.cache,n=e.columnIndex,s=void 0===n?0:n,i=e.parent,o=e.rowIndex,a=void 0===o?r.props.index||0:o,l=r._getCellMeasurements(),c=l.height,u=l.width;c===t.getHeight(a,s)&&u===t.getWidth(a,s)||(t.set(a,s,u,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:s,rowIndex:a}))},s=n,(0,Bh.A)(r,s)}return(0,Hh.A)(t,e),(0,Lh.A)(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=(0,Ae.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var s=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:s,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,s=e.parent,i=e.rowIndex,o=void 0===i?this.props.index||0:i;if(!t.has(o,r)){var a=this._getCellMeasurements(),l=a.height,c=a.width;t.set(o,r,c,l),s&&"function"==typeof s.invalidateCellSizeAfterRender&&s.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:o})}}}]),t}(ke.PureComponent);QP.__internalCellMeasurerFlag=!1,QP.propTypes=null;const JP=QP;class eI extends ke.Component{render(){return ke.createElement(ND,{anchor:this.props.anchor,anchorPosition:this.props.anchorPosition,decoration:FD.Balloon,onMousedownOutside:this.onDismissed,className:"whitespace-hint",appearEffect:_D.Shake,ariaLabelledby:"whitespace-hint-header",ariaDescribedBy:"whitespace-hint-message"},ke.createElement("h3",{id:"whitespace-hint-header"},"Show whitespace changes?"),ke.createElement("p",{id:"whitespace-hint-message",className:"byline"},"Selecting lines is disabled when hiding whitespace changes."),ke.createElement("div",{className:"popover-footer"},ke.createElement(DM,{okButtonText: "确定",cancelButtonText: "取消",onCancelButtonClick:this.onDismissed,onOkButtonClick:this.onShowWhitespaceChanges})))}onShowWhitespaceChanges=e=>{e.preventDefault(),this.props.onHideWhitespaceInDiffChanged(!1),this.props.onDismissed()};onDismissed=e=>{e?.preventDefault(),this.props.onDismissed()}}const tI={w:12,h:12,p:["M10.5303 2.96967C10.8232 3.26256 10.8232 3.73744 10.5303 4.03033L5.03033 9.53033C4.73744 9.82322 4.26256 9.82322 3.96967 9.53033L1.46967 7.03033C1.17678 6.73744 1.17678 6.26256 1.46967 5.96967C1.76256 5.67678 2.23744 5.67678 2.53033 5.96967L4.5 7.93934L9.46967 2.96967C9.76256 2.67678 10.2374 2.67678 10.5303 2.96967Z"]},nI={w:12,h:12,p:["m1.3125 6c0-.41421.33579-.75.75-.75h7.875c.4142 0 .75.33579.75.75s-.3358.75-.75.75h-7.875c-.41421 0-.75-.33579-.75-.75z"]},rI={w:16,h:8,p:["m 16,1 0,3 c 0,0.55 -0.45,1 -1,1 l -3,0 0,2 -3,-3 3,-3 0,2 2,0 0,-2 2,0 z M 8,4 C 8,6.2 6.2,8 4,8 1.8,8 0,6.2 0,4 0,1.8 1.8,0 4,0 6.2,0 8,1.8 8,4 Z M 1.5,5.66 5.66,1.5 C 5.18,1.19 4.61,1 4,1 2.34,1 1,2.34 1,4 1,4.61 1.19,5.17 1.5,5.66 Z M 7,4 C 7,3.39 6.81,2.83 6.5,2.34 L 2.34,6.5 C 2.82,6.81 3.39,7 4,7 5.66,7 7,5.66 7,4 Z"]};var sI,iI,oI;!function(e){e.Added="+",e.Deleted="-",e.Nothing=" "}(sI||(sI={}));class aI extends ke.Component{constructor(e){super(e),this.state={showWhitespaceHint:void 0}}render(){const{row:e,showSideBySideDiff:t,beforeClassNames:n,afterClassNames:r,isDiffSelectable:s}=this.props,i=hs()("row",{"has-check-all-control":this.props.showDiffCheckMarks&&s}),o=hs()("before",...n),a=hs()("after",...r);switch(e.type){case af.Hunk:{const t=hs()("hunk-info",i,{"expandable-both":e.expansionType===Uu.Both});return ke.createElement("div",{className:t,role:"cell"},this.renderHunkHeaderGutter(e.hunkIndex,e.expansionType),this.renderContentFromString(e.content))}case af.Context:const n=hs()("context",i),{beforeLineNumber:r,afterLineNumber:s}=e;return t?ke.createElement("div",{className:n,role:"cell"},ke.createElement("div",{className:"before"},this.renderLineNumber(r,lf.Before),this.renderContentFromString(e.content,e.beforeTokens)),ke.createElement("div",{className:"after"},this.renderLineNumber(s,lf.After),this.renderContentFromString(e.content,e.afterTokens))):ke.createElement("div",{className:n,role:"cell"},ke.createElement("div",{className:"before"},this.renderLineNumbers([r,s],void 0),this.renderContentFromString(e.content,e.beforeTokens)));case af.Added:{const{lineNumber:n,isSelected:r}=e.data,s=hs()("added",i);return t?ke.createElement("div",{className:s,role:"cell"},ke.createElement("div",{className:o},this.renderLineNumber(void 0,lf.Before),this.renderContentFromString(""),this.renderWhitespaceHintPopover(lf.Before)),this.renderHunkHandle(),ke.createElement("div",{className:a},this.renderLineNumber(n,lf.After,r),this.renderContent(e.data,sI.Added),this.renderWhitespaceHintPopover(lf.After))):ke.createElement("div",{className:s,role:"cell"},this.renderHunkHandle(),ke.createElement("div",{className:a},this.renderLineNumbers([void 0,n],lf.After,r),this.renderContent(e.data,sI.Added),this.renderWhitespaceHintPopover(lf.After)))}case af.Deleted:{const{lineNumber:n,isSelected:r}=e.data,s=hs()("deleted",i);return t?ke.createElement("div",{className:s,role:"cell"},ke.createElement("div",{className:o},this.renderLineNumber(n,lf.Before,r),this.renderContent(e.data,sI.Deleted),this.renderWhitespaceHintPopover(lf.Before)),this.renderHunkHandle(),ke.createElement("div",{className:a},this.renderLineNumber(void 0,lf.After),this.renderContentFromString("",[]),this.renderWhitespaceHintPopover(lf.After))):ke.createElement("div",{className:s,role:"cell"},this.renderHunkHandle(),ke.createElement("div",{className:o},this.renderLineNumbers([n,void 0],lf.Before,r),this.renderContent(e.data,sI.Deleted),this.renderWhitespaceHintPopover(lf.Before)))}case af.Modified:{const{beforeData:t,afterData:n}=e,r=hs()("modified",i);return ke.createElement("div",{className:r,role:"cell"},ke.createElement("div",{className:o},this.renderLineNumber(t.lineNumber,lf.Before,t.isSelected),this.renderContent(t,sI.Deleted),this.renderWhitespaceHintPopover(lf.Before)),this.renderHunkHandle(),ke.createElement("div",{className:a},this.renderLineNumber(n.lineNumber,lf.After,n.isSelected),this.renderContent(n,sI.Added),this.renderWhitespaceHintPopover(lf.After)))}}}shouldComponentUpdate(e,t){if(!wp(this.state,t))return!0;const{row:n,...r}=this.props,{row:s,...i}=e;return!yp(n,s)||!wp(r,i)}renderContentFromString(e,t=[],n=sI.Nothing){return this.renderContent({content:e,tokens:t,noNewLineIndicator:!1})}renderContent(e,t=sI.Nothing){return ke.createElement("div",{className:"content"},ke.createElement("div",{className:"prefix"},"  ",t,"  "),ke.createElement("div",{className:"content-wrapper"},0===e.content.length&&ke.createElement("br",null),function(e,t){const n=[];let r={content:"",tokens:new Map};for(let s=0;s<e.length;s++){const i=e[s],o=new Map;for(const[e,t]of r.tokens)t>s&&o.set(e,t);for(const e of t)if(void 0!==e[s]&&e[s].length>0){const t=e[s].token.split(" "),n=s+e[s].length;for(const e of t){const t=o.get(e);(void 0===t||n>t)&&o.set(e,n)}}Cp(r.tokens,o)?(r.content+=i,r.tokens=o):(n.push({tokens:r.tokens,content:r.content}),r={content:i,tokens:o})}return n.push({tokens:r.tokens,content:r.content}),ke.createElement(ke.Fragment,null,n.map(((e,t)=>0===e.tokens.size?e.content:ke.createElement("span",{key:t,className:hs()([...e.tokens.keys()].map((e=>`cm-${e}`)))},e.content))))}(e.content,e.tokens),e.noNewLineIndicator&&ke.createElement(Rs,{symbol:rI,title:"文件末尾没有换行符"})))}getHunkExpansionElementInfo(e,t){switch(t){case Uu.Up:return{icon:ea,title:"展开上方",handler:this.onExpandHunk(e,t)};case Uu.Down:return{icon:Jo,title:"展开下方",handler:this.onExpandHunk(e-1,t)};case Uu.Short:return{icon:Qo,title:"全部展开",handler:this.onExpandHunk(e,t)}}throw new Error(`Unexpected expansion type ${t}`)}get lineGutterWidth(){const{showSideBySideDiff:e,lineNumberWidth:t,isDiffSelectable:n,showDiffCheckMarks:r}=this.props;return(e?t:2*t)+(n&&r?20:0)}renderHunkExpansionHandle(e,t){const n=this.lineGutterWidth;if(t===Uu.None)return ke.createElement("div",{className:"hunk-expansion-handle",style:{width:n}},ke.createElement("div",{className:"hunk-expansion-placeholder"}));const r=this.getHunkExpansionElementInfo(e,t);return ke.createElement("div",{className:"hunk-expansion-handle selectable hoverable",style:{width:n}},ke.createElement(Ss,{onClick:r.handler,onContextMenu:this.props.onContextMenuExpandHunk,tooltip:r.title,toolTipDirection:gs.SOUTH,ariaLabel:r.title,onButtonRef:this.getOnHunkExpansionRef(e,t)},ke.createElement(Rs,{symbol:r.icon})))}getOnHunkExpansionRef=(e,t)=>n=>{this.props.onHunkExpansionRef(e,t,n)};renderHunkHeaderGutter(e,t){return t===Uu.Both?ke.createElement("div",null,this.renderHunkExpansionHandle(e,Uu.Down),this.renderHunkExpansionHandle(e,Uu.Up)):this.renderHunkExpansionHandle(e,t)}renderHunkHandle(){const{isDiffSelectable:e,rowSelectableGroup:t,row:n}=this.props;if(!e)return null;if(!cf(n))return null;if(null===t)return this.renderHunkHandlePlaceHolder();const{height:r,selectionState:s,staticData:i,isCheckAllRenderedInRow:o,isFirst:a}=t;if(!o)return this.renderHunkHandlePlaceHolder(s);const{lineNumbers:l,lineNumbersIdentifiers:c,diffType:u}=i,h=1===c.length,p={height:r},d=hs()("hunk-handle","hoverable",{selected:s!==Hu.None}),m=c.join("-"),f=ke.createElement("label",{htmlFor:m,onMouseEnter:this.onMouseEnterHunk,onMouseLeave:this.onMouseLeaveHunk,onContextMenu:this.onContextMenuHunk,className:d,style:p},ke.createElement("span",{className:"focus-handle"},!this.props.showDiffCheckMarks&&ke.createElement("div",{className:"increased-hover-surface",style:{height:r}}),!h&&this.getCheckAllOcticon(s,a),!h&&ke.createElement("span",{className:"sr-only"}," ","Lines ",l.at(0)," 到 ",l.at(-1)," ",u===af.Added?"added":u===af.Deleted?"deleted":"modified"))),g=ke.createElement("input",{className:"sr-only",id:m,type:"checkbox","aria-controls":c.join(" "),"aria-checked":s===Hu.All||s===Hu.Partial&&"mixed",onChange:this.onClickHunk,onFocus:this.onHunkFocus,onBlur:this.onHunkBlur,onContextMenu:this.onContextMenuHunk});return ke.createElement(ke.Fragment,null,!h&&g,f,this.renderHunkHandlePlaceHolder(s))}renderHunkHandlePlaceHolder=e=>ke.createElement("div",{className:hs()("hunk-handle-place-holder",{selected:e!==Hu.None})});getCheckAllOcticon=(e,t)=>t&&this.props.showDiffCheckMarks?e===Hu.All?ke.createElement(Rs,{symbol:tI}):e===Hu.Partial?ke.createElement(Rs,{symbol:nI}):null:null;getLineNumbersContainerID(e){return`line-numbers-${this.props.numRow}-${e}`}renderLineNumbers(e,t,n){const r=void 0===t?void 0:this.getLineNumbersContainerID(t),s=this.props.isDiffSelectable&&void 0!==n,i=hs()("line-number",{selectable:s,hoverable:s,"line-selected":n,hover:this.props.rowSelectableGroup?.isHovered}),o=e.filter((e=>void 0!==e)).at(0);if(void 0===o)return null;const a=`${o}-${t===lf.After?"after":"before"}`;return ke.createElement("div",{id:r,className:i,style:{width:this.lineGutterWidth},onMouseDown:this.onMouseDownLineNumber},s&&this.renderLineNumberCheckbox(a,!0===n),ke.createElement("label",{htmlFor:a,onContextMenu:this.onContextMenuLineNumber},this.renderLineNumberCheck(n),e.map(((e,r)=>ke.createElement("span",{key:r},e&&ke.createElement("span",{className:"sr-only"},"Line "),e,e&&void 0!==n&&ke.createElement("span",{className:"sr-only"},t===lf.After?" added":" deleted"))))))}renderLineNumberCheck(e){return this.props.isDiffSelectable&&this.props.showDiffCheckMarks?ke.createElement("div",{className:"line-number-check"},e?ke.createElement(Rs,{symbol:tI}):null):null}renderLineNumberCheckbox(e,t){return ke.createElement("input",{onContextMenu:this.onContextMenuLineNumber,className:"sr-only",id:e,type:"checkbox",onChange:this.onLineNumberCheckboxChange,checked:t})}renderWhitespaceHintPopover(e){if(this.state.showWhitespaceHint!==e)return;const t=`line-numbers-${this.props.numRow}-${e}`,n=document.getElementById(t);if(null===n)return;const r=e===lf.Before?ID.LeftTop:ID.RightTop;return ke.createElement(eI,{anchor:n,anchorPosition:r,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,onDismissed:this.onWhitespaceHintClose})}onWhitespaceHintClose=()=>{this.setState({showWhitespaceHint:void 0})};renderLineNumber(e,t,n){return this.renderLineNumbers([e],t,n)}getDiffColumn(e){const{row:t}=this.props;switch(t.type){case af.Added:return lf.After;case af.Deleted:return lf.Before;case af.Modified:return e?.closest(".after")?lf.After:lf.Before}return null}getDiffData(e){const{row:t}=this.props;switch(t.type){case af.Added:case af.Deleted:return t.data;case af.Modified:return e?.closest(".after")?t.afterData:t.beforeData}return null}onLineNumberCheckboxChange=({currentTarget:e})=>{const t=this.getDiffColumn(e);null!==t&&(this.props.hideWhitespaceInDiff?this.setState({showWhitespaceHint:t}):this.props.onLineNumberCheckedChanged(this.props.numRow,t,e.checked))};onMouseDownLineNumber=e=>{if(2===e.buttons)return;const t=this.getDiffColumn(e.currentTarget),n=this.getDiffData(e.currentTarget);null!==t&&(this.props.hideWhitespaceInDiff?this.setState({showWhitespaceHint:t}):null!==n&&this.props.onStartSelection(this.props.numRow,t,!n.isSelected))};onMouseEnterHunk=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseEnterHunk(this.props.row.hunkStartLine)};onMouseLeaveHunk=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseLeaveHunk(this.props.row.hunkStartLine)};onHunkFocus=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseEnterHunk(this.props.row.hunkStartLine)};onHunkBlur=()=>{"hunkStartLine"in this.props.row&&this.props.onMouseLeaveHunk(this.props.row.hunkStartLine)};onExpandHunk=(e,t)=>()=>{this.props.onExpandHunk(e,t)};onClickHunk=()=>{if(this.props.hideWhitespaceInDiff){const{row:e}=this.props,t=e.type===af.Added?lf.After:lf.Before;return void this.setState({showWhitespaceHint:t})}const e=this.getDiffData();null!==e&&"hunkStartLine"in this.props.row&&this.props.onClickHunk(this.props.row.hunkStartLine,!e.isSelected)};onContextMenuLineNumber=e=>{if(this.props.hideWhitespaceInDiff)return;const t=this.getDiffData(e.currentTarget);null!==t&&null!==t.diffLineNumber&&this.props.onContextMenuLine(t.diffLineNumber)};onContextMenuHunk=()=>{this.props.hideWhitespaceInDiff||"hunkStartLine"in this.props.row&&this.props.onContextMenuHunk(this.props.row.hunkStartLine)}}function lI(e,t){const n=e.find((e=>t>=e.unifiedDiffStart&&t<=e.unifiedDiffEnd));return n||null}function cI(e,t){const n=function(e,t){const n=lI(e,t);if(!n)return null;const r=t-n.unifiedDiffStart;let s=hI(null,n.lines[r]),i=null;for(let e=r-1;e>=0;e--){const t=n.lines[e];if(!t.isIncludeableLine()){const t=e+1;i=n.unifiedDiffStart+t;break}s=hI(s,t)}const o=null!==i?i:n.unifiedDiffStart+1;let a=null;for(let e=r+1;e<n.lines.length;e++){const t=n.lines[e];if(!t.isIncludeableLine()){const t=e-1;a=n.unifiedDiffStart+t;break}s=hI(s,t)}return{from:o,to:null!==a?a:n.unifiedDiffEnd,type:s}}(e,t);if(null===n)return null;const r=uI(e,n.from),s=uI(e,n.to);return null===r||null===s?null:{...n,from:r,to:s}}function uI(e,t){const n=function(e,t){const n=function(e,t){const n=lI(e,t);if(!n)return null;const r=n.lines[t-n.unifiedDiffStart];return r?{hunk:n,line:r}:null}(e,t);return null===n?null:n.line}(e,t);return null===n?null:n.originalLineNumber}function hI(e,t){return t.type!==Bu.Add&&t.type!==Bu.Delete?e:null===e?t.type===Bu.Add?iI.Additions:iI.Deletions:e===iI.Mixed?e:t.type===Bu.Add&&e!==iI.Additions||t.type===Bu.Delete&&e!==iI.Deletions?iI.Mixed:e}function pI(e,t){return void 0!==t&&null!==e&&void 0!==t[e-1]?t[e-1]:null}!function(e){e[e.Additions=0]="Additions",e[e.Deletions=1]="Deletions",e[e.Mixed=2]="Mixed"}(iI||(iI={}));class dI extends ke.Component{constructor(e){super(e),this.state={value:""}}render(){return ke.createElement("div",{className:"diff-search"},ke.createElement(nx,{placeholder:"Search…",displayClearButton:!0,autoFocus:!0,onValueChanged:this.onChange,onKeyDown:this.onKeyDown,onBlur:this.onBlur,value:this.state.value}))}onChange=e=>{this.setState({value:e})};onBlur=()=>{this.props.onClose()};onKeyDown=e=>{"Escape"!==e.key||e.defaultPrevented?"Enter"!==e.key||e.defaultPrevented||(e.preventDefault(),this.props.onSearch(this.state.value,e.shiftKey?"previous":"next")):(e.preventDefault(),this.props.onClose())}}!function(e){e[e.UnicodeBidiCharacters=0]="UnicodeBidiCharacters",e[e.LineEndingsChange=1]="LineEndingsChange"}(oI||(oI={}));class mI extends Re().Component{render(){const e=this.getTextDiffWarningItems();return 0===e.length?null:Re().createElement("div",{className:"diff-contents-warning-container"},e.map(((e,t)=>Re().createElement("div",{className:"diff-contents-warning",key:t},Re().createElement(Rs,{symbol:xs}),this.getWarningMessageForItem(e)))))}getTextDiffWarningItems(){const e=new Array,{diff:t}=this.props;return t.hasHiddenBidiChars&&e.push({type:oI.UnicodeBidiCharacters}),t.lineEndingsChange&&e.push({type:oI.LineEndingsChange,lineEndingsChange:t.lineEndingsChange}),e}getWarningMessageForItem(e){switch(e.type){case oI.UnicodeBidiCharacters:return Re().createElement(Re().Fragment,null,"This diff contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters."," ",Re().createElement(sM,{uri:"https://github.co/hiddenchars"},"Learn more about bidirectional Unicode characters"));case oI.LineEndingsChange:const{lineEndingsChange:t}=e;return Re().createElement(Re().Fragment,null,"This diff contains a change in line endings from '",t.from,"' to '",t.to,"'.")}}}var fI=n(5248),gI=n.n(fI);const yI=(e,t)=>{const n=(e=>(e=>e.nodeType===Node.ELEMENT_NODE)(e)?e:e.parentElement)(e)?.closest("div[role=row]");if(n&&t.contains(n)){const e=null!==n.ariaRowIndex?parseInt(n.ariaRowIndex,10):NaN;return isNaN(e)?void 0:e}},wI=new GP({defaultHeight:20,fixedWidth:!0});class bI extends ke.Component{virtualListRef=ke.createRef();diffContainer=null;diffToRestore=null;textSelectionStartRow=void 0;textSelectionEndRow=void 0;renderedStartIndex=0;renderedStopIndex=void 0;hunkExpansionRefs=new Map;ariaLiveChangeSignal=!1;rowSelectableGroupStaticDataCache=new Map;constructor(e){super(e),this.state={diff:e.diff,isSearching:!1,selectedSearchResult:void 0,selectingTextInRow:"before",lastExpandedHunk:null,ariaLiveMessage:""}}componentDidMount(){this.initDiffSyntaxMode(),window.addEventListener("keydown",this.onWindowKeyDown),document.addEventListener("find-text",this.showSearch),document.addEventListener("cut",this.onCutOrCopy),document.addEventListener("copy",this.onCutOrCopy),document.addEventListener("selectionchange",this.onDocumentSelectionChange),this.addContextMenuListenerToDiff()}addContextMenuListenerToDiff=()=>{const e=(0,Ae.findDOMNode)(this.virtualListRef.current),t=e instanceof HTMLElement?e:null;t?.addEventListener("contextmenu",this.onContextMenuText)};removeContextMenuListenerFromDiff=()=>{const e=(0,Ae.findDOMNode)(this.virtualListRef.current),t=e instanceof HTMLElement?e:null;t?.removeEventListener("contextmenu",this.onContextMenuText)};onCutOrCopy=e=>{if(e.defaultPrevented||!this.isEntireDiffSelected())return;const t=!!this.props.showSideBySideDiff&&("before"===this.state.selectingTextInRow?Bu.Add:Bu.Delete),n=this.state.diff.hunks.flatMap((e=>e.lines.filter((e=>e.type!==t)).map((e=>e.content)))).join("\n");e.preventDefault(),e.clipboardData?.setData("text/plain",n)};onDocumentSelectionChange=e=>{if(!this.diffContainer)return;const t=document.getSelection();if(this.textSelectionStartRow=void 0,this.textSelectionEndRow=void 0,!t||t.isCollapsed)return;if(!t.containsNode(this.diffContainer,!0))return;if(this.isEntireDiffSelected(t))return;const n=t.getRangeAt(0),{startContainer:r,endContainer:s}=n;let i=yI(r,this.diffContainer);if(void 0===i){const e=this.diffContainer.querySelector("div[role=row]:first-child");e&&n.intersectsNode(e)&&(i=yI(e,this.diffContainer))}if(void 0===i)return;let o=yI(s,this.diffContainer);if(void 0===o){const e=this.diffContainer.querySelector("div[role=row]:last-child");e&&n.intersectsNode(e)&&(o=yI(e,this.diffContainer))}this.textSelectionStartRow=i,this.textSelectionEndRow=o};isEntireDiffSelected(e=document.getSelection()){const{diffContainer:t}=this;if(0===e?.rangeCount)return!1;const n=e?.getRangeAt(0).commonAncestorContainer;return n===t}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown),document.removeEventListener("mouseup",this.onEndSelection),document.removeEventListener("find-text",this.showSearch),document.removeEventListener("selectionchange",this.onDocumentSelectionChange),document.removeEventListener("mousemove",this.onUpdateSelection),this.removeContextMenuListenerFromDiff()}componentDidUpdate(e,t){if(CI(this.props,e,this.state,t)||(this.initDiffSyntaxMode(),this.clearListRowsHeightCache()),mf(this.props.diff,e.diff)||(this.diffToRestore=null,this.setState({diff:this.props.diff,lastExpandedHunk:null}),this.rowSelectableGroupStaticDataCache.clear()),null!==this.virtualListRef.current&&this.props.file.id!==e.file.id){if(this.virtualListRef.current.scrollToPosition(0),this.textSelectionStartRow=void 0,this.textSelectionEndRow=void 0,this.diffContainer){const e=document.getSelection();e?.containsNode(this.diffContainer,!0)&&e.empty()}this.rowSelectableGroupStaticDataCache.clear()}e.showSideBySideDiff!==this.props.showSideBySideDiff&&this.rowSelectableGroupStaticDataCache.clear(),this.state.lastExpandedHunk!==t.lastExpandedHunk&&this.focusAfterLastExpandedHunkChange()}focusListElement=()=>{const e=(0,Ae.findDOMNode)(this.virtualListRef.current),t=e instanceof HTMLElement?e:null;t?.focus()};focusAfterLastExpandedHunkChange(){if(null===this.state.lastExpandedHunk)return;if(0===this.hunkExpansionRefs.size)return void this.focusListElement();const e=Array.from(this.hunkExpansionRefs.keys()).sort(),{hunkIndex:t,expansionType:n}=this.state.lastExpandedHunk,r=`${t}-${n}`,s=this.hunkExpansionRefs.get(r);if(s)return void s.focus();function i(e){return parseInt(e.split("-").at(0)||"",10)}const o=e.find((e=>i(e)>=t));if(o){const e=this.hunkExpansionRefs.get(o);return void e?.focus()}const a=e.reverse().find((e=>i(e)<=t));if(a){const e=this.hunkExpansionRefs.get(a);e?.focus()}else this.focusListElement()}canExpandDiff(){const e=this.props.fileContents;return null!==e&&e.canBeExpanded&&e.newContents.length>0}onDiffContainerRef=e=>{null===e?this.diffContainer?.removeEventListener("select-all",this.onSelectAll):e.addEventListener("select-all",this.onSelectAll),this.diffContainer=e};getCurrentDiffRows(){const{diff:e}=this.state;return vI(e,this.props.showSideBySideDiff,this.canExpandDiff())}onRowsRendered=e=>{this.renderedStartIndex=e.startIndex,this.renderedStopIndex=e.stopIndex};render(){const{diff:e,ariaLiveMessage:t,isSearching:n}=this.state,r=this.getCurrentDiffRows(),s=hs()("side-by-side-diff-container",{"unified-diff":!this.props.showSideBySideDiff,[`selecting-${this.state.selectingTextInRow}`]:this.props.showSideBySideDiff&&void 0!==this.state.selectingTextInRow,editable:hf(this.props.file)});return ke.createElement("div",{className:s,onMouseDown:this.onMouseDown,onKeyDown:this.onKeyDown},ke.createElement(mI,{diff:e}),n&&ke.createElement(dI,{onSearch:this.onSearch,onClose:this.onSearchCancel}),ke.createElement("div",{className:"side-by-side-diff cm-s-default",ref:this.onDiffContainerRef},ke.createElement(LC,{message:t,trackedUserInput:this.ariaLiveChangeSignal}),ke.createElement(Zh,{onResize:this.clearListRowsHeightCache},(({height:e,width:t})=>ke.createElement(XP,{deferredMeasurementCache:wI,width:t,height:e,rowCount:r.length,rowHeight:this.getRowHeight,rowRenderer:this.renderRow,onRowsRendered:this.onRowsRendered,ref:this.virtualListRef,overscanIndicesGetter:this.overscanIndicesGetter,isSearching:n,selectedSearchResult:this.state.selectedSearchResult,searchQuery:this.state.searchQuery,showSideBySideDiff:this.props.showSideBySideDiff,beforeTokens:this.state.beforeTokens,afterTokens:this.state.afterTokens,temporarySelection:this.state.temporarySelection,hoveredHunk:this.state.hoveredHunk,showDiffCheckMarks:this.props.showDiffCheckMarks,isSelectable:hf(this.props.file),fileSelection:this.getSelection(),rows:r})))))}overscanIndicesGetter=e=>{const[t,n]=[this.textSelectionStartRow,this.textSelectionEndRow];if(void 0===t||void 0===n)return Jh(e);const r=Math.min(t,e.startIndex),s=Math.max(e.stopIndex,Math.min(e.cellCount-1,n));return Jh({...e,startIndex:r,stopIndex:s})};getRowSelectableGroupDetails(e){const{diff:t,hoveredHunk:n}=this.state,r=vI(t,this.props.showSideBySideDiff,this.canExpandDiff()),s=r[e];if(void 0===s||!cf(s))return null;const{hunkStartLine:i}=s,o=this.getRowSelectableGroupStaticData(i,r),{diffRowStartIndex:a,diffRowStopIndex:l}=o,c=a===e;return{isFirst:c,isCheckAllRenderedInRow:c||a<this.renderedStartIndex&&e===this.renderedStartIndex,isHovered:n===i,selectionState:this.getSelectableGroupSelectionState(t.hunks,i),height:this.getRowSelectableGroupHeight(a,l),staticData:o}}getSelectableGroupSelectionState(e,t){const n=this.getSelection();if(void 0===n)return Hu.None;const r=cI(e,t);if(null===r)return Hu.None;const{from:s,to:i}=r;return n.isRangeSelected(s,i-s+1)}getRowSelectableGroupHeight=(e,t)=>{const n=e>this.renderedStartIndex?e:this.renderedStartIndex,r=void 0!==this.renderedStopIndex&&t>this.renderedStopIndex+10?this.renderedStopIndex+10:t;let s=0;for(let e=n;e<=r;e++)s+=this.getRowHeight({index:e});return s};getSelectableGroupRowIndexRange(e,t){const n=t.findIndex((t=>cf(t)&&t.hunkStartLine===e));let r=n;for(;void 0!==t[r+1]&&cf(t[r+1]);)r++;return{diffRowStartIndex:n,diffRowStopIndex:r}}getRowSelectableGroupStaticData=(e,t)=>{const n=this.rowSelectableGroupStaticDataCache.get(e);if(void 0!==n)return n;const{diffRowStartIndex:r,diffRowStopIndex:s}=this.getSelectableGroupRowIndexRange(e,t),i=new Set;let o=!1,a=!1;const l=t.slice(r,s+1),c=[];for(const e of l)e.type===af.Added&&(i.add(e.data.lineNumber),o=!0,c.push(`${e.data.lineNumber}-after`)),e.type===af.Deleted&&(i.add(e.data.lineNumber),a=!0,c.push(`${e.data.lineNumber}-before`)),e.type===af.Modified&&(o=!0,a=!0,i.add(e.beforeData.lineNumber),i.add(e.afterData.lineNumber),c.push(`${e.beforeData.lineNumber}-before`,`${e.afterData.lineNumber}-after`));const u={diffRowStartIndex:r,diffRowStopIndex:s,diffType:o&&a?af.Modified:o?af.Added:af.Deleted,lineNumbers:Array.from(i).sort(),lineNumbersIdentifiers:c};return this.rowSelectableGroupStaticDataCache.set(e,u),u};renderRow=({index:e,parent:t,style:n,key:r})=>{const{diff:s}=this.state,i=vI(s,this.props.showSideBySideDiff,this.canExpandDiff()),o=i[e];if(void 0===o)return null;const a=i[e-1],l=i[e+1],c=df(o,a,l,af.Deleted),u=df(o,a,l,af.Added),h=(d=s.maxLineNumber,p=Math.log(d)*Math.LOG10E+1|0,10*Math.max(p,3)+5);var p,d;const m=this.createFullRow(o,e),f=this.getRowSelectableGroupDetails(e);return ke.createElement(JP,{cache:wI,columnIndex:0,key:r,parent:t,rowIndex:e},ke.createElement("div",{key:r,style:n,role:"row","aria-rowindex":e},ke.createElement(aI,{row:m,lineNumberWidth:h,numRow:e,isDiffSelectable:hf(this.props.file),rowSelectableGroup:f,showSideBySideDiff:this.props.showSideBySideDiff,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showDiffCheckMarks:this.props.showDiffCheckMarks,onStartSelection:this.onStartSelection,onMouseEnterHunk:this.onMouseEnterHunk,onMouseLeaveHunk:this.onMouseLeaveHunk,onExpandHunk:this.onExpandHunk,onClickHunk:this.onClickHunk,onContextMenuLine:this.onContextMenuLine,onContextMenuHunk:this.onContextMenuHunk,onContextMenuExpandHunk:this.onContextMenuExpandHunk,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,beforeClassNames:c,afterClassNames:u,onHunkExpansionRef:this.onHunkExpansionRef,onLineNumberCheckedChanged:this.onLineNumberCheckedChanged})))};onLineNumberCheckedChanged=(e,t,n)=>{if(void 0===this.props.onIncludeChanged)return;let r=this.getSelection();if(void 0===r)return;const s=this.getDiffLineNumber(e,t),i=this.getDiffLineNumber(e,t);null!==s&&(r=r.withLineSelection(s,n)),null!==i&&(r=r.withLineSelection(i,n)),this.props.onIncludeChanged(r)};onHunkExpansionRef=(e,t,n)=>{const r=`${e}-${t}`;null===n?this.hunkExpansionRefs.delete(r):this.hunkExpansionRefs.set(r,n)};getRowHeight=e=>wI.rowHeight(e)??20;clearListRowsHeightCache=()=>{wI.clearAll()};async initDiffSyntaxMode(){const e=this.props.fileContents;if(null===e)return;const{diff:n}=this.state,r=this.props,s=this.state,i=function(e){const t=new Array,n=new Array,r=new Array;let s=!1,i=!1;for(const t of e)for(const e of t.lines)s=s||e.type===Bu.Add,i=i||e.type===Bu.Delete,r.push(e);for(const e of r)null!==e.oldLineNumber&&null!==e.newLineNumber?s&&!i?n.push(e.newLineNumber-1):t.push(e.oldLineNumber-1):null!==e.oldLineNumber?t.push(e.oldLineNumber-1):null!==e.newLineNumber&&n.push(e.newLineNumber-1);return{oldLineFilter:t,newLineFilter:n}}(n.hunks),o=await async function(e,n,r){const{file:s,oldContents:i,newContents:o}=e,a=kf(s),[l,c]=await Promise.all([null===i?{}:ZP(i,t.basename(a),t.extname(a),4,r.oldLineFilter).catch((e=>(log.error("Highlighter worked failed for old contents",e),{}))),null===o?{}:ZP(o,t.basename(s.path),t.extname(s.path),4,r.newLineFilter).catch((e=>(log.error("Highlighter worked failed for new contents",e),{})))]);return{oldTokens:l,newTokens:c}}(e,0,i);CI(this.props,r,this.state,s)&&this.setState({beforeTokens:o.oldTokens,afterTokens:o.newTokens})}getSelection(){return hf(this.props.file)?this.props.file.selection:void 0}createFullRow(e,t){if(e.type===af.Added)return{...e,data:this.getRowDataPopulated(e.data,t,lf.After,this.state.afterTokens)};if(e.type===af.Deleted)return{...e,data:this.getRowDataPopulated(e.data,t,lf.Before,this.state.beforeTokens)};if(e.type===af.Modified)return{...e,beforeData:this.getRowDataPopulated(e.beforeData,t,lf.Before,this.state.beforeTokens),afterData:this.getRowDataPopulated(e.afterData,t,lf.After,this.state.afterTokens)};if(e.type===af.Context){const n=pI(e.beforeLineNumber,this.state.beforeTokens)??pI(e.afterLineNumber,this.state.afterTokens),r=[...e.beforeTokens],s=[...e.afterTokens];null!==n&&(r.push(n),s.push(n));const i=this.getSearchTokens(t,lf.Before);void 0!==i&&i.forEach((e=>r.push(e)));const o=this.getSearchTokens(t,lf.After);return void 0!==o&&o.forEach((e=>s.push(e))),{...e,beforeTokens:r,afterTokens:s}}return e}getRowDataPopulated(e,t,n,r){const s=this.getSearchTokens(t,n),i=pI(e.lineNumber,r),o=[...e.tokens];return void 0!==s&&s.forEach((e=>o.push(e))),null!==i&&o.push(i),{...e,tokens:o,isSelected:null!==e.diffLineNumber&&AI(e.diffLineNumber,this.getSelection(),this.state.temporarySelection)}}getSearchTokens(e,t){const{searchResults:n,selectedSearchResult:r}=this.state;if(void 0===n)return;const s=n.getLineTokens(e,t);if(void 0!==s){if(void 0!==s&&void 0!==r){const i=n.get(r);if(e===i?.row&&t===i.column&&void 0!==s[i.offset])return[s,{[i.offset]:{length:i.length,token:"selected"}}]}return[s]}}getDiffLineNumber(e,t){const{diff:n}=this.state,r=vI(n,this.props.showSideBySideDiff,this.canExpandDiff())[e];return void 0===r?null:this.getDiffRowLineNumber(r,t)}getDiffRowLineNumber(e,t){return e.type===af.Added||e.type===af.Deleted?e.data.diffLineNumber:e.type===af.Modified?t===lf.After?e.afterData.diffLineNumber:e.beforeData.diffLineNumber:null}onMouseDown=e=>{if(!this.props.showSideBySideDiff)return;if(!(e.target instanceof HTMLElement))return;const t=e.target.closest(".before"),n=e.target.closest(".after");null!==t?this.setState({selectingTextInRow:"before"}):null!==n&&this.setState({selectingTextInRow:"after"})};onKeyDown=e=>{const t=e.altKey||e.metaKey||e.shiftKey,{ctrlKey:n,key:r}=e,{isSearching:s}=this.state;"a"!==r||!n||t||s||this.onSelectAll(e)};onSelectAll=e=>{this.diffContainer&&(e?.preventDefault(),document.getSelection()?.selectAllChildren(this.diffContainer))};onStartSelection=(e,t,n)=>{const r=this.getDiffLineNumber(e,t);if(null===r)return;const s={from:r,to:r,isSelected:n};this.setState({temporarySelection:s}),document.addEventListener("mouseup",this.onEndSelection,{once:!0}),document.addEventListener("mousemove",this.onUpdateSelection)};onUpdateSelection=e=>{const{temporarySelection:t}=this.state,n=this.virtualListRef.current;if(!t||!n)return;const r=Te().findDOMNode(n);if(!(r instanceof Element))return;const s=r.getBoundingClientRect(),i=e.clientY-s.top+r.scrollTop,o=this.getCurrentDiffRows(),a=o.length;let l=0;for(let r=0;r<a;r++){let a=wI.getHeight(r,0);if(void 0===a&&(n.recomputeRowHeights(r),a=wI.getHeight(r,0)??20),i>=l&&i<l+a){const i=o[r];let a=lf.Before;this.props.showSideBySideDiff&&(a=e.clientX<=s.left+s.width/2?lf.Before:lf.After);const l=this.getDiffRowLineNumber(i,a);return n.scrollToRow(r),void(null!==l&&this.setState({temporarySelection:{...t,to:l}}))}l+=a}};onEndSelection=()=>{let e=this.getSelection();const{temporarySelection:t}=this.state;if(void 0===e||void 0===t)return;const{from:n,to:r,isSelected:s}=t,i=Math.min(n,r),o=Math.max(n,r);for(let t=i;t<=o;t++)e=e.withLineSelection(t,s);this.props.onIncludeChanged?.(e),this.setState({temporarySelection:void 0})};onMouseEnterHunk=e=>{void 0===this.state.temporarySelection&&this.setState({hoveredHunk:e})};onMouseLeaveHunk=()=>{this.setState({hoveredHunk:void 0})};onExpandHunk=(e,t)=>{const{diff:n}=this.state;if(-1===e||e>=n.hunks.length)return;this.setState({lastExpandedHunk:{hunkIndex:e,expansionType:t}});const r=t===Uu.Down?"down":"up";this.expandHunk(n.hunks[e],r),this.ariaLiveChangeSignal=!this.ariaLiveChangeSignal,this.setState({ariaLiveMessage:"Expanded"})};onClickHunk=(e,t)=>{if(void 0===this.props.onIncludeChanged)return;const{diff:n}=this.state,r=this.getSelection();if(void 0!==r){const s=cI(n.hunks,e);if(null!==s){const{from:e,to:n}=s,i=r.withRangeSelection(e,n-e+1,t);this.props.onIncludeChanged(i)}}};onContextMenuText=e=>{const t=window.getSelection()?.toString().length??0;if(e.target instanceof HTMLElement&&(null!==e.target.closest(".line-number")||null!==e.target.closest(".hunk-handle")||null!==e.target.closest(".hunk-expansion-handle")||e.target instanceof HTMLInputElement))return;const n=[{label:"复制",role:t>0?"copy":void 0,enabled:t>0},{label:"全选",action:()=>this.onSelectAll()}],r=this.buildExpandMenuItem();null!==r&&n.push({type:"separator"},r),Ch(n)};onContextMenuLine=e=>{const{file:t,hideWhitespaceInDiff:n}=this.props,{diff:r}=this.state;if(!hf(t))return;if(n)return;if(void 0===this.props.onDiscardChanges)return;const s=cI(r.hunks,e);null!==s&&null!==s.type&&Ch([{label:this.getDiscardLabel(s.type,1),action:()=>this.onDiscardChanges(e)}])};buildExpandMenuItem(){const{diff:e}=this.state;return this.canExpandDiff()?null===this.diffToRestore?{label:"展开整个文件",action:this.onExpandWholeFile,enabled:1!==e.hunks.length||e.hunks[0].expansionType!==Uu.None}:{label:"折叠扩展的行",action:this.onCollapseExpandedLines}:null}onExpandWholeFile=()=>{const e=this.props.fileContents,{diff:t}=this.state;if(null===e||!this.canExpandDiff())return;const n=function(e,t){let n=e;for(;n.hunks.length>1||1===n.hunks.length&&n.hunks[0].expansionType===Uu.Up;){const e=n.hunks[0],r=bf(n,e,e.expansionType===Uu.Up?"up":"down",t,t.length);if(void 0===r)return;n=r}return n}(t,e.newContents);void 0!==n&&(this.diffToRestore=t,this.ariaLiveChangeSignal=!this.ariaLiveChangeSignal,this.setState({diff:n,ariaLiveMessage:"Expanded"}))};onCollapseExpandedLines=()=>{null!==this.diffToRestore&&(this.setState({diff:this.diffToRestore}),this.diffToRestore=null)};onContextMenuHunk=e=>{if(!hf(this.props.file))return;if(void 0===this.props.onDiscardChanges)return;const t=cI(this.state.diff.hunks,e);null!==t&&null!==t.type&&Ch([{label:this.getDiscardLabel(t.type,t.to-t.from+1),action:()=>this.onDiscardChanges(t.from,t.to)}])};onContextMenuExpandHunk=()=>{const e=this.buildExpandMenuItem();null!==e&&Ch([e])};getDiscardLabel(e,t){const n=this.props.askForConfirmationOnDiscardChanges?"…":"";let r="";return e===iI.Additions?r="added":e===iI.Deletions?r="removed":e===iI.Mixed?r="modified":at(0,`Invalid range type: ${e}`),`Discard ${r} line${t>1?"s":""}${n}`}onDiscardChanges(e,t=e){const n=this.getSelection();if(void 0===n)return;if(void 0===this.props.onDiscardChanges)return;const r=n.withSelectNone().withRangeSelection(e,t-e+1,!0);this.props.onDiscardChanges(this.props.diff,r)}onWindowKeyDown=e=>{e.defaultPrevented||!e.ctrlKey||e.shiftKey||e.altKey||"f"!==e.key||(e.preventDefault(),this.showSearch())};showSearch=()=>{this.state.isSearching||this.resetSearch(!0)};onSearch=(e,t)=>{const{searchResults:n}=this.state;""===e?.trim()?this.resetSearch(!0,"No results"):e===this.state.searchQuery&&n?this.continueSearch(n,t):this.startSearch(e,t)};startSearch=(e,t)=>{const n=function(e,t,n,r){if(0===n.length)return;const s=new kI,i=new RegExp(gI()(n),"gi"),o=vI(e,t,r);for(const[e,n]of o.entries())if(n.type!==af.Hunk)for(const r of RI(n,t))for(const t of r.content.matchAll(i))void 0!==t.index&&s.add(e,r.type,t.index,t[0].length);return s}(this.state.diff,this.props.showSideBySideDiff,e,this.canExpandDiff());if(void 0===n||0===n.length)this.resetSearch(!0,`No results for "${e}"`);else{const t=`Result 1 of ${n.length} for "${e}"`;this.scrollToSearchResult(0),this.ariaLiveChangeSignal=!this.ariaLiveChangeSignal,this.setState({searchQuery:e,searchResults:n,selectedSearchResult:0,ariaLiveMessage:t})}};continueSearch=(e,t)=>{const{searchQuery:n}=this.state;let{selectedSearchResult:r=0}=this.state;r=(r+("next"===t?1:-1)+e.length)%e.length;const s=`Result ${r+1} of ${e.length} for "${n}"`;this.scrollToSearchResult(r),this.ariaLiveChangeSignal=!this.ariaLiveChangeSignal,this.setState({searchResults:e,selectedSearchResult:r,ariaLiveMessage:s})};onSearchCancel=()=>{this.resetSearch(!1)};scrollToSearchResult=e=>{const{searchResults:t}=this.state,n=t?.get(e)?.row;void 0!==n&&this.virtualListRef.current?.scrollToRow(n)};resetSearch(e,t=""){this.ariaLiveChangeSignal=!this.ariaLiveChangeSignal,this.setState({selectedSearchResult:void 0,searchQuery:void 0,searchResults:void 0,ariaLiveMessage:t,isSearching:e})}expandHunk(e,t){const n=this.props.fileContents,{diff:r}=this.state;if(null===n||!this.canExpandDiff())return;const s=bf(r,e,t,n.newContents);void 0!==s&&this.setState({diff:s})}}function CI(e,t,n,r){return(e===t||e.file.id===t.file.id&&e.showSideBySideDiff===t.showSideBySideDiff)&&n.diff.text===r.diff.text&&t.fileContents?.file.id===e.fileContents?.file.id}const vI=xr((function(e,t,n){const r=new Array;return e.hunks.forEach(((e,s)=>{for(const i of function(e,t,n,r){const s=new Array;let i=new Array;for(const[o,a]of t.lines.entries()){const l=t.unifiedDiffStart+o;if(a.type!==Bu.Delete&&a.type!==Bu.Add){if(i.length>0){for(const e of SI(i,n))s.push(e);i=[]}a.type!==Bu.Hunk?a.type!==Bu.Context?at(a.type,`Invalid line type: ${a.type}`):(ct(a.oldLineNumber,`No oldLineNumber for ${l}`),ct(a.newLineNumber,`No newLineNumber for ${l}`),s.push({type:af.Context,content:a.content,beforeLineNumber:a.oldLineNumber,afterLineNumber:a.newLineNumber,beforeTokens:[],afterTokens:[]})):s.push({type:af.Hunk,content:a.text,expansionType:r?t.expansionType:Uu.None,hunkIndex:e})}else i.push({line:a,diffLineNumber:l})}if(i.length>0)for(const e of SI(i,n))s.push(e);return s}(s,e,t,n))r.push(i)})),r}));function SI(e,t){if(0===e.length)return[];const n=e[0].diffLineNumber,r=new Array,s=new Array;for(const t of e)t.line.type===Bu.Add?r.push(t):t.line.type===Bu.Delete&&s.push(t);const i=new Array,o=new Array,a=new Array;if(r.length===s.length)for(let e=0;e<s.length;e++){const t=r[e],n=s[e];if(t.line.content.length<1024&&n.line.content.length<1024){const{before:r,after:s}=uf(n.line.content,t.line.content);o[e]=r,a[e]=s}}let l=0;for(;t&&l<r.length&&l<s.length;){const e=lt("Unexpected null line",r[l]),t=lt("Unexpected null line",s[l]);i.push({type:af.Modified,beforeData:EI(t,"oldLineNumber",o.shift()),afterData:EI(e,"newLineNumber",a.shift()),hunkStartLine:n}),l++}for(let e=l;e<s.length;e++){const t=lt("Unexpected null line",s[e]);i.push({type:af.Deleted,data:EI(t,"oldLineNumber",o.shift()),hunkStartLine:n})}for(let e=l;e<r.length;e++){const t=lt("Unexpected null line",r[e]);i.push({type:af.Added,data:EI(t,"newLineNumber",a.shift()),hunkStartLine:n})}return i}function EI({line:e,diffLineNumber:t},n,r){const s=lt(`Expecting ${n} value for ${e}`,e[n]),i=new Array;return void 0!==r&&i.push(r),{content:e.content,lineNumber:s,diffLineNumber:e.originalLineNumber,noNewLineIndicator:e.noTrailingNewLine,tokens:i}}class kI{lookup=new Map;hits=new Array;getKey(e,t){return`${e}.${t}`}add(e,t,n,r){const s=this.getKey(e,t),i=this.lookup.get(s),o={length:r,token:"search-result"};void 0!==i?i[n]=o:this.lookup.set(s,{[n]:o}),this.hits.push([e,t,n,r])}get length(){return this.hits.length}get(e){const t=this.hits[e];return void 0===t?void 0:{row:t[0],column:t[1],offset:t[2],length:t[3]}}getLineTokens(e,t){return this.lookup.get(this.getKey(e,t))}}function*RI(e,t){if(e.type===af.Hunk)yield{type:lf.Before,content:e.content};else if(e.type===af.Added){const n=t?lf.After:lf.Before;yield{type:n,content:e.data.content}}else e.type===af.Deleted?yield{type:lf.Before,content:e.data.content}:e.type===af.Context?(yield{type:lf.Before,content:e.content},t&&(yield{type:lf.After,content:e.content})):e.type===af.Modified?(yield{type:lf.Before,content:e.beforeData.content},yield{type:lf.After,content:e.afterData.content}):at(0,`Unknown row type ${e}`)}function AI(e,t,n){const r=t?.isSelected(e)??!1;if(void 0===n)return r;const s=function(e,t){return void 0!==t&&(e>=Math.min(t.from,t.to)&&e<=Math.max(t.to,t.from))}(e,n);return n.isSelected?r||s:r&&!s}class TI extends ke.Component{render(){const e="primary"===this.props.type,t=hs()("suggested-action",{primary:e}),n=void 0===this.props.description?void 0:ke.createElement("p",{className:"description"},this.props.description);return ke.createElement("div",{className:t},this.props.image&&ke.createElement("div",{className:"image-wrapper"},this.props.image),ke.createElement("div",{className:"text-wrapper"},ke.createElement("h2",null,this.props.title),n,this.props.discoverabilityContent&&ke.createElement("p",{className:"discoverability"},this.props.discoverabilityContent)),ke.createElement(Ss,{type:e?"submit":void 0,onClick:this.props.onClick,disabled:this.props.disabled},this.props.buttonText))}}class xI extends ke.Component{render(){return ke.createElement(TI,{title:this.props.title,description:this.props.description,discoverabilityContent:this.props.discoverabilityContent,buttonText:this.props.buttonText,onClick:this.onClick,type:this.props.type,disabled:this.props.disabled})}onClick=e=>{void 0!==this.props.onClick&&this.props.onClick(e),e.defaultPrevented||M(this.props.menuItemId)}}var DI=n(1300),MI=n.n(DI);const PI=e=>{const t="suggested-action-group "+(e.type?e.type:"normal");if("replace"===e.transitions){const n=void 0===e.enableTransitions||e.enableTransitions;return ke.createElement(MI(),{transitionAppear:!1,overflowHidden:!1,transitionEnter:n,transitionLeave:n,transitionName:e.transitions,component:"div",className:t,transitionEnterTimeout:750,transitionLeaveTimeout:500},e.children)}return ke.createElement("div",{className:t},e.children)};class II extends Re().Component{constructor(e){super(e),this.state={showCopied:!1}}onCopy=async e=>{e.preventDefault(),m.clipboard.writeText(this.props.copyContent),this.setState({showCopied:!0}),await Ww(2e3),this.setState({showCopied:!1})};renderSymbol(){const{showCopied:e}=this.state,t=e?ii:Oi;return Re().createElement(Rs,{symbol:t,height:24})}render(){const{ariaLabel:e}=this.props,{showCopied:t}=this.state,n="Copied!",r=t?n:"";return Re().createElement(Ss,{className:"copy-button",tooltip:t?n:e,ariaLabel:e,onClick:this.onCopy,openTooltipOnClick:!0,applyTooltipAriaDescribedBy:!1},this.renderSymbol(),Re().createElement(LC,{message:r,trackedUserInput:r}))}}class _I extends Re().Component{constructor(e){super(e)}render(){return Re().createElement("div",{className:"changes-interstitial submodule-diff"},Re().createElement("div",{className:"content"},Re().createElement("div",{className:"interstitial-header"},Re().createElement("div",{className:"text"},Re().createElement("h1",null,"子模块变更"))),this.renderSubmoduleInfo(),this.renderCommitChangeInfo(),this.renderSubmodulesChangesInfo(),this.renderOpenSubmoduleAction()))}renderSubmoduleInfo(){if(null===this.props.diff.url)return null;const e=fr(this.props.diff.url);if(null===e)return null;const t="github.com"===e.hostname?"":` (${e.hostname})`;return this.renderSubmoduleDiffItem({octicon:Da,className:"info-icon"},Re().createElement(Re().Fragment,null,"这是一个基于代码库的子模块。"," ",Re().createElement(sM,{uri:`https://${e.hostname}/${e.owner}/${e.name}`},e.owner,"/",e.name,t),"."))}renderCommitChangeInfo(){const{diff:e,readOnly:t}=this.props,{oldSHA:n,newSHA:r}=e,s=t?"was":"has been",i=t?"":" This change can be committed to the parent repository.";return null!==n&&null!==r?this.renderSubmoduleDiffItem({octicon:Ji,className:"modified-icon"},Re().createElement(Re().Fragment,null,"This submodule changed its commit from"," ",this.renderCommitSHA(n,"previous")," to"," ",this.renderCommitSHA(r,"new"),".",i)):null===n&&null!==r?this.renderSubmoduleDiffItem({octicon:Xi,className:"added-icon"},Re().createElement(Re().Fragment,null,"This submodule ",s," added pointing at commit"," ",this.renderCommitSHA(r),".",i)):null!==n&&null===r?this.renderSubmoduleDiffItem({octicon:eo,className:"removed-icon"},Re().createElement(Re().Fragment,null,"This submodule ",s," removed while it was pointing at commit"," ",this.renderCommitSHA(n),".",i)):null}renderCommitSHA(e,t){const n=void 0===t?"":` ${t}`;return Re().createElement(Re().Fragment,null,Re().createElement(UM,null,fm(e)),Re().createElement(II,{ariaLabel:`Copy the full${n} SHA`,copyContent:e}))}renderSubmodulesChangesInfo(){const{diff:e}=this.props;if(!e.status.untrackedChanges&&!e.status.modifiedChanges)return null;const t=e.status.untrackedChanges&&e.status.modifiedChanges?"修改过的和未跟踪的":e.status.untrackedChanges?"未跟踪的":"修改过的";return this.renderSubmoduleDiffItem({octicon:Lo,className:"untracked-icon"},Re().createElement(Re().Fragment,null,"这个子模块有 ",t," 更改。这些更改必须在子模块内提交后才能成为父仓库的一部分。"))}renderSubmoduleDiffItem(e,t){return Re().createElement("div",{className:"item"},Re().createElement(Rs,{symbol:e.octicon,className:e.className}),Re().createElement("div",{className:"content"},t))}renderOpenSubmoduleAction(){return null===this.props.diff.url?null:Re().createElement("span",null,Re().createElement(TI,{title:"在 GitHub 桌面版中打开此子模块",description:"你可以将这个子模块在 GitHub Desktop 中作为普通代码库打开,以便管理并提交其中的任何更改。",buttonText:"打开存储库",type:"primary",onClick:this.onOpenSubmoduleClick}))}onOpenSubmoduleClick=()=>{this.props.onOpenSubmodule?.(this.props.diff.fullPath)}}const FI=Ft(__dirname,"static/ufo-alert.svg");class NI extends ke.Component{constructor(e){super(e),this.state={forceShowLargeDiff:!1}}render(){const e=this.props.diff;switch(e.kind){case Lu.Text:return this.renderText(e);case Lu.Binary:return this.renderBinaryFile();case Lu.Submodule:return this.renderSubmoduleDiff(e);case Lu.Image:return this.renderImage(e);case Lu.LargeText:return this.state.forceShowLargeDiff?this.renderLargeText(e):this.renderLargeTextDiff();case Lu.Unrenderable:return this.renderUnrenderableDiff();default:return at(0,`Unsupported diff type: ${e}`)}}renderImage(e){return e.current&&e.previous?ke.createElement(NP,{onChangeDiffType:this.props.onChangeImageDiffType,diffType:this.props.imageDiffType,current:e.current,previous:e.previous}):!e.current||this.props.file.status.kind!==Wu.New&&this.props.file.status.kind!==Wu.Untracked?e.previous&&this.props.file.status.kind===Wu.Deleted?ke.createElement(LP,{previous:e.previous}):null:ke.createElement(OP,{current:e.current})}renderLargeTextDiff(){return ke.createElement("div",{className:"panel empty large-diff"},ke.createElement("img",{src:FI,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"description"},ke.createElement("p",null,"差异太大,无法默认显示。"),ke.createElement("p",null,"你可以尝试强制显示,但可能会影响性能。")),ke.createElement(Ss,{onClick:this.showLargeDiff},"显示差异"))}renderUnrenderableDiff(){return ke.createElement("div",{className:"panel empty large-diff"},ke.createElement("img",{src:FI,alt:""}),ke.createElement("p",null,"差异太大,无法显示。"))}renderLargeText(e){const t={text:e.text,hunks:e.hunks,kind:Lu.Text,lineEndingsChange:e.lineEndingsChange,maxLineNumber:e.maxLineNumber,hasHiddenBidiChars:e.hasHiddenBidiChars};return this.renderTextDiff(t)}renderText(e){return 0===e.hunks.length?this.props.file.status.kind===Wu.New||this.props.file.status.kind===Wu.Untracked?ke.createElement("div",{className:"panel empty"},"空文件"):this.props.file.status.kind===Wu.Renamed?this.props.file.status.renameIncludesModifications?ke.createElement("div",{className:"panel renamed"},ke.createElement(Rs,{symbol:xs}),"The file was renamed and includes changes."):ke.createElement("div",{className:"panel renamed"},"文件已重命名,但未进行更改"):Qu(this.props.file.status)&&eh(this.props.file.status)?ke.createElement("div",{className:"panel empty"},"文件冲突,必须通过命令行解决"):this.props.hideWhitespaceInDiff?ke.createElement("div",{className:"panel empty"},"仅找到空白更改"):ke.createElement("div",{className:"panel empty"},"未找到更改内容"):this.renderTextDiff(e)}renderSubmoduleDiff(e){return ke.createElement(_I,{onOpenSubmodule:this.props.onOpenSubmodule,diff:e,readOnly:this.props.readOnly})}renderBinaryFile(){return ke.createElement(BP,{path:this.props.file.path,repository:this.props.repository,onOpenBinaryFile:this.props.onOpenBinaryFile})}renderTextDiff(e){return ke.createElement(bI,{file:this.props.file,diff:e,fileContents:this.props.fileContents,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showSideBySideDiff:this.props.showSideBySideDiff,onIncludeChanged:this.props.onIncludeChanged,onDiscardChanges:this.props.onDiscardChanges,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,showDiffCheckMarks:this.props.showDiffCheckMarks})}showLargeDiff=()=>{this.setState({forceShowLargeDiff:!0})}}function OI(e,t){return e===t||e.id===t.id}function LI(e,t){return e===t||BI(e)&&BI(t)&&mf(e,t)}function BI(e){return e.kind===Lu.Text||e.kind===Lu.LargeText}class HI extends ke.Component{static getDerivedStateFromProps(e,t){const n=null!==t.fileContents&&OI(t.fileContents.file,e.file)?t.fileContents:null,r=null===e.diff||BI(e.diff)&&null===n;return{isLoadingDiff:r,...r?void 0:{propSnapshot:e},...r!==t.isLoadingDiff?{isLoadingSlow:!1}:void 0,diff:null===e.diff||BI(e.diff)?t.diff:e.diff,fileContents:n}}slowLoadingTimeoutId=null;loadingState=null;constructor(e){super(e);const t=null===e.diff||BI(e.diff);this.state={isLoadingDiff:t,isLoadingSlow:!1,propSnapshot:e,diff:e.diff,fileContents:null}}componentDidMount(){this.state.isLoadingDiff&&this.scheduleSlowLoadingTimeout(),this.loadFileContentsIfNeeded(null)}componentWillUnmount(){this.clearSlowLoadingTimeout()}componentDidUpdate(e,t){this.state.isLoadingDiff!==t.isLoadingDiff&&(this.state.isLoadingDiff?this.scheduleSlowLoadingTimeout():this.clearSlowLoadingTimeout()),this.loadFileContentsIfNeeded(e.diff)}async loadFileContentsIfNeeded(e){const{diff:t,file:n}=this.props;if(null===t||!BI(t))return;const r=this.state.fileContents;if(null!==r&&OI(r.file,n)&&null!==e&&LI(e,t))return;if(null!==this.loadingState&&OI(this.loadingState.file,n)&&LI(this.loadingState.diff,t))return;this.loadingState={file:n,diff:t};const s=await async function(e,t){const[n,r]=await Promise.all([WP(e,t).catch((e=>(log.error("Could not load old contents for syntax highlighting",e),null))),VP(e,t).catch((e=>(log.error("Could not load new contents for syntax highlighting",e),null)))]);return{file:t,oldContents:n?.toString("utf8").split(/\r?\n/)??[],newContents:r?.toString("utf8").split(/\r?\n/)??[],canBeExpanded:null!==r&&r.length<=262143}}(this.props.repository,n);if(this.loadingState=null,!OI(n,this.props.file))return;const i=s.canBeExpanded&&t.kind===Lu.Text?function(e,t,n,r){const s=t.at(-1);if(void 0===s)return null;if(s.header.newStartLine+s.header.newLineCount>=r)return null;const i=s.header.oldStartLine+s.header.oldLineCount,o=s.header.newStartLine+s.header.newLineCount,a=new Xu(i,n-i+1,o,r-o+1),l=new Gu("",Bu.Hunk,null,null,null,!1),c=new Yu(a,[l],s.unifiedDiffEnd+1,s.unifiedDiffEnd+1,Uu.Down),u=[...t,c];return{...e,text:gf(u),hunks:u}}(t,t.hunks,s.oldContents.length,s.newContents.length):null;this.setState({diff:i??t,fileContents:s})}onSlowLoadingTimeout=()=>{this.setState({isLoadingSlow:!0})};scheduleSlowLoadingTimeout(){this.clearSlowLoadingTimeout(),this.slowLoadingTimeoutId=window.setTimeout(this.onSlowLoadingTimeout,150)}clearSlowLoadingTimeout(){null!==this.slowLoadingTimeoutId&&(window.clearTimeout(this.slowLoadingTimeoutId),this.slowLoadingTimeoutId=null)}render(){const{isLoadingDiff:e,isLoadingSlow:t,fileContents:n,diff:r}=this.state,{repository:s,imageDiffType:i,readOnly:o,hideWhitespaceInDiff:a,showSideBySideDiff:l,showDiffCheckMarks:c,onIncludeChanged:u,onDiscardChanges:h,file:p,onOpenBinaryFile:d,onOpenSubmodule:m,onChangeImageDiffType:f,onHideWhitespaceInDiffChanged:g}=this.state.propSnapshot,y=hs()("seamless-diff-switcher",{loading:e,slow:e&&t,"has-diff":null!==r}),w=e?ke.createElement("div",{className:"loading-indicator"},ke.createElement(zD,null)):null;return ke.createElement("div",{className:y},null!==r?ke.createElement(NI,{repository:s,imageDiffType:i,file:p,diff:r,fileContents:n,readOnly:o,hideWhitespaceInDiff:a,showSideBySideDiff:l,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,showDiffCheckMarks:c,onIncludeChanged:e?CT():u,onDiscardChanges:e?CT():h,onOpenBinaryFile:e?CT():d,onOpenSubmodule:e?CT():m,onChangeImageDiffType:e?CT():f,onHideWhitespaceInDiffChanged:e?CT():g}):null,w)}}const UI="stash-diff-viewer";class ZI extends ke.PureComponent{onSelectedFileChanged=e=>this.props.dispatcher.selectStashedFile(this.props.repository,e);onRowDoubleClick=e=>{const t=this.getFiles()[e];this.props.onOpenInExternalEditor(t.path)};onResize=e=>this.props.dispatcher.setStashedFilesWidth(e);onReset=()=>this.props.dispatcher.resetStashedFilesWidth();getFiles=()=>this.props.stashEntry.files.kind===nb.Loaded?this.props.stashEntry.files.files:new Array;render(){const{stashEntry:e,selectedStashedFile:t,stashedFileDiff:n,repository:r,dispatcher:s,imageDiffType:i,fileListWidth:o,onOpenBinaryFile:a,onChangeImageDiffType:l,onOpenSubmodule:c}=this.props,u=this.getFiles(),h=null!==t?ke.createElement(HI,{repository:r,readOnly:!0,file:t,diff:n,imageDiffType:i,hideWhitespaceInDiff:!1,showDiffCheckMarks:!1,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:a,onChangeImageDiffType:l,onHideWhitespaceInDiffChanged:this.props.onHideWhitespaceInDiffChanged,onOpenSubmodule:c}):null,p=Oy(o);return ke.createElement("section",{id:UI},ke.createElement(kP,{stashEntry:e,repository:r,dispatcher:s,askForConfirmationOnDiscardStash:this.props.askForConfirmationOnDiscardStash}),ke.createElement("div",{className:"commit-details"},ke.createElement(UC,{width:o.value,minimumWidth:o.min,maximumWidth:o.max,onResize:this.onResize,onReset:this.onReset,description:"Stash file list"},ke.createElement(EP,{files:u,onSelectedFileChanged:this.onSelectedFileChanged,selectedFile:t,availableWidth:p,onRowDoubleClick:this.onRowDoubleClick})),h))}}function $I(e,t,n,r){const s=new iP(e,t);return("string"==typeof r?s.tokenize(r):r).map(((e,t)=>{switch(e.kind){case rP.Emoji:return e.emoji?ke.createElement("span",{key:t},e.emoji):ke.createElement("img",{key:t,alt:e.description??e.text,className:"emoji",src:e.path});case rP.Link:if(!1!==n){const n=e.text!==e.url?e.url:void 0;return ke.createElement(sM,{key:t,uri:e.url,title:n},e.text)}return ke.createElement("span",{key:t},e.text);case rP.Text:return ke.createElement("span",{key:t},e.text);default:return at(0,`Unknown token type: ${e}`)}}))}ke.Component;class WI extends ke.Component{getElements=xr($I);getTitle=xr((e=>"string"==typeof e?e:e.map((e=>e.text)).join("")));containerRef=vs();resizeObserver;resizeDebounceId=null;lastKnownWidth=null;constructor(e){super(e),this.state={overflowed:!1},this.containerRef.subscribe(this.onContainerRef),this.resizeObserver=new ResizeObserver((e=>{const t=e[0].contentRect.width;this.lastKnownWidth!==t&&(this.lastKnownWidth=t,null!==this.resizeDebounceId&&(cancelAnimationFrame(this.resizeDebounceId),this.resizeDebounceId=null),this.resizeDebounceId=requestAnimationFrame((e=>this.onResized())))}))}onContainerRef=e=>{null!==e?(this.resizeObserver.observe(e),this.onResized(e)):this.resizeObserver.disconnect()};onResized=e=>{(e=e??this.containerRef.current??void 0)&&e.scrollWidth>e.clientWidth?this.setState({overflowed:!0}):this.setState({overflowed:!1})};render(){const{emoji:e,repository:t,renderUrlsAsLinks:n,text:r}=this.props;return 0===r.length?null:ke.createElement("div",{ref:this.containerRef,className:this.props.className},this.state.overflowed&&ke.createElement(ys,{target:this.containerRef},this.getTitle(r)),this.getElements(e,t,n,r))}}const VI=6e4,qI=60*VI,GI=24*qI;function zI(e,t=!0){const n=e.getTime()-Date.now(),r=Math.abs(n),s=Mt(e,{dateStyle:"full",timeStyle:"short"}),i=Cb(n);return n>0&&r>VI?{absoluteText:s,relativeText:Mt(e,{dateStyle:"medium",timeStyle:"short"}),duration:r}:r<VI?{absoluteText:s,relativeText:"此刻",duration:VI-r}:r<qI?{absoluteText:s,relativeText:i,duration:VI}:r<GI?{absoluteText:s,relativeText:i,duration:qI}:r<7*GI||t?{absoluteText:s,relativeText:i,duration:6*qI}:{absoluteText:s,relativeText:Mt(e,{dateStyle:"medium"})}}class jI extends ke.Component{timer=null;constructor(e){super(e),this.state={absoluteText:"",relativeText:""}}clearTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)}updateAndSchedule(e,t,n){this.clearTimer(),this.timer=window.setTimeout(this.updateFromScheduler,Math.min(n,2147483647)),this.setState({absoluteText:e,relativeText:t})}updateWithDate(e){const{onlyRelative:t}=this.props,{absoluteText:n,relativeText:r,duration:s}=zI(e,t);void 0!==s?this.updateAndSchedule(n,r,s):this.setState({absoluteText:n,relativeText:r})}updateFromScheduler=()=>{this.updateWithDate(this.props.date)};componentWillReceiveProps(e){this.props.date!==e.date&&this.updateWithDate(e.date)}componentWillMount(){this.updateWithDate(this.props.date)}componentWillUnmount(){this.clearTimer()}shouldComponentUpdate(e,t){return e.date!==this.props.date||t.absoluteText!==this.state.absoluteText||t.relativeText!==this.state.relativeText}render(){return!1===this.props.tooltip?ke.createElement("span",{className:this.props.className},this.state.relativeText):ke.createElement(lh,{className:this.props.className,tooltip:this.state.absoluteText},this.state.relativeText)}}class KI extends ke.Component{render(){const e=this.props.isPushPullFetchInProgress||this.props.isCommitting,t=e?"更新仓库时禁用撤消":void 0,n=this.props.commit.author.date;return ke.createElement("div",{id:"undo-commit",role:"group","aria-label":"撤消提交"},ke.createElement("div",{className:"commit-info"},ke.createElement("div",{className:"ago"},"提交于",ke.createElement(jI,{date:n})),ke.createElement(WI,{emoji:this.props.emoji,className:"summary",text:this.props.commit.summary,renderUrlsAsLinks:!1})),ke.createElement("div",{className:"actions"},ke.createElement(Ss,{size:"small",disabled:e,onClick:this.props.onUndo,tooltip:t},"撤销")))}}async function YI(e,t){if(!await ut.openExternal(`file://${e}`)){const n={name:"no-external-program",message:`Unable to open file ${e} in an external program. Please check you have a program associated with this file extension`};await t.postError(n)}}var XI=n(1257),QI=n.n(XI);class JI extends ke.Component{list=null;filterTextBox=null;constructor(e){super(e),void 0!==e.filterTextBox&&(this.filterTextBox=e.filterTextBox),this.state=t_(e,null)}componentWillReceiveProps(e){this.setState(t_(e,this.state))}componentDidUpdate(e,t){if(this.props.onSelectionChanged){const e=t.selectedRows.map((e=>r_(t.rows,e))).filter((e=>null!==e)),n=this.state.selectedRows.map((e=>r_(this.state.rows,e))).filter((e=>null!==e));if(!this.hasSameIds(e,n)){const e=this.props.selectedItems.map((e=>e.id));if(!this.hasSameIds(n,e)){const e=this.state.selectedRows.map((e=>n_(this.state.rows,e))).filter((e=>null!==e));this.props.onSelectionChanged(e,{kind:"filter",filterText:this.props.filterText||""})}}}if(void 0!==this.props.onFilterListResultsChanged){const e=t.rows.flat().filter((e=>"item"===e.kind)).map((e=>e.item.id)),n=this.state.rows.flat().filter((e=>"item"===e.kind)).map((e=>e.item)),r=n.map((e=>e.id));this.hasSameIds(e,r)||this.props.onFilterListResultsChanged(n)}}hasSameIds(e,t){return e.length===t.length&&0===QI()(e,t).length}componentDidMount(){null!==this.filterTextBox&&this.filterTextBox.selectAll()}renderTextBox(){return ke.createElement(nx,{ref:this.onTextBoxRef,displayClearButton:!0,prefixedIcon:pc,autoFocus:!0,placeholder:this.props.placeholderText||"请输入筛选条件",className:"filter-list-filter-field",onValueChanged:this.onFilterValueChanged,onEnterPressed:this.onEnterPressed,onKeyDown:this.onKeyDown,value:this.props.filterText,disabled:this.props.disabled})}renderLiveContainer(){if(!this.state.filterValueChanged)return null;const e=this.state.rows.flat().filter((e=>"item"===e.kind)),t=1===e.length?"result":"results",n=0===e.length?this.props.postNoResultsMessage:"",r=`${e.length} ${t} ${n}`,s=`${this.state.filterValue} ${this.props.filterMethod?"fm":""}`;return ke.createElement(LC,{trackedUserInput:s,message:r})}renderFilterRow(){return!0===this.props.hideFilterRow?null:this.props.renderCustomFilterRow?this.props.renderCustomFilterRow():ke.createElement(rx,{className:"filter-field-row"},void 0===this.props.filterTextBox?this.renderTextBox():null,this.props.renderPostFilter?this.props.renderPostFilter():null)}render(){return ke.createElement("div",{className:hs()("filter-list",this.props.className)},this.renderLiveContainer(),this.props.renderPreList?this.props.renderPreList():null,this.renderFilterRow(),ke.createElement("div",{className:"filter-list-container"},this.renderContent()))}selectNextItem(e=!1,t="down"){if(null===this.list)return;const n=this.state.selectedRows.at(-1);if(void 0===n)return;let r=null;const s=this.state.rows.map((e=>e.length));r=-1===n.row||n.row===this.state.rows.length?Mp(s,{direction:t,row:Ep},this.canSelectRow):Mp(s,{direction:t,row:n},this.canSelectRow),null!==r&&this.setState({selectedRows:[r]},(()=>{e&&null!==this.list&&this.list.focus()}))}renderContent(){if(0===this.state.rows.length&&this.props.renderNoItems)return this.props.renderNoItems();{const e=this.state.selectedRows.at(-1);return ke.createElement(tx,{id:this.props.id,ref:this.onListRef,rowCount:this.state.rows.map((e=>e.length)),rowRenderer:this.renderRow,sectionHasHeader:this.sectionHasHeader,getRowAriaLabel:this.getRowAriaLabel,rowHeight:this.props.rowHeight,selectedRows:e&&kp(e,Ep)?[]:this.state.selectedRows,onSelectionChanged:this.onRowSelectionChanged,onRowClick:this.onRowClick,onRowDoubleClick:this.onRowDoubleClick,onRowKeyDown:this.onRowKeyDown,onRowContextMenu:this.onRowContextMenu,onRowKeyboardFocus:this.onRowKeyboardFocus,onRowBlur:this.onRowBlur,canSelectRow:this.canSelectRow,invalidationProps:{...this.props,...this.props.invalidationProps},onScroll:this.props.onScroll,setScrollTop:this.props.setScrollTop,selectionMode:this.props.selectionMode,getSectionAriaLabel:this.getSectionAriaLabel})}}sectionHasHeader=e=>{const t=this.state.rows[e];return t.length>0&&"group"===t[0].kind};getRowAriaLabel=e=>{const t=this.state.rows[e.section][e.row];if("item"!==t.kind)return;const n=this.props.getItemAriaLabel?.(t.item);if(void 0===n)return;const r=this.props.getGroupAriaLabel?.(this.state.groups[e.section]);return void 0!==r?`${n}, ${r}`:n};getSectionAriaLabel=e=>{const t=this.props.getGroupAriaLabel?.(this.state.groups[e]);return void 0!==t?t:void 0};renderRow=e=>{const t=this.state.rows[e.section][e.row];return"item"===t.kind?this.props.renderItem(t.item,t.matches):this.props.renderGroupHeader?this.props.renderGroupHeader(t.identifier):null};onTextBoxRef=e=>{this.filterTextBox=e};onListRef=e=>{this.list=e};onFilterValueChanged=e=>{this.props.onFilterTextChanged&&this.props.onFilterTextChanged(e)};onEnterPressed=e=>{0===this.state.rows.length&&e.trim().length>0&&void 0!==this.props.onEnterPressedWithoutFilteredItems&&this.props.onEnterPressedWithoutFilteredItems(e)};onRowSelectionChanged=(e,t)=>{if(this.setState({selectedRows:e}),this.props.onSelectionChanged){const n=e.map((e=>this.state.rows[e.section][e.row])).filter((e=>"item"===e.kind)).map((e=>e.item));this.props.onSelectionChanged(n,t)}};canSelectRow=e=>!this.props.disabled&&"item"===this.state.rows[e.section][e.row].kind;onRowClick=(e,t)=>{if(this.props.onItemClick){const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemClick(n.item,t)}};onRowDoubleClick=(e,t)=>{if(this.props.onItemDoubleClick){const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemDoubleClick(n.item,t)}};onRowContextMenu=(e,t)=>{if(!this.props.onItemContextMenu)return;const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemContextMenu(n.item,t)};onRowKeyboardFocus=(e,t)=>{if(!this.props.onItemKeyboardFocus)return;const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemKeyboardFocus(n.item,t)};onRowBlur=(e,t)=>{if(!this.props.onItemBlur)return;const n=this.state.rows[e.section][e.row];"item"===n.kind&&this.props.onItemBlur(n.item,t)};onRowKeyDown=(e,t)=>{const n=this.state.rows[e.section][e.row];if("item"===n.kind&&this.props.onItemKeyDown&&this.props.onItemKeyDown(n.item,t),t.defaultPrevented)return;if(!this.list)return;const r=this.state.rows.map((e=>e.length)),s=Mp(r,{direction:"down",row:Ep},this.canSelectRow),i=Mp(r,{direction:"up",row:{section:0,row:0}},this.canSelectRow);let o=!1;if(("ArrowUp"===t.key&&s&&kp(e,s)||"ArrowDown"===t.key&&i&&kp(e,i))&&(o=!0),o){const e=this.filterTextBox;e&&(t.preventDefault(),e.focus())}};onKeyDown=e=>{const t=this.list,n=e.key;if(!t)return;if(this.props.onFilterKeyDown&&this.props.onFilterKeyDown(e),e.defaultPrevented)return;const r=this.state.rows.map((e=>e.length));if("ArrowDown"===n){if(r.length>0){const e=Mp(r,{direction:"down",row:Ep},this.canSelectRow);null!=e&&this.setState({selectedRows:[e]},(()=>{t.focus()}))}e.preventDefault()}else if("ArrowUp"===n){if(r.length>0){const e=Mp(r,{direction:"up",row:{section:0,row:0}},this.canSelectRow);null!=e&&this.setState({selectedRows:[e]},(()=>{t.focus()}))}e.preventDefault()}else if("Enter"===n){if(0===r.length)return e.preventDefault();const t=this.props.filterText;if(void 0!==t&&!/\S/.test(t))return e.preventDefault();const n=Mp(r,{direction:"down",row:Ep},this.canSelectRow);null!=n&&this.onRowClick(n,{kind:"keyboard",event:e})}}}function e_(e){return e.text}function t_(e,t){const n=new Array,r=(e.filterText||"").toLowerCase(),{filterMethod:s,selectedItems:i}=e,o=[];let a=0;const l=[];let c=!!t?.filterValueChanged||r.length>0;for(const[t,u]of e.groups.entries()){const h=new Array,p=s?u.items.filter(s):u.items,d=r?ox(r,p,e_):p.map((e=>({score:1,matches:{title:[],subtitle:[]},item:e})));if(u.items.length!==d.length&&(c=!0),d.length){l.push(t),e.renderGroupHeader&&h.push({kind:"group",identifier:u.identifier});for(const{item:e,matches:t}of d)i.some((t=>e.id===t.id))&&o.push({section:a,row:h.length}),h.push({kind:"item",item:e,matches:t});n.push(h),a++}}return 0===o.length&&r.length&&o.push(function(e){for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)if("item"===n[e].kind)return{section:t,row:e}}return Ep}(n)),{rows:n,selectedRows:o,filterValue:r,filterValueChanged:c,groups:l}}function n_(e,t){if(t.section<0||t.section>=e.length)return null;const n=e[t.section];if(t.row<0||t.row>=n.length)return null;const r=n[t.row];return"item"===r.kind?r.item:null}function r_(e,t){const n=n_(e,t);return n?n.id:null}function s_(e){return 1===e?"":"s"}const i_=xr(((e,t,n,r)=>!(!l_(r)||t.size===n)&&(e.length>t.size||e.some((e=>!t.get(e))))));function o_(e){if(!l_(e))return;const t=[];if(e.filterText&&t.push(`"${e.filterText}"`),e.isIncludedInCommit&&t.push("Included in commit"),e.isExcludedFromCommit&&t.push("Excluded from commit"),e.isNewFile&&t.push("New files"),e.isModifiedFile&&t.push("Modified files"),e.isDeletedFile&&t.push("Deleted files"),0===t.length)return;let n;if(1===t.length)n=t[0];else if(2===t.length)n=`${t[0]} and ${t[1]}`;else{const e=t[t.length-1];n=`${t.slice(0,-1).join(", ")}, and ${e}`}return`Sorry, I can't find any changed files matching the following filters: ${n}`}function a_(e){return[e.isIncludedInCommit,e.isNewFile,e.isModifiedFile,e.isDeletedFile,e.isExcludedFromCommit].filter(Boolean).length}function l_(e){return""!==e.filterText||a_(e)>0}const c_=xr(((e,t,n)=>!t||function(e,t){if(0===a_(t))return!0;const{change:n}=e;return!(t.isIncludedInCommit&&!n.isIncludedInCommit()||t.isExcludedFromCommit&&!n.isExcludedFromCommit()||t.isNewFile&&!n.isNew()&&!n.isUntracked()||t.isModifiedFile&&!n.isModified()||t.isDeletedFile&&!n.isDeleted())}(e,n)));class u_ extends ke.Component{getFilterCounts=xr(((e,t)=>{const n={newFilesCount:0,modifiedFilesCount:0,deletedFilesCount:0,includedFilesCount:0,excludedFilesCount:0};return Array.from(t.values()).forEach((t=>{const r=e.findFileWithID(t.id);r&&((r.isNew()||r.isUntracked())&&n.newFilesCount++,r.isModified()&&n.modifiedFilesCount++,r.isDeleted()&&n.deletedFilesCount++,r.isIncludedInCommit()&&n.includedFilesCount++,r.isExcludedFromCommit()&&n.excludedFilesCount++)})),n}));filterOptionsButtonRef=null;constructor(e){super(e),this.state={isFilterOptionsOpen:!1}}closeFilterOptions=()=>{this.setState({isFilterOptionsOpen:!1})};onFilterToIncludedInCommit=()=>{this.props.onFilterToIncludedInCommit(),this.closeFilterOptions()};onFilterExcludedFiles=()=>{this.props.onFilterExcludedFiles(),this.closeFilterOptions()};onFilterDeletedFiles=()=>{this.props.onFilterDeletedFiles(),this.closeFilterOptions()};onFilterModifiedFiles=()=>{this.props.onFilterModifiedFiles(),this.closeFilterOptions()};onFilterNewFiles=()=>{this.props.onFilterNewFiles(),this.closeFilterOptions()};onClearAllFilters=()=>{this.props.onClearAllFilters(),this.closeFilterOptions()};openFilterOptions=()=>{this.setState({isFilterOptionsOpen:!0})};renderFilterOptions(){const e=l_(this.props.fileListFilter),{newFilesCount:t,modifiedFilesCount:n,deletedFilesCount:r,excludedFilesCount:s,includedFilesCount:i}=this.getFilterCounts(this.props.workingDirectory,this.props.filteredItems);return ke.createElement(ND,{className:"filter-popover",ariaLabelledby:"filter-options-header",anchor:this.filterOptionsButtonRef,anchorPosition:ID.BottomRight,decoration:FD.Balloon,onMousedownOutside:this.closeFilterOptions,onClickOutside:this.closeFilterOptions},ke.createElement("div",{className:"filter-popover-header"},ke.createElement("h3",{id:"filter-options-header"},"Filter Options"),ke.createElement("button",{className:"close",onClick:this.closeFilterOptions,"aria-label":"Close"},ke.createElement(Rs,{symbol:Ru}))),ke.createElement("div",{className:"filter-options"},ke.createElement(vx,{value:this.props.fileListFilter.isIncludedInCommit?Cx.On:Cx.Off,onChange:this.onFilterToIncludedInCommit,label:`Included in commit (${i})`}),ke.createElement(vx,{value:this.props.fileListFilter.isExcludedFromCommit?Cx.On:Cx.Off,onChange:this.onFilterExcludedFiles,label:`Excluded from commit (${s})`}),ke.createElement(vx,{value:this.props.fileListFilter.isNewFile?Cx.On:Cx.Off,onChange:this.onFilterNewFiles,label:`New files (${t})`}),ke.createElement(vx,{value:this.props.fileListFilter.isModifiedFile?Cx.On:Cx.Off,onChange:this.onFilterModifiedFiles,label:`Modified files (${n})`}),ke.createElement(vx,{value:this.props.fileListFilter.isDeletedFile?Cx.On:Cx.Off,onChange:this.onFilterDeletedFiles,label:`Deleted files (${r})`})),e&&ke.createElement("div",{className:"filter-options-footer"},ke.createElement(Ss,{onClick:this.onClearAllFilters},"Clear filters")))}onFilterOptionsButtonRef=e=>{this.filterOptionsButtonRef=e};render(){const e=a_(this.props.fileListFilter),t=e>0,n="Filter Options "+(t?`(${e} applied)`:"");return ke.createElement(ke.Fragment,null,ke.createElement(Ss,{className:hs()("filter-button",{active:t}),onClick:this.openFilterOptions,ariaExpanded:this.state.isFilterOptionsOpen,onButtonRef:this.onFilterOptionsButtonRef,tooltip:n,ariaLabel:n},ke.createElement("span",null,ke.createElement(Rs,{symbol:jo})),t?ke.createElement("span",{className:"active-badge"},ke.createElement("div",{className:"badge-bg"},ke.createElement("div",{className:"badge"}))):null,ke.createElement(Rs,{symbol:ou})),this.state.isFilterOptionsOpen&&this.renderFilterOptions())}}const h_={w:16,h:16,p:["M10.5 1.286h-9a.214.214 0 0 0-.214.214v9a.214.214 0 0 0 .214.214h9a.214.214 0 0 0 .214-.214v-9a.214.214 0 0 0-.214-.214zM1.5 0h9A1.5 1.5 0 0 1 12 1.5v9a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 0 10.5v-9A1.5 1.5 0 0 1 1.5 0zm5.712 7.212a1.714 1.714 0 1 1-2.424-2.424 1.714 1.714 0 0 1 2.424 2.424zM2.015 12.71c.102.729.728 1.29 1.485 1.29h9a1.5 1.5 0 0 0 1.5-1.5v-9a1.5 1.5 0 0 0-1.29-1.485v1.442a.216.216 0 0 1 .004.043v9a.214.214 0 0 1-.214.214h-9a.216.216 0 0 1-.043-.004H2.015zm2 2c.102.729.728 1.29 1.485 1.29h9a1.5 1.5 0 0 0 1.5-1.5v-9a1.5 1.5 0 0 0-1.29-1.485v1.442a.216.216 0 0 1 .004.043v9a.214.214 0 0 1-.214.214h-9a.216.216 0 0 1-.043-.004H4.015z"]},p_=".gitignore";function d_(e){if(0===e.selectedFileIDs.length)return[];const t=[];for(let n=0;n<e.selectedFileIDs.length;n++){const r=e.selectedFileIDs[n],s=e.workingDirectory.findFileWithID(r);null!==s&&t.push({text:[s.path,s.status.kind.toString()],id:s.id,change:s})}return t}function m_(e){return!0===e?Cx.On:!1===e?Cx.Off:Cx.Mixed}class f_ extends ke.Component{filterTextBox=void 0;headerRef=vs();filterOptionsButtonRef=null;includeAllCheckBoxRef=ke.createRef();filterListRef=ke.createRef();getCheckAllValue=xr(((e,t,n)=>{if(n.size===e.files.length&&null===t)return m_(e.includeAll);const r=e.files.filter((e=>n.has(e.id)));if(0===r.length)return Cx.Off;if(null!==t){const e=r.every((e=>e.status.kind===Wu.Untracked));if(e)return Cx.Off;const t=r.every((e=>e.status.kind!==Wu.Untracked));return t?Cx.On:Cx.Mixed}return m_(sh.fromFiles(r).includeAll)}));constructor(e){super(e);const t=this.createListItems(e.workingDirectory.files),n=[t];this.state={filteredItems:new Map(t.items.map((e=>[e.id,e]))),selectedItems:d_(e),focusedRow:null,groups:n}}componentWillReceiveProps(e){bp(e.selectedFileIDs,this.props.selectedFileIDs)&&bp(e.workingDirectory.files,this.props.workingDirectory.files)||this.setState({selectedItems:d_(e),groups:[this.createListItems(e.workingDirectory.files)]})}createListItems(e){const t=e.map((e=>({text:[e.path],id:e.id,change:e})));return{identifier:"changed-files",items:t}}onIncludeAllChanged=e=>{const t=e.currentTarget.checked,n=Array.from(this.state.filteredItems,(([,e])=>e.change));this.props.onIncludeChanged(n,t)};renderChangedFile=(e,t)=>{const{rebaseConflictState:n,isCommitting:r,onIncludeChanged:s,availableWidth:i}=this.props,o=e.change,a=o.selection.getSelectionType(),{submoduleStatus:l}=o.status,c=void 0!==l&&o.status.kind===Wu.Modified&&!l.commitChanged,u=void 0!==l&&(l.commitChanged||o.status.kind===Wu.New)&&(l.modifiedChanges||l.untrackedChanges),h=a===Hu.All||a!==Hu.None&&null,p=!c&&(null!==n?o.status.kind!==Wu.Untracked:h),d=r||null!==n||c,m=c?"This submodule change cannot be added to a commit in this repository because it contains changes that have not been committed.":u?"Only changes that have been committed within the submodule will be added to this repository. You need to commit any other modified or untracked changes in the submodule before including them in this repository.":void 0;return ke.createElement(CP,{file:o,include:u&&p?null:p,key:o.id,onIncludeChanged:s,availableWidth:i,disableSelection:d,checkboxTooltip:m,focused:this.state.focusedRow===e.id,matches:t})};onDiscardAllChanges=()=>{this.props.onDiscardChangesFromFiles(this.props.workingDirectory.files,!0)};onStashChanges=()=>{this.props.dispatcher.createStashForCurrentBranch(this.props.repository)};onDiscardChanges=e=>{const t=this.props.workingDirectory;if(1===e.length){const n=t.files.find((t=>t.path===e[0]));null!=n&&this.props.onDiscardChanges(n)}else{const n=new Array;if(e.forEach((e=>{const r=t.files.find((t=>t.path===e));null!=r&&n.push(r)})),n.length>0){const e=n.length===t.files.length;this.props.onDiscardChangesFromFiles(n,e)}}};getDiscardChangesMenuItemLabel=e=>{const t=1===e.length?"放弃更改":`放弃 ${e.length} 项选中的更改`;return this.props.askForConfirmationOnDiscardChanges?`${t}…`:t};onContextMenu=e=>{if(e.preventDefault(),null!==this.props.rebaseConflictState||this.props.isCommitting)return;const t=this.props.workingDirectory.files.length>0,n=null!==this.props.stashEntry,r=null!==this.props.conflictState||bw(this.props.workingDirectory);Ch([{label:"放弃所有更改...",action:this.onDiscardAllChanges,enabled:t},{label:n?"暂存所有更改...":"暂存所有更改",action:this.onStashChanges,enabled:t&&null!==this.props.branch&&!r}])};getDiscardChangesMenuItem=e=>({label:this.getDiscardChangesMenuItemLabel(e),action:()=>this.onDiscardChanges(e)});getCopyPathMenuItem=e=>({label:kh,action:()=>{const n=t.join(this.props.repository.path,e.path);m.clipboard.writeText(n)}});getCopyRelativePathMenuItem=e=>({label:Rh,action:()=>m.clipboard.writeText(t.normalize(e.path))});getCopySelectedPathsMenuItem=e=>({label:"复制路径",action:()=>{const n=e.map((e=>t.join(this.props.repository.path,e.path)));m.clipboard.writeText(n.join(Rr.EOL))}});getCopySelectedRelativePathsMenuItem=e=>({label:"复制相对路径",action:()=>{const n=e.map((e=>t.normalize(e.path)));m.clipboard.writeText(n.join(Rr.EOL))}});getRevealInFileManagerMenuItem=e=>({label:Th,action:()=>ht(this.props.repository,e.path),enabled:e.status.kind!==Wu.Deleted});getOpenInExternalEditorMenuItem=(e,t)=>{const{externalEditorLabel:n}=this.props;return{label:n?`打开于 ${n}`:Ah,action:()=>{this.props.onOpenItemInExternalEditor(e.path)},enabled:t}};getDefaultContextMenu(e){const{id:n,path:r,status:s}=e,i=Mh(t.extname(r)),{workingDirectory:o,selectedFileIDs:a}=this.props,l=new Array,c=new Array,u=new Set,h=e=>{const n=o.findFileWithID(e);if(n){l.push(n),c.push(n.path);const e=t.extname(n.path);e.length&&u.add(e)}};a.includes(n)?a.forEach(h):h(n);const p=[this.getDiscardChangesMenuItem(c),{type:"separator"}];if(1===c.length){const e=t.basename(r)!==p_;p.push({label:"忽略此文件(添加到.gitignore)",action:()=>this.props.onIgnoreFile(r),enabled:e});const n=r.split("/").slice(0,-1);if(n.length>0){const t=n.map(((e,t)=>{const r=`/${n.slice(0,n.length-t).join("/")}`;return{label:r,action:()=>this.props.onIgnoreFile(r)}}));p.push({label:"Ignore folder (add to .gitignore)",submenu:t,enabled:e})}}else c.length>1&&p.push({label:`忽略 ${c.length} 项选中的文件 (添加到.gitignore)`,action:()=>{this.props.onIgnoreFile(c.filter((e=>t.basename(e)!==p_)))},enabled:c.some((e=>t.basename(e)!==p_))});Array.from(u).slice(0,5).forEach((e=>{p.push({label:`忽略所有 ${e} 文件 (添加到.gitignore)`,action:()=>this.props.onIgnorePattern(`*${e}`)})})),c.length>1?p.push({type:"separator"},{label:"包括选中的文件",action:()=>{l.map((e=>this.props.onIncludeChanged(e,!0)))}},{label:"排除选中的文件",action:()=>{l.map((e=>this.props.onIncludeChanged(e,!1)))}},{type:"separator"},this.getCopySelectedPathsMenuItem(l),this.getCopySelectedRelativePathsMenuItem(l)):p.push({type:"separator"},this.getCopyPathMenuItem(e),this.getCopyRelativePathMenuItem(e));const d=s.kind!==Wu.Deleted;return p.push({type:"separator"},this.getRevealInFileManagerMenuItem(e),this.getOpenInExternalEditorMenuItem(e,d),{label:Dh,action:()=>this.props.onOpenItem(r),enabled:d&&i}),p}getRebaseContextMenu(e){const{path:n,status:r}=e,s=Mh(t.extname(n)),i=new Array;e.status.kind===Wu.Untracked&&i.push(this.getDiscardChangesMenuItem([e.path]),{type:"separator"});const o=r.kind!==Wu.Deleted;return i.push(this.getCopyPathMenuItem(e),this.getCopyRelativePathMenuItem(e),{type:"separator"},this.getRevealInFileManagerMenuItem(e),this.getOpenInExternalEditorMenuItem(e,o),{label:Dh,action:()=>this.props.onOpenItem(n),enabled:o&&s}),i}onItemContextMenu=(e,t)=>{const n=e.change;this.props.isCommitting||(t.preventDefault(),Ch(null===this.props.rebaseConflictState?this.getDefaultContextMenu(n):this.getRebaseContextMenu(n)))};getPlaceholderMessage(e,n){if(!n)return"摘要(必填)";const r=e[0],s=(0,t.basename)(r.path);switch(r.status.kind){case Wu.New:case Wu.Untracked:return`Create ${s}`;case Wu.Deleted:return`Delete ${s}`;default:return`Update ${s}`}}onScroll=(e,t)=>{this.props.onChangesListScrolled(e)};renderCommitMessageForm=()=>{const{rebaseConflictState:e,workingDirectory:t,repository:n,repositoryAccount:r,dispatcher:s,isCommitting:i,isGeneratingCommitMessage:o,commitToAmend:a,currentBranchProtected:l,currentRepoRulesInfo:c,shouldShowGenerateCommitMessageCallOut:u}=this.props;if(null!==e){const r=t.files.some((e=>e.status.kind===Wu.Untracked));return ke.createElement(vP,{dispatcher:s,repository:n,rebaseConflictState:e,workingDirectory:t,isCommitting:i,hasUntrackedChanges:r})}const h=t.files.length,p=t.files.filter((e=>e.selection.getSelectionType()!==Hu.None)),d=p.length>0,m=1===p.length&&!n.isTutorialRepository,f=null===this.props.repository.gitHubRepository||Vr(this.props.repository.gitHubRepository),g=this.props.askForConfirmationOnCommitFilteredChanges&&i_(p.map((e=>e.id)),this.state.filteredItems,h,this.props.fileListFilter);return ke.createElement(mP,{onCreateCommit:this.props.onCreateCommit,branch:this.props.branch,mostRecentLocalCommit:this.props.mostRecentLocalCommit,commitAuthor:this.props.commitAuthor,isShowingModal:this.props.isShowingModal,isShowingFoldout:this.props.isShowingFoldout,anyFilesSelected:d,showPromptForCommittingFileHiddenByFilter:g,anyFilesAvailable:h>0,filesSelected:p,filesToBeCommittedCount:p.length,repository:n,repositoryAccount:r,commitMessage:this.props.commitMessage,focusCommitMessage:this.props.focusCommitMessage,autocompletionProviders:this.props.autocompletionProviders,isCommitting:i,isGeneratingCommitMessage:o,shouldShowGenerateCommitMessageCallOut:u,commitToAmend:a,showCoAuthoredBy:this.props.showCoAuthoredBy,coAuthors:this.props.coAuthors,placeholder:this.getPlaceholderMessage(p,m),prepopulateCommitSummary:m,key:n.id,showBranchProtected:h>0&&l,repoRulesInfo:c,aheadBehind:this.props.aheadBehind,showNoWriteAccess:h>0&&!f,shouldNudge:this.props.shouldNudgeToCommit,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,onCoAuthorsUpdated:this.onCoAuthorsUpdated,onShowCoAuthoredByChanged:this.onShowCoAuthoredByChanged,onConfirmCommitWithUnknownCoAuthors:this.onConfirmCommitWithUnknownCoAuthors,onPersistCommitMessage:this.onPersistCommitMessage,onGenerateCommitMessage:this.onGenerateCommitMessage,onCommitMessageFocusSet:this.onCommitMessageFocusSet,onRefreshAuthor:this.onRefreshAuthor,onShowPopup:this.onShowPopup,onShowFoldout:this.onShowFoldout,onCommitSpellcheckEnabledChanged:this.onCommitSpellcheckEnabledChanged,onStopAmending:this.onStopAmending,onShowCreateForkDialog:this.onShowCreateForkDialog,onFilesToCommitNotVisible:this.onFilesToCommitNotVisible,accounts:this.props.accounts,onSuccessfulCommitCreated:this.onSuccessfulCommitCreated,submitButtonAriaDescribedBy:"hidden-changes-warning"})};onSuccessfulCommitCreated=()=>{this.clearFilter()};onCoAuthorsUpdated=e=>this.props.dispatcher.setCoAuthors(this.props.repository,e);onShowCoAuthoredByChanged=e=>{const{dispatcher:t,repository:n}=this.props;t.setShowCoAuthoredBy(n,e)};onConfirmCommitWithUnknownCoAuthors=(e,t)=>{const{dispatcher:n}=this.props;n.showUnknownAuthorsCommitWarning(e,t)};onRefreshAuthor=()=>this.props.dispatcher.refreshAuthor(this.props.repository);onCommitMessageFocusSet=()=>this.props.dispatcher.setCommitMessageFocus(!1);onPersistCommitMessage=e=>this.props.dispatcher.setCommitMessage(this.props.repository,e);onGenerateCommitMessage=(e,t)=>(this.props.dispatcher.incrementMetric("generateCommitMessageButtonClickCount"),t?this.props.dispatcher.promptOverrideWithGeneratedCommitMessage(this.props.repository,e):this.props.dispatcher.generateCommitMessage(this.props.repository,e));onShowPopup=e=>this.props.dispatcher.showPopup(e);onShowFoldout=e=>this.props.dispatcher.showFoldout(e);onCommitSpellcheckEnabledChanged=e=>this.props.dispatcher.setCommitSpellcheckEnabled(e);onStopAmending=()=>this.props.dispatcher.stopAmendingRepository(this.props.repository);onShowCreateForkDialog=()=>{Yr(this.props.repository)&&this.props.dispatcher.showCreateForkDialog(this.props.repository)};onStashEntryClicked=()=>{const{isShowingStashEntry:e,dispatcher:t,repository:n}=this.props;e?(t.selectWorkingDirectoryFiles(n),t.incrementMetric("noActionTakenOnStashCount")):(t.selectStashedFile(n),t.incrementMetric("stashViewCount"))};renderStashedChanges(){if(null===this.props.stashEntry)return null;const e=hs()("stashed-changes-button",this.props.isShowingStashEntry?"selected":null);return ke.createElement("button",{className:e,onClick:this.onStashEntryClicked,tabIndex:0,"aria-expanded":this.props.isShowingStashEntry,"aria-controls":this.props.isShowingStashEntry?UI:void 0},ke.createElement(Rs,{className:"stack-icon",symbol:h_}),ke.createElement("div",{className:"text"},"暂存的更改"),ke.createElement(Rs,{symbol:pi}))}onChangedFileDoubleClick=e=>{this.props.onOpenItemInExternalEditor(e.change.path)};onItemKeyDown=(e,t)=>{!this.props.isCommitting||"Enter"!==t.key&&" "!==t.key||t.preventDefault()};focus(){this.props.showChangesFilter?this.filterOptionsButtonRef?.focus():this.includeAllCheckBoxRef.current?.focus()}onChangedFileClick=(e,t)=>{const n=this.props.workingDirectory.findFileIndexByID(e.change.id);this.props.onRowClick?.(n,t)};onFilterTextChanged=e=>{""===this.props.fileListFilter.filterText&&""!==e&&this.props.dispatcher.incrementMetric("typedInChangesFilterCount"),this.props.dispatcher.setChangesListFilterText(this.props.repository,e)};onFilterListResultsChanged=e=>{const t=new Map;e.forEach((e=>t.set(e.id,e))),this.setState({filteredItems:t})};onFileSelectionChanged=e=>{const t=e.map((e=>this.props.workingDirectory.findFileIndexByID(e.change.id)));this.props.onFileSelectionChanged(t)};onFilesToCommitNotVisible=e=>{this.props.dispatcher.showPopup({type:Sh.ConfirmCommitFilteredChanges,onCommitAnyway:e,showFilesToBeCommitted:this.showFilesToBeCommitted})};clearFilter=()=>{this.props.dispatcher.setChangesListFilterText(this.props.repository,"")};showFilesToBeCommitted=()=>{this.props.dispatcher.incrementMetric("adjustedFiltersForHiddenChangesCount"),this.clearFilter(),this.props.dispatcher.setFilterExcludedFiles(this.props.repository,!1),this.props.dispatcher.setFilterNewFiles(this.props.repository,!1),this.props.dispatcher.setFilterModifiedFiles(this.props.repository,!1),this.props.dispatcher.setFilterDeletedFiles(this.props.repository,!1),this.props.dispatcher.setIncludedChangesInCommitFilter(this.props.repository,!0)};onTextBoxRef=e=>{this.filterTextBox=e??void 0};onFilterKeyDown=e=>{this.filterListRef.current&&this.filterListRef.current.onKeyDown(e)};renderFilterRow=()=>ke.createElement("div",{className:"header filter-field-row",onContextMenu:this.onContextMenu,ref:this.headerRef},this.renderFilterBox(),this.renderCheckBoxRow());renderCheckBoxRow=()=>{const{workingDirectory:e,rebaseConflictState:t,isCommitting:n}=this.props,{files:r}=e,s=this.state.filteredItems.size,i=this.getCheckAllValue(e,t,this.state.filteredItems),o=0===r.length||n||null!==t,a=`${s!==r.length?`${s} of `:""}\n ${r.length} changed file${s_(r.length)}`;return ke.createElement("div",{className:"checkbox-container"},ke.createElement(vx,{ref:this.includeAllCheckBoxRef,value:i,onChange:this.onIncludeAllChanged,disabled:o,ariaLabelledBy:"changes-list-check-all-label",className:"changes-list-check-all",label:a}))};renderFilterBox=()=>this.props.showChangesFilter?ke.createElement("div",{className:"filter-box-container"},ke.createElement("span",null,ke.createElement(u_,{fileListFilter:this.props.fileListFilter,filteredItems:this.state.filteredItems,onFilterToIncludedInCommit:this.onFilterToIncludedInCommit,onFilterExcludedFiles:this.onFilterExcludedFiles,onFilterDeletedFiles:this.onFilterDeletedFiles,onFilterModifiedFiles:this.onFilterModifiedFiles,onFilterNewFiles:this.onFilterNewFiles,onClearAllFilters:this.onClearAllFilters,workingDirectory:this.props.workingDirectory})),ke.createElement(nx,{ref:this.onTextBoxRef,displayClearButton:!0,placeholder:"Filter",className:"filter-list-filter-field",onValueChanged:this.onFilterTextChanged,onKeyDown:this.onFilterKeyDown,value:this.props.fileListFilter.filterText})):null;applyFilters=e=>c_(e,this.props.showChangesFilter,this.props.fileListFilter);getListAriaLabel=()=>{const{files:e}=this.props.workingDirectory;return`${e.length} changed file${s_(e.length)}`};render(){const{workingDirectory:e,isCommitting:t}=this.props;return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"changes-list-container file-list filtered-changes-list"},ke.createElement(JI,{ref:this.filterListRef,id:"changes-list",rowHeight:29,filterText:this.props.showChangesFilter?this.props.fileListFilter.filterText:"",filterTextBox:this.filterTextBox,onFilterListResultsChanged:this.onFilterListResultsChanged,selectedItems:this.state.selectedItems,selectionMode:"multi",renderItem:this.renderChangedFile,onItemClick:this.onChangedFileClick,onItemDoubleClick:this.onChangedFileDoubleClick,onItemKeyboardFocus:this.onChangedFileFocus,onItemBlur:this.onChangedFileBlur,onScroll:this.onScroll,setScrollTop:this.props.changesListScrollTop,onItemKeyDown:this.onItemKeyDown,onSelectionChanged:this.onFileSelectionChanged,groups:this.state.groups,filterMethod:this.props.fileListFilter.isIncludedInCommit||this.props.fileListFilter.isNewFile||this.props.fileListFilter.isModifiedFile||this.props.fileListFilter.isDeletedFile||this.props.fileListFilter.isExcludedFromCommit?this.applyFilters:void 0,invalidationProps:{workingDirectory:e,isCommitting:t,focusedRow:this.state.focusedRow,showChangesFilter:this.props.showChangesFilter,filterNewFiles:this.props.fileListFilter.isNewFile,filterModifiedFiles:this.props.fileListFilter.isModifiedFile,filterDeletedFiles:this.props.fileListFilter.isDeletedFile,filterExcludedFiles:this.props.fileListFilter.isExcludedFromCommit},onItemContextMenu:this.onItemContextMenu,renderCustomFilterRow:this.renderFilterRow,getGroupAriaLabel:this.getListAriaLabel,renderNoItems:this.renderNoChanges,postNoResultsMessage:o_(this.props.fileListFilter)})),this.renderStashedChanges(),this.renderHiddenChangesWarning(),this.renderCommitMessageForm())}renderHiddenChangesWarning=()=>{const{files:e}=this.props.workingDirectory,t=e.filter((e=>e.selection.getSelectionType()!==Hu.None));return i_(t.map((e=>e.id)),this.state.filteredItems,e.length,this.props.fileListFilter)?ke.createElement("div",{className:"hidden-changes-warning",id:"hidden-changes-warning"},ke.createElement(Rs,{symbol:xs}),ke.createElement("span",{className:"sr-only"},"Warning:"),ke.createElement("span",null,"Hidden changes will be committed. "),ke.createElement(sM,{onClick:this.showFilesToBeCommitted},"Adjust the filters to see all ",t.length," changes")):null};renderNoChanges=()=>{if(!l_(this.props.fileListFilter))return null;const e=l_(this.props.fileListFilter),t=Ft(__dirname,"static/empty-no-file-selected.svg");return ke.createElement("div",{className:"no-changes-filtered"},ke.createElement("img",{src:t,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"title"},"No files match your current filters"),ke.createElement("div",{className:"subtitle"},o_(this.props.fileListFilter)),e&&ke.createElement(Ss,{className:"clear-filters-button",onClick:this.onClearAllFilters},"Clear filters"))};onFilterToIncludedInCommit=()=>{this.props.fileListFilter.isIncludedInCommit||this.props.dispatcher.incrementMetric("appliesIncludedInCommitFilterCount"),this.props.dispatcher.setIncludedChangesInCommitFilter(this.props.repository,!this.props.fileListFilter.isIncludedInCommit)};onFilterNewFiles=()=>{this.props.fileListFilter.isNewFile||this.props.dispatcher.incrementMetric("appliesNewFilesChangesFilterCount"),this.props.dispatcher.setFilterNewFiles(this.props.repository,!this.props.fileListFilter.isNewFile)};onFilterModifiedFiles=()=>{this.props.fileListFilter.isModifiedFile||this.props.dispatcher.incrementMetric("appliesModifiedFilesChangesFilterCount"),this.props.dispatcher.setFilterModifiedFiles(this.props.repository,!this.props.fileListFilter.isModifiedFile)};onFilterDeletedFiles=()=>{this.props.fileListFilter.isDeletedFile||this.props.dispatcher.incrementMetric("appliesDeletedFilesChangesFilterCount"),this.props.dispatcher.setFilterDeletedFiles(this.props.repository,!this.props.fileListFilter.isDeletedFile)};onFilterExcludedFiles=()=>{this.props.fileListFilter.isExcludedFromCommit||this.props.dispatcher.incrementMetric("appliesExcludedFromCommitFilterCount"),this.props.dispatcher.setFilterExcludedFiles(this.props.repository,!this.props.fileListFilter.isExcludedFromCommit)};onClearAllFilters=()=>{this.props.dispatcher.incrementMetric("appliesClearAllChangesListFilterCount"),this.props.dispatcher.setChangesListFilterText(this.props.repository,""),this.props.dispatcher.setIncludedChangesInCommitFilter(this.props.repository,!1),this.props.dispatcher.setFilterExcludedFiles(this.props.repository,!1),this.props.dispatcher.setFilterNewFiles(this.props.repository,!1),this.props.dispatcher.setFilterModifiedFiles(this.props.repository,!1),this.props.dispatcher.setFilterDeletedFiles(this.props.repository,!1)};onChangedFileFocus=e=>{this.setState({focusedRow:e.id})};onChangedFileBlur=e=>{this.state.focusedRow===e.id&&this.setState({focusedRow:null})}}class g_ extends ke.Component{autocompletionProviders=null;changesListRef=ke.createRef();constructor(e){super(e),this.receiveProps(e)}componentWillReceiveProps(e){this.receiveProps(e)}receiveProps(e){null!==this.autocompletionProviders&&0!==this.props.emoji.size&&e.repository.hash===this.props.repository.hash&&e.accounts===this.props.accounts||(this.autocompletionProviders=GD(e.repository,e.dispatcher,e.emoji,e.issuesStore,e.gitHubUserStore,e.accounts))}onCreateCommit=async e=>{const{workingDirectory:n}=this.props.changes,r=await async function(e,n){const r=new Array,s=n.files.filter((e=>e.selection.getSelectionType()!==Hu.None));for(const n of s){const s=(0,t.join)(e.path,n.path);try{(await(0,w.stat)(s)).size>104857600&&r.push(n.path)}catch(e){log.debug(`Unable to get the file size for ${s}`,e)}}return r}(this.props.repository,n),s=await async function(e,t){const n=new Array;for(const r of t)await gw(e,r)||n.push(r);return n}(this.props.repository,r);if(0!==s.length)return this.props.dispatcher.showPopup({type:Sh.OversizedFiles,oversizedFiles:s,context:e,repository:this.props.repository}),!1;const i=n.files.filter((e=>ww(e.status)&&e.selection.getSelectionType()===Hu.None));0===i.length&&(this.props.dispatcher.clearBanner(),this.props.dispatcher.incrementMetric("unguidedConflictedMergeCompletionCount"));const o=n.files.filter((e=>ww(e.status)&&Cw(e.status)&&e.selection.getSelectionType()!==Hu.None));return o.length>0?(this.props.dispatcher.showPopup({type:Sh.CommitConflictsWarning,files:o,repository:this.props.repository,context:e}),!1):this.props.dispatcher.commitIncludedChanges(this.props.repository,e)};onFileSelectionChanged=e=>{const t=e.map((e=>this.props.changes.workingDirectory.files[e]));this.props.dispatcher.selectWorkingDirectoryFiles(this.props.repository,t)};onIncludeChanged=(e,t)=>{this.props.dispatcher.changeFileIncluded(this.props.repository,e,t)};onSelectAll=e=>{this.props.dispatcher.changeIncludeAllFiles(this.props.repository,e)};onDiscardChanges=e=>{this.props.askForConfirmationOnDiscardChanges?this.props.dispatcher.showPopup({type:Sh.ConfirmDiscardChanges,repository:this.props.repository,files:[e]}):this.props.dispatcher.discardChanges(this.props.repository,[e])};onDiscardChangesFromFiles=(e,t)=>{this.props.dispatcher.showPopup({type:Sh.ConfirmDiscardChanges,repository:this.props.repository,showDiscardChangesSetting:!1,discardingAllChanges:t,files:e})};onIgnoreFile=e=>{this.props.dispatcher.appendIgnoreFile(this.props.repository,e)};onIgnorePattern=e=>{this.props.dispatcher.appendIgnoreRule(this.props.repository,e)};onOpenItem=e=>{YI(t.join(this.props.repository.path,e),this.props.dispatcher)};onOpenItemInExternalEditor=e=>{this.props.onOpenInExternalEditor(e)};onToggleInclude(e){const t=this.props.changes.workingDirectory.files[e];if(!t)return void console.error("keyboard selection toggle despite no file - what?");const n=t.selection.getSelectionType();this.props.dispatcher.changeFileIncluded(this.props.repository,t,n===Hu.None)}onChangedItemClick=(e,t)=>{"keyboard"===t.kind&&(e instanceof Array?e.forEach((e=>this.onToggleInclude(e))):this.onToggleInclude(e))};onUndo=()=>{const e=this.props.mostRecentLocalCommit;e&&0===e.tags.length&&this.props.dispatcher.undoCommit(this.props.repository,e)};renderMostRecentLocalCommit(){const e=this.props.mostRecentLocalCommit;let t=null;return e&&0===e.tags.length&&null===this.props.commitToAmend&&(t=ke.createElement(Ye,{classNames:"undo",appear:!0,timeout:500},ke.createElement(KI,{isPushPullFetchInProgress:this.props.isPushPullFetchInProgress,commit:e,onUndo:this.onUndo,emoji:this.props.emoji,isCommitting:this.props.isCommitting}))),ke.createElement(Be,null,t)}renderUndoCommit=e=>null!==e?null:this.renderMostRecentLocalCommit();focus(){this.changesListRef.current?.focus()}render(){const{workingDirectory:e,commitMessage:t,showCoAuthoredBy:n,coAuthors:r,conflictState:s,selection:i,currentBranchProtected:o,currentRepoRulesInfo:a}=this.props.changes;let l=null;null!==s&&(l=st(s)?s:null);const c=i.kind===et.WorkingDirectory?i.selectedFileIDs:[],u=i.kind===et.Stash,h=tf(this.props.accounts,this.props.repository),p=f_;return ke.createElement("div",{className:"panel",role:"tabpanel","aria-labelledby":"changes-tab"},ke.createElement(p,{ref:this.changesListRef,dispatcher:this.props.dispatcher,repository:this.props.repository,repositoryAccount:h,workingDirectory:e,conflictState:s,mostRecentLocalCommit:this.props.mostRecentLocalCommit,rebaseConflictState:l,selectedFileIDs:c,onFileSelectionChanged:this.onFileSelectionChanged,onCreateCommit:this.onCreateCommit,onIncludeChanged:this.onIncludeChanged,onSelectAll:this.onSelectAll,onDiscardChanges:this.onDiscardChanges,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,askForConfirmationOnCommitFilteredChanges:this.props.askForConfirmationOnCommitFilteredChanges,onDiscardChangesFromFiles:this.onDiscardChangesFromFiles,onOpenItem:this.onOpenItem,onRowClick:this.onChangedItemClick,commitAuthor:this.props.commitAuthor,branch:this.props.branch,commitMessage:t,focusCommitMessage:this.props.focusCommitMessage,isShowingModal:this.props.isShowingModal,isShowingFoldout:this.props.isShowingFoldout,autocompletionProviders:this.autocompletionProviders,availableWidth:this.props.availableWidth,onIgnoreFile:this.onIgnoreFile,onIgnorePattern:this.onIgnorePattern,isCommitting:this.props.isCommitting,isGeneratingCommitMessage:this.props.isGeneratingCommitMessage,shouldShowGenerateCommitMessageCallOut:this.props.shouldShowGenerateCommitMessageCallOut,commitToAmend:this.props.commitToAmend,showCoAuthoredBy:n,coAuthors:r,externalEditorLabel:this.props.externalEditorLabel,onOpenItemInExternalEditor:this.onOpenItemInExternalEditor,onChangesListScrolled:this.props.onChangesListScrolled,changesListScrollTop:this.props.changesListScrollTop,stashEntry:this.props.changes.stashEntry,isShowingStashEntry:u,currentBranchProtected:o,shouldNudgeToCommit:this.props.shouldNudgeToCommit,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,currentRepoRulesInfo:a,aheadBehind:this.props.aheadBehind,accounts:this.props.accounts,fileListFilter:this.props.changes.fileListFilter,showChangesFilter:this.props.showChangesFilter}),this.renderUndoCommit(l))}}class y_ extends ke.Component{innerButtonRef=vs();diffOptionsRef=ke.createRef();gearIconRef=ke.createRef();constructor(e){super(e),this.state={isPopoverOpen:!1}}onButtonClick=e=>{e.preventDefault(),this.state.isPopoverOpen?this.closePopover():this.openPopover()};openPopover=()=>{this.setState((e=>e.isPopoverOpen?null:(this.props.onDiffOptionsOpened(),{isPopoverOpen:!0})))};closePopover=()=>{this.setState((e=>e.isPopoverOpen?{isPopoverOpen:!1}:null))};onHideWhitespaceChangesChanged=e=>this.props.onHideWhitespaceChangesChanged(e.currentTarget.checked);render(){const e="Diff Options";return ke.createElement("div",{className:"diff-options-component",ref:this.diffOptionsRef},ke.createElement("button",{"aria-label":e,onClick:this.onButtonClick,"aria-expanded":this.state.isPopoverOpen,ref:this.innerButtonRef},ke.createElement(ys,{target:this.innerButtonRef,direction:gs.NORTH,applyAriaDescribedBy:!1},e),ke.createElement("span",{ref:this.gearIconRef},ke.createElement(Rs,{symbol:ta})),ke.createElement(Rs,{symbol:ou})),this.state.isPopoverOpen&&this.renderPopover())}renderPopover(){return ke.createElement(ND,{ariaLabelledby:"diff-options-popover-header",anchor:this.gearIconRef.current,anchorPosition:ID.BottomRight,decoration:FD.Balloon,onMousedownOutside:this.closePopover,onClickOutside:this.closePopover},ke.createElement("h3",{id:"diff-options-popover-header"},"Diff Options"),this.renderHideWhitespaceChanges(),this.renderShowSideBySide())}onUnifiedSelected=()=>{this.props.onShowSideBySideDiffChanged(!1)};onSideBySideSelected=()=>{this.props.onShowSideBySideDiffChanged(!0)};renderShowSideBySide(){return ke.createElement("fieldset",{role:"radiogroup"},ke.createElement("legend",null,"差异显示"),ke.createElement(qM,{value:"Unified",checked:!this.props.showSideBySideDiff,label:"标准",onSelected:this.onUnifiedSelected}),ke.createElement(qM,{value:"Split",checked:this.props.showSideBySideDiff,label:ke.createElement(ke.Fragment,null,ke.createElement("div",null,"分割")),onSelected:this.onSideBySideSelected}))}renderHideWhitespaceChanges(){return ke.createElement("fieldset",null,ke.createElement("legend",null,"空格"),ke.createElement(vx,{value:this.props.hideWhitespaceChanges?Cx.On:Cx.Off,onChange:this.onHideWhitespaceChangesChanged,label:"隐藏空格更改"}),this.props.isInteractiveDiff&&ke.createElement("p",{className:"secondary-text"},"隐藏空格时将禁用与单行或块的交互。"))}}class w_ extends ke.Component{render(){const e=this.props.status,t=yw(e);return ke.createElement("div",{className:"header"},ke.createElement(bP,{path:this.props.path,status:this.props.status}),this.renderDiffOptions(),ke.createElement(Rs,{symbol:ih(e),className:"status status-"+t.toLowerCase(),title:t}))}renderDiffOptions(){return this.props.diff?.kind===Lu.Submodule?null:ke.createElement(y_,{isInteractiveDiff:!0,onHideWhitespaceChangesChanged:this.props.onHideWhitespaceInDiffChanged,hideWhitespaceChanges:this.props.hideWhitespaceInDiff,onShowSideBySideDiffChanged:this.props.onShowSideBySideDiffChanged,showSideBySideDiff:this.props.showSideBySideDiff,onDiffOptionsOpened:this.props.onDiffOptionsOpened})}}class b_ extends ke.Component{get lineSelectionDisabled(){return this.props.isCommitting||this.props.hideWhitespaceInDiff}onDiffLineIncludeChanged=e=>{if(!this.lineSelectionDisabled){const{repository:t,file:n}=this.props;this.props.dispatcher.changeFileLineSelection(t,n,e)}};onDiscardChanges=(e,t)=>{this.lineSelectionDisabled||(this.props.askForConfirmationOnDiscardChanges?this.props.dispatcher.showPopup({type:Sh.ConfirmDiscardSelection,repository:this.props.repository,file:this.props.file,diff:e,selection:t}):this.props.dispatcher.discardChangesFromSelection(this.props.repository,this.props.file.path,e,t))};render(){return ke.createElement("div",{className:"diff-container"},ke.createElement(w_,{path:this.props.file.path,status:this.props.file.status,diff:this.props.diff,showSideBySideDiff:this.props.showSideBySideDiff,onShowSideBySideDiffChanged:this.onShowSideBySideDiffChanged,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onDiffOptionsOpened:this.props.onDiffOptionsOpened}),ke.createElement(HI,{repository:this.props.repository,imageDiffType:this.props.imageDiffType,file:this.props.file,readOnly:!1,onIncludeChanged:this.onDiffLineIncludeChanged,onDiscardChanges:this.onDiscardChanges,diff:this.props.diff,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showSideBySideDiff:this.props.showSideBySideDiff,showDiffCheckMarks:this.props.showDiffCheckMarks,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onOpenBinaryFile:this.props.onOpenBinaryFile,onOpenSubmodule:this.props.onOpenSubmodule,onChangeImageDiffType:this.props.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged}))}onShowSideBySideDiffChanged=e=>{this.props.dispatcher.onShowSideBySideDiffChanged(e)};onHideWhitespaceInDiffChanged=e=>this.props.dispatcher.onHideWhitespaceInChangesDiffChanged(e,this.props.repository)}function C_(e){return e.replace("&&","&")}class v_ extends ke.Component{shouldComponentUpdate(e){return this.props.text!==e.text||this.props.highlight!==e.highlight}render(){const e=this.props.text.match(/^(.*?)?(?:&([^&]))(.*)?$/);if(!e)return ke.createElement("span",null,this.props.text);const t=new Array;e[1]&&t.push(ke.createElement("span",{key:1,"aria-hidden":!0},C_(e[1])));const n=hs()("access-key",{highlight:this.props.highlight});t.push(ke.createElement("span",{"aria-hidden":!0,key:2,className:n},e[2])),e[3]&&t.push(ke.createElement("span",{key:3,"aria-hidden":!0},C_(e[3])));const r=`${e[1]?C_(e[1]):""}${e[2]}${e[3]?C_(e[3]):""}`;return ke.createElement("span",null,ke.createElement("span",{className:"sr-only"},r),t)}}class S_ extends ke.Component{wrapperRef=ke.createRef();getIcon(e){return"checkbox"===e.type&&e.checked?ke.createElement(Rs,{className:"icon",symbol:ii}):"radio"===e.type&&e.checked?ke.createElement(Rs,{className:"icon",symbol:oo}):null}onMouseEnter=e=>{this.props.onMouseEnter?.(this.props.item,e)};onMouseLeave=e=>{this.props.onMouseLeave?.(this.props.item,e)};onClick=e=>{this.props.onClick?.(this.props.item,e)};componentDidMount(){this.props.selected&&this.props.focusOnSelection&&this.wrapperRef.current?.focus()}componentDidUpdate(e){const{focusOnSelection:t,selected:n}=this.props;t&&n&&!e.selected&&this.wrapperRef.current?.focus()}renderLabel(){const{item:e,renderLabel:t}=this.props;return void 0!==t?t(e):"separator"!==e.type?ke.createElement(v_,{text:e.label,highlight:this.props.highlightAccessKey}):void 0}render(){const e=this.props.item;if("separator"===e.type)return ke.createElement("hr",null);const t="submenuItem"===e.type&&!1!==this.props.renderSubMenuArrow?ke.createElement(Rs,{className:"submenu-arrow",symbol:lu}):null,n="submenuItem"!==e.type&&e.accelerator&&!1!==this.props.renderAcceleratorText?ke.createElement("div",{className:"accelerator"},function(e){return e.split("+").map(bh).join("+")}(e.accelerator)):null,{type:r}=e,s=hs()("menu-item",{disabled:!e.enabled,checkbox:"checkbox"===r,radio:"radio"===r,checked:("checkbox"===r||"radio"===r)&&e.checked,selected:this.props.selected}),i=this.props.hasNoRole?void 0:"checkbox"===r?"menuitemradio":"menuitem",o="checkbox"===r?e.checked:void 0;return ke.createElement("div",{id:this.props.menuItemId,className:s,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.onClick,ref:this.wrapperRef,role:i,tabIndex:-1,"aria-checked":o},this.getIcon(e),ke.createElement("div",{className:"label"},this.renderLabel()),n,t)}}class E_ extends ke.Component{onRowClick=(e,t)=>{if("separator"!==e.type&&e.enabled){const n={kind:"mouseclick",event:t};this.props.onItemClicked(this.props.depth,e,n)}};tryMoveSelection(e,t){const{items:n,selectedItem:r}=this.props,s=r?n.indexOf(r):-1,i=n.length,o=e=>n[e]&&is(n[e]);let a=null;return"up"===e||"down"===e?a=gx(i,{direction:e,row:s},o):"first"!==e&&"last"!==e||(a=yx("first"===e?"up":"down",i,o)),null!==a&&void 0!==n[a]&&(this.props.onSelectionChanged(this.props.depth,n[a],t),!0)}tryMoveSelectionByFirstCharacter(e,t){if(e.length>1||!A_(e)||!this.props.allowFirstCharacterNavigation)return;const{items:n,selectedItem:r}=this.props,s=e.toLowerCase(),i=r?n.indexOf(r)+1:0,o=i+1>n.length?0:i+1,a=n.map((e=>"separator"===e.type?"":e.label.trim()[0].toLowerCase()));let l=a.indexOf(s,o);return-1===l&&(l=a.indexOf(s,0)),l>=0&&void 0!==n[l]&&(this.props.onSelectionChanged(this.props.depth,n[l],t),!0)}onKeyDown=e=>{if(e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const t={kind:"keyboard",event:e},{selectedItem:n}=this.props,{key:r}=e;if(R_(r))if(e.preventDefault(),"ArrowUp"===r||"ArrowDown"===r)this.tryMoveSelection("ArrowUp"===r?"up":"down",t);else if("Home"===r||"End"===r){const e="Home"===r?"first":"last";this.tryMoveSelection(e,t)}else"Enter"===r||" "===r?void 0!==n&&this.props.onItemClicked(this.props.depth,n,t):at(0,"Unsupported key");if(this.tryMoveSelectionByFirstCharacter(r,t),this.props.enableAccessKeyNavigation){const t=os(e.key,this.props.items);t&&is(t)&&(e.preventDefault(),this.props.onSelectionChanged(this.props.depth,t,{kind:"keyboard",event:e}),this.props.onItemClicked(this.props.depth,t,{kind:"keyboard",event:e}))}this.props.onKeyDown?.(this.props.depth,e)};onMouseEnter=e=>{this.props.onMouseEnter?.(this.props.depth)};onRowMouseEnter=(e,t)=>{if(is(e)){const n={kind:"hover",event:t};this.props.onSelectionChanged(this.props.depth,e,n)}};onRowMouseLeave=(e,t)=>{this.props.selectedItem===e&&this.props.onClearSelection(this.props.depth)};render(){const e=hs()("menu-pane",this.props.className);return ke.createElement("div",{className:e,onMouseEnter:this.onMouseEnter,onKeyDown:this.onKeyDown,tabIndex:-1,role:"menu","aria-labelledby":this.props.ariaLabelledby},this.props.items.filter((e=>e.visible)).map(((e,t)=>ke.createElement(S_,{key:t+e.id,item:e,highlightAccessKey:!0===this.props.enableAccessKeyNavigation,selected:e.id===this.props.selectedItem?.id,onMouseEnter:this.onRowMouseEnter,onMouseLeave:this.onRowMouseLeave,onClick:this.onRowClick,renderLabel:this.props.renderLabel,focusOnSelection:!0}))))}}const k_=["ArrowUp","ArrowDown","Home","End","Enter"," "],R_=e=>k_.includes(e),A_=e=>1===e.length&&e.match(/\S/);class T_ extends ke.Component{expandCollapseTimer=null;onItemClicked=(e,t,n)=>{if(this.clearExpandCollapseTimer(),"submenuItem"===t.type){const e=this.props.enableAccessKeyNavigation&&"keyboard"===n.kind&&"Enter"!==n.event.key&&" "!==n.event.key;this.props.dispatcher.setAppMenuState((n=>n.withOpenedMenu(t,e)))}else"separator"!==t.type&&(this.props.onClose({type:"item-executed"}),this.props.dispatcher.executeMenuItem(t))};onPaneKeyDown=(e,t)=>{const{selectedItem:n}=this.props.state[e];"ArrowLeft"===t.key||"Escape"===t.key?(this.clearExpandCollapseTimer(),0===e&&"Escape"===t.key?(this.props.onClose({type:"keyboard",event:t}),t.preventDefault()):e>0&&(this.props.dispatcher.setAppMenuState((t=>t.withClosedMenu(this.props.state[e]))),t.preventDefault())):"ArrowRight"===t.key&&(this.clearExpandCollapseTimer(),"submenuItem"===n?.type&&(this.props.dispatcher.setAppMenuState((e=>e.withOpenedMenu(n,!0))),t.preventDefault()))};clearExpandCollapseTimer(){this.expandCollapseTimer&&(window.clearTimeout(this.expandCollapseTimer),this.expandCollapseTimer=null)}scheduleExpand(e){this.clearExpandCollapseTimer(),this.expandCollapseTimer=window.setTimeout((()=>{this.props.dispatcher.setAppMenuState((t=>t.withOpenedMenu(e)))}),300)}scheduleCollapseTo(e){this.clearExpandCollapseTimer(),this.expandCollapseTimer=window.setTimeout((()=>{this.props.dispatcher.setAppMenuState((t=>t.withLastMenu(e)))}),300)}onClearSelection=e=>{this.props.dispatcher.setAppMenuState((t=>t.withDeselectedMenu(this.props.state[e])))};onSelectionChanged=(e,t,n)=>{this.clearExpandCollapseTimer(),"keyboard"===n.kind?this.props.dispatcher.setAppMenuState((n=>n.withSelectedItem(t).withLastMenu(this.props.state[e]))):("submenuItem"===t.type?this.scheduleExpand(t):this.scheduleCollapseTo(this.props.state[e]),this.props.dispatcher.setAppMenuState((e=>e.withSelectedItem(t))))};onPaneMouseEnter=e=>{this.clearExpandCollapseTimer();const t=this.props.state[e],n=t.selectedItem;n?this.props.dispatcher.setAppMenuState((e=>e.withSelectedItem(n))):this.props.dispatcher.setAppMenuState((e=>e.withDeselectedMenu(t)))};renderMenuPane(e,t){const n=t.id||"@",r=t.id?function(e){const t=e.replace(/^@\./,"").replace(/&/g,"").replace(/[^a-z0-9_]+/gi,"-").replace(/_+/,"_").toLowerCase();return t.length?`menu-pane-${t}`:void 0}(t.id):void 0;return ke.createElement(E_,{key:n,className:r,depth:e,items:t.items,selectedItem:t.selectedItem,onItemClicked:this.onItemClicked,onMouseEnter:this.onPaneMouseEnter,onKeyDown:this.onPaneKeyDown,onSelectionChanged:this.onSelectionChanged,enableAccessKeyNavigation:this.props.enableAccessKeyNavigation,onClearSelection:this.onClearSelection,ariaLabelledby:this.props.ariaLabelledby})}render(){const e=this.props.state.map(((e,t)=>this.renderMenuPane(t,e)));return ke.createElement("div",{id:"app-menu-foldout"},e)}componentWillUnmount(){this.clearExpandCollapseTimer()}}class x_ extends ke.Component{render(){return ke.createElement("div",{id:this.props.id,className:"toolbar"},this.props.children)}}var D_,M_;!function(e){e[e.Standard=0]="Standard",e[e.Subtitle=1]="Subtitle"}(D_||(D_={}));class P_ extends ke.Component{wrapperRef=vs();innerButton=null;onClick=e=>{this.props.onClick&&this.props.onClick(e)};onButtonRef=e=>{this.innerButton=e};focusButton=()=>{this.innerButton&&this.innerButton.focus()};getButtonBoundingClientRect=()=>this.innerButton?this.innerButton.getBoundingClientRect():void 0;render(){const{tooltip:e}=this.props,t=this.props.icon?ke.createElement(Rs,{symbol:this.props.icon,className:hs()("icon",this.props.iconClassName)}):null,n=hs()("toolbar-button",{"has-progress":void 0!==this.props.progressValue},{resizable:!0},this.props.className),r=void 0!==this.props.progressValue?Math.round(100*Oy(this.props.progressValue,0,1))/100:void 0,s=void 0!==r?ke.createElement("div",{className:"progress",style:{transform:`scaleX(${r})`}}):void 0;return ke.createElement("div",{className:n,ref:this.wrapperRef},e&&ke.createElement(ys,{target:this.wrapperRef,direction:gs.SOUTH,onlyWhenOverflowed:this.props.onlyShowTooltipWhenOverflowed,isTargetOverflowed:this.props.isOverflowed},e),ke.createElement(Ss,{onClick:this.onClick,onContextMenu:this.props.onContextMenu,ref:this.onButtonRef,disabled:this.props.disabled,onMouseEnter:this.props.onMouseEnter,tabIndex:this.props.tabIndex,role:this.props.role,ariaExpanded:this.props.ariaExpanded,ariaHaspopup:this.props.ariaHaspopup,ariaLabel:this.props.ariaLabel},s,t,this.renderText(),this.props.children))}renderText(){if(void 0===this.props.title&&void 0===this.props.description)return null;const e=void 0!==this.props.title?ke.createElement("div",{className:"title"},this.props.title):null,t=void 0!==this.props.description?ke.createElement("div",{className:"description"},this.props.description):null,n=this.props.style||D_.Standard;switch(n){case D_.Standard:return ke.createElement("div",{className:"text"},t,e);case D_.Subtitle:return ke.createElement("div",{className:"text"},ke.createElement("div",{className:"title"},this.props.title),t);default:return at(0,`Unknown button style: ${n}`)}}}!function(e){e[e.Foldout=0]="Foldout",e[e.MultiOption=1]="MultiOption"}(M_||(M_={}));class I_ extends ke.Component{innerButton=ke.createRef();rootDiv=ke.createRef();focusTrapOptions;constructor(e){super(e),this.state={clientRect:null},this.focusTrapOptions={allowOutsideClick:!0,clickOutsideDeactivates:!1,escapeDeactivates:!1,returnFocusOnDeactivate:this.props.returnFocusOnDeactivate,onDeactivate:this.props.onDropdownFocusTrapDeactivate}}get isOpen(){return"open"===this.props.dropdownState}dropdownIcon(e){return"open"===e?cu:"closed"===e?ou:at(0,`Unknown dropdown state ${e}`)}renderDropdownArrow(){if(!1===this.props.showDisclosureArrow)return null;const e=this.props.dropdownState,t=ke.createElement(Rs,{symbol:this.dropdownIcon(e),className:"dropdownArrow"});return this.props.dropdownStyle===M_.MultiOption?ke.createElement(P_,{className:"toolbar-dropdown-arrow-button",onClick:this.onToggleDropdownClick,ariaExpanded:this.isOpen,ariaHaspopup:!0,ariaLabel:this.props.ariaLabel},t):t}onToggleDropdownClick=e=>{const t="open"===this.props.dropdownState?"closed":"open",n=e.clientX||e.clientY?"pointer":"keyboard";this.props.onDropdownStateChanged(t,n)};onMainButtonClick=e=>{this.props.dropdownStyle!==M_.MultiOption?this.onToggleDropdownClick(e):this.props.onClick?.(e)};onContextMenu=e=>{this.props.onContextMenu?.(e)};updateClientRectIfNecessary(){if("open"===this.props.dropdownState&&this.rootDiv.current){const e=this.rootDiv.current.getBoundingClientRect();if(e){const t=this.state.clientRect;t&&fs(t,e)||this.setState({clientRect:e})}}}componentDidMount(){this.updateClientRectIfNecessary()}componentDidUpdate(){this.updateClientRectIfNecessary()}handleOverlayClick=()=>{this.props.onDropdownStateChanged("closed","pointer")};getFoldoutContainerStyle(){const e=this.state.clientRect;if(e)return{position:"fixed",top:e.bottom,left:0,width:"100%",height:`calc(100% - ${e.bottom}px)`}}getFoldoutStyle(){if(this.props.foldoutStyle)return this.props.foldoutStyle;const e=this.state.clientRect;if(!e)return;const t=this.props.dropdownStyle===M_.MultiOption?{maxHeight:"100%",width:e.width}:{height:"100%",minWidth:e.width},n=this.props.foldoutStyleOverrides??{};return{position:"absolute",marginLeft:e.left,top:0,...t,...n}}onFoldoutKeyDown=e=>{!e.defaultPrevented&&this.isOpen&&"Escape"===e.key&&(e.preventDefault(),this.props.onDropdownStateChanged("closed","keyboard"))};renderDropdownContents=()=>"open"!==this.props.dropdownState?null:ke.createElement(Rx(),{active:this.props.enableFocusTrap??!0,focusTrapOptions:this.focusTrapOptions},ke.createElement("div",{id:"foldout-container",style:this.getFoldoutContainerStyle()},ke.createElement("div",{className:"overlay",tabIndex:-1,onClick:this.handleOverlayClick}),ke.createElement("div",{className:"foldout",style:this.getFoldoutStyle(),tabIndex:-1,onKeyDown:this.onFoldoutKeyDown},this.props.dropdownContentRenderer())));focusButton=()=>{this.innerButton.current&&this.innerButton.current.focusButton()};render(){const e=hs()("toolbar-dropdown",{resizable:!0},this.props.dropdownStyle===M_.MultiOption?"multi-option-style":"foldout-style",this.props.dropdownState,this.props.className);return ke.createElement("div",{className:e,onKeyDown:this.props.onKeyDown,role:this.props.role,onDragOver:this.props.onDragOver,ref:this.rootDiv},this.renderDropdownContents(),ke.createElement(P_,{className:this.props.buttonClassName,ref:this.innerButton,icon:this.props.icon,title:this.props.title,description:this.props.description,tooltip:this.props.tooltip,onClick:this.onMainButtonClick,onContextMenu:this.onContextMenu,onMouseEnter:this.props.onMouseEnter,style:this.props.style,iconClassName:this.props.iconClassName,disabled:this.props.disabled,tabIndex:this.props.tabIndex,progressValue:this.props.progressValue,role:this.props.buttonRole,onlyShowTooltipWhenOverflowed:this.props.onlyShowTooltipWhenOverflowed,isOverflowed:this.props.isOverflowed,ariaExpanded:this.props.dropdownStyle===M_.MultiOption?void 0:this.isOpen,ariaHaspopup:this.props.buttonAriaHaspopup},this.props.children,this.props.dropdownStyle!==M_.MultiOption&&this.renderDropdownArrow()),this.props.dropdownStyle===M_.MultiOption&&this.renderDropdownArrow())}}class __ extends Re().Component{buttonsContainerRef=null;componentDidMount(){window.addEventListener("keydown",this.onDropdownKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.onDropdownKeyDown)}onButtonsContainerRef=e=>{this.buttonsContainerRef=e};onDropdownKeyDown=e=>{if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();const t=this.buttonsContainerRef?.querySelectorAll(`.${F_}`);if(void 0===t)return;const n=this.buttonsContainerRef?.querySelector(":focus");if(!n)return;const r=Array.from(t).indexOf(n),s=t[(("ArrowDown"===e.key?r+1:r-1)+t.length)%t.length];s?.focus()};getDropdownItemWithType(e){const{remoteName:t}=this.props;switch(e){case N_.Fetch:return{title:`Fetch ${t}`,description:`Fetch the latest changes from ${t}`,action:this.props.fetch,icon:oh};case N_.ForcePush:{const e=this.props.askForConfirmationOnForcePush?null:Re().createElement("div",{className:"warning"},Re().createElement("span",{className:"warning-title"},"Warning:")," A force push will rewrite history on the remote. Any collaborators working on this branch will need to reset their own local branch to match the history of the remote.");return{title:`Force push ${t}`,description:Re().createElement(Re().Fragment,null,"Overwrite any changes on ",t," with your local changes",e),action:this.props.forcePushWithLease,icon:B_}}}}renderDropdownItem=e=>{const t=this.getDropdownItemWithType(e);return Re().createElement(Ss,{className:F_,key:e,onClick:t.action},Re().createElement(Rs,{symbol:t.icon}),Re().createElement("div",{className:"text-container"},Re().createElement("div",{className:"title"},t.title),Re().createElement("div",{className:"detail"},t.description)))};render(){const{itemTypes:e}=this.props;return Re().createElement("div",{className:"push-pull-dropdown",ref:this.onButtonsContainerRef},e.map(this.renderDropdownItem))}}const F_="push-pull-dropdown-item";var N_;function O_(e,t){const{ahead:n,behind:r}=e;if(0===n&&0===r&&0===t)return null;const s=new Array;return(n>0||t>0)&&s.push(ke.createElement("span",{key:"ahead"},n+t,ke.createElement(Rs,{symbol:Hs}))),r>0&&s.push(ke.createElement("span",{key:"behind"},r,ke.createElement(Rs,{symbol:_s}))),ke.createElement("div",{className:"ahead-behind"},s)}function L_(e){return e?ke.createElement("span",null,"最后一次同步在 ",ke.createElement(jI,{date:e})):"从未获取"}!function(e){e.Fetch="fetch",e.ForcePush="force-push"}(N_||(N_={}));const B_={w:10,h:16,p:["M0 6a.75.75 0 0 0 .974.714L4.469 3.22a.75.75 0 0 1 1.06 0l3.478 3.478a.75.75 0 0 0 .772-1.228L5.53 1.22a.75.75 0 0 0-1.06 0L.22 5.47A.75.75 0 0 0 0 6zm0 3a.75.75 0 0 0 1.28.53l2.97-2.97V14a.75.75 0 1 0 1.5 0V6.56l2.97 2.97a.75.75 0 0 0 1.06-1.06L5.53 4.22a.75.75 0 0 0-1.06 0L.22 8.47A.75.75 0 0 0 0 9z"]};class H_ extends ke.Component{constructor(e){super(e),this.state={screenReaderStateMessage:null,actionInProgress:null}}componentDidUpdate(e){const t=null!==this.props.progress&&null==e.progress||this.props.progress?.title!==e.progress?.title,n=null===this.props.progress&&null!==e.progress;t&&this.setScreenReaderLoadingStateMessage(),n&&this.setState({screenReaderStateMessage:`${this.state.actionInProgress??"Pull, push, or fetch"} complete`,actionInProgress:null})}isPullPushFetchProgress(e){return"push"===e||"pull"===e||"fetch"===e}setScreenReaderLoadingStateMessage(){const{progress:e}=this.props;if(null===e)return;const{description:t,title:n,kind:r}=e,s=`${n} ${t??"请稍后..."}`,i=null===this.state.actionInProgress&&this.isPullPushFetchProgress(r)?r:this.state.actionInProgress;this.setState({screenReaderStateMessage:s,actionInProgress:i})}defaultButtonProps(){return{className:"push-pull-button",style:D_.Subtitle}}defaultDropdownProps(){return{buttonClassName:"push-pull-button",style:D_.Subtitle,dropdownStyle:M_.MultiOption,ariaLabel:"Push, pull, fetch options",dropdownState:this.props.isDropdownOpen?"open":"closed",enableFocusTrap:this.props.enableFocusTrap,onDropdownStateChanged:this.props.onDropdownStateChanged}}closeDropdown(){this.props.dispatcher.closeFoldout(Qe.PushPull)}push=()=>{this.closeDropdown(),this.props.dispatcher.push(this.props.repository)};returnFocusOnDeactivate=()=>!(this.props.forcePushBranchState!==Ly.NotAvailable&&this.props.askForConfirmationOnForcePush);onDropdownFocusTrapDeactivate=()=>{this.returnFocusOnDeactivate()||this.setScreenReaderStateMessageFocus()};setScreenReaderStateMessageFocus(){const e=document.getElementById("push-pull-button-state");e&&(e.tabIndex=-1,e.focus())}forcePushWithLease=()=>{this.closeDropdown(),this.setScreenReaderStateMessageFocus(),this.props.dispatcher.confirmOrForcePush(this.props.repository),this.setState({actionInProgress:"force push"})};pull=()=>{this.closeDropdown(),this.props.dispatcher.pull(this.props.repository)};fetch=()=>{this.closeDropdown(),this.props.dispatcher.fetch(this.props.repository,mn.UserInitiatedTask)};onResize=e=>{this.props.dispatcher.setPushPullButtonWidth(e)};onReset=()=>{this.props.dispatcher.resetPushPullButtonWidth()};getDropdownContentRenderer(e){return()=>ke.createElement(__,{itemTypes:e,remoteName:this.props.remoteName,fetch:this.fetch,forcePushWithLease:this.forcePushWithLease,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush})}render(){return ke.createElement(ke.Fragment,null,ke.createElement(UC,{width:this.props.pushPullButtonWidth.value,onReset:this.onReset,onResize:this.onResize,maximumWidth:this.props.pushPullButtonWidth.max,minimumWidth:this.props.pushPullButtonWidth.min,description:"Push pull button"},this.renderButton(),ke.createElement("span",{id:"push-pull-button-state"},ke.createElement(LC,{message:this.state.screenReaderStateMessage}))))}renderButton(){const{progress:e,networkActionInProgress:t,aheadBehind:n,numTagsToPush:r,remoteName:s,repository:i,tipState:o,rebaseInProgress:a,lastFetched:l,pullWithRebase:c,forcePushBranchState:u}=this.props;if(null!==e)return this.progressButton(e,t);if(null===s)return this.publishRepositoryButton(this.push);if(o===zr.Unborn)return this.unbornRepositoryButton();if(o===zr.Detached)return this.detachedHeadButton(a);if(null===n){const e=null!==i.gitHubRepository;return this.publishBranchButton(e,this.push,this.props.shouldNudge)}const{ahead:h,behind:p}=n;return 0===h&&0===p&&0===r?this.fetchButton(s,l,this.fetch):u===Ly.Recommended?this.forcePushButton(s,n,r,l,this.forcePushWithLease):p>0?this.pullButton(s,n,r,l,c||!1,u,this.pull):this.pushButton(s,n,r,l,this.push)}progressButton(e,t){return ke.createElement(P_,{...this.defaultButtonProps(),title:e.title,description:e.description||"请稍后...",progressValue:e.value,icon:oh,iconClassName:t?"spin":"",tooltip:e.description,disabled:!0})}publishRepositoryButton(e){return ke.createElement(P_,{...this.defaultButtonProps(),title:"发布存储库",description:"将此仓库发布到GitHub",className:"push-pull-button",icon:bu,style:D_.Subtitle,onClick:e})}unbornRepositoryButton(){return ke.createElement(P_,{...this.defaultButtonProps(),title:"发布分支",description:"Cannot publish: no commits",icon:bu,disabled:!0})}detachedHeadButton(e){const t=e?"正在重设变基":"Cannot publish detached HEAD";return ke.createElement(P_,{...this.defaultButtonProps(),title:"发布分支",description:t,icon:bu,disabled:!0})}publishBranchButton(e,t,n){const r=e?"将此分支发布到GitHub":"将此分支发布到远程",s=hs()(this.defaultDropdownProps().className,"nudge-arrow",{"nudge-arrow-up":n});return ke.createElement(I_,{...this.defaultDropdownProps(),title:"发布分支",description:r,icon:bu,onClick:t,className:s,dropdownContentRenderer:this.getDropdownContentRenderer([N_.Fetch])})}fetchButton(e,t,n){const r=`同步(拉取然后推送) ${e}`;return ke.createElement(P_,{...this.defaultButtonProps(),title:r,description:L_(t),icon:oh,onClick:n})}pullButton(e,t,n,r,s,i,o){const a=s?`拉取 ${e} 至变基`:`拉取 ${e}`,l=[N_.Fetch];return i!==Ly.NotAvailable&&l.push(N_.ForcePush),ke.createElement(I_,{...this.defaultDropdownProps(),title:a,description:L_(r),icon:_s,onClick:o,dropdownContentRenderer:this.getDropdownContentRenderer(l),returnFocusOnDeactivate:this.returnFocusOnDeactivate(),onDropdownFocusTrapDeactivate:this.onDropdownFocusTrapDeactivate},O_(t,n))}pushButton(e,t,n,r,s){return ke.createElement(I_,{...this.defaultDropdownProps(),title:`推送 ${e}`,description:L_(r),icon:Hs,onClick:s,dropdownContentRenderer:this.getDropdownContentRenderer([N_.Fetch])},O_(t,n))}forcePushButton(e,t,n,r,s){return ke.createElement(I_,{...this.defaultDropdownProps(),title:`强制推送 ${e}`,description:L_(r),icon:B_,onClick:s,dropdownContentRenderer:this.getDropdownContentRenderer([N_.Fetch])},O_(t,n))}}function U_(e){return void 0===e}class Z_ extends ke.Component{constructor(e){super(e),this.state={isPushingOrPublishing:!1}}render(){return ke.createElement(AM,{id:"push-branch-commits",key:"push-branch-commits",title:this.renderDialogTitle(),onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,loading:this.state.isPushingOrPublishing,disabled:this.state.isPushingOrPublishing,role:"alertdialog",ariaDescribedBy:"push-branch-commits-title push-branch-commits-message"},this.renderDialogContent(),ke.createElement(xM,null,this.renderButtonGroup()))}renderDialogContent(){if(U_(this.props.unPushedCommits))return ke.createElement(vM,null,ke.createElement("p",{id:"push-branch-commits-title"},"您的分支必须在打开拉取请求之前发布。"),ke.createElement("p",{id:"push-branch-commits-message"},"发布 ",ke.createElement(UM,null,this.props.branch.name)," 并且拉取?"));const e=(n="local commit",1===(t=this.props.unPushedCommits)?`${t} ${n}`:`${t} ${n}s`);var t,n;return ke.createElement(vM,null,ke.createElement("p",{id:"push-branch-commits-title"},"你有 ",e," 尚未推送到远程的提交。"),ke.createElement("p",{id:"push-branch-commits-message"},"推送更改到"," ",ke.createElement(UM,null,this.props.branch.name)," 在创建拉取请求之前?"))}renderDialogTitle(){return U_(this.props.unPushedCommits)?"发布分支?":"推送本地更改?"}renderButtonGroup(){return U_(this.props.unPushedCommits)?ke.createElement(DM,{okButtonText:"发布分支"}):ke.createElement(DM,{okButtonText:"推送提交",cancelButtonText:"无推送创建",onCancelButtonClick:this.onCreateWithoutPushButtonClick})}onCreateWithoutPushButtonClick=e=>{e.preventDefault(),this.props.onConfirm(this.props.repository,this.props.branch),this.props.onDismissed()};onSubmit=async()=>{const{repository:e,branch:t}=this.props;this.setState({isPushingOrPublishing:!0});try{await this.props.dispatcher.push(e)}finally{this.setState({isPushingOrPublishing:!1})}this.props.onConfirm(e,t),this.props.onDismissed()}}function $_(e,t,n,r){const s=new Array;e&&s.push({identifier:"default",items:[{text:[e.name],id:e.name,branch:e}]});const i=new Set,o=e?e.name:null,a=r.filter((e=>e.name!==o));if(a.length>0){const e=new Array;for(const t of a)e.push({text:[t.name],id:t.name,branch:t}),i.add(t.name);s.push({identifier:"recent",items:e})}const l=n.filter((e=>e.name!==o&&!i.has(e.name)&&!e.isDesktopForkRemoteBranch)),c=l.map((e=>({text:[e.name],id:e.name,branch:e})));return s.push({identifier:"other",items:c}),s}const W_=Ft(__dirname,"static/empty-no-branches.svg");class V_ extends ke.Component{render(){return this.props.canCreateNewBranch?ke.createElement("div",{className:"no-branches"},ke.createElement("img",{src:W_,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"title"},"抱歉,未找到分支"),ke.createElement("div",{className:"subtitle"},"是否创建新分支?"),ke.createElement(Ss,{className:"create-branch-button",onClick:this.props.onCreateNewBranch,type:"submit"},"创建新分支"),ke.createElement("div",{className:"protip"},"ProTip! Press"," ",ke.createElement(_u,{darwinKeys:["⌘","⇧","N"],keys:["Ctrl","Shift","N"]})," ","可快速创建分支")):ke.createElement("div",{className:"no-branches"},this.props.noBranchesMessage??"抱歉,未找到分支")}}function q_(e){const{name:t,isLocal:n,onRenameBranch:r,onViewPullRequestOnGitHub:s,onDeleteBranch:i}=e,o=new Array;return void 0!==r&&o.push({label:"重命名",action:()=>r(t),enabled:n}),o.push({label:"复制分支名",action:()=>m.clipboard.writeText(t)}),void 0!==s&&o.push({label:"View Pull Request on GitHub",action:()=>s()}),o.push({type:"separator"}),void 0!==i&&o.push({label:"删除",action:()=>i(t)}),o}const G_=new Map;class z_ extends ke.Component{branchFilterList=null;getGroups=xr($_);getSelectedItem=xr(((e,t)=>e.flatMap((e=>e.items)).find((e=>e.branch.name===t?.name))??null));getInvalidationProp=xr(((e,t)=>wT()()));get invalidationProp(){return this.getInvalidationProp(this.groups,this.state.commitAuthorDates)}get groups(){return this.getGroups(this.props.defaultBranch,this.props.currentBranch,this.props.allBranches,this.props.recentBranches)}get selectedItem(){return this.getSelectedItem(this.groups,this.props.selectedBranch)}constructor(e){super(e),this.state={commitAuthorDates:new Map}}selectNextItem(e=!1,t){null!==this.branchFilterList&&this.branchFilterList.selectNextItem(e,t)}componentDidUpdate(e){e.allBranches!==this.props.allBranches&&this.populateCommitDates()}populateCommitDates=()=>{const e=new Map,t=new Array,n=new Set(this.props.allBranches.map((e=>e.tip.sha)));for(const r of n){const n=G_.get(r);n?e.set(r,n):t.push(r)}for(const e of G_.keys())n.has(e)||G_.delete(e);this.setState({commitAuthorDates:e}),t.length>0&&async function(e,t){if(0===t.length)return[];const{stdout:n}=await zd(["log","--format=format:%an <%ae> %ad","--no-walk=unsorted","--date=raw","-z","--stdin"],e.path,"getAuthors",{stdin:t.join("\n")}),r=n.split("\0").map(xf.parseIdentity);return Bd().equal(r.length,t.length,"Commit to author mismatch"),r}(this.props.repository,t).then((e=>{e.forEach((({date:e},n)=>G_.set(t[n],e))),this.populateCommitDates()})).catch((e=>log.error("Failed to populate commit dates",e)))};componentDidMount(){this.populateCommitDates()}render(){return ke.createElement(ax,{ref:this.onBranchesFilterListRef,className:"branches-list",rowHeight:30,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,onFilterKeyDown:this.props.onFilterKeyDown,selectedItem:this.selectedItem,renderItem:this.renderItem,renderRowFocusTooltip:this.renderRowFocusTooltip,renderGroupHeader:this.renderGroupHeader,onItemClick:this.onItemClick,onSelectionChanged:this.onSelectionChanged,onEnterPressedWithoutFilteredItems:this.onCreateNewBranch,groups:this.groups,invalidationProps:this.invalidationProp,renderPostFilter:this.onRenderNewButton,renderNoItems:this.onRenderNoItems,filterTextBox:this.props.textbox,hideFilterRow:this.props.hideFilterRow,onFilterListResultsChanged:this.props.onFilterListResultsChanged,renderPreList:this.props.renderPreList,onItemContextMenu:this.onBranchContextMenu,getItemAriaLabel:this.getItemAriaLabel,getGroupAriaLabel:this.getGroupAriaLabel})}onBranchContextMenu=(e,t)=>{t.preventDefault();const{onRenameBranch:n,onDeleteBranch:r}=this.props;if(void 0===n&&void 0===r)return;const{type:s,name:i}=e.branch;Ch(q_({name:i,isLocal:s===rd.Local,onRenameBranch:n,onDeleteBranch:r}))};onBranchesFilterListRef=e=>{this.branchFilterList=e};renderItem=(e,t)=>this.props.renderBranch(e,t,this.state.commitAuthorDates.get(e.branch.tip.sha));renderRowFocusTooltip=e=>{const{tip:t,name:n}=e.branch,r=this.state.commitAuthorDates.get(t.sha),s=r?Mt(r,{dateStyle:"full",timeStyle:"short"}):null;return ke.createElement("div",{className:"branches-list-item-tooltip list-item-tooltip"},ke.createElement("div",null,ke.createElement("div",{className:"label"},"Full Name: "),n),s&&ke.createElement("div",null,ke.createElement("div",{className:"label"},"Last Modified: "),s))};parseHeader(e){switch(e){case"default":case"recent":case"other":return e;default:return null}}getItemAriaLabel=e=>this.props.getBranchAriaLabel(e,this.state.commitAuthorDates.get(e.branch.tip.sha));getGroupAriaLabel=e=>{const t=this.groups[e].identifier;return this.getGroupLabel(t)};renderGroupHeader=e=>{const t=this.parseHeader(e);return null!==t?ke.createElement("div",{className:"branches-list-content filter-list-group-header"},this.getGroupLabel(t)):null};getGroupLabel(e){return"default"===e?"默认分支":"recent"===e?"最近分支":"other"===e?"其它分支":at(0,`未知标识符: ${e}`)}onRenderNoItems=()=>ke.createElement(V_,{onCreateNewBranch:this.onCreateNewBranch,canCreateNewBranch:this.props.canCreateNewBranch,noBranchesMessage:this.props.noBranchesMessage});onRenderNewButton=()=>this.props.canCreateNewBranch?ke.createElement(Ss,{className:"new-branch-button",onClick:this.onCreateNewBranch},"新建分支"):null;onItemClick=(e,t)=>{this.props.onItemClick&&this.props.onItemClick(e.branch,t)};onSelectionChanged=(e,t)=>{this.props.onSelectionChanged&&this.props.onSelectionChanged(e?e.branch:null,t)};onCreateNewBranch=()=>{this.props.onCreateNewBranch&&this.props.onCreateNewBranch(this.props.filterText)}}class j_ extends ke.PureComponent{statusSubscription=null;constructor(e){super(e);const t=e.dispatcher.tryGetCommitStatus(this.props.repository,this.props.commitRef);this.state={check:t},this.props.onCheckChange?.(t)}subscribe(){this.unsubscribe(),this.statusSubscription=this.props.dispatcher.subscribeToCommitStatus(this.props.repository,this.props.commitRef,this.onStatus)}unsubscribe(){this.statusSubscription&&(this.statusSubscription.dispose(),this.statusSubscription=null)}componentDidUpdate(e){this.props.repository===e.repository&&this.props.commitRef===e.commitRef||(this.setState({check:this.props.dispatcher.tryGetCommitStatus(this.props.repository,this.props.commitRef)}),this.subscribe())}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe()}onStatus=e=>{void 0!==this.props.onCheckChange&&this.props.onCheckChange(e),this.setState({check:e})};render(){const{check:e}=this.state;return null===e||0===e.checks.length?null:ke.createElement(Rs,{className:hs()("ci-status",`ci-status-${Y_(e)}`,this.props.className),symbol:K_(e)})}}function K_(e){switch(e.conclusion){case"timed_out":case"failure":return Ru;case"neutral":return Nc;case"success":return ii;case"cancelled":return Uc;case"action_required":return xs;case"skipped":return Ac;case"stale":return _a}return oo}function Y_(e){switch(e.conclusion){case"timed_out":return"timed-out";case"action_required":return"action-required";case"failure":case"neutral":case"success":case"cancelled":case"skipped":case"stale":return e.conclusion}return"pending"}function X_(e){switch(e.conclusion){case"success":return ai;case"failure":return Tu}return K_(e)}class Q_ extends ke.Component{constructor(e){super(e),this.state={isDragInProgress:!1}}getSubtitle(){if(!0===this.props.loading)return;const e=Cb(this.props.created.getTime()-Date.now()),t=`#${this.props.number} opened ${e} by ${this.props.author}`;return this.props.draft?`${t} • Draft`:t}onMouseEnter=e=>{Ip.isDragInProgress&&(this.setState({isDragInProgress:!0}),Ip.emitEnterDropTarget({type:Fp.Branch,branchName:this.props.title}));const{top:t}=e.currentTarget.getBoundingClientRect();this.props.onMouseEnter(this.props.number,t)};onMouseLeave=e=>{Ip.isDragInProgress&&(this.setState({isDragInProgress:!1}),Ip.emitLeaveDropTarget()),this.props.onMouseLeave(e)};onMouseUp=()=>{Ip.isDragInProgress&&(this.setState({isDragInProgress:!1}),this.props.onDropOntoPullRequest(this.props.number))};render(){const e=!0===this.props.loading?void 0:this.props.title,t=this.getSubtitle(),n=this.props.matches,r=hs()("pull-request-item",{loading:!0===this.props.loading,open:!this.props.draft,draft:this.props.draft,"drop-target":this.state.isDragInProgress});return ke.createElement("div",{className:r,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseUp:this.onMouseUp},ke.createElement("div",null,ke.createElement(Rs,{className:"icon",symbol:this.props.draft?ua:la})),ke.createElement("div",{className:"info"},ke.createElement(lh,{tagName:"div",className:"title",tooltip:e,onlyWhenOverflowed:!0},ke.createElement(ah,{text:e||"",highlight:n.title})),ke.createElement(lh,{tagName:"div",className:"subtitle",tooltip:t,onlyWhenOverflowed:!0},ke.createElement(ah,{text:t||"",highlight:n.subtitle}))),this.renderPullRequestStatus())}renderPullRequestStatus(){const e=ym(this.props.number);return ke.createElement("div",{className:"ci-status-container"},ke.createElement(j_,{dispatcher:this.props.dispatcher,repository:this.props.repository,commitRef:e}))}}const J_=Ft(__dirname,"static/empty-no-pull-requests.svg");class eF extends ke.Component{render(){return ke.createElement("div",{className:"no-pull-requests"},ke.createElement("img",{src:J_,className:"blankslate-image",alt:""}),this.renderTitle(),this.renderCallToAction())}renderTitle(){return this.props.isSearch?ke.createElement("div",{className:"title"},"Sorry, I can't find that pull request!"):this.props.isLoadingPullRequests?ke.createElement("div",{className:"title"},"Hang tight"):ke.createElement("div",null,ke.createElement("div",{className:"title"},"You're all set!"),ke.createElement("div",{className:"no-prs"},"No open pull requests in ",ke.createElement(UM,null,this.props.repositoryName)))}renderCallToAction(){return this.props.isLoadingPullRequests?ke.createElement("div",{className:"call-to-action"},"Loading pull requests as fast as I can!"):this.props.isOnDefaultBranch?ke.createElement("div",{className:"call-to-action"},"Would you like to"," ",ke.createElement(sM,{onClick:this.props.onCreateBranch},"create a new branch")," ","and get going on your next project?"):ke.createElement("div",{className:"call-to-action"},"Would you like to"," ",ke.createElement(sM,{onClick:this.props.onCreatePullRequest},"create a pull request")," ","from the current branch?")}}function tF(e,t,n){let r=null;return null!=t.selectedPullRequest&&(r=iF(e,t.selectedPullRequest)),null==r&&null!=n&&(r=iF(e,n.pullRequest)),r}class nF extends ke.Component{constructor(e){super(e);const t=sF(e.pullRequests),n=tF(t,e,null);this.state={filterText:"",groupedItems:[t],selectedItem:n,screenReaderStateMessage:null}}componentWillReceiveProps(e){const t=sF(e.pullRequests),n=tF(t,e,this.state.selectedItem),r=!this.props.isLoadingPullRequests&&e.isLoadingPullRequests,s=this.props.isLoadingPullRequests&&!e.isLoadingPullRequests,i=this.props.pullRequests.length,o=r?"Hang Tight. Loading pull requests as fast as I can!":s?`${i} pull request${1===i?"":"s"} found`:null;this.setState({groupedItems:[t],selectedItem:n,screenReaderStateMessage:o})}getListAriaLabel=()=>`Pull requests in ${this.getRepositoryName()}`;render(){return ke.createElement(ke.Fragment,null,ke.createElement(ax,{className:"pull-request-list",rowHeight:47,groups:this.state.groupedItems,selectedItem:this.state.selectedItem,renderItem:this.renderPullRequest,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,invalidationProps:this.props.pullRequests,onItemContextMenu:this.onPullRequestItemContextMenu,onItemClick:this.onItemClick,onSelectionChanged:this.onSelectionChanged,renderGroupHeader:this.renderListHeader,renderNoItems:this.renderNoItems,renderPostFilter:this.renderPostFilter,getGroupAriaLabel:this.getListAriaLabel}),ke.createElement(LC,{message:this.state.screenReaderStateMessage}))}renderNoItems=()=>ke.createElement(eF,{isSearch:this.state.filterText.length>0,isLoadingPullRequests:this.props.isLoadingPullRequests,repositoryName:this.getRepositoryName(),isOnDefaultBranch:this.props.isOnDefaultBranch,onCreateBranch:this.props.onCreateBranch,onCreatePullRequest:this.onCreatePullRequest});renderPullRequest=(e,t)=>{const n=e.pullRequest;return ke.createElement(Q_,{title:n.title,number:n.pullRequestNumber,created:n.created,author:n.author,draft:n.draft,matches:t,dispatcher:this.props.dispatcher,repository:n.base.gitHubRepository,onDropOntoPullRequest:this.onDropOntoPullRequest,onMouseEnter:this.onMouseEnterPullRequest,onMouseLeave:this.onMouseLeavePullRequest})};onPullRequestItemContextMenu=(e,t)=>{t.preventDefault();Ch(function(e){const{onViewPullRequestOnGitHub:t}=e,n=new Array;return void 0!==t&&n.push({label:"View Pull Request on GitHub",action:()=>t()}),n}({onViewPullRequestOnGitHub:()=>{this.props.dispatcher.showPullRequestByPR(e.pullRequest)}}))};onMouseEnterPullRequest=(e,t)=>{const{pullRequests:n}=this.props,r=n.find((t=>t.pullRequestNumber===e));void 0!==r?this.props.onMouseEnterPullRequest(r,t):log.error("[onMouseEnterPullReqest] - Could not find pull request.")};onMouseLeavePullRequest=e=>{this.props.onMouseLeavePullRequest(e)};onDropOntoPullRequest=e=>{const{repository:t,selectedPullRequest:n,dispatcher:r,pullRequests:s}=this.props;if(!Ip.isDragOfTypeInProgress(_p.Commit))return;if(null!==n&&e===n.pullRequestNumber)return r.endMultiCommitOperation(t),void r.incrementMetric("dragStartedAndCanceledCount");const i=s.find((t=>t.pullRequestNumber===e));if(void 0===i)return log.error("[onDropOntoPullRequest] - Could not find pull request."),void r.endMultiCommitOperation(t);r.startCherryPickWithPullRequest(t,i)};onItemClick=(e,t)=>{const n=e.pullRequest;this.props.dispatcher.closeFoldout(Qe.Branch);const r=eM("checkout pull request from list",this.props.repository);this.props.dispatcher.checkoutPullRequest(this.props.repository,n).then((()=>r.done())),this.props.onSelectionChanged(n,t)};onSelectionChanged=(e,t)=>{this.props.onSelectionChanged(null!=e?e.pullRequest:null,t)};getRepositoryName(){return es(this.props.repository).fullName}renderListHeader=()=>ke.createElement("div",{className:"filter-list-group-header"},"Pull requests in ",this.getRepositoryName());onRefreshPullRequests=()=>{this.props.dispatcher.refreshPullRequests(this.props.repository)};renderPostFilter=()=>{const e="Refresh the list of pull requests";return ke.createElement(Ss,{disabled:this.props.isLoadingPullRequests,onClick:this.onRefreshPullRequests,ariaLabel:e,tooltip:e},ke.createElement(Rs,{symbol:oh,className:this.props.isLoadingPullRequests?"spin":void 0}))};onFilterTextChanged=e=>{this.setState({filterText:e})};onCreatePullRequest=()=>{this.props.dispatcher.closeFoldout(Qe.Branch),this.props.dispatcher.createPullRequest(this.props.repository)}}function rF(e){const t=Cb(e.created.getTime()-Date.now());return`#${e.pullRequestNumber} opened ${t} by ${e.author}`}function sF(e){return{identifier:"pull-requests",items:e.map((e=>({text:[e.title,rF(e)],id:e.pullRequestNumber.toString(),pullRequest:e})))}}function iF(e,t){return e.items.find((e=>e.pullRequest.pullRequestNumber===t.pullRequestNumber))||null}class oF extends ke.Component{constructor(e){super(e),this.state={isDragInProgress:!1}}onMouseEnter=()=>{Ip.isDragInProgress&&this.setState({isDragInProgress:!0}),Ip.isDragOfTypeInProgress(_p.Commit)&&Ip.emitEnterDropTarget({type:Fp.Branch,branchName:this.props.name})};onMouseLeave=()=>{this.setState({isDragInProgress:!1}),Ip.isDragOfTypeInProgress(_p.Commit)&&Ip.emitLeaveDropTarget()};onMouseUp=()=>{const{onDropOntoBranch:e,onDropOntoCurrentBranch:t,name:n,isCurrentBranch:r}=this.props;this.setState({isDragInProgress:!1}),Ip.isDragOfTypeInProgress(_p.Commit)&&(void 0===e||r||e(n),void 0!==t&&r&&t())};render(){const{authorDate:e,isCurrentBranch:t,name:n}=this.props,r=t?ii:ra,s=hs()("branches-list-item",{"drop-target":this.state.isDragInProgress});return ke.createElement("div",{className:s,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseUp:this.onMouseUp},ke.createElement(Rs,{className:"icon",symbol:r}),ke.createElement(lh,{className:"name",tooltip:n,onlyWhenOverflowed:!0,tagName:"div",disabled:cn()},ke.createElement(ah,{text:n,highlight:this.props.matches.title})),e&&ke.createElement(jI,{className:"description",date:e,onlyRelative:!0,tooltip:!cn()}))}}function aF(e,t,n,r,s,i){const o=e.branch,a=n?n.name:null;return ke.createElement(oF,{name:o.name,isCurrentBranch:o.name===a,authorDate:r,matches:t,onDropOntoBranch:s,onDropOntoCurrentBranch:i})}function lF(e,t){const n=e.branch;if(!t)return n.name;const{relativeText:r}=zI(t,!0);return`${e.branch.name} ${r}`}const cF=new WeakMap;function uF(e){let t=cF.get(e);return void 0===t&&(t=(0,Cn.randomBytes)(8).toString("base64url"),cF.set(e,t)),t}const{entries:hF,setPrototypeOf:pF,isFrozen:dF,getPrototypeOf:mF,getOwnPropertyDescriptor:fF}=Object;let{freeze:gF,seal:yF,create:wF}=Object,{apply:bF,construct:CF}="undefined"!=typeof Reflect&&Reflect;gF||(gF=function(e){return e}),yF||(yF=function(e){return e}),bF||(bF=function(e,t,n){return e.apply(t,n)}),CF||(CF=function(e,t){return new e(...t)});const vF=OF(Array.prototype.forEach),SF=OF(Array.prototype.lastIndexOf),EF=OF(Array.prototype.pop),kF=OF(Array.prototype.push),RF=OF(Array.prototype.splice),AF=OF(String.prototype.toLowerCase),TF=OF(String.prototype.toString),xF=OF(String.prototype.match),DF=OF(String.prototype.replace),MF=OF(String.prototype.indexOf),PF=OF(String.prototype.trim),IF=OF(Object.prototype.hasOwnProperty),_F=OF(RegExp.prototype.test),FF=(NF=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return CF(NF,t)});var NF;function OF(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return bF(e,t,r)}}function LF(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:AF;pF&&pF(e,null);let r=t.length;for(;r--;){let s=t[r];if("string"==typeof s){const e=n(s);e!==s&&(dF(t)||(t[r]=e),s=e)}e[s]=!0}return e}function BF(e){for(let t=0;t<e.length;t++)IF(e,t)||(e[t]=null);return e}function HF(e){const t=wF(null);for(const[n,r]of hF(e))IF(e,n)&&(Array.isArray(r)?t[n]=BF(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=HF(r):t[n]=r);return t}function UF(e,t){for(;null!==e;){const n=fF(e,t);if(n){if(n.get)return OF(n.get);if("function"==typeof n.value)return OF(n.value)}e=mF(e)}return function(){return null}}const ZF=gF(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$F=gF(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),WF=gF(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),VF=gF(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qF=gF(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),GF=gF(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zF=gF(["#text"]),jF=gF(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),KF=gF(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),YF=gF(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),XF=gF(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),QF=yF(/\{\{[\w\W]*|[\w\W]*\}\}/gm),JF=yF(/<%[\w\W]*|[\w\W]*%>/gm),eN=yF(/\$\{[\w\W]*/gm),tN=yF(/^data-[\-\w.\u00B7-\uFFFF]+$/),nN=yF(/^aria-[\-\w]+$/),rN=yF(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sN=yF(/^(?:\w+script|data):/i),iN=yF(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oN=yF(/^html$/i),aN=yF(/^[a-z][.\w]*(-[.\w]+)+$/i);var lN=Object.freeze({__proto__:null,ARIA_ATTR:nN,ATTR_WHITESPACE:iN,CUSTOM_ELEMENT:aN,DATA_ATTR:tN,DOCTYPE_NAME:oN,ERB_EXPR:JF,IS_ALLOWED_URI:rN,IS_SCRIPT_OR_DATA:sN,MUSTACHE_EXPR:QF,TMPLIT_EXPR:eN});const cN=function(){return"undefined"==typeof window?null:window};var uN=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cN();const n=t=>e(t);if(n.version="3.2.4",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const s=r,i=s.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:d,trustedTypes:m}=t,f=c.prototype,g=UF(f,"cloneNode"),y=UF(f,"remove"),w=UF(f,"nextSibling"),b=UF(f,"childNodes"),C=UF(f,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,S="";const{implementation:E,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:A}=r,{importNode:T}=s;let x={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof hF&&"function"==typeof C&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:D,ERB_EXPR:M,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:O}=lN;let{IS_ALLOWED_URI:L}=lN,B=null;const H=LF({},[...ZF,...$F,...WF,...qF,...zF]);let U=null;const Z=LF({},[...jF,...KF,...YF,...XF]);let $=Object.seal(wF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,V=null,q=!0,G=!0,z=!1,j=!0,K=!1,Y=!0,X=!1,Q=!1,J=!1,ee=!1,te=!1,ne=!1,re=!0,se=!1,ie=!0,oe=!1,ae={},le=null;const ce=LF({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const he=LF({},["audio","video","img","source","image","track"]);let pe=null;const de=LF({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,we=!1,be=null;const Ce=LF({},[me,fe,ge],TF);let ve=LF({},["mi","mo","mn","ms","mtext"]),Se=LF({},["annotation-xml"]);const Ee=LF({},["title","style","font","a","script"]);let ke=null;const Re=["application/xhtml+xml","text/html"];let Ae=null,Te=null;const xe=r.createElement("form"),De=function(e){return e instanceof RegExp||e instanceof Function},Me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=HF(e),ke=-1===Re.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===ke?TF:AF,B=IF(e,"ALLOWED_TAGS")?LF({},e.ALLOWED_TAGS,Ae):H,U=IF(e,"ALLOWED_ATTR")?LF({},e.ALLOWED_ATTR,Ae):Z,be=IF(e,"ALLOWED_NAMESPACES")?LF({},e.ALLOWED_NAMESPACES,TF):Ce,pe=IF(e,"ADD_URI_SAFE_ATTR")?LF(HF(de),e.ADD_URI_SAFE_ATTR,Ae):de,ue=IF(e,"ADD_DATA_URI_TAGS")?LF(HF(he),e.ADD_DATA_URI_TAGS,Ae):he,le=IF(e,"FORBID_CONTENTS")?LF({},e.FORBID_CONTENTS,Ae):ce,W=IF(e,"FORBID_TAGS")?LF({},e.FORBID_TAGS,Ae):{},V=IF(e,"FORBID_ATTR")?LF({},e.FORBID_ATTR,Ae):{},ae=!!IF(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,j=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,L=e.ALLOWED_URI_REGEXP||rN,ye=e.NAMESPACE||ge,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,Se=e.HTML_INTEGRATION_POINTS||Se,$=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&De(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&De(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(G=!1),te&&(ee=!0),ae&&(B=LF({},zF),U=[],!0===ae.html&&(LF(B,ZF),LF(U,jF)),!0===ae.svg&&(LF(B,$F),LF(U,KF),LF(U,XF)),!0===ae.svgFilters&&(LF(B,WF),LF(U,KF),LF(U,XF)),!0===ae.mathMl&&(LF(B,qF),LF(U,YF),LF(U,XF))),e.ADD_TAGS&&(B===H&&(B=HF(B)),LF(B,e.ADD_TAGS,Ae)),e.ADD_ATTR&&(U===Z&&(U=HF(U)),LF(U,e.ADD_ATTR,Ae)),e.ADD_URI_SAFE_ATTR&&LF(pe,e.ADD_URI_SAFE_ATTR,Ae),e.FORBID_CONTENTS&&(le===ce&&(le=HF(le)),LF(le,e.FORBID_CONTENTS,Ae)),ie&&(B["#text"]=!0),X&&LF(B,["html","head","body"]),B.table&&(LF(B,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw FF('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw FF('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(m,i)),null!==v&&"string"==typeof S&&(S=v.createHTML(""));gF&&gF(e),Te=e}},Pe=LF({},[...$F,...WF,...VF]),Ie=LF({},[...qF,...GF]),_e=function(e){kF(n.removed,{element:e});try{C(e).removeChild(e)}catch(t){y(e)}},Fe=function(e,t){try{kF(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){kF(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{_e(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=xF(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ke&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=v?v.createHTML(e):e;if(ye===ge)try{t=(new d).parseFromString(s,ke)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ye,"template",null);try{t.documentElement.innerHTML=we?S:s}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?A.call(t,X?"html":"body")[0]:X?t.documentElement:i},Oe=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function He(e,t,r){vF(e,(e=>{e.call(n,t,r,Te)}))}const Ue=function(e){let t=null;if(He(x.beforeSanitizeElements,e,null),Le(e))return _e(e),!0;const r=Ae(e.nodeName);if(He(x.uponSanitizeElement,e,{tagName:r,allowedTags:B}),e.hasChildNodes()&&!Be(e.firstElementChild)&&_F(/<[/\w]/g,e.innerHTML)&&_F(/<[/\w]/g,e.textContent))return _e(e),!0;if(7===e.nodeType)return _e(e),!0;if(Y&&8===e.nodeType&&_F(/<[/\w]/g,e.data))return _e(e),!0;if(!B[r]||W[r]){if(!W[r]&&$e(r)){if($.tagNameCheck instanceof RegExp&&_F($.tagNameCheck,r))return!1;if($.tagNameCheck instanceof Function&&$.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=C(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const s=g(n[r],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,w(e))}}return _e(e),!0}return e instanceof c&&!function(e){let t=C(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=AF(e.tagName),r=AF(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||ve[r]):Boolean(Pe[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===fe?"math"===n&&Se[r]:Boolean(Ie[n]):e.namespaceURI===ge?!(t.namespaceURI===fe&&!Se[r])&&!(t.namespaceURI===me&&!ve[r])&&!Ie[n]&&(Ee[n]||!Pe[n]):!("application/xhtml+xml"!==ke||!be[e.namespaceURI]))}(e)?(_e(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!_F(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&3===e.nodeType&&(t=e.textContent,vF([D,M,P],(e=>{t=DF(t,e," ")})),e.textContent!==t&&(kF(n.removed,{element:e.cloneNode()}),e.textContent=t)),He(x.afterSanitizeElements,e,null),!1):(_e(e),!0)},Ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(G&&!V[t]&&_F(I,t));else if(q&&_F(_,t));else if(!U[t]||V[t]){if(!($e(e)&&($.tagNameCheck instanceof RegExp&&_F($.tagNameCheck,e)||$.tagNameCheck instanceof Function&&$.tagNameCheck(e))&&($.attributeNameCheck instanceof RegExp&&_F($.attributeNameCheck,t)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(t))||"is"===t&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&_F($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(pe[t]);else if(_F(L,DF(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==MF(n,"data:")||!ue[e])if(z&&!_F(F,DF(n,N,"")));else if(n)return!1;return!0},$e=function(e){return"annotation-xml"!==e&&xF(e,O)},We=function(e){He(x.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let s=t.length;for(;s--;){const i=t[s],{name:o,namespaceURI:a,value:l}=i,c=Ae(o);let u="value"===o?l:PF(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,He(x.uponSanitizeAttribute,e,r),u=r.attrValue,!se||"id"!==c&&"name"!==c||(Fe(o,e),u="user-content-"+u),Y&&_F(/((--!?|])>)|<\/(style|title)/i,u)){Fe(o,e);continue}if(r.forceKeepAttr)continue;if(Fe(o,e),!r.keepAttr)continue;if(!j&&_F(/\/>/i,u)){Fe(o,e);continue}K&&vF([D,M,P],(e=>{u=DF(u,e," ")}));const h=Ae(e.nodeName);if(Ze(h,c,u)){if(v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(a);else switch(m.getAttributeType(h,c)){case"TrustedHTML":u=v.createHTML(u);break;case"TrustedScriptURL":u=v.createScriptURL(u)}try{a?e.setAttributeNS(a,o,u):e.setAttribute(o,u),Le(e)?_e(e):EF(n.removed)}catch(e){}}}He(x.afterSanitizeAttributes,e,null)},Ve=function e(t){let n=null;const r=Oe(t);for(He(x.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)He(x.uponSanitizeShadowNode,n,null),Ue(n),We(n),n.content instanceof o&&e(n.content);He(x.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if(we=!e,we&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw FF("toString is not a function");if("string"!=typeof(e=e.toString()))throw FF("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Me(t),n.removed=[],"string"==typeof e&&(oe=!1),oe){if(e.nodeName){const t=Ae(e.nodeName);if(!B[t]||W[t])throw FF("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ne("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!K&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ne(e),!r)return ee?null:ne?S:""}r&&J&&_e(r.firstChild);const u=Oe(oe?e:r);for(;a=u.nextNode();)Ue(a),We(a),a.content instanceof o&&Ve(a.content);if(oe)return e;if(ee){if(te)for(c=R.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=T.call(s,c,!0)),c}let h=X?r.outerHTML:r.innerHTML;return X&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&_F(oN,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),K&&vF([D,M,P],(e=>{h=DF(h,e," ")})),v&&ne?v.createHTML(h):h},n.setConfig=function(){Me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Te=null,Q=!1},n.isValidAttribute=function(e,t,n){Te||Me({});const r=Ae(e),s=Ae(t);return Ze(r,s,n)},n.addHook=function(e,t){"function"==typeof t&&kF(x[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=SF(x[e],t);return-1===n?void 0:RF(x[e],n,1)[0]}return EF(x[e])},n.removeHooks=function(e){x[e]=[]},n.removeAllHooks=function(){x={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();let hN={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const pN=/[&<>"']/,dN=/[&<>"']/g,mN=/[<>"']|&(?!#?\w+;)/,fN=/[<>"']|&(?!#?\w+;)/g,gN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yN=e=>gN[e];function wN(e,t){if(t){if(pN.test(e))return e.replace(dN,yN)}else if(mN.test(e))return e.replace(fN,yN);return e}const bN=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function CN(e){return e.replace(bN,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const vN=/(^|[^\[])\^/g;function SN(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(vN,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const EN=/[^\w:]/g,kN=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function RN(e,t,n){if(e){let e;try{e=decodeURIComponent(CN(n)).replace(EN,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!kN.test(n)&&(n=function(e,t){AN[" "+e]||(TN.test(e)?AN[" "+e]=e+"/":AN[" "+e]=_N(e,"/",!0));const n=-1===(e=AN[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(xN,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(DN,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const AN={},TN=/^[^:]+:\/*[^/]*$/,xN=/^([^:]+:)[\s\S]*$/,DN=/^([^:]+:\/*[^/]*)[\s\S]*$/,MN={exec:function(){}};function PN(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function IN(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function _N(e,t,n){const r=e.length;if(0===r)return"";let s=0;for(;s<r;){const i=e.charAt(r-s-1);if(i!==t||n){if(i===t||!n)break;s++}else s++}return e.substr(0,r-s)}function FN(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function NN(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ON(e,t,n,r){const s=t.href,i=t.title?wN(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:s,title:i,text:o,tokens:r.inlineTokens(o,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:s,title:i,text:wN(o)}}class LN{constructor(e){this.options=e||hN}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:_N(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=_N(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,s,i,o,a,l,c,u,h,p,d,m=t[1].trim();const f=m.length>1,g={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=f?m:"[*+-]");const y=new RegExp(`^( {0,3}${m})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(d=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,p=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,p=c.slice(i),i+=t[1].length),a=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),d=!0),!d){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(h=e.split("\n",1)[0],c=h,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c));){if(c.search(/[^ ]/)>=i||!c.trim())p+="\n"+c.slice(i);else{if(a)break;p+="\n"+c}a||c.trim()||(a=!0),n+=h+"\n",e=e.substring(h.length+1)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p),r&&(s="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:s,loose:!1,text:p}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=p.trimRight(),g.raw=g.raw.trimRight();const w=g.items.length;for(o=0;o<w;o++){this.lexer.state.top=!1,g.items[o].tokens=this.lexer.blockTokens(g.items[o].text,[]);const e=g.items[o].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[o].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):wN(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:IN(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,s,i,o=e.align.length;for(n=0;n<o;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(o=e.rows.length,n=0;n<o;n++)e.rows[n]=IN(e.rows[n],e.header.length).map((e=>({text:e})));for(o=e.header.length,r=0;r<o;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(o=e.rows.length,r=0;r<o;r++)for(i=e.rows[r],s=0;s<i.length;s++)i[s].tokens=[],this.lexer.inlineTokens(i[s].text,i[s].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:wN(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):wN(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=_N(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,s=0;for(;s<n;s++)if("\\"===e[s])s++;else if(e[s]===t[0])r++;else if(e[s]===t[1]&&(r--,r<0))return s;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),ON(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ON(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=r[1]||r[2]||"";if(!s||s&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let s,i,o=n,a=0;const l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(i=s.length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(o-=i,o>0)continue;if(i=Math.min(i,i+o+a),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=wN(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=wN(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=wN(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=wN(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=wN(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):wN(n[0]):n[0]:wN(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const BN={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:MN,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};BN.def=SN(BN.def).replace("label",BN._label).replace("title",BN._title).getRegex(),BN.bullet=/(?:[*+-]|\d{1,9}[.)])/,BN.listItemStart=SN(/^( *)(bull) */).replace("bull",BN.bullet).getRegex(),BN.list=SN(BN.list).replace(/bull/g,BN.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+BN.def.source+")").getRegex(),BN._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",BN._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,BN.html=SN(BN.html,"i").replace("comment",BN._comment).replace("tag",BN._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),BN.paragraph=SN(BN._paragraph).replace("hr",BN.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",BN._tag).getRegex(),BN.blockquote=SN(BN.blockquote).replace("paragraph",BN.paragraph).getRegex(),BN.normal=PN({},BN),BN.gfm=PN({},BN.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),BN.gfm.table=SN(BN.gfm.table).replace("hr",BN.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",BN._tag).getRegex(),BN.gfm.paragraph=SN(BN._paragraph).replace("hr",BN.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",BN.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",BN._tag).getRegex(),BN.pedantic=PN({},BN.normal,{html:SN("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",BN._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:MN,paragraph:SN(BN.normal._paragraph).replace("hr",BN.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",BN.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const HN={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:MN,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:MN,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function UN(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ZN(e){let t,n,r="";const s=e.length;for(t=0;t<s;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}HN._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",HN.punctuation=SN(HN.punctuation).replace(/punctuation/g,HN._punctuation).getRegex(),HN.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,HN.escapedEmSt=/\\\*|\\_/g,HN._comment=SN(BN._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),HN.emStrong.lDelim=SN(HN.emStrong.lDelim).replace(/punct/g,HN._punctuation).getRegex(),HN.emStrong.rDelimAst=SN(HN.emStrong.rDelimAst,"g").replace(/punct/g,HN._punctuation).getRegex(),HN.emStrong.rDelimUnd=SN(HN.emStrong.rDelimUnd,"g").replace(/punct/g,HN._punctuation).getRegex(),HN._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,HN._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,HN._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,HN.autolink=SN(HN.autolink).replace("scheme",HN._scheme).replace("email",HN._email).getRegex(),HN._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,HN.tag=SN(HN.tag).replace("comment",HN._comment).replace("attribute",HN._attribute).getRegex(),HN._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,HN._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,HN._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,HN.link=SN(HN.link).replace("label",HN._label).replace("href",HN._href).replace("title",HN._title).getRegex(),HN.reflink=SN(HN.reflink).replace("label",HN._label).replace("ref",BN._label).getRegex(),HN.nolink=SN(HN.nolink).replace("ref",BN._label).getRegex(),HN.reflinkSearch=SN(HN.reflinkSearch,"g").replace("reflink",HN.reflink).replace("nolink",HN.nolink).getRegex(),HN.normal=PN({},HN),HN.pedantic=PN({},HN.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:SN(/^!?\[(label)\]\((.*?)\)/).replace("label",HN._label).getRegex(),reflink:SN(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",HN._label).getRegex()}),HN.gfm=PN({},HN.normal,{escape:SN(HN.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),HN.gfm.url=SN(HN.gfm.url,"i").replace("email",HN.gfm._extended_email).getRegex(),HN.breaks=PN({},HN.gfm,{br:SN(HN.br).replace("{2,}","*").getRegex(),text:SN(HN.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class $N{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||hN,this.options.tokenizer=this.options.tokenizer||new LN,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:BN.normal,inline:HN.normal};this.options.pedantic?(t.block=BN.pedantic,t.inline=HN.pedantic):this.options.gfm&&(t.block=BN.gfm,this.options.breaks?t.inline=HN.breaks:t.inline=HN.gfm),this.tokenizer.rules=t}static get rules(){return{block:BN,inline:HN}}static lex(e,t){return new $N(t).lex(e)}static lexInline(e,t){return new $N(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,s,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(s=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=s.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,s,i,o,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+NN("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+NN("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,i.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,ZN))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,ZN))){if(s=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(s,UN))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),o=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class WN{constructor(e){this.options=e||hN}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+wN(r,!0)+'">'+(n?e:wN(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:wN(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=RN(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+wN(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=RN(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class VN{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class qN{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class GN{constructor(e){this.options=e||hN,this.options.renderer=this.options.renderer||new WN,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new VN,this.slugger=new qN}static parse(e,t){return new GN(t).parse(e)}static parseInline(e,t){return new GN(t).parseInline(e)}parse(e,t=!0){let n,r,s,i,o,a,l,c,u,h,p,d,m,f,g,y,w,b,C,v="";const S=e.length;for(n=0;n<S;n++)if(h=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(C=this.options.extensions.renderers[h.type].call({parser:this},h),!1!==C||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)))v+=C||"";else switch(h.type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(h.tokens),h.depth,CN(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",i=h.header.length,r=0;r<i;r++)l+=this.renderer.tablecell(this.parseInline(h.header[r].tokens),{header:!0,align:h.align[r]});for(c+=this.renderer.tablerow(l),u="",i=h.rows.length,r=0;r<i;r++){for(a=h.rows[r],l="",o=a.length,s=0;s<o;s++)l+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:h.align[s]});u+=this.renderer.tablerow(l)}v+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(h.tokens),v+=this.renderer.blockquote(u);continue;case"list":for(p=h.ordered,d=h.start,m=h.loose,i=h.items.length,u="",r=0;r<i;r++)g=h.items[r],y=g.checked,w=g.task,f="",g.task&&(b=this.renderer.checkbox(y),m?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):f+=b),f+=this.parse(g.tokens,m),u+=this.renderer.listitem(f,w,y);v+=this.renderer.list(u,p,d);continue;case"html":v+=this.renderer.html(h.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1<S&&"text"===e[n+1].type;)h=e[++n],u+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);v+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return v}parseInline(e,t){t=t||this.renderer;let n,r,s,i="";const o=e.length;for(n=0;n<o;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(s=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==s||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=s||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function zN(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),FN(t=PN({},zN.defaults,t||{})),n){const r=t.highlight;let s;try{s=$N.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&zN.walkTokens(s,t.walkTokens),i=GN.parse(s,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,i)};if(!r||r.length<3)return i();if(delete t.highlight,!s.length)return i();let o=0;return zN.walkTokens(s,(function(e){"code"===e.type&&(o++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),o--,0===o&&i()}))}),0))})),void(0===o&&i())}try{const n=$N.lex(e,t);return t.walkTokens&&zN.walkTokens(n,t.walkTokens),GN.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+wN(e.message+"",!0)+"</pre>";throw e}}zN.options=zN.setOptions=function(e){var t;return PN(zN.defaults,e),t=zN.defaults,hN=t,zN},zN.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},zN.defaults=hN,zN.use=function(...e){const t=PN({},...e),n=zN.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=zN.defaults.renderer||new WN;for(const t in e.renderer){const r=n[t];n[t]=(...s)=>{let i=e.renderer[t].apply(n,s);return!1===i&&(i=r.apply(n,s)),i}}t.renderer=n}if(e.tokenizer){const n=zN.defaults.tokenizer||new LN;for(const t in e.tokenizer){const r=n[t];n[t]=(...s)=>{let i=e.tokenizer[t].apply(n,s);return!1===i&&(i=r.apply(n,s)),i}}t.tokenizer=n}if(e.walkTokens){const n=zN.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),zN.setOptions(t)}))},zN.walkTokens=function(e,t){for(const n of e)switch(t.call(zN,n),n.type){case"table":for(const e of n.header)zN.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)zN.walkTokens(n.tokens,t);break;case"list":zN.walkTokens(n.items,t);break;default:zN.defaults.extensions&&zN.defaults.extensions.childTokens&&zN.defaults.extensions.childTokens[n.type]?zN.defaults.extensions.childTokens[n.type].forEach((function(e){zN.walkTokens(n[e],t)})):n.tokens&&zN.walkTokens(n.tokens,t)}},zN.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");FN(t=PN({},zN.defaults,t||{}));try{const n=$N.lexInline(e,t);return t.walkTokens&&zN.walkTokens(n,t.walkTokens),GN.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+wN(e.message+"",!0)+"</pre>";throw e}},zN.Parser=GN,zN.parser=GN.parse,zN.Renderer=WN,zN.TextRenderer=VN,zN.Lexer=$N,zN.lexer=$N.lex,zN.Tokenizer=LN,zN.Slugger=qN,zN.parse=zN,zN.options,zN.setOptions,zN.use,zN.walkTokens,zN.parseInline,GN.parse,$N.lex;class jN{emojiRegex;allEmoji;emojiBase64URICache=new Map;constructor(e){this.allEmoji=e,this.emojiRegex=this.buildEmojiRegExp(e)}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){return null!==e.parentNode&&["CODE","PRE"].includes(e.parentNode.nodeName)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}})}async filter(e){let t=e.textContent;if(e.nodeType!==e.TEXT_NODE||null===t||!t.includes(":"))return null;const n=t.match(this.emojiRegex);if(null===n)return null;const r=new Array;for(let e=0;e<n.length;e++){const s=n[e],i=this.allEmoji.get(s);if(void 0===i)continue;const o=await this.createEmojiNode(i);if(null===o)continue;const a=t.indexOf(s),l=t.slice(0,a),c=document.createTextNode(l);r.push(c),r.push(o),t=t.slice(a+s.length)}if(""!==t){const e=document.createTextNode(t);r.push(e)}return r}async createEmojiNode(e){try{if(e.emoji){const t=document.createElement("span");return t.classList.add("emoji"),t.textContent=e.emoji,t}const t=await this.getBase64FromImageUrl(e.url),n=new Image;return n.classList.add("emoji"),n.src=t,n.alt=e.description??"",n}catch(e){}return null}async getBase64FromImageUrl(e){const t=this.emojiBase64URICache.get(e);if(void 0!==t)return t;const n=`data:image/png;base64,${(await(0,w.readFile)((0,i.fileURLToPath)(e))).toString("base64")}`;return this.emojiBase64URICache.set(e,n),n}buildEmojiRegExp(e){const t=[...e.keys()].map((e=>gI()(e))).join("|");return new RegExp("("+t+")","g")}}function KN(e){const t=ir(e.endpoint);return new RegExp(gI()(t)+"/"+/(?<nameWithOwner>\w+(?:-\w+)*\/[.\w-]+)/.source+"/"+/(?:issues|pull|discussions)/.source+"/"+/(?<refNumber>\d+)(?<anchor>#[\w-]+)?\b/.source)}class YN{repository;constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(null===e.parentNode||!["CODE","PRE","A"].includes(e.parentNode.nodeName))&&e instanceof HTMLAnchorElement&&e.href===e.innerText&&this.isGitHubIssuePullDiscussionLink(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP})}isGitHubIssuePullDiscussionLink(e){return!!/(issue|pull|discussion)/.test(e.href)&&(!/\d+\/(files|commits|conflicts|checks)/.test(e.href)&&(!/\.[a-z]+\z/.test(e.href)&&KN(this.repository).test(e.href)))}async filter(e){const{textContent:t}=e;if(!(e instanceof HTMLAnchorElement)||null===t)return null;const n=t.match(KN(this.repository));if(null===n||void 0===n.groups)return null;const{refNumber:r,anchor:s}=n.groups,i=e.cloneNode(!0);return i.textContent=this.getConsistentIssueReferenceText(r,s),[i]}getConsistentIssueReferenceText(e,t){return`#${e} ${this.getAnchorDescription(t)}`}getAnchorDescription(e){if(void 0===e)return"";switch(!0){case/discussion-diff-/.test(e):return"(diff)";case/commits-pushed-/.test(e):return"(commits)";case/ref-/.test(e):return"(reference)";case/pullrequestreview/.test(e):return"(review)"}return"(comment)"}}function XN(e,t){if(void 0===e)return[];const n=e.split("/");return n.length>3||1===n.length&&n[0]!==t.owner.login?null:2!==n.length||n[0]===t.owner.login&&n[1]===t.name?[]:n}const QN=/(?<marker>#|gh-|\/(?:issues|pull|discussions)\/)(?=\d)/i,JN=/(?<=^|\W)/,eO=new RegExp(/(?<ownerOrOwnerRepo>\w+(?:-\w+)*(?:\/[.\w-]+)?)/.source+"?"+QN.source+/(?<refNumber>\d+)\b/.source,"i");class tO{issueReferenceWithLeader=new RegExp(JN.source+eO.source,"ig");repository;constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){return null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t||!QN.test(t))return null;let n=0;const r=[],s=t.matchAll(this.issueReferenceWithLeader);for(const e of s){if(void 0===e.groups||void 0===e.index)continue;const{marker:s,refNumber:i,ownerOrOwnerRepo:o}=e.groups;if(void 0===s||void 0===i)continue;const a=this.createLinkElement(s,i,o);if(null===a)continue;const l=t.slice(n,e.index),c=document.createTextNode(l);r.push(c),r.push(a),n=e.index+(o?.length??0)+s.length+i.length}const i=t.slice(n);return""!==i&&r.push(document.createTextNode(i)),r}createLinkElement(e,t,n){let r=`${e}${t}`;const s=XN(n,this.repository);if(null===s)return null;let[i,o]=s;void 0!==i&&void 0!==o?r=`${n}${r}`:(i=this.repository.owner.login,o=this.repository.name);const a=`${ir(this.repository.endpoint)}/${i}/${o}/issues/${t}`,l=document.createElement("a");return l.textContent=r,l.href=a,l}}class nO{repository;beginStringNonWord=/(^|[^a-zA-Z0-9_`])/;userNameRef=/(?<userNameRef>@[a-z0-9][a-z0-9-]*_[a-zA-Z0-9]+|@[a-z0-9][a-z0-9-]*)/;withoutTrailingSlash=/(?!\/)/;dotsFollowedBySpace=/\.+[\t\W]/;dotsAtEndOfLine=/\.+$/;nonWordExceptDotOrBackTickOrHyphen=/[^0-9a-zA-Z_.`-]/;mentionRegex=new RegExp(this.beginStringNonWord.source+this.userNameRef.source+this.withoutTrailingSlash.source+"(?="+this.dotsFollowedBySpace.source+"|"+this.dotsAtEndOfLine.source+"|"+this.nonWordExceptDotOrBackTickOrHyphen.source+"|$)","ig");constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){return null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t||!t.includes("@"))return null;let n=0;const r=[],s=t.matchAll(this.mentionRegex);for(const e of s){if(void 0===e.groups||void 0===e.index)continue;const{userNameRef:s}=e.groups;if(void 0===s)continue;const i=this.createLinkElement(s),o=0===e.index?0:e.index+1,a=t.slice(n,o),l=document.createTextNode(a);r.push(l),r.push(i),n=o+(s.length??0)}const i=t.slice(n);return""!==i&&r.push(document.createTextNode(i)),r}createLinkElement(e){const t=`${ir(this.repository.endpoint)}/${e.slice(1)}`,n=document.createElement("a");return n.textContent=e,n.href=t,n}}const rO=new RegExp("^"+gI()("https://user-images.githubusercontent.com")+".+"+/(mp4|webm|ogg|mov|qt|avi|wmv|3gp|mpg|mpeg|)$/.source,"i");class sO{createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>null===this.getGithubVideoLink(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const t=this.getGithubVideoLink(e);if(null===t)return null;const n=document.createElement("video");return n.src=t,[n]}getGithubVideoLink(e){return e instanceof HTMLParagraphElement&&1===e.childElementCount&&e.firstChild instanceof HTMLAnchorElement&&rO.test(e.firstChild.href)?e.firstChild.href:null}}class iO{createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return e instanceof HTMLVideoElement&&!rO.test(e.src)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}})}async filter(e){return e instanceof HTMLVideoElement&&!rO.test(e.src)?[]:null}}class oO{repository;beginStringNonWordRegix=/(^|\W)/;orgRegix=/(?<org>@[a-z0-9][a-z0-9-]*)/;teamRegix=/(?<team>\/[a-z0-9][a-z0-9\-_]*)/;teamMentionRegex=new RegExp(this.beginStringNonWordRegix.source+this.orgRegix.source+this.teamRegix.source+/\b/.source,"ig");constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)||null===e.textContent||!e.textContent.includes("@")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t||"Organization"!==this.repository.owner.type)return null;let n=0;const r=[],s=t.matchAll(this.teamMentionRegex);for(const e of s){if(void 0===e.groups||void 0===e.index)continue;const{org:s,team:i}=e.groups;if(void 0===s||void 0===i||wr(s.slice(1),this.repository.owner.login))continue;const o=this.createLinkElement(s.slice(1),i.slice(1)),a=0===e.index?0:e.index+1,l=t.slice(n,a),c=document.createTextNode(l);r.push(c),r.push(o),n=a+s.length+i.length}const i=t.slice(n);return""!==i&&r.push(document.createTextNode(i)),r}createLinkElement(e,t){const n=`${ir(this.repository.endpoint)}/orgs/${e}/teams/${t}`,r=document.createElement("a");return r.textContent=`@${e}/${t}`,r.href=n,r}}class aO{repository;sharedLeader=/^|[\s({\[]/;sharedLeaderWithAt=new RegExp(this.sharedLeader.source+"|@");sharedLeaderWithAtAndDots=new RegExp(this.sharedLeaderWithAt.source+"|"+/\.\.|\.\.\./.source);sha=/[0-9a-f]{7,40}/;endBoundedSha=new RegExp(this.sha.source+/\b/.source);shaRange=new RegExp("(?<shaRange>(?<="+this.sharedLeaderWithAt.source+")(?<firstSha>"+this.sha.source+")"+/\.\.\./.source+"(?<lastSha>"+this.sha.source+"))"+/\b/.source);boundedSha=new RegExp("(?<boundedSha>(?<="+this.sharedLeaderWithAtAndDots.source+")(?<rawBoundedSha>"+this.sha.source+"))"+/\b/.source);ownerOrOwnerRepo=/(?<ownerOrOwnerRepo>[\w-]+\/?[\w.-]*)/;ownerSpecifiedSha=new RegExp("(?<ownerSpecifiedSha>(?<="+this.sharedLeader.source+")"+this.ownerOrOwnerRepo.source+"@(?<ownerSha>"+this.sha.source+")"+/\b/.source+")");commitShaRegexUnion=new RegExp(this.shaRange.source+"|"+this.ownerSpecifiedSha.source+"|"+this.boundedSha.source,"g");constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)||null===e.textContent||!this.endBoundedSha.test(e.textContent)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const{textContent:t}=e;if(e.nodeType!==e.TEXT_NODE||null===t)return null;const n=[...t.matchAll(this.commitShaRegexUnion)];if(0===n.length)return null;let r=0;const s=[];for(const e of n){if(void 0===e.groups||void 0===e.index)continue;const n=this.createLink(e.groups);if(void 0===n)continue;const i=t.slice(r,e.index);s.push(document.createTextNode(i)),s.push(n);const{shaRange:o,ownerSpecifiedSha:a,boundedSha:l}=e.groups;r=e.index+(o??a??l??"").length}const i=t.slice(r);return""!==i&&s.push(document.createTextNode(i)),s}createLink(e){const{shaRange:t,firstSha:n,lastSha:r,ownerSpecifiedSha:s,ownerOrOwnerRepo:i,ownerSha:o,boundedSha:a,rawBoundedSha:l}=e;return void 0!==t?this.createCommitShaRangeLinkElement(n,r):void 0!==s?this.createOwnerSpecifiedCommitLinkElement(i,o):void 0!==a?this.createCommitMentionLinkElement(this.trimCommitSha(l),"commit"):void 0}createCommitShaRangeLinkElement(e,t){return this.createCommitMentionLinkElement(`${this.trimCommitSha(e)}...${this.trimCommitSha(t)}`,"compare")}createOwnerSpecifiedCommitLinkElement(e,t){const n=XN(e,this.repository);if(null===n)return;const r=this.trimCommitSha(t);if(n.length<2)return this.createCommitMentionLinkElement(r);const[s,i]=n;return this.createCommitMentionLinkElement(r,"commit",s,i,`${s}/${i}@`)}createCommitMentionLinkElement(e,t="commit",n=this.repository.owner.login,r=this.repository.name,s){const i=`${ir(this.repository.endpoint)}/${n}/${r}/${t}/${e}`,o=document.createElement("a");return o.innerHTML=`${s??""}<tt>${e}</tt>`,o.href=i,o}trimCommitSha(e){return e.length>=30?e.slice(0,7):e}}const lO=["Commit","PullRequest"];class cO{markdownContext;repository;closesWithTextReference=new RegExp(this.closeText("closeTextWIssue").source+"(?<issueReference>"+eO.source+")");closesAtEndOfText=new RegExp(this.closeText("closeTextAtEnd").source+/$/.source);closesKeywordUnion=new RegExp("("+this.closesWithTextReference.source+")|("+this.closesAtEndOfText.source+")","ig");constructor(e,t){this.markdownContext=e,this.repository=t}closeText(e){return new RegExp(/\b/.source+`(?<${e}>`+/close[sd]?|fix(e[sd])?|resolve[sd]?/.source+")"+/(\s*:?\s+)/.source)}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>null!==e.parentNode&&["CODE","PRE","A"].includes(e.parentNode.nodeName)||null===e.textContent?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})}async filter(e){const t=e.textContent;if(e.nodeType!==e.TEXT_NODE||null===t)return null;const n=[...t.matchAll(this.closesKeywordUnion)];if(0===n.length)return null;let r=0;const s=[];for(const i of n){if(void 0===i.groups||void 0===i.index)continue;const{closeTextWIssue:n,closeTextAtEnd:o,issueReference:a}=i.groups,l=n??o,c=a??this.getIssueReferenceFromSibling(e.nextSibling);if(void 0===c||void 0===l)return null;const u=this.createTooltipContent(l,c),h=t.slice(r,i.index);s.push(document.createTextNode(h)),s.push(u),r=i.index+l.length}const i=t.slice(r);return""!==i&&s.push(document.createTextNode(i)),s}getIssueReferenceFromSibling(e){if(null===e||!(e instanceof HTMLAnchorElement)||e.href!==e.innerText)return;const t=e.href.match(KN(this.repository));return null!==t&&void 0!==t.groups&&void 0!==t.groups.refNumber?`#${t.groups.refNumber}`:void 0}createTooltipContent(e,t){const n=document.createElement("span");return n.textContent=e,n.classList.add("issue-keyword"),n.ariaLabel=`This ${"Commit"===this.markdownContext?"commit":"pull request"} closes ${t}.`,n}}class uO{nameWithOwner=/(?<owner>-?[a-z0-9][a-z0-9\-\_]*)\/(?<name>(?:\w|\.|\-)+)/;commitPath=/^commit\/(?<pathFragment>.+)$/;comparePath=/^compare\/(?<range>.+)$/;pullCommitPath=/^pull\/(\d+)\/commits\/(?<sha>[0-9a-f]{7,40})$/;get commitMentionUrl(){const e=ir(this.repository.endpoint);return new RegExp(gI()(e)+"/"+this.nameWithOwner.source+"/"+/(commit|pull|compare)/.source+"/"+/(\d+\/commits\/)?/.source+/([0-9a-f]{7,40})/.source+/\b/.source)}repository;constructor(e){this.repository=e}createFilterTreeWalker(e){return e.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(null===e.parentNode||!["CODE","PRE","A"].includes(e.parentNode.nodeName))&&e instanceof HTMLAnchorElement&&e.href===e.innerText&&this.commitMentionUrl.test(e.href)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP})}async filter(e){const t=e.cloneNode(!0),{textContent:n}=t;if(!(t instanceof HTMLAnchorElement)||null===n)return null;const r=new URL(n),[,s,i]=r.pathname.split("/",3);if(void 0===s||void 0===i)return null;const o=r.pathname.substring(s.length+i.length+3);let a,l;const c=this.getRefFromCommitPath(o)??this.getRefFromComparePath(o);return null!==c?(({ref:a,filepathToAppend:l}=c),l=void 0!==l?l+r.search:r.search):a=this.getRefFromPullPath(o),null==a?null:(t.innerHTML=this.getCommitMentionRef(s,i,a,l),[t])}getRefFromCommitPath(e){const t=e.match(this.commitPath);if(null===t||void 0===t.groups)return null;const{pathFragment:n}=t.groups,r=n.indexOf("/"),s=r>=0?n.slice(0,r):n,i=r>=0?n.slice(r):void 0;if(void 0===s)return null;const[o,a]=s.split(".");return void 0===o||this.isReservedCommitActionPath(i)||void 0!==a?null:{ref:this.trimCommitSha(o),filepathToAppend:i}}getRefFromComparePath(e){const t=e.match(this.comparePath);if(null===t||void 0===t.groups)return null;const{range:n}=t.groups;if(/\.(diff|path)$/.test(n))return null;const r=n.split("...");if(r.length>2)return null;const s=r[1].indexOf("/"),i=s>=0?r[1].slice(0,s):r[1];return{ref:`${this.trimCommitSha(r[0])}...${this.trimCommitSha(i)}`,filepathToAppend:s>=0?r[1].slice(s):void 0}}getRefFromPullPath(e){const t=e.match(this.pullCommitPath);return null===t||void 0===t.groups?null:this.trimCommitSha(t.groups.sha)}isReservedCommitActionPath(e){return void 0!==e&&(["checks_state_summary","hovercard","rollup","show_partial"].includes(e)||["_render_node","checks"].includes(e.split("/")[0]))}getCommitMentionRef(e,t,n,r){return`${e!==this.repository.owner.login||t!==this.repository.name?`${e}/${t}@`:""}<tt>${this.trimCommitSha(n)}</tt>${r??""}`}trimCommitSha(e){return e.length>=30?e.slice(0,7):e}}const hO=xr((e=>{const{emoji:t,repository:n,markdownContext:r}=e,s=[];return void 0!==n&&(void 0!==r&&function(e){return lO.includes(e)}(r)&&s.push(new cO(r,n)),s.push(new tO(n),new YN(n))),s.push(new jN(t)),void 0!==n&&s.push(new oO(n),new nO(n),new aO(n),new uO(n)),s.push(new iO,new sO),s}));async function pO(e,t){const n=e.createFilterTreeWalker(t);let r=n.nextNode();for(;null!==r;){const t=await e.filter(r),s=r;if(r=n.nextNode(),null!==t){for(const e of t)s.parentNode?.insertBefore(e,s);s.parentNode?.removeChild(s)}}}class dO extends dt.Emitter{markdown;constructor(e=null){super(),this.markdown=e}onMarkdownUpdated(e){return null!==this.markdown&&e(this.markdown),super.on("markdown",e)}emit(e){this.markdown=e,super.emit("markdown",e)}get latestMarkdown(){return this.markdown}}class mO extends ke.PureComponent{frameRef=null;frameContainingDivRef=null;contentDivRef=null;markdownEmitter;resizeObserver;resizeDebounceId=null;onDocumentScroll=OC()((()=>{this.setState({tooltipOffset:this.frameRef?.getBoundingClientRect()??new DOMRect})}),100);onMarkdownUpdated=OC()((e=>this.mountIframeContents(e)),10,{leading:!0});constructor(e){super(e),this.resizeObserver=new ResizeObserver(this.scheduleResizeEvent),this.state={tooltipElements:[]}}scheduleResizeEvent=()=>{null!==this.resizeDebounceId&&(cancelAnimationFrame(this.resizeDebounceId),this.resizeDebounceId=null),this.resizeDebounceId=requestAnimationFrame(this.onContentResized)};onContentResized=()=>{null!==this.frameRef&&this.setFrameContainerHeight(this.frameRef)};onFrameRef=e=>{this.frameRef=e};onFrameContainingDivRef=e=>{this.frameContainingDivRef=e};initializeMarkdownEmitter=()=>{void 0!==this.markdownEmitter&&this.markdownEmitter.dispose();const{emoji:e,repository:t,markdownContext:n}=this.props;this.markdownEmitter="string"!=typeof this.props.markdown?this.props.markdown:function(e,t){const n=zN(e,{gfm:!0,breaks:!0}),r=uN.sanitize(n),s=new dO(r);return void 0!==t&&function(e,t){!async function(e,t){if(null===t.latestMarkdown||t.disposed)return;const n=(new DOMParser).parseFromString(t.latestMarkdown,"text/html");for(const r of e){if(await pO(r,n),t.disposed)break;t.emit(n.documentElement.innerHTML)}}(hO(t),e)}(s,t),s}(this.props.markdown,{emoji:e,repository:t,markdownContext:n}),this.markdownEmitter.onMarkdownUpdated((e=>{this.onMarkdownUpdated(e)}))};async componentDidMount(){this.initializeMarkdownEmitter(),null!==this.frameRef&&this.setupFrameLoadListeners(this.frameRef),document.addEventListener("scroll",this.onDocumentScroll,{capture:!0})}async componentDidUpdate(e){e.markdown!==this.props.markdown&&this.initializeMarkdownEmitter()}componentWillUnmount(){this.markdownEmitter?.dispose(),this.resizeObserver.disconnect(),document.removeEventListener("scroll",this.onDocumentScroll)}async getInlineStyleSheet(){const e=await(0,w.readFile)(t.join(__dirname,"static","markdown.css"),"utf8"),n=getComputedStyle(document.body);function r(e){return`${e}: ${n.getPropertyValue(e)};`}return`<style>\n :root {\n ${r("--md-border-default-color")}\n ${r("--md-border-muted-color")}\n ${r("--md-canvas-default-color")}\n ${r("--md-canvas-subtle-color")}\n ${r("--md-fg-default-color")}\n ${r("--md-fg-muted-color")}\n ${r("--md-danger-fg-color")}\n ${r("--md-neutral-muted-color")}\n ${r("--md-accent-emphasis-color")}\n ${r("--md-accent-fg-color")}\n\n ${r("--font-size")}\n ${r("--font-size-sm")}\n ${r("--text-color")}\n ${r("--background-color")}\n }\n\n ${e}\n\n .markdown-body a {\n text-decoration: ${this.props.underlineLinks?"underline":"inherit"};\n }\n </style>`}setupFrameLoadListeners(e){e.addEventListener("load",(()=>{this.setupContentDivRef(e),this.setupLinkInterceptor(e),this.setupTooltips(e),this.setFrameContainerHeight(e)}))}setupTooltips(e){if(null===e.contentDocument)return;const t=new Array;for(const n of e.contentDocument.querySelectorAll("[aria-label]"))e.contentWindow?.HTMLElement&&n instanceof e.contentWindow.HTMLElement&&t.push(n);this.setState({tooltipElements:t,tooltipOffset:e.getBoundingClientRect()})}setupContentDivRef(e){null!==e.contentDocument&&(this.contentDivRef=e.contentDocument.documentElement.querySelector("#content"),null!==this.contentDivRef&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.contentDivRef)))}setFrameContainerHeight(e){if(null===e.contentDocument||null===this.frameContainingDivRef||null===this.contentDivRef)return;const t=this.contentDivRef.clientHeight;this.frameContainingDivRef.style.height=`${t+1}px`,this.props.onMarkdownParsed?.()}setupLinkInterceptor(e){e.contentDocument?.addEventListener("click",(t=>{const{contentWindow:n}=e;if(n&&t.target instanceof n.Element){const e=t.target.closest("a");null!==e&&(t.preventDefault(),/^https?:/.test(e.protocol)&&this.props.onMarkdownLinkClicked?.(e.href))}}))}getBaseTag(e){if(void 0===e)return"";const t=document.createElement("base");return t.href=e,t.outerHTML}async mountIframeContents(e){if(null===this.frameRef)return;const t=await this.getInlineStyleSheet(),n=`\n <html>\n <head>\n ${this.getBaseTag(this.props.baseHref)}\n ${t}\n </head>\n <body class="markdown-body">\n <div id="content">\n ${e}\n </div>\n </body>\n </html>\n `,r=Buffer.from(n,"utf8").toString("base64");requestAnimationFrame((()=>{null!==this.frameRef&&(this.frameRef.src=`data:text/html;charset=utf-8;base64,${r}`)}))}render(){const{tooltipElements:e,tooltipOffset:t}=this.state;return ke.createElement("div",{className:"sandboxed-markdown-iframe-container",ref:this.onFrameContainingDivRef},ke.createElement("iframe",{title:"沙盒 Markdown 组件",className:"sandboxed-markdown-component",sandbox:"allow-same-origin",ref:this.onFrameRef,"aria-label":this.props.ariaLabel}),e.map((e=>ke.createElement(ys,{target:vs(e),key:uF(e),tooltipOffset:t},e.ariaLabel))))}}class fO extends ke.Component{quickViewRef=ke.createRef();get quickViewHeight(){return this.quickViewRef.current?.clientHeight??556}constructor(e){super(e),this.state={top:this.calculatePosition(e.pullRequestItemTop,this.quickViewHeight)}}componentDidUpdate=e=>{e.pullRequest.pullRequestNumber!==this.props.pullRequest.pullRequestNumber&&this.updateQuickViewPosition()};updateQuickViewPosition=()=>{this.setState({top:this.calculatePosition(this.props.pullRequestItemTop,this.quickViewHeight)})};onMarkdownParsed=()=>{this.updateQuickViewPosition()};onViewOnGitHub=()=>{this.props.dispatcher.showPullRequestByPR(this.props.pullRequest)};onMouseLeave=()=>{this.props.onMouseLeave()};getTopPRList(){return document.getElementById("foldout-container")?.getBoundingClientRect().top??50}calculatePosition(e,t){const n=this.getTopPRList(),r=window.innerHeight-n-t;return window.innerHeight-e>t?Oy(e-n,0,r):Oy(e-t>0?e-n-t+47:e+23.5-t/2,0,r)}getPointerPosition(e){return{top:this.props.pullRequestItemTop-this.getTopPRList()-e+23.5}}onMarkdownLinkClicked=e=>{this.props.dispatcher.openInBrowser(e)};renderHeader=()=>ke.createElement("header",{className:"header"},ke.createElement(Rs,{symbol:Ga}),ke.createElement("div",{className:"action-needed"},"Review requested"),ke.createElement(Ss,{className:"button-with-icon",onClick:this.onViewOnGitHub,role:"link"},"在GitHub上查看",ke.createElement(Rs,{symbol:Va})));renderPRStatus(e){return ke.createElement("div",{className:hs()("status",{draft:e})},ke.createElement(Rs,{className:"icon",symbol:e?ua:la}),ke.createElement("span",{className:"state"},e?"Draft":"Open"))}renderPR=()=>{const{title:e,pullRequestNumber:t,base:n,body:r,draft:s}=this.props.pullRequest,i=null!=r&&""!==r.trim()?r:"_No description provided._";return ke.createElement("div",{className:"pull-request"},this.renderPRStatus(s),ke.createElement("div",{className:"title"},ke.createElement("h2",null,e),ke.createElement(yO,{number:t,dispatcher:this.props.dispatcher,repository:n.gitHubRepository})),ke.createElement(mO,{markdown:i,emoji:this.props.emoji,baseHref:n.gitHubRepository.htmlURL??void 0,repository:n.gitHubRepository,markdownContext:"PullRequest",onMarkdownLinkClicked:this.onMarkdownLinkClicked,onMarkdownParsed:this.onMarkdownParsed,underlineLinks:this.props.underlineLinks,ariaLabel:"Pull request markdown body"}))};render(){const{top:e}=this.state;return ke.createElement("div",{className:"pull-request-quick-view",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.onMouseLeave,style:{top:e},ref:this.quickViewRef},ke.createElement("div",{className:"pull-request-quick-view-contents"},this.renderHeader(),this.renderPR()),ke.createElement("div",{className:"pull-request-pointer",style:this.getPointerPosition(e)}))}}class gO extends ke.Component{static getDerivedStateFromProps(e,t){return t.currentPullRequest!==e.currentPullRequest?{currentPullRequest:e.currentPullRequest,selectedPullRequest:e.currentPullRequest}:null}pullRequestQuickViewTimerId=null;constructor(e){super(e),this.state={selectedBranch:e.currentBranch,selectedPullRequest:e.currentPullRequest,currentPullRequest:e.currentPullRequest,branchFilterText:"",pullRequestBeingViewed:null}}componentWillUnmount=()=>{this.clearPullRequestQuickViewTimer()};render(){const e=hs()("branches-container",{resizable:!0});return ke.createElement("div",{className:e},this.renderTabBar(),this.renderSelectedTab(),this.renderMergeButtonRow(),this.renderPullRequestQuickView())}renderPullRequestQuickView=()=>{if(!sn()||null===this.state.pullRequestBeingViewed)return null;const{pr:e,prListItemTop:t}=this.state.pullRequestBeingViewed;return ke.createElement(fO,{dispatcher:this.props.dispatcher,emoji:this.props.emoji,pullRequest:e,pullRequestItemTop:t,onMouseEnter:this.onMouseEnterPullRequestQuickView,onMouseLeave:this.onMouseLeavePullRequestQuickView,underlineLinks:this.props.underlineLinks})};onMouseEnterPullRequestQuickView=()=>{this.clearPullRequestQuickViewTimer()};onMouseLeavePullRequestQuickView=()=>{this.setState({pullRequestBeingViewed:null}),this.clearPullRequestQuickViewTimer()};renderMergeButtonRow(){const{currentBranch:e}=this.props;return null===e?null:ke.createElement(rx,{className:"merge-button-row"},ke.createElement(Ss,{className:"merge-button",onClick:this.onMergeClick,tooltip:`选择一个分支合并到 ${e.name}`},ke.createElement(Rs,{className:"icon",symbol:oa}),"选择一个分支合并到 ",ke.createElement("strong",null,e.name)))}renderOpenPullRequestsBubble(){const e=this.props.pullRequests;return e.length>0?ke.createElement("span",{className:"count"},e.length):null}renderTabBar(){return this.props.repository.gitHubRepository?ke.createElement(LM,{onTabClicked:this.onTabClicked,selectedIndex:this.props.selectedTab,allowDragOverSwitching:!0},ke.createElement("span",{id:"branches-tab"},"Branches"),ke.createElement("span",{id:"pull-requests-tab",className:"pull-request-tab"},"Pull requests",this.renderOpenPullRequestsBubble())):null}renderBranch=(e,t,n)=>aF(e,t,this.props.currentBranch,n,this.onDropOntoBranch,this.onDropOntoCurrentBranch);getBranchAriaLabel=(e,t)=>lF(e,t);renderSelectedTab(){const{selectedTab:e,repository:t}=this.props,n=e!==id.Branches&&t.gitHubRepository?"pull-requests-tab":"branches-tab";return ke.createElement("div",{role:"tabpanel","aria-labelledby":n,className:"branches-container-panel"},this.renderSelectedTabContent())}renderSelectedTabContent(){let e=this.props.selectedTab;switch(this.props.repository.gitHubRepository||(e=id.Branches),e){case id.Branches:return ke.createElement(z_,{repository:this.props.repository,defaultBranch:this.props.defaultBranch,currentBranch:this.props.currentBranch,allBranches:this.props.allBranches,recentBranches:this.props.recentBranches,onItemClick:this.onBranchItemClick,filterText:this.state.branchFilterText,onFilterTextChanged:this.onBranchFilterTextChanged,selectedBranch:this.state.selectedBranch,onSelectionChanged:this.onBranchSelectionChanged,canCreateNewBranch:!0,onCreateNewBranch:this.onCreateBranchWithName,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,hideFilterRow:Ip.isDragOfTypeInProgress(_p.Commit),renderPreList:this.renderPreList,onRenameBranch:this.props.onRenameBranch,onDeleteBranch:this.props.onDeleteBranch});case id.PullRequests:return this.renderPullRequests();default:return at(0,`Unknown Branches tab: ${e}`)}}renderPreList=()=>Ip.isDragOfTypeInProgress(_p.Commit)?ke.createElement("div",{className:"branches-list-item new-branch-drop",onMouseEnter:this.onMouseEnterNewBranchDrop,onMouseLeave:this.onMouseLeaveNewBranchDrop,onMouseUp:this.onMouseUpNewBranchDrop},ke.createElement(Rs,{className:"icon",symbol:Bl}),ke.createElement("div",{className:"name"},"新建分支")):null;onMouseUpNewBranchDrop=async()=>{const{dragData:e}=Ip;if(null===e||e.type!==_p.Commit)return;const{dispatcher:t,repository:n,currentBranch:r}=this.props;await t.setCherryPickCreateBranchFlowStep(n,"",e.commits,r),this.props.dispatcher.showPopup({type:Sh.MultiCommitOperation,repository:n})};onMouseEnterNewBranchDrop=()=>{Ip.emitEnterDropTarget({type:Fp.Branch,branchName:"a new branch"})};onMouseLeaveNewBranchDrop=()=>{Ip.emitLeaveDropTarget()};renderPullRequests(){const e=this.props.repository;if(!Yr(e))return null;const t=this.props.defaultBranch&&this.props.currentBranch&&this.props.defaultBranch.name===this.props.currentBranch.name;return ke.createElement(nF,{key:"pr-list",pullRequests:this.props.pullRequests,selectedPullRequest:this.state.selectedPullRequest,isOnDefaultBranch:!!t,onSelectionChanged:this.onPullRequestSelectionChanged,onCreateBranch:this.onCreateBranch,dispatcher:this.props.dispatcher,repository:e,isLoadingPullRequests:this.props.isLoadingPullRequests,onMouseEnterPullRequest:this.onMouseEnterPullRequestListItem,onMouseLeavePullRequest:this.onMouseLeavePullRequestListItem})}onMouseEnterPullRequestListItem=(e,t)=>{this.clearPullRequestQuickViewTimer(),this.setState({pullRequestBeingViewed:null}),this.pullRequestQuickViewTimerId=window.setTimeout((()=>this.setState({pullRequestBeingViewed:{pr:e,prListItemTop:t}})),250)};onMouseLeavePullRequestListItem=async()=>{this.clearPullRequestQuickViewTimer(),this.pullRequestQuickViewTimerId=window.setTimeout((()=>this.setState({pullRequestBeingViewed:null})),500)};onTabClicked=e=>{this.props.dispatcher.changeBranchesTab(e)};onMergeClick=()=>{this.props.dispatcher.closeFoldout(Qe.Branch),this.props.dispatcher.startMergeBranchOperation(this.props.repository)};onBranchItemClick=e=>{const{repository:t,dispatcher:n}=this.props;n.closeFoldout(Qe.Branch);const r=eM("checkout branch from list",t);n.checkoutBranch(t,e).then((()=>r.done()))};onBranchSelectionChanged=e=>{this.setState({selectedBranch:e})};onBranchFilterTextChanged=e=>{this.setState({branchFilterText:e})};onCreateBranchWithName=e=>{const{repository:t,dispatcher:n}=this.props;n.closeFoldout(Qe.Branch),n.showPopup({type:Sh.CreateBranch,repository:t,initialName:e})};onCreateBranch=()=>{this.onCreateBranchWithName("")};onPullRequestSelectionChanged=e=>{this.setState({selectedPullRequest:e})};onDropOntoBranch=e=>{const t=this.props.allBranches.find((t=>t.name===e));void 0!==t?Ip.isDragOfType(_p.Commit)&&this.props.dispatcher.startCherryPickWithBranch(this.props.repository,t):log.warn("[branches-container] - Branch name of branch dropped on does not exist.")};onDropOntoCurrentBranch=()=>{Ip.isDragOfType(_p.Commit)&&this.props.dispatcher.incrementMetric("dragStartedAndCanceledCount")};clearPullRequestQuickViewTimer=()=>{null!==this.pullRequestQuickViewTimerId&&(window.clearTimeout(this.pullRequestQuickViewTimerId),this.pullRequestQuickViewTimerId=null)}}class yO extends ke.Component{badgeRef=null;badgeBoundingBottom=0;constructor(e){super(e),this.state={isStatusShowing:!1}}componentDidUpdate(){null!==this.badgeRef&&this.badgeRef.getBoundingClientRect().bottom!==this.badgeBoundingBottom&&(this.badgeBoundingBottom=this.badgeRef.getBoundingClientRect().bottom,this.props.onBadgeBottomPositionUpdate?.(this.badgeBoundingBottom))}onRef=e=>{this.badgeRef=e,this.props.onBadgeRef?.(e)};onBadgeClick=e=>{this.state.isStatusShowing&&(e.stopPropagation(),this.props.onBadgeClick?.())};onCheckChange=e=>{this.setState({isStatusShowing:null!==e})};render(){const e=ym(this.props.number);return ke.createElement(Ss,{className:"pr-badge",onClick:this.onBadgeClick,onButtonRef:this.onRef,disabled:!this.state.isStatusShowing,ariaHaspopup:!0,ariaExpanded:!0===this.props.showCIStatusPopover},ke.createElement("span",{className:"number"},"#",this.props.number),ke.createElement(j_,{commitRef:e,dispatcher:this.props.dispatcher,repository:this.props.repository,onCheckChange:this.onCheckChange}))}}class wO extends ke.PureComponent{onViewJobStepExternally=()=>{this.props.onViewJobStepExternally(this.props.step)};onStepHeaderRef=e=>t=>{void 0!==this.props.firstFailedStep&&e.number===this.props.firstFailedStep.number&&null!==t&&t.scrollIntoView({behavior:"smooth",block:"start"})};render(){const{step:e}=this.props;return ke.createElement("li",{className:"ci-check-run-job-step",ref:this.onStepHeaderRef(e),"aria-label":`${e.name}, ${vC(e)}, ${Y_(e)}`},ke.createElement("div",{className:"job-step-status-symbol"},ke.createElement(Rs,{className:hs()("ci-status",`ci-status-${Y_(e)}`),symbol:X_(e)})),ke.createElement(lh,{className:"job-step-name",tooltip:e.name,onlyWhenOverflowed:!0,tagName:"span",direction:gs.NORTH},e.name),ke.createElement("div",{className:"job-step-duration"},function(e){const t=pC(e);return isNaN(t)?"":lC(t)}(e)),ke.createElement(Ss,{role:"link",className:"view-check-externally",onClick:this.onViewJobStepExternally,tooltip:`View ${e.name} on GitHub`,ariaLabel:`View ${e.name} on GitHub`},ke.createElement(Rs,{symbol:Va})))}}class bO extends ke.PureComponent{constructor(e){super(e),this.state={firstFailedStep:this.props.steps.find(gC)}}componentDidUpdate(){this.setState({firstFailedStep:this.props.steps.find(gC)})}render(){const{steps:e}=this.props,t=e.map(((e,t)=>ke.createElement(wO,{key:t,step:e,firstFailedStep:this.state.firstFailedStep,onViewJobStepExternally:this.props.onViewJobStep})));return ke.createElement("ul",{className:"ci-check-run-job-steps-list"},t)}}const CO=Ft(__dirname,"static/paper-stack.svg");class vO extends ke.PureComponent{render(){return ke.createElement("div",{className:"ci-check-run-no-steps"},ke.createElement("p",null,"There are no steps to display for this check.",ke.createElement(Ss,{className:"button-with-icon",onClick:this.props.onViewCheckExternally,role:"link"},"View check details",ke.createElement(Rs,{symbol:Va}))),ke.createElement("img",{src:CO,alt:""}))}}class SO extends ke.PureComponent{onRerunJob=()=>{const{onRerunJob:e,checkRun:t}=this.props;e?.(t)};renderJobRerun=()=>{const{checkRun:e,onRerunJob:t}=this.props;if(void 0===t)return null;const n=`Re-run ${e.name}`;return ke.createElement(Ss,{className:"job-rerun",tooltip:n,onClick:this.onRerunJob,ariaLabel:n},ke.createElement(Rs,{symbol:Vc}))};renderLinkExternal=()=>{const{onViewCheckExternally:e,checkRun:t}=this.props;if(void 0===e)return null;const n=`View ${t.name} on GitHub`;return ke.createElement(Ss,{role:"link",className:"view-check-externally",onClick:this.props.onViewCheckExternally,tooltip:n,ariaLabel:n},ke.createElement(Rs,{symbol:Va}))};render(){const{actionJobSteps:e}=this.props.checkRun;return void 0===e?null:ke.createElement("div",{className:"ci-check-run-steps-header"},ke.createElement("h4",null,PO(e,"step")),this.renderJobRerun(),this.renderLinkExternal())}}class EO extends ke.PureComponent{toggleCheckRunExpansion=()=>{this.props.onCheckRunExpansionToggleClick(this.props.checkRun)};onViewCheckExternally=()=>{this.props.onViewCheckExternally?.(this.props.checkRun)};onViewJobStep=e=>{this.props.onViewJobStep?.(this.props.checkRun,e)};rerunJob=()=>{void 0!==this.props.checkRun.actionJobSteps&&this.props.onRerunJob?.(this.props.checkRun)};renderCheckStatusSymbol=()=>{const{checkRun:e}=this.props;return ke.createElement("div",{className:"ci-check-status-symbol"},ke.createElement(Rs,{className:hs()("ci-status",`ci-status-${Y_(e)}`),symbol:K_(e)}))};renderCheckJobStepToggle=()=>{const{isCheckRunExpanded:e,selectable:t,notExpandable:n}=this.props;return t||n?null:ke.createElement("div",{className:"job-step-toggled-indicator"},ke.createElement(Rs,{symbol:e?di:ui}))};renderCheckRunName=()=>{const{checkRun:e,isCondensedView:t,isHeader:n}=this.props,{name:r,description:s}=e;return ke.createElement("div",{className:"ci-check-list-item-detail"},ke.createElement(lh,{id:`check-run-header-${e.id}`,className:"ci-check-name",tooltip:r,onlyWhenOverflowed:!0,tagName:!1===n?"span":"h3",direction:gs.NORTH},r),t?null:ke.createElement("div",{className:"ci-check-description"},s))};renderCheckRunListItem=()=>{const{checkRun:e,selectable:t,notExpandable:n,isCheckRunExpanded:r,selected:s,isCondensedView:i}=this.props,o=hs()("ci-check-list-item",{sticky:r,selected:s,condensed:i}),a=ke.createElement(ke.Fragment,null,this.renderCheckStatusSymbol(),this.renderCheckRunName(),this.renderCheckJobStepToggle());return!t&&n?ke.createElement("div",{className:o},a):ke.createElement(Ss,{className:o,onClick:this.toggleCheckRunExpansion,ariaExpanded:t?void 0:this.props.isCheckRunExpanded,ariaControls:`checkRun-${e.id}`},a)};renderStepsRegion(){const{isCheckRunExpanded:e,checkRun:t}=this.props;if(!e)return null;const n=void 0===t.actionJobSteps,r=hs()("ci-steps-container",{"no-steps":n});return ke.createElement("div",{role:"region",className:r,id:`checkrun-${t.id}`,"aria-labelledby":`check-run-header-${t.id}`},ke.createElement(SO,{checkRun:t,onRerunJob:this.rerunJob,onViewCheckExternally:this.onViewCheckExternally}),n?ke.createElement(vO,{onViewCheckExternally:this.onViewCheckExternally}):ke.createElement(bO,{steps:t.actionJobSteps,onViewJobStep:this.onViewJobStep}))}render(){return ke.createElement(ke.Fragment,null,this.renderCheckRunListItem(),this.renderStepsRegion())}}class kO extends ke.PureComponent{constructor(e){super(e),this.state=this.setupStateAfterCheckRunPropChange(this.props,null)}componentDidUpdate(e){const{checkRunExpanded:t,hasUserToggledCheckRun:n}=this.setupStateAfterCheckRunPropChange(this.props,this.state);let r=!1;for(const t of e.checkRuns)if(void 0!==this.props.checkRuns.find((e=>e.id===t.id&&e.status!==t.status))){r=!0;break}r?this.setState({checkRunExpanded:t,hasUserToggledCheckRun:n,checkRunGroups:EC(this.props.checkRuns)}):this.setState({checkRunExpanded:t,hasUserToggledCheckRun:n})}setupStateAfterCheckRunPropChange(e,t){if(!0===t?.hasUserToggledCheckRun)return t;const n=EC(e.checkRuns);let r=null;if(!0!==this.props.notExpandable)for(const e of n.values()){const t=e.find((e=>gC(e)&&void 0!==e.actionJobSteps));if(void 0!==t){r=t.id.toString();break}}return{checkRunGroups:n,checkRunExpanded:r,hasUserToggledCheckRun:t?.hasUserToggledCheckRun||!1}}onCheckRunClick=e=>{if(!0===this.props.notExpandable)return;const t=this.state.checkRunExpanded!==e.id.toString()||this.props.selectable?e.id.toString():null;this.setState({checkRunExpanded:t,hasUserToggledCheckRun:!0}),this.props.onCheckRunClick?.(e)};renderListItems=e=>{if(void 0===e)return null;const t=e.map(((e,t)=>{const n=this.state.checkRunExpanded===e.id.toString(),r=!0===this.props.selectable;return ke.createElement(EO,{checkRun:e,key:t,selectable:r,selected:r&&n,isCheckRunExpanded:!r&&n,notExpandable:this.props.notExpandable,onCheckRunExpansionToggleClick:this.onCheckRunClick,onViewCheckExternally:this.props.onViewCheckDetails,onViewJobStep:this.props.onViewJobStep,onRerunJob:this.props.onRerunJob,isCondensedView:this.props.isCondensedView,isHeader:!1})}));return ke.createElement(vp,{className:"list-focus-container"},t)};renderList=()=>{const{checkRunGroups:e}=this.state,t=kC(e);if(1===t.length&&("Other"===t[0]||this.props.isCondensedView))return this.renderListItems(this.props.checkRuns);const n=hs()("ci-check-run-list-group-header",{condensed:this.props.isCondensedView}),r=t.map(((t,r)=>ke.createElement("div",{className:"ci-check-run-list-group",key:r},ke.createElement("h2",{className:n},t),this.renderListItems(e.get(t)))));return ke.createElement(ke.Fragment,null,r)};render(){return ke.createElement("div",{className:"ci-check-run-list"},this.renderList())}}class RO extends ke.Component{render(){const{valueMap:e}=this.props,{paths:t,height:n,width:r}=function(e,t=15,n=9){const r=2*t,s=[...e.values()].reduce(((e,t)=>e+t)),i=r/2,o=i,a=[];let l=0;for(const[r,c]of[...e.entries()]){if(0===c)continue;const e=c/s;if(1===e){const e=i-.01,s=o-t,l=o-n,c=["M",i,s];c.push("A",t,t,0,1,1,e,s),c.push("L",e,l),c.push("A",n,n,0,1,0,i,l),a.push({name:r,path:c.join(" ")});continue}const u=l+c,h=["M",...AO(l,t,i,s)];h.push("A",t,t,0),h.push(e>.5?1:0),h.push(1),h.push(...AO(u,t,i,s)),h.push("L"),h.push(...AO(u,n,i,s)),h.push("A",n,n,0),h.push(e>.5?1:0),h.push(0),h.push(...AO(l,n,i,s)),l+=c,a.push({name:r,path:h.join(" ")})}return{paths:a,height:r,width:r}}(e),s=`0 0 ${r} ${n}`,i=t.map(((e,t)=>ke.createElement("path",{key:t,className:e.name,d:e.path})));return ke.createElement("svg",{"aria-label":this.props.ariaLabel,className:"donut",version:"1.1",viewBox:s,tabIndex:-1},i)}}function AO(e,t,n,r){const s=e/r*Math.PI*2-Math.PI/2;return[t*Math.cos(s)+n,t*Math.sin(s)+n]}class TO extends ke.PureComponent{get failedChecksExist(){return this.props.checkRuns.some((e=>e.conclusion===Qn.Failure))}onRerunChecks=()=>{this.props.canReRunFailed&&this.failedChecksExist?Ch([{label:"重新运行失败的检查",action:()=>this.props.onRerunChecks(!0)},{label:"重新运行所有检查",action:()=>this.props.onRerunChecks(!1)}]):this.props.onRerunChecks(!1)};onRerunKeyDown=e=>{this.props.canReRunFailed&&this.failedChecksExist&&"ArrowDown"===e.key&&this.onRerunChecks()};render(){const e=this.props.canReRunFailed&&this.failedChecksExist?ke.createElement(ke.Fragment,null,"Re-run ",ke.createElement(Rs,{symbol:ou})):"Re-run Checks";return ke.createElement(Ss,{onClick:this.onRerunChecks,onKeyDown:this.onRerunKeyDown,disabled:this.props.disabled},ke.createElement(Rs,{symbol:oh})," ",e)}}var xO=n(3154),DO=n.n(xO);const MO=Ft(__dirname,"static/empty-no-pull-requests.svg");function PO(e,t){const n=Object.values(DO()(e,"conclusion")).map((e=>`${e.length} ${uC(e[0].conclusion).toLocaleLowerCase()}`)),r=e.length>1?`${t}s`:t;return`${function(e){switch(e.length){case 0:return"";case 1:return e.at(0)??"";case 2:return e.at(0)+" and "+e.at(1);default:return e.slice(0,-1).join(", ")+", and "+e.at(-1)}}(n)} ${r}`}class IO extends ke.PureComponent{statusSubscription=null;constructor(e){super(e);const t=this.props.dispatcher.tryGetCommitStatus(this.props.repository,ym(this.props.prNumber));this.state={checkRuns:t?.checks??[],checkRunSummary:this.getCombinedCheckSummary(t),loadingActionWorkflows:!0}}componentDidMount(){const e=this.props.dispatcher.tryGetCommitStatus(this.props.repository,ym(this.props.prNumber),this.props.branchName);this.onStatus(e),this.subscribe()}componentWillUnmount(){this.unsubscribe()}subscribe(){this.unsubscribe(),this.statusSubscription=this.props.dispatcher.subscribeToCommitStatus(this.props.repository,ym(this.props.prNumber),this.onStatus,this.props.branchName)}unsubscribe(){this.statusSubscription&&(this.statusSubscription.dispose(),this.statusSubscription=null)}onStatus=async e=>{null!==e&&this.setState({checkRuns:[...e.checks],checkRunSummary:this.getCombinedCheckSummary(e),loadingActionWorkflows:!1})};onViewCheckDetails=e=>{if(null===e.htmlUrl&&null===this.props.repository.htmlURL)return;const t=e.htmlUrl??`${this.props.repository.htmlURL}/pull/${this.props.prNumber}`;this.props.dispatcher.openInBrowser(t),this.props.dispatcher.incrementMetric("viewsCheckOnline")};onViewJobStep=(e,t)=>{const{repository:n,prNumber:r,dispatcher:s}=this.props,i=SC(e,t,n,r);null!==i&&(s.openInBrowser(i),this.props.dispatcher.incrementMetric("viewsCheckJobStepOnline"))};getCombinedCheckSummary(e){return null===e||0===e.checks.length?"":PO(e.checks,"check")}rerunChecks=(e,t)=>{this.props.dispatcher.showPopup({type:Sh.CICheckRunRerun,checkRuns:t??this.state.checkRuns,repository:this.props.repository,prRef:ym(this.props.prNumber),failedOnly:e})};renderRerunButton=()=>{const{checkRuns:e}=this.state;return On(this.props.repository.endpoint)?ke.createElement(TO,{disabled:0===e.length||this.state.loadingActionWorkflows,checkRuns:e,canReRunFailed:Ln(this.props.repository.endpoint),onRerunChecks:this.rerunChecks}):null};renderCheckRunLoadings(){return ke.createElement("div",{className:"loading-check-runs"},ke.createElement("img",{src:MO,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"title"},"Stand By"),ke.createElement("div",{className:"call-to-action"},"Check runs incoming!"))}renderCompletenessIndicator(e,t,n,r){if(n)return ke.createElement(Rs,{symbol:oh,className:"spin"});switch(!0){case e:return ke.createElement(Rs,{className:"completeness-indicator-success",symbol:ai});case t:return ke.createElement(Rs,{className:"completeness-indicator-error",symbol:Tu})}const s=function(e){const t=new Map;return e.forEach((e=>{const n=e.conclusion??e.status,r=t.get(n)??0;t.set(n,r+1)})),t}(r),i=`Completeness indicator. ${s.get(Xn.Completed)??0} completed, ${s.get(Xn.InProgress)??0} in progress, ${s.get(Xn.Queued)??0} queued.`;return ke.createElement(RO,{ariaLabel:i,valueMap:s})}getTitle(e,t,n,r){switch(!0){case r:return ke.createElement(ke.Fragment,null,"Checks Summary");case n:return ke.createElement("span",{className:"pending"},"Some checks haven't completed yet");case t:return ke.createElement("span",{className:"failure"},"All checks have failed");case e:return ke.createElement(ke.Fragment,null,"All checks have passed")}return ke.createElement("span",{className:"failure"},"Some checks were not successful")}renderHeader=()=>{const{loadingActionWorkflows:e,checkRuns:t,checkRunSummary:n}=this.state,r=e&&0===t.length,s=!r&&t.some((e=>null===e.conclusion))&&!t.some((e=>null!==e.conclusion&&RC.includes(e.conclusion))),i=[Qn.Success,Qn.Neutral,Qn.Skipped],o=!r&&!s&&!t.some((e=>null!==e.conclusion&&!i.includes(e.conclusion))),a=!r&&!s&&!t.some((e=>null===e.conclusion||!RC.includes(e.conclusion)));return ke.createElement("div",{className:"ci-check-run-list-header"},ke.createElement("div",{className:"completeness-indicator"},this.renderCompletenessIndicator(o,a,r,t)),ke.createElement("div",{className:"ci-check-run-list-title-container"},ke.createElement("h1",{id:"ci-check-run-header",className:"title"},this.getTitle(o,a,s,r)),ke.createElement("div",{className:"check-run-list-summary"},n)),this.renderRerunButton())};onRerunJob=e=>{this.rerunChecks(!1,[e])};renderList=()=>{const{checkRuns:e,loadingActionWorkflows:t}=this.state;return t?this.renderCheckRunLoadings():ke.createElement("div",{className:"ci-check-run-list-container"},ke.createElement(kO,{checkRuns:e,onViewCheckDetails:this.onViewCheckDetails,onViewJobStep:this.onViewJobStep,onRerunJob:Ln(this.props.repository.endpoint)?this.onRerunJob:void 0}))};render(){return ke.createElement("div",{className:"ci-check-list-popover"},ke.createElement(ND,{anchor:this.props.anchor,anchorPosition:ID.Bottom,decoration:FD.Balloon,ariaLabelledby:"ci-check-run-header",onClickOutside:this.props.closePopover},ke.createElement("div",{className:"ci-check-run-list-wrapper"},this.renderHeader(),this.renderList())))}}class _O extends ke.Component{badgeRef=null;renderBranchFoldout=()=>{const e=this.props.repositoryState,t=e.branchesState,n=e.branchesState.tip,r=n.kind===zr.Valid?n.branch:null;return ke.createElement(gO,{allBranches:t.allBranches,recentBranches:t.recentBranches,currentBranch:r,defaultBranch:t.defaultBranch,dispatcher:this.props.dispatcher,repository:this.props.repository,selectedTab:this.props.selectedTab,pullRequests:this.props.pullRequests,currentPullRequest:this.props.currentPullRequest,isLoadingPullRequests:this.props.isLoadingPullRequests,emoji:this.props.emoji,onDeleteBranch:this.onDeleteBranch,onRenameBranch:this.onRenameBranch,underlineLinks:this.props.underlineLinks})};onDropDownStateChanged=e=>{"open"===e&&this.props.repositoryState.checkoutProgress||this.props.onDropDownStateChanged(e)};render(){const{repositoryState:e,enableFocusTrap:t}=this.props,{branchesState:n,checkoutProgress:r,changesState:s}=e,{tip:i}=n,{conflictState:o}=s,a=i.kind;let l,c,u,h,p=ra,d="当前分支",m=!0,f=!1;if(this.props.currentPullRequest&&(p=la),i.kind===zr.Unknown)return null;if(i.kind===zr.Unborn)c=i.ref,u=`当前分支是 ${i.ref}`,m=n.allBranches.some((e=>!e.isDesktopForkRemoteBranch));else if(i.kind===zr.Detached)c=`On ${i.currentSha.substring(0,7)}`,u="Currently on a detached HEAD",p=sa,d="Detached HEAD";else{if(i.kind!==zr.Valid)return at(0,`Unknown tip state: ${a}`);c=u=i.branch.name}r?(c=r.target,d=r.description,r.value>0&&(d=`${d} (${Math.round(100*r.value)}%)`),u=`Checking out ${r.target}`,h=r.value,p=oh,l="spin",m=!1):null!==o&&st(o)&&(c=o.targetBranch,d="变基分支",p=ra,m=!1,f=!0,u=`变基中 ${o.targetBranch}`);const g=this.props.isOpen,y=g&&m?"open":"closed",w=hs()("branch-toolbar-button","nudge-arrow",{"nudge-arrow-up":this.props.shouldNudge}),b={width:this.props.branchDropdownWidth.value,maxWidth:this.props.branchDropdownWidth.max,minWidth:365};return ke.createElement(ke.Fragment,null,ke.createElement(UC,{width:this.props.branchDropdownWidth.value,onReset:this.onReset,onResize:this.onResize,maximumWidth:this.props.branchDropdownWidth.max,minimumWidth:this.props.branchDropdownWidth.min,description:"Current branch dropdown button"},ke.createElement(I_,{className:"branch-button",icon:p,iconClassName:l,title:c,description:d,foldoutStyleOverrides:b,onContextMenu:this.onBranchToolbarButtonContextMenu,tooltip:g?void 0:u,onDropdownStateChanged:this.onDropDownStateChanged,dropdownContentRenderer:this.renderBranchFoldout,dropdownState:y,disabled:f,showDisclosureArrow:m,progressValue:h,buttonClassName:w,onMouseEnter:this.onMouseEnter,onlyShowTooltipWhenOverflowed:!0,isOverflowed:FO,enableFocusTrap:t},this.renderPullRequestInfo()),this.props.showCIStatusPopover&&this.renderPopover()))}onResize=e=>{this.props.dispatcher.setBranchDropdownWidth(e)};onReset=()=>{this.props.dispatcher.resetBranchDropdownWidth()};onMouseEnter=()=>{Ip.isDragOfTypeInProgress(_p.Commit)&&(Ip.emitEnterDragZone("branch-button"),this.props.dispatcher.showFoldout({type:Qe.Branch}))};onBranchToolbarButtonContextMenu=e=>{e.preventDefault();const{tip:t}=this.props.repositoryState.branchesState;t.kind===zr.Valid&&Ch(q_({name:t.branch.name,isLocal:t.branch.type===rd.Local,onRenameBranch:this.onRenameBranch,onViewPullRequestOnGitHub:this.props.currentPullRequest?this.onViewPullRequestOnGithub:void 0,onDeleteBranch:this.onDeleteBranch}))};getBranchWithName(e){return this.props.repositoryState.branchesState.allBranches.find((t=>t.name===e))}onRenameBranch=e=>{const t=this.getBranchWithName(e);void 0!==t&&this.props.dispatcher.showPopup({type:Sh.RenameBranch,repository:this.props.repository,branch:t})};onViewPullRequestOnGithub=()=>{const e=this.props.currentPullRequest;null!==e&&this.props.dispatcher.showPullRequestByPR(e)};onDeleteBranch=async e=>{const t=this.getBranchWithName(e),{dispatcher:n,repository:r}=this.props;if(void 0===t)return;if(t.type===rd.Remote)return void n.showPopup({type:Sh.DeleteRemoteBranch,repository:r,branch:t});const s=await n.getBranchAheadBehind(r,t);n.showPopup({type:Sh.DeleteBranch,repository:r,branch:t,existsOnRemote:null!==s})};onBadgeClick=()=>{this.props.dispatcher.closeFoldout(Qe.Branch),this.openPopover()};openPopover=()=>{this.props.dispatcher.setShowCIStatusPopover(!0)};closePopover=e=>{if(void 0===e)return void this.props.dispatcher.setShowCIStatusPopover(!1);const{target:t}=e,n=document.getElementById("pr-badge"),r=document.getElementById("rerun-check-runs");null!==t&&t instanceof Node&&(null!==n&&n.contains(t)||null!==r&&r.contains(t))||this.props.dispatcher.setShowCIStatusPopover(!1)};renderPopover(){const e=this.props.currentPullRequest,{tip:t}=this.props.repositoryState.branchesState,n=t.kind===zr.Valid?t.branch.upstreamWithoutRemote??t.branch.name:"";return null===e?null:ke.createElement(IO,{prNumber:e.pullRequestNumber,dispatcher:this.props.dispatcher,repository:e.base.gitHubRepository,branchName:n,anchor:this.badgeRef,closePopover:this.closePopover})}onBadgeRef=e=>{this.badgeRef=e};renderPullRequestInfo(){const e=this.props.currentPullRequest;return null===e?null:ke.createElement(yO,{number:e.pullRequestNumber,dispatcher:this.props.dispatcher,repository:e.base.gitHubRepository,onBadgeRef:this.onBadgeRef,onBadgeClick:this.onBadgeClick,showCIStatusPopover:this.props.showCIStatusPopover})}}const FO=e=>{const t=e.querySelector(".title")??e;return t.scrollWidth>t.clientWidth};class NO extends ke.Component{onResize=e=>{this.props.dispatcher.setPushPullButtonWidth(e)};onReset=()=>{this.props.dispatcher.resetPushPullButtonWidth()};render(){const e=this.props.progress,t=e.title||"请稍后...";return ke.createElement(UC,{width:this.props.width.value,onReset:this.onReset,onResize:this.onResize,maximumWidth:this.props.width.max,minimumWidth:this.props.width.min,description:"Revert progress button"},ke.createElement(P_,{title:"恢复...",description:t,progressValue:e.value,className:"revert-progress",icon:oh,iconClassName:"spin",style:D_.Subtitle,disabled:!0}))}}class OO extends ke.Component{innerDropDown=null;get isMenuOpen(){return 0!==this.props.menuState.length}focusButton(){this.innerDropDown&&this.innerDropDown.focusButton()}componentDidMount(){this.props.onDidMount&&this.props.onDidMount(this.props.menuItem,this)}componentWillUnmount(){this.props.onWillUnmount&&this.props.onWillUnmount(this.props.menuItem,this)}render(){const e=this.props.menuItem,t=this.isMenuOpen?"open":"closed";return ke.createElement(I_,{ref:this.onDropDownRef,key:e.id,dropdownState:t,onDropdownStateChanged:this.onDropdownStateChanged,dropdownContentRenderer:this.dropDownContentRenderer,enableFocusTrap:!1,showDisclosureArrow:!1,onMouseEnter:this.onMouseEnter,onKeyDown:this.onKeyDown,tabIndex:-1,buttonRole:"menuitem",buttonAriaHaspopup:"menu"},ke.createElement(S_,{menuItemId:`app-menu-${e.label}`,item:e,highlightAccessKey:this.props.highlightMenuAccessKey,renderAcceleratorText:!1,renderSubMenuArrow:!1,selected:!1,hasNoRole:!0}))}onDropDownRef=e=>{this.innerDropDown=e};onMouseEnter=e=>{this.props.onMouseEnter(this.props.menuItem)};onKeyDown=e=>{e.defaultPrevented||(this.props.onKeyDown(this.props.menuItem,e),this.isMenuOpen||e.defaultPrevented||"ArrowDown"===e.key&&(this.props.onOpen(this.props.menuItem,!0),e.preventDefault()))};onMenuClose=e=>{"keyboard"===e.type&&"Escape"===e.event.key&&this.focusButton(),this.props.onClose(this.props.menuItem,e.type)};onDropdownStateChanged=(e,t)=>{this.isMenuOpen?this.props.onClose(this.props.menuItem,t):this.props.onOpen(this.props.menuItem,!0)};dropDownContentRenderer=()=>{const e=this.props.menuState;return this.isMenuOpen?ke.createElement(T_,{dispatcher:this.props.dispatcher,onClose:this.onMenuClose,state:e,enableAccessKeyNavigation:this.props.enableAccessKeyNavigation,ariaLabelledby:`app-menu-${this.props.menuItem.label}`}):null}}function LO(e){if(!e.appMenu.length)return{menuItems:[]};const t=e.appMenu[0].items,n=new Array;for(const e of t)"submenuItem"===e.type&&e.visible&&n.push(e);return{menuItems:n}}class BO extends ke.Component{menuBar=null;menuButtonRefsByMenuItemId={};focusOutTimeout=null;hasFocus=!1;stolenFocusElement=null;constructor(e){super(e),this.state=LO(e)}componentWillReceiveProps(e){e.appMenu!==this.props.appMenu&&this.setState(LO(e))}componentDidUpdate(e){this.props.foldoutState&&!e.foldoutState?1!==this.props.appMenu.length||this.hasFocus||this.focusFirstMenuItem():!this.props.foldoutState&&e.foldoutState&&this.restoreFocusOrBlur()}componentDidMount(){this.props.foldoutState&&1===this.props.appMenu.length&&this.focusFirstMenuItem()}componentWillUnmount(){this.hasFocus&&this.restoreFocusOrBlur(),this.stolenFocusElement=null}render(){return ke.createElement("div",{id:"app-menu-bar",ref:this.onMenuBarRef,role:"menubar","aria-label":"Application menu"},this.state.menuItems.map(this.renderMenuItem,this))}isMenuItemOpen(e){const t=this.props.foldoutState&&this.props.appMenu.length>1?this.props.appMenu[1]:null;return null!==t&&t.id===e.id}focusFirstMenuItem(){if(this.props.appMenu.length>1)return;const e=this.state.menuItems;if(!e.length)return;const t=e[0];t&&this.focusMenuItem(t)}focusMenuItem(e){const t=this.menuButtonRefsByMenuItemId[e.id];t&&t.focusButton()}restoreFocusOrBlur(){this.hasFocus&&(this.stolenFocusElement&&document.contains(this.stolenFocusElement)?this.stolenFocusElement.focus():document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this.stolenFocusElement=null)}onMenuBarFocusIn=e=>{const t=e;this.hasFocus||(t.relatedTarget&&t.relatedTarget instanceof HTMLElement?this.stolenFocusElement=t.relatedTarget:this.stolenFocusElement=null,this.hasFocus=!0),this.clearFocusOutTimeout()};onMenuBarFocusOut=e=>{this.clearFocusOutTimeout(),this.focusOutTimeout=requestAnimationFrame(this.onLostFocusWithin)};clearFocusOutTimeout(){null!==this.focusOutTimeout&&(cancelAnimationFrame(this.focusOutTimeout),this.focusOutTimeout=null)}onLostFocusWithin=()=>{this.hasFocus=!1,this.focusOutTimeout=null,this.props.onLostFocus&&this.props.onLostFocus(),this.stolenFocusElement=null};onMenuBarRef=e=>{this.menuBar&&(this.menuBar.removeEventListener("focusin",this.onMenuBarFocusIn),this.menuBar.removeEventListener("focusout",this.onMenuBarFocusOut)),this.menuBar=e,this.menuBar&&(this.menuBar.addEventListener("focusin",this.onMenuBarFocusIn),this.menuBar.addEventListener("focusout",this.onMenuBarFocusOut))};onMenuClose=(e,t)=>{"pointer"!==t&&"item-executed"!==t||this.restoreFocusOrBlur(),this.props.dispatcher.setAppMenuState((t=>t.withClosedMenu(e.menu)))};onMenuOpen=(e,t)=>{const n=!!this.props.foldoutState&&this.props.foldoutState.enableAccessKeyNavigation;this.props.dispatcher.showFoldout({type:Qe.AppMenu,enableAccessKeyNavigation:n}),this.props.dispatcher.setAppMenuState((n=>n.withOpenedMenu(e,t)))};onMenuButtonMouseEnter=e=>{this.hasFocus&&this.focusMenuItem(e),this.props.appMenu.length>1&&this.props.dispatcher.setAppMenuState((t=>t.withOpenedMenu(e)))};moveToAdjacentMenu(e,t){const n=this.state.menuItems,r=n.findIndex((e=>e.id===t.id));if(-1===r)return;const s=n[(r+("next"===e?1:-1)+n.length)%n.length];if(s)if(null!==this.props.foldoutState&&this.props.appMenu.length>1)this.props.dispatcher.setAppMenuState((e=>e.withOpenedMenu(s,!0)));else{const e=this.menuButtonRefsByMenuItemId[s.id];e&&e.focusButton()}}onMenuButtonKeyDown=(e,t)=>{if(t.defaultPrevented)return;const n=this.props.foldoutState;if(n)if("Escape"===t.key)this.isMenuItemOpen(e)||(this.restoreFocusOrBlur(),t.preventDefault());else if("ArrowLeft"===t.key)this.moveToAdjacentMenu("previous",e),t.preventDefault();else if("ArrowRight"===t.key)this.moveToAdjacentMenu("next",e),t.preventDefault();else if(n.enableAccessKeyNavigation){if(t.altKey||t.ctrlKey||t.metaKey)return;const e=os(t.key,this.state.menuItems);e&&is(e)&&("submenuItem"===e.type?this.props.dispatcher.setAppMenuState((t=>t.withReset().withSelectedItem(e).withOpenedMenu(e,!0))):(this.restoreFocusOrBlur(),this.props.dispatcher.executeMenuItem(e)),t.preventDefault())}};onMenuButtonDidMount=(e,t)=>{this.menuButtonRefsByMenuItemId[e.id]=t};onMenuButtonWillUnmount=(e,t)=>{delete this.menuButtonRefsByMenuItemId[e.id]};renderMenuItem(e){const t=this.props.foldoutState,n=this.isMenuItemOpen(e)?this.props.appMenu.slice(1):[],r=!!t&&t.enableAccessKeyNavigation,s=this.props.highlightAppMenuAccessKeys||!this.isMenuItemOpen(e)&&r;return ke.createElement(OO,{key:e.id,dispatcher:this.props.dispatcher,menuItem:e,menuState:n,highlightMenuAccessKey:s,enableAccessKeyNavigation:r,onClose:this.onMenuClose,onOpen:this.onMenuOpen,onMouseEnter:this.onMenuButtonMouseEnter,onKeyDown:this.onMenuButtonKeyDown,onDidMount:this.onMenuButtonDidMount,onWillUnmount:this.onMenuButtonWillUnmount})}}class HO extends Re().Component{invokeButtonRef=null;dropdownButtonRef=null;optionsContainerRef=null;dropdownSelectContainerRef=Re().createRef();constructor(e){super(e),this.state={showButtonOptions:!1,checkedOption:this.getCheckedOption(e.checkedOption),selectedOption:this.getCheckedOption(e.checkedOption)}}componentDidMount(){this.dropdownSelectContainerRef.current&&this.dropdownSelectContainerRef.current.addEventListener("focusout",this.onFocusOut)}componentWillUnmount(){this.dropdownSelectContainerRef.current&&this.dropdownSelectContainerRef.current.removeEventListener("focusout",this.onFocusOut)}onFocusOut=e=>{this.state.showButtonOptions&&e.relatedTarget&&!this.dropdownSelectContainerRef.current?.contains(e.relatedTarget)&&this.setState({showButtonOptions:!1})};componentDidUpdate(){if(null===this.invokeButtonRef||null===this.optionsContainerRef)return;const e=window.innerHeight,t=this.invokeButtonRef.getBoundingClientRect().bottom,n=this.invokeButtonRef.getBoundingClientRect().height,r=e-t-15<this.optionsContainerRef.clientHeight?`${n}px`:void 0;r!==this.state.optionsPositionBottom&&this.setState({optionsPositionBottom:r})}getCheckedOption(e){const{options:t}=this.props;if(0===t.length)return null;const n=t.find((t=>t.id===e));return n??t[0]}onItemClick=(e,t,n)=>{const r=this.props.options.find((e=>e.id===t.id));r&&(this.setState({checkedOption:r,showButtonOptions:!1}),this.dropdownButtonRef?.focus(),this.props.onCheckedOptionChange?.(r))};onClearSelection=()=>{this.setState({selectedOption:null})};onPaneKeyDown=(e,t)=>{"Escape"!==t.key&&"Esc"!==t.key||(t.preventDefault(),t.stopPropagation(),this.dropdownButtonRef?.focus(),this.setState({showButtonOptions:!1}))};onSelectionChanged=(e,t,n)=>{const r=this.props.options.find((e=>e.id===t.id));r&&this.setState({selectedOption:r})};openSplitButtonDropdown=()=>{this.setState({showButtonOptions:!this.state.showButtonOptions})};onDropdownButtonKeyDown=e=>{const{key:t}=e;let n=!1;switch(t){case" ":case"Enter":case"ArrowDown":case"Down":this.setState({selectedOption:this.props.options.at(0)??null,showButtonOptions:!0}),n=!0;break;case"Esc":case"Escape":this.dropdownButtonRef?.focus(),this.setState({showButtonOptions:!1}),n=!0;break;case"Up":case"ArrowUp":this.setState({selectedOption:this.props.options.at(-1)??null,showButtonOptions:!0}),n=!0}n&&(e.stopPropagation(),e.preventDefault())};onInvokeButtonRef=e=>{this.invokeButtonRef=e};onDropdownButtonRef=e=>{this.dropdownButtonRef=e};onOptionsContainerRef=e=>{this.optionsContainerRef=e};renderOption=e=>{const t=this.props.options.find((t=>t.id===e.id));if(t)return Re().createElement(Re().Fragment,null,Re().createElement("div",{className:"option-title"},t.label),Re().createElement("div",{className:"option-description"},t.description))};getMenuItems(e,t){const n={type:"checkbox",id:"",label:"",checked:!1,enabled:!0,visible:!0,accelerator:null,accessKey:null};return e.map((({id:e,label:r})=>({...n,id:e,label:r,checked:t===e})))}renderSplitButtonOptions(){const{showButtonOptions:e,checkedOption:t,selectedOption:n,optionsPositionBottom:r}=this.state;if(!e)return;const{options:s}=this.props,i=this.getMenuItems(s,t?.id),o=i.find((e=>e.id===n?.id)),a=void 0!==r?"open-top":"open-bottom",l=hs()("dropdown-select-button-options",a);return Re().createElement("div",{className:l,style:{bottom:r},ref:this.onOptionsContainerRef},Re().createElement(E_,{depth:0,items:i,selectedItem:o,onItemClicked:this.onItemClick,onKeyDown:this.onPaneKeyDown,onSelectionChanged:this.onSelectionChanged,onClearSelection:this.onClearSelection,allowFirstCharacterNavigation:!0,renderLabel:this.renderOption}))}onSubmit=e=>{void 0!==this.props.onSubmit&&null!==this.state.checkedOption&&this.props.onSubmit(e,this.state.checkedOption)};render(){const{options:e,disabled:t,dropdownAriaLabel:n}=this.props,{checkedOption:r,optionsPositionBottom:s,showButtonOptions:i}=this.state;if(0===e.length||null===r)return;const o=void 0!==s?"open-top":"open-bottom",a=hs()("dropdown-select-button",i?o:null),l=hs()("dropdown-button",{disabled:t});return Re().createElement("div",{className:a,ref:this.dropdownSelectContainerRef},Re().createElement("div",{className:"dropdown-button-wrappers"},Re().createElement(Ss,{className:"invoke-button",disabled:t,type:"submit",ariaDescribedBy:this.props.ariaDescribedBy,tooltip:this.props.tooltip,onButtonRef:this.onInvokeButtonRef,onClick:this.onSubmit},r.label),Re().createElement(Ss,{className:l,onClick:this.openSplitButtonDropdown,onKeyDown:this.onDropdownButtonKeyDown,onButtonRef:this.onDropdownButtonRef,type:"button",ariaExpanded:i,ariaHaspopup:!0,ariaLabel:n},Re().createElement(Rs,{symbol:ou}))),this.renderSplitButtonOptions())}}class UO extends ke.Component{get selectedAction(){const e=this.props.suggestedActions.find((e=>e.id===this.state.selectedActionValue));return void 0===e&&QT("NoSuggestedActionsProvided",new Error("The DropdownSuggestedActions component was provided an empty array. It requires an array of at least one item.")),e}constructor(e){super(e);const{selectedActionValue:t,suggestedActions:n}=e,r=n[0].id;this.state={selectedActionValue:t??r}}onActionSelectionChange=e=>{this.setState({selectedActionValue:e.id}),this.props.onSuggestedActionChanged(e.id)};onActionSubmitted=e=>{if(void 0===this.selectedAction)return;const{onClick:t,menuItemId:n}=this.selectedAction;t?.(e),e.defaultPrevented||void 0===n||M(n)};render(){if(void 0===this.selectedAction)return;const{description:e,image:t,discoverabilityContent:n,disabled:r,id:s,title:i}=this.selectedAction,o=hs()("suggested-action","primary",this.props.className);return ke.createElement("div",{className:o},t&&ke.createElement("div",{className:"image-wrapper"},t),ke.createElement("div",{className:"text-wrapper"},ke.createElement("h2",null,i),e&&ke.createElement("p",{className:"description"},e),n&&ke.createElement("p",{className:"discoverability"},n)),ke.createElement(HO,{checkedOption:s,options:this.props.suggestedActions.map((({label:e,id:t})=>({label:e,id:t}))),disabled:r,dropdownAriaLabel:"Suggested actions for this branch",onCheckedOptionChange:this.onActionSelectionChange,onSubmit:this.onActionSubmitted}))}}function ZO(e){return e.replace(/&?&/g,(e=>e.length>1?"&":""))}const $O=Ft(__dirname,"static/paper-stack.svg");function WO(e){return"separator"===e.type||"submenuItem"===e.type||null===e.accelerator?[]:e.accelerator.split("+").map(bh)}function VO(e,t=new Map,n){for(const r of e.items){if("separator"===r.type)continue;const e={label:r.label,acceleratorKeys:WO(r),parentMenuLabels:void 0===n?[]:[n.label,...n.parentMenuLabels],enabled:r.enabled};t.set(r.id,e),"submenuItem"===r.type&&VO(r.menu,t,e)}return t}class qO extends ke.Component{getMenuInfoMap=xr((e=>void 0===e?new Map:VO(e)));transitionTimer=null;constructor(e){super(e),this.state={enableTransitions:!1}}getMenuItemInfo(e){return this.getMenuInfoMap(this.props.appMenu).get(e)}getPlatformFileManagerName(){return"Explorer"}renderDiscoverabilityElements(e){const t=function(e){return ZO(e.parentMenuLabels.join(" -> "))}(e);return ke.createElement(ke.Fragment,null,t,"菜单 或 快捷键:"," ",this.renderDiscoverabilityKeyboardShortcut(e))}renderDiscoverabilityKeyboardShortcut(e){return ke.createElement(_u,{darwinKeys:e.acceleratorKeys,keys:e.acceleratorKeys})}renderMenuBackedAction(e,t,n,r){const s=this.getMenuItemInfo(e);return void 0===s?(log.error(`找不到的匹配菜单项 ${e}`),null):ke.createElement(xI,{title:t,description:n,discoverabilityContent:this.renderDiscoverabilityElements(s),menuItemId:e,buttonText:ZO(s.label),disabled:!s.enabled,onClick:r})}renderShowInFileManager(){const e=this.getPlatformFileManagerName();return this.renderMenuBackedAction("open-working-directory",`在资源管理器中查看存储库`,void 0,this.onShowInFileManagerClicked)}onShowInFileManagerClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepOpenWorkingDirectory");renderViewOnGitHub(){return null!==this.props.repository.gitHubRepository?this.renderMenuBackedAction("view-repository-on-github","在浏览器中查看存储库",void 0,this.onViewOnGitHubClicked):null}onViewOnGitHubClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepViewOnGitHub");openIntegrationPreferences=()=>{this.props.dispatcher.showPopup({type:Sh.Preferences,initialSelectedTab:Gr.Integrations})};renderOpenInExternalEditor(){if(!this.props.isExternalEditorAvailable)return null;const e="open-external-editor";if(void 0===this.getMenuItemInfo(e))return log.error(`找不到的匹配菜单项 ${e}`),null;if(void 0===this.getMenuItemInfo("preferences"))return log.error(`找不到的匹配菜单项 ${e}`),null;const t=ke.createElement(ke.Fragment,null,"选择编辑器:"," ",ke.createElement(sM,{onClick:this.openIntegrationPreferences},"选项"));return this.renderMenuBackedAction(e,"在文件管理器中查看存储库",t,this.onOpenInExternalEditorClicked)}onOpenInExternalEditorClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepOpenInExternalEditor");renderRemoteAction(){const{remote:e,aheadBehind:t,branchesState:n,tagsToPush:r}=this.props.repositoryState,{tip:s,defaultBranch:i,currentPullRequest:o}=n;if(s.kind!==zr.Valid)return null;if(null===e)return this.renderPublishRepositoryAction();if(null===t)return this.renderPublishBranchAction(s);if(Uy(n,t)===Ly.Recommended)return null;if(t.behind>0)return this.renderPullBranchAction(s,e,t);if(t.ahead>0||null!==r&&r.length>0)return this.renderPushBranchAction(s,e,t,r);const a=null!==this.props.repository.gitHubRepository,l=null!==o,c=null!==i&&s.branch.name===i.name;return!a||l||c?null:this.renderCreatePullRequestAction(s)}renderViewStashAction(){const{changesState:e,branchesState:t}=this.props.repositoryState,{tip:n}=t;if(n.kind!==zr.Valid)return null;const{stashEntry:r}=e;if(null===r)return null;if(r.files.kind!==nb.Loaded)return null;const s=r.files.files.length,i=ke.createElement(ke.Fragment,null,"你有 ",s," ",1===s?"项更改":"项更改","在你的程序中,您尚未提交。"),o=ke.createElement(ke.Fragment,null,"当暂存更改存在时,可以在左侧的“更改”选项卡的底部查看这些暂存的更改。"),a="toggle-stashed-changes",l=this.getMenuItemInfo(a);return void 0===l?(log.error(`Could not find matching menu item for ${a}`),null):ke.createElement(xI,{key:"view-stash-action",title:"查看暂存更改",menuItemId:a,description:i,discoverabilityContent:o,buttonText:"查看暂存",type:"primary",disabled:null!==l&&!l.enabled,onClick:this.onViewStashClicked})}onViewStashClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepViewStash");renderPublishRepositoryAction(){const e="push",t=this.getMenuItemInfo(e);if(void 0===t)return log.error(`找不到的匹配菜单项 ${e}`),null;const n=ke.createElement(ke.Fragment,null,"使用快捷键"," ",this.renderDiscoverabilityKeyboardShortcut(t));return ke.createElement(xI,{key:"publish-repository-action",title:"将仓库发布到GitHub",description:"此仓库当前仅在本地计算机上可用。通过在GitHub上发布您可以共享它并与其他人协作。",discoverabilityContent:n,buttonText:"发布存储库",menuItemId:e,type:"primary",disabled:!t.enabled,onClick:this.onPublishRepositoryClicked})}onPublishRepositoryClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepPublishRepository");renderPublishBranchAction(e){const t="push",n=this.getMenuItemInfo(t);if(void 0===n)return log.error(`Could not find matching menu item for ${t}`),null;const r=null!==this.props.repository.gitHubRepository,s=ke.createElement(ke.Fragment,null,"当前分支(",ke.createElement(UM,null,e.branch.name),")尚未发布到远程。通过发布它 ",r?"到 GitHub":""," 你可以分享, ",r?"打开拉取请求 ":"","并与他人合作。"),i=ke.createElement(ke.Fragment,null,"Always available in the toolbar or"," ",this.renderDiscoverabilityKeyboardShortcut(n));return ke.createElement(xI,{key:"publish-branch-action",title:"发布分支",menuItemId:t,description:s,discoverabilityContent:i,buttonText:"发布分支",type:"primary",disabled:!n.enabled,onClick:this.onPublishBranchClicked})}onPublishBranchClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepPublishBranch");renderPullBranchAction(e,t,n){const r="pull",s=this.getMenuItemInfo(r);if(void 0===s)return log.error(`Could not find matching menu item for ${r}`),null;const i=null!==this.props.repository.gitHubRepository,o=ke.createElement(ke.Fragment,null,"当前分支(",ke.createElement(UM,null,e.branch.name),")有"," ",1===n.behind?"1项提交":"多项提交"," 在"," ",i?"GitHub":"远程"," 那"," ",1===n.behind?"不是":"不要"," 存在于您的计算机上。"),a=ke.createElement(ke.Fragment,null,"存储库菜单 或 快捷键"," ",this.renderDiscoverabilityKeyboardShortcut(s)),l=`从 ${t.name} 远程拉取 ${n.behind} ${1===n.behind?"提交":"提交"}`,c=`拉取 ${t.name}`;return ke.createElement(xI,{key:"pull-branch-action",title:l,menuItemId:r,description:o,discoverabilityContent:a,buttonText:c,type:"primary",disabled:!s.enabled})}renderPushBranchAction(e,t,n,r){const s="push",i=this.getMenuItemInfo(s);if(void 0===i)return log.error(`Could not find matching menu item for ${s}`),null;const o=null!==this.props.repository.gitHubRepository,a=[],l=[];n.ahead>0&&(a.push("提交"),l.push(1===n.ahead?"1 个本地提交":`${n.ahead} 个本地提交`)),null!==r&&r.length>0&&(a.push("tags"),l.push(1===r.length?"1 tag":`${r.length} tags`));const c=`你有 ${l.join(" and ")} 等待被推送到 ${o?"GitHub":"远程"}.`,u=ke.createElement(ke.Fragment,null,"存储库菜单 或 快捷键:",this.renderDiscoverabilityKeyboardShortcut(i)),h=`推送 ${a.join(" and ")} 到远程 ${t.name}`,p=`推送 ${t.name}`;return ke.createElement(xI,{key:"push-branch-action",title:h,menuItemId:s,description:c,discoverabilityContent:u,buttonText:p,type:"primary",disabled:!i.enabled})}onPullRequestSuggestedActionChanged=e=>{var t;((t=e)===Cm.PreviewPullRequest||t===Cm.CreatePullRequest)&&this.props.dispatcher.setPullRequestSuggestedNextAction(e)};renderCreatePullRequestAction(e){const t=this.getMenuItemInfo("create-pull-request");if(void 0===t)return log.error("Could not find matching menu item for 'create-pull-request'"),null;const n=ke.createElement(ke.Fragment,null,"当前分支(",ke.createElement(UM,null,e.branch.name),") is already published to GitHub. Create a pull request to propose and collaborate on your changes."),r=this.getMenuItemInfo("preview-pull-request");if(void 0===r)return log.error("Could not find matching menu item for 'preview-pull-request'"),null;const s={title:"从当前分支创建拉取请求",label:"创建拉取请求",description:n,id:Cm.CreatePullRequest,menuItemId:"create-pull-request",discoverabilityContent:this.renderDiscoverabilityElements(t),disabled:!t.enabled,onClick:this.onCreatePullRequestClicked},i={title:"从当前分支预览拉取请求",label:"预览拉取请求",description:ke.createElement(ke.Fragment,null,"当前分支(",ke.createElement(UM,null,e.branch.name),") is already published to GitHub. Preview the changes this pull request will have before proposing your changes."),id:Cm.PreviewPullRequest,menuItemId:"preview-pull-request",discoverabilityContent:this.renderDiscoverabilityElements(r),disabled:!r.enabled};return ke.createElement(UO,{key:"pull-request-action",className:"pull-request-action",suggestedActions:[i,s],selectedActionValue:this.props.pullRequestSuggestedNextAction,onSuggestedActionChanged:this.onPullRequestSuggestedActionChanged})}onCreatePullRequestClicked=()=>this.props.dispatcher.incrementMetric("suggestedStepCreatePullRequest");renderActions(){return ke.createElement(ke.Fragment,null,ke.createElement(PI,{type:"primary",transitions:"replace",enableTransitions:this.state.enableTransitions},this.renderViewStashAction()||this.renderRemoteAction()),ke.createElement(PI,null,this.renderOpenInExternalEditor(),this.renderShowInFileManager(),this.renderViewOnGitHub()))}componentDidMount(){this.transitionTimer=window.setTimeout((()=>{this.setState({enableTransitions:!0}),this.transitionTimer=null}),500)}componentWillUnmount(){null!==this.transitionTimer&&clearTimeout(this.transitionTimer)}render(){return ke.createElement("div",{className:"changes-interstitial"},ke.createElement("div",{className:"content"},ke.createElement("div",{className:"interstitial-header"},ke.createElement("div",{className:"text"},ke.createElement("h1",null,"本地无更改"),ke.createElement("p",null,"此存储库中没有未提交的更改")),ke.createElement("img",{src:$O,className:"blankslate-image",alt:""})),this.renderActions()))}}const GO=Ft(__dirname,"static/multiple-files-selected.svg");class zO extends ke.Component{render(){return ke.createElement("div",{className:"panel blankslate",id:"no-changes"},ke.createElement("img",{src:GO,className:"blankslate-image",alt:""}),ke.createElement("div",null,this.props.count," files selected"))}}class jO extends ke.Component{render(){const e=this.props.filesChangedCount,t=e>300?"300+":e;return ke.createElement("span",{className:"counter"},t)}}class KO extends ke.Component{render(){const e=[],{users:t,accounts:n,tooltip:r}=this.props;for(let s=0;s<this.props.users.length;s++)t.length>4&&2===s&&e.push(ke.createElement("div",{key:"more",className:"avatar-more avatar"})),e.push(ke.createElement(CM,{key:`${s}`,user:t[s],accounts:n,tooltip:r}));const s=hs()("AvatarStack",{"AvatarStack--small":!0,"AvatarStack--two":2===t.length,"AvatarStack--three":3===t.length,"AvatarStack--plus":t.length>3});return ke.createElement("div",{className:s},ke.createElement("div",{className:"AvatarStack-body"},e))}}class YO extends ke.Component{renderAuthorInline(e){return ke.createElement("span",{className:"author"},e.name)}renderAuthors(e){return 1===e.length?ke.createElement("span",{className:"authors"},this.renderAuthorInline(e[0])):2===e.length?ke.createElement("span",{className:"authors"},this.renderAuthorInline(e[0]),", ",this.renderAuthorInline(e[1])):ke.createElement("span",{className:"authors"},e.length," people")}render(){const{commits:e}=this.props,t=new Map;for(const n of e){const{author:e,committer:r,coAuthors:s}=n,i=n.authoredByCommitter||null!==this.props.gitHubRepository&&iM(n,this.props.gitHubRepository)?[e,...s]:[e,r,...s];for(const e of i)t.has(e.toString())||t.set(e.toString(),e)}return ke.createElement("span",{className:"commit-attribution-component"},this.renderAuthors(Array.from(t.values())))}}var XO=n(5375),QO=n.n(XO);const JO=new class{scrollTimer;defaultScrollEdge=30;scrollSpeed=5;setupMouseScroll(e,t){const n=this.getClosestScrollElement(e);null!==n?this.updateMouseScroll(n,t):this.clearScrollTimer()}updateMouseScroll(e,t){window.clearTimeout(this.scrollTimer),this.scrollVerticallyOnMouseNearEdge(e,t)&&(this.scrollTimer=window.setTimeout((()=>{this.updateMouseScroll(e,t)}),30))}clearScrollTimer(){window.clearTimeout(this.scrollTimer)}scrollVerticallyOnMouseNearEdge(e,t){const{top:n,bottom:r}=e.getBoundingClientRect(),s=r-t,i=t-n;if(s>0&&s<this.defaultScrollEdge){const t=this.getScrollDistance(s);return this.scrollDown(e,t)}if(i>0&&i<this.defaultScrollEdge){const t=this.getScrollDistance(i);return this.scrollUp(e,t)}return!1}getScrollDistance(e){const t=this.defaultScrollEdge/e;return this.scrollSpeed*t}scrollUp(e,t){if(e.scrollTop<=0)return!1;const n=e.scrollTop>t?e.scrollTop-t:0;return e.scrollTo({top:n}),!0}scrollDown(e,t){const n=e.scrollHeight-e.clientHeight;if(e.scrollTop>=n)return!1;const r=e.scrollTop+t<n?e.scrollTop+t:n;return e.scrollTo({top:r}),!0}getClosestScrollElement(e){const{position:t}=getComputedStyle(e);if("fixed"===t)return null;if(this.isScrollable(e))return e;let n;for(n=e;n=n.parentElement;){const{position:e}=getComputedStyle(n);if(("absolute"!==t||"static"!==e)&&this.isScrollable(n)&&this.hasScrollableContent(n))return n}return null}isScrollable(e){const t=getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)}hasScrollableContent(e){return e.clientHeight<e.scrollHeight}};class eL extends ke.Component{hasDragStarted=!1;hasDragEnded=!1;dragElement=null;elemBelow=null;verticalOffset=15;componentDidMount(){this.dragElement=document.getElementById("dragElement")}canDragCommit(e){return!(0!==e.button||e.shiftKey)&&this.props.isEnabled}initializeDrag(){this.hasDragStarted=!1,this.elemBelow=null}onMouseDown=async e=>{this.canDragCommit(e)&&(this.hasDragEnded=!1,document.onmouseup=this.handleDragEndEvent,await Ww(100),this.hasDragEnded||(this.initializeDrag(),document.addEventListener("mousemove",this.onMouseMove)))};onMouseMove=e=>{this.hasDragEnded?this.onDragEnd():(this.hasDragStarted||(this.props.onRenderDragElement(),this.props.onDragStart(),Ip.dragStarted(),this.hasDragStarted=!0,window.addEventListener("keyup",this.onKeyUp)),null!==this.dragElement&&(this.dragElement.style.left=e.pageX+0+"px",this.dragElement.style.top=e.pageY+this.verticalOffset+"px"),this.elemBelow=document.elementFromPoint(e.clientX,e.clientY),null!==this.elemBelow?JO.setupMouseScroll(this.elemBelow,e.clientY):JO.clearScrollTimer())};handleDragEndEvent=()=>{this.hasDragEnded=!0,this.hasDragStarted&&this.onDragEnd(),document.onmouseup=null,window.removeEventListener("keyup",this.onKeyUp)};onKeyUp=e=>{"Escape"===e.key&&this.handleDragEndEvent()};onDragEnd(){document.removeEventListener("mousemove",this.onMouseMove),JO.clearScrollTimer(),this.props.onRemoveDragElement(),void 0!==this.props.onDragEnd&&this.props.onDragEnd(this.getLastElemBelowDropTarget()),Ip.dragEnded(this.getLastElemBelowDropTarget())}getLastElemBelowDropTarget=()=>{if(null!==this.elemBelow)return this.props.dropTargetSelectors.find((e=>null!==this.elemBelow&&null!==this.elemBelow.closest(e)))};render(){return ke.createElement("div",{className:"draggable",onMouseDown:this.onMouseDown},this.props.children)}}class tL extends ke.PureComponent{constructor(e){super(e),this.state={avatarUsers:aM(e.gitHubRepository,e.commit)}}componentWillReceiveProps(e){e.commit!==this.props.commit&&this.setState({avatarUsers:aM(e.gitHubRepository,e.commit)})}onMouseUp=()=>{const{onSquash:e,selectedCommits:t,commit:n,disableSquashing:r}=this.props;!0!==r&&Ip.isDragOfTypeInProgress(_p.Commit)&&void 0!==e&&t.filter((e=>e.sha!==n.sha)).length>0&&e(t,n,!1)};onMouseEnter=()=>{const{selectedCommits:e,commit:t,disableSquashing:n}=this.props,r=void 0!==e.find((e=>e.sha===t.sha));!0!==n&&Ip.isDragOfTypeInProgress(_p.Commit)&&!r&&Ip.emitEnterDropTarget({type:Fp.Commit})};onMouseLeave=()=>{Ip.isDragOfTypeInProgress(_p.Commit)&&Ip.emitLeaveDropTarget()};render(){const{commit:e}=this.props,{author:{date:t}}=e,n=this.props.isDraggable||!1,r=0===e.summary.length,s=r?"Empty commit message":e.summary,i=hs()("summary",{"empty-summary":r});return ke.createElement(eL,{isEnabled:n,onDragStart:this.onDragStart,onRenderDragElement:this.onRenderCommitDragElement,onRemoveDragElement:this.onRemoveDragElement,dropTargetSelectors:[Np.Branch,Np.PullRequest,Np.Commit,Np.ListInsertionPoint]},ke.createElement("div",{className:"commit",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseUp:this.onMouseUp},ke.createElement("div",{className:"info"},ke.createElement(WI,{className:i,emoji:this.props.emoji,text:s,renderUrlsAsLinks:!1}),ke.createElement("div",{className:"description"},ke.createElement(KO,{users:this.state.avatarUsers,accounts:this.props.accounts,tooltip:!cn()}),ke.createElement("div",{className:"byline"},ke.createElement(YO,{gitHubRepository:this.props.gitHubRepository,commits:[e]}),function(e){return ke.createElement(ke.Fragment,null," • ",ke.createElement(jI,{date:e,tooltip:!cn()}))}(t)))),this.renderCommitIndicators()))}renderCommitIndicators(){const e=function(e){if(0===e.length)return null;const[t]=e;return ke.createElement("span",{className:"tag-indicator"},ke.createElement("span",{className:"tag-name",key:t},t),e.length>1&&ke.createElement("span",{key:e.length,className:"tag-indicator-more"}))}(this.props.commit.tags),t=this.renderUnpushedIndicator();return e||t?ke.createElement("div",{className:"commit-indicators"},e,t):null}renderUnpushedIndicator(){return this.props.showUnpushedIndicator?ke.createElement(lh,{tagName:"div",className:"unpushed-indicator",tooltip:this.props.unpushedIndicatorTitle,disabled:cn()},ke.createElement(Rs,{symbol:Hs})):null}onDragStart=()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),Ip.setDragData({type:_p.Commit,commits:this.props.selectedCommits})};onRenderCommitDragElement=()=>{void 0!==this.props.onRenderCommitDragElement&&this.props.onRenderCommitDragElement(this.props.commit)};onRemoveDragElement=()=>{void 0!==this.props.onRemoveDragElement&&this.props.onRemoveDragElement()}}class nL extends ke.Component{timeoutId=null;onEnterDropTarget=null;onLeaveDropTargetDisposable=null;constructor(e){super(e),this.state={showTooltip:!1,currentDropTarget:null}}clearTimeout(){null!==this.timeoutId&&window.clearTimeout(this.timeoutId)}setToolTipTimer(e){this.setState({showTooltip:!0})}renderDragToolTip(){const{showTooltip:e,currentDropTarget:t}=this.state;if(!e||null===t)return;let n;switch(t.type){case Fp.Branch:const e=ke.createElement(Rs,{className:"copy-to-icon",symbol:Bl});n=ke.createElement(ke.Fragment,null,e,ke.createElement("span",null,ke.createElement("span",{className:"copy-to"},"Copy to"),ke.createElement("span",{className:"branch-name"},t.branchName)));break;case Fp.Commit:const r=this.props.selectedCommits.length+1;n=ke.createElement(ke.Fragment,null,ke.createElement("span",null,"Squash ",r," commits"));break;case Fp.ListInsertionPoint:if(t.data.type!==_p.Commit){n=ke.createElement(ke.Fragment,null,ke.createElement("span",null,"'Insert here'"));break}const s=1===t.data.commits.length?"commit":"commits";n=ke.createElement(ke.Fragment,null,ke.createElement("span",null,`Move ${s} here`));break;default:at(0,`Unknown drop target type: ${t}`)}return ke.createElement("div",{className:"tool-tip-contents"},ke.createElement("div",null,n))}componentDidMount(){this.onEnterDropTarget=Ip.onEnterDropTarget((e=>{switch(this.setState({currentDropTarget:e}),e.type){case Fp.Branch:case Fp.Commit:case Fp.ListInsertionPoint:this.setToolTipTimer(1500);break;default:at(0,`Unknown drop target type: ${e}`)}})),this.onLeaveDropTargetDisposable=Ip.onLeaveDropTarget((()=>{this.setState({currentDropTarget:null,showTooltip:!1})}))}componentWillUnmount(){this.clearTimeout(),null!==this.onEnterDropTarget&&(this.onEnterDropTarget.dispose(),this.onEnterDropTarget=null),null!==this.onLeaveDropTargetDisposable&&(this.onLeaveDropTargetDisposable.dispose(),this.onLeaveDropTargetDisposable=null)}render(){const{commit:e,gitHubRepository:t,selectedCommits:n,emoji:r}=this.props,s=n.length,i=hs()({"multiple-selected":s>1,"in-keyboard-insertion-mode":this.props.isKeyboardInsertion??!1});return ke.createElement("div",{id:"commit-drag-element",className:i},ke.createElement("div",{className:"commit-box"},ke.createElement("div",{className:"count"},s),ke.createElement(tL,{gitHubRepository:t,commit:e,selectedCommits:n,emoji:r,showUnpushedIndicator:!1,accounts:this.props.accounts})),this.renderDragToolTip())}}class rL extends ke.Component{commitsHash=xr(iL,bp);commitIndexBySha=xr((e=>new Map(e.map(((e,t)=>[e,t])))));containerRef=ke.createRef();listRef=ke.createRef();updateKeyboardReorderingMessage=OC()((e=>{const{keyboardReorderData:t}=this.props;if(void 0===t)return void this.setState({reorderingMessage:""});const n=1===t.commits.length?"":"s";if(null===e)this.setState({reorderingMessage:`Use the Up and Down arrow keys to choose a new location for the selected commit${n}, then press Enter to confirm or Escape to cancel.`});else{const{row:t}=e,r=t<this.props.commitSHAs.length?`before commit ${t+1}`:`after commit ${t}`;this.setState({reorderingMessage:`Press Enter to insert the selected commit${n} ${r} or Escape to cancel.`})}}),500);constructor(e){super(e),this.state={reorderingMessage:""}}componentDidUpdate(e){this.props.keyboardReorderData!==e.keyboardReorderData&&this.updateKeyboardReorderingMessage(null)}getVisibleCommits(){const e=new Array;for(const t of this.props.commitSHAs){const n=this.props.commitLookup.get(t);void 0!==n&&e.push(n)}return e}isLocalCommit=e=>this.props.localCommitSHAs.includes(e);renderCommit=e=>{const t=this.props.commitSHAs[e],n=this.props.commitLookup.get(t);if(null==n)return null;const r=this.isLocalCommit(n.sha),s=this.getUnpushedTags(n),i=(r||s.length>0)&&!1===this.props.isLocalRepository;return ke.createElement(tL,{key:n.sha,gitHubRepository:this.props.gitHubRepository,showUnpushedIndicator:i,unpushedIndicatorTitle:this.getUnpushedIndicatorTitle(r,s.length),commit:n,emoji:this.props.emoji,isDraggable:!1===this.props.isMultiCommitOperationInProgress&&!this.inKeyboardReorderMode,onSquash:this.onSquash,selectedCommits:this.selectedCommits,onRenderCommitDragElement:this.onRenderCommitDragElement,onRemoveDragElement:this.props.onRemoveCommitDragElement,disableSquashing:this.props.disableSquashing,accounts:this.props.accounts})};get inKeyboardReorderMode(){return void 0!==this.props.keyboardReorderData}getLastRetainedCommitRef(e){const t=Math.max(...e);return t!==this.props.commitSHAs.length-1?`${this.props.commitSHAs[t]}^`:null}onSquash=(e,t,n)=>{const r=[...e,t].map((e=>this.props.commitSHAs.findIndex((t=>t===e.sha))));this.props.onSquash?.(e,t,this.getLastRetainedCommitRef(r),n)};onRenderCommitDragElement=e=>{this.props.onRenderCommitDragElement?.(e,this.selectedCommits)};getUnpushedIndicatorTitle(e,t){return e?"This commit has not been pushed to the remote repository":t>0?`This commit has ${t} tag${t>1?"s":""} to push`:void 0}get selectedCommits(){return this.lookupCommits(this.props.selectedSHAs)}getUnpushedTags(e){const t=new Set(this.props.tagsToPush??[]);return e.tags.filter((e=>t.has(e)))}onSelectionChanged=e=>{const t=e.map((e=>this.props.commitSHAs[e])),n=this.lookupCommits(t);this.props.onCommitsSelected?.(n,this.isContiguous(e))};isContiguous(e){if(e.length<=1)return!0;const t=e.toSorted(((e,t)=>t-e));for(let e=0;e<t.length;e++){const n=t[e];if(e+1!==t.length&&n-1!==t[e+1])return!1}return!0}onSelectedRowChanged=e=>{const t=this.props.commitSHAs[e],n=this.props.commitLookup.get(t);n&&this.props.onCommitsSelected?.([n],!0)};lookupCommits(e){const t=[];return e.forEach((e=>{const n=this.props.commitLookup.get(e);void 0!==n?t.push(n):log.warn("[Commit List] - Unable to lookup commit from sha - This should not happen.")})),t}onScroll=(e,t)=>{const n=Math.ceil(t/50),r=Math.floor(e/50),s=r+n;this.props.onScroll?.(r,s),this.props.onCompareListScrolled?.(e)};rowForSHA(e){return this.commitIndexBySha(this.props.commitSHAs).get(e)??-1}getRowCustomClassMap=()=>{const{commitSHAs:e,shasToHighlight:t}=this.props;if(void 0===t||0===t.length)return;const n=e.filter((e=>t.includes(e))).map((e=>this.rowForSHA(e)));if(0===n.length)return;const r=new Map;return r.set("highlighted",n),r};renderExpandedAuthor(e){return e?e.name?ke.createElement(ke.Fragment,null,ke.createElement("div",null,e.name),ke.createElement("div",null,e.email)):e.email:"Unknown user"}renderRowFocusTooltip=e=>{if(!e)return null;const t=e.row,n=this.props.commitSHAs[t],r=this.props.commitLookup.get(n);if(!r)return null;const s=aM(this.props.gitHubRepository,r),{author:{date:i}}=r,o=Mt(i,{dateStyle:"full",timeStyle:"short"}),a=s.map(((e,t)=>ke.createElement("div",{className:"author",key:t},ke.createElement("div",{className:"label"},ke.createElement(CM,{accounts:this.props.accounts,user:e,title:null})),ke.createElement("div",null,this.renderExpandedAuthor(e))))),l=this.isLocalCommit(r.sha),c=this.getUnpushedTags(r),u=(l||c.length>0)&&!1===this.props.isLocalRepository;return ke.createElement("div",{className:"commit-list-item-tooltip list-item-tooltip"},a,ke.createElement("div",null,ke.createElement("div",{className:"label"},"Date: "),o),u?ke.createElement("div",null,ke.createElement("div",{className:"label"},ke.createElement("span",{className:"unpushed-indicator"},ke.createElement(Rs,{symbol:Hs}))),ke.createElement("div",null,this.getUnpushedIndicatorTitle(l,c.length))):null)};focus(){this.listRef.current?.focus()}render(){const{commitSHAs:e,selectedSHAs:t,shasToHighlight:n,emptyListMessage:r,reorderingEnabled:s,isMultiCommitOperationInProgress:i}=this.props;if(0===e.length)return ke.createElement("div",{className:"panel blankslate"},r??"No commits to list");const o=hs()({"has-highlighted-commits":void 0!==n&&n.length>0}),a=t.map((e=>this.rowForSHA(e))).filter((e=>-1!==e));return ke.createElement("div",{id:"commit-list",className:o,ref:this.containerRef},this.renderReorderCommitsHint(),ke.createElement(bx,{ariaLabel:"Commits",role:!0===this.props.isInformationalView?"list":"listbox",ref:this.listRef,rowCount:e.length,rowHeight:50,selectedRows:a,rowRenderer:this.renderCommit,onDropDataInsertion:this.onDropDataInsertion,onSelectionChanged:this.onSelectionChanged,onSelectedRowChanged:this.onSelectedRowChanged,onKeyboardInsertionIndexPathChanged:this.onKeyboardInsertionIndexPathChanged,onCancelKeyboardInsertion:this.props.onCancelKeyboardReorder,onConfirmKeyboardInsertion:this.onConfirmKeyboardReorder,onRowContextMenu:this.onRowContextMenu,selectionMode:"multi",onScroll:this.onScroll,keyboardInsertionData:this.props.keyboardReorderData,keyboardInsertionElementRenderer:this.renderKeyboardInsertionElement,insertionDragType:!0===s&&!1===i?_p.Commit:void 0,invalidationProps:{commits:this.props.commitSHAs,localCommitSHAs:this.props.localCommitSHAs,commitLookupHash:this.commitsHash(this.getVisibleCommits()),tagsToPush:this.props.tagsToPush,shasToHighlight:this.props.shasToHighlight},setScrollTop:this.props.compareListScrollTop,rowCustomClassNameMap:this.getRowCustomClassMap(),renderRowFocusTooltip:this.renderRowFocusTooltip}),ke.createElement(LC,{message:this.state.reorderingMessage}))}renderReorderCommitsHint=()=>{if(!this.inKeyboardReorderMode)return null;const e=this.containerRef.current?.clientWidth??0;return ke.createElement(ND,{className:"reorder-commits-hint-popover",anchor:this.containerRef.current,anchorOffset:10,anchorPosition:ID.Top,isDialog:!1,trapFocus:!1,style:{width:e-20+"px"}},ke.createElement("h4",null,"重新排序提交"),ke.createElement("p",null,"Use ",ke.createElement(_u,{darwinKeys:["↑"],keys:["↑"]}),ke.createElement(_u,{darwinKeys:["↓"],keys:["↓"]})," to choose a new location."),ke.createElement("p",null,"Press ",ke.createElement(_u,{darwinKeys:["⏎"],keys:["⏎"]})," to confirm."))};renderKeyboardInsertionElement=e=>{const{emoji:t,gitHubRepository:n}=this.props,{commits:r}=e;return 0===r.length?null:e.type===_p.Commit?ke.createElement(nL,{gitHubRepository:n,commit:r[0],selectedCommits:r,isKeyboardInsertion:!0,emoji:t,accounts:this.props.accounts}):at(e.type,`Unknown drag element type: ${e}`)};onRowContextMenu=(e,t)=>{if(t.preventDefault(),this.inKeyboardReorderMode)return;const n=this.props.commitSHAs[e],r=this.props.commitLookup.get(n);if(void 0===r)return;let s=[];s=this.props.selectedSHAs.length>1?this.getContextMenuMultipleCommits(r):this.getContextMenuForSingleCommit(e,r),Ch(s)};getContextMenuForSingleCommit(e,t){const n=this.isLocalCommit(t.sha),r=!0===this.props.canUndoCommits&&n&&0===e,s=!0===this.props.canAmendCommits&&0===e,i=e>0&&e<=this.props.localCommitSHAs.length,o=!0===this.props.canResetToCommits&&i,a=e>0;let l="在Github上查看";const c=this.props.gitHubRepository;c&&c.endpoint!==ar()&&(l="在Github上查看 Enterprise");const u=[];s&&u.push({label:"修改提交",action:()=>this.props.onAmendCommit?.(t,n)}),r&&u.push({label:"撤销提交",action:()=>{this.props.onUndoCommit&&this.props.onUndoCommit(t)},enabled:void 0!==this.props.onUndoCommit}),u.push({label:"重置提交",action:()=>{this.props.onResetToCommit&&this.props.onResetToCommit(t)},enabled:o&&void 0!==this.props.onResetToCommit}),u.push({label:"检出提交",action:()=>{this.props.onCheckoutCommit?.(t)},enabled:a&&void 0!==this.props.onCheckoutCommit}),u.push({label:"重新排序提交",action:()=>{this.props.onKeyboardReorder?.([t])},enabled:this.canReorder()}),u.push({label:"在提交中还原更改",action:()=>{this.props.onRevertCommit&&this.props.onRevertCommit(t)},enabled:void 0!==this.props.onRevertCommit},{type:"separator"},{label:"根据提交创建分支",action:()=>{this.props.onCreateBranch&&this.props.onCreateBranch(t)}},{label:"创建标签",action:()=>this.props.onCreateTag?.(t.sha),enabled:void 0!==this.props.onCreateTag});const h=this.getDeleteTagsMenuItem(t);null!==h&&u.push({type:"separator"},h),t.tags.length;const p=t.tags.length>1?"Copy tags":"复制标签";return u.push({label:"筛选提交",action:()=>this.props.onCherryPick?.(this.selectedCommits),enabled:this.canCherryPick()},{type:"separator"},{label:"复制SHA",action:()=>m.clipboard.writeText(t.sha)},{label:p,action:()=>m.clipboard.writeText(t.tags.join(" ")),enabled:t.tags.length>0},{label:l,action:()=>this.props.onViewCommitOnGitHub?.(t.sha),enabled:!n&&!!c}),u}canCherryPick(){const{onCherryPick:e,isMultiCommitOperationInProgress:t}=this.props;return void 0!==e&&!1===t}canReorder=()=>void 0!==this.props.onKeyboardReorder&&!1===this.props.disableReordering&&!1===this.props.isMultiCommitOperationInProgress;canSquash(){const{onSquash:e,disableSquashing:t,isMultiCommitOperationInProgress:n}=this.props;return void 0!==e&&!1===t&&!1===n}getDeleteTagsMenuItem(e){const{onDeleteTag:t}=this.props,n=this.getUnpushedTags(e);if(void 0===t||void 0===n||0===e.tags.length)return null;if(1===e.tags.length){const r=e.tags[0];return{label:`删除标签 ${r}`,action:()=>t(r),enabled:n.includes(r)}}const r=new Set(n);return{label:"删除标签…",submenu:e.tags.map((e=>({label:e,action:()=>t(e),enabled:r.has(e)})))}}getContextMenuMultipleCommits(e){const t=this.props.selectedSHAs.length;return[{label:`Cherry-pick ${t} commits…`,action:()=>this.props.onCherryPick?.(this.selectedCommits),enabled:this.canCherryPick()},{label:`Squash ${t} commits…`,action:()=>this.onSquash(this.selectedCommits,e,!0),enabled:this.canSquash()},{label:`Reorder ${t} commits…`,action:()=>this.props.onKeyboardReorder?.(this.selectedCommits),enabled:this.canReorder()}]}onKeyboardInsertionIndexPathChanged=e=>{this.updateKeyboardReorderingMessage(e)};onConfirmKeyboardReorder=(e,t)=>{this.onDropDataInsertion(e.row,t)};onDropDataInsertion=(e,t)=>{if(void 0===this.props.onDropCommitInsertion||t.type!==_p.Commit)return;const n=0===e?null:e-1;if(0===this.props.commitSHAs.length||null!==n&&n>this.props.commitSHAs.length)return;const r=null===n?null:this.props.commitSHAs[n],s=null!==r?this.props.commitLookup.get(r):null,i=t.commits.filter((e=>null!=e)).map((e=>this.props.commitSHAs.findIndex((t=>t===e.sha)))).sort(),o=i.every(((e,t,n)=>t===n.length-1||e===n[t+1]-1));if(o){const e=i[0],t=null===n&&0===e||n===e-1,r=null!==n&&-1!==i.indexOf(n);if(t||r)return}const a=i.concat(null!==n?[n]:[]);this.props.onDropCommitInsertion(s??null,t.commits,this.getLastRetainedCommitRef(a))}}function sL(e){return`${e.sha} ${e.tags}`}function iL(e){return e.map(sL).join(" ")}var oL;!function(e){e[e.Unreachable=0]="Unreachable",e[e.Reachable=1]="Reachable"}(oL||(oL={}));class aL extends ke.Component{constructor(e){super(e),this.state={selectedTab:e.selectedTab,selectedSHAs:[]}}componentWillUpdate(e){const t=this.props.selectedTab,n=e.selectedTab;t!==n&&this.setState({selectedTab:n})}onTabClicked=e=>{this.setState({selectedTab:e})};getShasToDisplay=()=>{const{selectedTab:e}=this.state,{shasInDiff:t,selectedShas:n}=this.props;return e===oL.Reachable?t:n.filter((e=>!t.includes(e)))};onCommitsSelected=(e,t)=>{this.setState({selectedSHAs:e.map((e=>e.sha))})};renderTabs(){return ke.createElement(LM,{onTabClicked:this.onTabClicked,selectedIndex:this.state.selectedTab},ke.createElement("span",null,"Unreachable"),ke.createElement("span",null,"Reachable"))}renderActiveTab(){const{commitLookup:e,emoji:t}=this.props;return ke.createElement(ke.Fragment,null,this.renderUnreachableCommitsMessage(),ke.createElement("div",{className:"unreachable-commit-list"},ke.createElement(rL,{gitHubRepository:null,isLocalRepository:!0,commitLookup:e,commitSHAs:this.getShasToDisplay(),selectedSHAs:this.state.selectedSHAs,localCommitSHAs:[],emoji:t,onCommitsSelected:this.onCommitsSelected,accounts:this.props.accounts,isInformationalView:!0})))}renderFooter(){return ke.createElement(xM,null,ke.createElement(DM,{cancelButtonVisible:!1}))}renderUnreachableCommitsMessage=()=>{const e=this.getShasToDisplay().length,t=e>1?"commits":"commit",n=e>1?"they're":"it's";return ke.createElement("div",{className:"message"},"You will"," ",this.state.selectedTab===oL.Unreachable?"not":""," ","see changes from the following ",t," because"," ",n," ",this.state.selectedTab===oL.Unreachable?"not":""," ","in the ancestry path of the 最近提交 in your selection."," ",ke.createElement(sM,{uri:"https://github.com/desktop/desktop/blob/development/docs/learn-more/unreachable-commits.md"},"Learn more about unreachable commits."))};render(){return ke.createElement(AM,{className:"unreachable-commits",title:"提交可达性",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},this.renderTabs(),this.renderActiveTab(),this.renderFooter())}}function lL(e,t){const{emoji:n,repository:r,selectedCommits:s}=t,i=new iP(n,r),{summary:o,body:a}=function(e,t,n,r=72){const s=n.tokenize(e.trimRight()),i=new Array,o=new Array;let a=r;for(const e of s){const t=e.kind===rP.Emoji?2:e.text.length;if(a<=0)o.push(e);else if(a>=t)i.push(e),a-=t;else{if(e.kind===rP.Text)i.push(aP(e.text.substring(0,a))),o.push(aP(e.text.substring(a)));else if(e.kind===rP.Emoji)o.push(e);else{if(e.kind!==rP.Link)return at(0,"Unknown token type");!e.text.startsWith("#")&&a>5?(i.push(lP(e.text.substring(0,a),e.text)),o.push(lP(e.text.substring(a),e.text))):o.push(e)}a=0}}let l=n.tokenize(t.trimRight());return o.length>0&&(i.push(oP()),l=l.length>0?[oP(),...o,aP("\n\n"),...l]:[oP(),...o]),{summary:i,body:l}}(function(e){return 0===e[0].summary.length?"Empty commit message":e[0].summary}(s),s[0].body,i),l=1===s.length&&0===s[0].summary.length,c=s.flatMap((e=>aM(r.gitHubRepository,e))),u=QO()(c,((e,t)=>e.email===t.email&&e.name===t.name));return{isOverflowed:e,summary:o,body:a,avatarUsers:u,hasEmptySummary:l}}class cL extends ke.Component{descriptionScrollViewRef=null;resizeObserver=null;updateOverflowTimeoutId=null;getCountCommitsNotInDiff=xr(((e,t)=>{if(1===e.length)return 0;{const n=new Set(t);return e.reduce(((e,t)=>e+(n.has(t.sha)?0:1)),0)}}));constructor(e){super(e),this.state=lL(!1,e);const t=window.ResizeObserver;t&&(this.resizeObserver=new t((e=>{for(const t of e)t.target===this.descriptionScrollViewRef&&(null!==this.updateOverflowTimeoutId&&clearImmediate(this.updateOverflowTimeoutId),this.updateOverflowTimeoutId=setImmediate(this.onResized))})))}onResized=()=>{this.props.isExpanded||this.updateOverflow()};onDescriptionScrollViewRef=e=>{this.descriptionScrollViewRef=e,this.resizeObserver&&(this.resizeObserver.disconnect(),e?this.resizeObserver.observe(e):this.setState({isOverflowed:!1}))};renderExpander(){const{selectedCommits:e,isExpanded:t}=this.props;return e.length>1?null:ke.createElement(Ss,{onClick:t?this.onCollapse:this.onExpand,className:"expander",tooltip:t?"Collapse":"Expand",applyTooltipAriaDescribedBy:!1,ariaExpanded:t,ariaLabel:t?"Collapse commit details":"Expand commit details",ariaControls:"expandable-commit-summary"},ke.createElement(Rs,{symbol:t?Qo:du}))}onExpand=()=>{this.props.onExpandChanged(!0)};onCollapse=()=>{this.descriptionScrollViewRef&&(this.descriptionScrollViewRef.scrollTop=0),this.props.onExpandChanged(!1)};updateOverflow(){const e=this.descriptionScrollViewRef;e?this.setState({isOverflowed:e.scrollHeight>e.offsetHeight}):this.state.isOverflowed&&this.setState({isOverflowed:!1})}componentDidMount(){this.props.isExpanded||this.updateOverflow()}componentWillUpdate(e){e.selectedCommits.length===this.props.selectedCommits.length&&e.selectedCommits.every(((e,t)=>function(e,t){return e.summary===t.summary&&e.body===t.body}(e,this.props.selectedCommits[t])))||this.setState(lL(!1,e))}componentDidUpdate(e,t){this.props.isExpanded?this.state.isOverflowed&&this.setState({isOverflowed:!1}):(t.body!==this.state.body||e.isExpanded)&&this.updateOverflow()}renderDescription(){if(0===this.state.body.length||this.props.selectedCommits.length>1)return null;const e=hs()("ecs-description",{overflowed:this.state.isOverflowed});return ke.createElement("div",{className:e},ke.createElement("div",{className:"ecs-description-scroll-view",ref:this.onDescriptionScrollViewRef},ke.createElement(WI,{className:"ecs-description-text selectable",emoji:this.props.emoji,repository:this.props.repository,text:this.state.body})))}onHighlightShasInDiff=()=>{this.props.onHighlightShas(this.props.shasInDiff)};onHighlightShasNotInDiff=()=>{const{onHighlightShas:e,selectedCommits:t,shasInDiff:n}=this.props;e(t.filter((e=>!n.includes(e.sha))).map((e=>e.sha)))};onRemoveHighlightOfShas=()=>{this.props.onHighlightShas([])};showUnreachableCommits=()=>{this.props.showUnreachableCommits(oL.Unreachable)};showReachableCommits=()=>{this.props.showUnreachableCommits(oL.Reachable)};renderCommitsNotReachable=()=>{const{selectedCommits:e,shasInDiff:t}=this.props;if(1===e.length)return;const n=this.getCountCommitsNotInDiff(e,t);if(0===n)return;const r=n>1?"commits":"commit";return ke.createElement("div",{className:"commit-unreachable-info"},ke.createElement(Rs,{symbol:Da}),ke.createElement(sM,{onClick:this.showUnreachableCommits,onMouseOver:this.onHighlightShasNotInDiff,onMouseOut:this.onRemoveHighlightOfShas},n," unreachable ",r)," ","not included.")};renderExpandedAuthor(e){return e?e.name?ke.createElement(ke.Fragment,null,e.name," <",e.email,">"):e.email:"Unknown user"}renderAuthorList=()=>this.state.avatarUsers.map(((e,t)=>ke.createElement("div",{className:"author selectable",key:t},ke.createElement(CM,{accounts:this.props.accounts,user:e,title:null}),ke.createElement("div",null,this.renderExpandedAuthor(e)))));renderAuthorStack=()=>{const{selectedCommits:e,repository:t,accounts:n}=this.props,{avatarUsers:r}=this.state;return ke.createElement(ke.Fragment,null,ke.createElement(KO,{users:r,accounts:n}),ke.createElement(YO,{gitHubRepository:t.gitHubRepository,commits:e}))};renderAuthors=()=>{const{selectedCommits:e,isExpanded:t}=this.props;if(!(e.length>1))return ke.createElement("div",{className:"ecs-meta-item authors"},t?this.renderAuthorList():this.renderAuthorStack())};renderCommitRef=()=>{const{selectedCommits:e,isExpanded:t}=this.props;if(e.length>1)return;const{shortSha:n,sha:r}=e[0];return ke.createElement("div",{className:"ecs-meta-item commit-ref"},ke.createElement(Rs,{symbol:sa}),ke.createElement("div",{className:"ref selectable"},t?r:n),ke.createElement(II,{ariaLabel:"Copy the full SHA",copyContent:r}))};renderSummaryText=()=>{const{selectedCommits:e,shasInDiff:t}=this.props,{summary:n}=this.state;if(1===e.length)return ke.createElement(WI,{emoji:this.props.emoji,repository:this.props.repository,className:"selectable",text:n});const r=this.getCountCommitsNotInDiff(e,t),s=e.length-r,i=s>1?"commits":"commit";return ke.createElement(ke.Fragment,null,"Showing changes from"," ",r>0?ke.createElement(sM,{className:"commits-in-diff",onMouseOver:this.onHighlightShasInDiff,onMouseOut:this.onRemoveHighlightOfShas,onClick:this.showReachableCommits},s," ",i):ke.createElement(ke.Fragment,null," ",s," ",i))};renderSummary=()=>{const{hasEmptySummary:e}=this.state,t=hs()("ecs-title",{"empty-summary":e});return ke.createElement("div",{className:t},this.renderSummaryText(),this.renderExpander())};renderMetaItems=()=>this.props.selectedCommits.length>1?null:ke.createElement("div",{className:"ecs-meta"},this.renderAuthors(),this.renderCommitRef(),this.renderLinesChanged(),this.renderTags());render(){const e=hs()({expanded:this.props.isExpanded});return ke.createElement("div",{id:"expandable-commit-summary",className:e},this.renderSummary(),ke.createElement("div",{className:"beneath-summary"},this.renderDescription(),this.renderMetaItems()),this.renderCommitsNotReachable())}renderLinesChanged(){const{changesetData:e,selectedCommits:t,isExpanded:n}=this.props,{linesAdded:r,linesDeleted:s}=e;return 0===r&&0===s||t.length>1?null:ke.createElement("div",{className:"ecs-meta-item lines-added-deleted"},n?ke.createElement(Rs,{symbol:Yi}):null,ke.createElement("div",{className:"lines-added"},n?ke.createElement(ke.Fragment,null,r," added lines"):ke.createElement(ke.Fragment,null,"+",r)),ke.createElement("div",{className:"lines-deleted"},n?ke.createElement(ke.Fragment,null,s," removed lines"):ke.createElement(ke.Fragment,null,"-",s)))}renderTags(){const{selectedCommits:e}=this.props;if(e.length>1)return;const t=e[0].tags;return 0!==t.length?ke.createElement("div",{className:"ecs-meta-item tags selectable"},ke.createElement(Rs,{symbol:jc}),ke.createElement("span",null,t.join(", "))):void 0}}class uL extends ke.Component{loadChangedFilesScheduler=new ZD(200);constructor(e){super(e),this.state={isExpanded:!1}}onFileSelected=e=>{this.props.dispatcher.changeFileSelection(this.props.repository,e)};onRowDoubleClick=e=>{const t=this.props.changesetData.files[e];this.props.onOpenInExternalEditor(t.path)};componentWillUpdate(e){const t=this.props.selectedCommits.map((e=>e.sha)).join(""),n=e.selectedCommits.map((e=>e.sha)).join("");t!==n&&this.state.isExpanded&&this.setState({isExpanded:!1})}componentWillUnmount(){this.loadChangedFilesScheduler.clear()}renderDiff(){const e=this.props.selectedFile,t=this.props.currentDiff;if(null==e){const e=0===this.props.changesetData.files.length?"":"No file selected";return ke.createElement("div",{className:"panel blankslate",id:"diff"},e)}return ke.createElement("div",{className:"diff-container"},this.renderDiffHeader(),ke.createElement(HI,{repository:this.props.repository,imageDiffType:this.props.selectedDiffType,file:e,diff:t,readOnly:!0,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,showDiffCheckMarks:!1,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:this.props.onOpenBinaryFile,onChangeImageDiffType:this.props.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onOpenSubmodule:this.props.onOpenSubmodule}))}renderDiffHeader(){const{selectedFile:e}=this.props;if(null===e)return null;const{path:t,status:n}=e;return ke.createElement(w_,{diff:this.props.currentDiff,path:t,status:n,showSideBySideDiff:this.props.showSideBySideDiff,onShowSideBySideDiffChanged:this.onShowSideBySideDiffChanged,hideWhitespaceInDiff:this.props.hideWhitespaceInDiff,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onDiffOptionsOpened:this.props.onDiffOptionsOpened})}renderCommitSummary(e){return ke.createElement(cL,{selectedCommits:e,shasInDiff:this.props.shasInDiff,changesetData:this.props.changesetData,emoji:this.props.emoji,repository:this.props.repository,onExpandChanged:this.onExpandChanged,isExpanded:this.state.isExpanded,onHighlightShas:this.onHighlightShas,showUnreachableCommits:this.showUnreachableCommits,accounts:this.props.accounts})}showUnreachableCommits=e=>{this.props.dispatcher.showUnreachableCommits(e)};onHighlightShas=e=>{this.props.dispatcher.updateShasToHighlight(this.props.repository,e)};onExpandChanged=e=>{this.setState({isExpanded:e})};onHideWhitespaceInDiffChanged=e=>this.props.dispatcher.onHideWhitespaceInHistoryDiffChanged(e,this.props.repository,this.props.selectedFile);onShowSideBySideDiffChanged=e=>{this.props.dispatcher.onShowSideBySideDiffChanged(e)};onCommitSummaryReset=()=>{this.props.dispatcher.resetCommitSummaryWidth()};onCommitSummaryResize=e=>{this.props.dispatcher.setCommitSummaryWidth(e)};renderFileList(){const e=this.props.changesetData.files;if(0===e.length)return ke.createElement("div",{className:"fill-window"},"No files in commit");const t=Oy(this.props.commitSummaryWidth)-1;return ke.createElement(ke.Fragment,null,this.renderFileHeader(),ke.createElement(EP,{files:e,onSelectedFileChanged:this.onFileSelected,selectedFile:this.props.selectedFile,availableWidth:t,onContextMenu:this.onContextMenu,onRowDoubleClick:this.onRowDoubleClick}))}renderFileHeader(){const e=this.props.changesetData.files.length,t=1===e?"文件":"文件";return ke.createElement("div",{className:"file-list-header"},e," changed ",t)}onOpenItem=e=>{YI(t.join(this.props.repository.path,e),this.props.dispatcher)};render(){const{selectedCommits:e,isContiguous:t}=this.props;if(e.length>1&&!t)return this.renderMultipleCommitsBlankSlate();if(0===e.length)return ke.createElement(hL,null);const n=this.state.isExpanded?"expanded":"collapsed",{commitSummaryWidth:r}=this.props;return ke.createElement("div",{id:"history",className:n},this.renderCommitSummary(e),ke.createElement("div",{className:"commit-details"},ke.createElement(UC,{width:r.value,minimumWidth:r.min,maximumWidth:r.max,onResize:this.onCommitSummaryResize,onReset:this.onCommitSummaryReset,description:"Selected commit file list"},this.renderFileList()),this.renderDiff()),this.renderDragOverlay())}renderDragOverlay(){return this.props.showDragOverlay?ke.createElement("div",{id:"drag-overlay-background"}):null}renderMultipleCommitsBlankSlate(){const e=Ft(__dirname,"static/empty-no-commit.svg");return ke.createElement("div",{id:"multiple-commits-selected",className:"blankslate"},ke.createElement("div",{className:"panel blankslate"},ke.createElement("img",{src:e,className:"blankslate-image",alt:""}),ke.createElement("div",null,ke.createElement("p",null,"无法显示差异,当选择多个 非连续性的 selected."),ke.createElement("div",null,"你可以:"),ke.createElement("ul",null,ke.createElement("li",null,"选择单个提交 或连续的提交范围。 以查看差异。"),ke.createElement("li",null,"将提交拖动到分支菜单中以挑选它们。"),ke.createElement("li",null,"将提交拖动到一起以压缩它们或重新排序。"),ke.createElement("li",null,"右键单击多个提交以查看选项。")))),this.renderDragOverlay())}onContextMenu=async(e,n)=>{n.preventDefault();const{selectedCommits:r,localCommitSHAs:s,repository:i,externalEditorLabel:o}=this.props,a=t.join(i.path,e.path),l=await k(a);if(!l)return void Ch([{label:"文件不存在于磁盘上",enabled:!1}]);const c=Mh(t.extname(e.path)),u=[{label:Th,action:()=>ht(i,e.path),enabled:l},{label:o?`打开于 ${o}`:Ah,action:()=>this.props.onOpenInExternalEditor(e.path),enabled:l},{label:Dh,action:()=>this.onOpenItem(e.path),enabled:c&&l},{type:"separator"},{label:kh,action:()=>m.clipboard.writeText(a)},{label:Rh,action:()=>m.clipboard.writeText(t.normalize(e.path))},{type:"separator"}];let h="在Github上查看";const p=i.gitHubRepository;p&&p.endpoint!==ar()&&(h="在Github上查看 Enterprise"),u.push({label:h,action:()=>this.onViewOnGitHub(r[0].sha,e),enabled:1===r.length&&!s.includes(r[0].sha)&&!!p&&this.props.selectedCommits.length>0}),Ch(u)};onViewOnGitHub=(e,t)=>{this.props.onViewCommitOnGitHub(e,t.path)}}function hL(){const e=Ft(__dirname,"static/empty-no-commit.svg");return ke.createElement("div",{className:"panel blankslate"},ke.createElement("img",{src:e,className:"blankslate-image",alt:""}),"未选择提交")}const pL="genericGitAuth/username/";function dL(e){return`${pL}${e}`}function mL(e,t){const n=dL(e);return localStorage.setItem(n,t)}function fL(e,t,n){const r=Xp(e);return ST.setItem(r,t,n)}var gL=n(6200);const yL="/usr/local/bin/github",wL=t.resolve(__dirname,"static","github.sh");async function bL(e){await function(e){return e?new Promise(((e,t)=>{gL.unlink(yL,(n=>{null===n?e():t(new Error(`Failed to remove file at ${yL}. Authorization of GitHub Desktop Helper is required.`))}))})):(0,w.unlink)(yL)}(e),await function(e){const n=t.dirname(yL);return e?new Promise(((e,t)=>{gL.makeTree(n,(n=>{null===n?e():t(new Error(`Failed to create intermediate directories to ${yL}`))}))})):(0,w.mkdir)(n,{recursive:!0})}(e),await function(e){return e?new Promise(((e,t)=>{gL.symlink(wL,yL,(n=>{null===n?e():t(new Error(`Failed to symlink ${wL} to ${yL}`))}))})):(0,w.symlink)(wL,yL)}(e)}function CL(e){return e instanceof mt?e:null}function vL(e){return e instanceof Gd?e:null}async function SL(e,t){const n=CL(e)||e;return await t.presentError(n),null}const EL=/^ ! \[remote rejected\] .*? -> .*? \(refusing to allow an OAuth App to create or update workflow `(.*?)` without `workflow` scope\)/m,kL=/`([^']+)' organization has enabled or enforced SAML SSO.*?you must re-authorize/s;function RL(e){return e.split(/\r?\n/).filter((e=>e.startsWith("remote: "))).map((e=>e.substring(8))).join("\n")}class AL extends ke.Component{static getDerivedStateFromProps(e,t){const{repository:n,aheadBehindStore:r}=e,s=e.currentBranch?.tip.sha,i=e.branch.tip.sha;return s===t.comparisonFrom&&i===t.comparisonTo?null:void 0===s||void 0===i?{aheadBehind:void 0,comparisonFrom:s,comparisonTo:i}:{aheadBehind:r.tryGetAheadBehind(n,s,i),comparisonFrom:s,comparisonTo:i}}aheadBehindSubscription=null;constructor(e){super(e),this.state={}}componentDidMount(){void 0===this.state.aheadBehind&&this.subscribeToAheadBehindStore()}componentDidUpdate(e,t){const{comparisonFrom:n,comparisonTo:r}=this.state;t.comparisonFrom===n&&t.comparisonTo===r||this.subscribeToAheadBehindStore()}componentWillUnmount(){this.unsubscribeFromAheadBehindStore()}subscribeToAheadBehindStore(){const{aheadBehindStore:e,repository:t}=this.props,{comparisonFrom:n,comparisonTo:r,aheadBehind:s}=this.state;this.unsubscribeFromAheadBehindStore(),void 0!==n&&void 0!==r&&void 0===s&&(this.aheadBehindSubscription=e.getAheadBehind(t,n,r,(e=>this.setState({aheadBehind:e}))))}unsubscribeFromAheadBehindStore(){null!==this.aheadBehindSubscription&&this.aheadBehindSubscription.dispose()}render(){const{currentBranch:e,branch:t}=this.props,{aheadBehind:n}=this.state,r=t.name===e?.name?ii:ra,s=n?ke.createElement("div",{className:"branch-commit-counter"},ke.createElement("span",{className:"branch-commit-counter-item"},n.behind,ke.createElement(Rs,{className:"icon",symbol:_s})),ke.createElement("span",{className:"branch-commit-counter-item"},n.ahead,ke.createElement(Rs,{className:"icon",symbol:Hs}))):null;return ke.createElement("div",{className:"branches-list-item"},ke.createElement(Rs,{className:"icon",symbol:r}),ke.createElement(lh,{className:"name",tooltip:t.name,onlyWhenOverflowed:!0,tagName:"div"},ke.createElement(ah,{text:t.name,highlight:this.props.matches.title})),s)}}class TL extends ke.Component{constructor(e){super(e),this.state={isFocused:!1}}render(){const e=hs()("fancy-text-box-component",this.props.className,{disabled:this.props.disabled},{focused:this.state.isFocused}),t=hs()("fancy-octicon");return ke.createElement("div",{className:e},ke.createElement(Rs,{className:t,symbol:this.props.symbol}),ke.createElement(nx,{ariaLabel:this.props.ariaLabel,value:this.props.value,onFocus:this.onFocus,onBlur:this.onBlur,autoFocus:this.props.autoFocus,disabled:this.props.disabled,type:this.props.type,placeholder:this.props.placeholder,displayClearButton:this.props.displayClearButton,onKeyDown:this.props.onKeyDown,onValueChanged:this.props.onValueChanged,onSearchCleared:this.props.onSearchCleared,tabIndex:this.props.tabIndex,ref:this.props.onRef}))}onFocus=()=>{void 0!==this.props.onFocus&&this.props.onFocus(),this.setState({isFocused:!0})};onBlur=e=>{void 0!==this.props.onBlur&&this.props.onBlur(e),this.setState({isFocused:!1})}}class xL extends ke.Component{render(){const{status:e,classNamePrefix:t}=this.props;if(null===e)return null;const{kind:n}=e,r=`${t}-icon-container`;return ke.createElement("div",{className:r},ke.createElement(Rs,{className:hs()(t,`${t}-${n}`,this.props.className),symbol:DL(n)}))}}function DL(e){switch(e){case Rb.Loading:return oo;case Rb.Conflicts:return xs;case Rb.Invalid:return Ru;case Rb.Clean:return ii;default:return at(0,`Unknown state: ${JSON.stringify(e)}`)}}async function ML(e,t,n,r){const s=e.name;r({kind:Rb.Loading});const i=await $w((()=>yy(n,t.tip.sha,e.tip.sha)),500),o=await $w((()=>yy(n,e.tip.sha,t.tip.sha)),500);s===e.name?r(null!==i?{kind:Rb.Clean,commitsAhead:o??[],commitsBehind:i}:{kind:Rb.Invalid}):r(null)}class PL extends ke.Component{get computedAction(){return"Rebase"===this.state.selectedOperation?null!==this.state.rebasePreview?this.state.rebasePreview.kind:null:null!==this.props.mergeStatus?this.props.mergeStatus.kind:null}get commitCount(){const{selectedOperation:e,rebasePreview:t}=this.state;return"Rebase"===e?null!==t&&t.kind===Rb.Clean?t.commitsAhead.length:0:this.props.commitsBehind}constructor(e){super(e),this.state={selectedOperation:"Merge",rebasePreview:null}}isUpdateBranchDisabled(){if(this.commitCount<=0)return!0;const{selectedOperation:e,rebasePreview:t}=this.state;return"Rebase"===e?null===t||t.kind!==Rb.Clean:null!=this.props.mergeStatus&&this.props.mergeStatus.kind===Rb.Invalid}updateRebasePreview=async e=>{const{currentBranch:t,repository:n}=this.props;ML(e,t,n,(e=>{this.setState({rebasePreview:e})}))};onOperationChange=e=>{nC(e.id)&&(this.setState({selectedOperation:e.id}),"Rebase"===e.id&&this.updateRebasePreview(this.props.comparisonBranch))};onOperationInvoked=async(e,t)=>{if(!nC(t.id))return;e.preventDefault();const{dispatcher:n,repository:r}=this.props;await this.dispatchOperation(t.id),n.executeCompare(r,{kind:tt.History}),n.updateCompareForm(r,{showBranchList:!1,filterText:""})};async dispatchOperation(e){const{dispatcher:t,currentBranch:n,comparisonBranch:r,repository:s,mergeStatus:i}=this.props;if("Rebase"===e){const e=null!==this.state.rebasePreview&&this.state.rebasePreview.kind===Rb.Clean?this.state.rebasePreview.commitsAhead:[];return t.startRebase(s,r,n,e)}const o="Squash"===e;return t.initializeMultiCommitOperation(s,{kind:"Merge",isSquash:o,sourceBranch:r},n,[],n.tip.sha),t.incrementMetric("mergesInitiatedFromComparison"),t.mergeBranch(s,r,i,o)}render(){const e=this.isUpdateBranchDisabled(),t=this.commitCount>0?this.renderMergeStatus():null;return ke.createElement("div",{className:"merge-cta"},t,ke.createElement(HO,{checkedOption:this.state.selectedOperation,options:[{label:"创建合并提交",description:"来自所选分支的提交将通过合并提交添加到当前分支.",id:"Merge"},{label:"压缩合并",description:"选定分支中的提交将合并为当前分支中的一个提交.",id:"Squash"},{label:"变基",description:"来自所选分支的提交将重新设置基础并添加到当前分支.",id:"Rebase"}],dropdownAriaLabel:"Merge options",disabled:e,onCheckedOptionChange:this.onOperationChange,onSubmit:this.onOperationInvoked}))}renderMergeStatus(){return null===this.computedAction?null:ke.createElement("div",{className:"merge-status-component"},ke.createElement(xL,{status:{kind:this.computedAction},classNamePrefix:"merge-status"}),this.renderStatusDetails())}renderStatusDetails(){const{currentBranch:e,comparisonBranch:t,mergeStatus:n}=this.props,{selectedOperation:r}=this.state;if(null===this.computedAction)return null;switch(this.computedAction){case Rb.Loading:return this.renderLoadingMessage();case Rb.Clean:return this.renderCleanMessage(e,t);case Rb.Invalid:return this.renderInvalidMessage()}return"Rebase"!==r&&null!==n&&n.kind===Rb.Conflicts?this.renderConflictedMergeMessage(e,t,n.conflictedFiles):null}renderLoadingMessage(){return ke.createElement("div",{className:"merge-message merge-message-loading"},"Checking for ability to ",this.state.selectedOperation.toLowerCase()," ","automatically…")}renderCleanMessage(e,t){if(this.commitCount<=0)return null;const n=1===this.commitCount?"commit":"commits";return"Rebase"===this.state.selectedOperation?ke.createElement("div",{className:"merge-message"},"This will update ",ke.createElement("strong",null,e.name)," by applying its ",ke.createElement("strong",null,`${this.commitCount} ${n}`)," on top of ",ke.createElement("strong",null,t.name)):ke.createElement("div",{className:"merge-message"},"这将合并",ke.createElement("strong",null,` ${this.commitCount} ${n}`)," 自 ",ke.createElement("strong",null,t.name)," 到 ",ke.createElement("strong",null,e.name))}renderInvalidMessage(){return"Rebase"===this.state.selectedOperation?ke.createElement("div",{className:"merge-message"},"Unable to start rebase. Check you have chosen a valid branch."):ke.createElement("div",{className:"merge-message"},"无法在此仓库中合并不相关的历史记录")}renderConflictedMergeMessage(e,t,n){const r=1===n?"文件":"文件";return ke.createElement("div",{className:"merge-message"},"这将会",ke.createElement("strong",null,` ${n} 与 ${r} 冲突`)," 当合并时 ",ke.createElement("strong",null,t.name)," 到 ",ke.createElement("strong",null,e.name))}}class IL extends ke.Component{textbox=null;loadChangedFilesScheduler=new ZD(200);branchList=null;commitListRef=ke.createRef();loadingMoreCommitsPromise=null;resultCount=0;constructor(e){super(e),this.state={focusedBranch:null}}componentWillReceiveProps(e){const t=e.compareState.formState,n=this.props.compareState.formState;if(t.kind===n.kind||t.kind!==tt.History){if(t.kind!==tt.History&&n.kind!==tt.History){const e=n.comparisonBranch,r=t.comparisonBranch;e.name!==r.name&&this.setState({focusedBranch:r})}}else this.setState({focusedBranch:null})}componentDidUpdate(e){const{showBranchList:t}=this.props.compareState;t!==e.compareState.showBranchList&&null!==this.textbox&&(t?this.textbox.focus():t||this.textbox.blur())}focusHistory(){this.commitListRef.current?.focus()}componentWillMount(){this.props.dispatcher.initializeCompare(this.props.repository)}componentWillUnmount(){this.textbox=null,this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})}render(){const{branches:e,filterText:t,showBranchList:n}=this.props.compareState,r=function(e){const{branches:t,formState:n}=e;return t.some((e=>!e.isDesktopForkRemoteBranch))?n.kind===tt.History?"Select branch to compare…":void 0:"没有分支"}(this.props.compareState);return ke.createElement("div",{id:"compare-view",role:"tabpanel","aria-labelledby":"history-tab"},ke.createElement("div",{className:"compare-form"},ke.createElement(TL,{ariaLabel:"Branch filter",symbol:ra,displayClearButton:!0,placeholder:r,onFocus:this.onTextBoxFocused,value:t,disabled:!e.some((e=>!e.isDesktopForkRemoteBranch)),onRef:this.onTextBoxRef,onValueChanged:this.onBranchFilterTextChanged,onKeyDown:this.onBranchFilterKeyDown,onSearchCleared:this.handleEscape})),n?this.renderFilterList():this.renderCommits())}onBranchesListRef=e=>{this.branchList=e};renderCommits(){const e=this.props.compareState.formState;return ke.createElement("div",{className:"compare-commit-list"},e.kind===tt.History?this.renderCommitList():this.renderTabBar(e))}filterListResultsChanged=e=>{this.resultCount=e};viewHistoryForBranch=()=>{this.props.dispatcher.executeCompare(this.props.repository,{kind:tt.History}),this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})};renderCommitList(){const{formState:e,commitSHAs:t}=this.props.compareState;let n;if(e.kind===tt.History)n="无记录";else{const t=e.comparisonBranch.name;n=e.comparisonMode===nt.Ahead?ke.createElement("p",null,"比较的分支 (",ke.createElement(UM,null,t),") 是您分支的最新信息"):ke.createElement("p",null,"您的分支与比较的分支是最新的 (",ke.createElement(UM,null,t),")")}return ke.createElement(rL,{ref:this.commitListRef,gitHubRepository:this.props.repository.gitHubRepository,isLocalRepository:this.props.isLocalRepository,commitLookup:this.props.commitLookup,commitSHAs:t,selectedSHAs:this.props.selectedCommitShas,shasToHighlight:this.props.shasToHighlight,localCommitSHAs:this.props.localCommitSHAs,canResetToCommits:e.kind===tt.History,canUndoCommits:e.kind===tt.History,canAmendCommits:e.kind===tt.History,emoji:this.props.emoji,reorderingEnabled:e.kind===tt.History,onViewCommitOnGitHub:this.props.onViewCommitOnGitHub,onUndoCommit:this.onUndoCommit,onResetToCommit:this.onResetToCommit,onRevertCommit:_L(this.props.compareState.formState)?this.props.onRevertCommit:void 0,onAmendCommit:this.props.onAmendCommit,onCommitsSelected:this.onCommitsSelected,onScroll:this.onScroll,onCreateBranch:this.onCreateBranch,onCheckoutCommit:this.onCheckoutCommit,onCreateTag:this.onCreateTag,onDeleteTag:this.onDeleteTag,onCherryPick:this.onCherryPick,onDropCommitInsertion:this.onDropCommitInsertion,onKeyboardReorder:this.onKeyboardReorder,onCancelKeyboardReorder:this.onCancelKeyboardReorder,onSquash:this.onSquash,emptyListMessage:n,onCompareListScrolled:this.props.onCompareListScrolled,compareListScrollTop:this.props.compareListScrollTop,tagsToPush:this.props.tagsToPush??[],onRenderCommitDragElement:this.onRenderCommitDragElement,onRemoveCommitDragElement:this.onRemoveCommitDragElement,disableReordering:e.kind===tt.Compare,disableSquashing:e.kind===tt.Compare,isMultiCommitOperationInProgress:this.props.isMultiCommitOperationInProgress,keyboardReorderData:this.state.keyboardReorderData,accounts:this.props.accounts})}onCancelKeyboardReorder=()=>{this.setState({keyboardReorderData:void 0})};onDropCommitInsertion=async(e,t,n)=>{if(this.setState({keyboardReorderData:void 0}),!await by(this.props.repository,n))return this.props.dispatcher.reorderCommits(this.props.repository,t,e,n);SL(new Error("Unable to reorder. Reordering replays all commits up to the last one required for the reorder. A merge commit cannot exist among those commits."),this.props.dispatcher)};onRenderCommitDragElement=(e,t)=>{this.props.dispatcher.setDragElement({type:_p.Commit,commit:e,selectedCommits:t,gitHubRepository:this.props.repository.gitHubRepository})};onRemoveCommitDragElement=()=>{this.props.dispatcher.clearDragElement()};renderActiveTab(e){return ke.createElement("div",{className:"compare-commit-list"},this.renderCommitList(),e.comparisonMode===nt.Behind?this.renderMergeCallToAction(e):null)}renderFilterList(){const{defaultBranch:e,branches:t,recentBranches:n,filterText:r}=this.props.compareState;return ke.createElement(z_,{repository:this.props.repository,ref:this.onBranchesListRef,defaultBranch:e,currentBranch:this.props.currentBranch,allBranches:t,recentBranches:n,filterText:r,textbox:this.textbox,selectedBranch:this.state.focusedBranch,canCreateNewBranch:!1,onSelectionChanged:this.onSelectionChanged,onItemClick:this.onBranchItemClicked,onFilterTextChanged:this.onBranchFilterTextChanged,renderBranch:this.renderCompareBranchListItem,getBranchAriaLabel:this.getBranchAriaLabel,onFilterListResultsChanged:this.filterListResultsChanged})}renderMergeCallToAction(e){return null==this.props.currentBranch?null:ke.createElement(PL,{repository:this.props.repository,dispatcher:this.props.dispatcher,mergeStatus:this.props.compareState.mergeStatus,currentBranch:this.props.currentBranch,comparisonBranch:e.comparisonBranch,commitsBehind:e.aheadBehind.behind})}onTabClicked=e=>{const t=this.props.compareState.formState;if(t.kind===tt.History)return;const n=0===e?nt.Behind:nt.Ahead,r=t.comparisonBranch;this.props.dispatcher.executeCompare(this.props.repository,{kind:tt.Compare,branch:r,comparisonMode:n})};renderTabBar(e){const t=e.comparisonMode===nt.Behind?0:1;return ke.createElement("div",{className:"compare-content"},ke.createElement(LM,{selectedIndex:t,onTabClicked:this.onTabClicked},ke.createElement("span",null,`Behind (${e.aheadBehind.behind})`),ke.createElement("span",null,`Ahead (${e.aheadBehind.ahead})`)),this.renderActiveTab(e))}renderCompareBranchListItem=(e,t)=>ke.createElement(AL,{branch:e.branch,currentBranch:this.props.currentBranch,matches:t,repository:this.props.repository,aheadBehindStore:this.props.aheadBehindStore});getBranchAriaLabel=e=>e.branch.name;onBranchFilterKeyDown=e=>{const t=e.key;if("Enter"===t){if(0===this.resultCount)return void e.preventDefault();const t=this.state.focusedBranch;null===t?this.viewHistoryForBranch():(this.props.dispatcher.executeCompare(this.props.repository,{kind:tt.Compare,comparisonMode:nt.Behind,branch:t}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:t.name})),this.textbox&&this.textbox.blur()}else"Escape"===t?this.handleEscape():"ArrowDown"===t?null!==this.branchList&&this.branchList.selectNextItem(!0,"down"):"ArrowUp"===t&&null!==this.branchList&&this.branchList.selectNextItem(!0,"up")};handleEscape=()=>{this.clearFilterState(),this.textbox&&this.textbox.blur()};onCommitsSelected=(e,t)=>{this.props.dispatcher.changeCommitSelection(this.props.repository,e.map((e=>e.sha)),t),this.loadChangedFilesScheduler.queue((()=>{this.props.dispatcher.loadChangedFilesForCurrentSelection(this.props.repository)}))};onScroll=(e,t)=>{const n=this.props.compareState;if(n.formState.kind!==tt.Compare&&n.commitSHAs.length-t<=10){if(null!=this.loadingMoreCommitsPromise)return;this.loadingMoreCommitsPromise=this.props.dispatcher.loadNextCommitBatch(this.props.repository).then((()=>{window.setTimeout((()=>{this.loadingMoreCommitsPromise=null}),500)}))}};onBranchFilterTextChanged=e=>{0===e.length&&this.setState({focusedBranch:null}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:e})};clearFilterState=()=>{this.setState({focusedBranch:null}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:""}),this.viewHistoryForBranch()};onBranchItemClicked=e=>{this.props.dispatcher.executeCompare(this.props.repository,{kind:tt.Compare,comparisonMode:nt.Behind,branch:e}),this.setState({focusedBranch:null}),this.props.dispatcher.updateCompareForm(this.props.repository,{filterText:e.name,showBranchList:!1})};onSelectionChanged=(e,t)=>{this.setState({focusedBranch:e})};onTextBoxFocused=()=>{this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!0})};onTextBoxRef=e=>{this.textbox=e};onCreateTag=e=>{this.props.dispatcher.showCreateTagDialog(this.props.repository,e,this.props.localTags)};onUndoCommit=e=>{this.props.dispatcher.undoCommit(this.props.repository,e)};onResetToCommit=e=>{this.props.dispatcher.resetToCommit(this.props.repository,e)};onCreateBranch=e=>{const{repository:t,dispatcher:n}=this.props;n.showPopup({type:Sh.CreateBranch,repository:t,targetCommit:e})};onCheckoutCommit=e=>{const{repository:t,dispatcher:n,askForConfirmationOnCheckoutCommit:r}=this.props;r?n.showPopup({type:Sh.ConfirmCheckoutCommit,commit:e,repository:t}):n.checkoutCommit(t,e)};onDeleteTag=e=>{this.props.dispatcher.showDeleteTagDialog(this.props.repository,e)};onCherryPick=e=>{this.props.onCherryPick(this.props.repository,e)};onKeyboardReorder=e=>{const{commitSHAs:t}=this.props.compareState;this.setState({keyboardReorderData:{type:_p.Commit,commits:e,itemIndices:e.map((e=>t.indexOf(e.sha)))}})};onSquash=async(e,t,n,r)=>{const s=e.filter((e=>e.sha!==t.sha)),i=[...s,t],o=function(e){const t=e.flatMap((e=>e.coAuthors)),n=QO()(t,((e,t)=>e.email===t.email&&e.name===t.name));return n.map((e=>({kind:"known",name:e.name,email:e.email,username:null})))}(i),a=function(e,t){const n=e.map((e=>`${e.summary.trim()}\n\n${e.bodyNoCoAuthors.trim()}`)),r=[t.bodyNoCoAuthors.trim(),...n].filter((e=>""!==e.trim()));return r.join("\n\n")}(s,t);await by(this.props.repository,n)?SL(new Error("Unable to squash. Squashing replays all commits up to the last one required for the squash. A merge commit cannot exist among those commits."),this.props.dispatcher):(this.props.dispatcher.recordSquashInvoked(r),this.props.dispatcher.showPopup({type:Sh.CommitMessage,repository:this.props.repository,coAuthors:o,showCoAuthoredBy:o.length>0,commitMessage:{summary:t.summary,description:a,timestamp:Date.now()},dialogTitle:`Squash ${i.length} Commits`,dialogButtonText:`Squash ${i.length} Commits`,prepopulateCommitSummary:!0,onSubmitCommitMessage:async e=>(this.props.dispatcher.closePopup(Sh.CommitMessage),this.props.dispatcher.squash(this.props.repository,s,t,n,e),!0)}))}}function _L(e){return e.kind===tt.History||e.comparisonMode===nt.Ahead}class FL extends ke.Component{render(){return ke.createElement("li",{key:this.props.sectionId},ke.createElement("details",{name:"tutorial-step",open:this.props.sectionId===this.props.currentlyOpenSectionId,onToggle:this.onToggle},this.renderSummary(),ke.createElement("div",{className:"contents"},this.props.children)))}onToggle=e=>{"open"===e.nativeEvent.newState&&this.props.onSummaryClick(this.props.sectionId)};renderSummary=()=>{const e=void 0!==this.props.skipLinkButton&&this.props.currentlyOpenSectionId===this.props.sectionId&&this.props.isNextStepTodo(this.props.sectionId);return ke.createElement("summary",null,this.renderTutorialStepIcon(),ke.createElement("span",{className:"summary-text"},this.props.summaryText),ke.createElement("span",{className:"hang-right"},e?this.props.skipLinkButton:ke.createElement(Rs,{symbol:ui})))};renderTutorialStepIcon(){if(this.props.isComplete(this.props.sectionId))return ke.createElement("div",{className:"green-circle"},ke.createElement(Rs,{symbol:ii}));const e=Pb.indexOf(this.props.sectionId)+1;return this.props.isNextStepTodo(this.props.sectionId)?ke.createElement("div",{className:"blue-circle"},e):ke.createElement("div",{className:"empty-circle"},e)}}const NL=Ft(__dirname,"static/required-status-check.svg");class OL extends ke.Component{constructor(e){super(e),this.state={currentlyOpenSectionId:this.props.currentTutorialStep}}openTutorialFileInEditor=()=>{this.props.dispatcher.openInExternalEditor((0,t.join)(this.props.repository.path,"README.md"))};openPullRequest=()=>{this.props.dispatcher.markPullRequestTutorialStepAsComplete(this.props.repository),setTimeout((()=>{this.props.dispatcher.createPullRequest(this.props.repository)}),500)};skipEditorInstall=()=>{this.props.dispatcher.skipPickEditorTutorialStep(this.props.repository)};skipCreatePR=()=>{this.props.dispatcher.markPullRequestTutorialStepAsComplete(this.props.repository)};isStepComplete=e=>Pb.indexOf(e)<Pb.indexOf(this.props.currentTutorialStep);isStepNextTodo=e=>e===this.props.currentTutorialStep;componentWillReceiveProps(e){this.props.currentTutorialStep!==e.currentTutorialStep&&this.setState({currentlyOpenSectionId:e.currentTutorialStep})}render(){return ke.createElement("div",{className:"tutorial-panel-component panel"},ke.createElement("div",{className:"titleArea"},ke.createElement("h3",null,"Get started"),ke.createElement("img",{src:NL,alt:"Partially checked check list"})),ke.createElement("ol",null,ke.createElement(FL,{summaryText:"Install a text editor",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Db.PickEditor,currentlyOpenSectionId:this.state.currentlyOpenSectionId,skipLinkButton:ke.createElement(LL,{onClick:this.skipEditorInstall}),onSummaryClick:this.onStepSummaryClick},this.isStepComplete(Db.PickEditor)?ke.createElement("p",{className:"description"},"Your default editor is"," ",ke.createElement("strong",null,this.props.resolvedExternalEditor),". You can change your preferred editor in"," ",ke.createElement(sM,{onClick:this.onPreferencesClick},"options")):ke.createElement(ke.Fragment,null,ke.createElement("p",{className:"description"},"It doesnt look like you have a text editor installed. We can recommend"," ",ke.createElement(sM,{uri:Rm,title:`Open the ${km} website`},km)," or ",ke.createElement(sM,{uri:"https://atom.io",title:"打开 Atom 网站"},"Atom"),", but feel free to use any."),ke.createElement("div",{className:"action"},ke.createElement(sM,{onClick:this.skipEditorInstall},"I have an editor")))),ke.createElement(FL,{summaryText:"新建分支",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Db.CreateBranch,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},ke.createElement("p",{className:"description"},'A branch allows you to work on different versions of a repository at one time. Create a\n branch by going into the branch menu in the top bar and\n clicking "New branch".'),ke.createElement("div",{className:"action"},ke.createElement(_u,{darwinKeys:["⌘","⇧","N"],keys:["Ctrl","Shift","N"]}))),ke.createElement(FL,{summaryText:"Edit a file",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Db.EditFile,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},ke.createElement("p",{className:"description"},"Open this repository in your preferred text editor. Edit the"," ",ke.createElement(UM,null,"README.md")," ","file, save it, and come back."),this.props.resolvedExternalEditor&&ke.createElement("div",{className:"action"},ke.createElement(Ss,{onClick:this.openTutorialFileInEditor},"Open editor"),ke.createElement(_u,{darwinKeys:["⌘","⇧","A"],keys:["Ctrl","Shift","A"]}))),ke.createElement(FL,{summaryText:"Make a commit",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Db.MakeCommit,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},ke.createElement("p",{className:"description"},"A commit allows you to save sets of changes. In the “summary“ field in the bottom left, write a short message that describes the changes you made. When youre done, click the blue Commit button to finish.")),ke.createElement(FL,{summaryText:"Publish to GitHub",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Db.PushBranch,currentlyOpenSectionId:this.state.currentlyOpenSectionId,onSummaryClick:this.onStepSummaryClick},ke.createElement("p",{className:"description"},"Publishing will “push”, or upload, your commits to this branch of your repository on GitHub. Publish using the third button in the top bar."),ke.createElement("div",{className:"action"},ke.createElement(_u,{darwinKeys:["⌘","P"],keys:["Ctrl","P"]}))),ke.createElement(FL,{summaryText:"Open a pull request",isComplete:this.isStepComplete,isNextStepTodo:this.isStepNextTodo,sectionId:Db.OpenPullRequest,currentlyOpenSectionId:this.state.currentlyOpenSectionId,skipLinkButton:ke.createElement(LL,{onClick:this.skipCreatePR}),onSummaryClick:this.onStepSummaryClick},ke.createElement("p",{className:"description"},"A pull request allows you to propose changes to the code. By opening one, youre requesting that someone review and merge them. Since this is a demo repository, this pull request will be private."),ke.createElement("div",{className:"action"},ke.createElement(Ss,{onClick:this.openPullRequest,role:"link"},"Open pull request",ke.createElement(Rs,{symbol:Va})),ke.createElement(_u,{darwinKeys:["⌘","R"],keys:["Ctrl","R"]})))),ke.createElement("div",{className:"footer"},ke.createElement(Ss,{onClick:this.props.onExitTutorial},"Exit tutorial")))}onStepSummaryClick=e=>{this.setState({currentlyOpenSectionId:e})};onPreferencesClick=()=>{this.props.dispatcher.showPopup({type:Sh.Preferences,initialSelectedTab:Gr.Integrations})}}const LL=e=>ke.createElement(sM,{onClick:e.onClick},"Skip"),BL=Ft(__dirname,"static/code.svg"),HL=Ft(__dirname,"static/github-for-teams.svg"),UL=Ft(__dirname,"static/github-for-business.svg");class ZL extends ke.Component{render(){return ke.createElement("div",{id:"tutorial-welcome"},ke.createElement("div",{className:"header"},ke.createElement("h1",null,"Welcome to GitHub Desktop"),ke.createElement("p",null,"Use this tutorial to get comfortable with Git, GitHub, and GitHub Desktop.")),ke.createElement("ul",{className:"definitions"},ke.createElement("li",null,ke.createElement("img",{src:BL,alt:"Html syntax icon"}),ke.createElement("p",null,ke.createElement("strong",null,"Git")," is the version control system.")),ke.createElement("li",null,ke.createElement("img",{src:HL,alt:"People with discussion bubbles overhead"}),ke.createElement("p",null,ke.createElement("strong",null,"GitHub")," is where you store your code and collaborate with others.")),ke.createElement("li",null,ke.createElement("img",{src:UL,alt:"Server stack with cloud"}),ke.createElement("p",null,ke.createElement("strong",null,"GitHub Desktop")," helps you work with GitHub locally."))))}}const $L=Ft(__dirname,"static/admin-mentoring.svg"),WL=ke.createElement(Rs,{symbol:Yc}),VL=ke.createElement(Rs,{symbol:Bl}),qL=ke.createElement(Rs,{symbol:Bo});class GL extends ke.Component{header=ke.createRef();componentDidMount(){this.header.current&&!this.props.tutorialCompletionAnnounced&&(this.header.current.tabIndex=0,this.header.current?.focus(),this.props.onTutorialCompletionAnnounced(),this.header.current.tabIndex=-1)}render(){return ke.createElement("div",{id:"tutorial-done"},ke.createElement("div",{className:"content"},ke.createElement("div",{className:"header"},ke.createElement("div",{className:"text"},ke.createElement("h1",{ref:this.header},"You're done!"),ke.createElement("p",null,"Youve learned the basics on how to use GitHub Desktop. Here are some suggestions for what to do next.")),ke.createElement("img",{src:$L,className:"image",alt:"Hands clapping"})),ke.createElement(PI,null,ke.createElement(TI,{title:"在 GitHub 上浏览项目",description:"为你感兴趣的项目做出贡献",buttonText:"打开于 browser",onClick:this.openDotcomExplore,type:"normal",image:WL}),ke.createElement(TI,{title:"新建存储库",description:"开始一个全新的项目",buttonText:"创建存储库",onClick:this.onCreateNewRepository,type:"normal",image:VL}),ke.createElement(TI,{title:"添加本地存储库",description:"在 GitHub Desktop 的一个项目上工作",buttonText:"添加存储库",onClick:this.onAddExistingRepository,type:"normal",image:qL}))))}openDotcomExplore=()=>{this.props.dispatcher.showGitHubExplore(this.props.repository)};onCreateNewRepository=()=>{this.props.dispatcher.showPopup({type:Sh.CreateRepository})};onAddExistingRepository=()=>{this.props.dispatcher.showPopup({type:Sh.AddRepository})}}class zL extends ke.Component{render(){return ke.createElement(AM,{title:"退出教程",onDismissed:this.props.onDismissed,onSubmit:this.onContinue,type:"normal"},ke.createElement(vM,null,ke.createElement("p",null,"Are you sure you want to leave the tutorial? This will bring you back to the home screen.")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText: "退出教程"})))}onContinue=()=>{this.props.onContinue()&&this.props.onDismissed()}}class jL extends ke.Component{previousSection=this.props.state.selectedSection;forceCompareListScrollTop=!1;changesSidebarRef=ke.createRef();compareSidebarRef=ke.createRef();focusHistoryNeeded=!1;focusChangesNeeded=!1;constructor(e){super(e),this.state={changesListScrollTop:0,compareListScrollTop:0}}setFocusHistoryNeeded(){this.focusHistoryNeeded=!0}setFocusChangesNeeded(){this.focusChangesNeeded=!0}scrollCompareListToTop(){this.forceCompareListScrollTop=!0,this.setState({compareListScrollTop:0})}onChangesListScrolled=e=>{this.setState({changesListScrollTop:e})};onCompareListScrolled=e=>{this.setState({compareListScrollTop:e})};renderChangesBadge(){const e=this.props.state.changesState.workingDirectory.files.length;return e<=0?null:ke.createElement(jO,{filesChangedCount:e})}renderTabs(){const e=this.props.state.selectedSection===Je.Changes?0:1;return ke.createElement(LM,{selectedIndex:e,onTabClicked:this.onTabClicked},ke.createElement("span",{className:"with-indicator",id:"changes-tab"},ke.createElement("span",null,"更改"),this.renderChangesBadge()),ke.createElement("div",{className:"with-indicator",id:"history-tab"},ke.createElement("span",null,"历史")))}renderChangesSidebar(){const e=this.props.state.branchesState.tip;let t=null;e.kind===zr.Valid?t=e.branch.name:e.kind===zr.Unborn&&(t=e.ref);const n=this.props.state.localCommitSHAs,r=n.length>0?n[0]:null,s=(r?this.props.state.commitLookup.get(r):null)||null,i=Oy(this.props.sidebarWidth)-1,o=this.previousSection===Je.History?this.state.changesListScrollTop:void 0;return this.previousSection=Je.Changes,ke.createElement(g_,{ref:this.changesSidebarRef,repository:this.props.repository,dispatcher:this.props.dispatcher,changes:this.props.state.changesState,aheadBehind:this.props.state.aheadBehind,branch:t,commitAuthor:this.props.state.commitAuthor,emoji:this.props.emoji,mostRecentLocalCommit:s,issuesStore:this.props.issuesStore,availableWidth:i,gitHubUserStore:this.props.gitHubUserStore,isCommitting:this.props.state.isCommitting,isGeneratingCommitMessage:this.props.state.isGeneratingCommitMessage,shouldShowGenerateCommitMessageCallOut:this.props.shouldShowGenerateCommitMessageCallOut,commitToAmend:this.props.state.commitToAmend,isPushPullFetchInProgress:this.props.state.isPushPullFetchInProgress,focusCommitMessage:this.props.focusCommitMessage,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,askForConfirmationOnCommitFilteredChanges:this.props.askForConfirmationOnCommitFilteredChanges,accounts:this.props.accounts,isShowingModal:this.props.isShowingModal,isShowingFoldout:this.props.isShowingFoldout,externalEditorLabel:this.props.externalEditorLabel,onOpenInExternalEditor:this.props.onOpenInExternalEditor,onChangesListScrolled:this.onChangesListScrolled,changesListScrollTop:o,shouldNudgeToCommit:this.props.currentTutorialStep===Db.MakeCommit,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,showChangesFilter:this.props.showChangesFilter})}renderCompareSidebar(){const{repository:e,dispatcher:t,state:n,aheadBehindStore:r,emoji:s}=this.props,{remote:i,compareState:o,branchesState:a,commitSelection:{shas:l},commitLookup:c,localCommitSHAs:u,localTags:h,tagsToPush:p,multiCommitOperationState:d}=n,{tip:m}=a,f=m.kind===zr.Valid?m.branch:null,g=this.forceCompareListScrollTop||this.previousSection===Je.Changes?this.state.compareListScrollTop:void 0;return this.previousSection=Je.History,this.forceCompareListScrollTop=!1,ke.createElement(IL,{ref:this.compareSidebarRef,repository:e,isLocalRepository:null===i,compareState:o,selectedCommitShas:l,shasToHighlight:o.shasToHighlight,currentBranch:f,emoji:s,commitLookup:c,localCommitSHAs:u,localTags:h,dispatcher:t,onRevertCommit:this.onRevertCommit,onAmendCommit:this.onAmendCommit,onViewCommitOnGitHub:this.props.onViewCommitOnGitHub,onCompareListScrolled:this.onCompareListScrolled,onCherryPick:this.props.onCherryPick,compareListScrollTop:g,tagsToPush:p,aheadBehindStore:r,isMultiCommitOperationInProgress:null!==d,askForConfirmationOnCheckoutCommit:this.props.askForConfirmationOnCheckoutCommit,accounts:this.props.accounts})}renderSidebarContents(){const e=this.props.state.selectedSection;return e===Je.Changes?this.renderChangesSidebar():e===Je.History?this.renderCompareSidebar():at(0,"Unknown repository section")}handleSidebarWidthReset=()=>{this.props.dispatcher.resetSidebarWidth()};handleSidebarResize=e=>{this.props.dispatcher.setSidebarWidth(e)};renderSidebar(){return ke.createElement(vp,{onFocusWithinChanged:this.onSidebarFocusWithinChanged},ke.createElement(UC,{id:"repository-sidebar",width:this.props.sidebarWidth.value,maximumWidth:this.props.sidebarWidth.max,minimumWidth:this.props.sidebarWidth.min,onReset:this.handleSidebarWidthReset,onResize:this.handleSidebarResize,description:"Repository sidebar"},this.renderTabs(),this.renderSidebarContents()))}onSidebarFocusWithinChanged=e=>{!1===e&&this.props.state.selectedSection===Je.History&&this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})};renderStashedChangesContent(){const{changesState:e}=this.props.state,{selection:t,stashEntry:n}=e;return t.kind!==et.Stash||null===n?null:n.files.kind===nb.Loaded?ke.createElement(ZI,{stashEntry:n,selectedStashedFile:t.selectedStashedFile,stashedFileDiff:t.selectedStashedFileDiff,imageDiffType:this.props.imageDiffType,fileListWidth:this.props.stashedFilesWidth,repository:this.props.repository,dispatcher:this.props.dispatcher,askForConfirmationOnDiscardStash:this.props.askForConfirmationOnDiscardStash,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:this.onOpenBinaryFile,onOpenSubmodule:this.onOpenSubmodule,onChangeImageDiffType:this.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged,onOpenInExternalEditor:this.props.onOpenInExternalEditor}):null}onHideWhitespaceInDiffChanged=e=>this.props.dispatcher.onHideWhitespaceInChangesDiffChanged(e,this.props.repository);renderContentForHistory(){const{commitSelection:e,commitLookup:t,localCommitSHAs:n}=this.props.state,{changesetData:r,file:s,diff:i,shas:o,shasInDiff:a,isContiguous:l}=e,c=[];for(const e of o){const n=t.get(e);void 0!==n&&c.push(n)}const u=Ip.isDragOfTypeInProgress(_p.Commit);return ke.createElement(uL,{repository:this.props.repository,dispatcher:this.props.dispatcher,selectedCommits:c,shasInDiff:a,isContiguous:l,localCommitSHAs:n,changesetData:r,selectedFile:s,currentDiff:i,emoji:this.props.emoji,commitSummaryWidth:this.props.commitSummaryWidth,selectedDiffType:this.props.imageDiffType,externalEditorLabel:this.props.externalEditorLabel,onOpenInExternalEditor:this.props.onOpenInExternalEditor,onViewCommitOnGitHub:this.props.onViewCommitOnGitHub,hideWhitespaceInDiff:this.props.hideWhitespaceInHistoryDiff,showSideBySideDiff:this.props.showSideBySideDiff,onOpenBinaryFile:this.onOpenBinaryFile,onOpenSubmodule:this.onOpenSubmodule,onChangeImageDiffType:this.onChangeImageDiffType,onDiffOptionsOpened:this.onDiffOptionsOpened,showDragOverlay:u,accounts:this.props.accounts})}onDiffOptionsOpened=()=>{this.props.dispatcher.incrementMetric("diffOptionsViewedCount")};onTutorialCompletionAnnounced=()=>{this.props.dispatcher.markTutorialCompletionAsAnnounced(this.props.repository)};renderTutorialPane(){return[Db.AllDone,Db.Announced].includes(this.props.currentTutorialStep)?ke.createElement(GL,{dispatcher:this.props.dispatcher,repository:this.props.repository,tutorialCompletionAnnounced:this.props.currentTutorialStep===Db.Announced,onTutorialCompletionAnnounced:this.onTutorialCompletionAnnounced}):ke.createElement(ZL,null)}renderContentForChanges(){const{changesState:e}=this.props.state,{workingDirectory:t,selection:n}=e;if(n.kind===et.Stash)return this.renderStashedChangesContent();const{selectedFileIDs:r,diff:s}=n;if(r.length>1)return ke.createElement(zO,{count:r.length});if(0===t.files.length)return this.props.currentTutorialStep!==Db.NotApplicable?this.renderTutorialPane():ke.createElement(qO,{key:this.props.repository.id,appMenu:this.props.appMenu,repository:this.props.repository,repositoryState:this.props.state,isExternalEditorAvailable:this.props.isExternalEditorAvailable,dispatcher:this.props.dispatcher,pullRequestSuggestedNextAction:this.props.pullRequestSuggestedNextAction});{if(0===r.length)return null;const e=t.findFileWithID(r[0]);return null===e?null:ke.createElement(b_,{repository:this.props.repository,dispatcher:this.props.dispatcher,file:e,diff:s,isCommitting:this.props.state.isCommitting,imageDiffType:this.props.imageDiffType,hideWhitespaceInDiff:this.props.hideWhitespaceInChangesDiff,showSideBySideDiff:this.props.showSideBySideDiff,showDiffCheckMarks:this.props.showDiffCheckMarks,onOpenBinaryFile:this.onOpenBinaryFile,onOpenSubmodule:this.onOpenSubmodule,onChangeImageDiffType:this.onChangeImageDiffType,askForConfirmationOnDiscardChanges:this.props.askForConfirmationOnDiscardChanges,onDiffOptionsOpened:this.onDiffOptionsOpened})}}onOpenBinaryFile=e=>{YI(e,this.props.dispatcher)};onOpenSubmodule=e=>{this.props.dispatcher.incrementMetric("openSubmoduleFromDiffCount"),this.props.dispatcher.openOrAddRepository(e)};onChangeImageDiffType=e=>{this.props.dispatcher.changeImageDiffType(e)};renderContent(){const e=this.props.state.selectedSection;return e===Je.Changes?this.renderContentForChanges():e===Je.History?this.renderContentForHistory():at(0,"Unknown repository section")}render(){return ke.createElement(fx,{id:"repository"},this.renderSidebar(),this.renderContent(),this.maybeRenderTutorialPanel())}onRevertCommit=e=>{this.props.dispatcher.revertCommit(this.props.repository,e)};onAmendCommit=(e,t)=>{this.props.dispatcher.startAmendingRepository(this.props.repository,e,t)};componentDidMount(){window.addEventListener("keydown",this.onGlobalKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.onGlobalKeyDown)}componentDidUpdate(){this.focusChangesNeeded&&(this.focusChangesNeeded=!1,this.changesSidebarRef.current?.focus()),this.focusHistoryNeeded&&(this.focusHistoryNeeded=!1,this.compareSidebarRef.current?.focusHistory())}onGlobalKeyDown=e=>{e.defaultPrevented||this.props.isShowingModal||this.props.isShowingFoldout||e.ctrlKey&&"Tab"===e.key&&(this.changeTab(),e.preventDefault())};changeTab(){const e=this.props.state.selectedSection===Je.History?Je.Changes:Je.History;this.props.dispatcher.changeRepositorySection(this.props.repository,e)}onTabClicked=e=>{const t=1===e?Je.History:Je.Changes;this.props.dispatcher.changeRepositorySection(this.props.repository,t),t&&this.props.dispatcher.updateCompareForm(this.props.repository,{showBranchList:!1})};maybeRenderTutorialPanel(){return Mb(this.props.currentTutorialStep)?ke.createElement(OL,{dispatcher:this.props.dispatcher,repository:this.props.repository,resolvedExternalEditor:this.props.resolvedExternalEditor,currentTutorialStep:this.props.currentTutorialStep,onExitTutorial:this.props.onExitTutorial}):null}}const KL=/[\x00-\x20\x7F~^:?*\[\\|""<>]+|@{|\.\.+|^\.|\.$|\.lock$|\/$/g;function YL(e){return e.replace(KL,"-").replace(/^[-\+]*/g,"")}var XL;!function(e){e[e.Caption=0]="Caption",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(XL||(XL={}));class QL extends ke.Component{getClassName(){const{inputDescriptionType:e}=this.props;switch(e){case XL.Caption:return hs()("input-description",this.props.className,"input-description-caption");case XL.Warning:return hs()("input-description",this.props.className,"input-description-warning");case XL.Error:return hs()("input-description",this.props.className,"input-description-error");default:return at(0,`Unknown input type ${e}`)}}renderIcon(){const{inputDescriptionType:e}=this.props;switch(e){case XL.Caption:return null;case XL.Warning:return ke.createElement(Rs,{symbol:xs});case XL.Error:return ke.createElement(Rs,{symbol:Uc});default:return at(0,`Unknown input type ${e}`)}}renderAriaLiveContainer(){return this.props.inputDescriptionType===XL.Caption||void 0===this.props.trackedUserInput||void 0===this.props.ariaLiveMessage?null:ke.createElement(LC,{message:this.props.ariaLiveMessage,trackedUserInput:this.props.trackedUserInput})}getRole(){if(this.props.inputDescriptionType===XL.Error&&void 0===this.props.trackedUserInput)return"alert"}render(){return ke.createElement(ke.Fragment,null,ke.createElement("div",{id:this.props.id,className:this.getClassName(),role:this.getRole()},this.renderIcon(),ke.createElement("div",{className:"input-description-content"},this.props.children)),this.renderAriaLiveContainer())}}class JL extends ke.Component{render(){return ke.createElement(QL,{inputDescriptionType:XL.Warning,...this.props},this.props.children)}}class eB extends ke.Component{render(){return ke.createElement(QL,{inputDescriptionType:XL.Error,...this.props},this.props.children)}}class tB extends ke.Component{textBoxRef=ke.createRef();constructor(e){super(e),this.state=this.getStateForInitialValue(e.initialValue)}getStateForInitialValue(e){const t=e||"";return{proposedValue:t,sanitizedValue:YL(t)}}componentDidMount(){this.state.sanitizedValue!==this.props.initialValue&&void 0!==this.props.onValueChange&&this.props.onValueChange(this.state.sanitizedValue)}componentWillReceiveProps(e){e.initialValue!==this.props.initialValue&&""===this.state.sanitizedValue&&this.setState(this.getStateForInitialValue(e.initialValue))}render(){return ke.createElement("div",{className:"ref-name-text-box"},ke.createElement(nx,{label:this.props.label,value:this.state.proposedValue,ref:this.textBoxRef,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy+" branch-name-warning branch-name-error",onValueChanged:this.onValueChange,onBlur:this.onBlur}),this.renderRefValueWarningError())}focus(){null!==this.textBoxRef.current&&this.textBoxRef.current.focus()}onValueChange=e=>{const t=YL(e),n=this.state.sanitizedValue;this.setState({proposedValue:e,sanitizedValue:t}),t!==n&&void 0!==this.props.onValueChange&&this.props.onValueChange(t)};onBlur=e=>{void 0!==this.props.onBlur&&this.props.onBlur(YL(e))};renderRefValueWarningError(){const{proposedValue:e,sanitizedValue:t}=this.state;return e===t?null:0===t.length?ke.createElement(eB,{id:"branch-name-error",className:"warning-helper-text",trackedUserInput:e,ariaLiveMessage:`Error: ${e} is not a valid name.`},ke.createElement(UM,null,e)," is not a valid name."):ke.createElement(JL,{id:"branch-name-warning",className:"warning-helper-text",trackedUserInput:e,ariaLiveMessage:this.getWarningMessageAsString(t)},ke.createElement("p",null,this.renderWarningMessage(t)))}getWarningMessageAsString(e){return`Warning: Will be ${this.props.warningMessageVerb??"created "} as ${e}. Spaces and invalid characters have been replaced by hyphens.`}renderWarningMessage(e){return ke.createElement(ke.Fragment,null,"Will be ",this.props.warningMessageVerb??"created"," as"," ",ke.createElement(UM,null,e),"."," ",ke.createElement("span",{className:"sr-only"},"Spaces and invalid characters have been replaced by hyphens."))}}class nB extends ke.Component{constructor(e){super(e),this.state={newName:e.branch.name}}render(){return ke.createElement(AM,{id:"rename-branch",title:"重命名分支",onDismissed:this.props.onDismissed,onSubmit:this.renameBranch,focusCloseButtonOnOpen:!0},ke.createElement(vM,null,null!=(e=this.props.branch).upstream?ke.createElement(rx,{className:"warning-helper-text"},ke.createElement(Rs,{symbol:xs}),ke.createElement("p",null,"This branch is tracking ",ke.createElement(UM,null,e.upstream)," and renaming this branch will not change the branch name on the remote.")):null,ke.createElement(tB,{label: "名称",initialValue:this.props.branch.name,onValueChange:this.onNameChange})),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:`Rename ${this.props.branch.name}`,okButtonDisabled:0===this.state.newName.length})));var e}onNameChange=e=>{this.setState({newName:e})};renameBranch=()=>{this.props.dispatcher.renameBranch(this.props.repository,this.props.branch,this.state.newName),this.props.onDismissed()}}class rB extends ke.Component{constructor(e){super(e),this.state={includeRemoteBranch:!1,isDeleting:!1}}render(){return ke.createElement(AM,{id:"delete-branch",title:"删除分支",type:"warning",onSubmit:this.deleteBranch,onDismissed:this.props.onDismissed,disabled:this.state.isDeleting,loading:this.state.isDeleting,role:"alertdialog",ariaDescribedBy:"delete-branch-confirmation-message delete-branch-confirmation-message-remote"},ke.createElement(vM,null,ke.createElement("div",{id:"delete-branch-confirmation-message"},ke.createElement("p",null,"删除分支 ",ke.createElement(UM,null,this.props.branch.name),"?"),ke.createElement("p",null,"此操作不可撤销"),this.renderDeleteOnRemote())),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText: "删除"})))}renderDeleteOnRemote(){return this.props.branch.upstreamRemoteName&&this.props.existsOnRemote?ke.createElement("div",null,ke.createElement("p",{id:"delete-branch-confirmation-message-remote"},ke.createElement("strong",null,"The branch also exists on the remote, do you wish to delete it there as well?")),ke.createElement(vx,{label:"是的,在远程删除此分支",value:this.state.includeRemoteBranch?Cx.On:Cx.Off,onChange:this.onIncludeRemoteChanged})):null}onIncludeRemoteChanged=e=>{const t=e.currentTarget.checked;this.setState({includeRemoteBranch:t})};deleteBranch=async()=>{const{dispatcher:e,repository:t,branch:n}=this.props;this.setState({isDeleting:!0}),await e.deleteLocalBranch(t,n,this.state.includeRemoteBranch),this.props.onDeleted(t),this.props.onDismissed()}}class sB extends ke.Component{constructor(e){super(e),this.state={isDeleting:!1}}render(){return ke.createElement(AM,{id:"delete-branch",title:"删除远程分支",type:"warning",onSubmit:this.deleteBranch,onDismissed:this.props.onDismissed,disabled:this.state.isDeleting,loading:this.state.isDeleting,role:"alertdialog",ariaDescribedBy:"delete-branch-confirmation-message"},ke.createElement(vM,null,ke.createElement("div",{id:"delete-branch-confirmation-message"},ke.createElement("p",null,"Delete remote branch ",ke.createElement(UM,null,this.props.branch.name),"?"),ke.createElement("p",null,"此操作不可撤销"),ke.createElement("p",null,"This branch does not exist locally. Deleting it may impact others collaborating on this branch."))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText: "删除"})))}deleteBranch=async()=>{const{dispatcher:e,repository:t,branch:n}=this.props;this.setState({isDeleting:!0}),await e.deleteRemoteBranch(t,n),this.props.onDeleted(t),this.props.onDismissed()}}class iB extends ke.Component{render(){const e=this.props.progress.value||void 0;return ke.createElement(fx,{id:"cloning-repository-view"},ke.createElement("div",{className:"title-container"},ke.createElement(Rs,{symbol:Wi}),ke.createElement("div",{className:"title"},"Cloning ",this.props.repository.name)),ke.createElement("progress",{value:e}),ke.createElement(lh,{tagName:"div",className:"details",tooltip:this.props.progress.description},this.props.progress.description))}}class oB extends ke.Component{constructor(e){super(e),this.state={isDiscardingChanges:!1,confirmDiscardChanges:this.props.confirmDiscardChanges}}getOkButtonLabel(){return this.props.discardingAllChanges?"放弃所有更改":"放弃更改"}getDialogTitle(){return this.props.discardingAllChanges?"确认放弃所有更改":"确认放弃更改"}render(){const e=this.state.isDiscardingChanges;return ke.createElement(AM,{id:"discard-changes",title:this.getDialogTitle(),onDismissed:this.props.onDismissed,onSubmit:this.discard,dismissDisabled:e,loading:e,disabled:e,type:"warning",role:"alertdialog",ariaDescribedBy:"discard-changes-confirmation-file-list discard-changes-confirmation-message"},ke.createElement(vM,null,this.renderFileList(),ke.createElement("p",{id:"discard-changes-confirmation-message"},"变更可以恢复,通过检索",xh,"."),this.renderConfirmDiscardChanges()),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:this.getOkButtonLabel(),okButtonDisabled:e,cancelButtonDisabled:e})))}renderConfirmDiscardChanges(){return this.props.showDiscardChangesSetting?ke.createElement(vx,{label:"不再显示此消息",value:this.state.confirmDiscardChanges?Cx.Off:Cx.On,onChange:this.onConfirmDiscardChangesChanged}):null}renderFileList(){return this.props.files.length>10?ke.createElement("p",{id:"discard-changes-confirmation-file-list"},"Are you sure you want to discard all ",this.props.files.length," changed files?"):ke.createElement("div",{id:"discard-changes-confirmation-file-list"},ke.createElement("p",null,"确定要放弃所有更改吗?"),ke.createElement("div",{className:"file-list"},ke.createElement("ul",null,this.props.files.map((e=>ke.createElement("li",{key:e.id},ke.createElement(wP,{path:e.path})))))))}discard=async()=>{this.setState({isDiscardingChanges:!0}),await this.props.dispatcher.discardChanges(this.props.repository,this.props.files),this.props.onConfirmDiscardChangesChanged(this.state.confirmDiscardChanges),this.props.onDismissed()};onConfirmDiscardChangesChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardChanges:t})}}class aB extends ke.Component{render(){const e=hs()("form-component",this.props.className);return ke.createElement("form",{className:e,onSubmit:this.onSubmit},this.props.children)}onSubmit=e=>{e.preventDefault(),this.props.onSubmit&&this.props.onSubmit()}}const lB="登录后浏览器将会重定向到GitHub Desktop。如果您的浏览器请求您允许启动GitHub Desktop请点击允许。";class cB extends ke.Component{render(){return ke.createElement(aB,{className:"sign-in-form",onSubmit:this.signInWithBrowser},this.renderEndpointRequiresWebFlow())}renderEndpointRequiresWebFlow(){return ke.createElement(ke.Fragment,null,lB,ke.createElement(Ss,{type:"submit",className:"button-with-icon",onClick:this.signInWithBrowser,autoFocus:!0,role:"link"},"使用浏览器登录",ke.createElement(Rs,{symbol:Va})),this.props.additionalButtons)}signInWithBrowser=e=>{e?.preventDefault(),this.props.onBrowserSignInRequested()}}class uB extends ke.Component{render(){return ke.createElement("section",{id:"start","aria-label":"Welcome to GitHub Desktop","aria-describedby":"start-description"},ke.createElement("div",{className:"start-content"},ke.createElement("h1",{className:"welcome-title"},"Welcome to ",ke.createElement("span",null,"GitHub Desktop")),this.props.loadingBrowserAuth?ke.createElement("p",null,lB):ke.createElement(ke.Fragment,null,ke.createElement("p",{id:"start-description",className:"welcome-text"},"")),ke.createElement("div",{className:"welcome-main-buttons"},ke.createElement(Ss,{type:"submit",className:"button-with-icon",disabled:this.props.loadingBrowserAuth,onClick:this.signInWithBrowser,autoFocus:!0,role:"link"},this.props.loadingBrowserAuth&&ke.createElement(zD,null),"GitHub登录",ke.createElement(Rs,{symbol:Va})),this.props.loadingBrowserAuth?ke.createElement(Ss,{onClick:this.cancelBrowserAuth},"Cancel"):ke.createElement(Ss,{onClick:this.signInToEnterprise},"Github企业版登录")),ke.createElement("div",{className:"skip-action-container"},ke.createElement("p",{className:"welcome-text"},"第一次使用Github"," ",ke.createElement(sM,{uri:"https://github.com/join?source=github-desktop",className:"create-account-link"},"创建账户")),ke.createElement(sM,{className:"skip-button",onClick:this.skip},"跳过"))),ke.createElement("div",{className:"start-footer"},ke.createElement("p",null,"创建账户,代表您同意"," ",ke.createElement(sM,{uri:"https://github.com/site/terms"},"服务条款"),". 更多信息,请参阅"," ",ke.createElement(sM,{uri:"https://github.com/site/privacy"},"GitHub 隐私声明.")),ke.createElement("p",null,"GitHub Desktop sends usage metrics to improve the product and inform feature decisions."," ",ke.createElement(sM,{uri:PT},"Learn more about user metrics."))))}signInWithBrowser=e=>{e&&e.preventDefault(),this.props.advance(wB.SignInToDotComWithBrowser),this.props.dispatcher.requestBrowserAuthenticationToDotcom()};cancelBrowserAuth=()=>{this.props.advance(wB.Start)};signInToEnterprise=()=>{this.props.advance(wB.SignInToEnterprise)};skip=()=>{this.props.advance(wB.ConfigureGit)}}class hB extends ke.Component{render(){const e=hs()("errors-component",this.props.className);return ke.createElement("div",{className:e,role:"alert"},this.props.children)}}class pB extends ke.Component{constructor(e){super(e),this.state={serverAddress:""}}render(){const e=this.props.loading,t=0===this.state.serverAddress.length||this.props.loading;return ke.createElement(aB,{onSubmit:this.onSubmit},ke.createElement(nx,{label:"企业或 AE 地址",autoFocus:!0,disabled:e,onValueChanged:this.onServerAddressChanged,placeholder:"https://github.example.com"}),this.props.error?ke.createElement(hB,null,this.props.error.message):null,ke.createElement("div",{className:"actions"},ke.createElement(Ss,{type:"submit",disabled:t},this.props.loading?ke.createElement(zD,null):null," Continue"),this.props.additionalButtons))}onServerAddressChanged=e=>{this.setState({serverAddress:e})};onSubmit=()=>{this.props.onSubmit(this.state.serverAddress)}}class dB extends ke.Component{onEndpointEntered=e=>{this.props.dispatcher.setSignInEndpoint(e)};onBrowserSignInRequested=()=>{this.props.dispatcher.requestBrowserAuthentication()};renderExistingAccountWarningStep(e){return ke.createElement(ke.Fragment,null,ke.createElement("p",{className:"existing-account-warning"},"You're already signed in to"," ",ke.createElement(UM,null,new URL(ir(e.endpoint)).host)," with the account"," ",ke.createElement(UM,null,e.existingAccount.login),". If you continue, you will first be signed out."),this.renderAuthenticationStep(e))}renderEndpointEntryStep(e){const t=this.props.children;return ke.createElement(pB,{loading:e.loading,error:e.error,onSubmit:this.onEndpointEntered,additionalButtons:t})}renderAuthenticationStep(e){const t=this.props.children;return ke.createElement(cB,{additionalButtons:t,onBrowserSignInRequested:this.onBrowserSignInRequested})}render(){const e=this.props.signInState,t=this.props.signInState.kind;switch(e.kind){case gT.EndpointEntry:return this.renderEndpointEntryStep(e);case gT.ExistingAccountWarning:return this.renderExistingAccountWarningStep(e);case gT.Authentication:return this.renderAuthenticationStep(e);case gT.Success:return null;default:return at(0,`Unknown sign-in step: ${t}`)}}}class mB extends ke.Component{render(){const e=this.props.signInState;return e?ke.createElement("section",{id:"sign-in-enterprise","aria-label":"Sign in to your GitHub Enterprise"},ke.createElement("h1",{className:"welcome-title"},"Sign in to your GitHub Enterprise"),ke.createElement(dB,{signInState:e,dispatcher:this.props.dispatcher},ke.createElement(Ss,{onClick:this.cancel},"Cancel"))):null}cancel=()=>{this.props.advance(wB.Start)}}class fB extends ke.Component{onDeleteLockFile=async()=>{try{await(0,w.unlink)(this.props.lockFilePath)}catch(e){if("ENOENT"!==e.code)return void this.props.onError(e)}this.props.onLockFileDeleted()};render(){return ke.createElement("div",{className:"config-lock-file-exists-component"},ke.createElement("p",null,"Failed to update Git configuration file. A lock file already exists at"," ",ke.createElement(UM,null,this.props.lockFilePath),"."),ke.createElement("p",null,"This can happen if another tool is currently modifying the Git configuration or if a Git process has terminated earlier without cleaning up the lock file. Do you want to"," ",ke.createElement(sM,{onClick:this.onDeleteLockFile},"delete the lock file")," ","and try again?"))}}class gB extends ke.Component{constructor(e){super(e);const t=this.account,n=t?qb(t):"";this.state={manualName:e.globalUserName||t?.name||t?.login||"",manualEmail:e.globalUserEmail||n,useGitHubAuthorInfo:null!==this.account,gitHubName:t?.name||t?.login||"",gitHubEmail:n}}async componentDidUpdate(e){if(this.props.accounts!==e.accounts&&this.props.accounts.length>0&&this.props.accounts[0]!==e.accounts[0]){const e=this.props.accounts[0],t=qb(e);this.setState({useGitHubAuthorInfo:!0,gitHubName:e.name||e.login,gitHubEmail:t,...0===this.state.manualName.length?{manualName:e.name||e.login}:{manualName:this.state.manualName},...0===this.state.manualEmail.length?{manualEmail:t}:{manualEmail:this.state.manualEmail}})}const{globalUserName:t,globalUserEmail:n}=this.props;t&&t!==e.globalUserName&&this.setState((e=>({manualName:e.manualName||t}))),n&&n!==e.globalUserEmail&&this.setState((e=>({manualEmail:e.manualEmail||n})))}get account(){return 0===this.props.accounts.length?null:this.props.accounts[0]}dateWithMinuteOffset(e,t){const n=new Date(e.getTime());return n.setTime(n.getTime()+60*t*1e3),n}render(){const e=void 0!==this.state.existingLockFilePath?ke.createElement(fB,{lockFilePath:this.state.existingLockFilePath,onLockFileDeleted:this.onLockFileDeleted,onError:this.onLockFileDeleteError}):null;return ke.createElement("div",{id:"configure-git-user"},this.renderAuthorOptions(),e,this.renderConfigForm(),this.renderExampleCommit())}renderExampleCommit(){const e=new Date;let t=this.state.manualName,n=this.state.manualEmail;this.state.useGitHubAuthorInfo&&(t=this.state.gitHubName,n=this.state.gitHubEmail);const r=new xf(t,n,this.dateWithMinuteOffset(e,-30)),s=new gm(t,t.slice(0,7),"Fix all the things","",r,r,[],[],[]),i=new Map;return ke.createElement("div",{id:"commit-list",className:"commit-list-example"},ke.createElement("div",{className:"header"},"Example commit"),ke.createElement(tL,{commit:s,emoji:i,gitHubRepository:null,showUnpushedIndicator:!1,selectedCommits:[s],accounts:this.props.accounts}))}renderAuthorOptions(){const e=this.account;if(null===e)return;const t=wn(e)?"":" Enterprise";return ke.createElement("div",null,ke.createElement(qM,{label:`Use my GitHub${t} account name and email address`,checked:this.state.useGitHubAuthorInfo,onSelected:this.onUseGitHubInfoSelected,value:"github-account",autoFocus:!0}),ke.createElement(qM,{label:"手动配置",checked:!this.state.useGitHubAuthorInfo,onSelected:this.onUseGitConfigInfoSelected,value:"git-config"}))}renderGitHubInfo(){if(null!==this.account)return ke.createElement(ke.Fragment,null,ke.createElement(lM,{label:"邮箱",value:this.state.gitHubEmail,onChange:this.onSelectedGitHubEmailChange},this.account.emails.map((e=>ke.createElement("option",{key:e.email,value:e.email},e.email)))))}renderGitConfigForm(){return ke.createElement(ke.Fragment,null,ke.createElement(nx,{type:"email",label:"邮箱",placeholder:"您的邮箱",value:this.state.manualEmail,onValueChanged:this.onEmailChange}),null!==this.account&&ke.createElement(jM,{accounts:[this.account],email:this.state.manualEmail}))}renderConfigForm(){return ke.createElement(aB,{className:"sign-in-form",onSubmit:this.save},ke.createElement("div",{className:"sign-in-form-inputs"},ke.createElement(nx,{label: "名称",placeholder:"您的姓名",onValueChanged:this.onNameChange,value:this.state.useGitHubAuthorInfo?this.state.gitHubName:this.state.manualName,readOnly:this.state.useGitHubAuthorInfo,autoFocus:!0}),this.state.useGitHubAuthorInfo?this.renderGitHubInfo():this.renderGitConfigForm()),ke.createElement(rx,null,ke.createElement(Ss,{type:"submit"},this.props.saveLabel||"Save"),this.props.children))}onSelectedGitHubEmailChange=e=>{const t=e.currentTarget.value;t&&this.setState({gitHubEmail:t})};onLockFileDeleted=()=>{this.setState({existingLockFilePath:void 0})};onLockFileDeleteError=e=>{log.error("Failed to unlink config lock file",e),this.setState({existingLockFilePath:void 0})};onUseGitHubInfoSelected=()=>{this.setState({useGitHubAuthorInfo:!0})};onUseGitConfigInfoSelected=()=>{this.setState({useGitHubAuthorInfo:!1})};onNameChange=e=>{this.setState({manualName:e})};onEmailChange=e=>{this.setState({manualEmail:e})};save=async()=>{const{manualName:e,manualEmail:t,useGitHubAuthorInfo:n,gitHubName:r,gitHubEmail:s}=this.state,i=n?r:e,o=n?s:t;try{i.length>0&&i!==this.props.globalUserName&&await im("user.name",i),o.length>0&&o!==this.props.globalUserEmail&&await im("user.email",o)}catch(e){if(Kd(e)){const t=Xd(e.result);if(null!==t)return void this.setState({existingLockFilePath:t})}}this.props.onSave&&this.props.onSave()}}class yB extends ke.Component{render(){return ke.createElement("section",{id:"configure-git","aria-label":"Configure Git"},ke.createElement("h1",{className:"welcome-title"},"Configure Git"),ke.createElement("p",{className:"welcome-text"},"This is used to identify the commits you create. Anyone will be able to see this information if you publish commits."),ke.createElement(gB,{accounts:this.props.accounts,onSave:this.props.done,saveLabel:"Finish",globalUserName:this.props.globalUserName,globalUserEmail:this.props.globalUserEmail},ke.createElement(Ss,{onClick:this.cancel},"Cancel")))}cancel=()=>{this.props.advance(wB.Start)}}var wB;!function(e){e.Start="Start",e.SignInToDotComWithBrowser="SignInToDotComWithBrowser",e.SignInToEnterprise="SignInToEnterprise",e.ConfigureGit="ConfigureGit"}(wB||(wB={}));const bB=Ft(__dirname,"static/welcome-illustration-right.svg"),CB=Ft(__dirname,"static/welcome-illustration-left-top.svg"),vB=Ft(__dirname,"static/welcome-illustration-left-bottom.svg");class SB extends ke.Component{constructor(e){super(e),this.state={currentStep:wB.Start,exiting:!1}}componentWillReceiveProps(e){this.advanceOnSuccessfulSignIn(e)}componentDidMount(){this.props.dispatcher.recordWelcomeWizardInitiated(),this.refreshGlobalGitAuthorInfo()}refreshGlobalGitAuthorInfo(){Promise.all([tm("user.name"),tm("user.email")]).then((([e,t])=>{this.setState({globalUserName:e??void 0,globalUserEmail:t??void 0})})).catch((e=>{log.error("[Welcome] error while fetching global user config",e)}))}get inSignInStep(){return this.state.currentStep===wB.SignInToDotComWithBrowser||this.state.currentStep===wB.SignInToEnterprise}advanceOnSuccessfulSignIn(e){this.inSignInStep?this.props.signInState?e.signInState?this.props.signInState.kind!==e.signInState.kind?e.signInState.kind===gT.Success&&(this.advanceToStep(wB.ConfigureGit),this.props.dispatcher.resetSignInState()):log.info(`[Welcome] kind ${this.props.signInState.kind} is the same as ${e.signInState.kind}. ignoring...`):log.info("[Welcome] next sign in state not found. ignoring..."):log.info("[Welcome] current sign in state not found. ignoring..."):log.info("[Welcome] no sign in step found. ignoring...")}getComponentForCurrentStep(){const e=this.state.currentStep,t=this.props.signInState;switch(e){case wB.Start:case wB.SignInToDotComWithBrowser:const n=e===wB.SignInToDotComWithBrowser&&null!==t&&t.kind===gT.Authentication&&t.loading;return ke.createElement(uB,{advance:this.advanceToStep,dispatcher:this.props.dispatcher,loadingBrowserAuth:n});case wB.SignInToEnterprise:return ke.createElement(mB,{dispatcher:this.props.dispatcher,advance:this.advanceToStep,signInState:t});case wB.ConfigureGit:return ke.createElement(yB,{advance:this.advanceToStep,accounts:this.props.accounts,done:this.done,globalUserName:this.state.globalUserName,globalUserEmail:this.state.globalUserEmail});default:return at(0,`Unknown welcome step: ${e}`)}}advanceToStep=e=>{log.info(`[Welcome] advancing to step: ${e}`),e===wB.SignInToEnterprise&&this.props.dispatcher.beginEnterpriseSignIn(),e===wB.ConfigureGit&&this.refreshGlobalGitAuthorInfo(),this.setState({currentStep:e})};done=()=>{this.setState({exiting:!0},(()=>{setTimeout((()=>{this.props.dispatcher.endWelcomeFlow()}),250)}))};render(){const e=hs()({exiting:this.state.exiting});return ke.createElement(fx,{id:"welcome",className:e},ke.createElement("div",{className:"welcome-left"},ke.createElement("div",{className:"welcome-content"},this.getComponentForCurrentStep(),ke.createElement("img",{className:"welcome-graphic-top",src:CB,alt:""}),ke.createElement("img",{className:"welcome-graphic-bottom",src:vB,alt:""}))),ke.createElement("div",{className:"welcome-right"},ke.createElement("img",{className:"welcome-graphic",src:bB,alt:""})))}}class EB extends ke.Component{banner=ke.createRef();focusTimeoutId=null;dismissalTimeoutId=null;render(){const e=hs()("banner",this.props.className);return ke.createElement("div",{id:this.props.id,className:e,ref:this.banner},ke.createElement("div",{className:"contents"},this.props.children),this.renderCloseButton())}renderCloseButton(){const{dismissable:e,onDismissed:t}=this.props;return!1===e?null:ke.createElement("div",{className:"close"},ke.createElement("button",{onClick:t,"aria-label":"Dismiss this message"},ke.createElement(Rs,{symbol:Ru})))}componentDidMount(){this.focusTimeoutId=window.setTimeout((()=>{this.focusOnFirstSuitableElement()}),200),this.addDismissalFocusListeners()}componentWillUnmount(){null!==this.focusTimeoutId&&(window.clearTimeout(this.focusTimeoutId),this.focusTimeoutId=null),this.removeDismissalFocusListeners()}focusOnFirstSuitableElement=()=>{const e=this.banner.current?.querySelector("a")||this.banner.current?.querySelector("button");e?.focus()};addDismissalFocusListeners(){this.banner.current?.addEventListener("focusin",this.onFocusIn),this.banner.current?.addEventListener("focusout",this.onFocusOut)}removeDismissalFocusListeners(){this.banner.current?.removeEventListener("focusout",this.onFocusOut),this.banner.current?.removeEventListener("focusin",this.onFocusIn)}onFocusIn=()=>{null!==this.dismissalTimeoutId&&(window.clearTimeout(this.dismissalTimeoutId),this.dismissalTimeoutId=null)};onFocusOut=async e=>{const{dismissable:t,onDismissed:n,timeout:r}=this.props;e.relatedTarget&&this.banner.current?.contains(e.relatedTarget)||!1!==t&&void 0!==r&&(this.dismissalTimeoutId=window.setTimeout((()=>{n()}),r))}}const kB="https://desktop.github.com/release-notes/";class RB extends ke.Component{render(){return ke.createElement(EB,{id:"update-available",className:this.props.prioritizeUpdate?"priority":void 0,dismissable:!this.props.prioritizeUpdate,onDismissed:this.onDismissed},this.renderIcon(),this.renderMessage())}onDismissed=()=>{if(this.props.isUpdateShowcaseVisible)return this.dismissUpdateShowCaseVisibility();this.props.onDismissed()};renderIcon(){return this.props.isUpdateShowcaseVisible?null:this.props.prioritizeUpdate?ke.createElement(Rs,{className:"warning-icon",symbol:xs}):ke.createElement(Rs,{className:"download-icon",symbol:Wi})}renderMessage=()=>{if(this.props.isX64ToARM64ImmediateAutoUpdate)return ke.createElement("span",{onSubmit:this.updateNow},"An optimized version of GitHub Desktop is available for your"," ","Arm64"," machine and will be installed at the next launch or"," ",ke.createElement(sM,{onClick:this.updateNow},"重启 GitHub Desktop")," ","now.");if(this.props.isUpdateShowcaseVisible){const e=null!==this.props.newReleases?` with GitHub Desktop ${this.props.newReleases[0].latestVersion}`:"";return ke.createElement("span",null,ke.createElement("span",{"aria-hidden":"true"},ke.createElement(WI,{className:"banner-emoji",text:":tada:",emoji:this.props.emoji})),"Exciting new features have been added",e,". See"," ",ke.createElement(sM,{onClick:this.showReleaseNotes},"更新内容")," 或"," ",ke.createElement(sM,{onClick:this.dismissUpdateShowCaseVisibility},"dismiss"),".")}return this.props.prioritizeUpdate?ke.createElement("span",{onSubmit:this.updateNow},"This version of GitHub Desktop is missing"," ",this.props.prioritizeUpdateInfoUrl?ke.createElement(sM,{uri:this.props.prioritizeUpdateInfoUrl},"important updates"):"important updates",". Please"," ",ke.createElement(sM,{onClick:this.updateNow},"重启 GitHub Desktop")," ","now to install pending updates."):ke.createElement("span",{onSubmit:this.updateNow}," GitHub Desktop 有新版本可用,将在下次启动时安装。查看"," ",ke.createElement(sM,{onClick:this.showReleaseNotes},"更新内容")," 或"," ",ke.createElement(sM,{onClick:this.updateNow},"重启 GitHub Desktop"),".")};dismissUpdateShowCaseVisibility=()=>{const e=null===this.props.newReleases?"3.5.3":this.props.newReleases[0].latestVersion;localStorage.setItem(hn,e),this.props.dispatcher.setUpdateShowCaseVisibility(!1)};showReleaseNotes=()=>{null==this.props.newReleases?ut.openExternal(kB):this.props.dispatcher.showPopup({type:Sh.ReleaseNotes,newReleases:this.props.newReleases}),this.dismissUpdateShowCaseVisibility()};updateNow=()=>{dn.quitAndInstallUpdate()}}class AB extends ke.Component{openDialog=()=>{this.props.onDismissed(),this.props.dispatcher.showPopup(this.props.popup),this.props.dispatcher.incrementMetric("mergeConflictsDialogReopenedCount")};render(){return ke.createElement(EB,{id:"merge-conflicts-banner",dismissable:!1,onDismissed:this.props.onDismissed},ke.createElement(Rs,{className:"alert-icon",symbol:xs}),ke.createElement("div",{className:"banner-message"},ke.createElement("span",null,"Resolve conflicts and commit to merge into"," ",ke.createElement("strong",null,this.props.ourBranch),"."),ke.createElement(sM,{onClick:this.openDialog},"View conflicts")))}}class TB extends ke.Component{undo=()=>{this.props.onDismissed(),void 0!==this.props.onUndo&&this.props.onUndo()};renderUndo=()=>{if(void 0!==this.props.onUndo)return ke.createElement(sM,{onClick:this.undo},"Undo")};render(){return ke.createElement(EB,{id:"successful",timeout:this.props.timeout,onDismissed:this.props.onDismissed},ke.createElement("div",{className:"green-circle"},ke.createElement(Rs,{className:"check-icon",symbol:ai})),ke.createElement("div",{className:"banner-message"},ke.createElement("span",{className:"success-contents"},this.props.children),this.renderUndo()))}}function xB({ourBranch:e,theirBranch:t,onDismissed:n}){const r=void 0!==t?ke.createElement("span",null,"成功合并 ",ke.createElement("strong",null,t)," 到 ",ke.createElement("strong",null,e)):ke.createElement("span",null,"Successfully merged into ",ke.createElement("strong",null,e));return ke.createElement(TB,{timeout:5e3,onDismissed:n},ke.createElement("div",{className:"banner-message"},r))}class DB extends ke.Component{openDialog=async()=>{this.props.onDismissed(),this.props.onOpenDialog(),this.props.dispatcher.incrementMetric("rebaseConflictsDialogReopenedCount")};onDismissed=()=>{log.warn("[RebaseConflictsBanner] this is not dismissable by default unless the user clicks on the link")};render(){return ke.createElement(EB,{id:"rebase-conflicts-banner",dismissable:!1,onDismissed:this.onDismissed},ke.createElement(Rs,{className:"alert-icon",symbol:xs}),ke.createElement("div",{className:"banner-message"},ke.createElement("span",null,"Resolve conflicts to continue rebasing"," ",ke.createElement("strong",null,this.props.targetBranch),"."),ke.createElement(sM,{onClick:this.openDialog},"View conflicts")))}}function MB({baseBranch:e,targetBranch:t,onDismissed:n}){const r=void 0!==e?ke.createElement("span",null,"Successfully rebased ",ke.createElement("strong",null,t)," onto ",ke.createElement("strong",null,e)):ke.createElement("span",null,"Successfully rebased ",ke.createElement("strong",null,t));return ke.createElement(TB,{timeout:5e3,onDismissed:n},ke.createElement("div",{className:"banner-message"},r))}function PB({ourBranch:e,theirBranch:t,onDismissed:n}){const r=void 0!==t?ke.createElement("span",null,ke.createElement("strong",null,e)," is already up to date with ",ke.createElement("strong",null,t)):ke.createElement("span",null,ke.createElement("strong",null,e)," is already up to date");return ke.createElement(EB,{id:"successful-merge",timeout:5e3,onDismissed:n},ke.createElement("div",{className:"green-circle"},ke.createElement(Rs,{className:"check-icon",symbol:ii})),ke.createElement("div",{className:"banner-message"},r))}class IB extends ke.Component{render(){const{countCherryPicked:e,onDismissed:t,onUndo:n,targetBranchName:r}=this.props,s=1===e?"commit":"commits";return ke.createElement(TB,{timeout:15e3,onDismissed:t,onUndo:n},ke.createElement("span",null,"Successfully copied ",e," ",s," to"," ",ke.createElement("strong",null,r),"."))}}class _B extends ke.Component{openDialog=async()=>{this.props.onDismissed(),this.props.onOpenConflictsDialog()};onDismissed=()=>{log.warn("[CherryPickConflictsBanner] this is not dismissable by default unless the user clicks on the link")};render(){return ke.createElement(EB,{id:"cherry-pick-conflicts-banner",dismissable:!1,onDismissed:this.onDismissed},ke.createElement(Rs,{className:"alert-icon",symbol:xs}),ke.createElement("div",{className:"banner-message"},ke.createElement("span",null,"Resolve conflicts to continue cherry-picking onto"," ",ke.createElement("strong",null,this.props.targetBranchName),"."),ke.createElement(sM,{onClick:this.openDialog},"View conflicts")))}}class FB extends ke.Component{render(){const{countCherryPicked:e,targetBranchName:t,onDismissed:n}=this.props,r=1===e?"commit":"commits";return ke.createElement(TB,{timeout:5e3,onDismissed:n},"Cherry-pick undone. Successfully removed the ",e," copied ",r," 自 ",ke.createElement("strong",null,t),".")}}class NB extends ke.Component{render(){return ke.createElement(EB,{id:"open-thank-you-card",onDismissed:this.props.onDismissed},ke.createElement("form",{onSubmit:this.props.onOpenCard},"The Desktop team would like to thank you for your contributions."," ",ke.createElement(sM,{onClick:this.props.onOpenCard},"Open Your Card")," ",ke.createElement(WI,{className:"thank-you-banner-emoji",text:":tada:",emoji:this.props.emoji,renderUrlsAsLinks:!0}),"or"," ",ke.createElement(sM,{onClick:this.onThrowCardAway},"Throw It Away")," ",ke.createElement(WI,{className:"thank-you-banner-emoji",text:":sob:",emoji:this.props.emoji,renderUrlsAsLinks:!0})))}onThrowCardAway=()=>{this.props.onDismissed(),this.props.onThrowCardAway()}}class OB extends ke.Component{render(){const{count:e,onDismissed:t,onUndo:n}=this.props,r=1===e?"commit":"commits";return ke.createElement(TB,{timeout:15e3,onDismissed:t,onUndo:n},ke.createElement("span",null,"Successfully squashed ",e," ",r,"."))}}class LB extends ke.Component{openDialog=async()=>{this.props.onDismissed(),this.props.onOpenConflictsDialog()};onDismissed=()=>{log.warn("[ConflictsBanner] This cannot be dismissed by default unless the user clicks on the link")};render(){return ke.createElement(EB,{id:"conflicts-found-banner",dismissable:!1,onDismissed:this.onDismissed},ke.createElement(Rs,{className:"alert-icon",symbol:xs}),ke.createElement("div",{className:"banner-message"},ke.createElement("span",null,"Resolve conflicts to continue ",this.props.operationDescription,"."),ke.createElement(sM,{onClick:this.openDialog},"View conflicts")))}}const BB="unsupported-os-banner-dismissed-at";class HB extends ke.Component{onDismissed=()=>{Yt(BB,Date.now()),this.props.onDismissed()};render(){return ke.createElement(EB,{id:"os-not-supported-banner",dismissable:!0,onDismissed:this.onDismissed},ke.createElement(Rs,{className:"alert-icon",symbol:xs}),"This operating system is no longer supported. Software updates have been disabled.",ke.createElement(sM,{uri:"https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/overview/supported-operating-systems"},"Support details"))}}var UB;!function(e){e[e.DotCom=0]="DotCom",e[e.Enterprise=1]="Enterprise"}(UB||(UB={}));class ZB extends ke.Component{render(){const{accounts:e}=this.props,t=e.find(wn);return ke.createElement(vM,{className:"accounts-tab"},ke.createElement("h2",null,"GitHub.com"),t?this.renderAccount(t,UB.DotCom):this.renderSignIn(UB.DotCom),ke.createElement("h2",null,"GitHub Enterprise"),this.renderMultipleEnterpriseAccounts())}renderSingleEnterpriseAccount(){const e=this.props.accounts.find(bn);return e?this.renderAccount(e,UB.Enterprise):this.renderSignIn(UB.Enterprise)}renderMultipleEnterpriseAccounts(){const e=this.props.accounts.filter(bn);return ke.createElement(ke.Fragment,null,e.map((e=>this.renderAccount(e,UB.Enterprise))),0===e.length?this.renderSignIn(UB.Enterprise):ke.createElement(Ss,{onClick:this.props.onEnterpriseSignIn},"Add GitHub Enteprise account"))}renderAccount(e,t){const n={name:e.name,email:qb(e),avatarURL:e.avatarURL,endpoint:e.endpoint},r=t===UB.DotCom?kM:void 0;return ke.createElement(rx,{className:"account-info"},ke.createElement("div",{className:"user-info-container"},ke.createElement(CM,{accounts:this.props.accounts,user:n}),ke.createElement("div",{className:"user-info"},bn(e)?ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"account-title"},e.name===e.login?`@${e.login}`:`@${e.login} (${e.name})`),ke.createElement("div",{className:"endpoint"},ir(e.endpoint))):ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"name"},e.name),ke.createElement("div",{className:"login"},"@",e.login)))),ke.createElement(Ss,{onClick:this.logout(e),className:r},"退出"))}onDotComSignIn=()=>{this.props.onDotComSignIn()};onEnterpriseSignIn=()=>{this.props.onEnterpriseSignIn()};renderSignIn(e){const t="Sign into";switch(e){case UB.DotCom:return ke.createElement($M,{actionTitle:t+" GitHub.com",onAction:this.onDotComSignIn,buttonClassName:kM},ke.createElement("div",null,"登录您的GitHub.com帐户访问您的存储库。"));case UB.Enterprise:return ke.createElement($M,{actionTitle:t+" GitHub Enterprise",onAction:this.onEnterpriseSignIn},ke.createElement("div",null,"If you are using GitHub Enterprise at work, sign in to it to get access to your repositories."));default:return at(0,`Unknown sign in type: ${e}`)}}logout=e=>()=>{this.props.onLogout(e)}}class $B extends ke.Component{constructor(e){super(e),this.state={optOutOfUsageTracking:this.props.optOutOfUsageTracking,canUseWindowsSSH:!1,useExternalCredentialHelper:this.props.useExternalCredentialHelper}}componentDidMount(){this.checkSSHAvailability()}async checkSSHAvailability(){this.setState({canUseWindowsSSH:await bd()})}onReportingOptOutChanged=e=>{const t=!e.currentTarget.checked;this.setState({optOutOfUsageTracking:t}),this.props.onOptOutofReportingChanged(t)};onUseExternalCredentialHelperChanged=e=>{const t=e.currentTarget.checked;this.setState({useExternalCredentialHelper:t}),this.props.onUseExternalCredentialHelperChanged(t)};onRepositoryIndicatorsEnabledChanged=e=>{this.props.onRepositoryIndicatorsEnabledChanged(e.currentTarget.checked)};onUseWindowsOpenSSHChanged=e=>{this.props.onUseWindowsOpenSSHChanged(e.currentTarget.checked)};reportDesktopUsageLabel(){return ke.createElement("span",null,"帮助GitHub Desktop改进允许提交"," ",ke.createElement(sM,{uri:PT},"使用状态"))}render(){return ke.createElement(vM,null,ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",null,"后台更新"),ke.createElement(vx,{label:"在仓库列表中显示状态图标",value:this.props.repositoryIndicatorsEnabled?Cx.On:Cx.Off,onChange:this.onRepositoryIndicatorsEnabledChanged,ariaDescribedBy:"periodic-fetch-description"}),ke.createElement("div",{id:"periodic-fetch-description",className:"git-settings-description"},ke.createElement("p",null,"这些图标表示哪些仓库有本地或远程更改,并且需要定期获取当前未选中的仓库。"),ke.createElement("p",null,"关闭此功能不会停止当前所选仓库的定期获取,但可能会提高拥有多个仓库的用户的整体应用性能。"))),ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",null,"使用情况"),ke.createElement(vx,{label:this.reportDesktopUsageLabel(),value:this.state.optOutOfUsageTracking?Cx.Off:Cx.On,onChange:this.onReportingOptOutChanged})),ke.createElement("h2",null,"Network and credentials"),this.renderSSHSettings(),ke.createElement("div",{className:"advanced-section"},ke.createElement(vx,{label:"使用Git凭证管理器",value:this.state.useExternalCredentialHelper?Cx.On:Cx.Off,onChange:this.onUseExternalCredentialHelperChanged,ariaDescribedBy:"use-external-credential-helper-description"}),ke.createElement("div",{id:"use-external-credential-helper-description",className:"git-settings-description"},ke.createElement("p",null,"使用"," ",ke.createElement(sM,{uri:"https://gh.io/gcm"},"Git凭证管理器"," ")," ","用于GitHub.com之外的私有仓库。此功能仍处于实验阶段可能会发生变化。"))))}renderSSHSettings(){return this.state.canUseWindowsSSH?ke.createElement("div",{className:"advanced-section"},ke.createElement(vx,{label:"使用系统OpenSSH(推荐)",value:this.props.useWindowsOpenSSH?Cx.On:Cx.Off,onChange:this.onUseWindowsOpenSSHChanged})):null}}class WB extends ke.Component{render(){return ke.createElement(vM,null,this.renderGitConfigAuthorInfo(),this.renderDefaultBranchSetting())}renderGitConfigAuthorInfo(){return ke.createElement(YM,{email:this.props.email,name:this.props.name,isLoadingGitConfig:this.props.isLoadingGitConfig,accounts:this.props.accounts,onEmailChanged:this.props.onEmailChanged,onNameChanged:this.props.onNameChanged})}renderDefaultBranchSetting(){return ke.createElement("div",{className:"default-branch-component"},ke.createElement("h2",{id:"default-branch-heading"},"新建存储库时默认分支"),ke.createElement(tB,{initialValue:this.props.defaultBranch,onValueChange:this.props.onDefaultBranchChanged,ariaLabelledBy:"default-branch-heading",ariaDescribedBy:"default-branch-description",warningMessageVerb:"saved"}),ke.createElement("p",{id:"default-branch-description",className:"git-settings-description"},"GitHub的默认分支名称是",ke.createElement(UM,null,"main"),"。您可能想更改它,由于不同的工作流程,或者您的集成仍然需要历史默认分支名称",ke.createElement(UM,null,"master"),"."),ke.createElement("p",{className:"git-settings-description"},"这个设置将"," ",ke.createElement(sM,{onClick:this.props.onEditGlobalGitConfig},"编辑您的全局Git配置文件"),"."))}}class VB extends ke.Component{constructor(e){super(e);const t=e.selectedTheme!==$p.System||Kp();this.state={selectedTheme:t?e.selectedTheme:null,selectedTabSize:e.selectedTabSize},t||this.initializeSelectedTheme()}async componentDidUpdate(e){if(e===this.props)return;const t=this.props.selectedTheme!==$p.System||Kp()?this.props.selectedTheme:await Gp(),n=this.props.selectedTabSize;this.setState({selectedTheme:t,selectedTabSize:n})}initializeSelectedTheme=async()=>{const e=await Gp(),t=this.props.selectedTabSize;this.setState({selectedTheme:e,selectedTabSize:t})};onSelectedThemeChanged=e=>{this.props.onSelectedThemeChanged(e)};onSelectedTabSizeChanged=e=>{this.props.onSelectedTabSizeChanged(parseInt(e.currentTarget.value))};renderThemeSwatch=e=>{const t=Ft(__dirname,"static/ghd_dark.svg"),n=Ft(__dirname,"static/ghd_light.svg");switch(e){case $p.Light:return ke.createElement("span",null,ke.createElement("img",{src:n,alt:""}),ke.createElement("span",{className:"theme-value-label"},"白昼"));case $p.Dark:return ke.createElement("span",null,ke.createElement("img",{src:t,alt:""}),ke.createElement("span",{className:"theme-value-label"},"暗夜"));case $p.System:return ke.createElement("span",null,ke.createElement("span",{className:"system-theme-swatch"},ke.createElement("img",{src:n,alt:""}),ke.createElement("img",{src:n,alt:""}),ke.createElement("img",{src:t,alt:""})),ke.createElement("span",{className:"theme-value-label"},"系统"))}};renderSelectedTheme(){const e=this.state.selectedTheme;if(null==e)return ke.createElement(rx,null,"加载系统主题");const t=[$p.Light,$p.Dark,...Kp()?[$p.System]:[]];return ke.createElement("div",{className:"appearance-section"},ke.createElement("h2",{id:"theme-heading"},"主题"),ke.createElement(GM,{ariaLabelledBy:"theme-heading",className:"theme-selector",selectedKey:e,radioButtonKeys:t,onSelectionChanged:this.onSelectedThemeChanged,renderRadioButtonLabelContents:this.renderThemeSwatch}))}renderSelectedTabSize(){return ke.createElement("div",{className:"appearance-section"},ke.createElement("h2",{id:"diff-heading"},"Diff"),ke.createElement(lM,{value:this.state.selectedTabSize.toString(),label:"Tab size",onChange:this.onSelectedTabSizeChanged},[1,2,3,4,5,6,8,10,12].map((e=>ke.createElement("option",{key:e,value:e},8===e?`${e} (default)`:e)))))}render(){return ke.createElement(vM,null,this.renderSelectedTheme(),this.renderSelectedTabSize())}}class qB extends ke.Component{pathInputRef=ke.createRef();constructor(e){super(e),this.state={path:e.path,arguments:e.arguments,isValidPath:!1,showNonValidPathWarning:!1,isValidArgs:!1,showNonValidArgsError:!1,showNoRepoPathArgError:!1}}focus(){this.pathInputRef.current?.focus()}render(){return ke.createElement("div",{className:"custom-integration-form-container"},ke.createElement("div",{className:"custom-integration-form-path-container"},ke.createElement(nx,{label:"Path",value:this.state.path,ref:this.pathInputRef,onValueChanged:this.onPathChanged,placeholder:"Path to executable",ariaDescribedBy:`${this.props.id}-custom-integration-path-error`}),ke.createElement(Ss,{onClick:this.onChoosePath},"选择…")),this.renderPathErrors(),ke.createElement(nx,{label:"Arguments",value:this.state.arguments,onValueChanged:this.onParamsChanged,placeholder:"Command line arguments",ariaDescribedBy:`${this.props.id}-custom-integration-args-error`}),this.renderArgsErrors())}renderPathErrors(){if(this.state.isValidPath||!this.state.showNonValidPathWarning)return null;const e="This path does not appear to be a valid executable.";return ke.createElement("div",{className:"custom-integration-form-error"},ke.createElement(eB,{id:`${this.props.id}-custom-integration-path-error`,trackedUserInput:this.state.path,ariaLiveMessage:e},e))}renderArgsErrors(){if(this.state.isValidArgs||!this.state.showNoRepoPathArgError&&!this.state.showNonValidArgsError)return null;const e=this.state.showNonValidArgsError?"These arguments are not valid.":`Arguments must include the target path placeholder (${Gm}).`;return ke.createElement("div",{className:"custom-integration-form-error"},ke.createElement(eB,{id:`${this.props.id}-custom-integration-args-error`,trackedUserInput:this.state.path,ariaLiveMessage:e},e))}onChoosePath=async()=>{const e=await de({properties:["openFile"]});null!==e&&this.updatePath(e)};async updatePath(e){this.setState({path:e,isValidPath:!1});const t=await Ym(e);this.setState({isValidPath:t.isValid,showNonValidPathWarning:!t.isValid}),t.isValid&&this.props.onPathChanged(e,t.bundleID)}onPathChanged=e=>{this.updatePath(e)};updateArguments(e){try{if(!Km(zm(e)))return void this.setState({arguments:e,isValidArgs:!1,showNonValidArgsError:!1,showNoRepoPathArgError:!0});this.setState({arguments:e,isValidArgs:!0,showNonValidArgsError:!1,showNoRepoPathArgError:!1}),this.props.onArgumentsChanged(e)}catch(t){log.error("Failed to parse custom integration arguments:",t),this.setState({arguments:e,isValidArgs:!1,showNonValidArgsError:!0,showNoRepoPathArgError:!1})}}onParamsChanged=e=>{this.updateArguments(e)}}const GB="other";class zB extends ke.Component{customEditorFormRef=ke.createRef();customShellFormRef=ke.createRef();constructor(e){super(e),this.state={selectedExternalEditor:this.props.selectedExternalEditor,selectedShell:this.props.selectedShell,useCustomEditor:this.props.useCustomEditor,customEditor:this.props.customEditor,useCustomShell:this.props.useCustomShell,customShell:this.props.customShell}}async componentWillReceiveProps(e){const t=e.availableEditors;let n=e.selectedExternalEditor;t.length&&-1===(n?t.indexOf(n):-1)&&(n=t[0],e.onSelectedEditorChanged(n));const r=e.availableShells;let s=e.selectedShell;r.length&&-1===r.indexOf(s)&&(s=r[0],e.onSelectedShellChanged(s)),this.setState({selectedExternalEditor:n,selectedShell:s,useCustomEditor:e.useCustomEditor,useCustomShell:e.useCustomShell,customShell:e.customShell,customEditor:e.customEditor})}componentDidMount(){{const{availableEditors:e,availableShells:t,useCustomEditor:n,useCustomShell:r}=this.props;0!==e.length||n||this.setSelectedEditor(GB),0!==t.length||r||this.setSelectedShell(GB)}}componentDidUpdate(e,t){!t.useCustomEditor&&this.state.useCustomEditor&&this.customEditorFormRef.current?.focus(),!t.useCustomShell&&this.state.useCustomShell&&this.customShellFormRef.current?.focus()}onSelectedEditorChanged=e=>{const t=e.currentTarget.value;t&&this.setSelectedEditor(t)};setSelectedEditor=e=>{e===GB?(this.setState({useCustomEditor:!0}),this.props.onUseCustomEditorChanged(!0)):(this.setState({useCustomEditor:!1,selectedExternalEditor:e}),this.props.onUseCustomEditorChanged(!1),this.props.onSelectedEditorChanged(e))};onSelectedShellChanged=e=>{const t=e.currentTarget.value;t&&this.setSelectedShell(t)};setSelectedShell=e=>{if(e===GB)this.setState({useCustomShell:!0}),this.props.onUseCustomShellChanged(!0);else{const t=Bw(e);this.setState({useCustomShell:!1,selectedShell:t}),this.props.onSelectedShellChanged(t),this.props.onUseCustomShellChanged(!1)}};renderExternalEditor(){const e=this.props.availableEditors,{selectedExternalEditor:t,useCustomEditor:n}=this.state;return ke.createElement(lM,{label:void 0,"aria-label":"外部编辑器",value:n?GB:t??void 0,onChange:this.onSelectedEditorChanged},e.map((e=>ke.createElement("option",{key:e,value:e},e))),ke.createElement("option",{key:GB,value:GB},"Configure custom editor…"))}renderNoExternalEditorHint(){return this.props.availableEditors.length>0?null:ke.createElement(rx,null,ke.createElement("div",{className:"no-options-found"},ke.createElement("span",null,"No other editors found."," ",ke.createElement(sM,{uri:Rm},"安装 ",km,"?"))))}renderCustomExternalEditor(){return ke.createElement(rx,null,ke.createElement(qB,{id:"custom-editor",ref:this.customEditorFormRef,path:this.state.customEditor.path??"",arguments:this.state.customEditor.arguments,onPathChanged:this.onCustomEditorPathChanged,onArgumentsChanged:this.onCustomEditorArgumentsChanged}))}onCustomEditorPathChanged=(e,t)=>{const n={path:e,bundleID:t,arguments:this.state.customEditor.arguments??[]};this.setState({customEditor:n}),this.props.onCustomEditorChanged(n)};onCustomEditorArgumentsChanged=e=>{const t={path:this.state.customEditor.path,bundleID:this.state.customEditor.bundleID,arguments:e};this.setState({customEditor:t}),this.props.onCustomEditorChanged(t)};renderSelectedShell(){const e=this.props.availableShells,{selectedShell:t,useCustomShell:n}=this.state;return ke.createElement(lM,{label:void 0,"aria-label":"Shell",value:n?GB:t,onChange:this.onSelectedShellChanged},e.map((e=>ke.createElement("option",{key:e,value:e},e))),ke.createElement("option",{key:GB,value:GB},"Configure custom shell…"))}renderCustomShell(){return ke.createElement(rx,null,ke.createElement(qB,{id:"custom-shell",ref:this.customShellFormRef,path:this.state.customShell.path,arguments:this.state.customShell.arguments,onPathChanged:this.onCustomShellPathChanged,onArgumentsChanged:this.onCustomShellArgumentsChanged}))}onCustomShellPathChanged=(e,t)=>{const n={path:e,bundleID:t,arguments:this.state.customShell.arguments??[]};this.setState({customShell:n}),this.props.onCustomShellChanged(n)};onCustomShellArgumentsChanged=e=>{const t={path:this.state.customShell.path??"",bundleID:this.state.customShell.bundleID,arguments:e};this.setState({customShell:t}),this.props.onCustomShellChanged(t)};render(){return ke.createElement(vM,null,ke.createElement("fieldset",null,ke.createElement("legend",null,ke.createElement("h2",null,"外部编辑器")),ke.createElement(rx,null,this.renderExternalEditor()),this.state.useCustomEditor&&this.renderCustomExternalEditor(),this.renderNoExternalEditorHint()),ke.createElement("fieldset",null,ke.createElement("legend",null,ke.createElement("h2",null,"Shell")),ke.createElement(rx,null,this.renderSelectedShell()),this.state.useCustomShell&&this.renderCustomShell()))}}class jB extends ke.Component{constructor(e){super(e),this.state={confirmRepositoryRemoval:this.props.confirmRepositoryRemoval,confirmDiscardChanges:this.props.confirmDiscardChanges,confirmDiscardChangesPermanently:this.props.confirmDiscardChangesPermanently,confirmDiscardStash:this.props.confirmDiscardStash,confirmCheckoutCommit:this.props.confirmCheckoutCommit,confirmForcePush:this.props.confirmForcePush,confirmUndoCommit:this.props.confirmUndoCommit,uncommittedChangesStrategy:this.props.uncommittedChangesStrategy,askForConfirmationOnCommitFilteredChanges:this.props.askForConfirmationOnCommitFilteredChanges}}onConfirmDiscardChangesChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmDiscardChanges:t}),this.props.onConfirmDiscardChangesChanged(t)};onConfirmDiscardChangesPermanentlyChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmDiscardChangesPermanently:t}),this.props.onConfirmDiscardChangesPermanentlyChanged(t)};onConfirmDiscardStashChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmDiscardStash:t}),this.props.onConfirmDiscardStashChanged(t)};onConfirmCheckoutCommitChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmCheckoutCommit:t}),this.props.onConfirmCheckoutCommitChanged(t)};onConfirmForcePushChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmForcePush:t}),this.props.onConfirmForcePushChanged(t)};onConfirmUndoCommitChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmUndoCommit:t}),this.props.onConfirmUndoCommitChanged(t)};onAskForConfirmationOnCommitFilteredChanges=e=>{const t=e.currentTarget.checked;this.setState({askForConfirmationOnCommitFilteredChanges:t}),this.props.onAskForConfirmationOnCommitFilteredChanges(t)};onConfirmRepositoryRemovalChanged=e=>{const t=e.currentTarget.checked;this.setState({confirmRepositoryRemoval:t}),this.props.onConfirmRepositoryRemovalChanged(t)};onUncommittedChangesStrategyChanged=e=>{this.setState({uncommittedChangesStrategy:e}),this.props.onUncommittedChangesStrategyChanged(e)};onShowCommitLengthWarningChanged=e=>{this.props.onShowCommitLengthWarningChanged(e.currentTarget.checked)};renderSwitchBranchOptionLabel=e=>{switch(e){case Ab.AskForConfirmation:return"询问我要更改的位置";case Ab.MoveToNewBranch:return"始终将我的更改带到我的新分支";case Ab.StashOnCurrentBranch:return"始终将更改保存并保留在当前分支上";default:return at(0,`Unknown uncommitted changes strategy: ${e}`)}};renderSwitchBranchOptions=()=>{const e=[Ab.AskForConfirmation,Ab.MoveToNewBranch,Ab.StashOnCurrentBranch],t=e.find((e=>e===this.state.uncommittedChangesStrategy))??Ab.AskForConfirmation;return ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",{id:"switch-branch-heading"},"如果我有更改并切换分支..."),ke.createElement(GM,{ariaLabelledBy:"switch-branch-heading",selectedKey:t,radioButtonKeys:e,onSelectionChanged:this.onUncommittedChangesStrategyChanged,renderRadioButtonLabelContents:this.renderSwitchBranchOptionLabel}))};renderCommittingFilteredChangesPrompt=()=>ke.createElement(vx,{label:"Committing changes hidden by filter",value:this.state.askForConfirmationOnCommitFilteredChanges?Cx.On:Cx.Off,onChange:this.onAskForConfirmationOnCommitFilteredChanges});render(){return ke.createElement(vM,null,ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",{id:"show-confirm-dialog-heading"},"确认对话框"),ke.createElement("div",{role:"group","aria-labelledby":"show-confirm-dialog-heading"},ke.createElement(vx,{label:"删除仓库",value:this.state.confirmRepositoryRemoval?Cx.On:Cx.Off,onChange:this.onConfirmRepositoryRemovalChanged}),ke.createElement(vx,{label:"放弃更改",value:this.state.confirmDiscardChanges?Cx.On:Cx.Off,onChange:this.onConfirmDiscardChangesChanged}),ke.createElement(vx,{label:"永久放弃更改",value:this.state.confirmDiscardChangesPermanently?Cx.On:Cx.Off,onChange:this.onConfirmDiscardChangesPermanentlyChanged}),ke.createElement(vx,{label:"放弃暂存",value:this.state.confirmDiscardStash?Cx.On:Cx.Off,onChange:this.onConfirmDiscardStashChanged}),ke.createElement(vx,{label:"检出提交",value:this.state.confirmCheckoutCommit?Cx.On:Cx.Off,onChange:this.onConfirmCheckoutCommitChanged}),ke.createElement(vx,{label:"强制推送",value:this.state.confirmForcePush?Cx.On:Cx.Off,onChange:this.onConfirmForcePushChanged}),ke.createElement(vx,{label:"撤消提交",value:this.state.confirmUndoCommit?Cx.On:Cx.Off,onChange:this.onConfirmUndoCommitChanged}),this.renderCommittingFilteredChangesPrompt())),this.renderSwitchBranchOptions(),ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",null,"提交长度"),ke.createElement(vx,{label:"显示提交长度警告",value:this.props.showCommitLengthWarning?Cx.On:Cx.Off,onChange:this.onShowCommitLengthWarningChanged})))}}class KB extends ke.Component{constructor(e){super(e),this.state={suggestGrantNotificationPermission:!1,warnNotificationsDenied:!1,suggestConfigureNotifications:!1}}componentDidMount(){this.updateNotificationsState()}onNotificationsEnabledChanged=e=>{this.props.onNotificationsEnabledChanged(e.currentTarget.checked)};render(){return ke.createElement(vM,null,ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",null,"通知"),ke.createElement(vx,{label:"启用通知",value:this.props.notificationsEnabled?Cx.On:Cx.Off,onChange:this.onNotificationsEnabledChanged}),ke.createElement("p",{className:"git-settings-description"},"允许在当前仓库中发生高级事件时显示通知。",this.renderNotificationHint())))}onGrantNotificationPermission=async()=>{await we(),this.updateNotificationsState()};async updateNotificationsState(){const e=await ye();this.setState({suggestGrantNotificationPermission:(0,AC.zP)()&&"default"===e,warnNotificationsDenied:"denied"===e,suggestConfigureNotifications:"granted"===e})}renderNotificationHint(){if(!(0,AC.xx)()||!this.props.notificationsEnabled)return null;const{suggestGrantNotificationPermission:e,warnNotificationsDenied:t,suggestConfigureNotifications:n}=this.state;if(e)return ke.createElement(ke.Fragment,null," ","你需要"," ",ke.createElement(sM,{onClick:this.onGrantNotificationPermission},"grant permission")," ","从GitHub DeskTop显示这些通知");const r=(0,AC.ce)();if(null===r)return null;if(t)return ke.createElement("div",{className:"setting-hint-warning"},ke.createElement("span",{className:"warning-icon"},"⚠️")," GitHub DeskTop没有显示通知的权限。请在设置中启用它们"," ",ke.createElement(sM,{uri:r},"通知设置"),".");const s=n?"properly configured":"允许";return ke.createElement(ke.Fragment,null," ","确认GitHub DeskTop ",s," 向你发出通知"," ",ke.createElement(sM,{uri:r},"通知设置"),".")}}class YB extends ke.Component{constructor(e){super(e)}render(){return ke.createElement(vM,null,ke.createElement("div",{className:"advanced-section"},ke.createElement("h2",null,"便捷"),ke.createElement(vx,{label:"链接加下划线",value:this.props.underlineLinks?Cx.On:Cx.Off,onChange:this.onUnderlineLinksChanged,ariaDescribedBy:"underline-setting-description"}),ke.createElement("p",{id:"underline-setting-description",className:"git-settings-description"},"启用后GitHub Desktop 会在提交信息、评论和其他文本字段中为链接加上下划线。这可以帮助更容易地区分链接。",this.renderExampleLink()),ke.createElement(vx,{label:"在差异中显示 √ 标记",value:this.props.showDiffCheckMarks?Cx.On:Cx.Off,onChange:this.onShowDiffCheckMarksChanged,ariaDescribedBy:"diff-checkmarks-setting-description"}),ke.createElement("p",{id:"diff-checkmarks-setting-description",className:"git-settings-description"},"启用后,在提交时 √ 标记会显示在差异视图中的行号和行号组旁边。禁用后,行号控件将不那么显眼。")))}renderExampleLink(){const e={textDecoration:this.props.underlineLinks?"underline":"none"};return ke.createElement("span",{className:"link-button-component",style:e},"这是一个示例链接")}onUnderlineLinksChanged=e=>{this.props.onUnderlineLinksChanged(e.currentTarget.checked)};onShowDiffCheckMarksChanged=e=>{this.props.onShowDiffCheckMarksChanged(e.currentTarget.checked)}}const XB={path:"",bundleID:void 0,arguments:Gm};class QB extends ke.Component{constructor(e){super(e),this.state={selectedIndex:this.props.initialSelectedTab||Gr.Accounts,committerName:"",committerEmail:"",defaultBranch:"",initialCommitterName:null,initialCommitterEmail:null,initialDefaultBranch:null,disallowedCharactersMessage:null,availableEditors:[],useCustomEditor:this.props.useCustomEditor,customEditor:this.props.customEditor??XB,useCustomShell:this.props.useCustomShell,customShell:this.props.customShell??XB,useWindowsOpenSSH:!1,showCommitLengthWarning:!1,notificationsEnabled:!0,optOutOfUsageTracking:!1,useExternalCredentialHelper:!1,confirmRepositoryRemoval:!1,confirmDiscardChanges:!1,confirmDiscardChangesPermanently:!1,confirmDiscardStash:!1,confirmCheckoutCommit:!1,confirmForcePush:!1,confirmUndoCommit:!1,askForConfirmationOnCommitFilteredChanges:!1,uncommittedChangesStrategy:Tb,selectedExternalEditor:this.props.selectedExternalEditor,availableShells:[],selectedShell:this.props.selectedShell,repositoryIndicatorsEnabled:this.props.repositoryIndicatorsEnabled,initiallySelectedTheme:this.props.selectedTheme,initiallySelectedTabSize:this.props.selectedTabSize,isLoadingGitConfig:!0,underlineLinks:this.props.underlineLinks,showDiffCheckMarks:this.props.showDiffCheckMarks}}async componentWillMount(){const e=await tm("user.name"),t=await tm("user.email"),n=await Qg();let r=e,s=t;if(!r||!s){const{accounts:e}=this.props,t=e.find(wn)??e.at(0);t&&(r||(r=t.login),s||(s=qb(t)))}r=r||"",s=s||"";const[i,o]=await Promise.all([Wm(),Hw()]),a=i.map((e=>e.editor))??null,l=o.map((e=>e.shell))??null;this.setState({committerName:r,committerEmail:s,defaultBranch:n,initialCommitterName:e,initialCommitterEmail:t,initialDefaultBranch:n,useWindowsOpenSSH:this.props.useWindowsOpenSSH,showCommitLengthWarning:this.props.showCommitLengthWarning,notificationsEnabled:this.props.notificationsEnabled,optOutOfUsageTracking:this.props.optOutOfUsageTracking,useExternalCredentialHelper:this.props.useExternalCredentialHelper,confirmRepositoryRemoval:this.props.confirmRepositoryRemoval,confirmDiscardChanges:this.props.confirmDiscardChanges,confirmDiscardChangesPermanently:this.props.confirmDiscardChangesPermanently,confirmDiscardStash:this.props.confirmDiscardStash,confirmCheckoutCommit:this.props.confirmCheckoutCommit,confirmForcePush:this.props.confirmForcePush,confirmUndoCommit:this.props.confirmUndoCommit,askForConfirmationOnCommitFilteredChanges:this.props.askForConfirmationOnCommitFilteredChanges,uncommittedChangesStrategy:this.props.uncommittedChangesStrategy,availableShells:l,availableEditors:a,useCustomEditor:this.props.useCustomEditor,customEditor:this.props.customEditor??XB,useCustomShell:this.props.useCustomShell,customShell:this.props.customShell??XB,isLoadingGitConfig:!1})}onCancel=()=>{this.state.initiallySelectedTheme!==this.props.selectedTheme&&this.onSelectedThemeChanged(this.state.initiallySelectedTheme),this.state.initiallySelectedTabSize!==this.props.selectedTabSize&&this.onSelectedTabSizeChanged(this.state.initiallySelectedTabSize),this.props.onDismissed()};render(){return ke.createElement(AM,{id:"preferences",title:"选项",onDismissed:this.onCancel,onSubmit:this.onSave},ke.createElement("div",{className:"preferences-container"},this.renderDisallowedCharactersError(),ke.createElement(LM,{onTabClicked:this.onTabClicked,selectedIndex:this.state.selectedIndex,type:NM.Vertical},ke.createElement("span",{id:this.getTabId(Gr.Accounts)},ke.createElement(Rs,{className:"icon",symbol:Ca}),"帐户"),ke.createElement("span",{id:this.getTabId(Gr.Integrations)},ke.createElement(Rs,{className:"icon",symbol:Ml}),"集成"),ke.createElement("span",{id:this.getTabId(Gr.Git)},ke.createElement(Rs,{className:"icon",symbol:sa}),"Git"),ke.createElement("span",{id:this.getTabId(Gr.Appearance)},ke.createElement(Rs,{className:"icon",symbol:El}),"主题"),ke.createElement("span",{id:this.getTabId(Gr.Notifications)},ke.createElement(Rs,{className:"icon",symbol:Ws}),"通知"),ke.createElement("span",{id:this.getTabId(Gr.Prompts)},ke.createElement(Rs,{className:"icon",symbol:ql}),"提示"),ke.createElement("span",{id:this.getTabId(Gr.Advanced)},ke.createElement(Rs,{className:"icon",symbol:ta}),"高级"),ke.createElement("span",{id:this.getTabId(Gr.Accessibility)},ke.createElement(Rs,{className:"icon",symbol:As}),"便捷")),this.renderActiveTab()),this.renderFooter())}getTabId=e=>{let t;switch(e){case Gr.Accounts:t="accounts";break;case Gr.Integrations:t="integrations";break;case Gr.Git:t="git";break;case Gr.Appearance:t="appearance";break;case Gr.Notifications:t="notifications";break;case Gr.Prompts:t="prompts";break;case Gr.Advanced:t="advanced";break;case Gr.Accessibility:t="accessibility";break;default:return at(0,`Unknown tab type: ${e}`)}return`preferences-tab-${t}`};onDotComSignIn=()=>{this.props.onDismissed(),this.props.dispatcher.showDotComSignInDialog()};onEnterpriseSignIn=()=>{this.props.onDismissed(),this.props.dispatcher.showEnterpriseSignInDialog()};onLogout=e=>{this.props.dispatcher.removeAccount(e)};renderDisallowedCharactersError(){const e=this.state.disallowedCharactersMessage;return null!=e?ke.createElement(TM,null,e):null}renderActiveTab(){const e=this.state.selectedIndex;let t;switch(e){case Gr.Accounts:t=ke.createElement(ZB,{accounts:this.props.accounts,onDotComSignIn:this.onDotComSignIn,onEnterpriseSignIn:this.onEnterpriseSignIn,onLogout:this.onLogout});break;case Gr.Integrations:t=ke.createElement(zB,{availableEditors:this.state.availableEditors,selectedExternalEditor:this.state.selectedExternalEditor,onSelectedEditorChanged:this.onSelectedEditorChanged,availableShells:this.state.availableShells,selectedShell:this.state.selectedShell,useCustomEditor:this.state.useCustomEditor,customEditor:this.state.customEditor,useCustomShell:this.state.useCustomShell,customShell:this.state.customShell,onSelectedShellChanged:this.onSelectedShellChanged,onUseCustomEditorChanged:this.onUseCustomEditorChanged,onCustomEditorChanged:this.onCustomEditorChanged,onUseCustomShellChanged:this.onUseCustomShellChanged,onCustomShellChanged:this.onCustomShellChanged});break;case Gr.Git:{const{existingLockFilePath:e}=this.state,n=void 0!==e?ke.createElement(TM,null,ke.createElement(fB,{lockFilePath:e,onLockFileDeleted:this.onLockFileDeleted,onError:this.onLockFileDeleteError})):null;t=ke.createElement(ke.Fragment,null,n,ke.createElement(WB,{name:this.state.committerName,email:this.state.committerEmail,accounts:this.props.accounts,defaultBranch:this.state.defaultBranch,onNameChanged:this.onCommitterNameChanged,onEmailChanged:this.onCommitterEmailChanged,onDefaultBranchChanged:this.onDefaultBranchChanged,isLoadingGitConfig:this.state.isLoadingGitConfig,onEditGlobalGitConfig:this.props.onEditGlobalGitConfig}));break}case Gr.Appearance:t=ke.createElement(VB,{selectedTheme:this.props.selectedTheme,onSelectedThemeChanged:this.onSelectedThemeChanged,selectedTabSize:this.props.selectedTabSize,onSelectedTabSizeChanged:this.onSelectedTabSizeChanged});break;case Gr.Notifications:t=ke.createElement(KB,{notificationsEnabled:this.state.notificationsEnabled,onNotificationsEnabledChanged:this.onNotificationsEnabledChanged});break;case Gr.Prompts:t=ke.createElement(jB,{confirmRepositoryRemoval:this.state.confirmRepositoryRemoval,confirmDiscardChanges:this.state.confirmDiscardChanges,confirmDiscardChangesPermanently:this.state.confirmDiscardChangesPermanently,confirmDiscardStash:this.state.confirmDiscardStash,confirmCheckoutCommit:this.state.confirmCheckoutCommit,confirmForcePush:this.state.confirmForcePush,confirmUndoCommit:this.state.confirmUndoCommit,askForConfirmationOnCommitFilteredChanges:this.state.askForConfirmationOnCommitFilteredChanges,onConfirmRepositoryRemovalChanged:this.onConfirmRepositoryRemovalChanged,onConfirmDiscardChangesChanged:this.onConfirmDiscardChangesChanged,onConfirmDiscardStashChanged:this.onConfirmDiscardStashChanged,onConfirmCheckoutCommitChanged:this.onConfirmCheckoutCommitChanged,onConfirmForcePushChanged:this.onConfirmForcePushChanged,onConfirmDiscardChangesPermanentlyChanged:this.onConfirmDiscardChangesPermanentlyChanged,onConfirmUndoCommitChanged:this.onConfirmUndoCommitChanged,onAskForConfirmationOnCommitFilteredChanges:this.onAskForConfirmationOnCommitFilteredChanges,uncommittedChangesStrategy:this.state.uncommittedChangesStrategy,onUncommittedChangesStrategyChanged:this.onUncommittedChangesStrategyChanged,showCommitLengthWarning:this.state.showCommitLengthWarning,onShowCommitLengthWarningChanged:this.onShowCommitLengthWarningChanged});break;case Gr.Advanced:t=ke.createElement($B,{useWindowsOpenSSH:this.state.useWindowsOpenSSH,optOutOfUsageTracking:this.state.optOutOfUsageTracking,useExternalCredentialHelper:this.state.useExternalCredentialHelper,repositoryIndicatorsEnabled:this.state.repositoryIndicatorsEnabled,onUseWindowsOpenSSHChanged:this.onUseWindowsOpenSSHChanged,onOptOutofReportingChanged:this.onOptOutofReportingChanged,onUseExternalCredentialHelperChanged:this.onUseExternalCredentialHelperChanged,onRepositoryIndicatorsEnabledChanged:this.onRepositoryIndicatorsEnabledChanged});break;case Gr.Accessibility:t=ke.createElement(YB,{underlineLinks:this.state.underlineLinks,showDiffCheckMarks:this.state.showDiffCheckMarks,onShowDiffCheckMarksChanged:this.onShowDiffCheckMarksChanged,onUnderlineLinksChanged:this.onUnderlineLinksChanged});break;default:return at(0,`Unknown tab index: ${e}`)}return ke.createElement("div",{className:"tab-container",role:"tabpanel","aria-labelledby":this.getTabId(e)},t)}onRepositoryIndicatorsEnabledChanged=e=>{this.setState({repositoryIndicatorsEnabled:e})};onLockFileDeleted=()=>{this.setState({existingLockFilePath:void 0})};onLockFileDeleteError=e=>{this.props.dispatcher.postError(e)};onUseWindowsOpenSSHChanged=e=>{this.setState({useWindowsOpenSSH:e})};onShowCommitLengthWarningChanged=e=>{this.setState({showCommitLengthWarning:e})};onNotificationsEnabledChanged=e=>{this.setState({notificationsEnabled:e})};onOptOutofReportingChanged=e=>{this.setState({optOutOfUsageTracking:e})};onUseExternalCredentialHelperChanged=e=>{this.setState({useExternalCredentialHelper:e})};onConfirmRepositoryRemovalChanged=e=>{this.setState({confirmRepositoryRemoval:e})};onConfirmDiscardChangesChanged=e=>{this.setState({confirmDiscardChanges:e})};onConfirmDiscardStashChanged=e=>{this.setState({confirmDiscardStash:e})};onConfirmCheckoutCommitChanged=e=>{this.setState({confirmCheckoutCommit:e})};onConfirmDiscardChangesPermanentlyChanged=e=>{this.setState({confirmDiscardChangesPermanently:e})};onConfirmForcePushChanged=e=>{this.setState({confirmForcePush:e})};onConfirmUndoCommitChanged=e=>{this.setState({confirmUndoCommit:e})};onAskForConfirmationOnCommitFilteredChanges=e=>{this.setState({askForConfirmationOnCommitFilteredChanges:e})};onUncommittedChangesStrategyChanged=e=>{this.setState({uncommittedChangesStrategy:e})};onCommitterNameChanged=e=>{this.setState({committerName:e,disallowedCharactersMessage:eP(e)?null:tP})};onCommitterEmailChanged=e=>{this.setState({committerEmail:e})};onDefaultBranchChanged=e=>{this.setState({defaultBranch:e})};onSelectedEditorChanged=e=>{this.setState({selectedExternalEditor:e})};onSelectedShellChanged=e=>{this.setState({selectedShell:e})};onUseCustomEditorChanged=e=>{this.setState({useCustomEditor:e})};onCustomEditorChanged=e=>{this.setState({customEditor:e})};onUseCustomShellChanged=e=>{this.setState({useCustomShell:e})};onCustomShellChanged=e=>{this.setState({customShell:e})};onSelectedThemeChanged=e=>{this.props.dispatcher.setSelectedTheme(e)};onUnderlineLinksChanged=e=>{this.setState({underlineLinks:e})};onShowDiffCheckMarksChanged=e=>{this.setState({showDiffCheckMarks:e})};onSelectedTabSizeChanged=e=>{this.props.dispatcher.setSelectedTabSize(e)};renderFooter(){const e=null!=this.state.disallowedCharactersMessage;return ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"保存",okButtonDisabled:e}))}onSave=async()=>{const{dispatcher:e}=this.props;try{let t=!1;this.state.committerName!==this.state.initialCommitterName&&(await im("user.name",this.state.committerName),t=!0),this.state.committerEmail!==this.state.initialCommitterEmail&&(await im("user.email",this.state.committerEmail),t=!0),null!==this.props.repository&&t&&e.refreshAuthor(this.props.repository),this.state.defaultBranch.length>0&&this.state.defaultBranch!==this.state.initialDefaultBranch&&await async function(e){return im(Xg,e)}(this.state.defaultBranch),this.props.repositoryIndicatorsEnabled!==this.state.repositoryIndicatorsEnabled&&e.setRepositoryIndicatorsEnabled(this.state.repositoryIndicatorsEnabled)}catch(t){if(Kd(t)){const e=Xd(t.result);if(null!==e)return void this.setState({existingLockFilePath:e,selectedIndex:Gr.Git})}return this.props.onDismissed(),void e.postError(t)}e.setUseWindowsOpenSSH(this.state.useWindowsOpenSSH),e.setShowCommitLengthWarning(this.state.showCommitLengthWarning),e.setNotificationsEnabled(this.state.notificationsEnabled),await e.setStatsOptOut(this.state.optOutOfUsageTracking,!1);const{useCustomEditor:t,customEditor:n,useCustomShell:r,customShell:s}=this.state,i=n&&await Xm(n);e.setUseCustomEditor(t&&i),i&&e.setCustomEditor(n);const o=s&&await Xm(s);e.setUseCustomShell(r&&o),o&&e.setCustomShell(s),this.props.useExternalCredentialHelper!==this.state.useExternalCredentialHelper&&e.setUseExternalCredentialHelper(this.state.useExternalCredentialHelper),await e.setConfirmRepoRemovalSetting(this.state.confirmRepositoryRemoval),await e.setConfirmForcePushSetting(this.state.confirmForcePush),await e.setConfirmDiscardStashSetting(this.state.confirmDiscardStash),await e.setConfirmCheckoutCommitSetting(this.state.confirmCheckoutCommit),await e.setConfirmUndoCommitSetting(this.state.confirmUndoCommit),await e.setConfirmCommitFilteredChanges(this.state.askForConfirmationOnCommitFilteredChanges),this.state.selectedExternalEditor&&await e.setExternalEditor(this.state.selectedExternalEditor),await e.setShell(this.state.selectedShell),await e.setConfirmDiscardChangesSetting(this.state.confirmDiscardChanges),await e.setConfirmDiscardChangesPermanentlySetting(this.state.confirmDiscardChangesPermanently),await e.setUncommittedChangesStrategySetting(this.state.uncommittedChangesStrategy),e.setUnderlineLinksSetting(this.state.underlineLinks),e.setDiffCheckMarksSetting(this.state.showDiffCheckMarks),this.props.onDismissed()};onTabClicked=e=>{this.setState({selectedIndex:e})}}class JB extends ke.Component{dialogContent=null;constructor(e){super(e),this.state={error:e.error,disabled:!1}}componentWillReceiveProps(e){const t=e.error;t!==this.state.error&&this.setState({error:t,disabled:!1})}showPreferencesDialog=()=>{this.props.onDismissed(),window.setTimeout((()=>{this.props.onShowPopup({type:Sh.Preferences})}),e$.exit)};onRetryAction=e=>{e.preventDefault(),this.props.onDismissed();const{error:t}=this.state;if(null!==t&&tH(t)){const{retryAction:e}=t.metadata;void 0!==e&&this.props.onRetryAction(e)}};renderErrorMessage(e){const t=eH(e);if(rH(t))return ke.createElement("p",{className:"monospace"},t.message);if(nH(t)&&t.result.gitError===ad.GitError.PushWithFileSizeExceedingLimit){const n=function(e){const t=Array.from(e.matchAll(/(^remote:\serror:\sFile\s)/gm)),n=Array.from(e.matchAll(/(;\sthis\sexceeds\sGitHub's\sfile\ssize\slimit\sof\s100.00\sMB)/gm));if(t.length!==n.length)return[];const r=[];for(let s=0;s<t.length;s++){const i=t[s],o=n[s];if(void 0===i.index||void 0===o.index)continue;const a=i.index+i[0].length,l=o.index;let c=e.slice(a,l);c=c.replace("is ","("),c+=")",r.push(c)}return r}(Wd(t.result.stderr));return ke.createElement(ke.Fragment,null,ke.createElement("p",null,e.message),n.length>0&&ke.createElement(ke.Fragment,null,ke.createElement("p",null,"Files that exceed the limit"),ke.createElement("ul",null,n.map((e=>ke.createElement("li",{key:e},e))))),ke.createElement("p",null,"See"," ",ke.createElement(sM,{uri:"https://gh.io/lfs"},"https://gh.io/lfs")," ","for more information on managing large files on GitHub"))}if(sH(t)){const e="https://github.com/features/copilot/plans";return ke.createElement(ke.Fragment,null,ke.createElement("p",null,t.message),ke.createElement("p",null,ke.createElement(sM,{uri:e},"Upgrade to increase your limit.")))}return ke.createElement("p",null,t.message)}getTitle(e){if(sH(e))return"Quota exceeded";if(function(e){const t=eH(e);return nH(t)?t.result.gitError:void 0}(e)===ad.GitError.PushWithFileSizeExceedingLimit)return"File size limit exceeded";switch(function(e){if(tH(e))return e.metadata.retryAction?.type}(e)){case pt.Clone:return"Clone failed";case pt.Push:return"Failed to push"}if(tH(e)){const{gitContext:t}=e.metadata;if("create-repository"===t?.kind)return"Failed creating repository"}return"Error"}renderContentAfterErrorMessage(e){if(!tH(e))return;const{retryAction:t}=e.metadata;return t&&t.type===pt.Clone?ke.createElement("p",null,"Would you like to retry cloning ",ke.createElement(UM,null,t.name),"?"):void 0}onDialogContentRef=e=>{this.dialogContent=e};scrollToBottomOfGitErrorMessage(){null!==this.dialogContent&&null!==this.state.error&&rH(eH(this.state.error))&&(this.dialogContent.scrollTop=this.dialogContent.scrollHeight)}componentDidMount(){this.scrollToBottomOfGitErrorMessage()}componentDidUpdate(e,t){t.error!==this.state.error&&this.scrollToBottomOfGitErrorMessage()}onCloseButtonClick=e=>{e.preventDefault(),this.props.onDismissed()};renderFooter(e){if(function(e){if(!tH(e))return!1;const{retryAction:t}=e.metadata;return void 0!==t&&t.type===pt.Clone}(e))return this.renderRetryCloneFooter();const t=eH(e);if(nH(t)){const{gitError:e}=t.result;if(null!==e&&jd(e))return this.renderOpenPreferencesFooter()}return this.renderDefaultFooter()}renderRetryCloneFooter(){return ke.createElement(xM,null,ke.createElement(DM,{okButtonText: "重试克隆",onOkButtonClick:this.onRetryAction,onCancelButtonClick:this.onCloseButtonClick}))}renderOpenPreferencesFooter(){return ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"关闭",onOkButtonClick:this.onCloseButtonClick,cancelButtonText: "打开选项",onCancelButtonClick:this.showPreferencesDialog}))}renderDefaultFooter(){return ke.createElement(MM,{onButtonClick:this.onCloseButtonClick})}render(){const e=this.state.error;return e?ke.createElement(AM,{id:"app-error",type:"error",key:"error",title:this.getTitle(e),backdropDismissable:!1,onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed,disabled:this.state.disabled,className:rH(this.state.error)?"raw-git-error":void 0,role:"alertdialog",ariaDescribedBy:"app-error-description"},ke.createElement(vM,{onRef:this.onDialogContentRef},ke.createElement("div",{id:"app-error-description"},this.renderErrorMessage(e),this.renderContentAfterErrorMessage(e))),this.renderFooter(e)):null}}function eH(e){return tH(e)?e.underlyingError:e}function tH(e){return e instanceof mt}function nH(e){return e instanceof Gd}function rH(e){if(!e)return!1;const t=eH(e);return t instanceof Gd&&t.isRawMessage}function sH(e){const t=eH(e);return t instanceof Wn&&t.isQuotaExceededError}class iH extends ke.Component{constructor(e){super(e),this.state={isPathUnsafe:!1,isTrustingPath:!1}}onTrustDirectory=async()=>{this.setState({isTrustingPath:!0});const{unsafePath:e}=this.state,{repository:t}=this.props;if(e){await om(e);const n=await vy(t.path);this.setState({isTrustingPath:!1}),"unsafe"!==n.kind&&this.checkAgain()}};async componentDidMount(){this.updateUnsafePathState()}async componentDidUpdate(e){e.repository.path!==this.props.repository.path&&this.updateUnsafePathState()}updateUnsafePathState=async()=>{const{path:e}=this.props.repository,t=await vy(e);e===this.props.repository.path&&this.setState({isPathUnsafe:"unsafe"===t.kind,unsafePath:"unsafe"===t.kind?t.path:void 0})};render(){const e=new Array,{isPathUnsafe:t,unsafePath:n}=this.state;return t?e.push(ke.createElement(Ss,{key:"trustDirectory",onClick:this.onTrustDirectory,type:"submit",disabled:this.state.isTrustingPath},this.state.isTrustingPath&&ke.createElement(zD,null),"Trust repository")):(e.push(ke.createElement(Ss,{key:"locate",onClick:this.locate,type:"submit"},"Locate…")),this.canCloneAgain()&&e.push(ke.createElement(Ss,{key:"clone-again",onClick:this.cloneAgain},"Clone Again"))),e.push(ke.createElement(Ss,{key:"remove",onClick:this.remove},"Remove")),t?ke.createElement(fx,{id:"missing-repository-view"},ke.createElement("div",{className:"title-container"},ke.createElement("div",{className:"title"},this.props.repository.name," is potentially unsafe"),ke.createElement("div",{className:"details"},ke.createElement("p",null,"The Git repository at ",ke.createElement(UM,null,n)," appears to be owned by another user on your machine. Adding untrusted repositories may automatically execute files in the repository."),ke.createElement("p",null,"If you trust the owner of the directory you can add an exception for this directory in order to continue."))),ke.createElement(rx,null,e)):ke.createElement(fx,{id:"missing-repository-view"},ke.createElement("div",{className:"title-container"},ke.createElement("div",{className:"title"},"Can't find \"",this.props.repository.name,'"'),ke.createElement("div",{className:"details"},"It was last seen at"," ",ke.createElement("span",{className:"path"},this.props.repository.path),"."," ",ke.createElement(sM,{onClick:this.checkAgain},"Check again."))),ke.createElement(rx,null,e))}canCloneAgain(){const e=this.props.repository.gitHubRepository;return e&&e.cloneURL}checkAgain=()=>{this.props.dispatcher.refreshRepository(this.props.repository)};remove=()=>{this.props.dispatcher.removeRepository(this.props.repository,!1)};locate=()=>{this.props.dispatcher.relocateRepository(this.props.repository)};cloneAgain=async()=>{const e=this.props.repository.gitHubRepository;if(!e)return;const t=e.cloneURL;if(t)try{await this.props.dispatcher.cloneAgain(t,this.props.repository.path)}catch(e){this.props.dispatcher.postError(e)}}}var oH=n(4521),aH=n.n(oH);class lH extends ke.Component{pathTextBoxRef=ke.createRef();constructor(e){super(e);const t=this.props.path?this.props.path:"";this.state={path:t,showNonGitRepositoryWarning:!1,isRepositoryBare:!1,isRepositoryUnsafe:!1,isTrustingRepository:!1}}onTrustDirectory=async()=>{this.setState({isTrustingRepository:!0});const{repositoryUnsafePath:e,path:t}=this.state;e&&await om(e),await this.validatePath(t),this.setState({isTrustingRepository:!1})};async updatePath(e){this.setState({path:e})}async validatePath(e){if(0===e.length)return this.setState({isRepositoryBare:!1,showNonGitRepositoryWarning:!1}),!1;const t=await vy(e),n="missing"!==t.kind&&"unsafe"!==t.kind,r="unsafe"===t.kind,s="bare"===t.kind,i=!n||s,o="unsafe"===t.kind?t.path:void 0;return this.setState((t=>e===t.path?{isRepositoryBare:s,isRepositoryUnsafe:r,showNonGitRepositoryWarning:i,repositoryUnsafePath:o}:null)),e.length>0&&n&&!s}buildBareRepositoryError(){if(!this.state.path.length||!this.state.showNonGitRepositoryWarning||!this.state.isRepositoryBare)return null;const e="This directory appears to be a bare repository. Bare repositories are not currently supported.";return{screenReaderMessage:e,displayedMessage:e}}buildRepositoryUnsafeError(){const{repositoryUnsafePath:e,path:t}=this.state;if(!this.state.path.length||!this.state.showNonGitRepositoryWarning||!this.state.isRepositoryUnsafe||void 0===e)return null;const n=t.replaceAll("\\","/");return{screenReaderMessage:"The Git repository appears to be owned by another user on your machine.\n Adding untrusted repositories may automatically execute files in the repository.\n If you trust the owner of the directory you can add an exception for this directory in order to continue.",displayedMessage:ke.createElement(ke.Fragment,null,ke.createElement("p",null,"The Git repository",e!==n&&ke.createElement(ke.Fragment,null," at ",ke.createElement(UM,null,e))," ","appears to be owned by another user on your machine. Adding untrusted repositories may automatically execute files in the repository."),ke.createElement("p",null,"If you trust the owner of the directory you can",ke.createElement(sM,{onClick:this.onTrustDirectory}," ","add an exception for this directory")," ","in order to continue."))}}buildNotAGitRepositoryError(){return this.state.path.length&&this.state.showNonGitRepositoryWarning?{screenReaderMessage:"This directory does not appear to be a Git repository. Would you like to create a repository here instead?",displayedMessage:ke.createElement(ke.Fragment,null,ke.createElement("p",null,"This directory does not appear to be a Git repository."),ke.createElement("p",null,"Would you like to"," ",ke.createElement(sM,{onClick:this.onCreateRepositoryClicked},"create a repository")," ","here instead?"))}:null}renderErrors(){const e=this.buildBareRepositoryError()??this.buildRepositoryUnsafeError()??this.buildNotAGitRepositoryError();return null===e?null:ke.createElement(rx,null,ke.createElement(eB,{id:"add-existing-repository-path-error",ariaLiveMessage:e.screenReaderMessage},e.displayedMessage))}render(){return ke.createElement(AM,{id:"add-existing-repository",title:"添加本地存储库",onSubmit:this.addRepository,onDismissed:this.props.onDismissed,loading:this.state.isTrustingRepository},ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement(nx,{ref:this.pathTextBoxRef,value:this.state.path,label:"本地路径",placeholder:"存储库路径",onValueChanged:this.onPathChanged,ariaDescribedBy:"add-existing-repository-path-error"}),ke.createElement(Ss,{onClick:this.showFilePicker},"选择…")),this.renderErrors()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"添加存储库"})))}onPathChanged=async e=>{this.state.path!==e&&this.updatePath(e)};showFilePicker=async()=>{const e=await de({properties:["createDirectory","openDirectory"]});null!==e&&this.updatePath(e)};resolvedPath(e){return t.resolve("/",aH()(e))}addRepository=async()=>{const{path:e}=this.state;if(!await this.validatePath(e))return void this.pathTextBoxRef.current?.focus();this.props.onDismissed();const{dispatcher:t}=this.props,n=this.resolvedPath(e),r=await t.addRepositories([n]);r.length>0&&(t.closeFoldout(Qe.Repository),t.selectRepository(r[0]),t.recordAddExistingRepository())};onCreateRepositoryClicked=()=>{this.props.onDismissed();const e=this.resolvedPath(this.state.path);return this.props.dispatcher.showPopup({type:Sh.CreateRepository,path:e})}}const cH=new RegExp(["\ud83c[\udf00-\udfff]","\ud83d[\udc00-\ude4f]","\ud83d[\ude80-\udeff]"].join("|"),"g");function uH(e){return e.replace(cH,"-").replace(/[^\w.-]/g,"-")}const hH=".gitignore",pH=t.join(__dirname,"static","gitignore");let dH=null;async function mH(){if(null!=dH)return dH;{const e=(await(0,w.readdir)(pH)).filter((e=>e.endsWith(hH)));dH=new Map;for(const n of e)dH.set(t.basename(n,hH),t.join(pH,n));return dH}}let fH=null;function gH(e,t,n){const r=new RegExp(`\\[${t}\\]`,"g"),s=e.replace(r,`{${t}}`),i=new RegExp(`\\{${t}\\}`,"g");return s.replace(i,n)}const yH="None",wH={name:"None",featured:!1,body:"",hidden:!1};class bH extends ke.Component{checkIsTopMostDialog=EM((()=>{this.updateReadMeExists(this.state.path,this.state.name),window.addEventListener("focus",this.onWindowFocus)}),(()=>{window.removeEventListener("focus",this.onWindowFocus)}));constructor(e){super(e);const n=this.props.initialPath?t.dirname(this.props.initialPath):null,r=this.props.initialPath?uH(t.basename(this.props.initialPath)):"";this.state={path:n,name:r,description:"",createWithReadme:!1,creating:!1,gitIgnoreNames:null,gitIgnore:yH,licenses:null,license:wH.name,isValidPath:null,isRepository:!1,readMeExists:!1,isSubFolderOfRepository:!1},null===n&&this.initializePath()}async componentDidMount(){this.checkIsTopMostDialog(this.props.isTopMost);const e=await async function(){const e=await mH();return Array.from(e.keys())}(),n=await async function(){if(null!=fH)return fH;{const e=t.join(__dirname,"static","available-licenses.json"),n=await(0,w.readFile)(e,"utf8"),r=JSON.parse(n);return fH=r.sort(((e,t)=>e.featured?-1:t.featured?1:e.name.localeCompare(t.name))),fH}}();this.setState({gitIgnoreNames:e,licenses:n});const r=this.state.path??await Zb();this.updateIsRepository(r,this.state.name),this.updateReadMeExists(r,this.state.name)}componentDidUpdate(){this.checkIsTopMostDialog(this.props.isTopMost)}componentWillUnmount(){this.checkIsTopMostDialog(!1)}initializePath=async()=>{const e=await Zb();this.setState((t=>null===t.path?{path:e}:null))};onPathChanged=async e=>{this.setState({path:e,isValidPath:null,isRepository:!1}),this.updateIsRepository(e,this.state.name),this.updateReadMeExists(e,this.state.name)};onNameChanged=e=>{const{path:t}=this.state;this.setState({name:e}),null!==t&&(this.updateIsRepository(t,e),this.updateReadMeExists(this.state.path,e))};async updateIsRepository(e,n){const r=t.join(e,uH(n)),s=await vy(r).catch((e=>(log.error("Unable to determine repository type",e),{kind:"missing"})));let i="missing"!==s.kind,o=!1;"unsafe"===s.kind&&(i=await Cy((0,t.join)(e,".git"))),"regular"===s.kind&&(i=s.topLevelWorkingDirectory===r,o=!i),this.setState((t=>t.path===e&&t.name===n?{isRepository:i,isSubFolderOfRepository:o}:null))}onDescriptionChanged=e=>{this.setState({description:e})};showFilePicker=async()=>{const e=await de({properties:["createDirectory","openDirectory"]});null!==e&&(this.setState({path:e,isRepository:!1}),this.updateIsRepository(e,this.state.name))};async updateReadMeExists(e,n){if(!an()||null===e)return;const r=t.join(e,uH(n),"README.md"),s=await k(r);this.setState((t=>t.path===e?{readMeExists:s}:null))}resolveRepositoryRoot=async()=>{const e=this.state.path;if(null===e)return null;if(this.props.initialPath&&this.props.initialPath===e)try{return await(0,w.mkdir)(e,{recursive:!0}),e}catch{}return t.join(e,uH(this.state.name))};createRepository=async()=>{const e=await this.resolveRepositoryRoot();if(null===e)return void this.setState({isValidPath:!0});try{await(0,w.mkdir)(e,{recursive:!0}),this.setState({isValidPath:!0})}catch(t){return"EACCES"===t.code&&-13===t.errno?this.setState({isValidPath:!1}):(log.error(`createRepository: the directory at ${e} is not valid`,t),this.props.dispatcher.postError(t))}this.setState({creating:!0});try{await async function(e){await zd(["-c",`init.defaultBranch=${await Qg()}`,"init"],e,"initGitRepository")}(e)}catch(t){return this.setState({creating:!1}),log.error(`createRepository: unable to initialize a Git repository at ${e}`,t),this.props.dispatcher.postError(t)}const n=await this.props.dispatcher.addRepositories([e]);if(n.length<1)return;const r=n[0];if(this.state.createWithReadme)try{await async function(e,n,r){const s=t.join(e,"README.md"),i=function(e,t){return void 0!==t?`# ${e}\n${t}\n`:`# ${e}\n`}(n,r);await(0,w.writeFile)(s,i)}(e,this.state.name,this.state.description)}catch(t){log.error(`createRepository: unable to write README at ${e}`,t),this.props.dispatcher.postError(t)}const s=this.state.gitIgnore;if(s!==yH)try{await async function(e,n){const r=t.join(e,".gitignore"),s=await async function(e){const t=(await mH()).get(e);if(!t)throw new Error(`Unknown gitignore: ${e}. Only names returned from getGitIgnoreNames() can be used.`);return await(0,w.readFile)(t,"utf8")}(n);await(0,w.writeFile)(r,s)}(e,s)}catch(t){log.error(`createRepository: unable to write .gitignore file at ${e}`,t),this.props.dispatcher.postError(t)}const i=this.state.description;if(i)try{await async function(e,n){const r=t.join(e,ny);await(0,w.writeFile)(r,n)}(e,i)}catch(t){log.error(`createRepository: unable to write .git/description file at ${e}`,t),this.props.dispatcher.postError(t)}const o=this.state.license===wH.name?null:this.state.license,a=(this.state.licenses||[]).find((e=>e.name===o));if(a)try{const n=await ow(r);await async function(e,n,r){const s=t.join(e,"LICENSE"),i=function(e,t,n){let r=e;for(const e of["fullname","email","project","description","year"])r=gH(r,e,n[e]);return r}(n.body,0,r);await(0,w.writeFile)(s,i)}(e,a,{fullname:n?n.name:"",email:n?n.email:"",year:(new Date).getFullYear().toString(),description:"",project:this.state.name})}catch(t){log.error(`createRepository: unable to write LICENSE at ${e}`,t),this.props.dispatcher.postError(t)}try{const n=t.join(e,".gitattributes");await k(n)||await async function(e){const n=(0,t.join)(e,".gitattributes");await(0,w.writeFile)(n,"# Auto detect text files and perform LF normalization\n* text=auto\n")}(e)}catch(t){log.error(`createRepository: unable to write .gitattributes at ${e}`,t),this.props.dispatcher.postError(t)}const l=await sw(r,!0,!0).catch((t=>(log.error(`createRepository: unable to get status for ${e}`,t),this.props.dispatcher.postError(new yt(t)),null)));if(null!==l){try{const e=l.workingDirectory.files;e.length>0&&await ty(r,"Initial commit",e)}catch(t){log.error(`createRepository: initial commit failed at ${e}`,t),this.props.dispatcher.postError(t)}this.setState({creating:!1}),this.updateDefaultDirectory(),this.props.dispatcher.closeFoldout(Qe.Repository),this.props.dispatcher.selectRepository(r),this.props.dispatcher.recordCreateRepository(),this.props.onDismissed()}else this.setState({creating:!1})};updateDefaultDirectory=()=>{this.props.initialPath||null===this.state.path||$b(this.state.path)};onCreateWithReadmeChange=e=>{this.setState({createWithReadme:e.currentTarget.checked})};renderSanitizedName(){const e=uH(this.state.name);return this.state.name===e?null:ke.createElement(JL,{id:"repo-sanitized-name-warning",trackedUserInput:this.state.name,ariaLiveMessage:`Will be created as ${e}. Spaces and invalid characters have been replaced by hyphens.`},ke.createElement("p",null,"Will be created as ",e),ke.createElement("span",{className:"sr-only"},"Spaces and invalid characters have been replaced by hyphens."))}onGitIgnoreChange=e=>{const t=e.currentTarget.value;this.setState({gitIgnore:t})};onLicenseChange=e=>{const t=e.currentTarget.value;this.setState({license:t})};renderGitIgnores(){const e=this.state.gitIgnoreNames||[],t=[yH,...e];return ke.createElement(rx,null,ke.createElement(lM,{label:"Git ignore",value:this.state.gitIgnore,onChange:this.onGitIgnoreChange},t.map((e=>ke.createElement("option",{key:e,value:e},e)))))}renderLicenses(){const e=this.state.licenses||[],t=[wH,...e.filter((e=>e.featured))],n=e.filter((e=>!e.featured));return ke.createElement(rx,null,ke.createElement(lM,{label:"许可证",value:this.state.license,onChange:this.onLicenseChange},t.map((e=>ke.createElement("option",{key:e.name,value:e.name},e.name))),ke.createElement("option",{disabled:!0},"────────────────────"),n.map((e=>ke.createElement("option",{key:e.name,value:e.name},e.name)))))}renderInvalidPathError(){const e=this.state.isValidPath;return null===e||e?null:ke.createElement(TM,null,"Directory could not be created at this path. You may not have permissions to create a directory here.")}renderGitRepositoryError(){const{isRepository:e,path:n,name:r}=this.state;if(!n||0===n.length||!e)return null;const s=t.join(n,uH(r));return ke.createElement(rx,null,ke.createElement(eB,{id:"existing-repository-path-error",trackedUserInput:this.state.path+this.state.name,ariaLiveMessage:`The directory ${s} appears to be a Git repository. Would you like to add this repository instead?`},"The directory ",ke.createElement(UM,null,s),"appears to be a Git repository. Would you like to"," ",ke.createElement(sM,{onClick:this.onAddRepositoryClicked},"add this repository")," ","instead?"))}renderGitRepositorySubFolderMessage(){const{isSubFolderOfRepository:e,path:n,name:r}=this.state;if(!n||0===n.length||!e)return null;const s=t.join(n,uH(r));return ke.createElement(rx,null,ke.createElement(JL,{id:"path-is-subfolder-of-repository",trackedUserInput:this.state.path+this.state.name,ariaLiveMessage:`The directory ${s} appears to be a subfolder Git repository. Did you know about submodules?`},"The directory ",ke.createElement(UM,null,s),"appears to be a subfolder of Git repository.",ke.createElement(sM,{uri:"https://gh.io/git-submodules"},"Learn about submodules.")))}renderReadmeOverwriteWarning(){return an()?!1===this.state.createWithReadme||!1===this.state.readMeExists?null:ke.createElement(rx,null,ke.createElement(JL,{id:"readme-overwrite-warning",trackedUserInput:this.state.createWithReadme,ariaLiveMessage:"This directory contains a README.md file already. Checking\r\n this box will result in the existing file being overwritten."},"This directory contains a ",ke.createElement(UM,null,"README.md")," file already. Checking this box will result in the existing file being overwritten.")):null}renderPathMessage=()=>{const{path:e,name:n,isRepository:r}=this.state;if(null===e||""===e||""===n||r)return null;const s=t.join(e,uH(n));return ke.createElement("div",{id:"create-repo-path-msg"},"The repository will be created at ",ke.createElement(UM,null,s),".")};onAddRepositoryClicked=()=>{this.props.onDismissed();const{path:e,name:n}=this.state;null!==e&&this.props.dispatcher.showPopup({type:Sh.AddRepository,path:t.join(e,uH(n))})};render(){const e=null===this.state.path||0===this.state.path.length||0===this.state.name.length||this.state.creating||this.state.isRepository,t=!!this.props.initialPath,n=null===this.state.path;return ke.createElement(AM,{id:"create-repository",title:"新建存储库",loading:this.state.creating,onSubmit:this.createRepository,onDismissed:this.props.onDismissed},this.renderInvalidPathError(),ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement(nx,{value:this.state.name,label: "名称",placeholder:"存储库名称",onValueChanged:this.onNameChanged,ariaDescribedBy:"existing-repository-path-error repo-sanitized-name-warning"})),this.renderSanitizedName(),ke.createElement(rx,null,ke.createElement(nx,{value:this.state.description,label: "描述",onValueChanged:this.onDescriptionChanged})),ke.createElement(rx,null,ke.createElement(nx,{value:this.state.path??"",label:"本地路径",placeholder:"存储库路径",onValueChanged:this.onPathChanged,disabled:t||n,ariaDescribedBy:"existing-repository-path-error path-is-subfolder-of-repository"}),ke.createElement(Ss,{onClick:this.showFilePicker,disabled:t||n},"选择…")),this.renderGitRepositoryError(),this.renderGitRepositorySubFolderMessage(),ke.createElement(rx,null,ke.createElement(vx,{label:"添加README文件",value:this.state.createWithReadme?Cx.On:Cx.Off,onChange:this.onCreateWithReadmeChange,ariaDescribedBy:"readme-overwrite-warning"})),this.renderReadmeOverwriteWarning(),this.renderGitIgnores(),this.renderLicenses()),ke.createElement(xM,null,this.renderPathMessage(),ke.createElement(DM,{okButtonText:"新建存储库",okButtonDisabled:e||n,okButtonAriaDescribedBy:"create-repo-path-msg"})))}onWindowFocus=()=>{this.updateReadMeExists(this.state.path,this.state.name)}}async function CH(e,t,n){const r=rr.fromAccount(e);return!!await r.fetchRepository(t,n)}async function vH(e,t,n=CH){const r=[...t,yn.anonymous()],s=mr(e);if(s){const e=r.find((e=>{const t=ir(e.endpoint),n=i.parse(t);return s.hostname===n.hostname}))||null;if(e)return e}const o=fr(e);if(o){const{owner:e,name:t,hostname:s}=o,a=r.toSorted(((e,t)=>wn(e)?e.token.length?-1:1:wn(t)?t.token.length?1:-1:0));for(const r of a)if((null==s||i.parse(ir(r.endpoint)).hostname===s)&&await n(r,e,t))return r}return null}class SH extends ke.Component{render(){return ke.createElement(vM,{className:"clone-generic-repository-content"},ke.createElement(rx,null,ke.createElement(nx,{placeholder:"URL 或用户名/存储库名",value:this.props.url,onValueChanged:this.onUrlChanged,autoFocus:!0,label:ke.createElement("div",{className:"clone-url-textbox-label"},ke.createElement("p",null,"存储库URL或GitHub用户名和存储库"),ke.createElement("p",null,"(",ke.createElement(UM,null,"hubot/cool-repo"),")"))})),ke.createElement(rx,null,ke.createElement(nx,{value:this.props.path,label:"本地路径",placeholder:"存储库路径",onValueChanged:this.props.onPathChanged}),ke.createElement(Ss,{onClick:this.props.onChooseDirectory},"选择…")))}onUrlChanged=e=>{this.props.onUrlChanged(e)}}var EH=n(7072),kH=n.n(EH);const RH="your-repositories";function AH(e){return e.private?ja:e.fork?ec:Xl}const TH=e=>e.map((e=>({id:e.html_url,text:[`${e.owner.login}/${e.name}`],url:e.clone_url,name:e.name,icon:AH(e),archived:e.archived}))).sort(((e,t)=>gr(e.name,t.name)));function xH(e,t){if(null!==t)for(const n of e)for(const e of n.items)if(e.url===t.clone_url)return e;return null}function DH(e,t){return e.find((e=>e.clone_url===t.url))||null}class MH extends ke.PureComponent{getRepositoryGroups=xr(((e,t)=>null===e?[]:function(e,t){const n=DO()(e,(e=>wr(e.owner.login,t)?RH:e.owner.login));return kH()(n).map((([e,t])=>({identifier:e,items:TH(t)}))).sort(((e,t)=>e.identifier===RH?-1:t.identifier===RH?1:gr(e.identifier,t.identifier)))}(e,t)));getSelectedListItem=xr(xH);componentDidMount(){null===this.props.repositories&&this.refreshRepositories()}componentDidUpdate(e){e.repositories!==this.props.repositories&&null===this.props.repositories&&this.refreshRepositories()}refreshRepositories=()=>{this.props.onRefreshRepositories(this.props.account)};getGroupAriaLabelGetter=e=>t=>{const n=e[t].identifier;return n===RH?this.getYourRepositoriesLabel():n};render(){const{repositories:e,account:t,selectedItem:n}=this.props,r=this.getRepositoryGroups(e,t.login),s=this.getSelectedListItem(r,n);return ke.createElement(ax,{className:"clone-github-repo",rowHeight:31,selectedItem:s,renderItem:this.renderItem,renderGroupHeader:this.renderGroupHeader,onSelectionChanged:this.onSelectionChanged,invalidationProps:r,groups:r,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,renderNoItems:this.renderNoItems,renderPostFilter:this.renderPostFilter,renderPreFilter:this.props.renderPreFilter,onItemClick:this.props.onItemClicked?this.onItemClick:void 0,placeholderText:"筛选存储库",getGroupAriaLabel:this.getGroupAriaLabelGetter(r)})}onItemClick=(e,t)=>{const{onItemClicked:n,repositories:r}=this.props;if(void 0===n||null===r)return;const s=DH(r,e);null!==s&&n(s,t)};onSelectionChanged=e=>{null===e||null===this.props.repositories?this.props.onSelectionChanged(null):this.props.onSelectionChanged(DH(this.props.repositories,e))};getYourRepositoriesLabel=()=>"您的存储库";renderGroupHeader=e=>{let t=e;return e===RH&&(t=this.getYourRepositoriesLabel()),ke.createElement("div",{className:"clone-repository-list-content clone-repository-list-group-header"},t)};renderItem=(e,t)=>ke.createElement("div",{className:"clone-repository-list-item"},ke.createElement(Rs,{className:"icon",symbol:e.icon}),ke.createElement(lh,{className:"name",tooltip:e.text[0],onlyWhenOverflowed:!0,tagName:"div"},ke.createElement(ah,{text:e.text[0],highlight:t.title})),e.archived&&ke.createElement("div",{className:"archived"},"Archived"));renderPostFilter=()=>{const e="刷新存储库列表";return ke.createElement(Ss,{disabled:this.props.loading,onClick:this.refreshRepositories,ariaLabel:e,tooltip:e},ke.createElement(Rs,{symbol:oh,className:this.props.loading?"spin":void 0}))};renderNoItems=()=>{const{loading:e,repositories:t,account:n}=this.props;return!e||null!==t&&0!==t.length?0!==this.props.filterText.length?ke.createElement("div",{className:"no-items no-results-found"},ke.createElement("div",null,"没有匹配的存储库"," ",ke.createElement(UM,null,this.props.filterText))):ke.createElement("div",{className:"no-items empty-repository-list"},ke.createElement("div",null,"没有仓库"," ",ke.createElement(UM,null,this.props.account.login)," 在 ",n.friendlyEndpoint,"."," ",ke.createElement(sM,{onClick:this.refreshRepositories},"刷新此列表")," ","如果您最近创建了存储库。")):ke.createElement("div",{className:"no-items loading"},`Loading repositories from ${n.friendlyEndpoint}…`)}}class PH extends ke.Component{invokeButtonRef=null;dropdownHeaderId=void 0;openButtonId=void 0;constructor(e){super(e),this.state={showPopover:!1}}componentWillUnmount(){this.dropdownHeaderId&&(ms(this.dropdownHeaderId),this.dropdownHeaderId=void 0)}onInvokeButtonRef=e=>{this.invokeButtonRef=e};togglePopover=()=>{this.setState({showPopover:!this.state.showPopover})};closePopover=()=>{this.setState({showPopover:!1})};renderPopover(){if(!this.state.showPopover)return;const{contentTitle:e}=this.props;return this.dropdownHeaderId??=ds("popover-dropdown-header"),ke.createElement(ND,{className:"popover-dropdown-popover",anchor:this.invokeButtonRef,anchorPosition:ID.BottomLeft,maxHeight:500,decoration:FD.Balloon,onClickOutside:this.closePopover,ariaLabelledby:this.dropdownHeaderId},ke.createElement("div",{className:"popover-dropdown-wrapper"},ke.createElement("div",{className:"popover-dropdown-header"},ke.createElement("h3",{id:this.dropdownHeaderId},e),ke.createElement("button",{className:"close",onClick:this.closePopover,"aria-label":"Close"},ke.createElement(Rs,{symbol:Ru}))),ke.createElement("div",{className:"popover-dropdown-content"},this.props.children)))}render(){const{className:e,buttonContent:t,label:n}=this.props,r=hs()("popover-dropdown-component",e);return this.openButtonId??=ds("popover-open-button"),ke.createElement("div",{className:r},n&&ke.createElement("label",{htmlFor:this.openButtonId},n),ke.createElement(Ss,{onClick:this.togglePopover,onButtonRef:this.onInvokeButtonRef,id:this.openButtonId,className:this.props.openButtonClassName},ke.createElement("div",{className:"button-content"},t),ke.createElement(Rs,{symbol:ou})),this.renderPopover())}}const IH=e=>`${e.login}@${e.endpoint}`;class _H extends ke.Component{getFilterListGroups=xr((e=>[{identifier:"accounts",items:e.map((e=>({text:[e.login,e.endpoint],id:IH(e),account:e})))}]));getSelectedItem=xr(((e,t,n)=>this.getFilterListGroups(e).flatMap((e=>e.items)).find((e=>t?e.id===t:gn(e.account,n)))??null));popoverRef=ke.createRef();constructor(e){super(e),this.state={filterText:"",selectedItemId:void 0}}componentDidUpdate(e){e.selectedAccount!==this.props.selectedAccount&&this.setState({selectedItemId:void 0})}onFilterTextChanged=e=>{this.setState({filterText:e})};getAvatarUser=e=>({name:e.name,email:qb(e),avatarURL:e.avatarURL,endpoint:e.endpoint});renderAccount=(e,t)=>{const n=e.account;return ke.createElement("div",{className:"account-list-item"},ke.createElement(CM,{accounts:this.props.accounts,user:this.getAvatarUser(n)}),ke.createElement("div",{className:"info"},ke.createElement("div",{className:"title"},"@",e.account.login),ke.createElement("div",{className:"subtitle"},e.account.friendlyEndpoint)))};onItemClick=(e,t)=>{const n=e.account;this.popoverRef.current?.closePopover(),this.setState({selectedItemId:e.id}),this.props.onSelectedAccountChanged(n)};onSelectionChanged=e=>this.setState({selectedItemId:e?.id});getItemAriaLabel=e=>`@${e.account.login} ${e.account.friendlyEndpoint}`;render(){const e=this.props.selectedAccount;return ke.createElement(PH,{className:"account-picker",contentTitle:"Choose an account",buttonContent:ke.createElement("div",{className:"account"},ke.createElement("span",{className:"login"},"@",e.login)," -"," ",ke.createElement("span",{className:"endpoint"},this.props.selectedAccount.friendlyEndpoint)),label:"Account",ref:this.popoverRef,openButtonClassName:this.props.openButtonClassName},ke.createElement(ax,{className:"account-list",rowHeight:47,groups:this.getFilterListGroups(this.props.accounts),selectedItem:this.getSelectedItem(this.props.accounts,this.state.selectedItemId,this.props.selectedAccount),renderItem:this.renderAccount,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,invalidationProps:this.props.accounts,onItemClick:this.onItemClick,onSelectionChanged:this.onSelectionChanged,getItemAriaLabel:this.getItemAriaLabel}))}}class FH extends ke.PureComponent{renderAccountPicker=()=>ke.createElement(_H,{accounts:this.props.accounts,selectedAccount:this.props.account,onSelectedAccountChanged:this.props.onSelectedAccountChanged,openButtonClassName:"dialog-preferred-focus"});render(){return ke.createElement(vM,{className:"clone-github-repository-content"},this.props.accounts.length>1?ke.createElement(rx,{className:"account-picker-row"},this.renderAccountPicker()):void 0,ke.createElement(rx,null,ke.createElement(MH,{account:this.props.account,selectedItem:this.props.selectedItem,onSelectionChanged:this.props.onSelectionChanged,loading:this.props.loading,repositories:this.props.repositories,filterText:this.props.filterText,onFilterTextChanged:this.props.onFilterTextChanged,onRefreshRepositories:this.props.onRefreshRepositories,onItemClicked:this.props.onItemClicked})),ke.createElement(rx,{className:"local-path-field"},ke.createElement(nx,{value:this.props.path,label:"本地路径",placeholder:"存储库路径",onValueChanged:this.props.onPathChanged}),ke.createElement(Ss,{onClick:this.props.onChooseDirectory},"选择…")))}}class NH extends ke.Component{checkIsTopMostDialog=EM((()=>{this.validatePath(),window.addEventListener("focus",this.onWindowFocus)}),(()=>{window.removeEventListener("focus",this.onWindowFocus)}));getAccountsForTab=xr(((e,t)=>e===jr.Generic?[]:t.filter(e===jr.DotCom?wn:bn)));constructor(e){super(e);const t={error:null,lastParsedIdentifier:null,path:null,url:this.props.initialURL||"",selectedAccount:null};this.state={initialPath:null,loading:!1,dotComTabState:{kind:"dotComTabState",filterText:"",selectedItem:null,...t},enterpriseTabState:{kind:"enterpriseTabState",filterText:"",selectedItem:null,...t},urlTabState:{kind:"urlTabState",...t}},this.initializePath()}componentDidUpdate(e){e.selectedTab!==this.props.selectedTab&&this.validatePath(),e.initialURL!==this.props.initialURL&&this.updateUrl(this.props.initialURL||""),this.checkIsTopMostDialog(this.props.isTopMost)}componentDidMount(){const e=this.props.initialURL;e&&this.updateUrl(e),this.checkIsTopMostDialog(this.props.isTopMost)}componentWillUnmount(){this.checkIsTopMostDialog(!1)}initializePath=async()=>{const e=await Zb(),t={...this.state.dotComTabState,path:e},n={...this.state.enterpriseTabState,path:e},r={...this.state.urlTabState,path:e};this.setState({initialPath:e,dotComTabState:t,enterpriseTabState:n,urlTabState:r});const s=this.getSelectedTabState();this.updateUrl(s.url)};render(){const{error:e}=this.getSelectedTabState();return ke.createElement(AM,{className:"clone-repository",title:"克隆仓库",onSubmit:this.clone,onDismissed:this.props.onDismissed,loading:this.state.loading},ke.createElement(LM,{onTabClicked:this.onTabClicked,selectedIndex:this.props.selectedTab},ke.createElement("span",{id:"dotcom-tab"},"GitHub.com"),ke.createElement("span",{id:"enterprise-tab"},"GitHub Enterprise"),ke.createElement("span",{id:"url-tab"},"URL")),e?ke.createElement(TM,null,e.message):null,ke.createElement("div",{role:"tabpanel","aria-labelledby":this.getSelectedTabId()},this.renderActiveTab()),this.renderFooter())}getSelectedTabId=()=>this.props.selectedTab===jr.DotCom?"dotcom-tab":this.props.selectedTab===jr.Enterprise?"enterprise-tab":"url-tab";checkIfCloningDisabled=()=>{const e=this.getSelectedTabState(),{error:t,url:n,path:r}=e,{loading:s}=this.state;return 0===n.length||null==r||0===r.length||s||null!==t};renderFooter(){const e=this.props.selectedTab;if(e!==jr.Generic&&!this.getAccountForTab(e))return null;const t=this.checkIfCloningDisabled();return ke.createElement(xM,null,ke.createElement(DM,{okButtonText: "克隆",okButtonDisabled:t}))}onTabClicked=e=>{this.props.onTabSelected(e)};onPathChanged=e=>{this.setSelectedTabState({path:e},this.validatePath)};renderActiveTab(){const e=this.props.selectedTab;switch(e){case jr.Generic:const t=this.state.urlTabState;return ke.createElement(SH,{path:t.path??"",url:t.url,onPathChanged:this.onPathChanged,onUrlChanged:this.updateUrl,onChooseDirectory:this.onChooseDirectory});case jr.DotCom:case jr.Enterprise:{const t=this.getGitHubTabState(e),n=this.getAccountsForTab(e,this.props.accounts),r=this.getAccountForTab(e);if(r){const e=this.props.apiRepositories.get(r),s=void 0===e?null:e.repositories,i=void 0!==e&&e.loading;return ke.createElement(FH,{path:t.path??"",account:r,accounts:n,selectedItem:t.selectedItem,onSelectionChanged:this.onSelectionChanged,onPathChanged:this.onPathChanged,onChooseDirectory:this.onChooseDirectory,repositories:s,loading:i,onRefreshRepositories:this.props.onRefreshRepositories,filterText:t.filterText,onFilterTextChanged:this.onFilterTextChanged,onItemClicked:this.onItemClicked,onSelectedAccountChanged:this.onSelectedAccountChanged})}return ke.createElement(vM,null,this.renderSignIn(e))}default:return at(0,`Unknown tab: ${e}`)}}onSelectedAccountChanged=e=>{this.props.selectedTab!==jr.Generic&&this.setGitHubTabState({selectedAccount:e},this.props.selectedTab)};getAccountForTab(e){const t=this.getTabState(e),n=this.getAccountsForTab(e,this.props.accounts),r=(t.selectedAccount?n.find((e=>e.endpoint===t.selectedAccount?.endpoint)):void 0)??n.at(0);return r??null}getGitHubTabState(e){return e===jr.DotCom?this.state.dotComTabState:e===jr.Enterprise?this.state.enterpriseTabState:at(0,`Unknown tab: ${e}`)}getTabState(e){return e===jr.DotCom?this.state.dotComTabState:e===jr.Enterprise?this.state.enterpriseTabState:e===jr.Generic?this.state.urlTabState:at(0,`Unknown tab: ${e}`)}getSelectedTabState(){return this.getTabState(this.props.selectedTab)}setSelectedTabState(e,t){this.setTabState(e,this.props.selectedTab,t)}setTabState(e,t,n){if(t===jr.DotCom)this.setState((t=>({dotComTabState:{...t.dotComTabState,...e}})),n);else if(t===jr.Enterprise)this.setState((t=>({enterpriseTabState:{...t.enterpriseTabState,...e}})),n);else{if(t!==jr.Generic)return at(0,`Unknown tab: ${t}`);this.setState((t=>({urlTabState:{...t.urlTabState,...e}})),n)}}setGitHubTabState(e,t){if(t===jr.DotCom)this.setState((t=>({dotComTabState:Zp(t.dotComTabState,e)})));else{if(t!==jr.Enterprise)return at(0,`Unknown tab: ${t}`);this.setState((t=>({enterpriseTabState:Zp(t.enterpriseTabState,e)})))}}renderSignIn(e){const t="登录";switch(e){case jr.DotCom:return ke.createElement($M,{actionTitle:t,onAction:this.signInDotCom},ke.createElement("div",null,"登录您的GitHub.com帐户访问您的存储库。"));case jr.Enterprise:return ke.createElement($M,{actionTitle:t,onAction:this.signInEnterprise},ke.createElement("div",null,"If you are using GitHub Enterprise at work, sign in to it to get access to your repositories."));case jr.Generic:return null;default:return at(0,`Unknown sign in tab: ${e}`)}}signInDotCom=()=>{this.props.dispatcher.showDotComSignInDialog()};signInEnterprise=()=>{this.props.dispatcher.showEnterpriseSignInDialog()};onFilterTextChanged=e=>{this.props.selectedTab!==jr.Generic&&this.setGitHubTabState({filterText:e},this.props.selectedTab)};onSelectionChanged=e=>{this.props.selectedTab!==jr.Generic&&(this.setGitHubTabState({selectedItem:e},this.props.selectedTab),this.updateUrl(null===e?"":e.clone_url))};validatePath=async()=>{const e=this.getSelectedTabState(),{path:t,url:n,error:r}=e,{initialPath:s}=this.state;if(s===t&&""===n)r&&this.setSelectedTabState({error:null});else{const e=await this.validateEmptyFolder(t);this.getSelectedTabState().path===t&&this.setSelectedTabState({error:e,path:t})}};onChooseDirectory=async()=>this.onChooseWithOpenDialog();onChooseWithOpenDialog=async()=>{const e=await de({properties:["createDirectory","openDirectory"]});if(null===e)return;const n=this.getSelectedTabState().lastParsedIdentifier,r=n?t.join(e,n.name):e;return this.setSelectedTabState({path:r,error:null},this.validatePath),r};onChooseWithSaveDialog=async()=>{const e=this.getSelectedTabState(),t=await pe({buttonLabel:"Select",nameFieldLabel:"克隆到:",showsTagField:!1,defaultPath:e.path??"",properties:["createDirectory"]});if(null!=t)return this.setSelectedTabState({path:t,error:null},this.validatePath),t};updateUrl=async e=>{const n=fr(e),r=this.getSelectedTabState(),s=r.lastParsedIdentifier;if(null===r.path)return void this.setSelectedTabState({url:e},this.validatePath);let i;const o=r.path;i=s?n?t.join(t.dirname(o),n.name):t.dirname(o):n?t.join(o,n.name):o,this.setSelectedTabState({url:e,lastParsedIdentifier:n,path:i},this.validatePath)};async validateEmptyFolder(e){if(null===e)return new Error("Unable to read path on disk. Please check the path and try again.");try{return 0===(await(0,w.readdir)(e)).length?null:new Error("This folder contains files. Git can only clone to empty folders.")}catch(e){return"ENOTDIR"===e.code?new Error("There is already a file with this name. Git can only clone to a folder."):"ENOENT"===e.code?null:(log.error("CloneRepository: Path validation failed. Error: "+e.message),new Error("Unable to read path on disk. Please check the path and try again."))}}async resolveCloneInfo(){const{url:e,lastParsedIdentifier:t}=this.getSelectedTabState();if(e.endsWith(".wiki.git"))return{url:e};const n=await vH(e,this.props.accounts);if(null!==t&&null!==n){const r=rr.fromAccount(n),{owner:s,name:i}=t,o=mr(e)?.protocol;return r.fetchRepositoryCloneInfo(s,i,o).catch((t=>(log.error(`Failed to look up repository clone info for '${e}'`,t),{url:e})))}return{url:e}}onItemClicked=(e,t)=>{"keyboard"===t.kind&&"Enter"===t.event.key&&!1===this.checkIfCloningDisabled()&&this.clone()};clone=async()=>{this.setState({loading:!0});const e=await this.resolveCloneInfo(),{path:t}=this.getSelectedTabState();if(null==t){const e=new Error("Directory could not be created at this path.");return this.setState({loading:!1}),void this.setSelectedTabState({error:e})}if(!e){const e=new Error("We couldn't find that repository. Check that you are logged in, the network is accessible, and the URL or repository alias are spelled correctly.");return this.setState({loading:!1}),void this.setSelectedTabState({error:e})}const{url:n,defaultBranch:r}=e;this.props.dispatcher.closeFoldout(Qe.Repository);try{this.cloneImpl(n.trim(),t,r)}catch(e){log.error(`CloneRepository: clone failed to complete to ${t}`,e),this.setState({loading:!1}),this.setSelectedTabState({error:e})}};cloneImpl(e,n,r){this.props.dispatcher.clone(e,n,{defaultBranch:r}),this.props.onDismissed(),$b(t.resolve(n,".."))}onWindowFocus=()=>{this.validatePath()}}class OH extends ke.Component{renderDescription(){return this.props.description?ke.createElement("p",null,this.props.description):null}render(){return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"title"},this.props.title),this.renderDescription())}}class LH extends ke.Component{onFieldsetRef=ke.createRef();onRadioButtonDoubleClick=e=>{this.onFieldsetRef.current?.form?.dispatchEvent(new Event("submit"))};renderItem=e=>{const t=this.props.items.find((t=>t.key===e));return t?ke.createElement(OH,{key:t.key,title:t.title,description:t.description}):ke.createElement("span",null,e)};onSelectionChanged=e=>{this.props.onSelectionChanged(e)};render(){return 0===this.props.items.length?null:ke.createElement("fieldset",{className:"vertical-segmented-control",ref:this.onFieldsetRef},ke.createElement("legend",{id:"vertical-segment-control-label"},this.props.label),ke.createElement(GM,{ariaLabelledBy:"vertical-segment-control-label",className:"vertical-segmented-control",selectedKey:this.props.selectedKey,radioButtonKeys:this.props.items.map((e=>e.key)),onSelectionChanged:this.onSelectionChanged,renderRadioButtonLabelContents:this.renderItem,onRadioButtonDoubleClick:this.onRadioButtonDoubleClick}))}}function BH(e,t){return e.tip.kind===zr.Detached?sd.Head:t===sd.UpstreamDefaultBranch&&null!==e.upstreamDefaultBranch||t===sd.DefaultBranch&&null!==e.defaultBranch||t===sd.CurrentBranch&&e.tip.kind===zr.Valid||t===sd.Head?t:e.upstreamDefaultBranch?sd.UpstreamDefaultBranch:e.defaultBranch?sd.DefaultBranch:e.tip.kind===zr.Valid?sd.CurrentBranch:sd.Head}class HH extends ke.Component{branchRulesDebounceId=null;ERRORS_ID="branch-name-errors";constructor(e){super(e);const t=BH(e,sd.UpstreamDefaultBranch);this.state={currentError:null,branchName:e.initialName,startPoint:t,isCreatingBranch:!1,tipAtCreateStart:e.tip,defaultBranchAtCreateStart:ZH(t,e)}}componentWillReceiveProps(e){if(this.setState({startPoint:BH(e,this.state.startPoint)}),!this.state.isCreatingBranch){const t=BH(e,sd.UpstreamDefaultBranch);this.setState({tipAtCreateStart:e.tip,defaultBranchAtCreateStart:ZH(t,e)})}e.initialName.length>0&&this.checkBranchRules(e.initialName)}componentWillUnmount(){null!==this.branchRulesDebounceId&&window.clearTimeout(this.branchRulesDebounceId)}renderBranchSelection(){const e=this.state.isCreatingBranch?this.state.tipAtCreateStart:this.props.tip,t=e.kind,n=this.props.targetCommit;if(void 0!==n)return ke.createElement("p",null,"您的新分支将基于提交 '",n.summary,"' (",n.sha.substring(0,7),") 从您的存储库。");if(e.kind===zr.Detached)return ke.createElement("p",null,"您当前没有签出任何分支(您的头引用已分离). 因此,您的新分支将基于您当前签出的提交 (",e.currentSha.substring(0,7),").");if(e.kind===zr.Unborn)return ke.createElement("p",null,"当前分支未绑定(不包含任何提交)。创建新分支将重命名当前分支。");if(e.kind===zr.Valid){if(null!==this.props.upstreamGitHubRepository&&null!==this.props.upstreamDefaultBranch)return this.renderForkBranchSelection(e.branch.name,this.props.upstreamDefaultBranch,this.props.upstreamGitHubRepository.fullName);const t=this.state.isCreatingBranch?this.props.defaultBranch:this.state.defaultBranchAtCreateStart;return this.renderRegularBranchSelection(e.branch.name,t)}return at(0,`Unknown tip kind ${t}`)}renderBranchNameErrors(){const{currentError:e}=this.state;return e?e.isWarning?ke.createElement(rx,null,ke.createElement(JL,{id:this.ERRORS_ID,trackedUserInput:this.state.branchName},e.error.message)):ke.createElement(rx,null,ke.createElement(eB,{id:this.ERRORS_ID,trackedUserInput:this.state.branchName},e.error.message)):null}onBaseBranchChanged=e=>{this.setState({startPoint:e})};render(){const e=this.state.branchName.length<=0||!!this.state.currentError&&!this.state.currentError.isWarning||/^\s*$/.test(this.state.branchName),t=!!this.state.currentError;return ke.createElement(AM,{id:"create-branch",title:this.getHeaderText(),onSubmit:this.createBranch,onDismissed:this.props.onDismissed,loading:this.state.isCreatingBranch,disabled:this.state.isCreatingBranch},ke.createElement(vM,null,ke.createElement(tB,{label: "名称",ariaDescribedBy:t?this.ERRORS_ID:void 0,initialValue:this.props.initialName,onValueChange:this.onBranchNameChange}),this.renderBranchNameErrors(),function(e,t){const n=t.findIndex((t=>t.nameWithoutRemote===e&&t.type===rd.Remote))>-1;return!1===n?null:ke.createElement(rx,{className:"warning-helper-text"},ke.createElement(Rs,{symbol:xs}),ke.createElement("p",null,"分支名为 ",ke.createElement(UM,null,e)," 已存在于远程"))}(this.state.branchName,this.props.allBranches),this.renderBranchSelection()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:this.getOkButtonText(),okButtonDisabled:e})))}getHeaderText=()=>void 0!==this.props.headerText?this.props.headerText:"新建分支";getOkButtonText=()=>void 0!==this.props.okButtonText?this.props.okButtonText:"确定";onBranchNameChange=e=>{this.updateBranchName(e)};async updateBranchName(e){this.setState({branchName:e});const t=this.props.allBranches.findIndex((t=>t.name===e))>-1,n=t?{error:new Error(`分支名为 ${e} already exists.`),isWarning:!1}:null;n||(null!==this.branchRulesDebounceId&&window.clearTimeout(this.branchRulesDebounceId),this.branchRulesDebounceId=window.setTimeout(this.checkBranchRules,500,e)),this.setState({branchName:e,currentError:n})}checkBranchRules=async e=>{if(this.state.branchName!==e||0===this.props.accounts.length||!Yr(this.props.repository)||""===e||null!==this.state.currentError)return;const t=tf(this.props.accounts,this.props.repository);if(null===t||!Gv(t,this.props.repository))return;const n=rr.fromAccount(t),r=await n.fetchRepoRulesForBranch(this.props.repository.gitHubRepository.owner.login,this.props.repository.gitHubRepository.name,e);if(this.state.branchName!==e)return;const s=new Set(r.filter((e=>e.type===Jn.Creation||e.type===Jn.BranchNamePattern)).map((e=>e.ruleset_id)));if(0===s.size)return;const{branchNamePatterns:i,creationRestricted:o}=await zv(r,this.props.cachedRepoRulesets,this.props.repository);if(this.state.branchName!==e)return;const{status:a}=i.getFailedRules(e);if(!0!==o&&"pass"===a)return;let l=!1;for(const e of s){const t=this.props.cachedRepoRulesets.get(e);if("always"!==t?.current_user_can_bypass){l=!0;break}}l?this.setState({currentError:{error:new Error(`Branch name '${e}' is restricted by repo rules.`),isWarning:!1}}):this.setState({currentError:{error:new Error(`Branch name '${e}' is restricted by repo rules, but you can bypass them. Proceed with caution!`),isWarning:!0}})};createBranch=async()=>{const e=this.state.branchName;let t=null,n=!1;const{defaultBranch:r,upstreamDefaultBranch:s,repository:i}=this.props;if(void 0!==this.props.targetCommit)t=this.props.targetCommit.sha;else if(this.state.startPoint===sd.DefaultBranch){if(!r)return void this.setState({currentError:{error:new Error("Could not determine the default branch."),isWarning:!1}});t=r.name}else if(this.state.startPoint===sd.UpstreamDefaultBranch){if(!s)return void this.setState({currentError:{error:new Error("Could not determine the default branch."),isWarning:!1}});t=s.name,n=!0}if(e.length>0){if(this.setState({isCreatingBranch:!0}),void 0!==this.props.createBranch)return void this.props.createBranch(e,t,n);const r=eM("create branch",i),s=await this.props.dispatcher.createBranch(i,e,t,n);r.done(),this.props.onDismissed(),void 0!==s&&void 0!==this.props.targetCommit&&void 0!==this.props.onBranchCreatedFromCommit&&this.props.onBranchCreatedFromCommit()}};renderRegularBranchSelection(e,t){if(null===t||t.name===e)return ke.createElement("div",null,"新分支将基于当前签出的分支 (",ke.createElement(UM,null,e),")",this.renderForkLinkSuffix(),"."," ",t?.name===e&&ke.createElement(ke.Fragment,null,ke.createElement(UM,null,e)," 是仓库的 ",UH,""));{const n=[{title:t.name,description:"你的代码库中的默认分支。选择它来开始一些不依赖于当前分支的新工作",key:sd.DefaultBranch},{title:e,description:"当前检出的分支。如果你需要在这个分支的基础上继续工作,请选择它",key:sd.CurrentBranch}],r=this.state.startPoint===sd.DefaultBranch?this.state.startPoint:sd.CurrentBranch;return ke.createElement("div",null,this.renderOptions(n,r),this.renderForkLink())}}renderForkBranchSelection(e,t,n){if(e===t.nameWithoutRemote)return ke.createElement("div",null,"Your new branch will be based on"," ",ke.createElement("strong",null,n),"'s ",UH," (",ke.createElement(UM,null,t.nameWithoutRemote),")",this.renderForkLinkSuffix(),".");{const n=[{title:t.name,description:"上游代码库的默认分支。选择它来开始一些不依赖于当前分支的新工作",key:sd.UpstreamDefaultBranch},{title:e,description:"当前检出的分支。如果你需要在这个分支的基础上继续工作,请选择它",key:sd.CurrentBranch}],r=this.state.startPoint===sd.UpstreamDefaultBranch?this.state.startPoint:sd.CurrentBranch;return ke.createElement("div",null,this.renderOptions(n,r),this.renderForkLink())}}renderForkLink=()=>Xr(this.props.repository)?ke.createElement("div",{className:"secondary-text"},"Your default branch source is determined by your"," ",ke.createElement(sM,{onClick:this.onForkSettingsClick},"fork behavior settings"),"."):void 0;renderForkLinkSuffix=()=>Xr(this.props.repository)?ke.createElement("span",null," as determined by your"," ",ke.createElement(sM,{onClick:this.onForkSettingsClick},"fork behavior settings")):void 0;renderOptions=(e,t)=>ke.createElement(rx,null,ke.createElement(LH,{label:"基于以下创建分支…",items:e,selectedKey:t,onSelectionChanged:this.onBaseBranchChanged}));onForkSettingsClick=()=>{this.props.dispatcher.showPopup({type:Sh.RepositorySettings,repository:this.props.repository,initialSelectedTab:nP.ForkSettings})}}const UH=ke.createElement(sM,{uri:"https://help.github.com/articles/setting-the-default-branch/"},"默认分支");function ZH(e,t){return e===sd.UpstreamDefaultBranch?t.upstreamDefaultBranch:e===sd.DefaultBranch?t.defaultBranch:null}const $H=ke.createElement("p",null,"Your browser will redirect you back to GitHub Desktop once you've signed in. If your browser asks for your permission to launch GitHub Desktop, please allow it.");class WH extends ke.Component{dialogRef=ke.createRef();constructor(e){super(e),this.state={endpoint:""}}componentDidUpdate(e){null!==e.signInState&&null!==this.props.signInState&&e.signInState.kind!==this.props.signInState.kind&&this.dialogRef.current?.focusFirstSuitableChild()}componentWillReceiveProps(e){e.signInState!==this.props.signInState&&e.signInState&&e.signInState.kind===gT.Success&&this.onDismissed()}onSubmit=()=>{const e=this.props.signInState;if(!e)return;const t=e.kind;switch(e.kind){case gT.EndpointEntry:this.props.dispatcher.setSignInEndpoint(this.state.endpoint);break;case gT.ExistingAccountWarning:this.props.dispatcher.removeAccount(e.existingAccount).then((()=>this.props.dispatcher.setSignInEndpoint(e.endpoint)));break;case gT.Authentication:this.props.dispatcher.requestBrowserAuthentication();break;case gT.Success:this.onDismissed();break;default:at(0,`Unknown sign in step ${t}`)}};onEndpointChanged=e=>{this.setState({endpoint:e})};renderFooter(){const e=this.props.signInState;if(!e||e.kind===gT.Success)return null;let t,n=!1;const r=e.kind;switch(e.kind){case gT.EndpointEntry:n=0===this.state.endpoint.length,t="确定";break;case gT.ExistingAccountWarning:case gT.Authentication:t="打开浏览器";break;default:return at(0,`Unknown sign in step ${r}`)}return ke.createElement(xM,null,ke.createElement(DM,{okButtonText:t,okButtonDisabled:n,onCancelButtonClick:this.onDismissed}))}renderExistingAccountWarningStep(e){return ke.createElement(vM,null,ke.createElement("p",{className:"existing-account-warning"},"You're already signed in to"," ",ke.createElement(UM,null,new URL(ir(e.endpoint)).host)," with the account"," ",ke.createElement(UM,null,e.existingAccount.login),". If you continue, you will first be signed out."),$H)}renderEndpointEntryStep(e){return ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement(nx,{label:"企业版地址",value:this.state.endpoint,onValueChanged:this.onEndpointChanged,placeholder:"https://github.example.com"})))}renderAuthenticationStep(e){const t=this.props.isCredentialHelperSignIn&&this.props.credentialHelperUrl?ke.createElement("p",null,"Git requesting credentials to access"," ",ke.createElement(UM,null,this.props.credentialHelperUrl),"."):void 0;return ke.createElement(vM,null,t,$H)}renderStep(){const e=this.props.signInState;if(!e)return null;const t=e.kind;switch(e.kind){case gT.EndpointEntry:return this.renderEndpointEntryStep(e);case gT.ExistingAccountWarning:return this.renderExistingAccountWarningStep(e);case gT.Authentication:return this.renderAuthenticationStep(e);case gT.Success:return null;default:return at(0,`Unknown sign in step ${t}`)}}render(){const e=this.props.signInState;if(!e||e.kind===gT.Success)return null;const t=e.loading,n=e.error?ke.createElement(TM,null,e.error.message):null,r=this.props.signInState.kind===gT.Authentication?"使用浏览器登录":"登录";return ke.createElement(AM,{id:"sign-in",title:r,disabled:t,onDismissed:this.onDismissed,onSubmit:this.onSubmit,loading:e.loading,ref:this.dialogRef},n,this.renderStep(),this.renderFooter())}onDismissed=()=>{this.props.dispatcher.resetSignInState(),this.props.onDismissed()}}class VH extends ke.Component{constructor(e){super(e)}onSubmit=()=>{this.props.onOpenShell(this.props.path),this.props.onDismissed()};onExternalLink=e=>{ut.openExternal("https://help.github.com/articles/set-up-git/#setting-up-git")};render(){return ke.createElement(AM,{id:"install-git",type:"warning",title:"找不到 Git",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("p",null,"We were unable to locate Git on your system. This means you won't be able to execute any Git commands in the"," ","command prompt","."),ke.createElement("p",null,"To help you get Git installed and configured for your operating system, we have some external resources available.")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText: "不使用 Git 打开",cancelButtonText: "安装 Git",onCancelButtonClick:this.onExternalLink})))}}class qH extends ke.Component{constructor(e){super(e)}onExternalLink=()=>{ut.openExternal(Rm)};onShowPreferencesDialog=e=>{e.preventDefault(),this.props.onDismissed(),this.props.showPreferencesDialog()};renderFooter(){const{viewPreferences:e,suggestDefaultEditor:t}=this.props;return e?ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"关闭",cancelButtonText: "打开选项",onCancelButtonClick:this.onShowPreferencesDialog})):t?ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"关闭",cancelButtonText:`Download ${km}`,onCancelButtonClick:this.onExternalLink})):ke.createElement(MM,null)}render(){return ke.createElement(AM,{id:"external-editor-error",type:"error",title:"无法打开外部编辑器",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("p",null,this.props.message)),this.renderFooter())}}const GH=Ft(__dirname,"static/windows-logo-64x64@2x.png");class zH extends ke.Component{render(){return ke.createElement("div",{className:"update-status"},ke.createElement(LC,{message:this.props.message}),this.props.loading&&ke.createElement(zD,null),this.props.richMessage??this.props.message)}}class jH extends ke.Component{get canCheckForUpdates(){return!0}renderUpdateButton(){if(!this.canCheckForUpdates)return null;const e=this.props.updateState.status;switch(e){case pn.UpdateReady:return ke.createElement(rx,null,ke.createElement(Ss,{onClick:this.props.onQuitAndInstall},"退出并安装更新"));case pn.UpdateNotAvailable:case pn.CheckingForUpdates:case pn.UpdateAvailable:case pn.UpdateNotChecked:const t=![pn.UpdateNotChecked,pn.UpdateNotAvailable].includes(e)||Hr(),n="检查更新";return ke.createElement(rx,null,ke.createElement(Ss,{disabled:t,onClick:this.props.onCheckForNonStaggeredUpdates},n));default:return at(0,`未知更新状态 ${e}`)}}renderUpdateDetails(){if(!this.canCheckForUpdates)return ke.createElement("p",null,"The application is currently running in development and will not receive any updates.");const{status:e,lastSuccessfulCheck:t}=this.props.updateState;switch(e){case pn.CheckingForUpdates:return ke.createElement(zH,{message:"正在检查更新...",loading:!0});case pn.UpdateAvailable:return ke.createElement(zH,{message:"正在下载…",loading:!0});case pn.UpdateNotAvailable:if(!t)return null;const n=ke.createElement("p",null,"当前已是最新版本 (最后检查时间:"," ",ke.createElement(jI,{date:t}),")"),r=Mt(t,{dateStyle:"full",timeStyle:"short"});return ke.createElement(zH,{message:`当前已是最新版本 (最后检查时间: ${r})`,richMessage:n});case pn.UpdateReady:return ke.createElement(zH,{message:"已下载更新并准备安装。"});case pn.UpdateNotChecked:return null;default:return at(0,`未知更新状态 ${e}`)}}renderUpdateErrors(){return this.canCheckForUpdates?Hr()?ke.createElement(TM,null,"This operating system is no longer supported. Software updates have been disabled."," ",ke.createElement(sM,{uri:"https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/overview/supported-operating-systems"},"Supported operating systems")):this.props.updateState.lastSuccessfulCheck?null:ke.createElement(TM,null,"无法确定上次执行更新检查的时间您可能正在运行旧版本请尝试手动检查更新如果问题仍然存在请联系GitHub支持"):null}renderBetaLink(){return ke.createElement("div",null,ke.createElement("p",{className:"no-padding"},"想要查看最新功能?"),ke.createElement("p",{className:"no-padding"},"请查看"," ",ke.createElement(sM,{uri:"https://desktop.github.com/beta"},"测试版")))}render(){const e=this.props.applicationName,t=this.props.applicationVersion,n=ke.createElement(sM,{uri:kB},"发布记录"),r=`版本 ${t}`,s="Dialog_about";return ke.createElement(AM,{id:"about",titleId:s,onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},this.renderUpdateErrors(),ke.createElement(vM,null,ke.createElement(rx,{className:"logo"},ke.createElement("img",{src:GH,alt:"GitHub Desktop",width:"64",height:"64"})),ke.createElement("h1",{id:s},"About ",e),ke.createElement("p",{className:"no-padding"},ke.createElement("span",{className:"selectable-text"},r," (",this.props.applicationArchitecture,")")," ","(",n,")"),this.renderUpdateDetails(),this.renderUpdateButton(),this.renderBetaLink(),ke.createElement("div",{className:"terms-and-license-container"},ke.createElement("p",{className:"no-padding terms-and-license"},ke.createElement(sM,{onClick:this.props.onShowTermsAndConditions},"服务条款")),ke.createElement("p",{className:"no-padding terms-and-license"},ke.createElement(sM,{onClick:this.props.onShowAcknowledgements},"许可证和开源声明")),ke.createElement("p",{className:"terms-and-license"},ke.createElement(sM,{uri:"https://gh.io/copilot-for-desktop-transparency"},"Responsible use of Copilot in GitHub Desktop")))),ke.createElement(MM,null))}}class KH extends ke.Component{name;constructor(e){super(e),this.state={orgs:[]},this.name=e.settings.name}async componentWillMount(){this.fetchOrgs(this.props.account)}componentWillReceiveProps(e){this.props.account!==e.account&&(this.setState({orgs:[]}),this.fetchOrgs(e.account))}async fetchOrgs(e){const t=rr.fromAccount(e),n=[...await t.fetchOrgs()];n.sort(((e,t)=>br(e.login,t.login))),this.setState({orgs:n})}updateSettings(e){const t=Zp(this.props.settings,e);this.props.onSettingsChanged(t)}onNameChange=e=>{this.name=e,e=uH(e),this.updateSettings({name:e})};onDescriptionChange=e=>{this.updateSettings({description:e})};onPrivateChange=e=>{this.updateSettings({private:e.currentTarget.checked})};onOrgChange=e=>{const{settings:t}=this.props,n=e.currentTarget.value,r=parseInt(n,10);let s;if(r<0||isNaN(r))s={...t,org:null};else{const e=this.state.orgs[r];s={...t,org:e}}this.props.onSettingsChanged(s)};renderOrgs(){if(0===this.state.orgs.length)return null;const e=new Array;e.push(ke.createElement("option",{value:-1,key:-1},"None"));let t=-1;const n=this.props.settings.org;for(const[r,s]of this.state.orgs.entries())n&&n.id===s.id&&(t=r),e.push(ke.createElement("option",{value:r,key:r},s.login));return ke.createElement(lM,{label:"组织",value:t.toString(),onChange:this.onOrgChange},e)}render(){return ke.createElement(vM,null,this.props.accounts.length>1&&ke.createElement(rx,null,ke.createElement(_H,{accounts:this.props.accounts,openButtonClassName:"dialog-preferred-focus",selectedAccount:this.props.account,onSelectedAccountChanged:this.props.onSelectedAccountChanged})),ke.createElement(rx,null,ke.createElement(nx,{label: "名称",value:this.name,onValueChanged:this.onNameChange})),this.renderSanitizedName(),ke.createElement(rx,null,ke.createElement(nx,{label: "描述",value:this.props.settings.description,onValueChanged:this.onDescriptionChange})),ke.createElement(rx,null,ke.createElement("label",null,ke.createElement("input",{type:"checkbox",checked:this.props.settings.private,onChange:this.onPrivateChange}),"Keep this code private")),this.renderOrgs())}renderSanitizedName(){const e=this.props.settings.name;return this.name===e?null:ke.createElement(rx,{className:"warning-helper-text"},ke.createElement(Rs,{symbol:xs}),"Will be created as ",e)}}var YH,XH;!function(e){e[e.enterprise=0]="enterprise",e[e.dotcom=1]="dotcom"}(YH||(YH={})),function(e){e[e.DotCom=0]="DotCom",e[e.Enterprise=1]="Enterprise"}(XH||(XH={}));class QH extends ke.Component{getAccountsForTab=xr(((e,t)=>t.filter(e===XH.DotCom?wn:bn)));constructor(e){super(e);const t=e.accounts.some(wn),n=e.accounts.some(bn);let r=XH.DotCom;!t&&n&&(r=XH.Enterprise);const s={name:e.repository.name,description:"",private:!0},i={kind:"dotcom",settings:{...s,kind:YH.dotcom,org:null},error:null},o={kind:"enterprise",settings:{...s,kind:YH.enterprise,org:null},error:null,selectedAccount:null};this.state={currentTab:r,dotcomTabState:i,enterpriseTabState:o,publishing:!1}}render(){const e=this.getCurrentTabState();return ke.createElement(AM,{id:"publish-repository",title:"发布存储库",onDismissed:this.props.onDismissed,onSubmit:this.publishRepository,disabled:this.state.publishing,loading:this.state.publishing},ke.createElement(LM,{onTabClicked:this.onTabClicked,selectedIndex:this.state.currentTab},ke.createElement("span",{id:"dotcom-tab"},"GitHub.com"),ke.createElement("span",{id:"enterprise-tab"},"GitHub Enterprise")),e.error?ke.createElement(TM,null,e.error.message):null,ke.createElement("div",{role:"tabpanel","aria-labelledby":"dotcom"===e.kind?"dotcom-tab":"enterprise-tab"},this.renderContent(),this.renderFooter()))}async componentDidMount(){const e=this.getCurrentTabState();try{const n=await async function(e){const n=t.join(e,ny);try{const e=await(0,w.readFile)(n,"utf8");return"Unnamed repository; edit this file 'description' to name the repository.\n"===e?"":e}catch(e){return""}}(this.props.repository.path),r={...e.settings,description:n};this.setCurrentTabSettings(r)}catch(e){log.warn("Couldn't get the repository's description",e)}}renderContent(){const e=this.state.currentTab,t=this.getCurrentTabState(),n=this.getAccountsForTab(e,this.props.accounts),r=("enterprise"===t.kind?t.selectedAccount:void 0)??n.at(0);return r?ke.createElement(KH,{account:r,accounts:n,settings:t.settings,onSettingsChanged:this.onSettingsChanged,onSelectedAccountChanged:this.onSelectedAccountChanged}):ke.createElement(vM,null,this.renderSignInTab(e))}onSelectedAccountChanged=e=>{if("enterprise"===this.getCurrentTabState().kind){const t={...this.state.enterpriseTabState,selectedAccount:e};this.setTabState(t)}};onSettingsChanged=e=>{const t=this.getCurrentTabState();let n;n=e.kind===YH.enterprise?{kind:"enterprise",settings:e,error:this.state.enterpriseTabState.error,selectedAccount:"enterprise"===t.kind?t.selectedAccount:null}:{kind:"dotcom",settings:e,error:this.state.dotcomTabState.error},this.setTabState(n)};getTabState(e){return e===XH.DotCom?this.state.dotcomTabState:e===XH.Enterprise?this.state.enterpriseTabState:void at(0,`Unknown tab: ${e}`)}getAccountForTab(e){const t=this.getTabState(e),n=this.getAccountsForTab(e,this.props.accounts),r=("enterprise"===t.kind?n.find((e=>e.endpoint===t.selectedAccount?.endpoint)):void 0)??n.at(0);return r??null}renderSignInTab(e){const t="登录";switch(e){case XH.DotCom:return ke.createElement($M,{actionTitle:t,onAction:this.signInDotCom},ke.createElement("div",null,"登录您的GitHub.com帐户访问您的存储库。"));case XH.Enterprise:return ke.createElement($M,{actionTitle:t,onAction:this.signInEnterprise},ke.createElement("div",null,"If you are using GitHub Enterprise at work, sign in to it to get access to your repositories."));default:return at(0,`Unknown tab: ${e}`)}}renderFooter(){const e=!this.getCurrentTabState().settings.name.length,t=this.state.currentTab;return this.getAccountForTab(t)?ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"发布存储库",okButtonDisabled:e})):null}signInDotCom=()=>{this.props.dispatcher.showDotComSignInDialog()};signInEnterprise=()=>{this.props.dispatcher.showEnterpriseSignInDialog()};publishRepository=async()=>{const e=this.getCurrentTabState();this.setCurrentTabError(null),this.setState({publishing:!0});const t=this.state.currentTab,n=this.getAccountForTab(t);n||ot("Tried to publish with no user. That seems impossible!");const r=e.settings,{org:s}=e.settings;try{await this.props.dispatcher.publishRepository(this.props.repository,r.name,r.description,r.private,n,s),this.props.onDismissed()}catch(e){this.setCurrentTabError(e),this.setState({publishing:!1})}};onTabClicked=e=>{e!==this.state.currentTab&&this.setState({currentTab:e})};getCurrentTabState=()=>this.state.currentTab===XH.DotCom?this.state.dotcomTabState:this.state.enterpriseTabState;setTabState=e=>{"enterprise"===e.kind?this.setState({enterpriseTabState:e}):this.setState({dotcomTabState:e})};setCurrentTabSettings=e=>{if(e.kind===YH.enterprise){const t={...this.state.enterpriseTabState,settings:e};this.setTabState(t)}else{const t={...this.state.dotcomTabState,settings:e};this.setTabState(t)}};setCurrentTabError=e=>{this.setTabState({...this.getCurrentTabState(),error:e})}}class JH extends ke.Component{constructor(e){super(e),this.state={licenses:null}}async componentDidMount(){const e=t.join(await kt(),"static","licenses.json");r.readFile(e,"utf8",((e,t)=>{if(e)return void log.error("Error loading licenses",e);const n=JSON.parse(t);n?this.setState({licenses:n}):log.warn("Couldn't parse licenses!")}))}renderLicenses(e){const t=[];for(const[n,r]of Object.keys(e).sort().entries()){if(0===n)continue;const s=e[r],i=s.repository;let o,a;if(i){const e=eU(i);o=ke.createElement(sM,{uri:e},r)}else o=r;a=s.sourceText?s.sourceText:s.license?`License: ${s.license}`:"Unknown license";const l=ke.createElement("h2",{key:`${r}-header`},o),c=ke.createElement("p",{key:`${r}-text`,className:"license-text"},a);t.push(l,c)}return t}render(){const e=this.state.licenses;let t=null;if(e){const n=e[`desktop@${this.props.applicationVersion}`];t=ke.createElement("p",{className:"license-text"},n.sourceText)}return ke.createElement(AM,{id:"acknowledgements",title:"许可证和开源声明",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("p",null,ke.createElement(sM,{uri:"https://desktop.github.com"},"GitHub Desktop")," is an open source project published under the MIT License. You can view the source code and contribute to this project on"," ",ke.createElement(sM,{uri:"https://github.com/desktop/desktop"},"GitHub"),"."),t,ke.createElement("p",null,"GitHub Desktop also distributes these libraries:"),e?this.renderLicenses(e):ke.createElement(zD,null)),ke.createElement(MM,null))}}function eU(e){let t=e;return t=t.replace("git+https://github.com","https://github.com"),t=t.replace("git+ssh://git@github.com","https://github.com"),t}class tU extends ke.Component{render(){const e=i.parse(this.props.url).hostname;return ke.createElement(AM,{title:"不受信任的服务器",onDismissed:this.props.onDismissed,onSubmit:this.onContinue,type:"error"},ke.createElement(vM,null,ke.createElement("p",null,"GitHub Desktop cannot verify the identity of ",e,". The certificate (",this.props.certificate.subjectName,") is invalid or untrusted."," ",ke.createElement("strong",null,"This may indicate attackers are trying to steal your data.")),ke.createElement("p",null,"In some cases, this may be expected. For example:"),ke.createElement("ul",null,ke.createElement("li",null,"If this is a GitHub Enterprise trial."),ke.createElement("li",null,"If your GitHub Enterprise instance is run on an unusual top-level domain.")),ke.createElement("p",null,"If you are unsure of what to do, cancel and contact your system administrator.")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText: "添加证书"})))}onContinue=()=>{this.props.onDismissed(),this.props.onContinue(this.props.certificate)}}class nU extends ke.Component{get selectedAccount(){return this.state.selectedAccount??this.props.accounts.at(0)}constructor(e){super(e),this.state={selectedRepository:null,selectedAccount:e.accounts.at(0),filterText:""}}render(){return ke.createElement(fx,{id:"no-repositories"},ke.createElement("section",{"aria-label":"让我们一起摇摆!🥳🥳🥳"},ke.createElement("header",null,ke.createElement("h1",null,"让我们一起摇摆!🥳🥳🥳"),ke.createElement("p",null,"用GitHub Desktop协作开发")),ke.createElement("div",{className:"content"},this.renderRepositoryList(),this.renderGetStartedActions()),ke.createElement("img",{className:"no-repositories-graphic-top",src:CB,alt:""}),ke.createElement("img",{className:"no-repositories-graphic-bottom",src:vB,alt:""})))}componentDidMount(){this.state.selectedAccount&&this.ensureRepositoriesForAccount(this.state.selectedAccount)}componentDidUpdate(e,t){if(e.accounts!==this.props.accounts){const e=this.state.selectedAccount,t=(e?this.props.accounts.find((t=>gn(t,e))):void 0)??this.props.accounts.at(0);e!==t&&(this.setState({selectedAccount:t}),this.ensureRepositoriesForAccount(this.state.selectedAccount))}}ensureRepositoriesForAccount(e){e&&void 0===this.props.apiRepositories.get(e)&&this.props.onRefreshRepositories(e)}isUserSignedIn(){return this.props.accounts.length>0}renderRepositoryList(){const e=this.selectedAccount;if(!e)return null;const t=this.props.apiRepositories.get(e);return ke.createElement("div",{className:"content-pane repository-list"},this.renderAccountPicker(),this.renderAccountRepositoryList(e,t))}renderAccountPicker(){const{accounts:e}=this.props,t=this.selectedAccount;return e.length<2||!t?null:ke.createElement(_H,{accounts:e,selectedAccount:t,onSelectedAccountChanged:this.onSelectedAccountChanged})}onSelectedAccountChanged=e=>{this.setState({selectedAccount:e}),this.ensureRepositoriesForAccount(e)};renderAccountRepositoryList(e,t){const n=void 0===t||t.loading,r=void 0===t?null:t.repositories,s=this.state.selectedRepository;return ke.createElement(ke.Fragment,null,ke.createElement(MH,{account:e,selectedItem:s,filterText:this.state.filterText,onRefreshRepositories:this.props.onRefreshRepositories,loading:n,repositories:r,onSelectionChanged:this.onSelectionChanged,onFilterTextChanged:this.onFilterTextChanged,onItemClicked:this.onItemClicked}),this.renderCloneSelectedRepositoryButton(s))}onItemClicked=(e,t)=>{"keyboard"===t.kind&&"Enter"===t.event.key&&this.onCloneSelectedRepository()};renderCloneSelectedRepositoryButton(e){return null===e?null:ke.createElement(Ss,{type:"submit",className:"clone-selected-repository",onClick:this.onCloneSelectedRepository},"Clone"," ",ke.createElement("strong",null,e.owner.login,"/",e.name))}onCloneSelectedRepository=()=>{const e=this.state.selectedRepository;null!==e&&this.props.onClone(e.clone_url)};onSelectionChanged=e=>{this.setState({selectedRepository:e})};onFilterTextChanged=e=>{this.setState({filterText:e})};onShowClone=()=>this.props.onClone();renderButtonGroupButton(e,t,n,r,s){return ke.createElement("span",null,ke.createElement(Ss,{onClick:n,type:r,autoFocus:s},ke.createElement(Rs,{symbol:e}),ke.createElement("div",null,t)))}renderTutorialRepositoryButton(){return this.isUserSignedIn()?this.props.tutorialPaused?this.renderButtonGroupButton(al,"Return to in progress tutorial",this.props.onResumeTutorialRepository,"submit"):this.renderButtonGroupButton(al,"创建存储库教程...",this.props.onCreateTutorialRepository,"submit"):null}renderCloneButton(){return this.renderButtonGroupButton(Ql,"克隆存储库...",this.onShowClone,void 0,!this.isUserSignedIn())}renderCreateRepositoryButton(){return this.renderButtonGroupButton(Bl,"Create a New Repository on your local drive…",this.props.onCreate)}renderAddExistingRepositoryButton(){return this.renderButtonGroupButton(Bo,"Add an Existing Repository from your local drive…",this.props.onAdd)}renderGetStartedActions(){return ke.createElement("div",{className:"content-pane"},ke.createElement("div",{className:"button-group"},this.renderTutorialRepositoryButton(),this.renderCloneButton(),this.renderCreateRepositoryButton(),this.renderAddExistingRepositoryButton()),ke.createElement("div",{className:"drag-drop-info"},ke.createElement(Rs,{symbol:$a}),ke.createElement("div",null,ke.createElement("strong",null,"提示:"),"您可以将本地的存储库文件夹拖放到此处进行添加")))}}class rU extends ke.Component{constructor(e){super(e),this.state={deleteRepoFromDisk:!1,isRemovingRepository:!1}}onSubmit=async()=>{this.setState({isRemovingRepository:!0}),await this.props.onConfirmation(this.props.repository,this.state.deleteRepoFromDisk),this.props.onDismissed()};render(){const e=this.state.isRemovingRepository;return ke.createElement(AM,{id:"confirm-remove-repository",key:"remove-repository-confirmation",type:"warning",title:"移除仓库",dismissDisabled:e,loading:e,disabled:e,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit},ke.createElement(vM,null,ke.createElement("p",null,'确定从Github Desktop中移除仓库 "',this.props.repository.name,'" ?'),ke.createElement("div",{className:"description"},ke.createElement("p",null,"存储库将从Github Desktop中移除"),ke.createElement("p",null,ke.createElement(UM,null,this.props.repository.path))),ke.createElement("div",null,ke.createElement(vx,{label:"Also move this repository to "+xh,value:this.state.deleteRepoFromDisk?Cx.On:Cx.Off,onChange:this.onConfirmRepositoryDeletion}))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"移除"})))}onConfirmRepositoryDeletion=e=>{const t=e.currentTarget.checked;this.setState({deleteRepoFromDisk:t})}}const sU="https://github.com/contact";class iU extends ke.Component{render(){return ke.createElement(AM,{id:"terms-and-conditions",title:"GitHub 开源应用程序条款和条件",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("p",null,'These GitHub Open Source Applications Terms and Conditions ("Application Terms") are a legal agreement between you (either as an individual or on behalf of an entity) and GitHub, Inc. regarding your use of GitHub\'s applications, such as GitHub Desktop™ and associated documentation ("Software"). These Application Terms apply to the executable code version of the Software. Source code for the Software is available separately and free of charge under open source software license agreements. If you do not agree to all of the terms in these Application Terms, do not download, install, use, or copy the Software.'),ke.createElement("h2",null,"Connecting to GitHub"),ke.createElement("p",null,'If you configure the Software to work with one or more accounts on the GitHub.com website or with an instance of GitHub Enterprise Server, your use of the Software will also be governed your applicable GitHub.com website Terms of Service and/or the license agreement applicable to your instance of GitHub Enterprise ("GitHub Terms").'),ke.createElement("p",null,"Any use of the Software that violates your applicable GitHub Terms will also be a violation of these Application Terms."),ke.createElement("h2",null,"Open Source Licenses and Notices"),ke.createElement("p",null,'The open source license for the Software is included in the "Open Source Notices" documentation that is included with the Software. That documentation also includes copies of all applicable open source licenses.'),ke.createElement("p",null,"To the extent the terms of the licenses applicable to open source components require GitHub to make an offer to provide source code in connection with the Software, such offer is hereby made, and you may exercise it by contacting GitHub:"," ",ke.createElement(sM,{uri:sU},"contact"),"."),ke.createElement("p",null,"Unless otherwise agreed to in writing with GitHub, your agreement with GitHub will always include, at a minimum, these Application Terms. Open source software licenses for the Software's source code constitute separate written agreements. To the limited extent that the open source software licenses expressly supersede these Application Terms, the open source licenses govern your agreement with GitHub for the use of the Software or specific included components of the Software."),ke.createElement("h2",null,"GitHub's Logos"),ke.createElement("p",null,'The license grant included with the Software is not for GitHub\'s trademarks, which include the Software logo designs. GitHub reserves all trademark and copyright rights in and to all GitHub trademarks. GitHub\'s logos include, for instance, the stylized designs that include "logo" in the file title in the "logos" folder.'),ke.createElement("p",null,"The names GitHub, GitHub Desktop, GitHub for Mac, GitHub for Windows, Atom, the Octocat, and related GitHub logos and/or stylized names are trademarks of GitHub. You agree not to display or use these trademarks in any manner without GitHub's prior, written permission, except as allowed by GitHub's Logos and Usage Policy:"," ",ke.createElement(sM,{uri:"https://github.com/logos"},"logos"),"."),ke.createElement("h2",null,"Privacy"),ke.createElement("p",null,"The Software may collect personal information. You may control what information the Software collects in the settings panel. If the Software does collect personal information on GitHub's behalf, GitHub will process that information in accordance with the",ke.createElement(sM,{uri:"https://help.github.com/articles/github-privacy-statement/"},"GitHub 隐私声明"),"."),ke.createElement("h2",null,"Additional Services"),ke.createElement("h3",null,"Auto-Update Services"),ke.createElement("p",null,'The Software may include an auto-update service ("Service"). If you choose to use the Service or you download Software that automatically enables the Service, GitHub will automatically update the Software when a new version is available.'),ke.createElement("h3",null,"Disclaimers and Limitations of Liability"),ke.createElement("p",null,'THE SERVICE IS PROVIDED ON AN "AS IS" BASIS, AND NO WARRANTY, EITHER EXPRESS OR IMPLIED, IS GIVEN. YOUR USE OF THE SERVICE IS AT YOUR SOLE RISK. GitHub does not warrant that (i) the Service will meet your specific requirements; (ii) the Service is fully compatible with any particular platform; (iii) your use of the Service will be uninterrupted, timely, secure, or error-free; (iv) the results that may be obtained from the use of the Service will be accurate or reliable; (v) the quality of any products, services, information, or other material purchased or obtained by you through the Service will meet your expectations; or (vi) any errors in the Service will be corrected.'),ke.createElement("p",null,"YOU EXPRESSLY UNDERSTAND AND AGREE THAT GITHUB SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF GITHUB HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES) RELATED TO THE SERVICE, including, for example: (i) the use or the inability to use the Service; (ii) the cost of procurement of substitute goods and services resulting from any goods, data, information or services purchased or obtained or messages received or transactions entered into through or from the Service; (iii) unauthorized access to or alteration of your transmissions or data; (iv) statements or conduct of any third-party on the Service; (v) or any other matter relating to the Service."),ke.createElement("p",null,"GitHub reserves the right at any time and from time to time to modify or discontinue, temporarily or permanently, the Service (or any part thereof) with or without notice. GitHub shall not be liable to you or to any third-party for any price change, suspension or discontinuance of the Service."),ke.createElement("h2",null,"Miscellanea"),ke.createElement("ol",null,ke.createElement("li",null,"No Waiver. The failure of GitHub to exercise or enforce any right or provision of these Application Terms shall not constitute a waiver of such right or provision."),ke.createElement("li",null,"Entire Agreement. These Application Terms, together with any applicable Privacy Notices, constitutes the entire agreement between you and GitHub and governs your use of the Software, superseding any prior agreements between you and GitHub (including, but not limited to, any prior versions of the Application Terms)."),ke.createElement("li",null,"Governing Law. You agree that these Application Terms and your use of the Software are governed under California law and any dispute related to the Software must be brought in a tribunal of competent jurisdiction located in or near San Francisco, California."),ke.createElement("li",null,'Third-Party Packages. The Software supports third-party "Packages" which may modify, add, remove, or alter the functionality of the Software. These Packages are not covered by these Application Terms and may include their own license which governs your use of that particular package.'),ke.createElement("li",null,"No Modifications; Complete Agreement. These Application Terms may only be modified by a written amendment signed by an authorized representative of GitHub, or by the posting by GitHub of a revised version. These Application Terms, together with any applicable Open Source Licenses and Notices and GitHub's Privacy Statement, represent the complete and exclusive statement of the agreement between you and us. These Application Terms supersede any proposal or prior agreement oral or written, and any other communications between you and GitHub relating to the subject matter of these terms."),ke.createElement("li",null,"License to GitHub Policies. These Application Terms are licensed under the"," ",ke.createElement(sM,{uri:"https://creativecommons.org/licenses/by/4.0/"},"Creative Commons Attribution license"),". You may use it freely under the terms of the Creative Commons license."),ke.createElement("li",null,"Contact Us. Please send any questions about these Application Terms to ",ke.createElement(sM,{uri:sU},"support@github.com"),"."))),ke.createElement(MM,null))}}class oU extends ke.Component{render(){return ke.createElement(AM,{title:"命令行工具已安装",onDismissed:this.props.onDismissed,onSubmit:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("div",null,"The command line tool has been installed at"," ",ke.createElement("strong",null,yL),".")),ke.createElement(MM,{buttonText:"确定"}))}}class aU extends ke.Component{textBoxRef=ke.createRef();constructor(e){super(e),this.state={showPassword:!1}}onTogglePasswordVisibility=()=>{this.setState({showPassword:!this.state.showPassword}),this.textBoxRef.current.focus()};render(){const e=this.state.showPassword?uo:ho,t=this.state.showPassword?"text":"password",n={...this.props,type:t};return ke.createElement("div",{className:"password-text-box"},ke.createElement(nx,{...n,ref:this.textBoxRef}),ke.createElement(Ss,{ariaLabel:"Toggle password visibility",tooltip:"Toggle password visibility",onClick:this.onTogglePasswordVisibility,ariaPressed:this.state.showPassword},ke.createElement(Rs,{symbol:e})))}}class lU extends ke.Component{constructor(e){super(e),this.state={username:this.props.username??"",password:""}}render(){const e=!this.state.password.length||!this.state.username.length;return ke.createElement(AM,{id:"generic-git-auth",title:"验证失败",onDismissed:this.props.onDismiss,onSubmit:this.save,role:"alertdialog",ariaDescribedBy:"generic-git-auth-error"},ke.createElement(vM,null,ke.createElement("p",{id:"generic-git-auth-error"},"We were unable to authenticate with"," ",ke.createElement(UM,null,this.props.remoteUrl),". Please enter"," ",this.props.username?ke.createElement(ke.Fragment,null,"the password for the user ",ke.createElement(UM,null,this.props.username)):"your username and password"," ","to try again."),void 0===this.props.username&&ke.createElement(rx,null,ke.createElement(nx,{label:"用户名",autoFocus:!0,value:this.state.username,onValueChanged:this.onUsernameChange})),ke.createElement(rx,null,ke.createElement(aU,{label:"密码",value:this.state.password,onValueChanged:this.onPasswordChange,ariaDescribedBy:"generic-git-auth-password-description"})),ke.createElement(rx,null,ke.createElement("div",{id:"generic-git-auth-password-description"},"Depending on your repository's hosting service, you might need to use a Personal Access Token (PAT) as your password. Learn more about creating a PAT in our"," ",ke.createElement(sM,{uri:"https://github.com/desktop/desktop/tree/development/docs/integrations"},"integration docs"),"."))),ke.createElement(xM,null,ke.createElement(DM,{okButtonDisabled:e})))}onUsernameChange=e=>{this.setState({username:e})};onPasswordChange=e=>{this.setState({password:e})};save=()=>{this.props.onSave(this.props.username??this.state.username,this.state.password),this.props.onDismiss()}}class cU extends ke.Component{onShowPreferencesDialog=e=>{e.preventDefault(),this.props.onDismissed(),this.props.showPreferencesDialog()};render(){return ke.createElement(AM,{id:"shell-error",type:"error",title:"无法打开 shell",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("p",null,this.props.message)),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"关闭",cancelButtonText: "打开选项",onCancelButtonClick:this.onShowPreferencesDialog})))}}const uU="https://git-lfs.github.com/";class hU extends ke.Component{render(){return ke.createElement(AM,{id:"initialize-lfs",title:"初始化 Git LFS",backdropDismissable:!1,onSubmit:this.onInitialize,onDismissed:this.props.onDismissed},ke.createElement(vM,null,this.renderRepositories()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"初始化 Git LFS",cancelButtonText:"暂不",onCancelButtonClick:this.props.onDismissed})))}onInitialize=()=>{this.props.onInitialize(this.props.repositories),this.props.onDismissed()};renderRepositories(){if(this.props.repositories.length>10)return ke.createElement("p",null,this.props.repositories.length," repositories use"," ",ke.createElement(sM,{uri:uU},"Git LFS"),". To contribute to them, Git LFS must first be initialized. Would you like to do so now?");{const e=1!==this.props.repositories.length,t=e?"The repositories use":"This repository uses",n=e?"them":"it";return ke.createElement("div",null,ke.createElement("p",null,t," ",ke.createElement(sM,{uri:uU},"Git LFS"),". To contribute to"," ",n,", Git LFS must first be initialized. Would you like to do so now?"),ke.createElement("ul",null,this.props.repositories.map((e=>ke.createElement("li",{key:e.id},ke.createElement(wP,{path:e.path}))))))}}}class pU extends ke.Component{render(){return ke.createElement(AM,{id:"lfs-attribute-mismatch",title:"更新现有的 Git LFS 过滤器?",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit},ke.createElement(vM,null,ke.createElement("p",null,"Git LFS filters are already configured in"," ",ke.createElement(sM,{onClick:this.props.onEditGlobalGitConfig},"your global git config")," ","but are not the values it expects. Would you like to update them now?")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"更新现有过滤器",cancelButtonText:"暂不"})))}onSubmit=()=>{this.props.onUpdateExistingFilters(),this.props.onDismissed()}}class dU extends ke.Component{render(){const e=this.props.repository.name,t=lt("A repository must have a GitHub repository to add an upstream remote",this.props.repository.gitHubRepository),n=lt("A repository must have a parent repository to add an upstream remote",t.parent),r=n.fullName,s=this.props.existingRemote.url,i=n.cloneURL;return ke.createElement(AM,{title:"上游已存在",onDismissed:this.props.onDismissed,onSubmit:this.onUpdate,type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"The repository ",ke.createElement(UM,null,e)," is a fork of"," ",ke.createElement(UM,null,r),", but its ",ke.createElement(UM,null,Jw)," ","remote points elsewhere."),ke.createElement("ul",null,ke.createElement("li",null,"Current: ",ke.createElement(UM,null,s)),ke.createElement("li",null,"Expected: ",ke.createElement(UM,null,i))),ke.createElement("p",null,"Would you like to update the remote to use the expected URL?")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"更新",cancelButtonText:"忽略",onCancelButtonClick:this.onIgnore})))}onUpdate=()=>{this.props.onUpdate(this.props.repository),this.props.onDismissed()};onIgnore=e=>{e.preventDefault(),this.props.onIgnore(this.props.repository),this.props.onDismissed()}}const mU=new hT("desktop",ar(),-1),fU=new Kr("",-1,new Wr("desktop",mU,-1,!1,"https://github.com/desktop/desktop"),!0);class gU extends ke.Component{renderList(e,t){if(0===e.length)return null;const n=new Array;for(const[t,r]of e.entries())n.push(ke.createElement("li",{key:t},ke.createElement(WI,{text:r.message,emoji:this.props.emoji,renderUrlsAsLinks:!0,repository:fU})));return ke.createElement("div",{className:"section"},ke.createElement("p",{className:"header"},ke.createElement("strong",null,t)),ke.createElement("ul",{className:"entries"},n))}drawSingleColumnLayout(e){return ke.createElement("div",{className:"container"},ke.createElement("div",{className:"column"},this.renderList(e.bugfixes,"Bugfixes"),this.renderList(e.enhancements,"Enhancements"),this.renderList(e.other,"Other")))}drawTwoColumnLayout(e){return ke.createElement("div",{className:"container"},ke.createElement("div",{className:"column"},this.renderList(e.enhancements,"Enhancements"),this.renderList(e.other,"Other")),ke.createElement("div",{className:"column"},this.renderList(e.bugfixes,"Bugfixes")))}getDisplayRelease=()=>{const{newReleases:e}=this.props,t=e.at(0),n=e.at(-1);return void 0===t||void 0===n||t===n?t:{latestVersion:`${n.latestVersion} - ${t.latestVersion}`,datePublished:`${n.datePublished} to ${t.datePublished}`,enhancements:e.flatMap((e=>e.enhancements)),bugfixes:e.flatMap((e=>e.bugfixes)),pretext:e.flatMap((e=>e.pretext)),other:[],thankYous:[]}};renderPretext=e=>{if(0!==e.length)return ke.createElement(mO,{markdown:e[0].message,emoji:this.props.emoji,onMarkdownLinkClicked:this.onMarkdownLinkClicked,underlineLinks:this.props.underlineLinks,ariaLabel:"Release notes generated from markdown"})};onDismissed=e=>{e.preventDefault(),this.props.onDismissed()};renderButtons=()=>"3.5.3"===this.props.newReleases[0].latestVersion?ke.createElement(Ss,{type:"submit",onClick:this.onDismissed},"关闭"):ke.createElement(DM,{destructive:!0,okButtonText:"安装并重启",cancelButtonText:"关闭"});render(){const e=this.getDisplayRelease();if(void 0===e)return null;const{latestVersion:t,datePublished:n,enhancements:r,bugfixes:s,pretext:i}=e,o=r.length>0&&s.length>0?this.drawTwoColumnLayout(e):this.drawSingleColumnLayout(e),a=ke.createElement(ke.Fragment,null,ke.createElement("span",{className:"version"},"Version ",t),ke.createElement("span",{className:"date"},n));return ke.createElement(AM,{id:"release-notes",onDismissed:this.props.onDismissed,onSubmit:this.updateNow,title:a},ke.createElement(vM,null,this.renderPretext(i),o),ke.createElement(xM,null,ke.createElement(sM,{onClick:this.showAllReleaseNotes},"View all release notes"),this.renderButtons()))}updateNow=()=>{dn.quitAndInstallUpdate()};showAllReleaseNotes=()=>{ut.openExternal(kB)};onMarkdownLinkClicked=e=>{ut.openExternal(e)}}class yU extends ke.Component{render(){return ke.createElement(AM,{id:"delete-branch",title:"删除分支",type:"warning",onDismissed:this.props.onDismissed,onSubmit:this.deleteBranch},ke.createElement(vM,null,ke.createElement("p",null,"This branch may have an open pull request associated with it."),ke.createElement("p",null,"If"," ",ke.createElement(sM,{onClick:this.openPullRequest},"#",this.props.pullRequest.pullRequestNumber)," ","has been merged, you can also go to GitHub to delete the remote branch.")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText: "删除"})))}openPullRequest=()=>{this.props.dispatcher.showPullRequest(this.props.repository)};deleteBranch=()=>(this.props.dispatcher.deleteLocalBranch(this.props.repository,this.props.branch),this.props.onDismissed())}class wU extends ke.Component{onCancel=()=>{this.props.onDismissed()};onSubmit=async()=>{this.props.onDismissed(),await this.props.dispatcher.commitIncludedChanges(this.props.repository,this.props.context),this.props.dispatcher.clearBanner(),this.props.dispatcher.setCommitMessage(this.props.repository,Yw)};renderFiles(e){return ke.createElement("div",{className:"conflicted-files-text"},ke.createElement("ul",null,e.map((e=>ke.createElement("li",{key:e.path},ke.createElement(wP,{path:e.path}))))))}render(){return ke.createElement(AM,{id:"commit-conflict-markers-warning",onDismissed:this.onCancel,onSubmit:this.onSubmit,title:"确认提交冲突文件",type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"If you choose to commit, youll be committing the following conflicted files into your repository:"),this.renderFiles(this.props.files),ke.createElement("p",null,"Are you sure you want to commit these conflicted files?")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"确定,提交文件"})))}}class bU extends ke.PureComponent{componentDidMount(){this.ensureTheme()}componentDidUpdate(){this.ensureTheme()}componentWillUnmount(){this.clearThemes()}async ensureTheme(){let e=this.props.theme;this.props.theme===$p.System&&(e=await Gp());const t=`theme-${Wp(e)}`;document.body.classList.contains(t)||(this.clearThemes(),document.body.classList.add(t),this.updateColorScheme())}updateColorScheme=()=>{const e=document.body.classList.contains("theme-dark");document.documentElement.style.colorScheme=e?"dark":"light"};clearThemes(){const e=document.body,t=[...e.classList];for(const n of t)n.startsWith("theme-")&&e.classList.remove(n)}render(){return null}}class CU extends ke.Component{constructor(e){super(e)}render(){return ke.createElement(AM,{id:"oversized-files",title:"文件过大",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"The following files are over 100MB."," ",ke.createElement("strong",null,"If you commit these files, you will no longer be able to push this repository to GitHub.com.")),this.renderFileList(),ke.createElement("p",{className:"recommendation"},"We recommend you avoid committing these files or use"," ",ke.createElement(sM,{uri:"https://help.github.com/articles/versioning-large-files/"},"Git LFS")," to store large files on GitHub.")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"仍要提交"})))}renderFileList(){return ke.createElement("div",{className:"files-list"},ke.createElement("ul",null,this.props.oversizedFiles.map((e=>ke.createElement("li",{key:e},ke.createElement(wP,{path:e}))))))}onSubmit=async()=>{this.props.onDismissed(),await this.props.dispatcher.commitIncludedChanges(this.props.repository,this.props.context),this.props.dispatcher.setCommitMessage(this.props.repository,Yw)}}class vU extends ke.Component{constructor(e){super(e),this.state={isLoading:!1}}render(){return ke.createElement(AM,{title:"远程存在更新的提交",dismissDisabled:this.state.isLoading,disabled:this.state.isLoading,onDismissed:this.props.onDismissed,onSubmit:this.onFetch,loading:this.state.isLoading,type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"无法将推送提交到此分支,因为远程上的提交在本地分支上不存在。在推送之前获取这些新提交,以使它们与您的本地提交同步。")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"获取",okButtonDisabled:this.state.isLoading})))}onFetch=async()=>{this.setState({isLoading:!0}),await this.props.dispatcher.fetch(this.props.repository,mn.UserInitiatedTask),this.setState({isLoading:!1}),this.props.onDismissed()}}var SU;!function(e){e[e.StashOnCurrentBranch=0]="StashOnCurrentBranch",e[e.MoveToNewBranch=1]="MoveToNewBranch"}(SU||(SU={}));class EU extends ke.Component{constructor(e){super(e),this.state={isStashingChanges:!1,selectedStashAction:SU.StashOnCurrentBranch,currentBranchName:e.currentBranch.name}}render(){const{isStashingChanges:e}=this.state;return ke.createElement(AM,{id:"stash-changes",title:"选择分支",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,loading:e,disabled:e},ke.createElement(vM,null,this.renderStashActions(),this.renderStashOverwriteWarning()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"选择分支"})))}renderStashOverwriteWarning(){return this.props.hasAssociatedStash&&this.state.selectedStashAction===SU.StashOnCurrentBranch?ke.createElement(rx,null,ke.createElement(Rs,{symbol:xs})," 新暂存将覆盖当前暂存"):null}renderStashActions(){const{branchToCheckout:e}=this.props,t=[{title:`保留 ${this.state.currentBranchName} 上的更改`,description:"更改将保留在此分支",key:SU.StashOnCurrentBranch},{title:`将更改带到 ${e.name}`,description:"更改将带到新的分支",key:SU.MoveToNewBranch}];return ke.createElement(rx,null,ke.createElement(LH,{label:"此分支已更改。请选择下一步操作:",items:t,selectedKey:this.state.selectedStashAction,onSelectionChanged:this.onSelectionChanged}))}onSelectionChanged=e=>{this.setState({selectedStashAction:e})};onSubmit=async()=>{const{repository:e,branchToCheckout:t,dispatcher:n,hasAssociatedStash:r}=this.props,{selectedStashAction:s}=this.state;if(s===SU.StashOnCurrentBranch&&r)return void n.showPopup({type:Sh.ConfirmOverwriteStash,repository:e,branchToCheckout:t});this.setState({isStashingChanges:!0});const i=eM("stash and checkout",e);try{s===SU.StashOnCurrentBranch?await n.checkoutBranch(e,t,Ab.StashOnCurrentBranch):s===SU.MoveToNewBranch&&await n.checkoutBranch(e,t,Ab.MoveToNewBranch)}finally{i.done(),this.setState({isStashingChanges:!1},(()=>{this.props.onDismissed()}))}}}class kU extends ke.Component{constructor(e){super(e),this.state={isLoading:!1}}render(){return ke.createElement(AM,{id:"overwrite-stash",type:"warning",title:"覆盖临时保存的更改?",loading:this.state.isLoading,disabled:this.state.isLoading,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"overwrite-stash-warning-message"},ke.createElement(vM,null,ke.createElement(rx,{id:"overwrite-stash-warning-message"},"Are you sure you want to proceed? This will overwrite your existing stash with your current changes.")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"覆盖"})))}onSubmit=async()=>{const{dispatcher:e,repository:t,branchToCheckout:n,onDismissed:r}=this.props;this.setState({isLoading:!0});try{if(null!==n){const r=Ab.StashOnCurrentBranch;await e.checkoutBranch(t,n,r)}else await e.createStashForCurrentBranch(t,!1)}finally{this.setState({isLoading:!1})}r()}}class RU extends ke.Component{constructor(e){super(e),this.state={isDiscarding:!1,confirmDiscardStash:e.askForConfirmationOnDiscardStash}}render(){return ke.createElement(AM,{id:"discard-stash",type:"warning",title:"放弃临时保存的更改?",loading:this.state.isDiscarding,disabled:this.state.isDiscarding,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"discard-stash-warning-message"},ke.createElement(vM,null,ke.createElement(rx,{id:"discard-stash-warning-message"},"Are you sure you want to discard these stashed changes?"),ke.createElement(rx,null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.confirmDiscardStash?Cx.Off:Cx.On,onChange:this.onAskForConfirmationOnDiscardStashChanged}))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"放弃"})))}onAskForConfirmationOnDiscardStashChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardStash:t})};onSubmit=async()=>{const{dispatcher:e,repository:t,stash:n,onDismissed:r}=this.props;this.setState({isDiscarding:!0});try{e.setConfirmDiscardStashSetting(this.state.confirmDiscardStash),await e.dropStash(t,n)}finally{this.setState({isDiscarding:!1})}r()}}class AU extends ke.Component{constructor(e){super(e),this.state={isCheckingOut:!1,confirmCheckoutCommit:e.askForConfirmationOnCheckoutCommit}}render(){return ke.createElement(AM,{id:"checkout-commit",type:"warning",title:"Checkout commit?",loading:this.state.isCheckingOut,disabled:this.state.isCheckingOut,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,ariaDescribedBy:"checking-out-commit-confirmation",role:"alertdialog"},ke.createElement(vM,null,ke.createElement(rx,{id:"checking-out-commit-confirmation"},"Checking out a commit will create a detached HEAD, and you will no longer be on any branch. Are you sure you want to checkout this commit?"),ke.createElement(rx,null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.confirmCheckoutCommit?Cx.Off:Cx.On,onChange:this.onaskForConfirmationOnCheckoutCommitChanged}))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"Checkout"})))}onaskForConfirmationOnCheckoutCommitChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmCheckoutCommit:t})};onSubmit=async()=>{const{dispatcher:e,repository:t,commit:n,onDismissed:r}=this.props;this.setState({isCheckingOut:!0});try{e.setConfirmCheckoutCommitSetting(this.state.confirmCheckoutCommit),await e.checkoutCommit(t,n)}finally{this.setState({isCheckingOut:!1})}r()}}class TU extends ke.Component{onSubmit=()=>this.props.onCreateTutorialRepository(this.props.account);renderProgress(){const{progress:e}=this.props;if(void 0===e)return null;const t=e.description?ke.createElement("div",{className:"description"},e.description):null;return ke.createElement("div",{className:"progress-container"},ke.createElement("div",null,e.title),ke.createElement("progress",{value:e.value}),t)}render(){const{account:e,progress:t}=this.props,n=void 0!==t;return ke.createElement(AM,{id:"create-tutorial-repository-dialog",title:"开始教程",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,dismissDisabled:n,loading:n,disabled:n},ke.createElement(vM,null,ke.createElement("div",null,"This will create a repository on your local machine, and push it to your account ",ke.createElement(UM,null,"@",this.props.account.login)," 在"," ",ke.createElement(sM,{uri:ir(e.endpoint)},e.friendlyEndpoint),". This repository will only be visible to you, and not visible publicly."),this.renderProgress()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"确定"})))}}class xU extends ke.Component{constructor(e){super(e),this.state={loading:!1}}render(){return ke.createElement(AM,{id:"workflow-push-rejected",title:"推送被拒绝",loading:this.state.loading,onDismissed:this.props.onDismissed,onSubmit:this.onSignIn,type:"error"},ke.createElement(vM,null,ke.createElement("p",null,"The push was rejected by the server for containing a modification to the workflow file ",ke.createElement(UM,null,this.props.rejectedPath),". In order to be able to push to workflow files GitHub Desktop needs to request additional permissions."),ke.createElement("p",null,"Would you like to open a browser to grant GitHub Desktop permission to update workflow files?")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"在浏览器中继续"})))}onSignIn=async()=>{this.setState({loading:!0});const{repository:e,dispatcher:t}=this.props,{endpoint:n}=e.gitHubRepository;"success"===(await new Promise((async e=>{t.beginBrowserBasedSignIn(n,e)}))).kind&&t.push(e),this.props.onDismissed()}}class DU extends ke.Component{constructor(e){super(e),this.state={loading:!1}}render(){return ke.createElement(AM,{title:"需要重新授权",loading:this.state.loading,onDismissed:this.props.onDismissed,onSubmit:this.onSignIn,type:"error"},ke.createElement(vM,null,ke.createElement("p",null,'The "',this.props.organizationName,"\" organization has enabled or enforced SAML SSO. To access this repository, you must sign in again and grant GitHub Desktop permission to access the organization's repositories."),ke.createElement("p",null,"Would you like to open a browser to grant GitHub Desktop permission to access the repository?")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"在浏览器中继续"})))}onSignIn=async()=>{this.setState({loading:!0});const{dispatcher:e,endpoint:t}=this.props;"success"===(await new Promise((async n=>{e.beginBrowserBasedSignIn(t,n)}))).kind&&this.props.retryAction&&e.performRetry(this.props.retryAction),this.props.onDismissed()}}class MU extends ke.Component{constructor(e){super(e),this.state={loading:!1}}onSubmit=async()=>{this.setState({loading:!0});const{gitHubRepository:e}=this.props.repository,t=rr.fromAccount(this.props.account);try{const n=await t.forkRepository(e.owner.login,e.name);this.props.dispatcher.incrementMetric("forksCreated");const r=await this.props.dispatcher.convertRepositoryToFork(this.props.repository,n);this.setState({loading:!1}),this.props.onDismissed(),Xr(r)&&this.props.dispatcher.showPopup({type:Sh.ChooseForkSettings,repository:r})}catch(e){log.error(`Fork creation through API failed (${e})`),QT("forkCreation",e),this.setState({error:e,loading:!1})}};render(){return ke.createElement(AM,{title:"是否要 fork 此存储库?",onDismissed:this.props.onDismissed,onSubmit:this.state.error?void 0:this.onSubmit,dismissDisabled:this.state.loading,loading:this.state.loading,type:this.state.error?"error":"normal",key:this.props.repository.name,id:"create-fork"},void 0!==this.state.error?function(e,t,n){const r=null!==e.gitHubRepository.htmlURL?ke.createElement(ke.Fragment,null,"You can try ",ke.createElement(sM,{uri:e.gitHubRepository.htmlURL},"creating the fork manually on GitHub"),"."):void 0;return ke.createElement(ke.Fragment,null,ke.createElement(vM,null,ke.createElement("div",null,"Creating your fork ",ke.createElement("strong",null,`${t.login}/${e.gitHubRepository.name}`)," failed. ",r),ke.createElement("details",null,ke.createElement("summary",null,"Error details"),ke.createElement("pre",{className:"error"},n.message))),ke.createElement(MM,null))}(this.props.repository,this.props.account,this.state.error):(e=this.props.repository,t=this.props.account,n=this.state.loading,ke.createElement(ke.Fragment,null,ke.createElement(vM,null,ke.createElement("p",null,"It looks like you dont have write access to ",ke.createElement("strong",null,e.gitHubRepository.fullName),". If you should, please check with a repository administrator."),ke.createElement("p",null," Do you want to create a fork of this repository at ",ke.createElement("strong",null,`${t.login}/${e.gitHubRepository.name}`)," to continue?")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"Fork 该存储库",okButtonDisabled:n,cancelButtonDisabled:n})))));var e,t,n}}class PU extends ke.Component{constructor(e){super(e),this.state={tagName:e.initialName||"",isCreatingTag:!1,previousTags:this.getExistingTagsFiltered()}}render(){const e=this.getCurrentError(),t=null!==e||0===this.state.tagName.length;return ke.createElement(AM,{id:"create-tag",title:"创建标签",onSubmit:this.createTag,onDismissed:this.props.onDismissed,loading:this.state.isCreatingTag,disabled:this.state.isCreatingTag},e&&ke.createElement(TM,null,e),ke.createElement(vM,null,ke.createElement(tB,{label: "名称",initialValue:this.props.initialName,onValueChange:this.updateTagName}),this.renderPreviousTags()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"创建标签",okButtonDisabled:t})))}renderPreviousTags(){if(!on())return null;const{localTags:e}=this.props,{previousTags:t,tagName:n}=this.state;if(null===t||null===e||0===e.size)return null;const r=t.slice(-3);return ke.createElement(ke.Fragment,null,ke.createElement("p",null,"Previous tags"),0===r.length?ke.createElement("p",null,`No matches found for '${n}'`):r.map(((e,t)=>ke.createElement(UM,{key:t},e))))}getCurrentError(){return this.state.tagName.length>245?ke.createElement(ke.Fragment,null,"The tag name cannot be longer than ",245," characters"):this.props.localTags&&this.props.localTags.has(this.state.tagName)?ke.createElement(ke.Fragment,null,"A tag named ",ke.createElement(UM,null,this.state.tagName)," already exists"):null}getExistingTagsFiltered(e=""){return null===this.props.localTags?null:Array.from(this.props.localTags.keys()).filter((t=>t.includes(e)))}updateTagName=e=>{this.setState({tagName:e,previousTags:this.getExistingTagsFiltered(e)})};createTag=async()=>{const e=this.state.tagName,t=this.props.repository;if(e.length>0){this.setState({isCreatingTag:!0});const n=eM("create tag",t);await this.props.dispatcher.createTag(t,e,this.props.targetCommitSha),n.done(),this.props.onDismissed()}}}class IU extends ke.Component{constructor(e){super(e),this.state={isDeleting:!1}}render(){return ke.createElement(AM,{id:"delete-tag",title:"删除标签",type:"warning",onSubmit:this.DeleteTag,onDismissed:this.props.onDismissed,disabled:this.state.isDeleting,loading:this.state.isDeleting,role:"alertdialog",ariaDescribedBy:"delete-tag-confirmation"},ke.createElement(vM,null,ke.createElement("p",{id:"delete-tag-confirmation"},"Are you sure you want to delete the tag"," ",ke.createElement(UM,null,this.props.tagName),"?")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText: "删除"})))}DeleteTag=async()=>{const{dispatcher:e,repository:t,tagName:n}=this.props;this.setState({isDeleting:!0}),await e.deleteTag(t,n),this.props.onDismissed()}}class _U extends ke.Component{constructor(e){super(e),this.state={forkContributionTarget:ts(e.repository)}}render(){const e=[{title:"为了为父项目做贡献",description:ke.createElement(ke.Fragment,null,"We will help you contribute to the"," ",ke.createElement("strong",null,this.props.repository.gitHubRepository.parent.fullName)," ","repository"),key:qr.Parent},{title:"出于自己的目的",description:ke.createElement(ke.Fragment,null,"We will help you contribute to the"," ",ke.createElement("strong",null,this.props.repository.gitHubRepository.fullName)," ","repository"),key:qr.Self}];return ke.createElement(AM,{id:"fork-settings",title:"你打算如何使用此 fork",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement(LH,{label:"This repository is a fork. How do you plan to use it?",items:e,selectedKey:this.state.forkContributionTarget,onSelectionChanged:this.onSelectionChanged})),ke.createElement(rx,null,ke.createElement(VM,{repository:this.props.repository,forkContributionTarget:this.state.forkContributionTarget}))),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"确定"})))}onSelectionChanged=e=>{this.setState({forkContributionTarget:e})};onSubmit=async()=>{this.props.dispatcher.updateRepositoryWorkflowPreferences(this.props.repository,{forkContributionTarget:this.state.forkContributionTarget}),this.props.onDismissed()}}class FU extends ke.Component{constructor(e){super(e),this.state={isDiscardingSelection:!1,confirmDiscardSelection:!0}}getOkButtonLabel(){return "放弃更改"}render(){const e=this.state.isDiscardingSelection;return ke.createElement(AM,{id:"discard-changes",title:"确认放弃更改",onDismissed:this.props.onDismissed,onSubmit:this.discard,dismissDisabled:e,loading:e,disabled:e,type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"确定要放弃选中的更改吗?"),ke.createElement("ul",null,ke.createElement("li",null,ke.createElement(wP,{path:this.props.file.path}))),ke.createElement(vx,{label:"不再显示此消息",value:this.state.confirmDiscardSelection?Cx.Off:Cx.On,onChange:this.onConfirmDiscardSelectionChanged})),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:this.getOkButtonLabel(),okButtonDisabled:e,cancelButtonDisabled:e})))}discard=async()=>{this.setState({isDiscardingSelection:!0}),await this.props.dispatcher.discardChangesFromSelection(this.props.repository,this.props.file.path,this.props.diff,this.props.selection),this.props.dispatcher.setConfirmDiscardChangesSetting(this.state.confirmDiscardSelection),this.props.onDismissed()};onConfirmDiscardSelectionChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardSelection:t})}}class NU extends ke.Component{constructor(e){super(e),this.state={stashing:!1}}render(){const e=this.props.files.length>0?" The following files would be overwritten:":null;return ke.createElement(AM,{title:"错误",id:"local-changes-overwritten",loading:this.state.stashing,disabled:this.state.stashing,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"error",role:"alertdialog",ariaDescribedBy:"local-changes-error-description"},ke.createElement(vM,null,ke.createElement("div",{id:"local-changes-error-description"},ke.createElement("p",null,"Unable to ",this.getRetryActionName()," when changes are present on your branch.",e),this.renderFiles(),this.renderStashText())),this.renderFooter())}renderFiles(){const{files:e}=this.props;return 0===e.length?null:ke.createElement("div",{className:"files-list"},ke.createElement("ul",null,e.map((e=>ke.createElement("li",{key:e},ke.createElement(wP,{path:e}))))))}renderStashText(){return this.props.hasExistingStash&&!this.state.stashing?null:ke.createElement("p",null,"You can stash your changes now and recover them afterwards.")}renderFooter(){return this.props.hasExistingStash&&!this.state.stashing?ke.createElement(MM,null):ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"保存更改并继续",okButtonTitle:"This will create a stash with your current changes. You can recover them by restoring the stash afterwards.",cancelButtonText:"关闭"}))}onSubmit=async()=>{const{hasExistingStash:e,repository:t,dispatcher:n,retryAction:r}=this.props;if(e)return void this.props.onDismissed();this.setState({stashing:!0});const s=await n.createStashForCurrentBranch(t,!1);this.props.onDismissed(),s&&await n.performRetry(r)};getRetryActionName(){switch(this.props.retryAction.type){case pt.Checkout:return"checkout";case pt.Pull:return"pull";case pt.Merge:return"merge";case pt.Rebase:return"rebase";case pt.Clone:return"clone";case pt.Fetch:return"fetch";case pt.Push:return"push";case pt.CherryPick:case pt.CreateBranchForCherryPick:return"cherry-pick";case pt.Squash:return"squash";case pt.Reorder:return"reorder";case pt.DiscardChanges:return"discard changes";default:at(this.props.retryAction,`Unknown retryAction: ${this.props.retryAction}`)}}}class OU extends ke.Component{constructor(e){super(e),this.state={askToMoveToApplicationsFolder:!0}}render(){return ke.createElement(AM,{title:"将 GitHub 桌面版移动到应用程序文件夹中?",id:"move-to-applications-folder",backdropDismissable:!1,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"We've detected that you're not running GitHub Desktop from the Applications folder of your machine. This could cause problems with the app, including impacting your ability to sign in."),ke.createElement("p",null,"Do you want to move GitHub Desktop to the Applications folder now? This will also restart the app."),ke.createElement("div",null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.askToMoveToApplicationsFolder?Cx.Off:Cx.On,onChange:this.onAskToMoveToApplicationsFolderChanged}))),this.renderFooter())}renderFooter(){return ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"移动并重启",okButtonTitle:"This will move GitHub Desktop to the Applications folder in your machine and restart the app.",cancelButtonText:"暂不",onCancelButtonClick:this.onNotNow}))}onAskToMoveToApplicationsFolderChanged=e=>{const t=!e.currentTarget.checked;this.setState({askToMoveToApplicationsFolder:t})};onNotNow=()=>{this.props.onDismissed(),this.props.dispatcher.setAskToMoveToApplicationsFolderSetting(this.state.askToMoveToApplicationsFolder)};onSubmit=async()=>{this.props.onDismissed();try{await this.props.dispatcher.moveToApplicationsFolder()}catch(e){this.props.dispatcher.postError(e)}}}class LU extends ke.Component{constructor(e){super(e),this.state={newAlias:e.repository.alias??e.repository.name}}render(){const e=this.props.repository,t=null===e.alias?"创建":"变更";return ke.createElement(AM,{id:"change-repository-alias",title:`${t} 存储库别名`,ariaDescribedBy:"change-repository-alias-description",onDismissed:this.props.onDismissed,onSubmit:this.changeAlias},ke.createElement(vM,null,ke.createElement("p",{id:"change-repository-alias-description"},'请输入别名,此别名对应的存储库是 "',Qr(e),'".'," "),ke.createElement("p",null,ke.createElement(nx,{ariaLabel:"Alias",value:this.state.newAlias,onValueChanged:this.onNameChanged})),null!==e.gitHubRepository&&ke.createElement("p",{className:"description"},"This will not affect the original repository name on GitHub.")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:`${t} 别名`,okButtonDisabled:0===this.state.newAlias.length})))}onNameChanged=e=>{this.setState({newAlias:e})};changeAlias=()=>{this.props.dispatcher.changeRepositoryAlias(this.props.repository,this.state.newAlias),this.props.onDismissed()}}var BU=n(6278),HU=n.n(BU);class UU extends ke.Component{constructor(e){super(e),this.state={}}renderList(e){if(0===e.length)return null;const t=new Array;for(const[n,r]of e.entries())t.push(ke.createElement("li",{key:n},ke.createElement(WI,{text:r.message,emoji:this.props.emoji,renderUrlsAsLinks:!0,repository:fU})));return ke.createElement("div",{className:"section"},ke.createElement("ul",{className:"entries"},t))}renderConfetti(){const{confettiHost:e}=this.state;if(e){const{left:e,top:t}=this.state.confettiRect??{left:0,top:0};return ke.createElement(HU(),{recycle:!1,numberOfPieces:750,width:window.innerWidth,height:window.innerHeight,style:{left:e,top:t}})}}updateConfettiRect=e=>{if(e.currentTarget instanceof HTMLElement){const{offsetLeft:t,offsetTop:n}=e.currentTarget,{innerWidth:r,innerHeight:s}=window,i=new DOMRect(-Math.round(t),-Math.round(n),r,s);this.setState({confettiRect:i})}};onDialogRef=e=>{this.setState({confettiHost:e??void 0}),e?.addEventListener("dialog-show",this.updateConfettiRect)};render(){const e=null!==this.props.latestVersion?` ${this.props.latestVersion}`:"",t=ke.createElement(ke.Fragment,null,"Thanks so much for all your hard work on GitHub Desktop",e,". We're so grateful for your willingness to contribute and make the app better for everyone!");return ke.createElement(AM,{id:"thank-you-notes",onDismissed:this.props.onDismissed,title:`Thank you ${this.props.friendlyName}! 🎉`,onDialogRef:this.onDialogRef},ke.createElement(vM,null,ke.createElement("div",{className:"container"},ke.createElement("div",{className:"thank-you-note"},t),ke.createElement("div",{className:"contributions-heading"},"You contributed:"),ke.createElement("div",{className:"contributions"},this.renderList(this.props.userContributions)),this.renderConfetti())))}}function ZU(e,t,n,r){const s=[n],i={version:r,checkedUsers:[...void 0===t||t.version!==r?[]:t.checkedUsers,...s]};e.setLastThankYou(i)}class $U extends ke.Component{constructor(e){super(e);const{showCoAuthoredBy:t,coAuthors:n}=e;this.state={showCoAuthoredBy:t,coAuthors:n}}render(){return ke.createElement(AM,{id:"commit-message-dialog",title:this.props.dialogTitle,onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement(mP,{showInputLabels:!0,branch:this.props.branch,mostRecentLocalCommit:null,commitAuthor:this.props.commitAuthor,isShowingModal:!0,isShowingFoldout:!1,commitButtonText:this.props.dialogButtonText,commitToAmend:null,repository:this.props.repository,commitMessage:this.props.commitMessage,focusCommitMessage:!1,autocompletionProviders:this.props.autocompletionProviders,showCoAuthoredBy:this.state.showCoAuthoredBy,coAuthors:this.state.coAuthors,placeholder:"",prepopulateCommitSummary:this.props.prepopulateCommitSummary,key:this.props.repository.id,showBranchProtected:this.props.showBranchProtected,repoRulesInfo:this.props.repoRulesInfo,aheadBehind:this.props.aheadBehind,showNoWriteAccess:this.props.showNoWriteAccess,commitSpellcheckEnabled:this.props.commitSpellcheckEnabled,showCommitLengthWarning:this.props.showCommitLengthWarning,onCoAuthorsUpdated:this.onCoAuthorsUpdated,onShowCoAuthoredByChanged:this.onShowCoAuthorsChanged,onConfirmCommitWithUnknownCoAuthors:this.onConfirmCommitWithUnknownCoAuthors,onCreateCommit:this.props.onSubmitCommitMessage,anyFilesAvailable:!0,anyFilesSelected:!0,filesSelected:[],onCommitMessageFocusSet:CT(),onRefreshAuthor:this.onRefreshAuthor,onShowPopup:this.onShowPopup,onShowFoldout:this.onShowFoldout,onCommitSpellcheckEnabledChanged:this.onCommitSpellcheckEnabledChanged,repositoryAccount:this.props.repositoryAccount,onStopAmending:this.onStopAmending,onShowCreateForkDialog:this.onShowCreateForkDialog,accounts:this.props.accounts})))}onCoAuthorsUpdated=e=>this.setState({coAuthors:e});onShowCoAuthorsChanged=e=>this.setState({showCoAuthoredBy:e});onConfirmCommitWithUnknownCoAuthors=(e,t)=>{const{dispatcher:n}=this.props;n.showUnknownAuthorsCommitWarning(e,t)};onRefreshAuthor=()=>this.props.dispatcher.refreshAuthor(this.props.repository);onShowPopup=e=>this.props.dispatcher.showPopup(e);onShowFoldout=e=>this.props.dispatcher.showFoldout(e);onCommitSpellcheckEnabledChanged=e=>this.props.dispatcher.setCommitSpellcheckEnabled(e);onStopAmending=()=>this.props.dispatcher.stopAmendingRepository(this.props.repository);onShowCreateForkDialog=()=>{Yr(this.props.repository)&&this.props.dispatcher.showCreateForkDialog(this.props.repository)}}const WU="No conflicts remaining";function VU(e,t){return ke.createElement("li",{key:e,className:"unmerged-file-status-conflicts"},ke.createElement(Rs,{symbol:Oo,className:"file-octicon"}),t)}const qU=(e,t,n,r,s,i)=>()=>{Ch(KU(e,n,r,t,s,i))},GU=(e,t,n,r,s,i)=>o=>{if("ArrowDown"===o.key)return qU(e,t,n,r,s,i)()},zU=(e,t,n)=>()=>n.updateManualConflictResolution(t,e,null),jU=(e,n,r,s,i,o,a)=>()=>{const l=(0,t.join)(n.path,e),c=[{label:Dh,action:()=>YI(l,r)},{label:Th,action:()=>ht(n,e)},{type:"separator"},...KU(e,n,r,s,i,o)];a(!0),Ch(c).then((()=>{a(!1)}))};function KU(e,t,n,r,s,i){return[{label:Sw(r.entry.us,s),action:()=>n.updateManualConflictResolution(t,e,Jg.ours)},{label:Sw(r.entry.them,i),action:()=>n.updateManualConflictResolution(t,e,Jg.theirs)}]}const YU=(e,t,n)=>Ju(e)&&0===e.conflictMarkerCount?WU:function(e,t,n){return t===Jg.ours?vw(e.entry.us,n):t===Jg.theirs?vw(e.entry.them,n):WU}(e,t,n);const XU="Manual conflict";class QU extends ke.Component{render(){return ke.createElement("div",{className:"dialog-banner dialog-success",role:"alert"},ke.createElement(Rs,{symbol:ii}),ke.createElement("div",null,this.props.children))}}class JU extends ke.Component{constructor(e){super(e),this.state={isCommitting:!1,isAborting:!1,isFileResolutionOptionsMenuOpen:!1,countResolved:null}}componentWillUnmount(){const{workingDirectory:e,userHasResolvedConflicts:t,manualResolutions:n,someConflictsHaveBeenResolved:r}=this.props;t||void 0===r||Ew(e,n).length>0&&r()}componentDidUpdate(){const{workingDirectory:e,manualResolutions:t}=this.props,n=Ew(e,t);n.length!==(this.state.countResolved??0)&&this.setState({countResolved:n.length})}onSubmit=async()=>{this.setState({isCommitting:!0}),await this.props.onSubmit()};onAbort=async e=>{e.preventDefault(),this.setState({isAborting:!0}),await this.props.onAbort(),this.setState({isAborting:!1})};openThisRepositoryInShell=()=>this.props.openRepositoryInShell(this.props.repository);setIsFileResolutionOptionsMenuOpen=e=>{this.setState({isFileResolutionOptionsMenuOpen:e})};renderUnmergedFiles(e){let n=!0;return ke.createElement("ul",{className:"unmerged-file-statuses"},e.map((e=>{if(ww(e.status)){const a=n;return n=!1,Ju((o={path:e.path,status:e.status,resolvedExternalEditor:this.props.resolvedExternalEditor,openFileInExternalEditor:this.props.openFileInExternalEditor,repository:this.props.repository,dispatcher:this.props.dispatcher,manualResolution:this.props.manualResolutions.get(e.path),ourBranch:this.props.ourBranch,theirBranch:this.props.theirBranch,isFileResolutionOptionsMenuOpen:this.state.isFileResolutionOptionsMenuOpen,setIsFileResolutionOptionsMenuOpen:this.setIsFileResolutionOptionsMenuOpen,isFirstConflictedFile:a}).status)&&Cw(o.status,o.manualResolution)?(e=>{const t=(n=e.status.conflictMarkerCount,Math.ceil(n/3));var n;const r=1===t?"1 conflict":`${t} conflicts`,s=null===e.resolvedExternalEditor,i=function(e){if(null===e)return"No editor configured in Options > Advanced"}(e.resolvedExternalEditor),o=jU(e.path,e.repository,e.dispatcher,e.status,e.ourBranch,e.theirBranch,e.setIsFileResolutionOptionsMenuOpen),a=GU(e.path,e.status,e.repository,e.dispatcher,e.ourBranch,e.theirBranch),l=e.isFirstConflictedFile?`small-button button-group-item ${kM}`:"small-button button-group-item",c=ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"column-left"},ke.createElement(wP,{path:e.path}),ke.createElement("div",{className:"file-conflicts-status"},r)),ke.createElement("div",{className:"action-buttons"},ke.createElement(Ss,{onClick:e.onOpenEditorClick,disabled:s,tooltip:i,className:l},`打开于 ${e.resolvedExternalEditor||"editor"}`),ke.createElement(Ss,{onClick:o,onKeyDown:a,className:"small-button button-group-item arrow-menu",ariaLabel:"File resolution options",ariaHaspopup:"menu",ariaExpanded:e.isFileResolutionOptionsMenuOpen},ke.createElement(Rs,{symbol:ou}))));return VU(e.path,c)})({path:o.path,status:o.status,resolvedExternalEditor:o.resolvedExternalEditor,onOpenEditorClick:()=>o.openFileInExternalEditor((0,t.join)(o.repository.path,o.path)),repository:o.repository,dispatcher:o.dispatcher,ourBranch:o.ourBranch,theirBranch:o.theirBranch,isFileResolutionOptionsMenuOpen:o.isFileResolutionOptionsMenuOpen,setIsFileResolutionOptionsMenuOpen:o.setIsFileResolutionOptionsMenuOpen,isFirstConflictedFile:o.isFirstConflictedFile}):eh(o.status)&&Cw(o.status,o.manualResolution)?(e=>{const t=qU(e.path,e.status,e.repository,e.dispatcher,e.ourBranch,e.theirBranch),n=GU(e.path,e.status,e.repository,e.dispatcher,e.ourBranch,e.theirBranch),{ourBranch:r,theirBranch:s}=e,{entry:i}=e.status;let o=XU;if([i.us,i.them].includes($u.Deleted)){let e="target branch";i.us===$u.Deleted&&void 0!==r&&(e=r),i.them===$u.Deleted&&void 0!==s&&(e=s),o=`File does not exist on ${e}.`}const a=e.isFirstConflictedFile?`small-button button-group-item resolve-arrow-menu ${kM}`:"small-button button-group-item resolve-arrow-menu",l=ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"column-left"},ke.createElement(wP,{path:e.path}),ke.createElement("div",{className:"file-conflicts-status"},o)),ke.createElement("div",{className:"action-buttons"},ke.createElement(Ss,{className:a,onClick:t,onKeyDown:n},"Resolve",ke.createElement(Rs,{symbol:ou}))));return VU(e.path,l)})({path:o.path,status:o.status,repository:o.repository,dispatcher:o.dispatcher,ourBranch:o.ourBranch,theirBranch:o.theirBranch,isFirstConflictedFile:o.isFirstConflictedFile}):(e=>{const t=YU(e.status,e.manualResolution,e.branch);return ke.createElement("li",{key:e.path,className:"unmerged-file-status-resolved"},ke.createElement(Rs,{symbol:Oo,className:"file-octicon"}),ke.createElement("div",{className:"column-left",id:e.path},ke.createElement(wP,{path:e.path}),ke.createElement("div",{className:"file-conflicts-status"},t)),t===WU?null:ke.createElement(Ss,{className:"undo-button",onClick:zU(e.path,e.repository,e.dispatcher),ariaDescribedBy:e.path},"Undo"),ke.createElement("div",{className:"green-circle"},ke.createElement(Rs,{symbol:ii})))})({path:o.path,status:o.status,repository:o.repository,dispatcher:o.dispatcher,manualResolution:o.manualResolution,branch:(r=o.manualResolution,s=o.ourBranch,i=o.theirBranch,r===Jg.ours?s:r===Jg.theirs?i:void 0)})}var r,s,i,o;return null})))}renderContent(e,t){return 0===e.length?ke.createElement("div",{className:"all-conflicts-resolved"},ke.createElement("div",{className:"green-circle"},ke.createElement(Rs,{symbol:ii})),ke.createElement("div",{className:"message"},"All conflicts resolved")):ke.createElement(ke.Fragment,null,function(e){const t=1===e?"1 conflicted file":`${e} conflicted files`;return ke.createElement("h2",{className:"summary"},t)}(t),this.renderUnmergedFiles(e),(n=this.openThisRepositoryInShell,ke.createElement("div",null,ke.createElement(sM,{onClick:n},"打开于 command line,")," ","your tool of choice, or close to resolve manually.")));var n}renderBanner(e){const{countResolved:t}=this.state;if(null===t)return;if(0===t)return ke.createElement(QU,null,"All resolutions have been undone.");if(0===e)return ke.createElement(QU,null,"All conflicted files have been resolved. ");const n=1===t?"file has":"files have";return ke.createElement(QU,null,t," conflicted ",n," been resolved.")}render(){const{workingDirectory:e,manualResolutions:t,headerTitle:n,submitButton:r,abortButton:s}=this.props,i=function(e){return e.files.filter((e=>ww(e.status)))}(this.props.workingDirectory),o=kw(e,t),a=o.length>0?"Resolve all changes before continuing":void 0;return ke.createElement(AM,{id:"conflicts-dialog",dismissDisabled:this.state.isCommitting,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,title:n,loading:this.state.isCommitting,disabled:this.state.isCommitting},this.renderBanner(o.length),ke.createElement(vM,null,this.renderContent(i,o.length)),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:r,okButtonDisabled:o.length>0,okButtonTitle:a,cancelButtonText:s,onCancelButtonClick:this.onAbort,cancelButtonDisabled:this.state.isAborting})))}}class eZ extends ke.Component{constructor(e){super(e),this.state={isAborting:!1}}onSubmit=async()=>{this.setState({isAborting:!0}),await this.props.onConfirmAbort(),this.setState({isAborting:!1})};onCancel=async()=>this.props.onReturnToConflicts();render(){const{operation:e}=this.props;return ke.createElement(AM,{id:"abort-warning",title:`Confirm abort ${e.toLowerCase()}`,onDismissed:this.onCancel,onSubmit:this.onSubmit,disabled:this.state.isAborting,type:"warning",role:"alertdialog",ariaDescribedBy:"abort-operation-confirmation"},ke.createElement(vM,null,ke.createElement("div",{className:"column-left",id:"abort-operation-confirmation"},ke.createElement("p",null,"Are you sure you want to abort this ",e.toLowerCase(),"?"),ke.createElement("p",null,"This will take you back to the original branch state and the conflicts you have already resolved will be discarded."))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:`Abort ${e.toLowerCase()}`})))}}class tZ extends ke.Component{render(){const{progress:e,operation:t,emoji:n}=this.props,{position:r,totalCommitCount:s,value:i,currentCommitSummary:o}=e,a=Hy(i);return ke.createElement(AM,{dismissDisabled:!0,id:"multi-commit-progress",title:`${t} in progress`},ke.createElement(vM,null,ke.createElement("div",null,ke.createElement("progress",{value:a}),ke.createElement("div",{className:"details"},ke.createElement("div",{className:"green-circle"},ke.createElement(Rs,{symbol:ii})),ke.createElement("div",{className:"summary"},ke.createElement("div",{className:"message"},"Commit ",r," of ",s),ke.createElement("div",{className:"detail"},ke.createElement(WI,{emoji:n,text:o||""})))))))}}class nZ extends ke.Component{constructor(e){super(e),this.state={askForConfirmationOnForcePush:e.askForConfirmationOnForcePush}}render(){const{operation:e,onDismissed:t}=this.props,n=`${e} will require force push`;return ke.createElement(AM,{title:n,onDismissed:t,onSubmit:this.onBegin,backdropDismissable:!1,type:"warning",role:"alertdialog",ariaDescribedBy:"warn-force-push-confirmation-title warn-force-push-confirmation-message"},ke.createElement(vM,null,ke.createElement("p",{id:"warn-force-push-confirmation-title"},"Are you sure you want to ",e.toLowerCase(),"?"),ke.createElement("p",{id:"warn-force-push-confirmation-message"},"At the end of the ",e.toLowerCase()," flow, GitHub Desktop will enable you to force push the branch to update the upstream branch. Force pushing will alter the history on the remote and potentially cause problems for others collaborating on this branch."),ke.createElement("div",null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.askForConfirmationOnForcePush?Cx.Off:Cx.On,onChange:this.onAskForConfirmationOnForcePushChanged}))),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:`Begin ${e.toLowerCase()}`,onCancelButtonClick:this.props.onDismissed})))}onAskForConfirmationOnForcePushChanged=e=>{const t=!e.currentTarget.checked;this.setState({askForConfirmationOnForcePush:t})};onBegin=async()=>{this.props.dispatcher.setConfirmForcePushSetting(this.state.askForConfirmationOnForcePush),this.props.onBegin()}}class rZ extends ke.Component{onFlowEnded=()=>{this.props.dispatcher.closePopup(Sh.MultiCommitOperation),this.props.dispatcher.endMultiCommitOperation(this.props.repository)};endFlowInvalidState(e=!1){const{step:t,operationDetail:n}=this.props.state,r=`[${n.kind}] - Invalid state - ${n.kind} ended during ${t.kind}.`;if(e)return this.onFlowEnded(),void log.error(r);throw new Error(r)}onInvokeConflictsDialogDismissed=e=>{const{repository:t,dispatcher:n,state:r}=this.props,{targetBranch:s,step:i}=r;if("ShowConflicts"!==i.kind)return void this.endFlowInvalidState();const{conflictState:o}=i;n.setMultiCommitOperationStep(t,{kind:"HideConflicts",conflictState:o});const a=ke.createElement(ke.Fragment,null,e," ",null!==s?ke.createElement("strong",null,s.name):null);return this.props.dispatcher.closePopup(Sh.MultiCommitOperation),n.onConflictsFoundBanner(t,a,o)};onConfirmingAbort=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r}=this.props,{userHasResolvedConflicts:s,step:i}=r;if("ShowConflicts"!==i.kind)return void this.endFlowInvalidState();const{conflictState:o}=i,a=Ew(n,o.manualResolutions);if(!(s||a.length>0))return this.onAbort();t.setMultiCommitOperationStep(e,{kind:"ConfirmAbort",conflictState:o})};moveToConflictState=()=>{const{dispatcher:e,repository:t,state:n}=this.props,{step:r}=n;if("ConfirmAbort"!==r.kind)return void this.endFlowInvalidState();const{conflictState:s}=r;return e.setMultiCommitOperationStep(t,{kind:"ShowConflicts",conflictState:s})};setConflictsHaveBeenResolved=()=>{this.props.dispatcher.setConflictsResolved(this.props.repository)};render(){const{state:e}=this.props,{step:t}=e;switch(t.kind){case"ChooseBranch":return this.renderChooseBranch();case"ShowProgress":const{emoji:n}=this.props;return ke.createElement(tZ,{progress:e.progress,emoji:n,operation:e.operationDetail.kind});case"ShowConflicts":{const{repository:e,resolvedExternalEditor:n,openFileInExternalEditor:r,openRepositoryInShell:s,dispatcher:i,workingDirectory:o,state:a}=this.props,{userHasResolvedConflicts:l,operationDetail:c}=a,{manualResolutions:u,ourBranch:h,theirBranch:p}=t.conflictState,d=c.kind.toLowerCase(),m=`Continue ${d}`,f=`Abort ${d}`;return ke.createElement(JU,{dispatcher:i,repository:e,workingDirectory:o,userHasResolvedConflicts:l,resolvedExternalEditor:n,ourBranch:h,theirBranch:p,manualResolutions:u,headerTitle:`Resolve conflicts before ${c.kind}`,submitButton:m,abortButton:f,onSubmit:this.onContinueAfterConflicts,onAbort:this.onConfirmingAbort,onDismissed:this.onConflictsDialogDismissed,openFileInExternalEditor:r,openRepositoryInShell:s,someConflictsHaveBeenResolved:this.setConflictsHaveBeenResolved})}case"ConfirmAbort":return ke.createElement(eZ,{operation:this.props.state.operationDetail.kind,onConfirmAbort:this.onAbort,onReturnToConflicts:this.moveToConflictState});case"WarnForcePush":const{dispatcher:r,askForConfirmationOnForcePush:s}=this.props;return ke.createElement(nZ,{operation:e.operationDetail.kind,dispatcher:r,askForConfirmationOnForcePush:s,onBegin:this.onBeginOperation,onDismissed:this.onFlowEnded});case"CreateBranch":return this.renderCreateBranch();case"HideConflicts":return null;default:return at(0,`Unknown multi commit operation step found: ${t}`)}}}class sZ extends rZ{onContinueAfterConflicts=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r,conflictState:s}=this.props,{operationDetail:i,originalBranchTip:o}=r;if(null===s||null===o||!st(s)||(a=i,!Object.keys({commits:[],currentTip:""}).every((e=>e in a))))return void this.endFlowInvalidState();var a;const{targetBranch:l,baseBranch:c}=s,{commits:u,currentTip:h}=i;await t.switchMultiCommitOperationToShowProgress(e);const p={kind:"rebase",currentTip:h,targetBranch:l,baseBranch:c,originalBranchTip:o,baseBranchTip:h,manualResolutions:s.manualResolutions},d=await t.continueRebase(this.rebaseKind,e,n,p),m="Rebase"===this.rebaseKind?c||"":`${this.rebaseKind.toLowerCase()} commit`;await t.processMultiCommitOperationRebaseResult(this.rebaseKind,e,d,u.length+1,l,m)};onAbort=async()=>{const{repository:e,dispatcher:t}=this.props;return this.onFlowEnded(),t.abortRebase(e)};onConflictsDialogDismissed=()=>{this.onInvokeConflictsDialogDismissed(this.conflictDialogOperationPrefix)}}class iZ extends sZ{conflictDialogOperationPrefix="squashing commits on";rebaseKind="Squash";onBeginOperation=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r}=n;if("Squash"!==r.kind)return void this.endFlowInvalidState();const{targetCommit:s,lastRetainedCommitRef:i,commitContext:o,commits:a}=r;return t.squash(e,a,s,i,o,!0)}}function oZ(e,t,n,r){return null!==e&&e.name!==t?.name&&(r===Rb.Conflicts||void 0!==n&&0!==n&&r!==Rb.Invalid)}class aZ extends ke.Component{constructor(e){super(e),this.state={filterText:""}}componentDidMount(){const e=this.resolveSelectedBranch();null!==e&&e.ref!==this.props.selectedBranch?.ref&&this.props.onSelectionChanged(e)}resolveSelectedBranch(){const{currentBranch:e,defaultBranch:t,initialBranch:n}=this.props;return void 0!==n?n:e===t?null:t}onFilterTextChanged=e=>{this.setState({filterText:e})};onItemClick=(e,t)=>{if("keyboard"!==t.kind||"Enter"!==t.event.key)return;t.event.preventDefault();const{selectedBranch:n}=this.props;null!==n&&n.name===e.name&&this.props.start()};onOperationChange=e=>{if(!nC(e.id))return;const{dispatcher:t,repository:n}=this.props,{selectedBranch:r}=this.props;switch(e.id){case"Merge":t.startMergeBranchOperation(n,!1,r);break;case"Squash":t.startMergeBranchOperation(n,!0,r);break;case"Rebase":t.showRebaseDialog(n,r);break;case"Cherry-pick":case"Reorder":break;default:at(e.id,`Unknown operation value: ${e.id}`)}};renderStatusPreview(){const{currentBranch:e,selectedBranch:t,children:n}=this.props;return null==t||e.name===t.name?null:ke.createElement("div",{className:"merge-status-component"},n)}renderBranch=(e,t,n)=>aF(e,t,this.props.currentBranch,n);getBranchAriaLabel=(e,t)=>lF(e,t);render(){const{selectedBranch:e,currentBranch:t,operation:n,dialogTitle:r,canStartOperation:s,submitButtonTooltip:i,start:o,onSelectionChanged:a}=this.props;return ke.createElement(AM,{id:"choose-branch",onDismissed:this.props.onDismissed,onSubmit:o,title:r},ke.createElement(vM,null,ke.createElement(z_,{repository:this.props.repository,allBranches:this.props.allBranches,currentBranch:t,defaultBranch:this.props.defaultBranch,recentBranches:this.props.recentBranches,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,selectedBranch:e,onSelectionChanged:a,canCreateNewBranch:!1,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,onItemClick:this.onItemClick})),ke.createElement(xM,null,this.renderStatusPreview(),ke.createElement(HO,{checkedOption:n,options:[{label:"创建合并提交",description:"来自所选分支的提交将通过合并提交添加到当前分支.",id:"Merge"},{label:"压缩合并",description:"选定分支中的提交将合并为当前分支中的一个提交.",id:"Squash"},{label:"变基",description:"来自所选分支的提交将重新设置基础并添加到当前分支.",id:"Rebase"}],disabled:!s,ariaDescribedBy:"merge-status-preview",dropdownAriaLabel:"Merge options",tooltip:i,onCheckedOptionChange:this.onOperationChange})))}}class lZ extends Re().Component{constructor(e){super(e),this.state={selectedBranch:null,commitCount:0,mergeStatus:null}}start=()=>{if(!this.canStart())return;const{selectedBranch:e,mergeStatus:t}=this.state,{operation:n,dispatcher:r,repository:s}=this.props;e&&(r.mergeBranch(s,e,t,"Squash"===n),r.closePopup(Sh.MultiCommitOperation))};canStart=()=>{const{currentBranch:e}=this.props,{selectedBranch:t,commitCount:n,mergeStatus:r}=this.state;return oZ(t,e,n,r?.kind)};onSelectionChanged=e=>{null===e?this.setState({selectedBranch:e,commitCount:0,mergeStatus:null}):this.setState({selectedBranch:e,commitCount:0,mergeStatus:{kind:Rb.Loading}},(()=>this.updateStatus(e)))};getDialogTitle=()=>{const e=DC(this.props.currentBranch.name,40),t="Squash"===this.props.operation?"压缩并":null;return Re().createElement(Re().Fragment,null,t,"合并到 ",Re().createElement("strong",null,e))};updateStatus=async e=>{const{currentBranch:t,repository:n}=this.props,r=await _C(n,t,e).catch((e=>(log.error("Failed determining mergeability",e),{kind:Rb.Clean})));if(this.state.selectedBranch?.tip.sha!==e.tip.sha)return;if(r.kind===Rb.Invalid)return void this.setState({mergeStatus:r});const s=fy("",e.name),i=await gy(n,s),o=i?i.behind:0;this.state.selectedBranch.tip.sha===e.tip.sha&&this.setState({commitCount:o,mergeStatus:r})};renderStatusPreviewMessage(){const{mergeStatus:e,selectedBranch:t}=this.state,{currentBranch:n}=this.props;return null===e||null===t?null:e.kind===Rb.Loading?this.renderLoadingMergeMessage():e.kind===Rb.Clean?this.renderCleanMergeMessage(t,n,this.state.commitCount):e.kind===Rb.Invalid?this.renderInvalidMergeMessage():this.renderConflictedMergeMessage(t,n,e.conflictedFiles)}renderLoadingMergeMessage(){return Re().createElement(Re().Fragment,null,"正在检查允许自动合并...")}renderCleanMergeMessage(e,t,n){if(0===n)return Re().createElement(Re().Fragment,null,Re().createElement("strong",null,t.name)," ","is already up to date with ",Re().createElement("strong",null,e.name));const r=1===n?"commit":"commits";return Re().createElement(Re().Fragment,null,"这将合并",Re().createElement("strong",null,` ${n} ${r}`)," 自 ",Re().createElement("strong",null,e.name)," 到 ",Re().createElement("strong",null,t.name))}renderInvalidMergeMessage(){return Re().createElement(Re().Fragment,null,"无法在此仓库中合并不相关的历史记录")}renderConflictedMergeMessage(e,t,n){const r=1===n?"文件":"文件";return Re().createElement(Re().Fragment,null,"这将会",Re().createElement("strong",null,` ${n} 与 ${r} 冲突`)," 当合并时 ",Re().createElement("strong",null,e.name)," 到 ",Re().createElement("strong",null,t.name))}renderStatusPreview(){return Re().createElement(Re().Fragment,null,Re().createElement(xL,{status:this.state.mergeStatus,classNamePrefix:"merge-status"}),Re().createElement("p",{className:"merge-info",id:"merge-status-preview"},this.renderStatusPreviewMessage()))}render(){return Re().createElement(aZ,{...this.props,start:this.start,selectedBranch:this.state.selectedBranch,canStartOperation:this.canStart(),dialogTitle:this.getDialogTitle(),onSelectionChanged:this.onSelectionChanged},this.renderStatusPreview())}}class cZ extends rZ{onContinueAfterConflicts=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r,conflictState:s,state:{operationDetail:i}}=this.props;if("ShowConflicts"!==r.step.kind||null===s||!rt(s)||"Merge"!==i.kind)return void this.endFlowInvalidState();const{theirBranch:o}=r.step.conflictState,{currentBranch:a}=s;await t.finishConflictedMerge(e,n,{type:kb.SuccessfulMerge,ourBranch:a,theirBranch:o},i.isSquash),await t.setCommitMessage(e,Yw),await this.props.dispatcher.changeRepositorySection(e,Je.Changes),this.onFlowEnded(),t.incrementMetric("guidedConflictedMergeCompletionCount")};onAbort=async()=>{const{repository:e,dispatcher:t,state:{operationDetail:n}}=this.props;return this.onFlowEnded(),"Merge"===n.kind&&n.isSquash?t.abortSquashMerge(e):t.abortMerge(e)};onConflictsDialogDismissed=()=>{const{dispatcher:e,workingDirectory:t,conflictState:n}=this.props;null!==n&&rt(n)?(e.incrementMetric("mergeConflictsDialogDismissalCount"),kw(t,n.manualResolutions).length>0&&e.incrementMetric("anyConflictsLeftOnMergeConflictsDialogDismissalCount"),this.onInvokeConflictsDialogDismissed("merge into")):this.endFlowInvalidState(!0)};renderChooseBranch=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{step:r,operationDetail:s}=n;if("ChooseBranch"!==r.kind||"Merge"!==s.kind)return this.endFlowInvalidState(),null;const{defaultBranch:i,currentBranch:o,allBranches:a,recentBranches:l,initialBranch:c}=r,{isSquash:u}=s;return Re().createElement(lZ,{dispatcher:t,repository:e,allBranches:a,defaultBranch:i,recentBranches:l,currentBranch:o,initialBranch:c,operation:u?"Squash":"Merge",onDismissed:this.onFlowEnded})}}class uZ extends sZ{conflictDialogOperationPrefix="reordering commits on";rebaseKind="Reorder";onBeginOperation=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r}=n;if("Reorder"!==r.kind)return void this.endFlowInvalidState();const{commits:s,beforeCommit:i,lastRetainedCommitRef:o}=r;return t.reorderCommits(e,s,i,o,!0)}}class hZ extends ke.Component{constructor(e){super(e),this.state={selectedBranch:null,filterText:"",isCreateBranchState:0===e.allBranches.length}}onFilterTextChanged=e=>{this.setState({filterText:e})};onSelectionChanged=e=>{this.setState({selectedBranch:e})};renderBranch=(e,t,n)=>aF(e,t,this.props.currentBranch,n);getBranchAriaLabel=(e,t)=>lF(e,t);onEnterPressed=(e,t)=>{if("keyboard"!==t.kind||"Enter"!==t.event.key)return;t.event.preventDefault();const{selectedBranch:n}=this.state;null!==n&&n.name===e.name&&this.startCherryPick()};canCherryPickOntoSelectedBranch(){const{selectedBranch:e,isCreateBranchState:t}=this.state;return null!==e&&!this.selectedBranchIsCurrentBranch()||t}selectedBranchIsCurrentBranch(){const{selectedBranch:e}=this.state,t=this.props.currentBranch;return null!==e&&null!==t&&e.name===t.name}renderOkButtonText(){const{selectedBranch:e,isCreateBranchState:t}=this.state;if(t)return"Cherry-pick to new branch";const n=this.props.commitCount>1?"commits":"commit",r=`Cherry-pick ${this.props.commitCount} ${n}`;return null!==e?ke.createElement(ke.Fragment,null,r," 到 ",ke.createElement("strong",null,e.name),"…"):r}onFilterListResultsChanged=e=>{const{isCreateBranchState:t}=this.state;0!==e||t?e>0&&t&&this.setState({isCreateBranchState:!1}):this.setState({isCreateBranchState:!0})};render(){const e=this.selectedBranchIsCurrentBranch()?"You are not able to cherry-pick from and to the same branch":void 0,t=this.props.commitCount>1?"commits":"commit";return ke.createElement(AM,{id:"cherry-pick",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,title:ke.createElement("strong",null,"Cherry-pick ",this.props.commitCount," ",t," to a branch")},ke.createElement(vM,null,ke.createElement(z_,{repository:this.props.repository,allBranches:this.props.allBranches,currentBranch:this.props.currentBranch,defaultBranch:this.props.defaultBranch,recentBranches:this.props.recentBranches,filterText:this.state.filterText,onFilterTextChanged:this.onFilterTextChanged,onFilterListResultsChanged:this.onFilterListResultsChanged,selectedBranch:this.state.selectedBranch,onSelectionChanged:this.onSelectionChanged,canCreateNewBranch:!0,onCreateNewBranch:this.props.onCreateNewBranch,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,onItemClick:this.onEnterPressed})),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:this.renderOkButtonText(),okButtonDisabled:!this.canCherryPickOntoSelectedBranch(),okButtonTitle:e,cancelButtonVisible:!1})))}onSubmit=async()=>{const{isCreateBranchState:e,filterText:t}=this.state;e?this.props.onCreateNewBranch(t):this.startCherryPick()};startCherryPick=async()=>{const{selectedBranch:e}=this.state;null!==e&&this.canCherryPickOntoSelectedBranch()&&this.props.onCherryPick(e)}}class pZ extends rZ{onContinueAfterConflicts=async()=>{const{repository:e,dispatcher:t,workingDirectory:n,state:r,conflictState:s}=this.props,{operationDetail:i,targetBranch:o}=r;if(null===s||"Cherry-pick"!==i.kind||null===o)return void this.endFlowInvalidState();const{commits:a}=i;await t.switchMultiCommitOperationToShowProgress(e);const l={kind:"cherryPick",targetBranchName:o.name,manualResolutions:s.manualResolutions};await t.continueCherryPick(e,n.files,l,a,i.sourceBranch)};onAbort=async()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r}=n;if("Cherry-pick"===r.kind)return this.onFlowEnded(),t.abortCherryPick(e,r.sourceBranch);this.endFlowInvalidState()};onConflictsDialogDismissed=()=>{this.onInvokeConflictsDialogDismissed("cherry-picking onto")};renderChooseBranch=()=>{const{state:{step:e,operationDetail:t}}=this.props;if("ChooseBranch"!==e.kind||"Cherry-pick"!==t.kind)return this.endFlowInvalidState(),null;const{allBranches:n,defaultBranch:r,currentBranch:s,recentBranches:i}=e,{commits:o}=t;return Re().createElement(hZ,{key:"choose-target-branch",repository:this.props.repository,allBranches:n,defaultBranch:r,recentBranches:i,currentBranch:s,onCherryPick:this.onChooseBranch,onDismissed:this.onFlowEnded,commitCount:o.length,onCreateNewBranch:this.onCreateNewBranch})};renderCreateBranch=()=>{const{repository:e,dispatcher:t,state:{step:n,operationDetail:r}}=this.props;if("CreateBranch"!==n.kind||"Cherry-pick"!==r.kind)return this.endFlowInvalidState(),null;const{allBranches:s,defaultBranch:i,upstreamDefaultBranch:o,upstreamGhRepo:a,tip:l,targetBranchName:c}=n;return Re().createElement(HH,{key:"create-branch",tip:l,defaultBranch:i,upstreamDefaultBranch:o,upstreamGitHubRepository:a,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,allBranches:s,repository:e,onDismissed:this.onFlowEnded,dispatcher:t,initialName:c,createBranch:this.onCreateBranchAndCherryPick,okButtonText:"创建分支并挑选",headerText:"Cherry-pick to new branch"})};onChooseBranch=e=>{const{dispatcher:t,repository:n,state:{operationDetail:r}}=this.props;if("Cherry-pick"!==r.kind)return void this.endFlowInvalidState();const{commits:s,sourceBranch:i}=r;t.setMultiCommitOperationTargetBranch(n,e),t.setCherryPickBranchCreated(n,!1),t.cherryPick(n,e,s,i)};onCreateNewBranch=e=>{const{dispatcher:t,repository:n,state:{step:r,operationDetail:s}}=this.props;if("ChooseBranch"!==r.kind||"Cherry-pick"!==s.kind)return void this.endFlowInvalidState();const{commits:i,sourceBranch:o}=s;t.setCherryPickCreateBranchFlowStep(n,e,i,o)};onCreateBranchAndCherryPick=(e,t,n)=>{const{dispatcher:r,repository:s,state:{step:i,operationDetail:o}}=this.props;if("CreateBranch"!==i.kind||"Cherry-pick"!==o.kind)return void this.endFlowInvalidState();const{commits:a,sourceBranch:l}=o;r.startCherryPickWithBranchName(s,e,t,n,a,l)}}class dZ extends Re().Component{constructor(e){super(e),this.state={selectedBranch:null,rebasePreview:null}}start=()=>{if(!this.canStart())return;const{selectedBranch:e,rebasePreview:t}=this.state,{repository:n,currentBranch:r,dispatcher:s}=this.props;null!==e&&null!==t&&t.kind===Rb.Clean&&s.startRebase(n,e,r,t.commitsAhead)};canStart=()=>{const{currentBranch:e}=this.props,{selectedBranch:t,rebasePreview:n}=this.state;return oZ(t,e,n?.kind===Rb.Clean?n.commitsBehind.length:void 0,n?.kind)};onSelectionChanged=e=>{this.setState({selectedBranch:e}),null!==e?this.updateStatus(e):this.setState({rebasePreview:null})};getSubmitButtonToolTip=()=>{const{currentBranch:e}=this.props,{selectedBranch:t,rebasePreview:n}=this.state,r=null!==t&&null!==e&&t.name===e.name,s=n?.kind===Rb.Clean&&n.commitsBehind.length>0;return r?"You are not able to rebase this branch onto itself.":s?void 0:"The current branch is already up to date with the selected branch."};getDialogTitle=()=>{const e=DC(this.props.currentBranch.name,40);return Re().createElement(Re().Fragment,null,"变基 ",Re().createElement("strong",null,e))};updateStatus=async e=>{const{currentBranch:t,repository:n}=this.props;ML(e,t,n,(e=>{this.setState({rebasePreview:e})}))};renderStatusPreviewMessage(){const{rebasePreview:e,selectedBranch:t}=this.state;if(null==e||null==t)return null;const{currentBranch:n}=this.props;return e.kind===Rb.Loading?this.renderLoadingRebaseMessage():e.kind===Rb.Clean?this.renderCleanRebaseMessage(n,t,e.commitsAhead.length,e.commitsBehind.length):e.kind===Rb.Invalid?this.renderInvalidRebaseMessage():null}renderLoadingRebaseMessage(){return Re().createElement(Re().Fragment,null,"Checking for ability to rebase automatically…")}renderInvalidRebaseMessage(){return Re().createElement(Re().Fragment,null,"Unable to start rebase. Check you have chosen a valid branch.")}renderCleanRebaseMessage(e,t,n,r){if(r>0&&n<=0){const n=1===r?"commit":"commits";return Re().createElement(Re().Fragment,null,"This will fast-forward ",Re().createElement("strong",null,e.name)," by",Re().createElement("strong",null,` ${r} ${n}`)," to match ",Re().createElement("strong",null,t.name))}if(r>0&&n>0){const r=1===n?"commit":"commits";return Re().createElement(Re().Fragment,null,"This will update ",Re().createElement("strong",null,e.name)," by applying its ",Re().createElement("strong",null,` ${n} ${r}`)," on top of ",Re().createElement("strong",null,t.name))}return Re().createElement(Re().Fragment,null,Re().createElement("strong",null,e.name)," ","is already up to date with ",Re().createElement("strong",null,t.name))}renderStatusPreview(){return Re().createElement(Re().Fragment,null,Re().createElement(xL,{status:this.state.rebasePreview,classNamePrefix:"merge-status"}),Re().createElement("p",{className:"merge-info",id:"merge-status-preview"},this.renderStatusPreviewMessage()))}render(){return Re().createElement(aZ,{...this.props,start:this.start,selectedBranch:this.state.selectedBranch,canStartOperation:this.canStart(),dialogTitle:this.getDialogTitle(),submitButtonTooltip:this.getSubmitButtonToolTip(),onSelectionChanged:this.onSelectionChanged},this.renderStatusPreview())}}class mZ extends sZ{conflictDialogOperationPrefix="rebasing";rebaseKind="Rebase";onBeginOperation=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{operationDetail:r,targetBranch:s}=n;if("Rebase"!==r.kind)return void this.endFlowInvalidState();const{commits:i,sourceBranch:o}=r;if(null!==o&&null!==s)return t.startRebase(e,o,s,i,{continueWithForcePush:!0});this.endFlowInvalidState()};renderChooseBranch=()=>{const{repository:e,dispatcher:t,state:n}=this.props,{step:r}=n;if("ChooseBranch"!==r.kind)return this.endFlowInvalidState(),null;const{defaultBranch:s,currentBranch:i,allBranches:o,recentBranches:a,initialBranch:l}=r;return Re().createElement(dZ,{key:"choose-branch",dispatcher:t,repository:e,allBranches:o,defaultBranch:s,recentBranches:a,currentBranch:i,initialBranch:l,operation:"Rebase",onDismissed:this.onFlowEnded})}}class fZ extends ke.Component{render(){const{kind:e}=this.props.state.operationDetail;switch(e){case"Cherry-pick":return ke.createElement(pZ,{...this.props});case"Rebase":return ke.createElement(mZ,{...this.props});case"Merge":return ke.createElement(cZ,{repository:this.props.repository,dispatcher:this.props.dispatcher,state:this.props.state,conflictState:this.props.conflictState,emoji:this.props.emoji,workingDirectory:this.props.workingDirectory,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,openFileInExternalEditor:this.props.openFileInExternalEditor,resolvedExternalEditor:this.props.resolvedExternalEditor,openRepositoryInShell:this.props.openRepositoryInShell});case"Squash":return ke.createElement(iZ,{repository:this.props.repository,dispatcher:this.props.dispatcher,state:this.props.state,conflictState:this.props.conflictState,emoji:this.props.emoji,workingDirectory:this.props.workingDirectory,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,openFileInExternalEditor:this.props.openFileInExternalEditor,resolvedExternalEditor:this.props.resolvedExternalEditor,openRepositoryInShell:this.props.openRepositoryInShell});case"Reorder":return ke.createElement(uZ,{repository:this.props.repository,dispatcher:this.props.dispatcher,state:this.props.state,conflictState:this.props.conflictState,emoji:this.props.emoji,workingDirectory:this.props.workingDirectory,askForConfirmationOnForcePush:this.props.askForConfirmationOnForcePush,accounts:this.props.accounts,cachedRepoRulesets:this.props.cachedRepoRulesets,openFileInExternalEditor:this.props.openFileInExternalEditor,resolvedExternalEditor:this.props.resolvedExternalEditor,openRepositoryInShell:this.props.openRepositoryInShell});default:return at(0,`Unknown multi commit operation kind of ${e}.`)}}}class gZ extends ke.Component{constructor(e){super(e),this.state={isLoading:!1,confirmUndoCommit:e.confirmUndoCommit}}render(){return ke.createElement(AM,{id:"warn-local-changes-before-undo",type:"warning",title:"撤消提交",loading:this.state.isLoading,disabled:this.state.isLoading,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"undo-warning-message"},this.getWarningDialog(),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"确定"})))}getWarningDialog(){return this.props.commit.isMergeCommit?this.getMergeCommitWarningDialog():ke.createElement(vM,null,ke.createElement(rx,{id:"undo-warning-message"},"You have changes in progress. Undoing the commit might result in some of these changes being lost. Do you want to continue anyway?"),ke.createElement(rx,null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.confirmUndoCommit?Cx.Off:Cx.On,onChange:this.onConfirmUndoCommitChanged})))}getMergeCommitWarningDialog(){return this.props.isWorkingDirectoryClean?ke.createElement(vM,null,ke.createElement("p",null,this.getMergeCommitUndoWarningText()),ke.createElement("p",null,"Do you want to continue anyway?")):ke.createElement(vM,null,ke.createElement("p",null,"You have changes in progress. Undoing the merge commit might result in some of these changes being lost."),ke.createElement("p",null,this.getMergeCommitUndoWarningText()),ke.createElement("p",null,"Do you want to continue anyway?"))}getMergeCommitUndoWarningText(){return"Undoing a merge commit will apply the changes from the merge into\n your working directory, and committing again will create an entirely new\n commit. This means you will lose the merge commit and, as a result, commits\n from the merged branch could disappear from this branch."}onSubmit=async()=>{const{dispatcher:e,repository:t,commit:n,onDismissed:r}=this.props;this.setState({isLoading:!0});try{e.setConfirmUndoCommitSetting(this.state.confirmUndoCommit),await e.undoCommit(t,n,!1)}finally{this.setState({isLoading:!1})}r()};onConfirmUndoCommitChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmUndoCommit:t})}}class yZ extends ke.Component{constructor(e){super(e),this.state={isLoading:!1}}render(){return ke.createElement(AM,{id:"warning-before-reset",type:"warning",title:"重置到提交",loading:this.state.isLoading,disabled:this.state.isLoading,onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"reset-warning-message"},ke.createElement(vM,null,ke.createElement(rx,{id:"reset-warning-message"},"You have changes in progress. Resetting to a previous commit might result in some of these changes being lost. Do you want to continue anyway?")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"确定"})))}onSubmit=async()=>{const{dispatcher:e,repository:t,commit:n,onDismissed:r}=this.props;this.setState({isLoading:!0});try{await e.resetToCommit(t,n,!1)}finally{this.setState({isLoading:!1})}r()}}class wZ extends ke.Component{render(){const{account:e}=this.props;return ke.createElement(AM,{id:"invalidated-token",type:"warning",title:"Invalidated account token",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed},ke.createElement(vM,null,"Your account token has been invalidated and you have been signed out from your ",ke.createElement(UM,null,e.friendlyEndpoint)," account. Do you want to sign in again?"),ke.createElement(xM,null,ke.createElement(DM,{okButtonText: "确定",cancelButtonText:"否"})))}onSubmit=()=>{const{dispatcher:e,onDismissed:t,account:n}=this.props;t(),bn(n)?e.showEnterpriseSignInDialog(ir(this.props.account.endpoint)):e.showDotComSignInDialog()}}class bZ extends ke.Component{render(){return ke.createElement(AM,{id:"add-ssh-host",type:"normal",title:"SSH 主机",backdropDismissable:!1,onSubmit:this.onSubmit,onDismissed:this.onCancel},ke.createElement(vM,null,ke.createElement("p",null,"The authenticity of host '",this.props.host," (",this.props.ip,")' can't be established. ",this.props.keyType," key fingerprint is"," ",this.props.fingerprint,"."),ke.createElement("p",null,"Are you sure you want to continue connecting?")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText: "确定",cancelButtonText: "取消",onCancelButtonClick:this.onCancel})))}submit(e){const{onSubmit:t,onDismissed:n}=this.props;t(e),n()}onSubmit=()=>{this.submit(!0)};onCancel=()=>{this.submit(!1)}}class CZ extends ke.Component{constructor(e){super(e),this.state={passphrase:"",rememberPassphrase:!1}}render(){return ke.createElement(AM,{id:"ssh-key-passphrase",type:"normal",title:"SSH 密钥密码",backdropDismissable:!1,onSubmit:this.onSubmit,onDismissed:this.onCancel},ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement(aU,{label:`Enter passphrase for key '${this.props.keyPath}':`,value:this.state.passphrase,onValueChanged:this.onValueChanged})),ke.createElement(rx,null,ke.createElement(vx,{label:"记住密语",value:this.state.rememberPassphrase?Cx.On:Cx.Off,onChange:this.onRememberPassphraseChanged}))),ke.createElement(xM,null,ke.createElement(DM,{onCancelButtonClick:this.onCancel,okButtonDisabled:0===this.state.passphrase.length})))}onRememberPassphraseChanged=e=>{this.setState({rememberPassphrase:e.currentTarget.checked})};onValueChanged=e=>{this.setState({passphrase:e})};submit(e,t){const{onSubmit:n,onDismissed:r}=this.props;n(e,t),r()}onSubmit=()=>{this.submit(this.state.passphrase,this.state.rememberPassphrase)};onCancel=()=>{this.submit(void 0,!1)}}class vZ extends ke.Component{constructor(e){super(e),this.state={isLoading:!1,askForConfirmationOnForcePush:e.askForConfirmationOnForcePush}}render(){return ke.createElement(AM,{title:"确认要强制推送吗?",dismissDisabled:this.state.isLoading,onDismissed:this.props.onDismissed,onSubmit:this.onForcePush,type:"warning"},ke.createElement(vM,null,ke.createElement("p",null,"A force push will rewrite history on"," ",ke.createElement(UM,null,this.props.upstreamBranch),". Any collaborators working on this branch will need to reset their own local branch to match the history of the remote."),ke.createElement("div",null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.askForConfirmationOnForcePush?Cx.Off:Cx.On,onChange:this.onAskForConfirmationOnForcePushChanged}))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"确定"})))}onAskForConfirmationOnForcePushChanged=e=>{const t=!e.currentTarget.checked;this.setState({askForConfirmationOnForcePush:t})};onForcePush=async()=>{this.props.dispatcher.setConfirmForcePushSetting(this.state.askForConfirmationOnForcePush),this.props.onDismissed(),await this.props.dispatcher.performForcePush(this.props.repository)}}const SZ=Ft(__dirname,"static/empty-no-pull-requests.svg");class EZ extends ke.Component{checkRunsLoadCancelled=!1;constructor(e){super(e);const{checks:t}=this.props,n=t.find(gC)??t[0];this.state={switchingToPullRequest:!1,selectedCheckID:n.id,checks:t,loadingActionWorkflows:!0}}get selectedCheck(){return this.state.checks.find((e=>e.id===this.state.selectedCheckID))}get loadingChecksInfo(){return this.state.loadingActionWorkflows}render(){let e="Switch to pull request";this.props.shouldChangeRepository&&(e="Switch to repository and pull request");const{pullRequest:t}=this.props,n=this.loadingChecksInfo,r=this.state.checks.filter(gC),s=r.length>1?"checks":"check",i=ke.createElement("div",{className:"ci-check-run-dialog-header"},ke.createElement(Rs,{symbol:Tu}),ke.createElement("div",{className:"title-container"},ke.createElement("div",{className:"summary"},r.length," ",s," failed in your pull request"),ke.createElement("span",{className:"pr-title"},t.title," ",ke.createElement("span",{className:"pr-number"},"#",t.pullRequestNumber)," ")));return ke.createElement(AM,{id:"pull-request-checks-failed",type:"normal",title:i,renderHeaderAccessory:this.renderRerunButton,backdropDismissable:!1,onSubmit:this.props.onSubmit,onDismissed:this.props.onDismissed,loading:n||this.state.switchingToPullRequest},ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement("div",{className:"ci-check-run-dialog-container"},ke.createElement("div",{className:"ci-check-run-content"},this.renderCheckRunJobs(),this.renderCheckRunSteps())))),ke.createElement(xM,null,ke.createElement(rx,null,this.renderSummary(),ke.createElement(DM,{onCancelButtonClick:this.props.onDismissed,cancelButtonText:"忽略",okButtonText:e,okButtonDisabled:this.state.switchingToPullRequest,onOkButtonClick:this.onSubmit}))))}renderSummary(){const e=this.state.checks.filter(gC).length>1?"them":"it";return ke.createElement("div",{className:"footer-question"},ke.createElement("span",null,"Do you want to switch to that Pull Request now and start fixing"," ",e,"?"))}onRerunJob=e=>{this.rerunChecks(!1,[e])};renderCheckRunJobs(){return ke.createElement(kO,{checkRuns:this.state.checks,selectable:!0,onViewCheckDetails:this.onViewOnGitHub,onCheckRunClick:this.onCheckRunClick,onRerunJob:Ln(this.props.repository.gitHubRepository.endpoint)?this.onRerunJob:void 0})}checkRunStepContent(){return this.loadingChecksInfo?this.renderCheckRunStepsLoading():void 0===this.selectedCheck?.actionJobSteps?ke.createElement(vO,{onViewCheckExternally:this.onViewSelectedCheckRunOnGitHub}):ke.createElement(ke.Fragment,null,ke.createElement(SO,{checkRun:this.selectedCheck,onRerunJob:Ln(this.props.repository.gitHubRepository.endpoint)?this.onRerunJob:void 0,onViewCheckExternally:this.onViewSelectedCheckRunOnGitHub}),ke.createElement(bO,{steps:this.selectedCheck.actionJobSteps,onViewJobStep:this.onViewJobStep}))}renderCheckRunSteps(){return void 0===this.selectedCheck?null:ke.createElement("div",{className:"ci-check-run-job-steps-container",role:"region",id:`checkrun-${this.selectedCheck.id}`,"aria-labelledby":`check-run-header-${this.selectedCheck.id}`},this.checkRunStepContent())}renderCheckRunStepsLoading(){return ke.createElement("div",{className:"loading-check-runs"},ke.createElement("img",{src:SZ,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"title"},"Stand By"),ke.createElement("div",{className:"call-to-action"},"Check run steps incoming!"))}onViewJobStep=e=>{const{repository:t,pullRequest:n,dispatcher:r}=this.props,s=this.selectedCheck;if(void 0===s)return;const i=SC(s,e,t.gitHubRepository,n.pullRequestNumber);null!==i&&r.openInBrowser(i)};componentDidMount(){this.loadCheckRunLogs()}componentWillUnmount(){this.checkRunsLoadCancelled=!0}renderRerunButton=()=>{const{checks:e}=this.state;return ke.createElement("div",{className:"ci-check-rerun"},ke.createElement(TO,{disabled:0===e.length,checkRuns:e,canReRunFailed:Ln(this.props.repository.gitHubRepository.endpoint),onRerunChecks:this.rerunChecks}))};rerunChecks=(e,t)=>{this.props.dispatcher.incrementMetric("checksFailedDialogRerunChecksCount");const n=ym(this.props.pullRequest.pullRequestNumber);this.props.dispatcher.showPopup({type:Sh.CICheckRunRerun,checkRuns:t??this.state.checks,repository:this.props.repository.gitHubRepository,prRef:n,failedOnly:e})};async loadCheckRunLogs(){const{pullRequest:e,repository:t}=this.props,{gitHubRepository:n}=t,r=this.props.accounts.find((e=>e.endpoint===n.endpoint));if(void 0===r)return void this.setState({loadingActionWorkflows:!1});const s=rr.fromAccount(r),i=await CC(r,n.owner.login,n.name,e.head.ref,this.props.checks);if(this.checkRunsLoadCancelled)return;this.setState({checks:i});const o=await bC(s,n.owner.login,n.name,i);this.checkRunsLoadCancelled||this.setState({checks:o,loadingActionWorkflows:!1})}onCheckRunClick=e=>{this.setState({selectedCheckID:e.id})};onViewSelectedCheckRunOnGitHub=()=>{const e=this.selectedCheck;void 0!==e&&this.onViewOnGitHub(e)};onViewOnGitHub=e=>{const{repository:t,pullRequest:n,dispatcher:r}=this.props,s=e.htmlUrl??`${t.gitHubRepository.htmlURL}/pull/${n.pullRequestNumber}`;null!==s&&r.openInBrowser(s)};onSubmit=async e=>{e.preventDefault();const{dispatcher:t,repository:n,pullRequest:r}=this.props;this.props.dispatcher.incrementMetric("checksFailedDialogSwitchToPullRequestCount"),this.setState({switchingToPullRequest:!0}),await t.selectRepository(n),await t.checkoutPullRequest(n,r),this.setState({switchingToPullRequest:!1}),this.props.onDismissed()}}const kZ=Ft(__dirname,"static/empty-no-pull-requests.svg");class RZ extends ke.Component{constructor(e){super(e),this.state={loadingCheckSuites:!0,loadingRerun:!1,rerunnable:[],nonRerunnable:[]},this.determineRerunnability()}onSubmit=async()=>{const{dispatcher:e,repository:t,prRef:n}=this.props;this.setState({loadingRerun:!0}),await e.rerequestCheckSuites(t,this.state.rerunnable,this.props.failedOnly),await e.manualRefreshSubscription(t,n,this.state.rerunnable),e.incrementMetric("rerunsChecks"),this.props.onDismissed()};determineRerunnability=async()=>{const e=this.props.failedOnly?this.props.checkRuns.filter((e=>e.conclusion===Qn.Failure)):this.props.checkRuns,t=new Set(e.map((e=>e.checkSuiteId))),n=new Array;for(const e of t)null!==e&&n.push(this.props.dispatcher.fetchCheckSuite(this.props.repository,e));const r=[];for(const e of await Promise.all(n)){if(null===e)continue;const t=Date.parse(e.created_at);e.rerequestable&&t>It(-30,"days")&&e.status===Xn.Completed&&r.push(e.id)}const s=e.filter((e=>null!==e.checkSuiteId&&r.includes(e.checkSuiteId))),i=e.filter((e=>null===e.checkSuiteId||!r.includes(e.checkSuiteId)));this.setState({loadingCheckSuites:!1,rerunnable:s,nonRerunnable:i})};renderRerunnableJobsList=()=>0===this.state.rerunnable.length?null:ke.createElement("div",{className:"ci-check-run-list check-run-rerun-list"},ke.createElement(kO,{checkRuns:this.state.rerunnable,notExpandable:!0,isCondensedView:!0}));renderRerunDependentsMessage=()=>{if(0===this.state.rerunnable.length)return null;const e=1===this.props.checkRuns.length?ke.createElement("strong",null,this.props.checkRuns[0].name):"these workflows",t=1===this.props.checkRuns.length?"its":"their";return ke.createElement("div",{className:"re-run-dependents-message"},"A new attempt of ",e," will be started, including all of ",t," ","dependents:")};renderRerunWarning=()=>{if(this.state.loadingCheckSuites||0===this.state.nonRerunnable.length)return null;const e="check"+(1!==this.state.nonRerunnable.length?"s":""),t=1!==this.state.nonRerunnable.length?"are":"is",n=0===this.state.rerunnable.length?`There are no ${this.props.failedOnly?"failed ":""}checks that can be re-run`:`There ${t} ${this.state.nonRerunnable.length} ${this.props.failedOnly?"failed ":""}${e} that cannot be re-run`;return ke.createElement("div",{className:"non-re-run-info warning-helper-text"},ke.createElement(Rs,{symbol:xs}),`${n}. A check run cannot be re-run if the check is more than one month old,\n the check or its dependent has not completed, or the check is not configured to be\n re-run.`)};getTitle=(e=!0)=>{const{checkRuns:t,failedOnly:n}=this.props,r=1===t.length?"":"s";let s="";return e&&1===t.length&&(s="single "),e&&n&&(s="failed "),`Re-run ${s}check${r}`};renderDialogContent=()=>this.state.loadingCheckSuites&&this.props.checkRuns.length>1?ke.createElement("div",{className:"loading-rerun-checks"},ke.createElement("img",{src:kZ,className:"blankslate-image",alt:""}),ke.createElement("div",{className:"title"},"Please wait"),ke.createElement("div",{className:"call-to-action"},"Determining which checks can be re-run.")):ke.createElement(ke.Fragment,null,this.renderRerunDependentsMessage(),this.renderRerunnableJobsList(),this.renderRerunWarning());render(){return ke.createElement(AM,{id:"rerun-check-runs",title:this.getTitle(),onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,loading:this.state.loadingCheckSuites||this.state.loadingRerun},ke.createElement(vM,null,this.renderDialogContent()),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:this.getTitle(!1),okButtonDisabled:0===this.state.rerunnable.length})))}}class AZ extends ke.Component{constructor(e){super(e),this.state={retrying:!1,confirmDiscardChanges:!0}}render(){const{retrying:e}=this.state;return ke.createElement(AM,{title:"Discarded changes will be unrecoverable",id:"discard-changes-retry",loading:e,disabled:e,onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,type:"error"},ke.createElement(vM,null,ke.createElement("p",null,"Failed to discard changes to ",xh,"."),ke.createElement("div",null,"Common reasons are:",ke.createElement("ul",null,ke.createElement("li",null,"The ",xh," is configured to delete items immediately."),ke.createElement("li",null,"Restricted access to move the file(s)."))),ke.createElement("p",null,"These changes will be unrecoverable from the ",xh,"."),this.renderConfirmDiscardChanges()),this.renderFooter())}renderConfirmDiscardChanges(){return ke.createElement(vx,{label:"不再显示此消息",value:this.state.confirmDiscardChanges?Cx.Off:Cx.On,onChange:this.onConfirmDiscardChangesChanged})}renderFooter(){return ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"永久放弃更改",okButtonTitle:"This will discard changes and they will be unrecoverable.",cancelButtonText:"取消",destructive:!0}))}onConfirmDiscardChangesChanged=e=>{const t=!e.currentTarget.checked;this.setState({confirmDiscardChanges:t})};onSubmit=async()=>{const{dispatcher:e,retryAction:t}=this.props;this.setState({retrying:!0}),await e.performRetry(t),this.props.onConfirmDiscardChangesChanged(this.state.confirmDiscardChanges),this.props.onDismissed()}}class TZ extends ke.Component{render(){const{title:e,pullRequestNumber:t}=this.props.pullRequest,n=ke.createElement("div",{className:"pull-request-comment-like-dialog-header"},this.renderPullRequestIcon(),ke.createElement("span",{className:"pr-title"},e," ",ke.createElement("span",{className:"pr-number"},"#",t)," "));return ke.createElement(AM,{id:this.props.id,type:"normal",title:n,backdropDismissable:!1,onSubmit:this.props.onSubmit,onDismissed:this.props.onDismissed,loading:this.props.switchingToPullRequest},ke.createElement(vM,null,ke.createElement("div",{className:"comment-container"},this.renderTimelineItem(),this.renderCommentBubble())),ke.createElement(xM,null,this.props.renderFooterContent()))}renderTimelineItem(){const{user:e,repository:t,eventDate:n,eventVerb:r,externalURL:s,accounts:i}=this.props,{endpoint:o}=t.gitHubRepository,a={name:e.login,email:Kb(e.id,e.login,o),avatarURL:e.avatar_url,endpoint:o},l=this.shouldRenderCommentBubble()?null:this.renderDashedTimelineLine("bottom"),c=hs()("timeline-item",{"with-comment":this.shouldRenderCommentBubble()}),u=Cb(n.getTime()-Date.now());return ke.createElement("div",{className:"timeline-item-container"},this.renderDashedTimelineLine("top"),ke.createElement("div",{className:c},ke.createElement(CM,{accounts:i,user:a,title:null,size:40}),this.renderReviewIcon(),ke.createElement("div",{className:"summary"},ke.createElement(sM,{uri:e.html_url,className:"author"},e.login)," ",r," your pull request"," ",ke.createElement(sM,{uri:s,className:"submission-date"},u))),l)}shouldRenderCommentBubble(){return""!==this.props.body}renderCommentBubble(){return this.shouldRenderCommentBubble()?ke.createElement("div",{className:"comment-bubble-container"},ke.createElement("div",{className:"comment-bubble"},this.renderReviewBody()),this.renderDashedTimelineLine("bottom")):null}renderDashedTimelineLine(e){return ke.createElement("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",className:`timeline-line ${e}`},ke.createElement("line",{x1:"0.5",y1:"0",x2:"0.5",y2:"100%"}))}onMarkdownLinkClicked=e=>{this.props.dispatcher.openInBrowser(e)};renderReviewBody(){const{body:e,emoji:t,pullRequest:n}=this.props,{base:r}=n;return ke.createElement(mO,{markdown:e,emoji:t,baseHref:r.gitHubRepository.htmlURL??void 0,repository:r.gitHubRepository,onMarkdownLinkClicked:this.onMarkdownLinkClicked,markdownContext:"PullRequestComment",underlineLinks:this.props.underlineLinks,ariaLabel:"Pull request markdown comment"})}renderPullRequestIcon=()=>{const{pullRequest:e}=this.props,t=hs()("pull-request-icon",{draft:e.draft});return ke.createElement(Rs,{className:t,symbol:e.draft?ua:la})};renderReviewIcon=()=>{const{eventIconSymbol:e,eventIconClass:t}=this.props;return ke.createElement("div",{className:hs()("review-icon-container",t)},ke.createElement(Rs,{symbol:e}))}}class xZ extends ke.Component{constructor(e){super(e),this.state={switchingToPullRequest:!1}}render(){const{dispatcher:e,repository:t,pullRequest:n,emoji:r,review:s,onSubmit:i,onDismissed:o}=this.props,a=oC(s.state);return ke.createElement(TZ,{id:"pull-request-review",dispatcher:e,repository:t,pullRequest:n,emoji:r,eventDate:new Date(s.submitted_at),eventVerb:iC(s),eventIconSymbol:a.symbol,eventIconClass:a.className,externalURL:s.html_url,user:s.user,body:s.body,switchingToPullRequest:this.state.switchingToPullRequest,renderFooterContent:this.renderFooterContent,onSubmit:i,onDismissed:o,underlineLinks:this.props.underlineLinks,accounts:this.props.accounts})}renderFooterContent=()=>{const{review:e,shouldChangeRepository:t,shouldCheckoutBranch:n}=this.props;let r;"APPROVED"===e.state||(t?r="Switch to repository and pull request":n&&(r="Switch to pull request"));const s=ke.createElement(DM,{onCancelButtonClick:this.props.onDismissed,cancelButtonText:"忽略",cancelButtonVisible:void 0!==r,okButtonText:r,okButtonDisabled:this.state.switchingToPullRequest,onOkButtonClick:this.onSubmit});return ke.createElement(rx,null,ke.createElement("div",{className:"footer-links"},ke.createElement(sM,{uri:e.html_url},"打开于 browser")),s)};onSubmit=async e=>{e.preventDefault();const{dispatcher:t,repository:n,pullRequest:r,shouldChangeRepository:s,shouldCheckoutBranch:i,review:o}=this.props;"APPROVED"===o.state||!s&&!i||(this.setState({switchingToPullRequest:!0}),await t.selectRepository(n),await t.checkoutPullRequest(n,r),this.setState({switchingToPullRequest:!1}),t.recordPullRequestReviewDialogSwitchToPullRequest(o.state)),this.props.onDismissed()}}class DZ extends ke.Component{constructor(e){super(e),this.state={password:"",rememberPassword:!1}}render(){return ke.createElement(AM,{id:"ssh-user-password",type:"normal",title:"SSH 用户密码",backdropDismissable:!1,onSubmit:this.onSubmit,onDismissed:this.onCancel},ke.createElement(vM,null,ke.createElement(rx,null,ke.createElement(aU,{label:`Enter password for '${this.props.username}':`,value:this.state.password,onValueChanged:this.onValueChanged})),ke.createElement(rx,null,ke.createElement(vx,{label:"记住密码",value:this.state.rememberPassword?Cx.On:Cx.Off,onChange:this.onRememberPasswordChanged}))),ke.createElement(xM,null,ke.createElement(DM,{onCancelButtonClick:this.onCancel,okButtonDisabled:0===this.state.password.length})))}onRememberPasswordChanged=e=>{this.setState({rememberPassword:e.currentTarget.checked})};onValueChanged=e=>{this.setState({password:e})};submit(e,t){const{onSubmit:n,onDismissed:r}=this.props;n(e,t),r()}onSubmit=()=>{this.submit(this.state.password,this.state.rememberPassword)};onCancel=()=>{this.submit(void 0,!1)}}class MZ extends ke.Component{popoverRef=ke.createRef();constructor(e){super(e),this.state={selectedBranch:e.branch,filterText:""}}renderBranch=(e,t,n)=>aF(e,t,this.props.currentBranch,n);getBranchAriaLabel=(e,t)=>lF(e,t);onItemClick=(e,t)=>{t.event.preventDefault(),this.popoverRef.current?.closePopover(),this.setState({selectedBranch:e}),this.props.onChange?.(e)};onFilterTextChanged=e=>{this.setState({filterText:e})};render(){const{currentBranch:e,defaultBranch:t,recentBranches:n,allBranches:r,noBranchesMessage:s}=this.props,{filterText:i,selectedBranch:o}=this.state,a=ke.createElement(ke.Fragment,null,ke.createElement("span",{className:"popover-dropdown-button-label"},"base:"),o?.name??"");return ke.createElement(PH,{contentTitle:"Choose a base branch",buttonContent:a,ref:this.popoverRef},ke.createElement(z_,{repository:this.props.repository,allBranches:r,currentBranch:e,defaultBranch:t,recentBranches:n,filterText:i,onFilterTextChanged:this.onFilterTextChanged,selectedBranch:o,canCreateNewBranch:!1,renderBranch:this.renderBranch,getBranchAriaLabel:this.getBranchAriaLabel,onItemClick:this.onItemClick,noBranchesMessage:s}))}}const PZ="Dialog_Open_Pull_Request";class IZ extends ke.Component{constructor(e){super(e)}render(){const{baseBranch:e,currentBranch:t,defaultBranch:n,prBaseBranches:r,prRecentBaseBranches:s,commitCount:i,onBranchChange:o,onDismissed:a}=this.props,l=`${i} commit${i>1?"s":""}`;return ke.createElement(SM,{title:"开启拉取请求",titleId:PZ,onCloseButtonClick:a},ke.createElement("div",{className:"break"}),ke.createElement("div",{className:"base-branch-details"},"Merge ",l," into"," ",ke.createElement(MZ,{repository:this.props.repository,branch:e,defaultBranch:n,currentBranch:t,allBranches:r,recentBranches:s,onChange:o,noBranchesMessage:ke.createElement(ke.Fragment,null,ke.createElement("p",null,"Sorry, I can't find that remote branch."),ke.createElement("p",null,"You can only open pull requests against remote branches."))})," ","from ",ke.createElement(UM,null,t.name),"."))}}function _Z(e,t,n){const r=e.htmlURL;return null===r?null:void 0===n?`${r}/commit/${t}`:`${r}/commit/${t}${"#diff-"+Cn.createHash("sha256").update(n).digest("hex")}`}class FZ extends ke.Component{constructor(e){super(e),this.state={showSideBySideDiff:e.showSideBySideDiff}}onOpenFile=e=>{const n=t.join(this.props.repository.path,e);this.onOpenBinaryFile(n)};onOpenBinaryFile=e=>{YI(e,this.props.dispatcher)};onHideWhitespaceInDiffChanged=e=>{const{selectedFile:t}=this.props;return this.props.dispatcher.onHideWhitespaceInPullRequestDiffChanged(e,this.props.repository,t)};onShowSideBySideDiffChanged=e=>{this.setState({showSideBySideDiff:e})};onDiffOptionsOpened=()=>{this.props.dispatcher.incrementMetric("diffOptionsViewedCount")};onChangeImageDiffType=e=>{this.props.dispatcher.changeImageDiffType(e)};onFileListResize=e=>{this.props.dispatcher.setPullRequestFileListWidth(e)};onFileListSizeReset=()=>{this.props.dispatcher.resetPullRequestFileListWidth()};onViewOnGitHub=e=>{const{nonLocalCommitSHA:t,repository:n,dispatcher:r}=this.props,{gitHubRepository:s}=n;if(null===s||null===t)return;const i=_Z(s,t,e.path);null!==i&&r.openInBrowser(i)};onFileContextMenu=async(e,n)=>{n.preventDefault();const{repository:r}=this.props,s=t.join(r.path,e.path),i=await k(s);if(!i)return void Ch([{label:"文件不存在于磁盘上",enabled:!1}]);const{externalEditorLabel:o,dispatcher:a}=this.props,l=Mh(t.extname(e.path)),c=[{label:Th,action:()=>ht(r,e.path),enabled:i},{label:void 0!==o?`打开于 ${o}`:Ah,action:()=>a.openInExternalEditor(s),enabled:i},{label:Dh,action:()=>this.onOpenFile(e.path),enabled:l&&i},{type:"separator"},{label:kh,action:()=>m.clipboard.writeText(s)},{label:Rh,action:()=>m.clipboard.writeText(t.normalize(e.path))},{type:"separator"}],{nonLocalCommitSHA:u}=this.props,{gitHubRepository:h}=r,p=h&&h.endpoint!==ar();c.push({label:"在Github上查看"+(p?" Enterprise":""),action:()=>this.onViewOnGitHub(e),enabled:null!==u&&null!==h}),Ch(c)};onFileSelected=e=>{this.props.dispatcher.changePullRequestFileSelection(this.props.repository,e)};onRowDoubleClick=e=>{const t=this.props.files[e];this.props.onOpenInExternalEditor(t.path)};renderHeader(){const{hideWhitespaceInDiff:e}=this.props,{showSideBySideDiff:t}=this.state;return ke.createElement("div",{className:"files-changed-header"},ke.createElement("div",{className:"commits-displayed"},"Showing changes from all commits"),ke.createElement(y_,{isInteractiveDiff:!1,hideWhitespaceChanges:e,onHideWhitespaceChangesChanged:this.onHideWhitespaceInDiffChanged,showSideBySideDiff:t,onShowSideBySideDiffChanged:this.onShowSideBySideDiffChanged,onDiffOptionsOpened:this.onDiffOptionsOpened}))}renderFileList(){const{files:e,selectedFile:t,fileListWidth:n}=this.props;return ke.createElement(UC,{width:n.value,minimumWidth:n.min,maximumWidth:n.max,onResize:this.onFileListResize,onReset:this.onFileListSizeReset,description:"Pull request file list"},ke.createElement(EP,{files:e,onSelectedFileChanged:this.onFileSelected,selectedFile:t,availableWidth:Oy(n),onContextMenu:this.onFileContextMenu,onRowDoubleClick:this.onRowDoubleClick}))}renderDiff(){const{selectedFile:e}=this.props;if(null===e)return;const{diff:t,repository:n,imageDiffType:r,hideWhitespaceInDiff:s}=this.props,{showSideBySideDiff:i}=this.state;return ke.createElement(HI,{repository:n,imageDiffType:r,file:e,diff:t,readOnly:!0,hideWhitespaceInDiff:s,showSideBySideDiff:i,showDiffCheckMarks:!1,onOpenBinaryFile:this.onOpenBinaryFile,onChangeImageDiffType:this.onChangeImageDiffType,onHideWhitespaceInDiffChanged:this.onHideWhitespaceInDiffChanged})}render(){return ke.createElement("div",{className:"pull-request-files-changed"},this.renderHeader(),ke.createElement("div",{className:"files-diff-viewer"},this.renderFileList(),this.renderDiff()))}}class NZ extends ke.Component{getMergeStatusDescription=()=>{const{mergeStatus:e}=this.props;if(null===e)return"";const{kind:t}=e;switch(t){case Rb.Loading:return ke.createElement("span",{className:"pr-merge-status-loading"},ke.createElement("strong",null,"Checking mergeability…")," Dont worry, you can still create the pull request.");case Rb.Invalid:return ke.createElement("span",{className:"pr-merge-status-invalid"},ke.createElement("strong",null,"Error checking merge status.")," 无法在此仓库中合并不相关的历史记录");case Rb.Clean:return ke.createElement("span",{className:"pr-merge-status-clean"},ke.createElement("strong",null,ke.createElement(Rs,{symbol:ii})," Able to merge.")," ","These branches can be automatically merged.");case Rb.Conflicts:return ke.createElement("span",{className:"pr-merge-status-conflicts"},ke.createElement("strong",null,ke.createElement(Rs,{symbol:Ru})," Can't automatically merge.")," ","Dont worry, you can still create the pull request.");default:return at(0,`Unknown merge status kind of ${t}.`)}};render(){return ke.createElement("div",{className:"pull-request-merge-status"},this.getMergeStatusDescription())}}class OZ extends ke.Component{onCreatePullRequest=()=>{const{currentBranchHasPullRequest:e,dispatcher:t,repository:n,onDismissed:r}=this.props;if(e)t.showPullRequest(n);else{const{baseBranch:e}=this.props.pullRequestState;t.createPullRequest(n,e??void 0),t.incrementMetric("createPullRequestCount"),t.incrementMetric("createPullRequestFromPreviewCount")}r()};onBranchChange=e=>{const{repository:t}=this.props;this.props.dispatcher.updatePullRequestBaseBranch(t,e)};renderHeader(){const{currentBranch:e,pullRequestState:t,defaultBranch:n,prBaseBranches:r,prRecentBaseBranches:s}=this.props,{baseBranch:i,commitSHAs:o}=t;return ke.createElement(IZ,{repository:this.props.repository,baseBranch:i,currentBranch:e,defaultBranch:n,prBaseBranches:r,prRecentBaseBranches:s,commitCount:o?.length??0,onBranchChange:this.onBranchChange,onDismissed:this.props.onDismissed})}renderContent(){return ke.createElement("div",{className:"open-pull-request-content"},this.renderNoChanges(),this.renderNoDefaultBranch(),this.renderFilesChanged())}renderFilesChanged(){const{dispatcher:e,externalEditorLabel:t,hideWhitespaceInDiff:n,imageDiffType:r,pullRequestState:s,repository:i,fileListWidth:o,nonLocalCommitSHA:a}=this.props,{commitSelection:l}=s;if(null===l)return;const{diff:c,file:u,changesetData:h,shas:p}=l,{files:d}=h;return 0!==p.length?ke.createElement(FZ,{diff:c,dispatcher:e,externalEditorLabel:t,fileListWidth:o,files:d,hideWhitespaceInDiff:n,imageDiffType:r,nonLocalCommitSHA:a,selectedFile:u,showSideBySideDiff:this.props.showSideBySideDiff,repository:i,onOpenInExternalEditor:this.props.onOpenInExternalEditor}):void 0}renderNoChanges(){const{pullRequestState:e,currentBranch:t}=this.props,{commitSelection:n,baseBranch:r,mergeStatus:s}=e;if(null===n||null===r)return;const{shas:i}=n;if(0!==i.length)return;const o=s?.kind!==Rb.Invalid?ke.createElement(ke.Fragment,null,ke.createElement(UM,null,r.name)," is up to date with all commits from"," ",ke.createElement(UM,null,t.name),"."):ke.createElement(ke.Fragment,null,ke.createElement(UM,null,r.name)," and ",ke.createElement(UM,null,t.name)," are entirely different commit histories.");return ke.createElement("div",{className:"open-pull-request-message"},ke.createElement("div",null,ke.createElement(Rs,{symbol:la}),ke.createElement("h3",null,"There are no changes."),o))}renderNoDefaultBranch(){const{baseBranch:e}=this.props.pullRequestState;if(null===e)return ke.createElement("div",{className:"open-pull-request-message"},ke.createElement("div",null,ke.createElement(Rs,{symbol:la}),ke.createElement("h3",null,"Could not find a default branch to compare against."),"Select a base branch above."))}renderFooter(){const{currentBranchHasPullRequest:e,pullRequestState:t,repository:n}=this.props,{mergeStatus:r,commitSHAs:s}=t,i=n.gitHubRepository,o=e?"View":" Create",a=`${o} pull request on GitHub${i&&i.endpoint!==ar()?" Enterprise":""}.`,l=ke.createElement(ke.Fragment,null,e&&ke.createElement(Rs,{symbol:Va}),`${o} pull request`);return ke.createElement(xM,null,ke.createElement(NZ,{mergeStatus:r}),ke.createElement(DM,{okButtonText:l,okButtonTitle:a,cancelButtonText:"取消",okButtonDisabled:null===s||0===s.length}))}render(){return ke.createElement(AM,{titleId:PZ,className:"open-pull-request",onSubmit:this.onCreatePullRequest,onDismissed:this.props.onDismissed},this.renderHeader(),this.renderContent(),this.renderFooter())}}class LZ extends ke.Component{updateStoreEventHandle=null;onUpdateStateChanged=e=>{e.status!==pn.UpdateAvailable&&this.props.dispatcher.quitApp(!1)};componentDidMount(){this.updateStoreEventHandle=dn.onDidChange(this.onUpdateStateChanged),this.onUpdateStateChanged(dn.state)}componentWillUnmount(){this.updateStoreEventHandle&&(this.updateStoreEventHandle.dispose(),this.updateStoreEventHandle=null),this.props.dispatcher.cancelQuittingApp()}onQuitAnywayButtonClicked=()=>{this.props.dispatcher.quitApp(!0)};render(){return ke.createElement(AM,{id:"installing-update",title:"安装更新...",loading:!0,onSubmit:this.props.onDismissed,backdropDismissable:!1,type:"warning",onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement(rx,{className:"updating-message"},"Do not close GitHub Desktop while the update is in progress. Closing now may break your installation.")),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"仍要退出",onOkButtonClick:this.onQuitAnywayButtonClicked,onCancelButtonClick:this.props.onDismissed,destructive:!0})))}}var BZ,HZ;!function(e){e[e.PullRequestReview=0]="PullRequestReview",e[e.PullRequestComment=1]="PullRequestComment",e[e.ChecksFailed=2]="ChecksFailed"}(BZ||(BZ={})),function(e){e[e.SelectPullRequest=0]="SelectPullRequest",e[e.SelectPullRequestReview=1]="SelectPullRequestReview",e[e.SelectPullRequestComment=2]="SelectPullRequestComment"}(HZ||(HZ={}));const UZ=[{type:BZ.PullRequestReview,steps:[HZ.SelectPullRequest,HZ.SelectPullRequestReview]},{type:BZ.PullRequestComment,steps:[HZ.SelectPullRequest,HZ.SelectPullRequestComment]},{type:BZ.ChecksFailed,steps:[HZ.SelectPullRequest]}];class ZZ extends Re().Component{render(){const{leftAccessory:e,html_url:t,children:n}=this.props;return Re().createElement("div",{className:"row-content"},e&&Re().createElement("div",{className:"left-accessory"},e),Re().createElement("div",{className:"main-content"},n),t&&Re().createElement("div",{className:"right-accessory"},Re().createElement(Ss,{onClick:this.onExternalLinkClick,role:"link"},Re().createElement(Rs,{symbol:Va}))))}onExternalLinkClick=e=>{const{dispatcher:t,html_url:n}=this.props;void 0!==n&&(e.stopPropagation(),t.openInBrowser(n))}}class $Z extends Re().Component{constructor(e){super(e),this.state={selectedFlow:null,stepResults:new Map,loading:!1,pullRequests:[],reviews:[],comments:[],selectedRows:[],suggestGrantNotificationPermission:!1,warnNotificationsDenied:!1,suggestConfigureNotifications:!1}}componentDidMount(){this.updateNotificationsState()}async updateNotificationsState(){const e=await(0,AC.Ym)();this.setState({suggestGrantNotificationPermission:(0,AC.zP)()&&"default"===e,warnNotificationsDenied:"denied"===e,suggestConfigureNotifications:"granted"===e})}onGrantNotificationPermission=async()=>{await(0,AC.tC)(),this.updateNotificationsState()};renderNotificationHint(){const{suggestGrantNotificationPermission:e,warnNotificationsDenied:t,suggestConfigureNotifications:n}=this.state;if(e)return Re().createElement(Re().Fragment,null," ","你需要"," ",Re().createElement(sM,{onClick:this.onGrantNotificationPermission},"grant permission")," ","从GitHub DeskTop显示这些通知");const r=(0,AC.ce)();if(null===r)return null;if(t)return Re().createElement(Re().Fragment,null,Re().createElement("span",{className:"warning-icon"},"⚠️")," GitHub DeskTop没有显示通知的权限。请在设置中启用它们"," ",Re().createElement(sM,{uri:r},"通知设置"),".");const s=n?"properly configured":"允许";return Re().createElement(Re().Fragment,null,"确认GitHub DeskTop ",s," 向你发出通知"," ",Re().createElement(sM,{uri:r},"通知设置"),".")}getTypeFriendlyName(e){return new Map([[BZ.PullRequestReview,"Pull Request Review"],[BZ.PullRequestComment,"Pull Request Comment"],[BZ.ChecksFailed,"Pull Request Checks Failed"]]).get(e??this.state.selectedFlow?.type??BZ.PullRequestReview)??""}renderNotificationType=e=>Re().createElement(Ss,{onClick:this.getOnNotificationTypeClick(e)},this.getTypeFriendlyName(e));getOnNotificationTypeClick=e=>()=>{const t=UZ.find((t=>t.type===e))??null;this.setState({selectedFlow:t},(()=>{this.prepareForNextStep()}))};doFinalAction(){const e=this.state.selectedFlow;if(null!==e)switch(e.type){case BZ.PullRequestReview:{const e=this.getPullRequest(),t=this.getReview();if(null===e||null===t)return;this.props.notificationsDebugStore.simulatePullRequestReviewNotification(this.props.repository.gitHubRepository,e,t);break}case BZ.PullRequestComment:{const e=this.getPullRequest(),t=this.getCommentInfo();if(null===e||null===t)return;const{comment:n,isIssueComment:r}=t;this.props.notificationsDebugStore.simulatePullRequestCommentNotification(this.props.repository.gitHubRepository,e,n,r);break}case BZ.ChecksFailed:{const e=this.getPullRequest();if(null===e)return;this.props.notificationsDebugStore.simulatePullRequestChecksFailed(this.props.repository,e,this.props.dispatcher);break}default:at(e.type,`Unknown flow type: ${e}`)}}prepareForNextStep(){const e=this.state.selectedFlow?.steps[this.state.stepResults.size];if(void 0===e)return this.doFinalAction(),void this.back();switch(e){case HZ.SelectPullRequest:this.setState({loading:!0}),this.props.notificationsDebugStore.getPullRequests(this.props.repository,{filterByComments:this.state.selectedFlow?.type===BZ.PullRequestComment,filterByReviews:this.state.selectedFlow?.type===BZ.PullRequestReview}).then((e=>{this.setState({pullRequests:e,selectedRows:[],loading:!1})}));break;case HZ.SelectPullRequestReview:{this.setState({loading:!0});const e=this.getPullRequest();if(null===e)return;this.props.notificationsDebugStore.getPullRequestReviews(this.props.repository,e.pullRequestNumber).then((e=>{this.setState({reviews:e,selectedRows:[],loading:!1})}));break}case HZ.SelectPullRequestComment:{this.setState({loading:!0});const e=this.getPullRequest();if(null===e)return;this.props.notificationsDebugStore.getPullRequestComments(this.props.repository,e.pullRequestNumber).then((e=>{this.setState({comments:e,selectedRows:[],loading:!1})}));break}default:at(0,`Unknown step: ${e}`)}}getPullRequest(){const e=this.state.stepResults.get(HZ.SelectPullRequest);return void 0===e?null:e.pullRequest}getReview(){const e=this.state.stepResults.get(HZ.SelectPullRequestReview);return void 0===e?null:e.review}getCommentInfo(){const e=this.state.stepResults.get(HZ.SelectPullRequestComment);return void 0===e?null:{comment:e.comment,isIssueComment:e.isIssueComment}}renderCurrentStep(){if(null===this.state.selectedFlow)return Re().createElement("div",null,Re().createElement("p",null,"Select the type of notification to display:"),Re().createElement("div",{className:"notification-type-list"},this.renderNotificationType(BZ.PullRequestReview),this.renderNotificationType(BZ.PullRequestComment),this.renderNotificationType(BZ.ChecksFailed)));const e=this.state.selectedFlow.steps.at(this.state.stepResults.size);if(void 0===e)return Re().createElement("p",null,"Done!");switch(e){case HZ.SelectPullRequest:return this.renderSelectPullRequest();case HZ.SelectPullRequestReview:return this.renderSelectPullRequestReview();case HZ.SelectPullRequestComment:return this.renderSelectPullRequestComment();default:return at(0,`Unknown step: ${e}`)}}renderSelectPullRequest(){if(this.state.loading)return Re().createElement(zD,null);const{pullRequests:e,selectedRows:t}=this.state;return 0===e.length?Re().createElement("p",null,"No pull requests found"):Re().createElement("div",null,"Pull requests for ",this.getTypeFriendlyName(),":",Re().createElement(tx,{rowHeight:40,rowCount:[e.length],rowRenderer:this.renderPullRequestRow,selectedRows:t,onRowClick:this.onPullRequestRowClick,onSelectedRowChanged:this.onSelectedRowChanged}))}onPullRequestRowClick=e=>{const t=this.state.pullRequests[e.row],n=this.state.stepResults;n.set(HZ.SelectPullRequest,{kind:HZ.SelectPullRequest,pullRequest:t}),this.setState({stepResults:n},(()=>{this.prepareForNextStep()}))};renderSelectPullRequestReview(){if(this.state.loading)return Re().createElement(zD,null);const{reviews:e,selectedRows:t}=this.state;return 0===e.length?Re().createElement("p",null,"No reviews found"):Re().createElement("div",null,"Reviews:",Re().createElement(tx,{rowHeight:40,rowCount:[e.length],rowRenderer:this.renderPullRequestReviewRow,selectedRows:t,onRowClick:this.onPullRequestReviewRowClick,onSelectedRowChanged:this.onSelectedRowChanged}))}onSelectedRowChanged=e=>{this.setState({selectedRows:[e]})};onPullRequestReviewRowClick=e=>{const t=this.state.reviews[e.row],n=this.state.stepResults;n.set(HZ.SelectPullRequestReview,{kind:HZ.SelectPullRequestReview,review:t}),this.setState({stepResults:n},(()=>{this.prepareForNextStep()}))};renderSelectPullRequestComment(){if(this.state.loading)return Re().createElement(zD,null);const{comments:e,selectedRows:t}=this.state;return 0===e.length?Re().createElement("p",null,"No comments found"):Re().createElement("div",null,"Comments:",Re().createElement(tx,{rowHeight:40,rowCount:[e.length],rowRenderer:this.renderPullRequestCommentRow,selectedRows:t,onRowClick:this.onPullRequestCommentRowClick,onSelectedRowChanged:this.onSelectedRowChanged}))}onPullRequestCommentRowClick=e=>{const t=this.state.comments[e.row],n=this.state.stepResults;n.set(HZ.SelectPullRequestComment,{kind:HZ.SelectPullRequestComment,comment:t,isIssueComment:t.html_url.includes("#issuecomment-")}),this.setState({stepResults:n},(()=>{this.prepareForNextStep()}))};renderPullRequestCommentRow=e=>{const t=this.state.comments[e.row];return Re().createElement(ZZ,{dispatcher:this.props.dispatcher,html_url:t.html_url,leftAccessory:this.renderReviewStateIcon("COMMENTED")},t.body,Re().createElement("br",null),"by ",Re().createElement("i",null,t.user.login))};renderPullRequestReviewRow=e=>{const t=this.state.reviews[e.row];return Re().createElement(ZZ,{dispatcher:this.props.dispatcher,html_url:t.html_url,leftAccessory:this.renderReviewStateIcon(t.state)},t.body||Re().createElement("i",null,"Review without body"),Re().createElement("br",null),"by ",Re().createElement("i",null,t.user.login))};renderReviewStateIcon=e=>{const t=oC(e);return Re().createElement("div",{className:hs()("review-icon-container",t.className)},Re().createElement(Rs,{symbol:t.symbol}))};renderPullRequestRow=e=>{const t=this.state.pullRequests[e.row],n=this.props.repository.gitHubRepository,r=`${ir(n.endpoint)}/${n.owner.login}/${n.name}/pull/${t.pullRequestNumber}`;return Re().createElement(ZZ,{dispatcher:this.props.dispatcher,html_url:r,leftAccessory:this.renderPullRequestStateIcon(t)},Re().createElement("b",null,"#",t.pullRequestNumber,t.draft?" (Draft)":"",":")," ",t.title," ",Re().createElement("br",null),"by ",Re().createElement("i",null,t.author))};renderPullRequestStateIcon=e=>Re().createElement(Rs,{className:e.draft?"pr-draft-icon":"pr-icon",symbol:e.draft?ua:la});render(){return Re().createElement(AM,{id:"test-notifications",title:"测试通知",onSubmit:this.props.onDismissed,onDismissed:this.props.onDismissed},Re().createElement(vM,null,Re().createElement("p",null,this.renderNotificationHint()),this.renderCurrentStep()),Re().createElement(xM,null,Re().createElement(DM,{okButtonText:"关闭",okButtonDisabled:!1,cancelButtonDisabled:!1,cancelButtonVisible:null!==this.state.selectedFlow,cancelButtonText:"返回",onCancelButtonClick:this.onBack})))}onBack=e=>{this.back(),e.preventDefault()};back(){const{selectedFlow:e,stepResults:t}=this.state;if(null===e)return;0===t.size&&this.setState({selectedFlow:null,stepResults:new Map},(()=>{this.prepareForNextStep()}));const n=e.steps.at(t.size-1);if(void 0===n)return;const r=new Map(t);r.delete(n),this.setState({stepResults:r},(()=>{this.prepareForNextStep()}))}}class WZ extends ke.Component{constructor(e){super(e),this.state={switchingToPullRequest:!1}}render(){const{dispatcher:e,repository:t,pullRequest:n,emoji:r,comment:s,onSubmit:i,onDismissed:o,accounts:a}=this.props,l=oC("COMMENTED");return ke.createElement(TZ,{id:"pull-request-comment",dispatcher:e,repository:t,pullRequest:n,emoji:r,eventDate:new Date(s.created_at),eventVerb:"commented on",eventIconSymbol:l.symbol,eventIconClass:l.className,externalURL:s.html_url,user:s.user,body:s.body,switchingToPullRequest:this.state.switchingToPullRequest,renderFooterContent:this.renderFooterContent,onSubmit:i,onDismissed:o,underlineLinks:this.props.underlineLinks,accounts:a})}renderFooterContent=()=>{const{shouldChangeRepository:e,shouldCheckoutBranch:t,comment:n}=this.props;let r;e?r="Switch to repository and pull request":t&&(r="Switch to pull request");const s=ke.createElement(DM,{onCancelButtonClick:this.props.onDismissed,cancelButtonText:"忽略",cancelButtonVisible:void 0!==r,okButtonText:r,okButtonDisabled:this.state.switchingToPullRequest,onOkButtonClick:this.onSubmit});return ke.createElement(rx,null,ke.createElement("div",{className:"footer-links"},ke.createElement(sM,{uri:n.html_url},"打开于 browser")),s)};onSubmit=async e=>{e.preventDefault();const{dispatcher:t,repository:n,pullRequest:r,shouldChangeRepository:s,shouldCheckoutBranch:i}=this.props;(s||i)&&(this.setState({switchingToPullRequest:!0}),await t.selectRepository(n),await t.checkoutPullRequest(n,r),this.setState({switchingToPullRequest:!1}),t.incrementMetric("pullRequestCommentDialogSwitchToPullRequestCount")),this.props.onDismissed()}}class VZ extends ke.Component{constructor(e){super(e)}render(){return ke.createElement(AM,{id:"unknown-authors",title:"Unknown co-authors",onDismissed:this.props.onDismissed,onSubmit:this.commit,type:"warning"},ke.createElement(vM,null,this.renderAuthorList()),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"仍要提交"})))}renderAuthorList(){return this.props.authors.length>10?ke.createElement("p",null,this.props.authors.length," users weren't found and won't be added as co-authors of this commit. Are you sure you want to commit?"):ke.createElement("div",null,ke.createElement("p",null,"These users weren't found and won't be added as co-authors of this commit. Are you sure you want to commit?"),ke.createElement("div",{className:"author-list"},ke.createElement("ul",null,this.props.authors.map((e=>ke.createElement("li",{key:e.username},ke.createElement(wP,{path:e.username})))))))}commit=async()=>{this.props.onCommit(),this.props.onDismissed()}}class qZ extends ke.Component{render(){return ke.createElement(AM,{id:"octicons-preview-dialog",className:"octicons-preview-dialog",title:"Icon Preview",onDismissed:this.props.onDismissed},ke.createElement(vM,null,ke.createElement("ul",{className:"octicons-preview-list"},Object.entries(e).map((([e,t])=>this.renderIconVariants(e,t))))))}renderIconVariants(e,t){return ke.createElement("li",{key:e},ke.createElement("h2",null,e),ke.createElement("ul",null,Object.entries(t).map((([t,n])=>this.renderIcon(e,t,n)))))}renderIcon(e,t,n){const r=`${n.h}x${n.w}`,s=`${e} - ${r}`;return ke.createElement("li",{key:`name-${r}`},ke.createElement(Rs,{height:parseInt(t),symbol:n,title:s}),ke.createElement("small",null,r))}}class GZ extends ke.Component{constructor(e){super(e),this.state={askForConfirmationOnCommitFilteredChanges:!0}}render(){return ke.createElement(AM,{id:"hidden-changes",type:"warning",title:"Commit filtered changes?",onSubmit:this.onSubmit,onDismissed:this.props.onDismissed,role:"alertdialog",ariaDescribedBy:"confirm-commit-filtered-changes-message"},ke.createElement(vM,null,ke.createElement("p",{id:"confirm-commit-filtered-changes-message"},"You have a filter applied. There are"," ",ke.createElement(sM,{onClick:this.showFilesToBeCommitted},"hidden changes")," ","that will be committed. Are you sure you want to commit these changes?"),ke.createElement(rx,null,ke.createElement(vx,{label:"不再显示此消息",value:this.state.askForConfirmationOnCommitFilteredChanges?Cx.Off:Cx.On,onChange:this.onShowMessageChange}))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"仍要提交",cancelButtonText:"取消",onCancelButtonClick:this.props.onDismissed})))}onShowMessageChange=e=>{const t=!e.currentTarget.checked;this.setState({askForConfirmationOnCommitFilteredChanges:t})};showFilesToBeCommitted=()=>{this.props.showFilesToBeCommitted(),this.props.onDismissed()};onSubmit=()=>{this.props.setConfirmCommitFilteredChanges(this.state.askForConfirmationOnCommitFilteredChanges),this.props.onCommitAnyway(),this.props.onDismissed()}}class zZ extends ke.Component{delayTimeoutId=null;constructor(e){super(e),this.state={updateState:{status:pn.UpdateNotAvailable,lastSuccessfulCheck:new Date(Date.now()-36e5),isX64ToARM64ImmediateAutoUpdate:!1,newReleases:[],prioritizeUpdate:!1,prioritizeUpdateInfoUrl:void 0}}}delay=e=>new Promise((t=>{null!==this.delayTimeoutId&&clearTimeout(this.delayTimeoutId),this.delayTimeoutId=window.setTimeout(t,e)}));render(){return ke.createElement(jH,{key:"about",onDismissed:this.props.onDismissed,applicationName:"GitHub Desktop",applicationVersion:"3.5.3",applicationArchitecture:process.arch,onCheckForNonStaggeredUpdates:this.onCheckForNonStaggeredUpdates,onShowAcknowledgements:this.props.onShowAcknowledgements,onShowTermsAndConditions:this.props.onShowTermsAndConditions,updateState:this.state.updateState,onQuitAndInstall:this.props.onDismissed,allowDevelopment:!0})}setUpdateState(e){this.setState({updateState:{...this.state.updateState,...e}})}onCheckForNonStaggeredUpdates=async()=>{this.setUpdateState({status:pn.CheckingForUpdates}),await this.delay(5e3),this.setUpdateState({status:pn.UpdateAvailable}),await this.delay(1e4),this.setUpdateState({status:pn.UpdateReady,lastSuccessfulCheck:new Date})};componentWillUnmount(){null!==this.delayTimeoutId&&clearTimeout(this.delayTimeoutId)}}class jZ extends ke.Component{constructor(e){super(e),this.state={showMoreLocations:!1}}onClickShowMoreLocations=()=>{this.setState({showMoreLocations:!this.state.showMoreLocations})};renderLocation(e,t=!1){return ke.createElement("span",{className:"secret-location-details"},ke.createElement("span",{className:"commit-sha"},ke.createElement(Rs,{symbol:sa}),ke.createElement("span",{className:"ref selectable-text"},e.commitSha.substring(0,7)),ke.createElement(II,{ariaLabel:"Copy the full SHA",copyContent:e.commitSha})),ke.createElement("span",{className:"secret-path"},ke.createElement("span",{className:"ref selectable-text"},ke.createElement(wP,{path:e.path,availableWidth:t?200:275}),"at line ",e.lineNumber)))}render(){const{secret:e}=this.props,{showMoreLocations:t}=this.state,n=e.locations.at(0),r=e.locations.length>1,s=t?"Show Less Locations":"Show More locations";return void 0===n?null:ke.createElement("span",{className:"secret-location"},ke.createElement("span",{className:"first-location"},this.renderLocation(n,!0),r&&ke.createElement(Ss,{tooltip:s,ariaLabel:s,onClick:this.onClickShowMoreLocations},ke.createElement(Rs,{symbol:Ba}))),t&&ke.createElement(ke.Fragment,null,e.locations.map(((e,t)=>0===t?null:this.renderLocation(e)))))}}class KZ extends ke.Component{constructor(e){super(e),this.state={secretsBypassed:new Map}}render(){return ke.createElement(AM,{title:"Push blocked: secret detected",onDismissed:this.props.onDismissed,onSubmit:this.props.onDismissed,type:"error",role:"alertdialog",ariaDescribedBy:"push-protection-error-dialog-description",className:"push-protection-error-dialog"},ke.createElement(vM,null,ke.createElement("div",{id:"push-protection-error-dialog-description"},ke.createElement("p",null,ke.createElement(sM,{uri:"https://docs.github.com/code-security/secret-scanning/protecting-pushes-with-secret-scanning"},"Secret Scanning")," ","found secret(s) in the commit(s) you attempted to push."," "),ke.createElement("p",null,"Allowing secrets risks exposure. Consider"," ",ke.createElement(sM,{onClick:this.props.onRemediationInstructionsLinkClick,uri:"https://docs.github.com/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-in-the-github-ui#resolving-a-blocked-commit"},"removing the secret from your commit and commit history.")),"Exposing this secret can allow someone to:",ke.createElement("ul",null,ke.createElement("li",null,"Verify the identity of the secret(s)"),ke.createElement("li",null,"Know which resources the secret(s) can access"),ke.createElement("li",null,"Act on behalf of the secret's owner"),ke.createElement("li",null,"Push the secret(s) to this repository without being blocked")),this.renderSecrets())),ke.createElement(xM,null,ke.createElement(DM,{cancelButtonVisible:!1})))}renderSecretDescription=e=>this.props.secrets.filter((t=>t.description===e.description)).length>1?`${e.description} (${e.id})`:e.description;bypassSecret=e=>async()=>{await this.props.bypassPushProtection(e)&&this.setState((t=>({secretsBypassed:new Map(t.secretsBypassed).set(e.id,!0)})))};renderBypassButton=e=>e.requiresApproval?ke.createElement(sM,{ariaLabel:`Bypass ${e.description}`,uri:e.bypassURL,onClick:this.props.onDelegatedBypassLinkClick},"Bypass"):this.state.secretsBypassed.get(e.id)?ke.createElement("span",{className:"bypass-success"},"Bypassed"," ",ke.createElement(Rs,{symbol:ii,className:"bypass-success"})," "):ke.createElement(sM,{ariaLabel:`Bypass ${e.description}`,onClick:this.bypassSecret(e)},"Bypass");renderSecrets=()=>{const e=this.props.secrets.map(((e,t)=>ke.createElement("li",{key:t,className:"secret-list-item"},ke.createElement("span",{className:"secret-list-item-header"},ke.createElement("span",null,this.renderSecretDescription(e)),this.renderBypassButton(e)),ke.createElement(jZ,{secret:e}))));return ke.createElement("ul",{"aria-label":"Secrets",className:"secret-list"},e)}}class YZ extends ke.Component{constructor(e){super(e)}render(){return ke.createElement(AM,{title:"Commit message override",id:"generate-commit-message-override-warning",type:"warning",onDismissed:this.props.onDismissed,onSubmit:this.onOverride,ariaDescribedBy:"generate-commit-message-override-warning-body",role:"alertdialog"},ke.createElement(vM,null,ke.createElement("p",{id:"generate-commit-message-override-warning-body"},"The commit message you have entered will be overridden by the generated commit message.")),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"Override"})))}onOverride=async()=>{this.props.dispatcher.generateCommitMessage(this.props.repository,this.props.filesSelected),this.props.onDismissed()}}class XZ extends ke.Component{constructor(e){super(e)}render(){return ke.createElement(AM,{title:"GitHub Copilot",id:"generate-commit-message-disclaimer",type:"warning",onDismissed:this.props.onDismissed,onSubmit:this.onSubmit,ariaDescribedBy:"generate-commit-message-disclaimer-body",role:"alertdialog"},ke.createElement(vM,null,ke.createElement("p",{id:"generate-commit-message-disclaimer-body"},"Copilot is powered by AI, so mistakes are possible. Review and edit the generated message carefully before use."," ",ke.createElement(sM,{uri:"https://gh.io/copilot-for-desktop-transparency"},"Learn more about Copilot in GitHub Desktop."))),ke.createElement(xM,null,ke.createElement(DM,{destructive:!0,okButtonText:"I understand"})))}onSubmit=async()=>{this.props.dispatcher.updateCommitMessageGenerationDisclaimerLastSeen(),this.props.dispatcher.generateCommitMessage(this.props.repository,this.props.filesSelected),this.props.onDismissed()}}var QZ;!function(e){e.FalsePositive="false_positive",e.UsedInTests="used_in_tests",e.WillFixLater="will_fix_later"}(QZ||(QZ={}));class JZ extends ke.Component{constructor(e){super(e),this.state={reason:QZ.FalsePositive}}render(){const e=[{title:"It's used in tests",description:"The secret poses no risk. If anyone finds it, they cannot do any damage or gain access to sensitive information.",key:QZ.UsedInTests},{title:"It's a false positive",description:"The detected string is not a secret",key:QZ.FalsePositive},{title:"I'll fix it later",description:"The secret is real, I understand the risk, and I will need to revoke it. This will open a security alert and notify admins of this repository.",key:QZ.WillFixLater}];return ke.createElement(AM,{title:"Bypass push detection",onDismissed:this.props.onDismissed,onSubmit:this.bypassPushProtection,className:"bypass-push-protection-dialog"},ke.createElement(vM,null,ke.createElement(LH,{label:`Why are you bypassing this ${this.props.secret.description}?`,items:e,selectedKey:this.state.reason,onSelectionChanged:this.onSelectionChanged})),ke.createElement(xM,null,ke.createElement(DM,{okButtonText:"Allow me to expose this secret",destructive:!0})))}onSelectionChanged=e=>{this.setState({reason:e})};bypassPushProtection=()=>{this.props.bypassPushProtection(this.props.secret,this.state.reason)}}const e$={enter:250,exit:100},t$={enter:500,exit:400};class n$ extends ke.Component{loading=!0;lastKeyPressed=null;updateIntervalHandle;repositoryViewRef=ke.createRef();get isShowingModal(){return null!==this.state.currentPopup}getOnPopupDismissedFn=xr((e=>()=>this.onPopupDismissed(e)));oneAccountPerKind=xr((e=>[e.find(wn),e.find(bn)].filter((e=>void 0!==e))));constructor(e){super(e),e.dispatcher.loadInitialState().then((()=>{this.loading=!1,this.forceUpdate(),requestIdleCallback((()=>{const t=performance.now();D(t-e.startTime),requestIdleCallback((()=>{this.performDeferredLaunchActions()}))}),{timeout:100})})),this.state=e.appStore.getState(),e.appStore.onDidUpdate((e=>{this.setState(e)})),e.appStore.onDidError((t=>{e.dispatcher.postError(t)})),g("menu-event",((e,t)=>this.onMenuEvent(t))),dn.onDidChange((async e=>{const t=e.status;t===pn.UpdateReady&&this.props.dispatcher.setUpdateBannerVisibility(!0),t!==pn.UpdateReady&&await dn.isUpdateShowcase()&&this.props.dispatcher.setUpdateShowCaseVisibility(!0)})),dn.onError((e=>{log.error("Error checking for updates",e),this.props.dispatcher.postError(e)})),g("launch-timing-stats",((e,t)=>{console.info(`App ready time: ${t.mainReadyTime}ms`),console.info(`Load time: ${t.loadTime}ms`),console.info(`Renderer ready time: ${t.rendererReadyTime}ms`),this.props.dispatcher.recordLaunchStats(t)})),g("certificate-error",((e,t,n,r)=>{(function(e){return Zn.has(e)})(r)||this.props.dispatcher.showPopup({type:Sh.UntrustedCertificate,certificate:t,url:r})})),Ip.onDragEnded(this.onDragEnd)}componentWillUnmount(){window.clearInterval(this.updateIntervalHandle)}async performDeferredLaunchActions(){this.props.appStore.loadEmoji(),this.props.dispatcher.reportStats(),setInterval((()=>this.props.dispatcher.reportStats()),144e5),this.props.dispatcher.installGlobalLFSFilters(!1),setInterval((()=>this.checkForUpdates(!0)),144e5),this.checkForUpdates(!0),log.info(`launching: 3.5.3 (${Mr()})`),log.info(`execPath: '${process.execPath}'`),this.state.askToMoveToApplicationsFolderSetting,this.setOnOpenBanner()}setOnOpenBanner(){Hr()&&Kt(BB,0)<It(-90,"days")?this.setBanner({type:kb.OSVersionNoLongerSupported}):this.checkIfThankYouIsInOrder()}onMenuEvent(e){var t;if(!("test-app-error"!==e&&this.state.errorCount>1))switch(e){case"push":return this.push();case"force-push":return this.push({forceWithLease:!0});case"pull":return this.pull();case"fetch":return this.fetch();case"show-changes":return this.showChanges(!0);case"show-history":return this.showHistory(!0);case"choose-repository":return this.chooseRepository();case"add-local-repository":return this.showAddLocalRepo();case"create-branch":return this.showCreateBranch();case"show-branches":return this.showBranches();case"remove-repository":return this.removeRepository(this.getRepository());case"create-repository":return this.showCreateRepository();case"rename-branch":return this.renameBranch();case"delete-branch":return this.deleteBranch();case"discard-all-changes":return this.discardAllChanges();case"stash-all-changes":return this.stashAllChanges();case"show-preferences":return this.props.dispatcher.showPopup({type:Sh.Preferences});case"open-working-directory":return this.openCurrentRepositoryWorkingDirectory();case"update-branch-with-contribution-target-branch":return this.props.dispatcher.incrementMetric("updateFromDefaultBranchMenuCount"),this.updateBranchWithContributionTargetBranch();case"compare-to-branch":return this.showHistory(!1,!0);case"merge-branch":return this.props.dispatcher.recordMenuInitiatedMerge(),this.mergeBranch();case"squash-and-merge-branch":return this.props.dispatcher.recordMenuInitiatedMerge(!0),this.mergeBranch(!0);case"rebase-branch":return this.props.dispatcher.incrementMetric("rebaseCurrentBranchMenuCount"),this.showRebaseDialog();case"show-repository-settings":return this.showRepositorySettings();case"view-repository-on-github":return this.viewRepositoryOnGitHub();case"compare-on-github":return this.openBranchOnGitHub("compare");case"branch-on-github":return this.openBranchOnGitHub("tree");case"create-issue-in-repository-on-github":return this.openIssueCreationOnGitHub();case"open-in-shell":return this.openCurrentRepositoryInShell();case"clone-repository":return this.showCloneRepo();case"show-about":return this.showAbout();case"go-to-commit-message":return this.goToCommitMessage();case"open-pull-request":return this.openPullRequest();case"preview-pull-request":return this.startPullRequest();case"install-darwin-cli":return this.props.dispatcher.installDarwinCLI();case"install-windows-cli":return be();case"uninstall-windows-cli":return Ce();case"open-external-editor":return this.openCurrentRepositoryInExternalEditor();case"select-all":return this.selectAll();case"show-stashed-changes":return this.showStashedChanges();case"hide-stashed-changes":return this.hideStashedChanges();case"find-text":return this.findText();case"increase-active-resizable-width":return this.resizeActiveResizable("increase-active-resizable-width");case"decrease-active-resizable-width":return this.resizeActiveResizable("decrease-active-resizable-width");case"toggle-changes-filter":return this.toggleChangesFilterVisibility();default:return t=e,Zr.includes(t)?function(e,t,n,r){if(sn())switch(e){case"boomtown":return void setImmediate((()=>{throw new Error("Boomtown!")}));case"test-app-error":return n.postError(new Error("Test Error - to use default error handler"+wT()()));case"test-arm64-banner":return s({isArm64:!0});case"test-confirm-committing-conflicted-files":return null==t||t instanceof cs?n.postError(new Error("No repository to test with - check out a repository and try again")):n.showPopup({type:Sh.CommitConflictsWarning,files:[new nh("test/test.md",{kind:Wu.New},ju.fromInitialSelection(Hu.All)),new nh("mock/mock.md",{kind:Wu.New},ju.fromInitialSelection(Hu.All))],repository:t,context:{summary:"Test summary",description:"Test description"}});case"test-cherry-pick-conflicts-banner":return void n.setBanner({type:kb.CherryPickConflictsFound,targetBranchName:"fake-branch",onOpenConflictsDialog:()=>{}});case"test-discarded-changes-will-be-unrecoverable":return null==t||t instanceof cs?n.postError(new Error("No repository to test with - check out a repository and try again")):n.showPopup({type:Sh.DiscardChangesRetry,retryAction:{type:pt.DiscardChanges,repository:t,files:[new nh("test/test.md",{kind:Wu.New},ju.fromInitialSelection(Hu.All)),new nh("mock/mock.md",{kind:Wu.New},ju.fromInitialSelection(Hu.All))]}});case"test-do-you-want-fork-this-repository":return null==t||t instanceof cs||!Yr(t)?n.postError(new Error("No GitHub repository to test with - check out a GitHub repository and try again")):n.showPopup({type:Sh.CreateFork,repository:t,account:yn.anonymous()});case"test-files-too-large":return null==t||t instanceof cs||!Yr(t)?n.postError(new Error("No GitHub repository to test with - check out a GitHub repository and try again")):n.showPopup({type:Sh.OversizedFiles,oversizedFiles:["test/app.tsx","test/popup.tsx"],context:{summary:"Test summary",description:"Test description"},repository:t});case"test-generic-git-authentication":return n.showPopup({type:Sh.GenericGitAuthentication,remoteUrl:"test-github.com",onSubmit:(e,t)=>{},onDismiss:()=>{}});case"test-icons":return void n.showPopup({type:Sh.TestIcons});case"test-invalidated-account-token":return n.showPopup({type:Sh.InvalidatedToken,account:yn.anonymous()});case"test-merge-successful-banner":return void n.setBanner({type:kb.SuccessfulMerge,ourBranch:"fake-branch"});case"test-move-to-application-folder":return n.showPopup({type:Sh.MoveToApplicationsFolder});case"test-newer-commits-on-remote":return void(null==t||t instanceof cs||n.showPopup({type:Sh.PushNeedsPull,repository:t}));case"test-no-external-editor":return void n.postError(new Em(`No suitable editors installed for GitHub Desktop to launch. Install ${km} for your platform and restart GitHub Desktop to try again.`,{suggestDefaultEditor:!0}));case"test-notification":return void(null==t||t instanceof cs||!Yr(t)||n.showPopup({type:Sh.TestNotifications,repository:t}));case"test-os-version-no-longer-supported":return n.setBanner({type:kb.OSVersionNoLongerSupported});case"test-prune-branches":return void n.testPruneBranches();case"test-push-rejected":return null==t||t instanceof cs||!Yr(t)?n.postError(new Error("No GitHub repository to test with - check out a GitHub repository and try again")):n.showPopup({type:Sh.PushRejectedDueToMissingWorkflowScope,rejectedPath:".gitub/workflows/test.yml",repository:t});case"test-re-authorization-required":return n.showPopup({type:Sh.SAMLReauthRequired,organizationName:"test-org",endpoint:"test-endpoint"});case"test-release-notes-popup":return async function(){n.showPopup({type:Sh.ReleaseNotes,newReleases:await qt()})}();case"test-reorder-banner":return void n.setBanner({type:kb.SuccessfulReorder,count:1,onUndo:()=>{n.setBanner({type:kb.ReorderUndone,commitsCount:1})}});case"test-showcase-update-banner":return s({isShowcase:!0});case"test-thank-you-banner":return function(){const e=[{kind:"fixed",message:"A totally awesome fix that fixes something - #123. Thanks!"},{kind:"added",message:"You can now do this new thing that was added here - #456. Thanks!"}],t={type:kb.OpenThankYouCard,emoji:r,onOpenCard:()=>n.showPopup({type:Sh.ThankYou,userContributions:e,friendlyName:"Test User",latestVersion:"3.5.3"}),onThrowCardAway:()=>{console.log("Thrown away :(....")}};n.setBanner(t)}();case"test-thank-you-popup":return void n.showPopup({type:Sh.ThankYou,userContributions:[{kind:"new",message:"[New] Added fake thank you dialog"}],friendlyName:"kind contributor",latestVersion:"3.0.0"});case"test-unable-to-locate-git":return n.showPopup({type:Sh.InstallGit,path:"/test/path/to/git"});case"test-unable-to-open-shell":return n.postError(new Nw("Could not find executable for 'Command Prompt' at path 'some/invalid/path'. Please open Options and select an available shell."));case"test-undone-banner":return void n.setBanner({type:kb.ReorderUndone,commitsCount:1});case"test-untrusted-server":const i={commonName:"asdf",country:"asfd",locality:"asd",organizations:["org"],organizationUnits:["orgUnit"],state:"asdf"},o={data:"asdf",fingerprint:"asdf",issuerName:"asdf",issuer:i,serialNumber:"asdf",subject:i,subjectName:"asdf",validExpiry:1731503528677,validStart:1731503528677};return o.issueCert=o,n.showPopup({type:Sh.UntrustedCertificate,certificate:o,url:"https://www.github.com"});case"test-update-banner":return s({});case"test-prioritized-update-banner":return s({isPriority:!0,priorityInfoUrl:"https://desktop.github.com"});case"test-update-existing-git-lfs-filters":return n.showPopup({type:Sh.LFSAttributeMismatch});case"test-upstream-already-exists":return function(){if(null==t||t instanceof cs||!Yr(t))return n.postError(new Error("No GitHub repository to test with - check out a github repo and try again"));const e=new Kr(t.path,t.id,new Wr(t.gitHubRepository.name,t.gitHubRepository.owner,t.gitHubRepository.dbID,t.gitHubRepository.isPrivate,t.gitHubRepository.htmlURL,t.gitHubRepository.cloneURL,t.gitHubRepository.issuesEnabled,t.gitHubRepository.isArchived,t.gitHubRepository.permissions,t.gitHubRepository),t.missing);return n.showPopup({type:Sh.UpstreamAlreadyExists,repository:e,existingRemote:{name:"heya",url:"http://github.com/tidy-dev/heya.git"}})}();case"test-about-dialog":return n.showPopup({type:Sh.TestAbout});default:return at(0,`Unknown menu event name: ${e}`)}function s(e){dn.setIsx64ToARM64ImmediateAutoUpdate(!0===e.isArm64),e.isShowcase?n.setUpdateShowCaseVisibility(!0):(void 0!==e.isPriority&&dn.setPrioritizeUpdate(e.isPriority),dn.setPrioritizeUpdateInfoUrl(e.priorityInfoUrl),n.setUpdateBannerVisibility(!0))}}(e,this.getRepository(),this.props.dispatcher,this.state.emoji):at(0,`Unknown menu event name: ${e}`)}}toggleChangesFilterVisibility(){this.props.dispatcher.toggleChangesFilterVisibility()}resizeActiveResizable(e){document.activeElement?.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0}))}selectAll(){const e=new CustomEvent("select-all",{bubbles:!0,cancelable:!0});null!=document.activeElement&&document.activeElement.dispatchEvent(e)&&T()}findText(){const e=new CustomEvent("find-text",{bubbles:!0,cancelable:!0});null!=document.activeElement?document.activeElement.dispatchEvent(e):document.dispatchEvent(e)}async goToCommitMessage(){await this.showChanges(!1),this.props.dispatcher.setCommitMessageFocus(!0)}checkForUpdates(e,t=!1){Lr()?log.error("Can't check for updates on Windows 8.1 or older. Next available update only supports Windows 10 and later"):Br()?log.error("Can't check for updates on macOS 10.15 or older. Next available update only supports macOS 11.0 and later"):dn.checkForUpdates(e,t)}updateBranchWithContributionTargetBranch(){const{selectedState:e}=this.state;if(null==e||e.type!==Xe.Repository)return;const{state:t,repository:n}=e,r=Rw(n,t.branchesState);if(!r)return;this.props.dispatcher.initializeMergeOperation(n,!1,r);const{mergeStatus:s}=t.compareState;this.props.dispatcher.mergeBranch(n,r,s)}mergeBranch(e=!1){const t=this.state.selectedState;if(null==t||t.type!==Xe.Repository)return;const{repository:n}=t;this.props.dispatcher.startMergeBranchOperation(n,e)}openBranchOnGitHub(e){const t=this.getCurrentRepositoryGitHubURL();if(!t)return;const n=this.state.selectedState;if(null==n||n.type!==Xe.Repository)return;const r=n.state.branchesState.tip;if(r.kind!==zr.Valid||!r.branch.upstreamWithoutRemote)return;const s=`${t}/${e}/${encodeURIComponent(r.branch.upstreamWithoutRemote)}`;this.props.dispatcher.openInBrowser(s)}openCurrentRepositoryWorkingDirectory(){const e=this.state.selectedState;null!=e&&e.type===Xe.Repository&&this.showRepository(e.repository)}renameBranch(){const e=this.state.selectedState;if(null==e||e.type!==Xe.Repository)return;const t=e.state.branchesState.tip;t.kind===zr.Valid&&this.props.dispatcher.showPopup({type:Sh.RenameBranch,repository:e.repository,branch:t.branch})}deleteBranch(){const e=this.state.selectedState;if(null===e||e.type!==Xe.Repository)return;const t=e.state.branchesState.tip;if(t.kind===zr.Valid){const n=e.state.branchesState.currentPullRequest;if(null!==n)this.props.dispatcher.showPopup({type:Sh.DeletePullRequest,repository:e.repository,branch:t.branch,pullRequest:n});else{const n=null!==e.state.aheadBehind;this.props.dispatcher.showPopup({type:Sh.DeleteBranch,repository:e.repository,branch:t.branch,existsOnRemote:n})}}}discardAllChanges(){const e=this.state.selectedState;if(null==e||e.type!==Xe.Repository)return;const{workingDirectory:t}=e.state.changesState;this.props.dispatcher.showPopup({type:Sh.ConfirmDiscardChanges,repository:e.repository,files:t.files,showDiscardChangesSetting:!1,discardingAllChanges:!0})}stashAllChanges(){const e=this.getRepository();null!==e&&e instanceof Kr&&this.props.dispatcher.createStashForCurrentBranch(e)}showAddLocalRepo=()=>this.props.dispatcher.showPopup({type:Sh.AddRepository});showCreateRepository=()=>{this.props.dispatcher.showPopup({type:Sh.CreateRepository})};showCloneRepo=e=>{let t=null;return void 0!==e&&(this.props.dispatcher.changeCloneRepositoriesTab(jr.Generic),t=e),this.props.dispatcher.showPopup({type:Sh.CloneRepository,initialURL:t})};showCreateTutorialRepositoryPopup=()=>{const e=this.state.accounts.find(wn)??this.state.accounts.at(0);e&&this.props.dispatcher.showPopup({type:Sh.CreateTutorialRepository,account:e})};onResumeTutorialRepository=()=>{const e=this.getSelectedTutorialRepository();e&&this.props.dispatcher.resumeTutorial(e)};getSelectedTutorialRepository(){const{selectedState:e}=this.state,t=e&&e.type===Xe.Repository?e.repository:null;return t&&t.isTutorialRepository?t:null}showAbout(){this.props.dispatcher.showPopup({type:Sh.About})}async showHistory(e,t=!1){const n=this.state.selectedState;null!=n&&n.type===Xe.Repository&&(await this.props.dispatcher.closeCurrentFoldout(),await this.props.dispatcher.initializeCompare(n.repository,{kind:tt.History}),await this.props.dispatcher.changeRepositorySection(n.repository,Je.History),await this.props.dispatcher.updateCompareForm(n.repository,{filterText:"",showBranchList:t}),e&&this.repositoryViewRef.current?.setFocusHistoryNeeded())}async showChanges(e){const t=this.state.selectedState;null!=t&&t.type===Xe.Repository&&(this.props.dispatcher.closeCurrentFoldout(),await this.props.dispatcher.changeRepositorySection(t.repository,Je.Changes),e&&this.repositoryViewRef.current?.setFocusChangesNeeded())}chooseRepository(){return this.state.currentFoldout&&this.state.currentFoldout.type===Qe.Repository?this.props.dispatcher.closeFoldout(Qe.Repository):this.props.dispatcher.showFoldout({type:Qe.Repository})}showBranches(){const e=this.state.selectedState;if(null!=e&&e.type===Xe.Repository)return this.state.currentFoldout&&this.state.currentFoldout.type===Qe.Branch?this.props.dispatcher.closeFoldout(Qe.Branch):this.props.dispatcher.showFoldout({type:Qe.Branch})}push(e){const t=this.state.selectedState;null!=t&&t.type===Xe.Repository&&(e&&e.forceWithLease?this.props.dispatcher.confirmOrForcePush(t.repository):this.props.dispatcher.push(t.repository))}async pull(){const e=this.state.selectedState;null!=e&&e.type===Xe.Repository&&this.props.dispatcher.pull(e.repository)}async fetch(){const e=this.state.selectedState;null!=e&&e.type===Xe.Repository&&this.props.dispatcher.fetch(e.repository,mn.UserInitiatedTask)}showStashedChanges(){const e=this.state.selectedState;null!=e&&e.type===Xe.Repository&&this.props.dispatcher.selectStashedFile(e.repository)}hideStashedChanges(){const e=this.state.selectedState;null!=e&&e.type===Xe.Repository&&this.props.dispatcher.hideStashedChanges(e.repository)}componentDidMount(){document.ondragover=e=>{null!=e.dataTransfer&&(this.isShowingModal?e.dataTransfer.dropEffect="none":e.dataTransfer.dropEffect="copy"),e.preventDefault()},document.ondrop=e=>{e.preventDefault()},document.body.ondrop=e=>{if(!this.isShowingModal){if(null!=e.dataTransfer){const t=e.dataTransfer.files;this.handleDragAndDrop(t)}e.preventDefault()}},fn()&&(window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp)),document.addEventListener("focus",this.onDocumentFocus,{capture:!0})}onDocumentFocus=e=>{this.props.dispatcher.appFocusedElementChanged()};onMacOSWindowKeyDown=e=>{};onWindowKeyDown=e=>{if(!e.defaultPrevented&&!this.isShowingModal){if(fn())if("Shift"===e.key&&e.altKey)this.props.dispatcher.setAccessKeyHighlightState(!1);else if("Alt"===e.key){if(e.shiftKey)return;this.state.currentFoldout&&this.state.currentFoldout.type===Qe.AppMenu&&this.state.appMenuState.length>1&&(this.props.dispatcher.setAppMenuState((e=>e.withReset())),this.props.dispatcher.closeFoldout(Qe.AppMenu)),this.props.dispatcher.setAccessKeyHighlightState(!0)}else if(!e.altKey||e.ctrlKey||e.metaKey)e.altKey||this.props.dispatcher.setAccessKeyHighlightState(!1);else if(this.state.appMenuState.length){const t=this.state.appMenuState[0].items,n=os(e.key,t);n&&is(n)&&("submenuItem"===n.type?(this.props.dispatcher.setAppMenuState((e=>e.withReset().withSelectedItem(n).withOpenedMenu(n,!0))),this.props.dispatcher.showFoldout({type:Qe.AppMenu,enableAccessKeyNavigation:!0})):this.props.dispatcher.executeMenuItem(n),e.preventDefault())}this.lastKeyPressed=e.key}};onWindowKeyUp=e=>{e.defaultPrevented||fn()&&"Alt"===e.key&&(this.props.dispatcher.setAccessKeyHighlightState(!1),"Alt"===this.lastKeyPressed&&(this.state.currentFoldout&&this.state.currentFoldout.type===Qe.AppMenu?(this.props.dispatcher.setAppMenuState((e=>e.withReset())),this.props.dispatcher.closeFoldout(Qe.AppMenu)):this.props.dispatcher.showFoldout({type:Qe.AppMenu,enableAccessKeyNavigation:!0})))};async handleDragAndDrop(e){const t=Array.from(e,m.webUtils.getPathForFile),{dispatcher:n}=this.props;if(t.length>1){const e=await n.addRepositories(t);e.length>0&&(n.recordAddExistingRepository(),await n.selectRepository(e[0]))}else if(1===t.length){const e=await vy(t[0]).then((e=>"regular"===e.kind?e.topLevelWorkingDirectory:t[0])).catch((e=>(log.error("Could not determine repository type",e),t[0]))),{repositories:r}=this.state,s=vr(r,e);s?await n.selectRepository(s):await this.showPopup({type:Sh.AddRepository,path:e})}}removeRepository=e=>{e&&(e instanceof cs||e.missing?this.props.dispatcher.removeRepository(e,!1):this.state.askForConfirmationOnRepositoryRemoval?this.props.dispatcher.showPopup({type:Sh.RemoveRepository,repository:e}):this.props.dispatcher.removeRepository(e,!1))};onConfirmRepoRemoval=async(e,t)=>{await this.props.dispatcher.removeRepository(e,t)};getRepository(){const e=this.state.selectedState;return null==e?null:e.repository}showRebaseDialog(){const e=this.getRepository();!e||e instanceof cs||this.props.dispatcher.showRebaseDialog(e)}showRepositorySettings(){const e=this.getRepository();!e||e instanceof cs||this.props.dispatcher.showPopup({type:Sh.RepositorySettings,repository:e})}openIssueCreationOnGitHub(){const e=this.getRepository();e instanceof Kr&&this.props.dispatcher.openIssueCreationPage(e)}viewRepositoryOnGitHub(){const e=this.getRepository();this.viewOnGitHub(e)}getCurrentRepositoryGitHubURL(){const e=this.getRepository();return!e||e instanceof cs||!e.gitHubRepository?null:e.gitHubRepository.htmlURL}openCurrentRepositoryInShell=()=>{const e=this.getRepository();e&&this.openInShell(e)};get externalEditorLabel(){return this.state.useCustomEditor?void 0:this.state.selectedExternalEditor??void 0}openCurrentRepositoryInExternalEditor(){const e=this.getRepository();e&&this.openInExternalEditor(e)}renderAppMenuBar(){if(!this.state.appMenuState.length)return null;if(this.state.showWelcomeFlow)return null;const e=this.state.currentFoldout,t=e&&e.type===Qe.AppMenu?e:null;return ke.createElement(BO,{appMenu:this.state.appMenuState,dispatcher:this.props.dispatcher,highlightAppMenuAccessKeys:this.state.highlightAccessKeys,foldoutState:t,onLostFocus:this.onMenuBarLostFocus})}onMenuBarLostFocus=()=>{this.props.dispatcher.closeFoldout(Qe.AppMenu),this.props.dispatcher.setAppMenuState((e=>e.withReset()))};renderTitlebar(){const e="full-screen"===this.state.windowState,t=this.state.currentFoldout&&this.state.currentFoldout.type===Qe.AppMenu;if(e&&!t)return null;const n=!this.state.showWelcomeFlow,r=this.state.showWelcomeFlow,s=(this.inNoRepositoriesViewState(),r?"light":"dark");return ke.createElement(Pu,{showAppIcon:n,titleBarStyle:s,windowState:this.state.windowState,windowZoomFactor:this.state.windowZoomFactor},this.renderAppMenuBar())}onPopupDismissed=e=>this.props.dispatcher.closePopupById(e);onContinueWithUntrustedCertificate=e=>{Q(e,"Could not securely connect to the server, because its certificate is not trusted. Attackers might be trying to steal your information.\n\nTo connect unsafely, which may put your data at risk, you can “Always trust” the certificate and try again.")};onUpdateAvailableDismissed=()=>this.props.dispatcher.setUpdateBannerVisibility(!1);allPopupContent(){const{allPopups:e}=this.state;return 0===e.length?null:ke.createElement(ke.Fragment,null,e.map((e=>{const t=this.state.currentPopup?.id===e.id;return ke.createElement(RM.Provider,{key:e.id,value:{isTopMost:t}},this.popupContent(e,t))})))}popupContent(e,t){if(void 0===e.id)return QT("PopupNoId",new Error(`Attempted to open a popup of type '${e.type}' without an Id`)),null;const n=this.getOnPopupDismissedFn(e.id);switch(e.type){case Sh.RenameBranch:return ke.createElement(nB,{key:"rename-branch",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,onDismissed:n});case Sh.DeleteBranch:return ke.createElement(rB,{key:"delete-branch",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,existsOnRemote:e.existsOnRemote,onDismissed:n,onDeleted:this.onBranchDeleted});case Sh.DeleteRemoteBranch:return ke.createElement(sB,{key:"delete-remote-branch",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,onDismissed:n,onDeleted:this.onBranchDeleted});case Sh.ConfirmDiscardChanges:const r=void 0===e.showDiscardChangesSetting||e.showDiscardChangesSetting,s=void 0!==e.discardingAllChanges&&e.discardingAllChanges;return ke.createElement(oB,{key:"discard-changes",repository:e.repository,dispatcher:this.props.dispatcher,files:e.files,confirmDiscardChanges:this.state.askForConfirmationOnDiscardChanges,showDiscardChangesSetting:r,discardingAllChanges:s,onDismissed:n,onConfirmDiscardChangesChanged:this.onConfirmDiscardChangesChanged});case Sh.ConfirmDiscardSelection:return ke.createElement(FU,{key:"discard-selection",repository:e.repository,dispatcher:this.props.dispatcher,file:e.file,diff:e.diff,selection:e.selection,onDismissed:n});case Sh.Preferences:let i=this.getRepository();return i instanceof cs&&(i=null),ke.createElement(QB,{key:"preferences",initialSelectedTab:e.initialSelectedTab,dispatcher:this.props.dispatcher,accounts:this.state.accounts,confirmRepositoryRemoval:this.state.askForConfirmationOnRepositoryRemoval,confirmDiscardChanges:this.state.askForConfirmationOnDiscardChanges,confirmDiscardChangesPermanently:this.state.askForConfirmationOnDiscardChangesPermanently,confirmDiscardStash:this.state.askForConfirmationOnDiscardStash,confirmCheckoutCommit:this.state.askForConfirmationOnCheckoutCommit,confirmForcePush:this.state.askForConfirmationOnForcePush,confirmUndoCommit:this.state.askForConfirmationOnUndoCommit,askForConfirmationOnCommitFilteredChanges:this.state.askForConfirmationOnCommitFilteredChanges,uncommittedChangesStrategy:this.state.uncommittedChangesStrategy,selectedExternalEditor:this.state.selectedExternalEditor,useWindowsOpenSSH:this.state.useWindowsOpenSSH,showCommitLengthWarning:this.state.showCommitLengthWarning,notificationsEnabled:this.state.notificationsEnabled,optOutOfUsageTracking:this.state.optOutOfUsageTracking,useExternalCredentialHelper:this.state.useExternalCredentialHelper,repository:i,onDismissed:n,selectedShell:this.state.selectedShell,selectedTheme:this.state.selectedTheme,selectedTabSize:this.state.selectedTabSize,useCustomEditor:this.state.useCustomEditor,customEditor:this.state.customEditor,useCustomShell:this.state.useCustomShell,customShell:this.state.customShell,repositoryIndicatorsEnabled:this.state.repositoryIndicatorsEnabled,onEditGlobalGitConfig:this.editGlobalGitConfig,underlineLinks:this.state.underlineLinks,showDiffCheckMarks:this.state.showDiffCheckMarks});case Sh.RepositorySettings:{const t=e.repository,r=this.props.repositoryStateManager.get(t),s=tf(this.state.accounts,t);return ke.createElement(sP,{key:`repository-settings-${t.hash}`,initialSelectedTab:e.initialSelectedTab,remote:r.remote,dispatcher:this.props.dispatcher,repository:t,repositoryAccount:s,onDismissed:n})}case Sh.SignIn:return ke.createElement(WH,{key:"sign-in",signInState:this.state.signInState,dispatcher:this.props.dispatcher,onDismissed:n,isCredentialHelperSignIn:e.isCredentialHelperSignIn,credentialHelperUrl:e.credentialHelperUrl});case Sh.AddRepository:return ke.createElement(lH,{key:"add-existing-repository",onDismissed:n,dispatcher:this.props.dispatcher,path:e.path});case Sh.CreateRepository:return ke.createElement(bH,{key:"create-repository",onDismissed:n,dispatcher:this.props.dispatcher,initialPath:e.path,isTopMost:t});case Sh.CloneRepository:return ke.createElement(NH,{key:"clone-repository",accounts:this.state.accounts,initialURL:e.initialURL,onDismissed:n,dispatcher:this.props.dispatcher,selectedTab:this.state.selectedCloneRepositoryTab,onTabSelected:this.onCloneRepositoriesTabSelected,apiRepositories:this.state.apiRepositories,onRefreshRepositories:this.onRefreshRepositories,isTopMost:t});case Sh.CreateBranch:{const t=this.props.repositoryStateManager.get(e.repository).branchesState,r=e.repository;if(t.tip.kind===zr.Unknown)return n(),null;let s=null,i=null;return Yr(r)&&(s=es(r),i=t.upstreamDefaultBranch),ke.createElement(HH,{key:"create-branch",tip:t.tip,defaultBranch:t.defaultBranch,upstreamDefaultBranch:i,allBranches:t.allBranches,repository:r,targetCommit:e.targetCommit,upstreamGitHubRepository:s,accounts:this.state.accounts,cachedRepoRulesets:this.state.cachedRepoRulesets,onBranchCreatedFromCommit:this.onBranchCreatedFromCommit,onDismissed:n,dispatcher:this.props.dispatcher,initialName:e.initialName||""})}case Sh.InstallGit:return ke.createElement(VH,{key:"install-git",onDismissed:n,onOpenShell:this.onOpenShellIgnoreWarning,path:e.path});case Sh.About:const o="3.5.3";return ke.createElement(jH,{key:"about",onDismissed:n,applicationName:"GitHub Desktop",applicationVersion:o,applicationArchitecture:process.arch,onCheckForNonStaggeredUpdates:this.onCheckForNonStaggeredUpdates,onShowAcknowledgements:this.showAcknowledgements,onShowTermsAndConditions:this.showTermsAndConditions,updateState:this.state.updateState,onQuitAndInstall:this.onQuitAndInstall});case Sh.PublishRepository:return ke.createElement(QH,{key:"publish",dispatcher:this.props.dispatcher,repository:e.repository,accounts:this.state.accounts,onDismissed:n});case Sh.UntrustedCertificate:return ke.createElement(tU,{key:"untrusted-certificate",certificate:e.certificate,url:e.url,onDismissed:n,onContinue:this.onContinueWithUntrustedCertificate});case Sh.Acknowledgements:return ke.createElement(JH,{key:"acknowledgements",onDismissed:n,applicationVersion:"3.5.3"});case Sh.RemoveRepository:return ke.createElement(rU,{key:"confirm-remove-repository",repository:e.repository,onConfirmation:this.onConfirmRepoRemoval,onDismissed:n});case Sh.TermsAndConditions:return ke.createElement(iU,{key:"terms-and-conditions",onDismissed:n});case Sh.PushBranchCommits:return ke.createElement(Z_,{key:"push-branch-commits",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,unPushedCommits:e.unPushedCommits,onConfirm:this.openCreatePullRequestInBrowser,onDismissed:n});case Sh.CLIInstalled:return ke.createElement(oU,{key:"cli-installed",onDismissed:n});case Sh.GenericGitAuthentication:const a=()=>{e.onDismiss?.(),n()};return ke.createElement(lU,{key:"generic-git-authentication",remoteUrl:e.remoteUrl,username:e.username,onDismiss:a,onSave:e.onSubmit});case Sh.ExternalEditorFailed:const l=e.openPreferences,c=e.suggestDefaultEditor;return ke.createElement(qH,{key:"editor-error",message:e.message,onDismissed:n,showPreferencesDialog:this.onShowIntegrationsPreferences,viewPreferences:l,suggestDefaultEditor:c});case Sh.OpenShellFailed:return ke.createElement(cU,{key:"shell-error",message:e.message,onDismissed:n,showPreferencesDialog:this.onShowIntegrationsPreferences});case Sh.InitializeLFS:return ke.createElement(hU,{key:"initialize-lfs",repositories:e.repositories,onDismissed:n,onInitialize:this.initializeLFS});case Sh.LFSAttributeMismatch:return ke.createElement(pU,{key:"lsf-attribute-mismatch",onDismissed:n,onUpdateExistingFilters:this.updateExistingLFSFilters,onEditGlobalGitConfig:this.editGlobalGitConfig});case Sh.UpstreamAlreadyExists:return ke.createElement(dU,{key:"upstream-already-exists",repository:e.repository,existingRemote:e.existingRemote,onDismissed:n,onUpdate:this.onUpdateExistingUpstreamRemote,onIgnore:this.onIgnoreExistingUpstreamRemote});case Sh.ReleaseNotes:return ke.createElement(gU,{key:"release-notes",emoji:this.state.emoji,newReleases:e.newReleases,onDismissed:n,underlineLinks:this.state.underlineLinks});case Sh.DeletePullRequest:return ke.createElement(yU,{key:"delete-pull-request",dispatcher:this.props.dispatcher,repository:e.repository,branch:e.branch,onDismissed:n,pullRequest:e.pullRequest});case Sh.OversizedFiles:return ke.createElement(CU,{key:"oversized-files",oversizedFiles:e.oversizedFiles,onDismissed:n,dispatcher:this.props.dispatcher,context:e.context,repository:e.repository});case Sh.CommitConflictsWarning:return ke.createElement(wU,{key:"commit-conflicts-warning",dispatcher:this.props.dispatcher,files:e.files,repository:e.repository,context:e.context,onDismissed:n});case Sh.PushNeedsPull:return ke.createElement(vU,{key:"push-needs-pull",dispatcher:this.props.dispatcher,repository:e.repository,onDismissed:n});case Sh.ConfirmForcePush:{const{askForConfirmationOnForcePush:t}=this.state;return ke.createElement(vZ,{key:"confirm-force-push",dispatcher:this.props.dispatcher,repository:e.repository,upstreamBranch:e.upstreamBranch,askForConfirmationOnForcePush:t,onDismissed:n})}case Sh.StashAndSwitchBranch:{const{repository:t,branchToCheckout:r}=e,{branchesState:s,changesState:i}=this.props.repositoryStateManager.get(t),{tip:o}=s;if(o.kind!==zr.Valid)return null;const a=o.branch,l=null!==i.stashEntry;return ke.createElement(EU,{key:"stash-and-switch-branch",dispatcher:this.props.dispatcher,repository:e.repository,currentBranch:a,branchToCheckout:r,hasAssociatedStash:l,onDismissed:n})}case Sh.ConfirmOverwriteStash:{const{repository:t,branchToCheckout:r}=e;return ke.createElement(kU,{key:"overwrite-stash",dispatcher:this.props.dispatcher,repository:t,branchToCheckout:r,onDismissed:n})}case Sh.ConfirmDiscardStash:{const{repository:t,stash:r}=e;return ke.createElement(RU,{key:"confirm-discard-stash-dialog",dispatcher:this.props.dispatcher,askForConfirmationOnDiscardStash:this.state.askForConfirmationOnDiscardStash,repository:t,stash:r,onDismissed:n})}case Sh.ConfirmCheckoutCommit:{const{repository:t,commit:r}=e;return ke.createElement(AU,{key:"confirm-checkout-commit-dialog",dispatcher:this.props.dispatcher,askForConfirmationOnCheckoutCommit:this.state.askForConfirmationOnDiscardStash,repository:t,commit:r,onDismissed:n})}case Sh.CreateTutorialRepository:return ke.createElement(TU,{key:"create-tutorial-repository-dialog",account:e.account,progress:e.progress,onDismissed:n,onCreateTutorialRepository:this.onCreateTutorialRepository});case Sh.ConfirmExitTutorial:return ke.createElement(zL,{key:"confirm-exit-tutorial",onDismissed:n,onContinue:this.onExitTutorialToHomeScreen});case Sh.PushRejectedDueToMissingWorkflowScope:return ke.createElement(xU,{onDismissed:n,rejectedPath:e.rejectedPath,dispatcher:this.props.dispatcher,repository:e.repository});case Sh.SAMLReauthRequired:return ke.createElement(DU,{onDismissed:n,organizationName:e.organizationName,endpoint:e.endpoint,retryAction:e.retryAction,dispatcher:this.props.dispatcher});case Sh.CreateFork:return ke.createElement(MU,{onDismissed:n,dispatcher:this.props.dispatcher,repository:e.repository,account:e.account});case Sh.CreateTag:return ke.createElement(PU,{key:"create-tag",repository:e.repository,onDismissed:n,dispatcher:this.props.dispatcher,targetCommitSha:e.targetCommitSha,initialName:e.initialName,localTags:e.localTags});case Sh.DeleteTag:return ke.createElement(IU,{key:"delete-tag",repository:e.repository,onDismissed:n,dispatcher:this.props.dispatcher,tagName:e.tagName});case Sh.ChooseForkSettings:return ke.createElement(_U,{repository:e.repository,onDismissed:n,dispatcher:this.props.dispatcher});case Sh.LocalChangesOverwritten:const u=this.state.selectedState,h=null!==u&&u.type===Xe.Repository?u.state.changesState.stashEntry:null;return ke.createElement(NU,{repository:e.repository,dispatcher:this.props.dispatcher,hasExistingStash:null!==h,retryAction:e.retryAction,onDismissed:n,files:e.files});case Sh.MoveToApplicationsFolder:return ke.createElement(OU,{dispatcher:this.props.dispatcher,onDismissed:n});case Sh.ChangeRepositoryAlias:return ke.createElement(LU,{dispatcher:this.props.dispatcher,repository:e.repository,onDismissed:n});case Sh.ThankYou:return ke.createElement(UU,{key:"thank-you",emoji:this.state.emoji,userContributions:e.userContributions,friendlyName:e.friendlyName,latestVersion:e.latestVersion,onDismissed:n});case Sh.CommitMessage:const p=this.props.repositoryStateManager.get(e.repository),{tip:d}=p.branchesState,m=d.kind===zr.Valid?d.branch.name:null,f=null===e.repository.gitHubRepository||Vr(e.repository.gitHubRepository),g=GD(e.repository,this.props.dispatcher,this.state.emoji,this.props.issuesStore,this.props.gitHubUserStore,this.state.accounts),y=tf(this.state.accounts,e.repository);return ke.createElement($U,{key:"commit-message",autocompletionProviders:g,branch:m,coAuthors:e.coAuthors,commitAuthor:p.commitAuthor,commitMessage:e.commitMessage,commitSpellcheckEnabled:this.state.commitSpellcheckEnabled,showCommitLengthWarning:this.state.showCommitLengthWarning,dialogButtonText:e.dialogButtonText,dialogTitle:e.dialogTitle,dispatcher:this.props.dispatcher,prepopulateCommitSummary:e.prepopulateCommitSummary,repository:e.repository,showBranchProtected:p.changesState.currentBranchProtected,repoRulesInfo:p.changesState.currentRepoRulesInfo,aheadBehind:p.aheadBehind,showCoAuthoredBy:e.showCoAuthoredBy,showNoWriteAccess:!f,onDismissed:n,onSubmitCommitMessage:e.onSubmitCommitMessage,repositoryAccount:y,accounts:this.state.accounts});case Sh.MultiCommitOperation:{const{selectedState:t,emoji:n}=this.state;if(null===t||t.type!==Xe.Repository)return null;const{changesState:r,multiCommitOperationState:s}=t.state,{workingDirectory:i,conflictState:o}=r;return null===s?(log.warn("[App] invalid state encountered - multi commit flow should not be active when step is null"),null):ke.createElement(fZ,{key:"multi-commit-operation",repository:e.repository,dispatcher:this.props.dispatcher,state:s,conflictState:o,emoji:n,workingDirectory:i,askForConfirmationOnForcePush:this.state.askForConfirmationOnForcePush,accounts:this.state.accounts,cachedRepoRulesets:this.state.cachedRepoRulesets,openFileInExternalEditor:this.openFileInExternalEditor,resolvedExternalEditor:this.state.resolvedExternalEditor,openRepositoryInShell:this.openCurrentRepositoryInShell})}case Sh.WarnLocalChangesBeforeUndo:{const{repository:t,commit:r,isWorkingDirectoryClean:s}=e;return ke.createElement(gZ,{key:"warn-local-changes-before-undo",dispatcher:this.props.dispatcher,repository:t,commit:r,isWorkingDirectoryClean:s,confirmUndoCommit:this.state.askForConfirmationOnUndoCommit,onDismissed:n})}case Sh.WarningBeforeReset:{const{repository:t,commit:r}=e;return ke.createElement(yZ,{key:"warning-before-reset",dispatcher:this.props.dispatcher,repository:t,commit:r,onDismissed:n})}case Sh.InvalidatedToken:return ke.createElement(wZ,{key:"invalidated-token",dispatcher:this.props.dispatcher,account:e.account,onDismissed:n});case Sh.AddSSHHost:return ke.createElement(bZ,{key:"add-ssh-host",host:e.host,ip:e.ip,keyType:e.keyType,fingerprint:e.fingerprint,onSubmit:e.onSubmit,onDismissed:n});case Sh.SSHKeyPassphrase:return ke.createElement(CZ,{key:"ssh-key-passphrase",keyPath:e.keyPath,onSubmit:e.onSubmit,onDismissed:n});case Sh.SSHUserPassword:return ke.createElement(DZ,{key:"ssh-user-password",username:e.username,onSubmit:e.onSubmit,onDismissed:n});case Sh.PullRequestChecksFailed:return ke.createElement(EZ,{key:"pull-request-checks-failed",dispatcher:this.props.dispatcher,shouldChangeRepository:e.shouldChangeRepository,repository:e.repository,pullRequest:e.pullRequest,checks:e.checks,accounts:this.state.accounts,onSubmit:n,onDismissed:n});case Sh.CICheckRunRerun:return ke.createElement(RZ,{key:"rerun-check-runs",checkRuns:e.checkRuns,dispatcher:this.props.dispatcher,repository:e.repository,prRef:e.prRef,onDismissed:n,failedOnly:e.failedOnly});case Sh.WarnForcePush:{const{askForConfirmationOnForcePush:t}=this.state;return ke.createElement(nZ,{key:"warn-force-push",dispatcher:this.props.dispatcher,operation:e.operation,askForConfirmationOnForcePush:t,onBegin:this.getWarnForcePushDialogOnBegin(e.onBegin,n),onDismissed:n})}case Sh.DiscardChangesRetry:return ke.createElement(AZ,{key:"discard-changes-retry",dispatcher:this.props.dispatcher,retryAction:e.retryAction,onDismissed:n,onConfirmDiscardChangesChanged:this.onConfirmDiscardChangesPermanentlyChanged});case Sh.PullRequestReview:return ke.createElement(xZ,{key:"pull-request-review",dispatcher:this.props.dispatcher,shouldCheckoutBranch:e.shouldCheckoutBranch,shouldChangeRepository:e.shouldChangeRepository,repository:e.repository,pullRequest:e.pullRequest,review:e.review,emoji:this.state.emoji,onSubmit:n,onDismissed:n,underlineLinks:this.state.underlineLinks,accounts:this.state.accounts});case Sh.UnreachableCommits:{const{selectedState:t,emoji:r}=this.state;if(null==t||t.type!==Xe.Repository)return null;const{commitLookup:s,commitSelection:{shas:i,shasInDiff:o}}=t.state;return ke.createElement(aL,{selectedShas:i,shasInDiff:o,commitLookup:s,selectedTab:e.selectedTab,emoji:r,onDismissed:n,accounts:this.state.accounts})}case Sh.StartPullRequest:{const t=this.getPullRequestState();if(null===t)return QT("FailedToStartPullRequest",new Error("Failed to start pull request because pull request state was null")),null;const{pullRequestFilesListWidth:r,hideWhitespaceInPullRequestDiff:s}=this.state,{prBaseBranches:i,currentBranch:o,defaultBranch:a,imageDiffType:l,externalEditorLabel:c,nonLocalCommitSHA:u,prRecentBaseBranches:h,repository:p,showSideBySideDiff:d,currentBranchHasPullRequest:m}=e;return ke.createElement(OZ,{key:"open-pull-request",prBaseBranches:i,currentBranch:o,defaultBranch:a,dispatcher:this.props.dispatcher,fileListWidth:r,hideWhitespaceInDiff:s,imageDiffType:l,nonLocalCommitSHA:u,pullRequestState:t,prRecentBaseBranches:h,repository:p,externalEditorLabel:c,showSideBySideDiff:d,currentBranchHasPullRequest:m,onDismissed:n,onOpenInExternalEditor:this.onOpenInExternalEditor})}case Sh.Error:return ke.createElement(JB,{error:e.error,onDismissed:n,onShowPopup:this.showPopup,onRetryAction:this.onRetryAction});case Sh.InstallingUpdate:return ke.createElement(LZ,{key:"installing-update",dispatcher:this.props.dispatcher,onDismissed:n});case Sh.TestNotifications:return ke.createElement($Z,{key:"test-notifications",dispatcher:this.props.dispatcher,notificationsDebugStore:this.props.notificationsDebugStore,repository:e.repository,onDismissed:n});case Sh.PullRequestComment:return ke.createElement(WZ,{key:"pull-request-comment",dispatcher:this.props.dispatcher,shouldCheckoutBranch:e.shouldCheckoutBranch,shouldChangeRepository:e.shouldChangeRepository,repository:e.repository,pullRequest:e.pullRequest,comment:e.comment,emoji:this.state.emoji,onSubmit:n,onDismissed:n,underlineLinks:this.state.underlineLinks,accounts:this.state.accounts});case Sh.UnknownAuthors:return ke.createElement(VZ,{key:"unknown-authors",authors:e.authors,onCommit:e.onCommit,onDismissed:n});case Sh.TestIcons:return ke.createElement(qZ,{key:"octicons-preview",onDismissed:n});case Sh.ConfirmCommitFilteredChanges:return ke.createElement(GZ,{onCommitAnyway:e.onCommitAnyway,onDismissed:n,showFilesToBeCommitted:e.showFilesToBeCommitted,setConfirmCommitFilteredChanges:this.setConfirmCommitFilteredChanges});case Sh.TestAbout:return ke.createElement(zZ,{key:"about",onDismissed:n,onShowAcknowledgements:this.showAcknowledgements,onShowTermsAndConditions:this.showTermsAndConditions});case Sh.PushProtectionError:return ke.createElement(KZ,{key:"push-protection-error",secrets:e.secrets,onDelegatedBypassLinkClick:this.onSecretDelegatedBypassLinkClick,onRemediationInstructionsLinkClick:this.onSecretRemediationInstructionsLinkClick,bypassPushProtection:this.openBypassPushProtection,onDismissed:n});case Sh.BypassPushProtection:return ke.createElement(JZ,{key:"bypass-push-protection",secret:e.secret,bypassPushProtection:e.bypassPushProtection,onDismissed:this.onDismissBypassPushProtection(e.id,e.onDismissed)});case Sh.GenerateCommitMessageOverrideWarning:return ke.createElement(YZ,{key:"generate-commit-message-override-warning",dispatcher:this.props.dispatcher,repository:e.repository,filesSelected:e.filesSelected,onDismissed:n});case Sh.GenerateCommitMessageDisclaimer:return ke.createElement(XZ,{key:"generate-commit-message-disclaimer",dispatcher:this.props.dispatcher,repository:e.repository,filesSelected:e.filesSelected,onDismissed:n});default:return at(0,`Unknown popup type: ${e}`)}}onSecretDelegatedBypassLinkClick=()=>{this.props.dispatcher.incrementMetric("secretsDetectedOnPushDelegatedBypassLinkClickedCount")};onSecretRemediationInstructionsLinkClick=()=>{this.props.dispatcher.incrementMetric("secretRemediationInstructionsLinkClickedCount")};onDismissBypassPushProtection=(e,t)=>()=>{t(),this.onPopupDismissed(e)};setConfirmCommitFilteredChanges=e=>{this.props.dispatcher.setConfirmCommitFilteredChanges(e)};getPullRequestState(){const{selectedState:e}=this.state;return null==e||e.type!==Xe.Repository?null:e.state.pullRequestState}openBypassPushProtection=e=>new Promise((t=>{this.props.dispatcher.showPopup({type:Sh.BypassPushProtection,secret:e,bypassPushProtection:(e,n)=>{this.bypassPushProtection(e,n).then((e=>{this.recordSecretBypassStats(n),t(e)})).catch((e=>{t(null),this.props.dispatcher.postError(e)})).finally((()=>{this.props.dispatcher.closePopup(Sh.BypassPushProtection)}))},onDismissed:()=>{t(null)}})}));recordSecretBypassStats=e=>{switch(this.props.dispatcher.incrementMetric("secretsDetectedOnPushBypassedCount"),e){case QZ.FalsePositive:this.props.dispatcher.incrementMetric("secretsDetectedOnPushBypassedAsFalsePositiveCount");break;case QZ.UsedInTests:this.props.dispatcher.incrementMetric("secretsDetectedOnPushBypassedAsUsedInTestCount");break;case QZ.WillFixLater:this.props.dispatcher.incrementMetric("secretsDetectedOnPushBypassedAsWillFixLaterCount");break;default:return at(0,`Unknown Bypass reason: ${e}`)}};bypassPushProtection=(e,t)=>this.props.dispatcher.createPushProtectionBypass(t,e.id,e.bypassURL);getWarnForcePushDialogOnBegin(e,t){return()=>{e(),t()}}onExitTutorialToHomeScreen=()=>{const e=this.getSelectedTutorialRepository();return!!e&&(this.props.dispatcher.pauseTutorial(e),!0)};onCreateTutorialRepository=e=>{this.props.dispatcher.createTutorialRepository(e)};onUpdateExistingUpstreamRemote=e=>{this.props.dispatcher.updateExistingUpstreamRemote(e)};onIgnoreExistingUpstreamRemote=e=>{this.props.dispatcher.ignoreExistingUpstreamRemote(e)};updateExistingLFSFilters=()=>{this.props.dispatcher.installGlobalLFSFilters(!0)};editGlobalGitConfig=()=>this.props.dispatcher.editGlobalGitConfig();initializeLFS=e=>{this.props.dispatcher.installLFSHooks(e)};onCloneRepositoriesTabSelected=e=>{this.props.dispatcher.changeCloneRepositoriesTab(e)};onRefreshRepositories=e=>{this.props.dispatcher.refreshApiRepositories(e)};onShowIntegrationsPreferences=()=>{this.props.dispatcher.showPopup({type:Sh.Preferences,initialSelectedTab:Gr.Integrations})};onBranchCreatedFromCommit=()=>{const e=this.repositoryViewRef.current;null!==e&&e.scrollCompareListToTop()};onOpenShellIgnoreWarning=e=>{this.props.dispatcher.openShell(e,!0)};onCheckForNonStaggeredUpdates=()=>this.checkForUpdates(!1,!0);showAcknowledgements=()=>{this.props.dispatcher.showPopup({type:Sh.Acknowledgements})};showTermsAndConditions=()=>{this.props.dispatcher.showPopup({type:Sh.TermsAndConditions})};onQuitAndInstall=()=>dn.quitAndInstallUpdate();renderPopups(){const e=this.allPopupContent();return ke.createElement(Be,null,e&&ke.createElement(Ye,{classNames:"modal",timeout:e$},e))}renderDragElement(){return ke.createElement("div",{id:"dragElement"},this.renderCurrentDragElement())}renderCurrentDragElement(){const{currentDragElement:e,emoji:t}=this.state;if(null===e)return null;const{gitHubRepository:n,commit:r,selectedCommits:s}=e;return e.type===_p.Commit?ke.createElement(nL,{gitHubRepository:n,commit:r,selectedCommits:s,emoji:t,accounts:this.state.accounts}):at(e.type,`Unknown drag element type: ${e}`)}renderZoomInfo(){return ke.createElement(Iu,{windowZoomFactor:this.state.windowZoomFactor})}renderFullScreenInfo(){return ke.createElement(Nu,{windowState:this.state.windowState})}onConfirmDiscardChangesChanged=e=>{this.props.dispatcher.setConfirmDiscardChangesSetting(e)};onConfirmDiscardChangesPermanentlyChanged=e=>{this.props.dispatcher.setConfirmDiscardChangesPermanentlySetting(e)};onRetryAction=e=>{this.props.dispatcher.performRetry(e)};showPopup=e=>{this.props.dispatcher.showPopup(e)};setBanner=e=>this.props.dispatcher.setBanner(e);getDesktopAppContentsClassNames=()=>{const{currentDragElement:e}=this.state,t=null!==e&&e.type===_p.Commit;return hs()({"commit-being-dragged":t})};renderApp(){return ke.createElement("div",{id:"desktop-app-contents",className:this.getDesktopAppContentsClassNames()},this.renderToolbar(),this.renderBanner(),this.renderRepository(),this.renderPopups(),this.renderDragElement())}renderRepositoryList=()=>{const e=this.state.selectedState?this.state.selectedState.repository:null,{useCustomShell:t,selectedShell:n}=this.state,r=this.state.repositoryFilterText;return ke.createElement(mx,{filterText:r,onFilterTextChanged:this.onRepositoryFilterTextChanged,selectedRepository:e,onSelectionChanged:this.onSelectionChanged,repositories:this.state.repositories,recentRepositories:this.state.recentRepositories,localRepositoryStateLookup:this.state.localRepositoryStateLookup,askForConfirmationOnRemoveRepository:this.state.askForConfirmationOnRepositoryRemoval,onRemoveRepository:this.removeRepository,onViewOnGitHub:this.viewOnGitHub,onOpenInShell:this.openInShell,onShowRepository:this.showRepository,onOpenInExternalEditor:this.openInExternalEditor,externalEditorLabel:this.externalEditorLabel,shellLabel:t?void 0:n,dispatcher:this.props.dispatcher})};viewOnGitHub=e=>{if(!(e instanceof Kr))return;const t=Jr(e);t&&this.props.dispatcher.openInBrowser(t)};openInShell=e=>{e instanceof Kr&&this.props.dispatcher.openShell(e.path)};openFileInExternalEditor=e=>{this.props.dispatcher.openInExternalEditor(e)};openInExternalEditor=e=>{e instanceof Kr&&this.props.dispatcher.openInExternalEditor(e.path)};onOpenInExternalEditor=e=>{const n=this.state.selectedState?.repository;if(void 0===n)return;const r=t.join(n.path,e);this.props.dispatcher.openInExternalEditor(r)};showRepository=e=>{e instanceof Kr&&ut.showFolderContents(e.path)};onRepositoryDropdownStateChanged=e=>{"open"===e?this.props.dispatcher.showFoldout({type:Qe.Repository}):this.props.dispatcher.closeFoldout(Qe.Repository)};onExitTutorial=()=>{1===this.state.repositories.length&&Mb(this.state.currentOnboardingTutorialStep)?this.props.dispatcher.showPopup({type:Sh.ConfirmExitTutorial}):this.onRepositoryDropdownStateChanged("open")};renderRepositoryToolbarButton(){const e=this.state.selectedState,t=e?e.repository:null;let n,r;if(t){const e=t instanceof Kr?t.alias:null;n=Ou(t),r=e??t.name}else this.state.repositories.length>0?(n=Xl,r="Select a repository"):(n=Xl,r="No repositories");const s=this.state.currentFoldout&&this.state.currentFoldout.type===Qe.Repository,i=s?"open":"closed",o=t&&!s?t.path:void 0,a=Oy(this.state.sidebarWidth),l={position:"absolute",marginLeft:0,width:a,minWidth:a,height:"100%",top:0},c=null===this.state.currentPopup;return ke.createElement(I_,{icon:n,title:r,description:"当前存储库",tooltip:o,foldoutStyle:l,onContextMenu:this.onRepositoryToolbarButtonContextMenu,onDropdownStateChanged:this.onRepositoryDropdownStateChanged,dropdownContentRenderer:this.renderRepositoryList,dropdownState:i,enableFocusTrap:c})}onRepositoryToolbarButtonContextMenu=()=>{const e=this.state.selectedState?.repository;void 0!==e&&Ch(Ph({onRemoveRepository:this.removeRepository,onShowRepository:this.showRepository,onOpenInShell:this.openInShell,onOpenInExternalEditor:this.openInExternalEditor,askForConfirmationOnRemoveRepository:this.state.askForConfirmationOnRepositoryRemoval,externalEditorLabel:this.externalEditorLabel,onChangeRepositoryAlias:e=>{this.props.dispatcher.showPopup({type:Sh.ChangeRepositoryAlias,repository:e})},onRemoveRepositoryAlias:e=>{this.props.dispatcher.changeRepositoryAlias(e,null)},onViewOnGitHub:this.viewOnGitHub,repository:e,shellLabel:this.state.useCustomShell?void 0:this.state.selectedShell}))};renderPushPullToolbarButton(){const e=this.state.selectedState;if(!e||e.type!==Xe.Repository)return null;const t=e.state,n=t.revertProgress;if(n)return ke.createElement(NO,{progress:n,width:this.state.pushPullButtonWidth,dispatcher:this.props.dispatcher});let r=t.remote?t.remote.name:null;const s=t.pushPullFetchProgress,{conflictState:i}=t.changesState,o=null!==i&&"rebase"===i.kind,{aheadBehind:a,branchesState:l}=t,{pullWithRebase:c,tip:u}=l;u.kind===zr.Valid&&null!==u.branch.upstreamRemoteName&&(r=u.branch.upstreamRemoteName,u.branch.upstreamWithoutRemote!==u.branch.name&&(r=u.branch.upstream));const h=this.state.currentFoldout,p=null!==h&&h.type===Qe.PushPull,d=Uy(l,a),m=null===this.state.currentPopup;return ke.createElement(H_,{dispatcher:this.props.dispatcher,repository:e.repository,aheadBehind:t.aheadBehind,numTagsToPush:null!==t.tagsToPush?t.tagsToPush.length:0,remoteName:r,lastFetched:t.lastFetched,networkActionInProgress:t.isPushPullFetchInProgress,progress:s,tipState:u.kind,pullWithRebase:c,rebaseInProgress:o,forcePushBranchState:d,shouldNudge:this.state.currentOnboardingTutorialStep===Db.PushBranch,isDropdownOpen:p,askForConfirmationOnForcePush:this.state.askForConfirmationOnForcePush,onDropdownStateChanged:this.onPushPullDropdownStateChanged,enableFocusTrap:m,pushPullButtonWidth:this.state.pushPullButtonWidth})}showCreateBranch=()=>{const e=this.state.selectedState;if(!e||e.type!==Xe.Repository)return;if(e.state.branchesState.tip.kind===zr.Unknown)return;const t=e.repository;return this.props.dispatcher.showPopup({type:Sh.CreateBranch,repository:t})};openPullRequest=()=>{const e=this.state.selectedState;if(null==e||e.type!==Xe.Repository)return;const t=e.state.branchesState.currentPullRequest,n=this.props.dispatcher;null==t?(n.createPullRequest(e.repository),n.incrementMetric("createPullRequestCount")):n.showPullRequest(e.repository)};startPullRequest=()=>{const e=this.state.selectedState;null!=e&&e.type===Xe.Repository&&this.props.dispatcher.startPullRequest(e.repository)};openCreatePullRequestInBrowser=(e,t)=>{this.props.dispatcher.openCreatePullRequestInBrowser(e,t)};onPushPullDropdownStateChanged=e=>{"open"===e?this.props.dispatcher.showFoldout({type:Qe.PushPull}):this.props.dispatcher.closeFoldout(Qe.PushPull)};onBranchDropdownStateChanged=e=>{"open"===e?this.props.dispatcher.showFoldout({type:Qe.Branch}):this.props.dispatcher.closeFoldout(Qe.Branch)};renderBranchToolbarButton(){const e=this.state.selectedState;if(null==e||e.type!==Xe.Repository)return null;const t=this.state.currentFoldout,n=null!==t&&t.type===Qe.Branch,r=e.repository,{branchesState:s}=e.state,i=null===this.state.currentPopup;return ke.createElement(_O,{dispatcher:this.props.dispatcher,isOpen:n,branchDropdownWidth:this.state.branchDropdownWidth,onDropDownStateChanged:this.onBranchDropdownStateChanged,repository:r,repositoryState:e.state,selectedTab:this.state.selectedBranchesTab,pullRequests:s.openPullRequests,currentPullRequest:s.currentPullRequest,isLoadingPullRequests:s.isLoadingPullRequests,shouldNudge:this.state.currentOnboardingTutorialStep===Db.CreateBranch,showCIStatusPopover:this.state.showCIStatusPopover,emoji:this.state.emoji,enableFocusTrap:i,underlineLinks:this.state.underlineLinks})}renderBanner(){if(this.inNoRepositoriesViewState())return null;let e=null;return null!==this.state.currentBanner?e=function(e,t,n){switch(e.type){case kb.SuccessfulMerge:return ke.createElement(xB,{ourBranch:e.ourBranch,theirBranch:e.theirBranch,onDismissed:n,key:"successful-merge"});case kb.MergeConflictsFound:return ke.createElement(AB,{dispatcher:t,ourBranch:e.ourBranch,popup:e.popup,onDismissed:n,key:"merge-conflicts"});case kb.SuccessfulRebase:return ke.createElement(MB,{targetBranch:e.targetBranch,baseBranch:e.baseBranch,onDismissed:n,key:"successful-rebase"});case kb.RebaseConflictsFound:return ke.createElement(DB,{dispatcher:t,targetBranch:e.targetBranch,onOpenDialog:e.onOpenDialog,onDismissed:n,key:"merge-conflicts"});case kb.BranchAlreadyUpToDate:return ke.createElement(PB,{ourBranch:e.ourBranch,theirBranch:e.theirBranch,onDismissed:n,key:"branch-already-up-to-date"});case kb.SuccessfulCherryPick:return ke.createElement(IB,{key:"successful-cherry-pick",targetBranchName:e.targetBranchName,countCherryPicked:e.count,onDismissed:n,onUndo:e.onUndo});case kb.CherryPickConflictsFound:return ke.createElement(_B,{targetBranchName:e.targetBranchName,onOpenConflictsDialog:e.onOpenConflictsDialog,onDismissed:n,key:"cherry-pick-conflicts"});case kb.CherryPickUndone:return ke.createElement(FB,{key:"cherry-pick-undone",targetBranchName:e.targetBranchName,countCherryPicked:e.countCherryPicked,onDismissed:n});case kb.OpenThankYouCard:return ke.createElement(NB,{key:"open-thank-you-card",emoji:e.emoji,onDismissed:n,onOpenCard:e.onOpenCard,onThrowCardAway:e.onThrowCardAway});case kb.SuccessfulSquash:return ke.createElement(OB,{key:"successful-squash",count:e.count,onDismissed:n,onUndo:e.onUndo});case kb.SquashUndone:{const t=1===e.commitsCount?"commit":"commits";return ke.createElement(TB,{key:"squash-undone",timeout:5e3,onDismissed:n},"Squash of ",e.commitsCount," ",t," undone.")}case kb.SuccessfulReorder:{const t=1===e.count?"commit":"commits";return ke.createElement(TB,{key:"successful-reorder",timeout:15e3,onDismissed:n,onUndo:e.onUndo},ke.createElement("span",null,"Successfully reordered ",e.count," ",t,"."))}case kb.ReorderUndone:{const t=1===e.commitsCount?"commit":"commits";return ke.createElement(TB,{key:"reorder-undone",timeout:5e3,onDismissed:n},"Reorder of ",e.commitsCount," ",t," undone.")}case kb.ConflictsFound:return ke.createElement(LB,{operationDescription:e.operationDescription,onOpenConflictsDialog:e.onOpenConflictsDialog,onDismissed:n,key:"conflicts-found"});case kb.OSVersionNoLongerSupported:return ke.createElement(HB,{onDismissed:n});default:return at(0,`Unknown popup type: ${e}`)}}(this.state.currentBanner,this.props.dispatcher,this.onBannerDismissed):(this.state.isUpdateAvailableBannerVisible||this.state.isUpdateShowcaseVisible)&&(e=this.renderUpdateBanner()),ke.createElement("div",{role:"alert","aria-atomic":"false"},ke.createElement(Be,null,e&&ke.createElement(Ye,{classNames:"banner",timeout:t$},e)))}renderUpdateBanner(){return ke.createElement(RB,{dispatcher:this.props.dispatcher,newReleases:dn.state.newReleases,isX64ToARM64ImmediateAutoUpdate:dn.state.isX64ToARM64ImmediateAutoUpdate,prioritizeUpdate:dn.state.prioritizeUpdate,prioritizeUpdateInfoUrl:dn.state.prioritizeUpdateInfoUrl,onDismissed:this.onUpdateAvailableDismissed,isUpdateShowcaseVisible:this.state.isUpdateShowcaseVisible,emoji:this.state.emoji,key:"update-available"})}onBannerDismissed=()=>{this.props.dispatcher.clearBanner()};renderToolbar(){if(this.inNoRepositoriesViewState())return null;const e=Oy(this.state.sidebarWidth);return ke.createElement(x_,{id:"desktop-app-toolbar"},ke.createElement("div",{className:"sidebar-section",style:{width:e}},this.renderRepositoryToolbarButton()),this.renderBranchToolbarButton(),this.renderPushPullToolbarButton())}renderRepository(){const e=this.state.accounts;if(this.inNoRepositoriesViewState())return ke.createElement(nU,{accounts:e,onCreate:this.showCreateRepository,onClone:this.showCloneRepo,onAdd:this.showAddLocalRepo,onCreateTutorialRepository:this.showCreateTutorialRepositoryPopup,onResumeTutorialRepository:this.onResumeTutorialRepository,tutorialPaused:this.isTutorialPaused(),apiRepositories:this.state.apiRepositories,onRefreshRepositories:this.onRefreshRepositories});const t=this.state,n=t.selectedState;return n?n.type===Xe.Repository?ke.createElement(jL,{ref:this.repositoryViewRef,key:n.repository.hash,repository:n.repository,state:n.state,dispatcher:this.props.dispatcher,emoji:t.emoji,sidebarWidth:t.sidebarWidth,commitSummaryWidth:t.commitSummaryWidth,stashedFilesWidth:t.stashedFilesWidth,issuesStore:this.props.issuesStore,gitHubUserStore:this.props.gitHubUserStore,onViewCommitOnGitHub:this.onViewCommitOnGitHub,imageDiffType:t.imageDiffType,hideWhitespaceInChangesDiff:t.hideWhitespaceInChangesDiff,hideWhitespaceInHistoryDiff:t.hideWhitespaceInHistoryDiff,showDiffCheckMarks:t.showDiffCheckMarks,showSideBySideDiff:t.showSideBySideDiff,focusCommitMessage:t.focusCommitMessage,askForConfirmationOnDiscardChanges:t.askForConfirmationOnDiscardChanges,askForConfirmationOnDiscardStash:t.askForConfirmationOnDiscardStash,askForConfirmationOnCheckoutCommit:t.askForConfirmationOnCheckoutCommit,askForConfirmationOnCommitFilteredChanges:t.askForConfirmationOnCommitFilteredChanges,accounts:t.accounts,isExternalEditorAvailable:t.useCustomEditor||null!==t.selectedExternalEditor,externalEditorLabel:this.externalEditorLabel,resolvedExternalEditor:t.resolvedExternalEditor,onOpenInExternalEditor:this.onOpenInExternalEditor,appMenu:t.appMenuState[0],currentTutorialStep:t.currentOnboardingTutorialStep,onExitTutorial:this.onExitTutorial,isShowingModal:this.isShowingModal,isShowingFoldout:null!==this.state.currentFoldout,aheadBehindStore:this.props.aheadBehindStore,commitSpellcheckEnabled:this.state.commitSpellcheckEnabled,showCommitLengthWarning:this.state.showCommitLengthWarning,onCherryPick:this.startCherryPickWithoutBranch,pullRequestSuggestedNextAction:t.pullRequestSuggestedNextAction,showChangesFilter:t.showChangesFilter,shouldShowGenerateCommitMessageCallOut:!this.state.commitMessageGenerationButtonClicked}):n.type===Xe.CloningRepository?ke.createElement(iB,{repository:n.repository,progress:n.progress}):n.type===Xe.MissingRepository?ke.createElement(iH,{repository:n.repository,dispatcher:this.props.dispatcher}):at(0,`Unknown state: ${n}`):ke.createElement(r$,null)}renderWelcomeFlow(){return ke.createElement(SB,{dispatcher:this.props.dispatcher,accounts:this.state.accounts,signInState:this.state.signInState})}render(){if(this.loading)return null;const e=hs()(this.state.appIsFocused?"focused":"blurred",{"underline-links":this.state.underlineLinks}),t=this.state.showWelcomeFlow?$p.Light:this.state.currentTheme,n=this.state.selectedTabSize;return ke.createElement("div",{id:"desktop-app-chrome",className:e,style:{tabSize:n}},ke.createElement(bU,{theme:t}),this.renderTitlebar(),this.state.showWelcomeFlow?this.renderWelcomeFlow():this.renderApp(),this.renderZoomInfo(),this.renderFullScreenInfo())}onRepositoryFilterTextChanged=e=>{this.props.dispatcher.setRepositoryFilterText(e)};onSelectionChanged=e=>{this.props.dispatcher.selectRepository(e),this.props.dispatcher.closeFoldout(Qe.Repository)};onViewCommitOnGitHub=async(e,t)=>{const n=this.getRepository();if(!n||n instanceof cs||!n.gitHubRepository)return;const r=_Z(n.gitHubRepository,e,t);null!==r&&this.props.dispatcher.openInBrowser(r)};onBranchDeleted=e=>{this.props.dispatcher.executeCompare(e,{kind:tt.History})};inNoRepositoriesViewState(){return 0===this.state.repositories.length||this.isTutorialPaused()}isTutorialPaused(){return this.state.currentOnboardingTutorialStep===Db.Paused}startCherryPickWithoutBranch=(e,t)=>{const n=this.props.repositoryStateManager.get(e),{tip:r}=n.branchesState;let s=null;if(r.kind!==zr.Valid)throw new Error("Tip is not in a valid state, which is required to start the cherry-pick flow");s=r.branch,this.props.dispatcher.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:s,branchCreated:!1,commits:t},null,t,r.branch.tip.sha);const i=sC(n);this.props.dispatcher.setMultiCommitOperationStep(e,i),this.props.dispatcher.incrementMetric("cherryPickViaContextMenuCount"),this.showPopup({type:Sh.MultiCommitOperation,repository:e})};async checkIfThankYouIsInOrder(){const e=this.state.accounts.find(wn);if(!e)return;const{lastThankYou:t}=this.state,{login:n}=e;if(function(e,t){if(void 0===e)return!1;const{version:n,checkedUsers:r}=e;return r.includes(t)&&"3.5.3"===n}(t,n))return;const r=void 0!==t&&t.checkedUsers.includes(n),s=await async function(e,t){const n=await async function(e){let t=await Wt(250);e&&(t=t.slice(0,1));const n=t.map($t),r=new Map;return n.forEach((e=>{if(0===e.thankYous.length)return;const t=/\.\sThanks\s@.+!/i;e.thankYous.forEach((e=>{const n=t.exec(e.message);if(null===n)return;const s=n[0].slice(10,-1);let i=r.get(s);void 0===i?i=[e]:i.push(e),r.set(s,i)}))})),r}(e),r=n.get(t);return void 0!==r?r:null}(r,n);if(null===s)return void ZU(this.props.dispatcher,t,n,"3.5.3");const i=r?"3.5.3":null,o={type:kb.OpenThankYouCard,emoji:this.state.emoji,onOpenCard:()=>this.openThankYouCard(s,i,e),onThrowCardAway:()=>{ZU(this.props.dispatcher,t,n,"3.5.3")}};this.setBanner(o)}openThankYouCard=(e,t=null,n)=>{const{friendlyName:r}=n;this.props.dispatcher.showPopup({type:Sh.ThankYou,userContributions:e,friendlyName:r,latestVersion:t})};onDragEnd=e=>{this.props.dispatcher.closeFoldout(Qe.Branch),void 0===e&&this.props.dispatcher.incrementMetric("dragStartedAndCanceledCount")}}function r$(){return ke.createElement("div",{className:"panel blankslate"},"No repository selected")}function s$(e){const{login:t,email:n,avatarURL:r,name:s}=e;return{login:t,email:n,avatarURL:r,name:s}}function i$(e){return Object.keys(localStorage).filter((e=>/^IssuesStore\/\d+\/lastFetch$/.test(e))).forEach((e=>localStorage.removeItem(e))),e.table("issues").clear()}new Set(["LOCAL_GIT_DIRECTORY"]);const o$=new Set(["button","a","input","textarea","label"].map((e=>e.toUpperCase()))),a$=new Set(["button","option","menuitem","tab","radio"]);function l$(e,t){if(t.has(e))return e;for(const n of t.keys())if(gn(n,e))return n;return e}var c$=n(4157),u$=n.n(c$);function h$(e,t){const{endpoint:n,owner:r,name:s}=e;return function(e,t,n,r){return`${e}/repos/${t}/${n}/commits/${r}`}(n,r.login,s,t)}function p$(e){return Date.now()-e.fetchedAt.valueOf()>6e4}function d$(e,t,n){return`${e.path}:${t}:${n}`}const m$=new class{dispatcher;setDispatcher(e){this.dispatcher=e}promptAddingSSHHost(e,t,n,r){return new Promise((s=>{this.dispatcher.showPopup({type:Sh.AddSSHHost,host:e,ip:t,keyType:n,fingerprint:r,onSubmit:e=>s(e)})}))}promptSSHKeyPassphrase(e){return new Promise((t=>{this.dispatcher.showPopup({type:Sh.SSHKeyPassphrase,keyPath:e,onSubmit:(e,n)=>t({secret:e,storeSecret:n})})}))}promptSSHUserPassword(e){return new Promise((t=>{this.dispatcher.showPopup({type:Sh.SSHUserPassword,username:e,onSubmit:(e,n)=>t({secret:e,storeSecret:n})})}))}promptForGenericGitAuthentication(e,t){return new Promise((n=>{this.dispatcher.showPopup({type:Sh.GenericGitAuthentication,remoteUrl:e,username:t,onSubmit:(t,r)=>n({login:t,token:r,endpoint:e}),onDismiss:()=>n(void 0)})}))}promptForGitHubSignIn(e){return new Promise((async t=>{const n=e=>{t("success"===e.kind?e.account:void 0),this.dispatcher.closePopup(Sh.SignIn)},{hostname:r,origin:s}=new URL(e);"github.com"===r?this.dispatcher.beginDotComSignIn(n):(this.dispatcher.beginEnterpriseSignIn(n),await this.dispatcher.setSignInEndpoint(s)),this.dispatcher.showPopup({type:Sh.SignIn,isCredentialHelperSignIn:!0,credentialHelperUrl:e})})).catch((e=>{log.error("Could not prompt for GitHub sign in",e)}))}};function f$(e,t){return`${e}:${t}`}function g$(e){const[t,n]=e.p.split(".");return{userId:e.u,presenceKey:f$(e.u,t),connectionCount:Number(n),metadata:e.m||[]}}function y$(e){return e.startsWith("presence-")}class w${constructor(){this.presenceItems=new Map}shouldUsePresenceItem(e){const t=this.presenceItems.get(e.presenceKey);return!t||t.connectionCount<=e.connectionCount}addPresenceItem(e){this.shouldUsePresenceItem(e)&&this.presenceItems.set(e.presenceKey,e)}removePresenceItem(e){this.shouldUsePresenceItem(e)&&this.presenceItems.delete(e.presenceKey)}replacePresenceItems(e){this.presenceItems.clear();for(const t of e)this.addPresenceItem(t)}getPresenceItems(){return Array.from(this.presenceItems.values())}}class b${constructor(){this.presenceChannels=new Map}getPresenceChannel(e){const t=this.presenceChannels.get(e)||new w$;return this.presenceChannels.set(e,t),t}handleMessage(e,t){const n=this.getPresenceChannel(e);switch(t.e){case"pf":n.replacePresenceItems(t.d.map(g$));break;case"pa":n.addPresenceItem(g$(t.d));break;case"pr":n.removePresenceItem(g$(t.d))}return this.getChannelItems(e)}getChannelItems(e){return this.getPresenceChannel(e).getPresenceItems()}clearChannel(e){this.presenceChannels.delete(e)}}const C$="_i";function v$(e){return Object.assign(Object.assign({},e),{isLocal:!0})}class S${constructor(){this.subscriberMetadata=new Map}setMetadata(e,t){this.subscriberMetadata.set(e,t)}removeSubscribers(e){let t=!1;for(const n of e)t=this.subscriberMetadata.delete(n)||t;return t}getMetadata(e){if(!e){const e=[];let t;for(const n of this.subscriberMetadata.values())for(const r of n)if(C$ in r){const e=Boolean(r[C$]);t=void 0===t?e:e&&t}else e.push(r);return void 0!==t&&e.push({[C$]:t?1:0}),e}const t=[],{subscriber:n,markAllAsLocal:r}=e;for(const[e,s]of this.subscriberMetadata){const i=r||e===n?s.map(v$):s;t.push(...i)}return t}hasSubscribers(){return this.subscriberMetadata.size>0}}class E${constructor(){this.metadataByChannel=new Map}setMetadata({subscriber:e,channelName:t,metadata:n}){let r=this.metadataByChannel.get(t);r||(r=new S$,this.metadataByChannel.set(t,r)),r.setMetadata(e,n)}removeSubscribers(e){const t=new Set;for(const[n,r]of this.metadataByChannel)r.removeSubscribers(e)&&t.add(n),r.hasSubscribers()||this.metadataByChannel.delete(n);return t}getChannelMetadata(e,t){const n=this.metadataByChannel.get(e);return(null==n?void 0:n.getMetadata(t))||[]}}async function k$(e,t){let n;const r=new Promise(((t,r)=>{n=self.setTimeout((()=>r(new Error("timeout"))),e)}));if(!t)return r;try{await Promise.race([r,A$(t)])}catch(e){throw self.clearTimeout(n),e}}async function R$(e,t){let n;const r=new Promise((t=>{n=self.setTimeout(t,e)}));if(!t)return r;try{await Promise.race([r,A$(t)])}catch(e){throw self.clearTimeout(n),e}}function A$(e){return new Promise(((t,n)=>{const r=new Error("aborted");r.name="AbortError",e.aborted?n(r):e.addEventListener("abort",(()=>n(r)))}))}function T$(e,t){return async function(e,t,n=1/0,r){const s=r?A$(r):null;for(let o=0;o<t;o++)try{const t=s?Promise.race([e(),s]):e();return await t}catch(e){if("AbortError"===e.name)throw e;if(o===t-1)throw e;const s=1e3*Math.pow(2,o),a=(i=.1*s,Math.floor(Math.random()*Math.floor(i)));await R$(Math.min(n,s+a),r)}var i;throw new Error("retry failed")}((()=>async function(e,t,n){const r=new WebSocket(e),s=function(e){return new Promise(((t,n)=>{e.readyState===WebSocket.OPEN?t(e):(e.onerror=()=>{e.onerror=null,e.onopen=null,n(new Error("connect failed"))},e.onopen=()=>{e.onerror=null,e.onopen=null,t(e)})}))}(r);try{return await Promise.race([s,k$(t,n)]),r}catch(e){throw async function(e){try{(await e).close()}catch(e){}}(s),e}}(e,t.timeout,t.signal)),t.attempts,t.maxDelay,t.signal)}class x${constructor(e,t,n){this.socket=null,this.opening=null,this.url=e,this.delegate=t,this.policy=n}async open(){if(this.opening||this.socket)return;this.opening=new AbortController;const e=Object.assign(Object.assign({},this.policy),{signal:this.opening.signal});try{this.socket=await T$(this.url,e)}catch(e){return void this.delegate.socketDidFinish(this)}finally{this.opening=null}this.socket.onclose=e=>{var t;this.socket=null,this.delegate.socketDidClose(this,e.code,e.reason),(this.delegate.socketShouldRetry?!this.delegate.socketShouldRetry(this,e.code):function(e){return e===D$||e===M$}(e.code))?this.delegate.socketDidFinish(this):setTimeout((()=>this.open()),(t=100+(this.delegate.reconnectWindow||50),Math.random()*(t-100)+100))},this.socket.onmessage=e=>{this.delegate.socketDidReceiveMessage(this,e.data)},this.delegate.socketDidOpen(this)}close(e,t){this.opening?(this.opening.abort(),this.opening=null):this.socket&&(this.socket.onclose=null,this.socket.close(e,t),this.socket=null,this.delegate.socketDidClose(this,e,t),this.delegate.socketDidFinish(this))}send(e){this.socket&&this.socket.send(e)}isOpen(){return!!this.socket}}const D$=1008,M$=1011;class P${constructor(e){if(this.map=new Map,e)for(const[t,n]of e)this.set(t,n)}get(e){return this.map.get(e)||new Set}set(e,t){let n=this.map.get(e);return n||(n=new Set,this.map.set(e,n)),n.add(t),this}has(e){return this.map.has(e)}delete(e,t){const n=this.map.get(e);if(!n)return!1;if(!t)return this.map.delete(e);const r=n.delete(t);return n.size||this.map.delete(e),r}drain(e){const t=[];for(const n of this.keys())this.delete(n,e)&&!this.has(n)&&t.push(n);return t}keys(){return this.map.keys()}values(){return this.map.values()}entries(){return this.map.entries()}[Symbol.iterator](){return this.entries()}clear(){this.map.clear()}get size(){return this.map.size}}class I${constructor(){this.subscriptions=new P$,this.signatures=new Map}add(...e){const t=[];for(const{subscriber:n,topic:r}of e)this.subscriptions.has(r.name)||(t.push(r),this.signatures.set(r.name,r)),this.subscriptions.set(r.name,n);return t}delete(...e){const t=[];for(const{subscriber:n,topic:r}of e)this.subscriptions.delete(r.name,n)&&!this.subscriptions.has(r.name)&&(t.push(r),this.signatures.delete(r.name));return t}drain(...e){const t=[];for(const n of e)for(const e of this.subscriptions.drain(n)){const n=this.signatures.get(e);this.signatures.delete(e),t.push(n)}return t}topics(){return this.signatures.values()}topic(e){return this.signatures.get(e)||null}subscribers(e){return this.subscriptions.get(e).values()}}function*_$(e,t){for(let n=0;n<e.length;n+=t)yield e.slice(n,n+t)}function F$(e){return new Promise(((t,n)=>{const r=new Error("aborted");r.name="AbortError",e.aborted?n(r):e.addEventListener("abort",(()=>n(r)))}))}async function N$(e,t){let n;const r=new Promise((t=>{n=self.setTimeout(t,e)}));if(!t)return r;try{await Promise.race([r,F$(t)])}catch(e){throw self.clearTimeout(n),e}}var O$;!function(e){e.Deploy="Alive Redeploy",e.Reconnect="Alive Reconnect"}(O$||(O$={}));class L${constructor(e,t,n,r,s=6e5,i={}){this.url=e,this.getUrl=t,this.inSharedWorker=n,this.notify=r,this.maxReconnectBackoff=s,this.options=i,this.subscriptions=new I$,this.state="online",this.retrying=null,this.connectionCount=0,this.presence=new b$,this.presenceMetadata=new E$,this.intentionallyDisconnected=!1,this.lastCameOnline=0,this.userId=function(e){const t=e.match(/\/u\/(\d+)\/ws/);return t?+t[1]:0}(e),this.presenceId=`${Math.round(Math.random()*(Math.pow(2,31)-1))}_${Math.round(Date.now()/1e3)}`,this.presenceKey=f$(this.userId,this.presenceId),this.socket=this.connect()}subscribe(e){const t=this.subscriptions.add(...e);this.sendSubscribe(t);for(const t of e){const e=t.topic.name;y$(e)&&this.notifyCachedPresence(t.subscriber,e)}}unsubscribe(e){const t=this.subscriptions.delete(...e);this.sendUnsubscribe(t)}unsubscribeAll(...e){const t=this.subscriptions.drain(...e);this.sendUnsubscribe(t);const n=this.presenceMetadata.removeSubscribers(e);this.sendPresenceMetadataUpdate(n)}requestPresence(e,t){for(const n of t)this.notifyCachedPresence(e,n)}notifyCachedPresence(e,t){const n=this.presence.getChannelItems(t);0!==n.length&&this.notifyPresenceChannel(t,n)}updatePresenceMetadata(e){const t=new Set;for(const n of e)this.presenceMetadata.setMetadata(n),t.add(n.channelName);this.sendPresenceMetadataUpdate(t)}sendPresenceMetadataUpdate(e){if(!e.size)return;const t=[];for(const n of e){const e=this.subscriptions.topic(n);e&&t.push(e)}this.sendSubscribe(t)}online(){var e;this.lastCameOnline=Date.now(),this.state="online",null===(e=this.retrying)||void 0===e||e.abort(),this.socket.open()}offline(){var e;this.state="offline",null===(e=this.retrying)||void 0===e||e.abort(),this.socket.close()}shutdown(){this.inSharedWorker&&self.close()}get reconnectWindow(){const e=Date.now()-this.lastCameOnline<6e4;return 0===this.connectionCount||this.intentionallyDisconnected||e?0:1e4}socketDidOpen(){this.intentionallyDisconnected=!1,this.connectionCount++,this.socket.url=this.getUrlWithPresenceId(),this.sendSubscribe(this.subscriptions.topics())}socketDidClose(e,t,n){if(void 0!==this.redeployEarlyReconnectTimeout&&clearTimeout(this.redeployEarlyReconnectTimeout),"Alive Reconnect"===n)this.intentionallyDisconnected=!0;else if("Alive Redeploy"===n){this.intentionallyDisconnected=!0;const e=60*(3+22*Math.random())*1e3;this.redeployEarlyReconnectTimeout=setTimeout((()=>{this.intentionallyDisconnected=!0,this.socket.close(1e3,"Alive Redeploy Early Client Reconnect")}),e)}}socketDidFinish(){"offline"!==this.state&&this.reconnect()}socketDidReceiveMessage(e,t){const n=JSON.parse(t);switch(n.e){case"ack":this.handleAck(n);break;case"msg":this.handleMessage(n)}}handleAck(e){for(const t of this.subscriptions.topics())t.offset=e.off}handleMessage(e){const t=e.ch,n=this.subscriptions.topic(t);if(n)if(n.offset=e.off,"e"in e.data){const n=this.presence.handleMessage(t,e.data);this.notifyPresenceChannel(t,n)}else e.data.wait||(e.data.wait=0),this.notify(this.subscriptions.subscribers(t),{channel:t,type:"message",data:e.data})}notifyPresenceChannel(e,t){var n,r;const s=new Map;for(const e of t){const{userId:t,metadata:n,presenceKey:r}=e,i=s.get(t)||{userId:t,isOwnUser:t===this.userId,metadata:[]};if(r!==this.presenceKey){for(const e of n)C$ in e?!1!==i.isIdle&&(i.isIdle=Boolean(e[C$])):i.metadata.push(e);s.set(t,i)}}for(const t of this.subscriptions.subscribers(e)){const i=this.userId,o=Array.from(s.values()).filter((e=>e.userId!==i)),a=null!==(r=null===(n=s.get(this.userId))||void 0===n?void 0:n.metadata)&&void 0!==r?r:[],l=this.presenceMetadata.getChannelMetadata(e,{subscriber:t,markAllAsLocal:!this.inSharedWorker});this.notify([t],{channel:e,type:"presence",data:[{userId:i,isOwnUser:!0,metadata:[...a,...l]},...o]})}}async reconnect(){if(!this.retrying)try{this.retrying=new AbortController;const e=await async function(e,t,n=1/0,r){const s=r?F$(r):null;for(let o=0;o<t;o++)try{const t=s?Promise.race([e(),s]):e();return await t}catch(e){if("AbortError"===e.name)throw e;if(o===t-1)throw e;const s=1e3*Math.pow(2,o),a=(i=.1*s,Math.floor(Math.random()*Math.floor(i)));await N$(Math.min(n,s+a),r)}var i;throw new Error("retry failed")}(this.getUrl,1/0,this.maxReconnectBackoff,this.retrying.signal);e?(this.url=e,this.socket=this.connect()):this.shutdown()}catch(e){if("AbortError"!==e.name)throw e}finally{this.retrying=null}}getUrlWithPresenceId(){const e=new URL(this.url,self.location.origin);return e.searchParams.set("shared",this.inSharedWorker.toString()),e.searchParams.set("p",`${this.presenceId}.${this.connectionCount}`),e.toString()}connect(){const e=new x$(this.getUrlWithPresenceId(),this,this.options.socketPolicy||{timeout:4e3,attempts:16,maxDelay:512e3});return e.open(),e}sendSubscribe(e){const t=Array.from(e);for(const e of _$(t,25)){const t={};for(const n of e)y$(n.name)?t[n.signed]=JSON.stringify(this.presenceMetadata.getChannelMetadata(n.name)):t[n.signed]=n.offset;this.socket.send(JSON.stringify({subscribe:t}))}}sendUnsubscribe(e){const t=Array.from(e,(e=>e.signed));for(const e of _$(t,25))this.socket.send(JSON.stringify({unsubscribe:e}));for(const t of e)y$(t.name)&&this.presence.clearChannel(t.name)}}function B$(e,t){return t.find((t=>gn(t,e)))}const H$=(e,t)=>new Promise(((n,s)=>{const i=(0,Cn.createHash)(t);i.on("finish",(()=>n(i.digest("hex")))),i.on("error",s),(0,r.createReadStream)(e).on("error",s).pipe(i)})),U$=Cd("SSH key passphrases");async function Z$(e){return H$(e,"sha256")}const $$=Cd("SSH user password");const W$=e=>{const t=new Map;for(const n of e.split(/\r?\n/)){const e=n.indexOf("=");if(-1===e)continue;const r=n.slice(0,e),s=n.slice(e+1);if(r.endsWith("[]")){let e,n=0;do{e=`${r.slice(0,-2)}[${n}]`,n++}while(t.has(e));t.set(e,s)}else t.set(r,s)}return t},V$=e=>{const t=[];for(const[n,r]of e){if(r.includes("\n")||r.includes("\0"))throw new Error(`forbidden characters in credential value: ${n}`);t.push(`${n.replace(/\[\d+\]$/,"[]")}=${r}\n`)}return t.join("")},q$=(e,t,n,r={})=>(0,ad.exec)(["-c","credential.helper=","-c","credential.helper=manager","credential",e],n,{stdin:V$(t),env:{GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"",TERM:"dumb",...r}}).then((({exitCode:e,stderr:t,stdout:n})=>{if(0!==e)throw new Error(t);return W$(n)})),G$=q$.bind(null,"fill"),z$=q$.bind(null,"approve"),j$=q$.bind(null,"reject");function K$(e){const t=new URL(e);return t.username="",t.password="",t.toString()}const Y$=xr(((e,t,n)=>((e,t)=>ST.getItem(Xp(e),t))(t,n)));async function X$(e,t){const n=await e.getAll(),r=new URL(t);return n.find((e=>new URL(ir(e.endpoint)).origin===r.origin))}const Q$=e=>log.info(`credential-helper: ${e}`),J$=e=>log.debug(`credential-helper: ${e}`),eW=(e,t)=>t&&new Map(e).set("username",t.login).set("password",t.token);async function tW(e,t){const n=`${Id(e)}`,r=await async function(e,t){const n=new URL(t),r=K$(t),s=""===n.username?function(e){const t=dL(e);return localStorage.getItem(t)}(r):n.username;if(!s)return;const i=await Y$(e,r,s);if(i)return{login:s,endpoint:r,token:i};log.warn(`credential: generic password for ${t} missing`)}(t,n);return r?(Q$(`found generic credential for ${n}`),eW(e,r)):Pd(t)?void J$("background task environment, skipping prompt"):async function(e,t){const n=new URL(t),r=""===n.username?void 0:n.username,s=await m$.promptForGenericGitAuthentication(t,r);return Q$(`prompt for ${t}: ${s?"completed":"cancelled"}`),eW(e,s)}(e,n)}const nW=async(e,t)=>{const n=`${Id(e)}`;if((e=>{const{hostname:t}=new URL(e);return"gist.github.com"===t||"gist.ghe.io"===t})(n))return"generic";if(Dn(n))return"github.com";if(Mn(n))return"ghe.com";for(const[t,n]of e.entries())if(t.startsWith("wwwauth[")){if(n.includes('realm="GitHub"'))return"enterprise";if(/realm="(GitLab|Gitea|Atlassian Bitbucket)"/.test(n))return"generic"}const r=await X$(t,n);return r?Dn(r.endpoint)?"github.com":"enterprise":await async function(e){const{hostname:t}=new window.URL(e),n="github.com"===t||"api.github.com"===t?ar():or(e);if(Dn(n)||Mn(n))return!0;if((e=>{if(ur.has(e))return!0;for(const t of ur)if(e.endsWith(`.${t}`))return!0;return!1})(t))return!1;if(/(^|\.)(github)\./.test(t))return!0;if(/(^|\.)(bitbucket|gitlab)\./.test(t))return!1;if(null!==In(n))return!0;const r=`${n}/meta?ghd=${kn()}`,s=new AbortController,i=setTimeout((()=>s.abort()),2e3);!function(e){Zn.add(e)}(r);try{const e=await fetch(r,{headers:{"user-agent":"GitHubDesktop/3.5.3 (Windows)"},signal:s.signal,credentials:"omit",method:"HEAD"});return cr(n,e),e.headers.has("x-github-request-id")}catch(e){return void log.debug(`isGitHubHost: failed with endpoint ${n}`,e)}finally{clearTimeout(i),function(e){Zn.delete(e)}(r)}}(n)?"enterprise":"generic"};const rW=(e,t)=>{const n=Md(t);return z$(e,n,iW(t))};const sW=(e,t)=>{const n=Md(t);return j$(e,n,iW(t))};function iW(e){const t=Pd(e);return{...process.env.GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION?{GCM_GUI_SOFTWARE_RENDERING:"1"}:{},GCM_INTERACTIVE:t?"0":"1"}}(async function(){const e=localStorage.getItem(xT);if(null!==e){try{await me(e),localStorage.removeItem(xT)}catch(e){log.error("Error migrating existing GUID",e)}DT=e}})(),function(e){return"browser"===e.type&&Nr(),!1}(process)&&async function(){}(),function(){s.install({environment:"node",handleUncaughtExceptions:!1,retrieveSourceMap:a});const e=Error;c=e.prepareStackTrace,e.prepareStackTrace=u}(),process.env.LOCAL_GIT_DIRECTORY=t.resolve(__dirname,"git"),delete process.env.GIT_EXEC_PATH;const oW=performance.now();n(3004);let aW=null;const lW=(e,t={},n)=>{const r=h(e);console.error("Uncaught exception",r);{const e={osVersion:Mr(),...t};try{aW&&(null!==aW.currentBanner&&(e.currentBanner=aW.currentBanner.type),null!==aW.currentPopup&&(e.currentPopup=`${aW.currentPopup.type}`),null!==aW.selectedState&&(e.selectedState=`${aW.selectedState.type}`,aW.selectedState.type===Xe.Repository&&(e.selectedRepositorySection=`${aW.selectedState.state.selectedSection}`)),null!==aW.currentFoldout&&(e.currentFoldout=`${aW.currentFoldout.type}`),aW.showWelcomeFlow&&(e.inWelcomeFlow="true"),1!==aW.windowZoomFactor&&(e.windowZoomFactor=`${aW.windowZoomFactor}`),aW.errorCount>0&&(e.activeAppErrors=`${aW.errorCount}`),e.repositoryCount=`${aW.repositories.length}`,e.windowState=aW.windowState??"Unknown",e.accounts=`${aW.accounts.length}`,e.automaticallySwitchTheme=`${aW.selectedTheme===$p.System&&Kp()}`)}catch(e){}!function(e,t,n){ce(ae(e),t,n)}(r,e,n??!1)}},cW="ResizeObserver loop completed with undelivered notifications.",uW=e=>{e===cW||e&&"object"==typeof e&&"message"in e&&e.message===cW?QT("resizeObserverLoopCompleted",h(e)):(lW(e),function(e){le(ae(e))}(h(e)),process.off("uncaughtException",uW))};process.on("uncaughtException",uW),process.on("send-non-fatal-exception",((e,t)=>{lW(e,t,!0)})),window.addEventListener("unhandledrejection",(e=>{on()&&e.reason instanceof Error&&QT("unhandledRejection",e.reason)}));const hW=new class extends Qp{database;queryCache=null;pruneQueryCacheTimeoutId=null;constructor(e){super(),this.database=e}async getByLogin(e,t){const n=rr.fromAccount(e),r=await n.fetchUser(t).catch((e=>null));if(!r||"User"!==r.type)return null;const s=null!==r.email&&r.email.length>0?r.email:Kb(r.id,t,e.endpoint);return{avatarURL:r.avatar_url,email:s,name:r.name||r.login,login:r.login}}async updateMentionables(e,t){const n=rr.fromAccount(t),r=await this.database.getMentionableCacheEntry(e.dbID);if(void 0!==r&&Date.now()-r.lastUpdated<6e5)return;const s=await n.fetchMentionables(e.owner.login,e.name,r?.eTag);if(null===s)return void await this.database.touchMentionableCacheEntry(e.dbID,r?.eTag);const{endpoint:i}=t,o=s.users.map((e=>{const{name:t,login:n,avatar_url:r}=e;return{name:t,login:n,email:e.email||zb(n,i),avatarURL:r}}));await this.database.updateMentionablesForRepository(e.dbID,o,s.etag),this.queryCache?.repository.dbID===e.dbID&&(this.queryCache=null,this.clearCachePruneTimeout())}async getMentionableUsers(e){return this.database.getAllMentionablesForRepository(e.dbID)}async getMentionableUsersMatching(e,t,n=25){const r=this.queryCache?.repository.dbID===e.dbID?this.queryCache.users:await this.getMentionableUsers(e);this.setQueryCache(e,r);const s=[],i=t.toLowerCase();for(const e of r){const t=`${e.login} ${e.name}`.trim().toLowerCase().indexOf(i);t>=0&&s.push({user:e,ix:t})}return s.sort(((e,t)=>gr(e.ix,t.ix)||gr(e.user.login,t.user.login))).slice(0,n).map((e=>e.user))}setQueryCache(e,t){this.clearCachePruneTimeout(),this.queryCache={repository:e,users:t},this.pruneQueryCacheTimeoutId=window.setTimeout((()=>{this.pruneQueryCacheTimeoutId=null,this.queryCache=null}),6e4)}clearCachePruneTimeout(){null!==this.pruneQueryCacheTimeoutId&&(clearTimeout(this.pruneQueryCacheTimeoutId),this.pruneQueryCacheTimeoutId=null)}}(new class extends oT{constructor(e,t){super(e,t),this.conditionalVersion(1,{users:"++id, &[endpoint+email]"}),this.conditionalVersion(2,{users:"++id, [endpoint+email], [endpoint+login]",mentionables:"++id, repositoryID, &[userID+repositoryID]"}),this.conditionalVersion(3,{mentionables:null,users:null}),this.conditionalVersion(4,{mentionables:"&[gitHubRepositoryID+login], gitHubRepositoryID"}),this.conditionalVersion(5,{mentionableCache:"gitHubRepositoryID"})}updateMentionablesForRepository(e,t,n){return this.transaction("rw",this.mentionables,this.mentionableCache,(async()=>{await this.mentionables.where("gitHubRepositoryID").equals(e).delete(),await this.touchMentionableCacheEntry(e,n),await this.mentionables.bulkAdd(t.map((t=>({...t,gitHubRepositoryID:e}))))}))}async getAllMentionablesForRepository(e){return(await this.mentionables.where("gitHubRepositoryID").equals(e).toArray()).map(s$)}getMentionableCacheEntry(e){return this.mentionableCache.get(e)}touchMentionableCacheEntry(e,t){const n={gitHubRepositoryID:e,lastUpdated:Date.now(),eTag:t};return this.mentionableCache.put(n)}}("GitHubUserDatabase")),pW=new class extends Qp{_repositories=new Array;stateByID=new Map;async clone(e,t,n){const r=new cs(t,e);this._repositories.push(r);const s=`Cloning into ${t}`;this.stateByID.set(r.id,{kind:"clone",title:s,value:0}),this.emitUpdate();let i=!0;try{await async function(e,t,n,r){const s={...await wg(e),GIT_CLONE_PROTECTION_ACTIVE:"false"},i=["-c",`init.defaultBranch=${n.defaultBranch??await Qg()}`,"clone","--recursive"];let o={env:s};if(r){i.push("--progress");const e=`Cloning into ${t}`,n="clone";o=await Vg({...o,trackLFSProgress:!0},new xg,(t=>{const s="progress"===t.kind?t.details.text:t.text,i=t.percent;r({kind:n,title:e,description:s,value:i})})),r({kind:n,title:e,value:0})}n.branch&&i.push("-b",n.branch),i.push("--",e,t),await zd(i,__dirname,"clone",o)}(e,t,n,(e=>{this.stateByID.set(r.id,e),this.emitUpdate()}))}catch(s){i=!1;const o={type:pt.Clone,name:r.name,url:e,path:t,options:n};s=new mt(s,{retryAction:o,repository:r}),this.emitError(s)}return this.remove(r),i}get repositories(){return Array.from(this._repositories)}getRepositoryState(e){return this.stateByID.get(e.id)||null}remove(e){this.stateByID.delete(e.id);const t=this._repositories.findIndex((t=>t.id===e.id));t>-1&&this._repositories.splice(t,1),this.emitUpdate()}},dW=new class{db;queryCache=null;pruneQueryCacheTimeoutId=null;constructor(e){this.db=e}async getLatestUpdatedAt(e){const t=this.db,n=await t.issues.where("[gitHubRepositoryID+updated_at]").between([e.dbID],[e.dbID+1],!0,!1).last();if(!n||!n.updated_at)return null;const r=new Date(n.updated_at);return isNaN(r.getTime())?null:r}async refreshIssues(e,t){const n=rr.fromAccount(t),r=await this.getLatestUpdatedAt(e),s=r?"all":"open",i=await n.fetchIssues(e.owner.login,e.name,s,r);this.storeIssues(i,e)}async storeIssues(e,t){const n=e.filter((e=>"closed"===e.state)),r=e.filter((e=>"open"===e.state)).map((e=>({gitHubRepositoryID:t.dbID,number:e.number,title:e.title,updated_at:e.updated_at}))),s=this.db;function i(e,t){return s.issues.where("[gitHubRepositoryID+number]").equals([e,t]).limit(1).first()}await this.db.transaction("rw",this.db.issues,(async()=>{for(const e of n){const n=await i(t.dbID,e.number);n&&await this.db.issues.delete(n.id)}for(const e of r){const n=await i(t.dbID,e.number);n?await s.issues.update(n.id,e):await s.issues.add(e)}})),this.queryCache?.repository.dbID===t.dbID&&(this.queryCache=null,this.clearCachePruneTimeout())}async getAllIssueHitsFor(e){return(await this.db.getIssuesForRepository(e.dbID)).map((e=>({number:e.number,title:e.title})))}async getIssuesMatching(e,t,n=25){const r=this.queryCache?.repository.dbID===e.dbID?await Promise.resolve(this.queryCache?.issues):await this.getAllIssueHitsFor(e);if(this.setQueryCache(e,r),!t.length)return r.slice().sort(((e,t)=>yr(e.number,t.number))).slice(0,n);const s=[],i=t.toLowerCase();for(const e of r){const t=`${e.number} ${e.title}`.trim().toLowerCase().indexOf(i);t>=0&&s.push({hit:{number:e.number,title:e.title},ix:t})}return s.sort(((e,t)=>gr(e.ix,t.ix)||gr(e.hit.title,t.hit.title))).slice(0,n).map((e=>e.hit))}setQueryCache(e,t){this.clearCachePruneTimeout(),this.queryCache={repository:e,issues:t},this.pruneQueryCacheTimeoutId=window.setTimeout((()=>{this.pruneQueryCacheTimeoutId=null,this.queryCache=null}),6e4)}clearCachePruneTimeout(){null!==this.pruneQueryCacheTimeoutId&&(clearTimeout(this.pruneQueryCacheTimeoutId),this.pruneQueryCacheTimeoutId=null)}}(new class extends oT{constructor(e,t){super(e,t),this.conditionalVersion(1,{issues:"++id, &[gitHubRepositoryID+number], gitHubRepositoryID, number"}),this.conditionalVersion(2,{issues:"++id, &[gitHubRepositoryID+number], gitHubRepositoryID, number, [gitHubRepositoryID+updated_at]"},i$)}getIssuesForRepository(e){return this.issues.where("gitHubRepositoryID").equals(e).toArray()}}("IssuesDatabase")),mW=new class{db;uiActivityMonitor;post;uiActivityMonitorSubscription=null;optOut;constructor(e,t,n=qT){this.db=e,this.uiActivityMonitor=t,this.post=n;const r=KT();this.optOut=r||!1,zt(FT,!1)||this.sendOptInStatusPing(this.optOut,r),this.enableUiActivityMonitoring(),window.addEventListener("unhandledrejection",(async()=>{try{this.increment("unhandledRejectionCount")}catch(e){log.error("Failed recording unhandled rejection",e)}}))}shouldReportDailyStats(){const e=Kt(IT,0);return Date.now()-e>864e5}async reportStats(e,t){if(this.optOut)return;if(!Up())return;if(!this.shouldReportDailyStats())return;const n=Date.now(),r=await this.getDailyStats(e,t);try{const e=await this.post(r);if(!e.ok)throw new Error(`Unexpected status: ${e.statusText} (${e.status})`);log.info("Stats reported."),await this.clearDailyStats(),Yt(IT,n)}catch(e){log.error("Error reporting stats:",e)}}async recordLaunchStats(e){await this.db.launches.add(e)}async clearDailyStats(){await this.db.launches.clear(),await this.db.dailyMeasures.clear(),localStorage.removeItem(WT),this.enableUiActivityMonitoring()}enableUiActivityMonitoring(){null===this.uiActivityMonitorSubscription&&(this.uiActivityMonitorSubscription=this.uiActivityMonitor.onActivity(this.onUiActivity))}disableUiActivityMonitoring(){null!==this.uiActivityMonitorSubscription&&(this.uiActivityMonitorSubscription.dispose(),this.uiActivityMonitorSubscription=null)}async getDailyStats(e,t){const n=await this.getAverageLaunchStats(),r=await this.getDailyMeasures(),s=this.determineUserType(e),i=this.categorizedRepositoryCounts(t),o=this.getOnboardingStats(),a=zt(GS,!1)?"custom":localStorage.getItem("shell")||"none",l=zt(VS,!1)?"custom":localStorage.getItem("externalEditor")||"none",c=Xt(WT).length,u=eC()?"split":"unified",h=zt(jS,KS),p=zt(XS,YS),d=zt(Qv)??null,m=zt(eE,tE);return{eventType:"usage",version:"3.5.3",osVersion:Mr(),platform:"win32",architecture:await ee(),theme:zp(),selectedTerminalEmulator:a,selectedTextEditor:l,notificationsEnabled:IC(),...n,...r,...s,...o,guid:await MT(),...i,repositoriesCommittedInWithoutWriteAccess:c,diffMode:u,launchedFromApplicationsFolder:null,linkUnderlinesVisible:h,diffCheckMarksVisible:p,useExternalCredentialHelper:d,filteringChangesEnabled:m}}getOnboardingStats(){return null===zT(NT)?{}:{timeToWelcomeWizardTerminated:jT(OT),timeToFirstAddedRepository:jT(LT),timeToFirstClonedRepository:jT(BT),timeToFirstCreatedRepository:jT(HT),timeToFirstCommit:jT(UT),timeToFirstGitHubPush:jT(ZT),timeToFirstNonDefaultBranchCheckout:jT($T)}}categorizedRepositoryCounts(e){return{repositoryCount:e.length,gitHubRepositoryCount:e.filter((e=>e.gitHubRepository)).length}}determineUserType(e){return{dotComAccount:e.some(wn),enterpriseAccount:e.some(bn),enterpriseAccountCount:e.filter(bn).length}}async getAverageLaunchStats(){const e=await this.db.launches.toArray();if(!e||!e.length)return{mainReadyTime:-1,loadTime:-1,rendererReadyTime:-1};const t=e.reduce(((e,t)=>({mainReadyTime:e.mainReadyTime+t.mainReadyTime,loadTime:e.loadTime+t.loadTime,rendererReadyTime:e.rendererReadyTime+t.rendererReadyTime})),{mainReadyTime:0,loadTime:0,rendererReadyTime:0});return{mainReadyTime:t.mainReadyTime/e.length,loadTime:t.loadTime/e.length,rendererReadyTime:t.rendererReadyTime/e.length}}async getDailyMeasures(){const e=await this.db.dailyMeasures.limit(1).first();return{...VT,...e,id:void 0}}async updateDailyMeasures(e){const t=VT;await this.db.transaction("rw",this.db.dailyMeasures,(async()=>{const n=await this.db.dailyMeasures.limit(1).first(),r={...t,...n},s=Zp(r,e(r));return this.db.dailyMeasures.put(s)}))}async recordCommit(){await this.increment("提交"),GT(UT)}recordCommitUndone=e=>this.increment(e?"commitsUndoneWithoutChanges":"commitsUndoneWithChanges");recordAmendCommitSuccessful=e=>this.increment(e?"amendCommitSuccessfulWithFileChangesCount":"amendCommitSuccessfulWithoutFileChangesCount");recordMenuInitiatedMerge=(e=!1)=>this.increment(e?"squashMergeIntoCurrentBranchMenuCount":"mergeIntoCurrentBranchMenuCount");recordRepoClicked=e=>this.increment(e?"repoWithIndicatorClicked":"repoWithoutIndicatorClicked");async setOptOut(e,t){const n=this.optOut!==e;this.optOut=e;const r=zt(_T);jt(_T,e),(n||t)&&await this.sendOptInStatusPing(e,r)}getOptOut(){return this.optOut}async recordPush(e,t){null===e?await this.recordPushToGenericRemote(t):wn(e)?await this.recordPushToGitHub(t):await this.recordPushToGitHubEnterprise(t)}async recordPushToGitHub(e){await this.increment(e&&e.forceWithLease?"dotcomForcePushCount":"dotcomPushCount"),GT(ZT)}async recordPushToGitHubEnterprise(e){await this.increment(e&&e.forceWithLease?"enterpriseForcePushCount":"enterprisePushCount"),GT(ZT)}recordPushToGenericRemote=e=>this.increment(e&&e.forceWithLease?"externalForcePushCount":"externalPushCount");recordWelcomeWizardInitiated(){Yt(NT,Date.now()),localStorage.removeItem(OT)}recordWelcomeWizardTerminated(){Yt(OT,Date.now())}recordAddExistingRepository(){GT(LT)}recordCloneRepository(){GT(BT)}recordCreateRepository(){GT(HT)}recordNonDefaultBranchCheckout(){GT($T)}addStashEntriesCreatedOutsideDesktop=e=>this.increment("stashEntriesCreatedOutsideDesktop",e);onUiActivity=async()=>(this.disableUiActivityMonitoring(),this.updateDailyMeasures((e=>({active:!0}))));recordTutorialStarted(){return this.updateDailyMeasures((()=>({tutorialStarted:!0})))}recordTutorialRepoCreated(){return this.updateDailyMeasures((()=>({tutorialRepoCreated:!0})))}recordTutorialEditorInstalled(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0})))}recordTutorialBranchCreated(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0})))}recordTutorialFileEdited(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0})))}recordTutorialCommitCreated(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0,tutorialCommitCreated:!0})))}recordTutorialBranchPushed(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0,tutorialCommitCreated:!0,tutorialBranchPushed:!0})))}recordTutorialPrCreated(){return this.updateDailyMeasures((()=>({tutorialEditorInstalled:!0,tutorialBranchCreated:!0,tutorialFileEdited:!0,tutorialCommitCreated:!0,tutorialBranchPushed:!0,tutorialPrCreated:!0})))}recordTutorialCompleted(){return this.updateDailyMeasures((()=>({tutorialCompleted:!0})))}recordHighestTutorialStepCompleted(e){return this.updateDailyMeasures((t=>({highestTutorialStepCompleted:Math.max(e,t.highestTutorialStepCompleted)})))}recordRepositoryCommitedInWithoutWriteAccess(e){const t=Xt(WT);t.includes(e)||Qt(WT,[...t,e])}recordSquashUndone=()=>this.increment("squashUndoneCount");async recordOperationConflictsEncounteredCount(e){switch(e){case"Squash":return this.increment("squashConflictsEncounteredCount");case"Reorder":return this.increment("reorderConflictsEncounteredCount");case"Rebase":return;case"Cherry-pick":case"Merge":return void log.error(`[recordOperationConflictsEncounteredCount] - Operation not supported: ${e}`);default:return at(0,`Unknown operation kind of ${e}.`)}}async recordOperationSuccessful(e){switch(e){case"Squash":return this.increment("squashSuccessfulCount");case"Reorder":return this.increment("reorderSuccessfulCount");case"Cherry-pick":return this.increment("cherryPickSuccessfulCount");case"Rebase":return;case"Merge":return void log.error(`[recordOperationSuccessful] - Operation not supported: ${e}`);default:return at(0,`Unknown operation kind of ${e}.`)}}async recordOperationSuccessfulWithConflicts(e){switch(e){case"Squash":return this.increment("squashSuccessfulWithConflictsCount");case"Reorder":return this.increment("reorderSuccessfulWithConflictsCount");case"Rebase":return this.increment("rebaseSuccessAfterConflictsCount");case"Cherry-pick":case"Merge":return void log.error(`[recordOperationSuccessfulWithConflicts] - Operation not supported: ${e}`);default:return at(0,`Unknown operation kind of ${e}.`)}}async recordOperationUndone(e){switch(e){case"Squash":return this.recordSquashUndone();case"Reorder":return this.increment("reorderUndoneCount");case"Cherry-pick":return this.increment("cherryPickUndoneCount");case"Rebase":case"Merge":return void log.error(`[recordOperationUndone] - Operation not supported: ${e}`);default:return at(0,`Unknown operation kind of ${e}.`)}}getStatFieldForRequestReviewState(e,t){return`pullRequestReview${{CHANGES_REQUESTED:"ChangesRequested",APPROVED:"Approved",COMMENTED:"Commented"}[e]}${t}`}recordPullRequestReviewStat(e,t){const n=this.getStatFieldForRequestReviewState(e,t);return this.increment(n)}recordPullRequestReviewNotificationShown(e){return this.recordPullRequestReviewStat(e,"NotificationCount")}recordPullRequestReviewNotificationClicked(e){return this.recordPullRequestReviewStat(e,"NotificationClicked")}recordPullRequestReviewDialogSwitchToPullRequest(e){return this.recordPullRequestReviewStat(e,"DialogSwitchToPullRequestCount")}increment=(e,t=1)=>this.updateDailyMeasures((n=>({[e]:n[e]+t})));async sendOptInStatusPing(e,t){const n=!e,r=void 0===t?null:!t,s=n?"in":"out";try{const e=await this.post({eventType:"ping",optIn:n,previousOptInValue:r});if(!e.ok)throw new Error(`Unexpected status: ${e.statusText} (${e.status})`);jt(FT,!0),log.info(`Opt ${s} reported.`)}catch(e){log.error(`Error reporting opt ${s}:`,e)}}}(new class extends QA{constructor(e){super(e),this.version(1).stores({launches:"++"}),this.version(2).stores({dailyMeasures:"++id"})}}("StatsDatabase"),new class{emitter=new dt.Emitter;subscriberCount=0;onActivity(e){const t=this.emitter.on("activity",e);return 0===this.subscriberCount&&this.startTracking(),this.subscriberCount++,new dt.Disposable((()=>{this.subscriberCount--,0===this.subscriberCount&&this.stopTracking(),t.dispose()}))}emit(e){this.emitter.emit("activity",e)}startTracking(){document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("keydown",this.onKeyDown),g("menu-event",this.onMenuEvent)}stopTracking(){document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("keydown",this.onKeyDown),y("menu-event",this.onMenuEvent)}onMouseDown=e=>{null!==e.target&&e.target instanceof HTMLElement&&function(e){for(;null!==e;){if(o$.has(e.nodeName))return!0;const t=e.getAttribute("role");if(null!==t&&a$.has(t))return!0;e=e instanceof HTMLElement?e.parentElement:null}return!1}(e.target)&&this.emit("pointer")};onKeyDown=e=>{this.emit("keyboard")};onMenuEvent=()=>this.emit("menu")}),fW=new class extends Jp{dataStore;secureStore;accounts=[];loadingPromise;constructor(e,t){super(),this.dataStore=e,this.secureStore=t,this.loadingPromise=this.loadFromStore()}async getAll(){return await this.loadingPromise,this.accounts.slice()}async addAccount(e){await this.loadingPromise;try{const t=Yp(e);await this.secureStore.setItem(t,e.login,e.token)}catch(t){return log.error(`Error adding account '${e.login}'`,t),this.emitError(t),null}const t=this.accounts.reduce(((e,t)=>e.set(t.endpoint,t)),new Map);return t.set(e.endpoint,e),this.accounts=ed([...t.values()]),this.save(),e}async refresh(){this.accounts=await Promise.all(this.accounts.map((e=>this.tryUpdateAccount(e)))),this.save(),this.emitUpdate(this.accounts)}async tryUpdateAccount(e){try{return await async function(e){return e.token?sr(e.endpoint,e.token):ot(`Cannot update an account which doesn't have a token: ${e.login}`)}(e)}catch(t){return log.warn(`Error refreshing account '${e.login}'`,t),e}}async removeAccount(e){await this.loadingPromise;try{await this.secureStore.deleteItem(Yp(e),e.login)}catch(t){return log.error(`Error removing account '${e.login}'`,t),void this.emitError(t)}this.accounts=this.accounts.filter((t=>!(t.endpoint===e.endpoint&&t.id===e.id))),this.save()}getMigratedGHEAccounts(e){let t=!1;const n=e.map((e=>{let n=e.endpoint;const r=new URL(n);return Mn(n)&&!r.hostname.startsWith("api.")&&(n=or(n),t=!0),{...e,endpoint:n}}));return t?n:null}async loadFromStore(){const e=this.dataStore.getItem("users");if(!e||!e.length)return;const t=JSON.parse(e),n=this.getMigratedGHEAccounts(t),r=n??t,s=[];for(const e of r){const t=new yn(e.login,e.endpoint,"",e.emails,e.avatarURL,e.id,e.name,e.plan),n=Yp(t);try{const r=await this.secureStore.getItem(n,e.login);s.push(t.withToken(r||""))}catch(e){log.error(`Error getting token for '${n}'. Skipping.`,e),this.emitError(e)}}this.accounts=ed(s),null!==n?this.save():this.emitUpdate(this.accounts)}save(){const e=this.accounts.map((e=>e.withToken("")));this.dataStore.setItem("users",JSON.stringify(e)),this.emitUpdate(this.accounts)}}(localStorage,ST),gW=new class extends Jp{accountStore;state=null;accounts=[];constructor(e){super(),this.accountStore=e,this.accountStore.getAll().then((e=>{this.accounts=e})),this.accountStore.onDidUpdate((e=>{this.accounts=e}))}emitAuthenticate(e){const t={account:e};this.emitter.emit("did-authenticate",t),this.state?.resultCallback({kind:"success",account:e})}onDidAuthenticate(e){return this.emitter.on("did-authenticate",(({account:t})=>{e(t)}))}getState(){return this.state}setState(e){this.state=e,this.emitUpdate(this.getState())}reset(){const e=this.state;this.state?.resultCallback({kind:"cancelled"}),this.setState(null),e?.kind===gT.Authentication&&e.oauthState?.onAuthError(new Error("cancelled"))}beginDotComSignIn(e){const t=ar();null!==this.state&&this.reset();const n=this.accounts.find(wn);n?this.setState({kind:gT.ExistingAccountWarning,endpoint:t,existingAccount:n,error:null,loading:!1,resultCallback:e??CT()}):this.setState({kind:gT.Authentication,endpoint:t,error:null,loading:!1,resultCallback:e??CT()})}async authenticateWithBrowser(){const e=this.state;if(e?.kind!==gT.Authentication&&e?.kind!==gT.ExistingAccountWarning)return ot(`Sign in step '${e?e.kind:"null"}' not compatible with browser authentication`);if(this.setState({...e,loading:!0}),e.kind===gT.ExistingAccountWarning){const{existingAccount:t}=e;this.accounts.find((e=>e.endpoint===t.endpoint))&&await this.accountStore.removeAccount(t)}const t=wT()();new Promise(((n,r)=>{const{endpoint:s,resultCallback:i}=e;log.info("[SignInStore] initializing OAuth flow"),this.setState({kind:gT.Authentication,endpoint:s,resultCallback:i,error:null,loading:!0,oauthState:{state:t,endpoint:s,onAuthCompleted:n,onAuthError:r}}),ut.openExternal(function(e,t){const n=ir(e),r=encodeURIComponent(Kn.join(" "));return new window.URL(`/login/oauth/authorize?client_id=${zn}&scope=${r}&state=${t}`,n).toString()}(s,t))})).then((e=>{this.state&&this.state.kind===gT.Authentication?(log.info("[SignInStore] account resolved"),this.emitAuthenticate(e),this.setState({kind:gT.Success,resultCallback:this.state.resultCallback})):log.warn("[SignInStore] account resolved but session has changed")})).catch((e=>{this.state?.kind===gT.Authentication&&this.state.oauthState?.state===t?(log.info("[SignInStore] error with OAuth flow",e),this.setState({...this.state,error:e,loading:!1})):log.info(`[SignInStore] OAuth error but session has changed: ${e}`)}))}async resolveOAuthRequest(e){if(!this.state||this.state.kind!==gT.Authentication)return;if(!this.state.oauthState)return;if(this.state.oauthState.state!==e.state)return void log.warn("requestAuthenticatedUser was not called with valid OAuth state. This is likely due to a browser reloading the callback URL. Contact GitHub Support if you believe this is an error");const{endpoint:t}=this.state,n=await async function(e,t){try{const n=ir(e),r=await Lt(n,null,"POST","login/oauth/access_token",{client_id:zn,client_secret:jn,code:t});return cr(e,r),(await Bt(r)).access_token}catch(t){return log.warn(`requestOAuthToken: failed with endpoint ${e}`,t),null}}(t,e.code);if(n){const e=await sr(t,n);this.state.oauthState.onAuthCompleted(e)}else this.state.oauthState.onAuthError(new Error("Failed retrieving authenticated user"))}beginEnterpriseSignIn(e){null!==this.state&&this.reset(),this.setState({kind:gT.EndpointEntry,error:null,loading:!1,resultCallback:e??CT()})}async setEndpoint(e){const t=this.state;if(t?.kind!==gT.EndpointEntry&&t?.kind!==gT.ExistingAccountWarning)return ot(`Sign in step '${t?t.kind:"null"}' not compatible with endpoint entry`);if(/^(?:https:\/\/)?(?:api\.)?github\.com($|\/)/.test(e))return void this.beginDotComSignIn(t.resultCallback);let n;this.setState({...t,loading:!0});try{n=function(e){const t=e.trim();if(0===t.length){const e=new Error("Unknown address");throw e.name=mT,e}let n=i.parse(t);if(n.host||(e=`https://${t}`,n=i.parse(e)),!n.protocol){const e=new Error("Invalid URL");throw e.name=mT,e}if("https:"!==n.protocol){const e=new Error("Invalid protocol");throw e.name=fT,e}return e}(e)}catch(e){let n=e;return e.name===mT?n=new Error("The GitHub Enterprise instance address doesn't appear to be a valid URL. We're expecting something like https://github.example.com."):e.name===fT&&(n=new Error("Unsupported protocol. Only https is supported when authenticating with GitHub Enterprise instances.")),void this.setState({...t,loading:!1,error:n})}const r=or(n),s=this.accounts.find((e=>e.endpoint===r));s?this.setState({kind:gT.ExistingAccountWarning,endpoint:r,existingAccount:s,error:null,loading:!1,resultCallback:t.resultCallback}):this.setState({kind:gT.Authentication,endpoint:r,error:null,loading:!1,resultCallback:t.resultCallback})}}(fW);var yW;gd.registerCommandHandler(ud.AskPass,(async e=>{if(1!==e.parameters.length)return;const t=e.parameters[0];return t.startsWith("The authenticity of host ")?async function(e,t){const n=function(e){const t=/^The authenticity of host '([^ ]+) \(([^\)]+)\)' can't be established[^.]*\.\n([^ ]+) key fingerprint is ([^.]+)\./.exec(e);return null===t||t.length<5?null:{host:t[1],ip:t[2],keyType:t[3],fingerprint:t[4]}}(t);if(null!==n)return"github.com"===n.host&&"RSA"===n.keyType&&"SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8"===n.fingerprint?"yes":Pd(e)?void log.debug("handleSSHHostAuthenticity: background task environment, skipping prompt"):await m$.promptAddingSSHHost(n.host,n.ip,n.keyType,n.fingerprint)?"yes":"no"}(e.trampolineToken,t):t.startsWith("Enter passphrase for key ")?async function(e,t){const n=/^Enter passphrase for key '(.+)': $/.exec(t);if(null===n||n.length<2)return;let r=n[1];if(/^\/\w\//.test(r)){const e=r[1];r=r.slice(2),r=`${e}:${r}`}const s=await async function(e){try{const t=await Z$(e);return ST.getItem(U$,t)}catch(e){return log.error("Could not retrieve passphrase for SSH key:",e),null}}(r);if(null!==s)return await async function(e,t){try{const n=await Z$(t);Ed(e,U$,n)}catch(e){log.error("Could not store passphrase for SSH key:",e)}}(e,r),s;if(Pd(e))return void log.debug("handleSSHKeyPassphrase: background task environment, skipping prompt");const{secret:i,storeSecret:o}=await m$.promptSSHKeyPassphrase(r);return void 0!==i&&o?async function(e,t,n){try{const r=await Z$(t);await Sd(e,U$,r,n)}catch(e){log.error("Could not store passphrase for SSH key:",e)}}(e,r,i):kd(e),i??""}(e.trampolineToken,t):t.endsWith("'s password: ")?async function(e,t){const n=/^(.+@.+)'s password: $/.exec(t);if(null===n||n.length<2)return;const r=n[1],s=await async function(e){try{return ST.getItem($$,e)}catch(e){return log.error("Could not retrieve passphrase for SSH key:",e),null}}(r);if(null!==s)return function(e,t){Ed(e,$$,t)}(e,r),s;if(Pd(e))return void log.debug("handleSSHUserPassword: background task environment, skipping prompt");const{secret:i,storeSecret:o}=await m$.promptSSHUserPassword(r);return void 0!==i&&o?async function(e,t,n){await Sd(e,$$,t,n)}(e,r,i):kd(e),i??""}(e.trampolineToken,t):void 0})),gd.registerCommandHandler(ud.CredentialHelper,(yW=fW,async e=>{const t=e.parameters.at(0);if(!t)return;const{trampolineToken:n}=e,r=W$(e.stdin);try{if("get"===t){const e=await async function(e,t,n){const r=await async function(e,t){const n=`${Id(e)}`,r=await X$(t,n);return r&&Q$(`found GitHub credential for ${n} in store`),eW(e,r)}(e,t);if(r)return r;const s=await nW(e,t),i=await t.getAll(),o=`${Id(e)}`,a=(e=>Dn(e)?ar():or(e))(o);if("generic"!==s&&!i.some((e=>e.endpoint===a))){if(Pd(n))return void J$("background task environment, skipping prompt");const t=await m$.promptForGitHubSignIn(o);return t||Td(n,o),eW(e,t)}return"generic"===s?Jv()?async function(e,t){const n=Md(t),r=await G$(e,n,iW(t));return r&&Q$(`found credential for ${Id(r)} in external helper`),r}(e,n):tW(e,n):void 0}(r,yW,n);if(!e){const e=`${Id(r)}`;Q$(`could not find credential for ${e}`),Td(n,e)}return e?V$(e):void 0}return void("store"===t?await async function(e,t,n){var r,s,i;if("generic"===await nW(e,t))return Jv()?rW(e,n):(r=K$(Id(e)),s=lt("credential missing username",e.get("username")),i=lt("credential missing password",e.get("password")),mL(r,s),fL(r,s,i))}(r,yW,n):"erase"===t&&await async function(e,t,n){var r,s;if("generic"===await nW(e,t))return Jv()?sW(e,n):(r=K$(Id(e)),s=lt("credential missing username",e.get("username")),localStorage.removeItem(dL(r)),ST.deleteItem(Xp(r),s))}(r,yW,n))}catch(e){return void((e,t)=>{log.error(`credential-helper: ${e}`,t)})(`${t} failed`,e)}}));const wW=new class extends Jp{db;lastStashCheckCache=new Map;branchProtectionSettingsFoundCache=new Map;protectionEnabledForBranchCache=new Map;emitQueued=!1;constructor(e){super(),this.db=e}async upsertGitHubRepositoryLight(e,t){return this.db.transaction("rw",this.db.gitHubRepositories,this.db.owners,(()=>this._upsertGitHubRepository(e,t,!0)))}async upsertGitHubRepository(e,t){return this.db.transaction("rw",this.db.gitHubRepositories,this.db.owners,(()=>this._upsertGitHubRepository(e,t,!1)))}async toGitHubRepository(e,t,n){if(ct(e.id,"Need db id to create GitHubRepository"),void 0===n&&null!==e.parentID){const t=await this.db.gitHubRepositories.get(e.parentID);ct(t,`Missing parent '${e.id}'`),n=await this.toGitHubRepository(t)}if(void 0===t){const n=await this.db.owners.get(e.ownerID);ct(n,`Missing owner '${e.ownerID}'`),t=new hT(n.login,n.endpoint,n.id,n.type)}const r=new Wr(e.name,t,e.id,e.private,e.htmlURL,e.cloneURL,e.issuesEnabled,e.isArchived,e.permissions,n);return Promise.resolve(r)}async toRepository(e){return ct(e.id,"can't convert to Repository without id"),new Kr(e.path,e.id,null!==e.gitHubRepositoryID?await this.findGitHubRepositoryByID(e.gitHubRepositoryID):await Promise.resolve(null),e.missing,e.alias,e.workflowPreferences,e.isTutorialRepository)}async findGitHubRepositoryByID(e){const t=await this.db.gitHubRepositories.get(e);return void 0!==t?this.toGitHubRepository(t):Promise.resolve(null)}getAll(){return this.db.transaction("r",this.db.repositories,this.db.gitHubRepositories,this.db.owners,(async()=>{const e=new Array;for(const t of await this.db.repositories.toArray())ct(t.id,"no id after loading from db"),e.push(await this.toRepository(t));return e}))}async addTutorialRepository(e,t,n){await this.db.transaction("rw",this.db.repositories,this.db.gitHubRepositories,this.db.owners,(async()=>{const r=await this.upsertGitHubRepository(t,n),s=await this.db.repositories.get({path:e});return await this.db.repositories.put({...void 0!==s?.id&&{id:s.id},path:e,alias:null,gitHubRepositoryID:r.dbID,missing:!1,lastStashCheckDate:null,isTutorialRepository:!0})})),this.emitUpdatedRepositories()}async addRepository(e,t){const n=await this.db.transaction("rw",this.db.repositories,this.db.gitHubRepositories,this.db.owners,(async()=>{const n=await this.db.repositories.get({path:e});if(void 0!==n)return await this.toRepository(n);const r={path:e,gitHubRepositoryID:null,missing:t?.missing??!1,lastStashCheckDate:null,alias:null},s=await this.db.repositories.add(r);return this.toRepository({id:s,...r})}));return this.emitUpdatedRepositories(),n}async removeRepository(e){await this.db.repositories.delete(e.id),pb(e),this.emitUpdatedRepositories()}async updateRepositoryMissing(e,t){return await this.db.repositories.update(e.id,{missing:t}),this.emitUpdatedRepositories(),new Kr(e.path,e.id,e.gitHubRepository,t,e.alias,e.workflowPreferences,e.isTutorialRepository)}async updateRepositoryAlias(e,t){await this.db.repositories.update(e.id,{alias:t}),this.emitUpdatedRepositories()}async updateRepositoryWorkflowPreferences(e,t){await this.db.repositories.update(e.id,{workflowPreferences:t}),this.emitUpdatedRepositories()}async updateRepositoryPath(e,t){return await this.db.repositories.update(e.id,{missing:!1,path:t}),this.emitUpdatedRepositories(),new Kr(t,e.id,e.gitHubRepository,!1,e.alias,e.workflowPreferences,e.isTutorialRepository)}async updateLastStashCheckDate(e,t=Date.now()){await this.db.repositories.update(e.id,{lastStashCheckDate:t}),this.lastStashCheckCache.set(e.id,t)}async getLastStashCheckDate(e){let t=this.lastStashCheckCache.get(e.id)||null;if(null!==t)return t;const n=await this.db.repositories.get(e.id);return void 0===n?ot(`'getLastStashCheckDate' - unable to find repository with ID: ${e.id}`):(t=n.lastStashCheckDate??null,null!==t&&this.lastStashCheckCache.set(e.id,t),t)}async putOwner(e,t,n){const r=uT(e,t),s=await this.db.owners.get({key:r});let i;if(void 0===s||s.login!==t||void 0!==n&&s.type!==n){i=s?.id;const o=void 0!==i?{id:i}:{};i=await this.db.owners.put({...o,key:r,endpoint:e,login:t,type:n})}else i=lt("Missing owner id",s.id);return new hT(t,e,i,n??s?.type)}async upsertGitHubRepositoryFromMatch(e){return await this.db.transaction("rw",this.db.gitHubRepositories,this.db.owners,(async()=>{const{account:t}=e,n=await this.putOwner(t.endpoint,e.owner),r=await this.db.gitHubRepositories.where("[ownerID+name]").equals([n.id,e.name]).first();if(r)return this.toGitHubRepository(r,n);const s={cloneURL:null,htmlURL:null,lastPruneDate:null,name:e.name,ownerID:n.id,parentID:null,private:null},i=await this.db.gitHubRepositories.put(s);return this.toGitHubRepository({...s,id:i},n,null)}))}async setGitHubRepository(e,t){if(Yr(e)&&e.gitHubRepository.hash===t.hash)return e;await this.db.transaction("rw",this.db.repositories,(()=>this.db.repositories.update(e.id,{gitHubRepositoryID:t.dbID}))),this.emitUpdatedRepositories();const n=new Kr(e.path,e.id,t,e.missing,e.alias,e.workflowPreferences,e.isTutorialRepository);return Yr(n)||ot("Repository must be GitHub repository"),n}async _upsertGitHubRepository(e,t,n=!1){const r="parent"in t&&void 0!==t.parent?await this._upsertGitHubRepository(e,t.parent,!0):await Promise.resolve(null),{login:s,type:i}=t.owner,o=await this.putOwner(e,s,i),a=await this.db.gitHubRepositories.where("[ownerID+name]").equals([o.id,t.name]).first(),l=function(e){const t="permissions"in e?e.permissions:void 0;return void 0===t?null:t.admin?"admin":t.push?"write":t.pull?"read":null}(t)??a?.permissions??void 0,c=n?a?.parentID??null:r?.dbID??null,u={...void 0!==a?.id&&{id:a.id},ownerID:o.id,name:t.name,private:t.private,htmlURL:t.html_url,cloneURL:t.clone_url,parentID:c,lastPruneDate:a?.lastPruneDate??null,issuesEnabled:t.has_issues,isArchived:t.archived,permissions:l};if(void 0!==a&&wp(a,u))return this.toGitHubRepository(a,o,r);const h=await this.db.gitHubRepositories.put(u);return this.emitUpdatedRepositories(),this.toGitHubRepository({...u,id:h},o,r)}async updateBranchProtections(e,t){const n=e.dbID;await this.db.transaction("rw",this.db.protectedBranches,(async()=>{const e=dT(n);for(const t of this.protectionEnabledForBranchCache.keys())t.startsWith(e)&&this.protectionEnabledForBranchCache.delete(t);const r=t.map((e=>({repoId:n,name:e.name})));for(const e of r){const t=pT(n,e.name);this.protectionEnabledForBranchCache.set(t,!0)}await this.db.protectedBranches.where("repoId").equals(n).delete();const s=r.length>0;this.branchProtectionSettingsFoundCache.set(n,s),r.length>0&&await this.db.protectedBranches.bulkAdd(r)}))}async updateLastPruneDate(e,t){await this.db.gitHubRepositories.update(e.gitHubRepository.dbID,{lastPruneDate:t})}async getLastPruneDate(e){const t=e.gitHubRepository.dbID,n=await this.db.gitHubRepositories.get(t);return void 0===n?ot(`getLastPruneDate: No such GitHub repository: ${t}`):n.lastPruneDate}async loadAndCacheBranchProtection(e){const t=await this.db.protectedBranches.where("repoId").equals(e).toArray(),n=t.length>0;this.branchProtectionSettingsFoundCache.set(e,n);for(const n of t){const t=pT(e,n.name);this.protectionEnabledForBranchCache.set(t,!0)}return n}async hasBranchProtectionsConfigured(e){const t=this.branchProtectionSettingsFoundCache.get(e.dbID);return void 0===t?this.loadAndCacheBranchProtection(e.dbID):t}emitUpdatedRepositories(){this.emitQueued||(setImmediate((()=>{this.getAll().then((e=>this.emitUpdate(e))).catch((e=>log.error("Failed emitting update",e))).finally((()=>this.emitQueued=!1))})),this.emitQueued=!0)}}(new class extends oT{constructor(e,t){super(e,t),this.conditionalVersion(1,{repositories:"++id, &path",gitHubRepositories:"++id, name",owners:"++id, login"}),this.conditionalVersion(2,{owners:"++id, &[endpoint+login]"}),this.conditionalVersion(3,{},aT),this.conditionalVersion(4,{gitHubRepositories:"++id, name, &[ownerID+name]"}),this.conditionalVersion(5,{gitHubRepositories:"++id, name, &[ownerID+name], cloneURL"}),this.conditionalVersion(6,{protectedBranches:"[repoId+name], repoId"}),this.conditionalVersion(7,{gitHubRepositories:"++id, &[ownerID+name]"}),this.conditionalVersion(8,{},lT),this.conditionalVersion(9,{owners:"++id, &key"},cT)}}("Database")),bW=new class{db;repositoryStore;emitter=new dt.Emitter;currentRefreshOperations=new Map;lastRefreshForRepository=new Map;constructor(e,t){this.db=e,this.repositoryStore=t}emitPullRequestsChanged(e,t){this.emitter.emit("onPullRequestsChanged",{repository:e,pullRequests:t})}onPullRequestsChanged(e){return this.emitter.on("onPullRequestsChanged",(t=>{const{repository:n,pullRequests:r}=t;e(n,r)}))}refreshPullRequests(e,t){const n=this.currentRefreshOperations.get(e.dbID);if(void 0!==n)return n;this.lastRefreshForRepository.set(e.dbID,Date.now());const r=this.fetchAndStorePullRequests(e,t).catch((t=>{log.error(`Error refreshing pull requests for '${e.fullName}'`,t)})).then((()=>{this.currentRefreshOperations.delete(e.dbID)}));return this.currentRefreshOperations.set(e.dbID,r),r}async fetchAndStorePullRequests(e,t){const n=rr.fromAccount(t),r=await this.db.getLastUpdated(e);return r?this.fetchAndStoreUpdatedPullRequests(n,e,r):this.fetchAndStoreOpenPullRequests(n,e)}async fetchAndStoreOpenPullRequests(e,t){const{name:n,owner:r}=kT(t),s=await e.fetchAllOpenPullRequests(r,n);await this.storePullRequestsAndEmitUpdate(s,t)}async fetchAndStoreUpdatedPullRequests(e,t,n){const{name:r,owner:s}=kT(t),i=await e.fetchUpdatedPullRequests(s,r,n).catch((e=>e instanceof Yn||e instanceof Nt?Promise.resolve(null):Promise.reject(e)));if(null!==i)return await this.storePullRequestsAndEmitUpdate(i,t);await this.db.deleteAllPullRequestsInRepository(t),await this.fetchAndStoreOpenPullRequests(e,t)}getLastRefreshed(e){return e.dbID?this.lastRefreshForRepository.get(e.dbID):void 0}async getAll(e){const t=await this.db.getAllPullRequestsInRepository(e),n=new Array,r=this.repositoryStore,s=At()(r.findGitHubRepositoryByID.bind(r));for(const e of t){const t=await s(e.head.repoId),r=await s(e.base.repoId);if(null===t)return ot("head repository can't be null");if(null===r)return ot("base repository can't be null");n.push(new bm(new Date(e.createdAt),e.title,e.number,new wm(e.head.ref,e.head.sha,t),new wm(e.base.ref,e.base.sha,r),e.author,e.draft??!1,e.body))}return n.reverse()}async storePullRequestsAndEmitUpdate(e,t){await this.storePullRequests(e,t)&&this.emitPullRequestsChanged(t,await this.getAll(t))}async storePullRequests(e,t){if(0===e.length)return!1;let n=e[0].updated_at;const r=new Array,s=new Array,{endpoint:i}=t,o=this.repositoryStore,a=At()(o.upsertGitHubRepositoryLight.bind(o),{cacheKey:(e,t)=>t.clone_url});for(const o of e){if(o.updated_at>n&&(n=o.updated_at),null===o.base.repo)return ot("PR cannot have a null base repo");const e=await a(i,o.base.repo);if("closed"===o.state){r.push(ET(e,o.number));continue}if(null==o.head.repo){log.debug(`Unable to store pull request #${o.number} for repository ${t.fullName} as it has no head repository associated with it`),r.push(ET(e,o.number));continue}const l=await a(i,o.head.repo);s.push({number:o.number,title:o.title,createdAt:o.created_at,updatedAt:o.updated_at,head:{ref:o.head.ref,sha:o.head.sha,repoId:l.dbID},base:{ref:o.base.ref,sha:o.base.sha,repoId:e.dbID},body:o.body,author:o.user.login,draft:o.draft??!1})}if(0===r.length&&1===s.length){const e=s[0],n=await this.db.getPullRequest(t,e.number);if(void 0!==n&&yp(e,n))return!1}return await this.db.transaction("rw",this.db.pullRequests,this.db.pullRequestsLastUpdated,(async()=>{await this.db.deletePullRequests(r),await this.db.putPullRequests(s),await this.db.setLastUpdated(t,new Date(n))})),!0}}(new class extends oT{constructor(e,t){super(e,t),this.conditionalVersion(1,{pullRequests:"id++, base.repoId"}),this.conditionalVersion(2,{pullRequestStatus:"id++, &[sha+pullRequestId]"}),this.conditionalVersion(3,{pullRequestStatus:"id++, &[sha+pullRequestId], pullRequestId"}),this.conditionalVersion(4,{}),this.conditionalVersion(5,{pullRequestStatus:null}),this.conditionalVersion(6,{pullRequests:null}),this.conditionalVersion(7,{pullRequests:"[base.repoId+number]",pullRequestsLastUpdated:"repoId"}),this.conditionalVersion(8,{},(async e=>{e.table("pullRequests").clear(),e.table("pullRequestsLastUpdated").clear()})),this.conditionalVersion(9,{},(async e=>{e.table("pullRequests").clear(),e.table("pullRequestsLastUpdated").clear()}))}async deleteAllPullRequestsInRepository(e){await this.transaction("rw",this.pullRequests,this.pullRequestsLastUpdated,(async()=>{await this.clearLastUpdated(e),await this.pullRequests.where("[base.repoId+number]").between([e.dbID],[e.dbID+1]).delete()}))}async deletePullRequests(e){await this.pullRequests.bulkDelete(e)}async putPullRequests(e){await this.pullRequests.bulkPut(e)}getAllPullRequestsInRepository(e){return this.pullRequests.where("[base.repoId+number]").between([e.dbID],[e.dbID+1]).toArray()}getPullRequest(e,t){return this.pullRequests.get([e.dbID,t])}async getLastUpdated(e){const t=await this.pullRequestsLastUpdated.get(e.dbID);return t?new Date(t.lastUpdated):null}async clearLastUpdated(e){await this.pullRequestsLastUpdated.delete(e.dbID)}async setLastUpdated(e,t){await this.pullRequestsLastUpdated.put({repoId:e.dbID,lastUpdated:t.getTime()})}}("PullRequestDatabase"),wW),CW=new class{pullRequestStore;repositoriesStore;currentPullRequestUpdater=null;repositories;prCache=new Map;emitter=new dt.Emitter;constructor(e,t){this.pullRequestStore=e,this.repositoriesStore=t,this.repositoriesStore.onDidUpdate((e=>{this.repositories=Promise.resolve(e.filter(Yr))})),this.repositories=this.repositoriesStore.getAll().then((e=>e.filter(Yr))).catch((e=>(log.error("PullRequestCoordinator: Error loading repositories",e),[])))}onPullRequestsChanged(e){return this.pullRequestStore.onPullRequestsChanged((async(t,n)=>{this.prCache.set(t.dbID,n);const r=TT(t,await this.repositories);for(const t of r)e(t,n)}))}onIsLoadingPullRequests(e){return this.emitter.on("onIsLoadingPullRequest",(t=>{const{repository:n,isLoadingPullRequests:r}=t;e(n,r)}))}async refreshPullRequests(e,t){const n=es(e),r=TT(n,await this.repositories);for(const e of r)this.emitIsLoadingPullRequests(e,!0);await this.pullRequestStore.refreshPullRequests(n,t);for(const e of r)this.emitIsLoadingPullRequests(e,!1)}getLastRefreshed(e){const t=es(e);return this.pullRequestStore.getLastRefreshed(t)}async getAllPullRequests(e){return this.getPullRequestsFor(es(e))}startPullRequestUpdater(e,t){null!==this.currentPullRequestUpdater&&this.stopPullRequestUpdater(),this.currentPullRequestUpdater=new AT(e,t,this),this.currentPullRequestUpdater.start()}stopPullRequestUpdater(){null!==this.currentPullRequestUpdater&&(this.currentPullRequestUpdater.stop(),this.currentPullRequestUpdater=null)}emitIsLoadingPullRequests(e,t){this.emitter.emit("onIsLoadingPullRequest",{repository:e,isLoadingPullRequests:t})}async getPullRequestsFor(e){return this.prCache.has(e.dbID)||this.prCache.set(e.dbID,await this.pullRequestStore.getAll(e)),this.prCache.get(e.dbID)||[]}}(bW,wW),vW=new class{statsStore;repositoryState=new Map;constructor(e){this.statsStore=e}get(e){const t=this.repositoryState.get(e.hash);if(null!=t)return t;const n={commitSelection:{shas:[],shasInDiff:[],isContiguous:!0,file:null,changesetData:{files:[],linesAdded:0,linesDeleted:0},diff:null},changesState:{workingDirectory:sh.fromFiles(new Array),selection:{kind:et.WorkingDirectory,selectedFileIDs:[],diff:null},commitMessage:Yw,coAuthors:[],showCoAuthoredBy:!1,conflictState:null,stashEntry:null,currentBranchProtected:!1,currentRepoRulesInfo:new qv,fileListFilter:{filterText:"",isIncludedInCommit:!1,isNewFile:!1,isModifiedFile:!1,isDeletedFile:!1,isExcludedFromCommit:!1}},selectedSection:Je.Changes,branchesState:{tip:{kind:zr.Unknown},defaultBranch:null,upstreamDefaultBranch:null,allBranches:new Array,recentBranches:new Array,openPullRequests:new Array,currentPullRequest:null,isLoadingPullRequests:!1,forcePushBranches:new Map},compareState:{formState:{kind:tt.History},tip:null,mergeStatus:null,showBranchList:!1,filterText:"",commitSHAs:[],shasToHighlight:[],branches:new Array,recentBranches:new Array,defaultBranch:null},pullRequestState:null,commitAuthor:null,commitLookup:new Map,localCommitSHAs:[],localTags:null,tagsToPush:null,aheadBehind:null,remote:null,isPushPullFetchInProgress:!1,isCommitting:!1,isGeneratingCommitMessage:!1,commitToAmend:null,lastFetched:null,checkoutProgress:null,pushPullFetchProgress:null,revertProgress:null,multiCommitOperationUndoState:null,multiCommitOperationState:null};return this.repositoryState.set(e.hash,n),n}update(e,t){const n=this.get(e),r=Zp(n,t(n)),s=n.branchesState.tip,i=r.branchesState.tip,o=null!==r.commitToAmend&&i.kind===zr.Valid&&s.kind===zr.Valid&&s.branch.tip.sha===i.branch.tip.sha&&i.branch.tip.sha===r.commitToAmend.sha&&null===r.changesState.conflictState;this.repositoryState.set(e.hash,{...r,commitToAmend:o?r.commitToAmend:null})}updateCompareState(e,t){this.update(e,(e=>{const n=e.compareState;return{compareState:Zp(n,t(n))}}))}updateChangesState(e,t){this.update(e,(e=>{const n=e.changesState,r=Zp(n,t(n));return this.recordSubmoduleDiffViewedFromChangesListIfNeeded(n,r),{changesState:r}}))}recordSubmoduleDiffViewedFromChangesListIfNeeded(e,t){if(t.selection.kind!==et.WorkingDirectory||1!==t.selection.selectedFileIDs.length)return;const n=t.workingDirectory.findFileWithID(t.selection.selectedFileIDs[0]);null!==n&&void 0!==n.status.submoduleStatus&&(e.selection.kind===et.WorkingDirectory&&1===e.selection.selectedFileIDs.length&&e.selection.selectedFileIDs[0]===n.id||this.statsStore.increment("submoduleDiffViewedFromChangesListCount"))}updateCommitSelection(e,t){this.update(e,(e=>{const{commitSelection:n}=e,r=Zp(n,t(n));return this.recordSubmoduleDiffViewedFromHistoryIfNeeded(n,r),{commitSelection:r}}))}recordSubmoduleDiffViewedFromHistoryIfNeeded(e,t){e.file?.id!==t.file?.id&&void 0!==t.file?.status.submoduleStatus&&this.statsStore.increment("submoduleDiffViewedFromHistoryCount")}updateBranchesState(e,t){this.update(e,(e=>{const n=e.branchesState;return{branchesState:Zp(n,t(n))}}))}updateMultiCommitOperationUndoState(e,t){this.update(e,(e=>{const{multiCommitOperationUndoState:n}=e,r=t(n);return{multiCommitOperationUndoState:null===r?null:Zp(n,r)}}))}updateMultiCommitOperationState(e,t){this.update(e,(e=>{const{multiCommitOperationState:n}=e,r=t(n);if(null===n){const e=`Cannot update a null state, trying to update object with keys: ${Object.keys(r).join(", ")}`;return QT("multiCommitOperation",new Error(e)),{multiCommitOperationState:null}}return{multiCommitOperationState:Zp(n,r)}}))}initializeMultiCommitOperationState(e,t){this.update(e,(()=>({multiCommitOperationState:t})))}clearMultiCommitOperationState(e){this.update(e,(()=>({multiCommitOperationState:null})))}initializePullRequestState(e,t){this.update(e,(()=>({pullRequestState:t})))}sendPullRequestStateNotExistsException(){QT("PullRequestState",new Error("Cannot update a null pull request state"))}updatePullRequestState(e,t){const{pullRequestState:n}=this.get(e);null!==n?this.update(e,(e=>{const n=e.pullRequestState;return{pullRequestState:null===n?null:Zp(n,t(n))}})):this.sendPullRequestStateNotExistsException()}updatePullRequestCommitSelection(e,t){const{pullRequestState:n}=this.get(e);if(null===n)return void this.sendPullRequestStateNotExistsException();const r=n.commitSelection,s=null===r?null:Zp(r,t(r));this.updatePullRequestState(e,(()=>({commitSelection:s})))}clearPullRequestState(e){this.update(e,(()=>({pullRequestState:null})))}}(mW),SW=new class extends Qp{accountState=new Map;constructor(e){super(),e.onDidUpdate(this.onAccountsChanged)}onAccountsChanged=e=>{const t=new Map;for(const n of e)for(const[e,r]of this.accountState.entries())if(gn(e,n)){t.set(n,r);break}this.accountState=t,this.emitUpdate()};updateAccount(e,t){const n=new Map(this.accountState),r=l$(e,n),s=n.get(r),i=Zp(void 0===s?{loading:!1,repositories:[]}:s,t);n.set(r,i),this.accountState=n,this.emitUpdate()}getAccountState(e){return this.accountState.get(l$(e,this.accountState))}async loadRepositories(e){const t=this.getAccountState(e);if(t?.loading)return;this.updateAccount(e,{loading:!0});const n=new Map,r=new Map;t?.repositories.forEach((e=>{n.set(e.clone_url,e),r.set(e.clone_url,e)}));const s=t=>{t.forEach((e=>{r.set(e.clone_url,e),n.delete(e.clone_url)})),this.updateAccount(e,{repositories:[...r.values()]})},i=rr.fromAccount(l$(e,this.accountState));await i.streamUserRepositories(s,void 0,{continue:async()=>(await Promise.all([i.streamUserRepositories(s,"owner"),i.streamUserRepositories(s,"collaborator"),i.streamUserRepositories(s,"organization_member")]),!1)}),n.size&&(n.forEach(((e,t)=>r.delete(t))),this.updateAccount(e,{repositories:[...r.values()]})),this.updateAccount(e,{loading:!1})}getState(){return this.accountState}}(fW),EW=new class{accounts=[];backgroundRefreshHandle=null;refreshQueued=!1;subscriptions=new Map;cache=new(xt())({maxSize:250});queue=new Set;limit=u$()(6);constructor(e){e.getAll().then(this.onAccountsUpdated),e.onDidUpdate(this.onAccountsUpdated)}onAccountsUpdated=e=>{this.accounts=e};startBackgroundRefresh(){null===this.backgroundRefreshHandle&&(this.backgroundRefreshHandle=window.setInterval((()=>this.queueRefresh()),18e4),this.queueRefresh())}stopBackgroundRefresh(){null!==this.backgroundRefreshHandle&&(window.clearInterval(this.backgroundRefreshHandle),this.backgroundRefreshHandle=null)}queueRefresh(){this.refreshQueued||(this.refreshQueued=!0,setImmediate((()=>{this.refreshQueued=!1,this.refreshEligibleSubscriptions()})))}refreshEligibleSubscriptions(){for(const e of this.subscriptions.keys()){if(this.queue.has(e))continue;const t=this.cache.get(e);t&&!p$(t)||(this.limit((()=>this.refreshSubscription(e))).catch((e=>log.error("Failed refreshing commit status",e))).then((()=>this.queue.delete(e))),this.queue.add(e))}}async manualRefreshSubscription(e,t,n){const r=h$(e,t),s=this.subscriptions.get(r);if(void 0===s)return;const i=this.cache.get(r)?.check;if(null==i)return;const o=function(e,t){const n=[];for(const r of e){const e=t.find((e=>r.id===e.id));void 0!==e?n.push({...r,status:Xn.InProgress,conclusion:null,actionJobSteps:r.actionJobSteps?.map((e=>({...e,status:Xn.InProgress,conclusion:null})))}):n.push(r)}return mC(n)}(i.checks,n);this.cache.set(r,{check:o,fetchedAt:new Date}),s.callbacks.forEach((e=>e(o)))}async refreshSubscription(e){const t=this.subscriptions.get(e);if(void 0===t)return;const{endpoint:n,owner:r,name:s,ref:i}=t,o=this.accounts.find((e=>e.endpoint===n));if(void 0===o)return;const a=rr.fromAccount(o),[l,c]=await Promise.all([a.fetchCombinedRefStatus(r,s,i),a.fetchRefCheckRuns(r,s,i)]),u=new Array;if(null===l&&null===c){const t=this.cache.get(e),n=t?.check??null;return void this.cache.set(e,{check:n,fetchedAt:new Date})}if(null!==l&&u.push(...l.statuses.map(cC)),null!==c){const e=wC(c.check_runs);u.push(...e.map(dC))}let h=null;void 0!==t.branchName&&(h=await this.getAndMapActionWorkflowRunsToCheckRuns(u,e,t.branchName));const p=mC(h??u);this.cache.set(e,{check:p,fetchedAt:new Date}),t.callbacks.forEach((e=>e(p)))}async getAndMapActionWorkflowRunsToCheckRuns(e,t,n){const r=this.cache.get(t);if(void 0!==r&&null!==r.check&&r.check.checks.some((e=>void 0!==e.actionsWorkflow))&&0===QI()(r.check.checks.map((e=>e.id)),e.map((e=>e.id))).length){const t=new Array;for(const n of e){const e=r.check.checks.find((e=>e.id===n.id));if(void 0===e){t.push(n);continue}const{actionsWorkflow:s,actionJobSteps:i}=e;t.push({...n,actionsWorkflow:s,actionJobSteps:i})}return t}const s=await this.getCheckRunActionsWorkflowRuns(t,n,e);return await this.mapActionWorkflowRunsJobsToCheckRuns(t,s)}tryGetStatus(e,t,n){const r=h$(e,t);return void 0!==n&&this.subscriptions.get(r)?.branchName!==n?null:this.cache.get(r)?.check??null}getOrCreateSubscription(e,t,n){const r=h$(e,t);let s=this.subscriptions.get(r);if(void 0!==s){if(s.branchName===n)return s;const e={...s,branchName:n};this.subscriptions.set(r,e);const t=this.cache.get(r);return void 0!==t&&this.cache.set(r,{...t,fetchedAt:new Date(It(-61,"minutes"))}),e}return s={endpoint:e.endpoint,owner:e.owner.login,name:e.name,ref:t,callbacks:new Set,branchName:n},this.subscriptions.set(r,s),s}subscribe(e,t,n,r){const s=h$(e,t),i=this.getOrCreateSubscription(e,t,r);return i.callbacks.add(n),this.queueRefresh(),new dt.Disposable((()=>{i.callbacks.delete(n),0===i.callbacks.size&&this.subscriptions.delete(s)}))}async getCheckRunActionsWorkflowRuns(e,t,n){const r=this.subscriptions.get(e);if(void 0===r)return n;const{endpoint:s,owner:i,name:o}=r,a=this.accounts.find((e=>e.endpoint===s));return void 0===a?n:CC(a,i,o,t,n)}async mapActionWorkflowRunsJobsToCheckRuns(e,t){const n=this.subscriptions.get(e);if(void 0===n)return t;const{endpoint:r,owner:s,name:i}=n,o=this.accounts.find((e=>e.endpoint===r));return void 0===o?t:bC(rr.fromAccount(o),s,i,t)}async rerequestCheckSuite(e,t){const{owner:n,name:r}=e,s=lr(this.accounts,e.endpoint);return null!==s&&rr.fromAccount(s).rerequestCheckSuite(n.login,r,t)}async rerunJob(e,t){const{owner:n,name:r}=e,s=lr(this.accounts,e.endpoint);return null!==s&&rr.fromAccount(s).rerunJob(n.login,r,t)}async rerunFailedJobs(e,t){const{owner:n,name:r}=e,s=lr(this.accounts,e.endpoint);return null!==s&&rr.fromAccount(s).rerunFailedJobs(n.login,r,t)}async fetchCheckSuite(e,t){const{owner:n,name:r}=e,s=lr(this.accounts,e.endpoint);return null===s?null:rr.fromAccount(s).fetchCheckSuite(n.login,r,t)}}(fW),kW=new class{cache=new(xt())({maxSize:2500});workers=new Map;limit=u$()(1);tryGetAheadBehind(e,t,n){return this.cache.get(d$(e,t,n))??void 0}getAheadBehind(e,t,n,r){const s=d$(e,t,n),i=this.cache.get(s),o=new dt.Disposable((()=>{}));return null===i?o:void 0!==i?(r(i),o):(this.limit((async()=>{const i=this.cache.get(s);if(o.disposed||null===i)return;if(void 0!==i)return void r(i);let a=this.workers.get(s);void 0===a&&(a=gy(e,fy(t,n)).catch((e=>(log.error("Failed calculating ahead/behind status",e),null))).then((e=>(this.cache.set(s,e),e))).finally((()=>this.workers.delete(s))),this.workers.set(s,a));const l=await a;null===l||o.disposed||r(l)})).catch((e=>log.error("Failed calculating ahead/behind status",e))),o)}},RW=new class{accountsStore;ALIVE_EVENT_RECEIVED_EVENT="alive-event-received";sessionPerEndpoint=new Map;emitter=new dt.Emitter;subscriptions=[];enabled=!1;accountSubscriptionPromise=null;constructor(e){this.accountsStore=e,this.accountsStore.onDidUpdate(this.subscribeToAccounts)}setEnabled(e){this.enabled!==e&&(this.enabled=e,e?this.subscribeToAllAccounts():this.unsubscribeFromAllAccounts())}onAliveEventReceived(e){this.emitter.on(this.ALIVE_EVENT_RECEIVED_EVENT,e)}async subscribeToAllAccounts(){const e=await this.accountsStore.getAll();this.subscribeToAccounts(e)}async unsubscribeFromAllAccounts(){await this.accountSubscriptionPromise;const e=this.subscriptions.map((e=>e.account));for(const t of e)this.unsubscribeFromAccount(t)}subscribeToAccounts=async e=>{this.enabled&&(await this.accountSubscriptionPromise,this.accountSubscriptionPromise=this._subscribeToAccounts(e))};async _subscribeToAccounts(e){const t=this.subscriptions.map((e=>e.account));for(const n of t)B$(n,e)||this.unsubscribeFromAccount(n);for(const n of e)B$(n,t)||await this.subscribeToAccount(n)}sessionForAccount(e){return this.sessionPerEndpoint.get(e.endpoint)}async createSessionForAccount(e){const t=this.sessionForAccount(e);if(void 0!==t)return t;const n=rr.fromAccount(e);let r=null;try{r=await n.getAliveWebSocketURL()}catch(t){return log.error(`Could not get Alive web socket URL for '${e.login}'`,t),null}if(null===r)return null;const s={session:new L$(r,(()=>n.getAliveWebSocketURL()),!1,this.notify),webSocketUrl:r};return this.sessionPerEndpoint.set(e.endpoint,s),s}unsubscribeFromAccount(e){const t=this.sessionForAccount(e);if(void 0===t)return;const n=this.subscriptions.find((t=>gn(t.account,e)));void 0!==n&&(t.session.unsubscribe([n.subscription]),this.subscriptions=this.subscriptions.filter((t=>!gn(t.account,e))),this.sessionPerEndpoint.delete(e.endpoint),t.session.offline(),log.info(`Unubscribed '${e.login}' from Alive channel`))}subscribeToAccount=async e=>{if(!Hn(e.endpoint))return;const t=await this.createSessionForAccount(e),n=rr.fromAccount(e),r=await n.getAliveDesktopChannel();if(null===t||null===r)return;const s={subscriber:this,topic:{name:r.channel_name,signed:r.signed_channel,offset:""}};t.session.subscribe([s]),this.subscriptions.push({account:e,subscription:s}),log.info(`Subscribed '${e.login}' to Alive channel`)};notify=(e,t)=>{if("message"!==t.type)return;const n=t.data;"pr-checks-failed"!==n.type&&"pr-review-submit"!==n.type&&"pr-comment"!==n.type||this.emitter.emit(this.ALIVE_EVENT_RECEIVED_EVENT,n)}}(fW),AW=new class{accountsStore;aliveStore;pullRequestCoordinator;statsStore;repository=null;recentRepositories=[];onChecksFailedCallback=null;onPullRequestReviewSubmitCallback=null;onPullRequestCommentCallback=null;cachedCommits=new Map;skipCommitShas=new Set;skipCheckRuns=new Set;constructor(e,t,n,r){this.accountsStore=e,this.aliveStore=t,this.pullRequestCoordinator=n,this.statsStore=r,this.aliveStore.setEnabled(IC()),this.aliveStore.onAliveEventReceived(this.onAliveEventReceived)}setNotificationsEnabled(e){zt(PC,!0)!==e&&(jt(PC,e),this.aliveStore.setEnabled(e))}onAliveEventReceived=async e=>this.handleAliveEvent(e,!1);onNotificationEventReceived=async(e,t,n)=>this.handleAliveEvent(n,!0);simulateAliveEvent(e){}async handleAliveEvent(e,t){switch(e.type){case"pr-checks-failed":return this.handleChecksFailedEvent(e,t);case"pr-review-submit":return this.handlePullRequestReviewSubmitEvent(e,t);case"pr-comment":return this.handlePullRequestCommentEvent(e,t)}}async handlePullRequestCommentEvent(e,t){const n=this.repository;if(null===n)return;if(!this.isValidRepositoryForEvent(n,e))return void(this.isRecentRepositoryEvent(e)?this.statsStore.increment("pullRequestCommentNotificationFromRecentRepoCount"):this.statsStore.increment("pullRequestCommentNotificationFromNonRecentRepoCount"));const r=(await this.pullRequestCoordinator.getAllPullRequests(n)).find((t=>t.pullRequestNumber===e.pull_request_number));if(void 0===r)return;const s=await this.getAPIForRepository(n.gitHubRepository);if(null===s)return;const i="issue-comment"===e.subtype?await s.fetchIssueComment(e.owner,e.repo,e.comment_id):await s.fetchPullRequestReviewComment(e.owner,e.repo,e.comment_id);if(null===i)return;const o=`@${i.user.login} commented on your pull request`,a=`${r.title} #${r.pullRequestNumber}\n${DC(i.body,50)}`,l=()=>{this.statsStore.increment("pullRequestCommentNotificationClicked"),this.onPullRequestCommentCallback?.(n,r,i)};t?l():(xC({title:o,body:a,userInfo:e,onClick:l}),this.statsStore.increment("pullRequestCommentNotificationCount"))}async handlePullRequestReviewSubmitEvent(e,t){const n=this.repository;if(null===n)return;if(!this.isValidRepositoryForEvent(n,e))return void(this.isRecentRepositoryEvent(e)?this.statsStore.increment("pullRequestReviewNotificationFromRecentRepoCount"):this.statsStore.increment("pullRequestReviewNotificationFromNonRecentRepoCount"));const r=(await this.pullRequestCoordinator.getAllPullRequests(n)).find((t=>t.pullRequestNumber===e.pull_request_number));if(void 0===r)return;const s=this.getContributingRepository(n),i=await this.getAPIForRepository(s);if(null===i)return;const o=await i.fetchPullRequestReview(s.owner.login,s.name,r.pullRequestNumber.toString(),e.review_id);if(null===o||!MC(o))return;const a=iC(o),l=`@${o.user.login} ${a} your pull request`,c=`${r.title} #${r.pullRequestNumber}\n${DC(o.body,50)}`,u=()=>{this.statsStore.recordPullRequestReviewNotificationClicked(o.state),this.onPullRequestReviewSubmitCallback?.(n,r,o)};t?u():(xC({title:l,body:c,userInfo:e,onClick:u}),this.statsStore.recordPullRequestReviewNotificationShown(o.state))}async handleChecksFailedEvent(e,t){const n=this.repository;if(null===n)return;if(!this.isValidRepositoryForEvent(n,e))return void(this.isRecentRepositoryEvent(e)?this.statsStore.increment("checksFailedNotificationFromRecentRepoCount"):this.statsStore.increment("checksFailedNotificationFromNonRecentRepoCount"));const r=(await this.pullRequestCoordinator.getAllPullRequests(n)).find((t=>t.pullRequestNumber===e.pull_request_number));if(void 0===r)return;const s=await this.getAccountForRepository(n.gitHubRepository);if(null===s)return;const i=e.commit_sha;if(this.skipCommitShas.has(i))return;const o=this.cachedCommits.get(i)??await Lf(n,i);if(null===o)return void this.skipCommitShas.add(i);if(this.cachedCommits.set(i,o),!s.emails.map((e=>e.email)).includes(o.author.email))return void this.skipCommitShas.add(i);const a=this.getContributingRepository(n),l=await this.getChecksForRef(a,ym(r.pullRequestNumber));if(null===l)return;if(l.flatMap((t=>t.checkSuiteId===e.check_suite_id?t.id:[])).every((e=>this.skipCheckRuns.has(e))))return;const c=l.filter((e=>e.conclusion===Qn.Failure)).length;if(0===c)return;for(const e of l)this.skipCheckRuns.add(e.id);const u=1===c?"check was":"checks were",h=fm(i),p=`${r.title} #${r.pullRequestNumber} (${h})\n${c} ${u} not successful.`,d=()=>{this.statsStore.increment("checksFailedNotificationClicked"),this.onChecksFailedCallback?.(n,r,l)};t?d():(xC({title:"拉取请求检查失败",body:p,userInfo:e,onClick:d}),this.statsStore.increment("checksFailedNotificationCount"))}getContributingRepository(e){return Xr(e)&&ts(e)===qr.Parent?e.gitHubRepository.parent:e.gitHubRepository}isValidRepositoryForEvent(e,t){if(Xr(e)&&ts(e)===qr.Parent){const n=e.gitHubRepository.parent;return n.owner.login===t.owner&&n.name===t.repo}const n=e.gitHubRepository;return n.owner.login===t.owner&&n.name===t.repo}isRecentRepositoryEvent(e){return this.recentRepositories.some((t=>Yr(t)&&this.isValidRepositoryForEvent(t,e)))}selectRepository(e){e.hash!==this.repository?.hash&&(this.repository=Yr(e)?e:null,this.resetCache())}resetCache(){this.cachedCommits.clear(),this.skipCommitShas.clear(),this.skipCheckRuns.clear()}setRecentRepositories(e){this.recentRepositories=e}async getAccountForRepository(e){const{endpoint:t}=e;return(await this.accountsStore.getAll()).find((e=>e.endpoint===t))??null}async getAPIForRepository(e){const t=await this.getAccountForRepository(e);return null===t?null:rr.fromAccount(t)}async getChecksForRef(e,t){const{owner:n,name:r}=e,s=await this.getAPIForRepository(e);if(null===s)return null;const[i,o]=await Promise.all([s.fetchCombinedRefStatus(n.login,r,t,!0),s.fetchRefCheckRuns(n.login,r,t,!0)]),a=new Array;if(null===i||null===o)return null;if(null!==i&&a.push(...i.statuses.map(cC)),null!==o){const e=wC(o.check_runs);a.push(...e.map(dC))}const l=mC(a);return null===l||0===l.checks.length?null:l.checks}onChecksFailedNotification(e){this.onChecksFailedCallback=e}onPullRequestReviewSubmitNotification(e){this.onPullRequestReviewSubmitCallback=e}onPullRequestCommentNotification(e){this.onPullRequestCommentCallback=e}}(fW,RW,CW,mW),TW=new class{accountsStore;notificationsStore;pullRequestCoordinator;cachedComments=new Map;cachedReviews=new Map;constructor(e,t,n){this.accountsStore=e,this.notificationsStore=t,this.pullRequestCoordinator=n}async getAccountForRepository(e){const{endpoint:t}=e;return(await this.accountsStore.getAll()).find((e=>e.endpoint===t))??null}async getAPIForRepository(e){const t=await this.getAccountForRepository(e);return null===t?null:rr.fromAccount(t)}async getPullRequests(e,t){const n=await this.pullRequestCoordinator.getAllPullRequests(e);if(!t.filterByComments&&!t.filterByReviews)return n;const r=[];for(const s of n){if(t.filterByComments){const t=this.cachedComments.get(s.pullRequestNumber);if(t&&t.length>0){r.push(s);continue}const n=await this.getPullRequestComments(e,s.pullRequestNumber);this.cachedComments.set(s.pullRequestNumber,n),n.length>0&&r.push(s)}if(t.filterByReviews){const t=this.cachedReviews.get(s.pullRequestNumber);if(t&&t.length>0){r.push(s);continue}const n=await this.getPullRequestReviews(e,s.pullRequestNumber);this.cachedReviews.set(s.pullRequestNumber,n),n.length>0&&r.push(s)}}return r}async getPullRequestReviews(e,t){const n=this.cachedReviews.get(t);if(n)return n;const r=await this.getAPIForRepository(e.gitHubRepository);if(null===r)return[];const s=e.gitHubRepository;return(await r.fetchPullRequestReviews(s.owner.login,s.name,t.toString())).filter(MC)}async getPullRequestComments(e,t){const n=this.cachedComments.get(t);if(n)return n;const r=await this.getAPIForRepository(e.gitHubRepository);if(null===r)return[];const s=e.gitHubRepository;return[...await r.fetchIssueComments(s.owner.login,s.name,t.toString()),...await r.fetchPullRequestComments(s.owner.login,s.name,t.toString())]}simulatePullRequestReviewNotification(e,t,n){this.notificationsStore.simulateAliveEvent({type:"pr-review-submit",timestamp:new Date(n.submitted_at).getTime(),owner:e.owner.login,repo:e.name,pull_request_number:t.pullRequestNumber,state:n.state,review_id:n.id.toString()})}simulatePullRequestCommentNotification(e,t,n,r){this.notificationsStore.simulateAliveEvent({type:"pr-comment",subtype:r?"issue-comment":"review-comment",timestamp:new Date(n.created_at).getTime(),owner:e.owner.login,repo:e.name,pull_request_number:t.pullRequestNumber,comment_id:n.id.toString()})}async simulatePullRequestChecksFailed(e,t,n){const r=t.head.sha,s=ym(t.pullRequestNumber),i=await this.notificationsStore.getChecksForRef(e.gitHubRepository,s);if(!i)return void SL(new Error("Could not get checks for PR"),n);const o={type:"pr-checks-failed",timestamp:new Date(t.created).getTime(),owner:e.gitHubRepository.owner.login,repo:e.name,pull_request_number:t.pullRequestNumber,check_suite_id:i[0].checkSuiteId??0,commit_sha:r},a=i.filter((e=>e.conclusion===Qn.Failure)).length,l=1===a?"check was":"checks were",c=fm(r);xC({title:"拉取请求检查失败",body:`${t.title} #${t.pullRequestNumber} (${c})\n${a} ${l} not successful.`,userInfo:o,onClick:()=>{n.onChecksFailedNotification(e,t,i)}})}}(fW,AW,CW),xW=new class extends Jp{gitHubUserStore;cloningRepositoriesStore;issuesStore;statsStore;signInStore;accountsStore;repositoriesStore;pullRequestCoordinator;repositoryStateCache;apiRepositoriesStore;notificationsStore;gitStoreCache;accounts=new Array;repositories=new Array;recentRepositories=new Array;selectedRepository=null;currentBackgroundFetcher=null;currentBranchPruner=null;repositoryIndicatorUpdater;showWelcomeFlow=!1;focusCommitMessage=!1;currentFoldout=null;currentBanner=null;emitQueued=!1;localRepositoryStateLookup=new Map;emoji=new Map;appMenu=null;highlightAccessKeys=!1;appIsFocused=!1;sidebarWidth=rE(250);commitSummaryWidth=rE(250);stashedFilesWidth=rE(250);pullRequestFileListWidth=rE(250);branchDropdownWidth=rE(oS);pushPullButtonWidth=rE(lS);windowState=null;windowZoomFactor=1;resizablePaneActive=!1;isUpdateAvailableBannerVisible=!1;isUpdateShowcaseVisible=!1;askToMoveToApplicationsFolderSetting=uS;useExternalCredentialHelper=Xv;askForConfirmationOnRepositoryRemoval=hS;confirmDiscardChanges=dS;confirmDiscardChangesPermanently=mS;confirmDiscardStash=fS;confirmCheckoutCommit=gS;askForConfirmationOnForcePush=yS;confirmUndoCommit=wS;confirmCommitFilteredChanges=bS;imageDiffType=IS;hideWhitespaceInChangesDiff=!1;hideWhitespaceInHistoryDiff=!1;hideWhitespaceInPullRequestDiff=!1;commitSpellcheckEnabled=LS;showSideBySideDiff=Qb;uncommittedChangesStrategy=Tb;selectedExternalEditor=null;resolvedExternalEditor=null;selectedShell=Ow;repositoryFilterText="";currentMergeTreePromise=null;resolveOpenInDesktop=null;selectedCloneRepositoryTab=jr.DotCom;selectedBranchesTab=id.Branches;selectedTheme=$p.System;currentTheme=$p.Light;selectedTabSize=8;useWindowsOpenSSH=!1;showCommitLengthWarning=pS;hasUserViewedStash=!1;repositoryIndicatorsEnabled;currentOnboardingTutorialStep=Db.NotApplicable;tutorialAssessor;currentDragElement=null;lastThankYou;useCustomEditor=!1;customEditor=null;useCustomShell=!1;customShell=null;showCIStatusPopover=!1;popupManager=new FC;pullRequestSuggestedNextAction=void 0;showDiffCheckMarks=YS;cachedRepoRulesets=new Map;underlineLinks=KS;commitMessageGenerationDisclaimerLastSeen=null;commitMessageGenerationButtonClicked=!1;showChangesFilter=!1;constructor(e,t,n,r,s,i,o,a,l,c,u){super(),this.gitHubUserStore=e,this.cloningRepositoriesStore=t,this.issuesStore=n,this.statsStore=r,this.signInStore=s,this.accountsStore=i,this.repositoriesStore=o,this.pullRequestCoordinator=a,this.repositoryStateCache=l,this.apiRepositoriesStore=c,this.notificationsStore=u,this.showWelcomeFlow=!Up();{const e=zt(wd);void 0===e?this._setUseWindowsOpenSSH(this.showWelcomeFlow):this.useWindowsOpenSSH=e}this.gitStoreCache=new yb(ut,this.statsStore,((e,t)=>this.onGitStoreUpdated(e,t)),(e=>this.emitError(e))),window.addEventListener("resize",(()=>{this.updateResizableConstraints(),this.emitUpdate()})),this.initializeWindowState(),this.initializeZoomFactor(),this.wireupIpcEventHandlers(),this.wireupStoreEventHandlers(),se(),this.tutorialAssessor=new Nb(this.getResolvedExternalEditor),void 0===zt(ZS)&&jt(ZS,!0),this.repositoryIndicatorsEnabled=zt(ZS)??!0,this.repositoryIndicatorUpdater=new Vb(this.getRepositoriesForIndicatorRefresh,this.refreshIndicatorForRepository),window.setTimeout((()=>{this.repositoryIndicatorsEnabled&&this.repositoryIndicatorUpdater.start()}),12e4),rr.onTokenInvalidated(this.onTokenInvalidated),this.notificationsStore.onChecksFailedNotification(this.onChecksFailedNotification),this.notificationsStore.onPullRequestReviewSubmitNotification(this.onPullRequestReviewSubmitNotification),this.notificationsStore.onPullRequestCommentNotification(this.onPullRequestCommentNotification),g("show-installing-update",this.onShowInstallingUpdate)}initializeWindowState=async()=>{const e=await L();void 0!==e&&(this.windowState=e)};initializeZoomFactor=async()=>{const e=await this.getWindowZoomFactor();void 0!==e&&this.onWindowZoomFactorChanged(e)};async getWindowZoomFactor(){const e=await B();if(1!==e)return e;const t=function(e,t){const n=localStorage.getItem("zoom-factor");if(null===n||0===n.length)return t;const r=parseFloat(n);return isNaN(r)?t:r}();return void 0!==t&&t!==e?(U(t),t):e}onTokenInvalidated=(e,t)=>{const n=lr(this.accounts,e);null!==n&&(n.token&&n.token!==t?log.error(`Token for ${e} invalidated but token mismatch`):(this._removeAccount(n),this._showPopup({type:Sh.InvalidatedToken,account:n})))};onShowInstallingUpdate=()=>{this._showPopup({type:Sh.InstallingUpdate})};async updateCurrentTutorialStep(e){const t=await this.tutorialAssessor.getCurrentStep(e.isTutorialRepository,this.repositoryStateCache.get(e));t!==this.currentOnboardingTutorialStep&&(this.currentOnboardingTutorialStep=t,log.info(`Current tutorial step is now ${t}`),this.recordTutorialStepCompleted(t),this.emitUpdate())}recordTutorialStepCompleted(e){if(Mb(e))switch(this.statsStore.recordHighestTutorialStepCompleted(Pb.indexOf(e)),e){case Db.PickEditor:break;case Db.CreateBranch:this.statsStore.recordTutorialEditorInstalled();break;case Db.EditFile:this.statsStore.recordTutorialBranchCreated();break;case Db.MakeCommit:this.statsStore.recordTutorialFileEdited();break;case Db.PushBranch:this.statsStore.recordTutorialCommitCreated();break;case Db.OpenPullRequest:this.statsStore.recordTutorialBranchPushed();break;case Db.AllDone:this.statsStore.recordTutorialPrCreated(),this.statsStore.recordTutorialCompleted();break;case Db.Announced:break;default:at(0,"Unaccounted for step type")}}async _resumeTutorial(e){this.tutorialAssessor.resumeTutorial(),await this.updateCurrentTutorialStep(e)}async _pauseTutorial(e){this.tutorialAssessor.pauseTutorial(),await this.updateCurrentTutorialStep(e)}async _skipPickEditorTutorialStep(e){this.tutorialAssessor.skipPickEditor(),await this.updateCurrentTutorialStep(e)}async _markPullRequestTutorialStepAsComplete(e){this.tutorialAssessor.markPullRequestTutorialStepAsComplete(),await this.updateCurrentTutorialStep(e)}async _markTutorialCompletionAsAnnounced(e){this.tutorialAssessor.markTutorialCompletionAsAnnounced(),await this.updateCurrentTutorialStep(e)}wireupIpcEventHandlers(){g("window-state-changed",((e,t)=>{this.windowState=t,this.emitUpdate()})),g("zoom-factor-changed",((e,t)=>{this.onWindowZoomFactorChanged(t)})),g("app-menu",((e,t)=>this.setAppMenu(t)))}wireupStoreEventHandlers(){this.gitHubUserStore.onDidUpdate((()=>{this.emitUpdate()})),this.cloningRepositoriesStore.onDidUpdate((()=>{this.emitUpdate()})),this.cloningRepositoriesStore.onDidError((e=>this.emitError(e))),this.signInStore.onDidAuthenticate((e=>this._addAccount(e))),this.signInStore.onDidUpdate((()=>this.emitUpdate())),this.signInStore.onDidError((e=>this.emitError(e))),this.accountsStore.onDidUpdate((e=>{this.accounts=e;const t=e.map((({endpoint:e,token:t})=>({endpoint:e,token:t})));ue(t),this.emitUpdate()})),this.accountsStore.onDidError((e=>this.emitError(e))),this.repositoriesStore.onDidUpdate((e=>{this.repositories=e,this.updateRepositorySelectionAfterRepositoriesChanged(),this.emitUpdate()})),this.pullRequestCoordinator.onPullRequestsChanged(((e,t)=>this.onPullRequestChanged(e,t))),this.pullRequestCoordinator.onIsLoadingPullRequests(((e,t)=>{this.repositoryStateCache.updateBranchesState(e,(()=>({isLoadingPullRequests:t}))),this.emitUpdate()})),this.apiRepositoriesStore.onDidUpdate((()=>this.emitUpdate())),this.apiRepositoriesStore.onDidError((e=>this.emitError(e))),dn.onDidChange((()=>this.emitUpdate()))}async loadEmoji(){var e;(e=await kt(),new Promise(((n,s)=>{const i=t.join(e,"emoji.json");r.readFile(i,"utf8",((e,t)=>{if(e)return void s(e);const r=new Map;try{JSON.parse(t).forEach((e=>{const t=e.emoji?function(e){const t=e.codePointAt(0);if(!t)return null;let n=Kw(t);if(e.length>2){const t=e.codePointAt(2);t&&65039!==t&&(n=`${n}-${Kw(t)}`)}return jw(`unicode/${n}.png`)}(e.emoji):jw(`${e.aliases[0]}.png`);t?e.aliases.forEach((n=>{r.set(`:${n}:`,{...e,url:t})})):log.error(`Could not calculate location of emoji: ${e}`)}))}catch(e){s(e)}const i=new Map;Array.from(r.keys()).sort().forEach((e=>{const t=r.get(e);t&&i.set(e,t)})),n(i)}))}))).then((e=>{this.emoji=e,this.emitUpdate()})).catch((e=>{log.warn("Unexpected issue when trying to read emoji into memory",e)}))}emitUpdate(){"hidden"!==this.windowState?this.emitQueued||(this.emitQueued=!0,window.requestAnimationFrame((()=>{this.emitUpdateNow()}))):this.emitUpdateNow()}emitUpdateNow(){this.emitQueued=!1;const e=this.getState();super.emitUpdate(e),function(e,t){const n=Dw(e);if(t)for(const[e,r]of n.entries()){const s=t.getItemById(e);s&&Tw(r,s)&&n.delete(e)}if(0===n.size)return;const r=new Array;n.forEach(((e,t)=>r.push({id:t,state:e}))),x(r)}(e,this.appMenu)}onWindowZoomFactorChanged(e){const t=this.windowZoomFactor;this.windowZoomFactor=e,e!==t&&(Yt("zoom-factor",e),this.updateResizableConstraints(),this.emitUpdate())}getSelectedState(){const e=this.selectedRepository;if(!e)return null;if(e instanceof cs){const t=this.cloningRepositoriesStore.getRepositoryState(e);return t?{type:Xe.CloningRepository,repository:e,progress:t}:null}return e.missing?{type:Xe.MissingRepository,repository:e}:{type:Xe.Repository,repository:e,state:this.repositoryStateCache.get(e)}}getState(){const e=[...this.repositories,...this.cloningRepositoriesStore.repositories];return{accounts:this.accounts,repositories:e,recentRepositories:this.recentRepositories,localRepositoryStateLookup:this.localRepositoryStateLookup,windowState:this.windowState,windowZoomFactor:this.windowZoomFactor,appIsFocused:this.appIsFocused,selectedState:this.getSelectedState(),signInState:this.signInStore.getState(),currentPopup:this.popupManager.currentPopup,allPopups:this.popupManager.allPopups,currentFoldout:this.currentFoldout,errorCount:this.popupManager.getPopupsOfType(Sh.Error).length,showWelcomeFlow:this.showWelcomeFlow,focusCommitMessage:this.focusCommitMessage,emoji:this.emoji,sidebarWidth:this.sidebarWidth,branchDropdownWidth:this.branchDropdownWidth,pushPullButtonWidth:this.pushPullButtonWidth,commitSummaryWidth:this.commitSummaryWidth,stashedFilesWidth:this.stashedFilesWidth,pullRequestFilesListWidth:this.pullRequestFileListWidth,appMenuState:this.appMenu?this.appMenu.openMenus:[],highlightAccessKeys:this.highlightAccessKeys,isUpdateAvailableBannerVisible:this.isUpdateAvailableBannerVisible,isUpdateShowcaseVisible:this.isUpdateShowcaseVisible,currentBanner:this.currentBanner,askToMoveToApplicationsFolderSetting:this.askToMoveToApplicationsFolderSetting,useExternalCredentialHelper:this.useExternalCredentialHelper,askForConfirmationOnRepositoryRemoval:this.askForConfirmationOnRepositoryRemoval,askForConfirmationOnDiscardChanges:this.confirmDiscardChanges,askForConfirmationOnDiscardChangesPermanently:this.confirmDiscardChangesPermanently,askForConfirmationOnDiscardStash:this.confirmDiscardStash,askForConfirmationOnCheckoutCommit:this.confirmCheckoutCommit,askForConfirmationOnForcePush:this.askForConfirmationOnForcePush,askForConfirmationOnUndoCommit:this.confirmUndoCommit,askForConfirmationOnCommitFilteredChanges:this.confirmCommitFilteredChanges,uncommittedChangesStrategy:this.uncommittedChangesStrategy,selectedExternalEditor:this.selectedExternalEditor,imageDiffType:this.imageDiffType,hideWhitespaceInChangesDiff:this.hideWhitespaceInChangesDiff,hideWhitespaceInHistoryDiff:this.hideWhitespaceInHistoryDiff,hideWhitespaceInPullRequestDiff:this.hideWhitespaceInPullRequestDiff,showSideBySideDiff:this.showSideBySideDiff,selectedShell:this.selectedShell,repositoryFilterText:this.repositoryFilterText,resolvedExternalEditor:this.resolvedExternalEditor,selectedCloneRepositoryTab:this.selectedCloneRepositoryTab,selectedBranchesTab:this.selectedBranchesTab,selectedTheme:this.selectedTheme,currentTheme:this.currentTheme,selectedTabSize:this.selectedTabSize,apiRepositories:this.apiRepositoriesStore.getState(),useWindowsOpenSSH:this.useWindowsOpenSSH,showCommitLengthWarning:this.showCommitLengthWarning,optOutOfUsageTracking:this.statsStore.getOptOut(),currentOnboardingTutorialStep:this.currentOnboardingTutorialStep,repositoryIndicatorsEnabled:this.repositoryIndicatorsEnabled,commitSpellcheckEnabled:this.commitSpellcheckEnabled,currentDragElement:this.currentDragElement,lastThankYou:this.lastThankYou,useCustomEditor:this.useCustomEditor,customEditor:this.customEditor,useCustomShell:this.useCustomShell,customShell:this.customShell,showCIStatusPopover:this.showCIStatusPopover,notificationsEnabled:IC(),pullRequestSuggestedNextAction:this.pullRequestSuggestedNextAction,resizablePaneActive:this.resizablePaneActive,cachedRepoRulesets:this.cachedRepoRulesets,underlineLinks:this.underlineLinks,showDiffCheckMarks:this.showDiffCheckMarks,updateState:dn.state,commitMessageGenerationDisclaimerLastSeen:this.commitMessageGenerationDisclaimerLastSeen,commitMessageGenerationButtonClicked:this.commitMessageGenerationButtonClicked,showChangesFilter:this.showChangesFilter}}onGitStoreUpdated(e,t){const n=this.repositoryStateCache.get(e);this.repositoryStateCache.updateBranchesState(e,(r=>{let{currentPullRequest:s}=r;const{tip:i,currentRemote:o}=t;if(!function(e,t){if(e===t)return!0;const n=e.kind;switch(e.kind){case zr.Unknown:return e.kind===t.kind;case zr.Unborn:return e.kind===t.kind&&e.ref===t.ref;case zr.Detached:return e.kind===t.kind&&e.currentSha===t.currentSha;case zr.Valid:return e.kind===t.kind&&function(e,t){return e.type===t.type&&e.tip.sha===t.tip.sha&&e.upstreamRemoteName===t.upstreamRemoteName&&e.upstream===t.upstream}(e.branch,t.branch);default:return at(0,`Unknown tip state ${n}`)}}(r.tip,i)||!function(e,t){return e===t||null!==e&&null!==t&&e.name===t.name&&e.url===t.url}(n.remote,o))if(i.kind!==zr.Valid||null===o)s=null;else{const{branch:t}=i;s&&Lb(t,s,o)||(s=Ob(t,r.openPullRequests,o)),i.kind===zr.Valid&&r.tip.kind===zr.Valid&&i.branch.name!==r.tip.branch.name&&this.refreshBranchProtectionState(e)}return{tip:t.tip,defaultBranch:t.defaultBranch,upstreamDefaultBranch:t.upstreamDefaultBranch,allBranches:t.allBranches,recentBranches:t.recentBranches,pullWithRebase:t.pullWithRebase,currentPullRequest:s}}));let r=!1,s=!1;this.repositoryStateCache.updateChangesState(e,(e=>{const n=t.currentBranchStashEntry;return e.selection.kind===et.Stash&&null!==e.stashEntry&&(null===n?r=!0:e.stashEntry.stashSha!==n.stashSha&&(s=!0)),{commitMessage:t.commitMessage,showCoAuthoredBy:t.showCoAuthoredBy,coAuthors:t.coAuthors,stashEntry:n}})),this.repositoryStateCache.update(e,(()=>({commitLookup:t.commitLookup,localCommitSHAs:t.localCommitSHAs,localTags:t.localTags,aheadBehind:t.aheadBehind,tagsToPush:t.tagsToPush,remote:t.currentRemote,lastFetched:t.lastFetched}))),r?this._selectWorkingDirectoryFiles(e):s?this._selectStashedFile(e):this.emitUpdate()}clearBranchProtectionState(e){this.repositoryStateCache.updateChangesState(e,(()=>({currentBranchProtected:!1,currentRepoRulesInfo:new qv}))),this.emitUpdate()}async refreshBranchProtectionState(e){const{tip:t,currentRemote:n}=this.gitStoreCache.get(e);if(t.kind!==zr.Valid||null===e.gitHubRepository)return;const r=e.gitHubRepository,s=xb(t,n,r);if(null!==s){const t=lr(this.accounts,r.endpoint);if(null===t)return;if(!Vr(r))return this.repositoryStateCache.updateChangesState(e,(()=>({currentBranchProtected:!1,currentRepoRulesInfo:new qv}))),void this.emitUpdate();const n=r.name,i=r.owner.login,o=rr.fromAccount(t),a=!function(e){const{allow_actor:t,required_status_checks:n,required_approving_review_count:r}=e,s=Array.isArray(n)?n.length:0;return!1!==t&&0===s&&0===r}(await o.fetchPushControl(i,n,s));let l=new qv;if(Gv(t,e)){const t=await o.fetchAllRepoRulesets(i,n);if(t?.length){const e=t.map((e=>e.id)),r=[];for(const t of e)this.cachedRepoRulesets.has(t)||r.push(o.fetchRepoRuleset(i,n,t));if(r.length>0){const e=await Promise.all(r);this._updateCachedRepoRulesets(e)}}const r=await o.fetchRepoRulesForBranch(i,n,s);r.length>0&&(l=await zv(r,this.cachedRepoRulesets,e))}this.repositoryStateCache.updateChangesState(e,(()=>({currentBranchProtected:a,currentRepoRulesInfo:l}))),this.emitUpdate()}}_updateCachedRepoRulesets(e){for(const t of e)null!==t&&this.cachedRepoRulesets.set(t.id,t)}clearSelectedCommit(e){this.repositoryStateCache.updateCommitSelection(e,(()=>({shas:[],file:null,changesetData:{files:[],linesAdded:0,linesDeleted:0},diff:null})))}_changeCommitSelection(e,t,n){const{commitSelection:r,commitLookup:s,compareState:i}=this.repositoryStateCache.get(e);if(r.shas.length===t.length&&r.shas.every(((e,n)=>e===t[n])))return;const o=this.getShasInDiff(this.orderShasByHistory(e,t),n,s);t.length>1&&n&&this.recordMultiCommitDiff(t,o,i),this.repositoryStateCache.updateCommitSelection(e,(()=>({shas:t,shasInDiff:o,isContiguous:n,file:null,changesetData:{files:[],linesAdded:0,linesDeleted:0},diff:null}))),this.emitUpdate()}recordMultiCommitDiff(e,t,n){n.formState.kind===tt.History?this.statsStore.increment("multiCommitDiffFromHistoryCount"):this.statsStore.increment("multiCommitDiffFromCompareCount");const r=!e.every((e=>t.includes(e)));r&&this.statsStore.increment("multiCommitDiffWithUnreachableCommitWarningCount")}async _updateShasToHighlight(e,t){this.repositoryStateCache.updateCompareState(e,(()=>({shasToHighlight:t}))),this.emitUpdate()}getShasInDiff(e,t,n){if(e.length<=1||!t)return e;const r=new Set,s=new Set(e),i=[e.at(-1)];let o;for(;void 0!==(o=i.pop());)r.has(o)||(r.add(o),n.get(o)?.parentSHAs?.forEach((e=>{s.has(e)&&!r.has(e)&&i.push(e)})));return Array.from(r)}updateOrSelectFirstCommit(e,t){const n=this.repositoryStateCache.get(e);let r=n.commitSelection.shas.length>0?n.commitSelection.shas[0]:null;null!=r&&t.findIndex((e=>e===r))<0&&(r=null,this.clearSelectedCommit(e)),null===r&&t.length>0&&(this._changeCommitSelection(e,[t[0]],!0),this._loadChangedFilesForCurrentSelection(e))}async _initializeCompare(e,t){const n=this.repositoryStateCache.get(e),{branchesState:r,compareState:s}=n,{tip:i}=r,o=i.kind===zr.Valid?i.branch:null,a=r.allBranches.filter((e=>e.name!==o?.name&&!e.isDesktopForkRemoteBranch)),l=o?r.recentBranches.filter((e=>e.name!==o.name)):r.recentBranches,c=r.defaultBranch,u=null!=o&&null!=c&&o.name!==c.name?c:null;this.repositoryStateCache.updateCompareState(e,(()=>({branches:a,recentBranches:l,defaultBranch:u})));const h=s.formState,p=null!=t?t:function(e){if(e.kind===tt.History)return{kind:tt.History};const{comparisonMode:t,comparisonBranch:n}=e;return{kind:tt.Compare,comparisonMode:t,branch:n}}(h);this._executeCompare(e,p)}async _executeCompare(e,t){const n=this.gitStoreCache.get(e),r=t.kind;if(t.kind===tt.History){const{tip:t}=n;let r=null;t.kind===zr.Valid?r=t.branch.tip.sha:t.kind===zr.Detached&&(r=t.currentSha);const{compareState:s}=this.repositoryStateCache.get(e),{formState:i,commitSHAs:o}=s,a=s.tip;if(null!==r&&null!==a&&r===a&&i.kind===tt.History&&o.length>0)return;const l=await n.loadCommitBatch("HEAD",0);if(null===l)return;const c={kind:tt.History};return this.repositoryStateCache.updateCompareState(e,(()=>({tip:r,formState:c,commitSHAs:l,filterText:"",showBranchList:!1}))),this.updateOrSelectFirstCommit(e,l),this.emitUpdate()}return t.kind===tt.Compare?this.updateCompareToBranch(e,t):at(0,`Unknown action: ${r}`)}async updateCompareToBranch(e,t){const n=this.gitStoreCache.get(e),r=t.branch,s=await n.getCompareCommits(r,t.comparisonMode);this.statsStore.increment("branchComparisons");const{branchesState:i}=this.repositoryStateCache.get(e);if(null!==i.defaultBranch&&r.name===i.defaultBranch.name&&this.statsStore.increment("defaultBranchComparisons"),null==s)return;const{ahead:o,behind:a}=s,l={ahead:o,behind:a},c=s.commits.map((e=>e.sha)),u={kind:tt.Compare,comparisonBranch:r,comparisonMode:t.comparisonMode,aheadBehind:l};this.repositoryStateCache.updateCompareState(e,(()=>({formState:u,filterText:r.name,commitSHAs:c})));const h=n.tip,p={kind:Rb.Loading};return this.repositoryStateCache.updateCompareState(e,(()=>({mergeStatus:p}))),this.emitUpdate(),this.updateOrSelectFirstCommit(e,c),null!=this.currentMergeTreePromise?this.currentMergeTreePromise:h.kind===zr.Valid&&l.behind>0?(this.currentMergeTreePromise=this.setupMergabilityPromise(e,h.branch,t.branch).then((t=>{this.repositoryStateCache.updateCompareState(e,(()=>({mergeStatus:t}))),this.emitUpdate()})).finally((()=>{this.currentMergeTreePromise=null})),this.currentMergeTreePromise):(this.repositoryStateCache.updateCompareState(e,(()=>({mergeStatus:null}))),this.emitUpdate())}setupMergabilityPromise(e,t,n){return $w((()=>_C(e,t,n)),500).catch((e=>(log.warn(`Error occurred while trying to merge ${t.name} (${t.tip.sha}) and ${n.name} (${n.tip.sha})`,e),null)))}_updateCompareForm(e,t){this.repositoryStateCache.updateCompareState(e,(e=>Zp(e,t))),this.emitUpdate()}async _loadNextCommitBatch(e){const t=this.gitStoreCache.get(e),n=this.repositoryStateCache.get(e),{formState:r}=n.compareState;if(r.kind===tt.History){const r=n.compareState.commitSHAs,s=await t.loadCommitBatch("HEAD",r.length);if(null==s)return;this.repositoryStateCache.updateCompareState(e,(()=>({commitSHAs:r.concat(s)}))),this.emitUpdate()}}async _loadChangedFilesForCurrentSelection(e){const t=this.repositoryStateCache.get(e),{commitSelection:n}=t,{shas:r,isContiguous:s}=n;if(0===r.length||r.length>1&&!s)return;const i=this.gitStoreCache.get(e),o=await i.performFailableOperation((()=>r.length>1?Xf(e,this.orderShasByHistory(e,r)):async function(e,t){const n=["log",t,"-C","-M","-m","-1","--no-show-signature","--first-parent","--raw","--format=format:","--numstat","-z","--"],{stdout:r}=await zd(n,e.path,"getChangesFiles");return Of(r,t,`${t}^`)}(e,r[0])));if(!o)return;if(n.shas.length!==r.length||!n.shas.every(((e,t)=>e===r[t])))return;const a=null===n.file&&o.files.length?o.files[0]:n.file;this.repositoryStateCache.updateCommitSelection(e,(()=>({file:a,changesetData:o,diff:null}))),this.emitUpdate(),null!==a&&this._changeFileSelection(e,a)}async _setRepositoryFilterText(e){this.repositoryFilterText=e,this.emitUpdate()}async _changeFileSelection(e,t){this.repositoryStateCache.updateCommitSelection(e,(()=>({file:t,diff:null}))),this.emitUpdate();const n=this.repositoryStateCache.get(e),{shas:r,isContiguous:s}=n.commitSelection;if(0===r.length)return;if(r.length>1&&!s)return;const i=r.length>1?await Yf(e,t,this.orderShasByHistory(e,r),this.hideWhitespaceInHistoryDiff):await Kf(e,t,r[0],this.hideWhitespaceInHistoryDiff),o=this.repositoryStateCache.get(e),{shas:a}=o.commitSelection;a.length===r.length&&r.every(((e,t)=>e===a[t]))&&o.commitSelection.file&&o.commitSelection.file.id===t.id&&(this.repositoryStateCache.updateCommitSelection(e,(()=>({diff:i}))),this.emitUpdate())}async _selectRepository(e){const t=this.selectedRepository;if(!(this.currentOnboardingTutorialStep!==Db.NotApplicable)||e instanceof Kr&&e.isTutorialRepository||(this.currentOnboardingTutorialStep=Db.NotApplicable),this.selectedRepository=e,this.emitUpdate(),this.stopBackground同步(),this.stopPullRequestUpdater(),this._clearBanner(),this.stopBackgroundPruner(),null==e)return Promise.resolve(null);if(!(e instanceof Kr))return Promise.resolve(null);Yt(eS,e.id);const n=t?t.id:null;this.updateRecentRepositories(n,e.id);const r=await this.recoverMissingRepository(e);return r.missing?(this.gitStoreCache.remove(e),Promise.resolve(null)):(this.updateBranchProtectionsFromAPI(e),this.notificationsStore.selectRepository(e),this._selectRepositoryRefreshTasks(r,t))}updateRecentRepositories(e,t){if(e===t)return;const n=Xt(tS).filter((n=>n!==t&&n!==e));null!==e&&n.unshift(e);const r=n.slice(0,3);Qt(tS,r),this.recentRepositories=r,this.notificationsStore.setRecentRepositories(this.repositories.filter((e=>this.recentRepositories.includes(e.id)))),this.emitUpdate()}async _selectRepositoryRefreshTasks(e,t){if(this._refreshRepository(e),Yr(e)){const t=es(e);this._refreshIssues(t),this.refreshMentionables(t),this.pullRequestCoordinator.getAllPullRequests(e).then((t=>{this.onPullRequestChanged(e,t)}))}return this.selectedRepository!==e?null:(this.stopBackground同步(),this.stopPullRequestUpdater(),this.stopBackgroundPruner(),this.startBackground同步(e,!t),this.startPullRequestUpdater(e),this.startBackgroundPruner(e),this.addUpstreamRemoteIfNeeded(e),this.repositoryWithRefreshedGitHubRepository(e))}stopBackgroundPruner(){const e=this.currentBranchPruner;null!==e&&(e.stop(),this.currentBranchPruner=null)}startBackgroundPruner(e){null!==this.currentBranchPruner&&ot(`A branch pruner is already active and cannot start updating on ${e.name}`);const t=new Eb(e,this.gitStoreCache,this.repositoriesStore,this.repositoryStateCache,(e=>this._refreshRepository(e)));this.currentBranchPruner=t,this.currentBranchPruner.start()}async _refreshIssues(e){const t=lr(this.accounts,e.endpoint);if(t)try{await this.issuesStore.refreshIssues(e,t)}catch(t){log.warn(`Unable to fetch issues for ${e.fullName}`,t)}}stopBackground同步(){const e=this.currentBackgroundFetcher;e&&(e.stop(),this.currentBackgroundFetcher=null)}refreshMentionables(e){const t=lr(this.accounts,e.endpoint);t&&this.gitHubUserStore.updateMentionables(e,t)}startPullRequestUpdater(e){if(this.appIsFocused&&Yr(e)){const t=tf(this.accounts,e);if(null!==t)return this.pullRequestCoordinator.startPullRequestUpdater(e,t)}this.pullRequestCoordinator.stopPullRequestUpdater()}stopPullRequestUpdater(){this.pullRequestCoordinator.stopPullRequestUpdater()}async fetchPullRequest(e,t){const n=function(e){const t=i.parse(e);return"github.com"===t.hostname?ar():`${t.protocol}//${t.hostname}/api`}(e),r=lr(this.accounts,n);if(r){const n=rr.fromAccount(r),s=mr(e);if(s&&s.owner&&s.name)return await n.fetchPullRequest(s.owner,s.name,t)}return null}async shouldBackgroundFetch(e,t){const n=this.gitStoreCache.get(e),r=await n.updateLastFetched();if(null===r)return!0;const s=(new Date).getTime()-r.getTime(),i=Qr(e);if(s<18e5){const e=Math.floor(s/1e3);return log.debug(`Skipping background fetch as '${i}' was fetched ${e}s前`),!1}return null===t||r<t||(log.debug(`Skipping background fetch since nothing has been pushed to '${i}' since the last fetch at ${r}`),!1)}startBackground同步(e,t){if(this.currentBackgroundFetcher&&ot(`We should only have on background fetcher active at once, but we're trying to start background fetching on ${e.name} while another background fetcher is still active!`),!e.gitHubRepository)return;const n=new qw(e,this.accountsStore,(e=>this._fetch(e,mn.BackgroundTask)),(e=>this.shouldBackgroundFetch(e,null)));n.start(t),this.currentBackgroundFetcher=n}async loadInitialState(){const[e,t]=await Promise.all([this.accountsStore.getAll(),this.repositoriesStore.getAll()]);log.info(`[AppStore] loading ${t.length} repositories from store`),e.forEach((e=>{log.info(`[AppStore] found account: ${e.login} (${e.name})`)})),this.accounts=e,this.repositories=t,this.updateRepositorySelectionAfterRepositoriesChanged(),this.sidebarWidth=rE(Kt(nS,250)),this.commitSummaryWidth=rE(Kt(rS,250)),this.stashedFilesWidth=rE(Kt(sS,250)),this.pullRequestFileListWidth=rE(Kt(iS,250)),this.branchDropdownWidth=rE(Kt(aS,oS)),this.pushPullButtonWidth=rE(Kt(cS,lS)),this.updateResizableConstraints(),this.updatePullRequestResizableConstraints(),this.askToMoveToApplicationsFolderSetting=zt(CS,uS),this.useExternalCredentialHelper=Jv(),this.askForConfirmationOnRepositoryRemoval=zt(vS,hS),void 0===zt(SS)&&jt(SS,!0),this.showCommitLengthWarning=zt(SS,pS),this.confirmDiscardChanges=zt(ES,dS),this.confirmDiscardChangesPermanently=zt(AS,mS),this.confirmDiscardStash=zt(kS,fS),this.confirmCheckoutCommit=zt(RS,gS),this.askForConfirmationOnForcePush=zt(TS,yS),this.confirmUndoCommit=zt(xS,wS),this.confirmCommitFilteredChanges=zt(DS,bS),this.uncommittedChangesStrategy=en(MS,Ab)??Tb,this.updateSelectedExternalEditor(await this.lookupSelectedExternalEditor()).catch((e=>log.error("Failed resolving current editor at startup",e)));const n=localStorage.getItem(US);this.selectedShell=n?Bw(n):Ow,this.updateMenuLabelsForSelectedRepository();const r=localStorage.getItem(_S);this.imageDiffType=null===r?IS:parseInt(r),this.hideWhitespaceInChangesDiff=zt(FS,!1),this.hideWhitespaceInHistoryDiff=zt(NS,!1),this.hideWhitespaceInPullRequestDiff=zt(OS,!1),this.commitSpellcheckEnabled=zt(BS,LS),this.showSideBySideDiff=eC(),this.selectedTheme=zp(),jp(this.selectedTheme),this.currentTheme=await Gp(),this.selectedTabSize=Kt(HS,8),Sm.onThemeChanged((e=>{this.currentTheme=e,this.emitUpdate()})),this.lastThankYou=tn($S),this.useCustomEditor=zt(VS,!1),this.customEditor=tn(qS)??null,this.useCustomShell=zt(GS,!1),this.customShell=tn(zS)??null;const s=Qm(this.customEditor);null!==s&&this._setCustomEditor(s);const i=Qm(this.customShell);null!==i&&this._setCustomShell(i),this.pullRequestSuggestedNextAction=en(WS,Cm)??vm,this.underlineLinks=zt(jS,KS),this.showDiffCheckMarks=zt(XS,YS),this.commitMessageGenerationDisclaimerLastSeen=Kt(QS)??null,this.commitMessageGenerationButtonClicked=zt(JS,!1),this.showChangesFilter=zt(eE,tE),this.emitUpdateNow(),this.accountsStore.refresh(),this.updateMenuLabelsForSelectedRepository()}updateResizableConstraints(){let e=window.innerWidth;const t=this.currentOnboardingTutorialStep===Db.NotApplicable?0:650,n=e-Math.max(460,t);this.sidebarWidth=rE(this.sidebarWidth,220,n),e-=Oy(this.sidebarWidth);const r=e-150;this.commitSummaryWidth=rE(this.commitSummaryWidth,100,r),this.stashedFilesWidth=rE(this.stashedFilesWidth,100,r);const s=e-lS,i=oS>e/2?e/2-10:oS;this.branchDropdownWidth=rE(this.branchDropdownWidth,i,s);const o=e-this.branchDropdownWidth.value,a=lS>e/2?e/2+30:lS;this.pushPullButtonWidth=rE(this.pushPullButtonWidth,a,o)}updatePullRequestResizableConstraints(){this.pullRequestFileListWidth=rE(this.pullRequestFileListWidth,100,680)}updateSelectedExternalEditor(e){return this.selectedExternalEditor=e,this._resolveCurrentEditor()}async lookupSelectedExternalEditor(){const e=(await Wm()).map((e=>e.editor)),t=localStorage.getItem(PS);if(t&&e.includes(t))return t;if(e.length){const t=e[0];return localStorage.setItem(PS,t),t}return null}updateMenuLabelsForSelectedRepository(){const{selectedState:e}=this.getState();null!==e&&e.type===Xe.Repository?this.updateMenuItemLabels(e.state):this.updateMenuItemLabels(null)}updateMenuItemLabels(e){const{useCustomShell:t,selectedShell:n,selectedRepository:r,useCustomEditor:s,selectedExternalEditor:i,askForConfirmationOnRepositoryRemoval:o,askForConfirmationOnForcePush:a}=this,l={selectedShell:t?null:n,selectedExternalEditor:s?null:i,askForConfirmationOnRepositoryRemoval:o,askForConfirmationOnForcePush:a};if(null===e)return void oe(l);const{changesState:c,branchesState:u,aheadBehind:h}=e,{currentPullRequest:p}=u;let d;r instanceof Kr&&(d=Rw(r,u)?.name??void 0);const m=Uy(u,h)!==Ly.NotAvailable,f=c.selection.kind===et.Stash,g=null!==c.stashEntry;oe({...l,contributionTargetDefaultBranch:d,isForcePushForCurrentRepository:m,isStashedChangesVisible:f,hasCurrentPullRequest:null!==p,askForConfirmationWhenStashingAllChanges:g,isChangesFilterVisible:this.showChangesFilter})}updateRepositorySelectionAfterRepositoriesChanged(){const e=this.selectedRepository;let t=this.selectedRepository;if(e&&(t=this.repositories.find((t=>t.constructor===e.constructor&&t.id===e.id))||null),null===t&&this.repositories.length>0){const e=Kt(eS,0);e>0&&(t=this.repositories.find((t=>t.id===e))||null),t||(t=this.repositories[0])}(e&&t&&e.hash!==t.hash||e&&!t||!e&&t)&&(this._selectRepository(t),this.emitUpdate())}async _loadStatus(e,t=!1){const n=this.gitStoreCache.get(e),r=await n.loadStatus();return null===r?null:(this.repositoryStateCache.updateChangesState(e,(e=>function(e,t,n){const r=new Map;e.workingDirectory.files.forEach((e=>r.set(e.id,e)));const s=t.workingDirectory.files.map((e=>{const t=r.get(e.id);return t?n&&t.selection.getSelectionType()===Hu.Partial?e.withIncludeAll(!1):e.withSelection(t.selection):e})).sort(((e,t)=>br(e.path,t.path))),i=new Set(s.map((e=>e.id))),o=sh.fromFiles(s),a=e.selection.kind;if(e.selection.kind===et.WorkingDirectory){let t=e.selection.selectedFileIDs.filter((e=>i.has(e)));0===t.length&&s.length>0&&(t=[s[0].id]);const n=1===t.length&&1===e.selection.selectedFileIDs.length&&e.selection.selectedFileIDs[0]===t[0]?e.selection.diff:null;return{workingDirectory:o,selection:{kind:et.WorkingDirectory,selectedFileIDs:t,diff:n}}}return e.selection.kind===et.Stash?{workingDirectory:o,selection:e.selection}:at(e.selection,`Unknown selection kind ${a}`)}(e,r,t))),this.repositoryStateCache.updateChangesState(e,(e=>({conflictState:wb(e,r,this.statsStore)}))),this.updateMultiCommitOperationConflictsIfFound(e),await this.initializeMultiCommitOperationIfConflictsFound(e,r),this.selectedRepository===e&&this._triggerConflictsFlow(e,r),this.emitUpdate(),this.updateChangesWorkingDirectoryDiff(e),r)}async initializeMultiCommitOperationIfConflictsFound(e,t){const n=this.repositoryStateCache.get(e),{changesState:{conflictState:r},multiCommitOperationState:s,branchesState:i}=n;if(null===r)return void this.clearConflictsFlowVisuals(n);if(null!==s)return;let o,a,l=null,c=[],u="";if(i.tip.kind===zr.Valid&&(l=i.tip.branch,u=l.tip.sha),rt(r))o={kind:"Merge",isSquash:t.squashMsgFound,sourceBranch:null},u=null!==l?l.tip.sha:null;else if(st(r)){const t=await Wy(e),n=await $y(e);if(null===t||null===n)return;u=n.originalBranchTip,c=t.commits,a=t.progress,o={kind:"Rebase",sourceBranch:null,commits:c,currentTip:n.baseBranchTip};const r=await Lf(e,n.originalBranchTip);null!==r&&(l=new od(n.targetBranch,null,r,rd.Local,`refs/heads/${n.targetBranch}`))}else if(it(r)){const t=await Jy(e);if(null===t)return;u=null,c=t.commits,a=t.progress,o={kind:"Cherry-pick",sourceBranch:null,branchCreated:!1,commits:c},this.repositoryStateCache.updateMultiCommitOperationUndoState(e,(()=>({undoSha:t.targetBranchUndoSha,branchName:""})))}else at(0,"Unsupported conflict kind");this._initializeMultiCommitOperation(e,o,l,c,u,!1),void 0!==a&&this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:a})))}updateMultiCommitOperationConflictsIfFound(e){const t=this.repositoryStateCache.get(e),{changesState:n,multiCommitOperationState:r}=this.repositoryStateCache.get(e),{conflictState:s}=n;if(null===s||null===r)return void this.clearConflictsFlowVisuals(t);const{step:i,operationDetail:o}=r;if("ShowConflicts"!==i.kind)return;const{manualResolutions:a}=s;if(this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({step:{...i,manualResolutions:a}}))),st(s)){const{currentTip:t}=s;this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({operationDetail:{...o,currentTip:t}})))}}async _triggerConflictsFlow(e,t){const n=this.repositoryStateCache.get(e),{changesState:{conflictState:r},multiCommitOperationState:s}=n;if(null===r)return void this.clearConflictsFlowVisuals(n);if(null===s)return;if(null!==this.currentBanner&&this.currentBanner.type===kb.ConflictsFound||function(e,t){return e&&null!==t&&rC.includes(t.step.kind)}(this.popupManager.areTherePopupsOfType(Sh.MultiCommitOperation),s))return;const{manualResolutions:i}=r;let o,a;rt(r)?(a=await this.getMergeConflictsTheirBranch(e,t.squashMsgFound,s),o=r.currentBranch):st(r)?(a=r.targetBranch,o=r.baseBranch):it(r)?(null!==s&&"Cherry-pick"===s.operationDetail.kind&&null!==s.operationDetail.sourceBranch&&(a=s.operationDetail.sourceBranch.name),o=r.targetBranchName):at(0,"Unsupported conflict kind"),this.statsStore.increment("mergeConflictFromExplicitMergeCount"),this._setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:i,ourBranch:o,theirBranch:a}}),this._showPopup({type:Sh.MultiCommitOperation,repository:e})}async getMergeConflictsTheirBranch(e,t,n){let r;if(null!==n&&"Merge"===n.operationDetail.kind&&null!==n.operationDetail.sourceBranch&&(r=n.operationDetail.sourceBranch.name),void 0===r&&!t){const t=await async function(e){const t=["branch","--points-at=MERGE_HEAD","--format=%(refname:short)"],{stdout:n,exitCode:r}=await zd(t,e.path,"branchPointedAt",{successExitCodes:new Set([0,1,129])});return 1===r||129===r?null:n.split("\n").slice(0,-1)}(e);if(null===t)return;r=1===t.length?t[0]:void 0}return r}clearConflictsFlowVisuals(e){const{multiCommitOperationState:t}=e;(function(e,t){return null!==e&&null!==t&&(e.type===Sh.MultiCommitOperation&&("ChooseBranch"===t.step.kind||"WarnForcePush"===t.step.kind||"ShowProgress"===t.step.kind))})(this.popupManager.currentPopup,t)||(this._closePopup(Sh.MultiCommitOperation),this._clearBanner(kb.ConflictsFound),this._clearBanner(kb.MergeConflictsFound))}async _changeRepositorySection(e,t,n=!1){if(this.repositoryStateCache.update(e,(e=>(e.selectedSection!==t&&this.statsStore.increment("repositoryViewChangeCount"),{selectedSection:t}))),this.emitUpdate(),t===Je.History?await this.refreshHistorySection(e):t===Je.Changes&&await this.refreshChangesSection(e,{includingStatus:!0,clearPartialState:!1}),n){const e=document.getElementById("repository-sidebar"),t=e?.querySelector(".tab-bar-item.selected");t?.focus()}}async _selectWorkingDirectoryFiles(e,t){this.repositoryStateCache.updateChangesState(e,(e=>function(e,t){let n;if(void 0===t){if(e.selection.kind===et.WorkingDirectory)return{selection:e.selection};n=e.workingDirectory.files.length>0?[e.workingDirectory.files[0].id]:new Array}else n=t.map((e=>e.id));return{selection:{kind:et.WorkingDirectory,selectedFileIDs:n,diff:null}}}(e,t))),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),this.updateChangesWorkingDirectoryDiff(e)}async updateChangesWorkingDirectoryDiff(e){const t=this.repositoryStateCache.get(e).changesState;if(t.selection.kind!==et.WorkingDirectory)return;const n=t.selection,r=n.selectedFileIDs;if(1!==r.length)return void(null!==n.diff&&(this.repositoryStateCache.updateChangesState(e,(()=>({selection:{...n,diff:null}}))),this.emitUpdate()));const s=r[0],i=t.workingDirectory.findFileWithID(s);if(null===i)return;const o=await Qf(e,i,this.hideWhitespaceInChangesDiff),a=this.repositoryStateCache.get(e).changesState;if(a.selection.kind!==et.WorkingDirectory||!bp(a.selection.selectedFileIDs,r))return;const l=a.selection.selectedFileIDs[0];if(l!==s)return;const c=a.workingDirectory.findFileWithID(l);if(null===c)return;const u=new Set;o.kind!==Lu.Text&&o.kind!==Lu.LargeText||o.hunks.forEach((e=>{e.lines.forEach(((t,n)=>{t.isIncludeableLine()&&u.add(e.unifiedDiffStart+n)}))}));const h=c.selection.withSelectableLines(u),p=c.withSelection(h),d=a.workingDirectory.files.map((e=>e.id===p.id?p:e)),m=sh.fromFiles(d),f={...a.selection,diff:o};this.repositoryStateCache.updateChangesState(e,(()=>({selection:f,workingDirectory:m}))),this.emitUpdate()}_hideStashedChanges(e){const{changesState:t}=this.repositoryStateCache.get(e);t.selection.kind===et.Stash&&(this.repositoryStateCache.updateChangesState(e,(e=>{const t=e.workingDirectory.files.filter((e=>e.selection.getSelectionType()!==Hu.None)).map((e=>e.id));return{selection:{kind:et.WorkingDirectory,diff:null,selectedFileIDs:t}}})),this.emitUpdate(),this.updateMenuLabelsForSelectedRepository())}async _selectStashedFile(e,t){this.repositoryStateCache.update(e,(()=>({selectedSection:Je.Changes}))),this.repositoryStateCache.updateChangesState(e,(e=>{let n=null;const{stashEntry:r,selection:s}=e,i=s.kind===et.Stash?s.selectedStashedFile:null,o=null!==r&&r.files.kind===nb.Loaded?r.files.files:[];return void 0===t?n=null!==i?o.find((e=>e.id===i.id))||o[0]||null:o[0]||null:null!==t&&(n=o.find((e=>e.id===t.id))||null),{selection:{kind:et.Stash,selectedStashedFile:n,selectedStashedFileDiff:null}}})),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),this.updateChangesStashDiff(e),this.hasUserViewedStash||(this.statsStore.increment("stashViewedAfterCheckoutCount"),this.hasUserViewedStash=!0)}async updateChangesStashDiff(e){const t=this.repositoryStateCache.get(e).changesState,n=t.selection;if(n.kind!==et.Stash)return;const r=t.stashEntry;if(null===r)return;let s=n.selectedStashedFile;if(null===s&&r.files.kind===nb.Loaded&&r.files.files.length>0&&(s=r.files.files[0]),null===s)return this.repositoryStateCache.updateChangesState(e,(()=>({selection:{kind:et.Stash,selectedStashedFile:null,selectedStashedFileDiff:null}}))),void this.emitUpdate();const i=await Kf(e,s,s.commitish),o=this.repositoryStateCache.get(e).changesState;o.selection.kind===et.Stash&&o.selection.selectedStashedFile===n.selectedStashedFile&&(this.repositoryStateCache.updateChangesState(e,(()=>({selection:{kind:et.Stash,selectedStashedFile:s,selectedStashedFileDiff:i}}))),this.emitUpdate())}async _commitIncludedChanges(e,t){const n=this.repositoryStateCache.get(e),r=n.changesState.workingDirectory.files.filter((e=>e.selection.getSelectionType()!==Hu.None)),s=this.gitStoreCache.get(e);return this.withIsCommitting(e,(async()=>{const i=await s.performFailableOperation((async()=>{const n=await ef(e,t);return ty(e,n,r,t.amend)}));return void 0!==i&&(await this._recordCommitStats(s,e,n,t,r,!0===t.amend),this.repositoryStateCache.update(e,(()=>({commitToAmend:null}))),await this.refreshChangesSection(e,{includingStatus:!0,clearPartialState:!0}),this._refreshRepositoryAfterCommit(e,i,n.commitToAmend)),void 0!==i}))}async _refreshRepositoryAfterCommit(e,t,n){await this._refreshRepository(e);const r=n?.sha;if(void 0!==r&&t!==r){const t=this.repositoryStateCache.get(e).branchesState.tip;t.kind===zr.Valid&&this._addBranchToForcePushList(e,t,r)}}async _recordCommitStats(e,t,n,r,s,i){this.statsStore.recordCommit();const o=s.some((e=>e.selection.getSelectionType()===Hu.Partial));o&&this.statsStore.increment("partialCommits"),!0===r.messageGeneratedByCopilot&&this.statsStore.increment("generateCommitMessageUsedVerbatimCount"),i&&this.statsStore.recordAmendCommitSuccessful(s.length>0);const{trailers:a}=r;void 0!==a&&a.some(cm)&&this.statsStore.increment("coAuthoredCommits");const l=tf(this.accounts,t);if(null!==t.gitHubRepository){if(null!==l){wn(l)?this.statsStore.increment("dotcomCommits"):this.statsStore.increment("enterpriseCommits");const{commitAuthor:e}=n;null!==e&&(Yb(l,e.email)||this.statsStore.increment("unattributedCommits"))}if(await this.repositoriesStore.hasBranchProtectionsConfigured(t.gitHubRepository)&&this.statsStore.increment("commitsToRepositoryWithBranchProtections"),null!==xb(e.tip,e.currentRemote,t.gitHubRepository)){const{changesState:e}=this.repositoryStateCache.get(t);e.currentBranchProtected&&this.statsStore.increment("commitsToProtectedBranch")}null===t.gitHubRepository||Vr(t.gitHubRepository)||(this.statsStore.increment("commitsToRepositoryWithoutWriteAccess"),this.statsStore.recordRepositoryCommitedInWithoutWriteAccess(t.gitHubRepository.dbID))}}_changeFileIncluded(e,t,n){const r=Array.isArray(t)?t:[t],s=new Set(r.map((e=>e.id)));return this.repositoryStateCache.updateChangesState(e,(e=>{const t=sh.fromFiles(e.workingDirectory.files.map((e=>s.has(e.id)?e.withIncludeAll(n):e)));return{workingDirectory:t}})),this.emitUpdate(),Promise.resolve()}_changeFileLineSelection(e,t,n){return this.updateWorkingDirectoryFileSelection(e,t,n),Promise.resolve()}updateWorkingDirectoryFileSelection(e,t,n){this.repositoryStateCache.updateChangesState(e,(e=>{const r=e.workingDirectory.files.map((e=>e.id===t.id?e.withSelection(n):e));return{workingDirectory:sh.fromFiles(r)}})),this.emitUpdate()}_changeIncludeAllFiles(e,t){return this.repositoryStateCache.updateChangesState(e,(e=>({workingDirectory:e.workingDirectory.withIncludeAllFiles(t)}))),this.emitUpdate(),Promise.resolve()}async _refreshOrRecoverRepository(e){if(!e.missing)return this._refreshRepository(e);{const t=await this.recoverMissingRepository(e);if(!t.missing)return this._refreshRepository(t)}}async recoverMissingRepository(e){return e.missing&&await k(e.path)&&"regular"===(await vy(e.path)).kind&&null!==await this._loadStatus(e)?await this._updateRepositoryMissing(e,!1):e}async _refreshRepository(e){if(e.missing)return;if(!await k(e.path))return void this._updateRepositoryMissing(e,!0);const t=this.repositoryStateCache.get(e),n=this.gitStoreCache.get(e),r=await this._loadStatus(e);if(this.updateSidebarIndicator(e,r),null===r)return void await this._updateRepositoryMissing(e,!0);await n.loadRemotes(),await n.loadBranches();const s=t.selectedSection;let i;if(s===Je.History)i=this.refreshHistorySection(e);else{if(s!==Je.Changes)return at(0,`Unknown section: ${s}`);i=this.refreshChangesSection(e,{includingStatus:!1,clearPartialState:!1})}await Promise.all([n.updateLastFetched(),n.loadStashEntries(),this._refreshAuthor(e),i]),await n.refreshTags(),this.updateStashEntryCountMetric(e,n.desktopStashEntryCount,n.stashEntryCount),this.updateCurrentPullRequest(e);const o=this.repositoryStateCache.get(e);this.updateMenuItemLabels(o),this._initializeCompare(e),this.updateCurrentTutorialStep(e)}async updateStashEntryCountMetric(e,t,n){const r=await this.repositoriesStore.getLastStashCheckDate(e),s=It(-24,"hours");if(null==r||s>r){await this.repositoriesStore.updateLastStashCheckDate(e);const r=n-t;this.statsStore.addStashEntriesCreatedOutsideDesktop(r)}}async updateSidebarIndicator(e,t){const n=this.localRepositoryStateLookup;e.missing?n.delete(e.id):null!==t?n.set(e.id,{aheadBehind:t.branchAheadBehind||null,changedFilesCount:t.workingDirectory.files.length}):n.delete(e.id)}refreshIndicatorForRepository=async e=>{const t=this.localRepositoryStateLookup;if(e.missing)return void t.delete(e.id);if(!await k(e.path))return void t.delete(e.id);const n=this.gitStoreCache.get(e),r=await n.loadStatus();if(null===r)return void t.delete(e.id);this.updateSidebarIndicator(e,r),this.emitUpdate();const s=await async function(e,t,n){const r=tf(e,n);if(null==r)return null;await t.loadRemotes();const{currentRemote:s}=t,i=rr.fromAccount(r);if(null!==s){const t=Cr(e,s.url);if(null!==t){const{owner:e,name:n}=t,r=await i.fetchRepository(e,n);if(null!==r)return new Date(r.pushed_at)}}if(null!==n.gitHubRepository){const{owner:e,name:t}=n.gitHubRepository,r=await i.fetchRepository(e.login,t);if(null!==r)return new Date(r.pushed_at)}return null}(this.accounts,n,e);if(await this.shouldBackgroundFetch(e,s)){const n=await this.fetchForRepositoryIndicator(e),r=t.get(e.id);t.set(e.id,{aheadBehind:n,changedFilesCount:r?.changedFilesCount??0}),this.emitUpdate()}};getRepositoriesForIndicatorRefresh=()=>this.repositories.filter((e=>e!==this.selectedRepository));fetchForRepositoryIndicator(e){return this.withRefreshedGitHubRepository(e,(async e=>{const t=this.gitStoreCache.get(e);return await this.withPushPullFetch(e,(()=>t.fetch(!0,(t=>this.updatePushPullFetchProgress(e,t))))),this.updatePushPullFetchProgress(e,null),t.aheadBehind}))}_setRepositoryIndicatorsEnabled(e){this.repositoryIndicatorsEnabled!==e&&(jt(ZS,e),this.repositoryIndicatorsEnabled=e,e?this.repositoryIndicatorUpdater.start():this.repositoryIndicatorUpdater.stop(),this.emitUpdate())}_setCommitSpellcheckEnabled(e){this.commitSpellcheckEnabled!==e&&(jt(BS,e),this.commitSpellcheckEnabled=e,this.emitUpdate())}_setUseWindowsOpenSSH(e){jt(wd,e),this.useWindowsOpenSSH=e,this.emitUpdate()}_setShowCommitLengthWarning(e){jt(SS,e),this.showCommitLengthWarning=e,this.emitUpdate()}_setNotificationsEnabled(e){this.notificationsStore.setNotificationsEnabled(e),this.emitUpdate()}async refreshChangesSection(e,t){t.includingStatus&&await this._loadStatus(e,t.clearPartialState);const n=this.gitStoreCache.get(e),r=this.repositoryStateCache.get(e);if(r.branchesState.tip.kind===zr.Valid){const e=r.branchesState.tip.branch;await n.loadLocalCommits(e)}else r.branchesState.tip.kind===zr.Unborn&&await n.loadLocalCommits(null)}async refreshHistorySection(e){const t=this.gitStoreCache.get(e),n=this.repositoryStateCache.get(e),r=n.branchesState.tip;return r.kind===zr.Valid&&await t.loadLocalCommits(r.branch),this.updateOrSelectFirstCommit(e,n.compareState.commitSHAs)}async _refreshAuthor(e){const t=this.gitStoreCache.get(e),n=await t.performFailableOperation((()=>ow(e)))||null;this.repositoryStateCache.update(e,(()=>({commitAuthor:n}))),this.emitUpdate()}async _showPopup(e){this._closeFoldout(Qe.AppMenu),this.popupManager.addPopup(e),this.emitUpdate()}_closePopup(e){const t=this.popupManager.currentPopup;if(null!==t){if(void 0===e)this.popupManager.removePopup(t);else{if(t.type!==e)return;t.type===Sh.CloneRepository&&this._completeOpenInDesktop((()=>Promise.resolve(null))),this.popupManager.removePopupByType(e)}this.emitUpdate()}}_closePopupById(e){null!==this.popupManager.currentPopup&&(this.popupManager.removePopupById(e),this.emitUpdate())}async _showFoldout(e){this.currentFoldout=e,this.emitUpdate(),e.type===Qe.Repository&&this.repositoryIndicatorsEnabled&&this.repositoryIndicatorUpdater.start()}async _closeCurrentFoldout(){null!=this.currentFoldout&&(this.currentFoldout=null,this.emitUpdate())}async _closeFoldout(e){null!=this.currentFoldout&&(void 0!==e&&this.currentFoldout.type!==e||(this.currentFoldout=null,this.emitUpdate()))}async _createBranch(e,t,n,r=!1,s=!0){const i=this.gitStoreCache.get(e),o=await i.createBranch(t,n,r);return void 0!==o&&s&&await this._checkoutBranch(e,o),o}async _createTag(e,t,n){const r=this.gitStoreCache.get(e);await r.createTag(t,n)}async _deleteTag(e,t){const n=this.gitStoreCache.get(e);await n.deleteTag(t)}updateCheckoutProgress(e,t){this.repositoryStateCache.update(e,(()=>({checkoutProgress:t}))),this.selectedRepository instanceof Kr&&this.selectedRepository.id===e.id&&this.emitUpdate()}async _checkoutBranch(e,t,n){const r=this.repositoryStateCache.get(e),{changesState:s,branchesState:i}=r,{currentBranchProtected:o,stashEntry:a}=s,{tip:l}=i,c=s.workingDirectory.files.length>0;if(l.kind===zr.Valid&&l.branch.name===t.name)return e;let u=n??this.uncommittedChangesStrategy;if(void 0===n&&u===Ab.StashOnCurrentBranch&&c&&null!==a){const n=Sh.ConfirmOverwriteStash;return this._showPopup({type:n,repository:e,branchToCheckout:t}),e}if((l.kind!==zr.Valid||o)&&(u=Ab.MoveToNewBranch),u===Ab.AskForConfirmation&&c){const n=Sh.StashAndSwitchBranch;return this._showPopup({type:n,branchToCheckout:t,repository:e}),e}return this.withRefreshedGitHubRepository(e,(e=>this.checkoutImplementation(e,t,u).then((()=>this.onSuccessfulCheckout(e,t))).catch((n=>this.emitError(new ft(n,e,t)))).then((()=>this.refreshAfterCheckout(e,t.name))).finally((()=>this.updateCheckoutProgress(e,null)))))}checkoutImplementation(e,t,n){const{currentRemote:r}=this.gitStoreCache.get(e);return n===Ab.StashOnCurrentBranch?this.checkoutAndLeaveChanges(e,t,r):n===Ab.MoveToNewBranch?this.checkoutAndBringChanges(e,t,r):this.checkoutIgnoringChanges(e,t,r)}async checkoutIgnoringChanges(e,t,n){await Kg(e,t,n,(t=>{this.updateCheckoutProgress(e,t)}))}async checkoutAndLeaveChanges(e,t,n){const r=this.repositoryStateCache.get(e),{workingDirectory:s}=r.changesState,{tip:i}=r.branchesState;return i.kind===zr.Valid&&s.files.length>0&&(await this.createStashAndDropPreviousEntry(e,i.branch),this.statsStore.increment("stashCreatedOnCurrentBranchCount")),this.checkoutIgnoringChanges(e,t,n)}async checkoutAndBringChanges(e,t,n){try{await this.checkoutIgnoringChanges(e,t,n)}catch(r){if(!nE(r))throw r;const s=await this.createStashEntry(e,t)?await ib(e,t):null;if(null===s)throw r;await this.checkoutIgnoringChanges(e,t,n),await cb(e,s.stashSha),this.statsStore.increment("changesTakenToNewBranchCount")}}async onSuccessfulCheckout(e,t){const n=this.repositoryStateCache.get(e),{stashEntry:r}=n.changesState,{defaultBranch:s}=n.branchesState;this.clearBranchProtectionState(e),await this._selectWorkingDirectoryFiles(e),this._initializeCompare(e,{kind:tt.History}),null!==s&&t.name!==s.name&&this.statsStore.recordNonDefaultBranchCheckout(),null===r||this.hasUserViewedStash||this.statsStore.increment("stashNotViewedAfterCheckoutCount"),this.hasUserViewedStash=!1}async refreshAfterCheckout(e,t){return this.updateCheckoutProgress(e,{kind:"checkout",title:"刷新存储库",description:"Checking out",value:1,target:t}),await this._refreshRepository(e),e}async _checkoutCommit(e,t){const n=this.repositoryStateCache.get(e),{branchesState:r}=n,{tip:s}=r,{currentRemote:i}=this.gitStoreCache.get(e);return s.kind===zr.Valid&&s.branch.tip.sha===t.sha||s.kind===zr.Detached&&s.currentSha===t.sha?e:this.withRefreshedGitHubRepository(e,(e=>this.checkoutCommitDefaultBehaviour(e,t,i).catch((e=>this.emitError(new Error(e)))).then((()=>this.refreshAfterCheckout(e,fm(t.sha)))).finally((()=>this.updateCheckoutProgress(e,null)))))}async checkoutCommitDefaultBehaviour(e,t,n){await async function(e,t,n,r){const s=await jg(e,"Checking out commit",fm(t.sha),n,r),i=[...Gg(r),t.sha];return await zd(i,e.path,"checkoutCommit",s),!0}(e,t,n,(t=>{this.updateCheckoutProgress(e,t)}))}async _createStashForCurrentBranch(e,t){const n=this.repositoryStateCache.get(e),r=n.branchesState.tip,s=r.kind===zr.Valid?r.branch:null,i=null!==n.changesState.stashEntry;return null!==s&&(t&&i?(this._showPopup({type:Sh.ConfirmOverwriteStash,branchToCheckout:null,repository:e}),!1):!!await this.createStashAndDropPreviousEntry(e,s)&&(this.statsStore.increment("stashCreatedOnCurrentBranchCount"),await this._refreshRepository(e),!0))}async repositoryWithRefreshedGitHubRepository(e){const t=this.repositoriesStore,n=await this.matchGitHubRepository(e);if(!n)return e;const{account:r,owner:s,name:o}=n,{endpoint:a}=r,l=rr.fromAccount(r),c=await l.fetchRepository(s,o);if(null===c){if(a!==e.gitHubRepository?.endpoint){const r=await t.upsertGitHubRepositoryFromMatch(n);return t.setGitHubRepository(e,r)}return e}if(e.gitHubRepository){const t=this.gitStoreCache.get(e);await async function(e,t,n){if(null===e.defaultRemote)return;const r=e.defaultRemote.url,s=n.clone_url,o=Er(s,e.defaultRemote),a=i.parse(r),l=i.parse(s),c=null!==a.protocol&&null!==l.protocol&&a.protocol===l.protocol,u=e.defaultRemote&&Er(t.cloneURL,e.defaultRemote);c&&u&&!o&&await e.setRemoteURL(e.defaultRemote.name,s)}(t,e.gitHubRepository,c)}const u=await t.upsertGitHubRepository(a,c),h=await t.setGitHubRepository(e,u);return await this.refreshBranchProtectionState(h),h}async updateBranchProtectionsFromAPI(e){if(null===e.gitHubRepository)return;const{owner:t,name:n}=e.gitHubRepository,r=lr(this.accounts,e.gitHubRepository.endpoint);if(null===r)return;const s=rr.fromAccount(r),i=await s.fetchProtectedBranches(t.login,n);await this.repositoriesStore.updateBranchProtections(e.gitHubRepository,i)}async matchGitHubRepository(e){const t=this.gitStoreCache.get(e);t.defaultRemote||await t.loadRemotes();const n=t.defaultRemote;return null!==n?Cr(this.accounts,n.url):null}_pushError(e){return this.popupManager.addErrorPopup(e),this.emitUpdate(),Promise.resolve()}async _changeRepositoryAlias(e,t){return this.repositoriesStore.updateRepositoryAlias(e,t)}async _renameBranch(e,t,n){const r=this.gitStoreCache.get(e);return await r.performFailableOperation((async()=>{await async function(e,t,n){await zd(["branch","-m",t.nameWithoutRemote,n],e.path,"renameBranch")}(e,t,n);const s=r.desktopStashEntries.get(t.name);s&&await async function(e,{stashSha:t,parents:n,tree:r},s){const i=`On ${s}: ${ob(s)}`,o=n.flatMap((e=>["-p",e])),{stdout:a}=await zd(["commit-tree",...o,"-m",i,"--no-gpg-sign",r],e.path,"moveStashEntryToBranch");await zd(["stash","store","-m",i,a.trim()],e.path,"moveStashEntryToBranch"),await lb(e,t)}(e,s,n)})),this._refreshRepository(e)}async _deleteBranch(e,t,n,r){return this.withRefreshedGitHubRepository(e,(async e=>{const s=this.gitStoreCache.get(e);if(t.type===rd.Remote){const{remoteName:n,tip:r,nameWithoutRemote:i}=t;if(null===n)throw new Error(`Could not determine remote name from: ${t.ref}.`);const o=s.remotes.find((e=>e.name===n))??await hy(e,n).then((e=>e?{name:n,url:e}:void 0)).catch((e=>log.debug("Could not get remote URL",e)));if(void 0===o)throw new Error(`Could not determine remote url from: ${t.ref}.`);return await s.performFailableOperation((()=>vg(e,o,i))),log.info(`Deleted branch ${t.upstreamWithoutRemote} (was ${r.sha})`),this._refreshRepository(e)}const i=r??this.getBranchToCheckoutAfterDelete(t,e);return null!==i&&await s.performFailableOperation((()=>Kg(e,i,s.currentRemote))),await s.performFailableOperation((()=>this.deleteLocalBranchAndUpstreamBranch(e,t,n))),this._refreshRepository(e)}))}async deleteLocalBranchAndUpstreamBranch(e,t,n){if(await Cg(e,t.name),!0===n&&null!==t.upstreamRemoteName&&null!==t.upstreamWithoutRemote){const n=this.gitStoreCache.get(e),r=t.upstreamRemoteName,s=n.remotes.find((e=>e.name===r))??await hy(e,r).then((e=>e?{name:r,url:e}:void 0)).catch((e=>log.debug("Could not get remote URL",e)));if(!s)throw new Error(`Could not determine remote url from: ${t.ref}.`);await vg(e,s,t.upstreamWithoutRemote)}}getBranchToCheckoutAfterDelete(e,t){const{branchesState:n}=this.repositoryStateCache.get(t),r=n.tip,s=r.kind===zr.Valid?r.branch:null;if(null!==s&&e.name!==s.name)return null;const i=n.defaultBranch??n.recentBranches.find((t=>t.name!==e.name));if(void 0===i)throw new Error("It's not possible to delete the only existing branch in a repository.");return i}updatePushPullFetchProgress(e,t){this.repositoryStateCache.update(e,(()=>({pushPullFetchProgress:t}))),this.selectedRepository===e&&this.emitUpdate()}async _push(e,t){return this.withRefreshedGitHubRepository(e,(e=>this.performPush(e,t)))}getBranchToPush(e,t){if(void 0!==t?.branch)return t?.branch;const n=this.repositoryStateCache.get(e),{tip:r}=n.branchesState;if(r.kind===zr.Unborn)throw new Error("The current branch is unborn.");if(r.kind===zr.Detached)throw new Error("The current repository is in a detached HEAD state.");return r.kind===zr.Valid?r.branch:void 0}async performPush(e,t){const n=this.repositoryStateCache.get(e),{remote:r}=n;if(null!==r)return this.withPushPullFetch(e,(async()=>{const n=this.getBranchToPush(e,t);if(void 0===n)return;const s=n.upstreamRemoteName||r.name,i=`正在推送到 ${s}`;this.updatePushPullFetchProgress(e,{kind:"push",title:i,value:0,remote:s,branch:n.name});let o=2.5,a=1;const l=1/(o+a)*.9;o*=l,a*=l;const c={type:pt.Push,repository:e},u={name:s,url:r.url};u.name!==r.name&&QT("remoteNameMismatch",new Error("The current remote name differs from the branch remote"));const h=this.gitStoreCache.get(e);await h.performFailableOperation((async()=>{await async function(e,t,n,r,s,i={forceWithLease:!1},o){const a=["push",t.name,r?`${n}:${r}`:n];null!==s&&a.push(...s),r?!0===i.forceWithLease&&a.push("--force-with-lease"):a.push("--set-upstream");let l={env:await wg(t.url)};if(o){a.push("--progress");const e=`正在推送到 ${t.name}`,r="push";l=await Vg({...l,trackLFSProgress:!0},new Mg,(s=>{const i="progress"===s.kind?s.details.text:s.text,a=s.percent;o({kind:r,title:e,description:i,value:a,remote:t.name,branch:n})})),o({kind:"push",title:e,value:0,remote:t.name,branch:n})}await zd(a,e.path,"push",l)}(e,u,n.name,n.upstreamWithoutRemote,h.tagsToPush,t,(t=>{this.updatePushPullFetchProgress(e,{...t,title:i,value:o*t.value})})),h.clearTagsToPush(),await h.fetchRemotes([u],!1,(t=>{this.updatePushPullFetchProgress(e,{...t,value:o+t.value*a})}));const r="刷新存储库",s=o+a;this.updatePushPullFetchProgress(e,{kind:"generic",title:r,description:"快进式合并分支",value:s}),await this.fastForwardBranches(e),this.updatePushPullFetchProgress(e,{kind:"generic",title:r,value:s+.05}),await this.refreshBranchProtectionState(e),await this._refreshRepository(e)}),{retryAction:c}),this.updatePushPullFetchProgress(e,null),this.updateMenuLabelsForSelectedRepository(),this.statsStore.recordPush(tf(this.accounts,e),t)}));this._showPopup({type:Sh.PublishRepository,repository:e})}async withIsCommitting(e,t){if(this.repositoryStateCache.get(e).isCommitting)return!1;this.repositoryStateCache.update(e,(()=>({isCommitting:!0}))),this.emitUpdate();try{return await t()}finally{this.repositoryStateCache.update(e,(()=>({isCommitting:!1}))),this.emitUpdate()}}async withIsGeneratingCommitMessage(e,t){if(this.repositoryStateCache.get(e).isGeneratingCommitMessage)return!1;this.repositoryStateCache.update(e,(()=>({isGeneratingCommitMessage:!0}))),this.emitUpdate();try{return await t()}finally{this.repositoryStateCache.update(e,(()=>({isGeneratingCommitMessage:!1}))),this.emitUpdate()}}async withPushPullFetch(e,t){if(!this.repositoryStateCache.get(e).isPushPullFetchInProgress){this.repositoryStateCache.update(e,(()=>({isPushPullFetchInProgress:!0}))),this.emitUpdate();try{await t()}finally{this.repositoryStateCache.update(e,(()=>({isPushPullFetchInProgress:!1}))),this.emitUpdate()}}}async _pull(e){return this.withRefreshedGitHubRepository(e,(e=>this.performPull(e)))}async performPull(e){return this.withPushPullFetch(e,(async()=>{const t=this.gitStoreCache.get(e),n=t.currentRemote;if(!n)throw new Error("The repository has no remotes.");const r=this.repositoryStateCache.get(e).branchesState.tip;if(r.kind===zr.Unborn)throw new Error("The current branch is unborn.");if(r.kind===zr.Detached)throw new Error("The current repository is in a detached HEAD state.");if(r.kind===zr.Valid){let s,i=null;null!==r.branch.upstream&&(i=await Hf(e,r.branch.name,r.branch.upstream),s={kind:"pull",theirBranch:r.branch.upstream,currentBranch:r.branch.name});const o=`Pulling ${n.name}`,a="pull";this.updatePushPullFetchProgress(e,{kind:a,title:o,value:0,remote:n.name});try{let r=2,o=1;const a=.1,l=1/(r+o)*(1-a);r*=l,o*=l;const c={type:pt.Pull,repository:e};t.pullWithRebase?this.statsStore.increment("pullWithRebaseCount"):this.statsStore.increment("pullWithDefaultSettingCount"),await t.performFailableOperation((async()=>(await async function(e,t,n){let r={env:await wg(t.url)};if(n){const e=`Pulling ${t.name}`,s="pull";r=await Vg({...r,trackLFSProgress:!0},new Fg,(r=>{if("context"===r.kind&&!r.text.startsWith("remote: Counting objects"))return;const i="progress"===r.kind?r.details.text:r.text,o=r.percent;n({kind:s,title:e,description:i,value:o,remote:t.name})})),n({kind:s,title:e,value:0,remote:t.name})}const s=await async function(e,t,n){return["-c","rebase.backend=merge","pull",...await iy(e),"--recurse-submodules",...n?["--progress"]:[],t]}(e,t.name,n);await zd(s,e.path,"pull",r)}(e,n,(t=>{this.updatePushPullFetchProgress(e,{...t,value:t.value*r})})),!0)),{gitContext:s,retryAction:c})&&await py(e,n,!1).catch((e=>log.error("Failed updating remote HEAD",e)));const u=r+o,h="刷新存储库";this.updatePushPullFetchProgress(e,{kind:"generic",title:h,description:"快进式合并分支",value:u}),await this.fastForwardBranches(e),this.updatePushPullFetchProgress(e,{kind:"generic",title:h,value:u+.5*a}),i&&await t.reconcileHistory(i),await this.refreshBranchProtectionState(e),await this._refreshRepository(e)}finally{this.updatePushPullFetchProgress(e,null)}}}))}async fastForwardBranches(e){try{const t=await async function(e){const{formatArgs:t,parse:n}=Pf({fullName:"%(refname)",sha:"%(objectname)",upstream:"%(upstream)",symref:"%(symref)",head:"%(HEAD)"}),r=await zd(["for-each-ref",...t,"refs/heads","refs/remotes"],e.path,"getBranchesDifferingFromUpstream",{expectedErrors:new Set([ad.GitError.NotAGitRepository])});if(r.gitError===ad.GitError.NotAGitRepository)return[];const s=[],i=new Map;for(const e of n(r.stdout))if(!(e.symref.length>0||"*"===e.head))if(e.fullName.startsWith("refs/heads")){if(0===e.upstream.length)continue;s.push({ref:e.fullName,sha:e.sha,upstream:e.upstream})}else i.set(e.fullName,e.sha);const o=new Array;for(const e of s){const t=i.get(e.upstream);void 0!==t&&t!==e.sha&&o.push({ref:e.ref,sha:e.sha,upstreamRef:e.upstream,upstreamSha:t})}return o}(e);await async function(e,t){if(0===t.length)return;const n=t.map((e=>`${e.upstreamRef}:${e.ref}`));await zd(["fetch",".","--show-forced-updates","--no-write-fetch-head","--stdin"],e.path,"fastForwardBranches",{successExitCodes:new Set([0,1]),env:{GIT_REFLOG_ACTION:"pull"},stdin:n.join("\n")})}(e,t)}catch(e){log.error("Branch fast-forwarding failed",e)}}async _publishRepository(e,t,n,r,s,i){const o=rr.fromAccount(s),a=await o.createRepository(i,t,n,r),l=this.gitStoreCache.get(e);return await l.performFailableOperation((()=>ly(e,"origin",a.clone_url))),await l.loadRemotes(),l.tip.kind===zr.Valid&&(null!==l.defaultBranch&&l.tip.branch.name!==l.defaultBranch.name&&await this.performPush(e,{branch:l.defaultBranch,forceWithLease:!1}),await this.performPush(e)),await l.refreshDefaultBranch(),this.repositoryWithRefreshedGitHubRepository(e)}_clone(e,t,n={}){const r=this.cloningRepositoriesStore.clone(e,t,n),s=this.cloningRepositoriesStore.repositories.find((n=>n.url===e&&n.path===t));return r.then((e=>{e&&this.statsStore.recordCloneRepository()})),{promise:r,repository:s}}_removeCloningRepository(e){this.cloningRepositoriesStore.remove(e)}async _discardChanges(e,t,n=!0){const r=this.gitStoreCache.get(e),{askForConfirmationOnDiscardChangesPermanently:s}=this.getState();try{await r.discardChanges(t,n,s)}catch(e){return e instanceof gt||log.error("Failed discarding changes",e),void this.emitError(e)}return this._refreshRepository(e)}async _discardChangesFromSelection(e,t,n,r){const s=this.gitStoreCache.get(e);return await s.discardChangesFromSelection(t,n,r),this._refreshRepository(e)}async _startAmendingRepository(e,t,n,r=!1){const s=this.repositoryStateCache.get(e),{tip:i}=s.branchesState,{askForConfirmationOnForcePush:o}=this.getState();if(o&&!r&&!n&&i.kind===zr.Valid)return this._showPopup({type:Sh.WarnForcePush,operation:"修改",onBegin:()=>{this._startAmendingRepository(e,t,n,!0)}});await this._changeRepositorySection(e,Je.Changes);const a=this.gitStoreCache.get(e);await a.prepareToAmendCommit(t),this.setRepositoryCommitToAmend(e,t),this.statsStore.increment("amendCommitStartedCount")}async _stopAmendingRepository(e){this.setRepositoryCommitToAmend(e,null)}setRepositoryCommitToAmend(e,t){this.repositoryStateCache.update(e,(()=>({commitToAmend:t}))),this.emitUpdate()}async _undoCommit(e,t,n){const r=this.gitStoreCache.get(e),s=this.repositoryStateCache.get(e),{changesState:i}=s,o=0===i.workingDirectory.files.length;return n&&(this.confirmUndoCommit&&!o||t.isMergeCommit)?this._showPopup({type:Sh.WarnLocalChangesBeforeUndo,repository:e,commit:t,isWorkingDirectoryClean:o}):(await this._changeRepositorySection(e,Je.Changes,!0),await r.undoCommit(t),this.statsStore.recordCommitUndone(o),this._refreshRepository(e))}async _resetToCommit(e,t,n){const r=this.gitStoreCache.get(e),s=this.repositoryStateCache.get(e),{changesState:i}=s,o=0===i.workingDirectory.files.length;return n&&!o?this._showPopup({type:Sh.WarningBeforeReset,repository:e,commit:t}):(await this._changeRepositorySection(e,Je.Changes),await r.performFailableOperation((()=>Zf(e,2,t.sha))),this._refreshRepository(e))}async _fetchRefspec(e,t){return this.withRefreshedGitHubRepository(e,(async e=>{const n=this.gitStoreCache.get(e);return await n.fetchRefspec(t),this._refreshRepository(e)}))}_fetch(e,t){return this.withRefreshedGitHubRepository(e,(e=>this.performFetch(e,t)))}_fetchRemote(e,t,n){return this.withRefreshedGitHubRepository(e,(e=>this.performFetch(e,n,[t])))}async performFetch(e,t,n){await this.withPushPullFetch(e,(async()=>{const r=this.gitStoreCache.get(e);try{const s=.9,i=.1,o=t===mn.BackgroundTask,a=t=>{this.updatePushPullFetchProgress(e,{...t,value:t.value*s})};void 0===n?await r.fetch(o,a):await r.fetchRemotes(n,o,a);const l="刷新存储库";this.updatePushPullFetchProgress(e,{kind:"generic",title:l,description:"快进式合并分支",value:s}),await this.fastForwardBranches(e),this.updatePushPullFetchProgress(e,{kind:"generic",title:l,value:s+.5*i}),await this.refreshBranchProtectionState(e),await this._refreshRepository(e)}finally{this.updatePushPullFetchProgress(e,null),t===mn.UserInitiatedTask&&null!=e.gitHubRepository&&this._refreshIssues(e.gitHubRepository)}}))}_endWelcomeFlow(){return this.showWelcomeFlow=!1,this.emitUpdate(),jt(Hp,!0),this.statsStore.recordWelcomeWizardTerminated(),Promise.resolve()}_setCommitMessageFocus(e){this.focusCommitMessage!==e&&(this.focusCommitMessage=e,this.emitUpdate())}_setSidebarWidth(e){return this.sidebarWidth={...this.sidebarWidth,value:e},Yt(nS,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetSidebarWidth(){return this.sidebarWidth={...this.sidebarWidth,value:250},localStorage.removeItem(nS),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_setBranchDropdownWidth(e){return this.branchDropdownWidth={...this.branchDropdownWidth,value:e},Yt(aS,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetBranchDropdownWidth(){return this.branchDropdownWidth={...this.branchDropdownWidth,value:oS},localStorage.removeItem(aS),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_setPushPullButtonWidth(e){return this.pushPullButtonWidth={...this.pushPullButtonWidth,value:e},Yt(cS,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetPushPullButtonWidth(){return this.pushPullButtonWidth={...this.pushPullButtonWidth,value:lS},localStorage.removeItem(cS),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_setCommitSummaryWidth(e){return this.commitSummaryWidth={...this.commitSummaryWidth,value:e},Yt(rS,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetCommitSummaryWidth(){return this.commitSummaryWidth={...this.commitSummaryWidth,value:250},localStorage.removeItem(rS),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_setCommitMessage(e,t){return this.gitStoreCache.get(e).setCommitMessage(t)}async _promptOverrideWithGeneratedCommitMessage(e,t){return this._showPopup({type:Sh.GenerateCommitMessageOverrideWarning,repository:e,filesSelected:t})}_updateCommitMessageGenerationDisclaimerLastSeen(){this.commitMessageGenerationDisclaimerLastSeen=Date.now(),Yt(QS,this.commitMessageGenerationDisclaimerLastSeen),this.emitUpdate()}_setCommitMessageGenerationButtonClicked(){this.commitMessageGenerationButtonClicked||(this.commitMessageGenerationButtonClicked=!0,jt(JS,!0),this.emitUpdate())}async _generateCommitMessage(e,t){const n=this.getState().accounts.find(ln);return!!n&&(this._setCommitMessageGenerationButtonClicked(),!this.commitMessageGenerationDisclaimerLastSeen||It(-30,"days")>this.commitMessageGenerationDisclaimerLastSeen?(await this._showPopup({type:Sh.GenerateCommitMessageDisclaimer,repository:e,filesSelected:t}),!1):this.withIsGeneratingCommitMessage(e,(async()=>{const r=this.repositoryStateCache.get(e)?.commitToAmend?.sha??void 0,s=await async function(e,t,n){await $f(e),await Vf(e,t);const r=["diff","--no-ext-diff","--patch-with-raw","--no-color","--staged",...n?[n]:[]],s=new Set([0]),{stdout:i}=await zd(r,e.path,"getFilesDiffText",{successExitCodes:s,encoding:"buffer"});if(await $f(e),i.length>10485760)throw new Error("Diff is too large to render");return await(async()=>i.toString("utf8"))()}(e,t,r?`${r}^`:void 0);if(!s)return!1;const i=rr.fromAccount(n);try{const t=await i.getDiffChangesCommitMessage(s);this._setCommitMessage(e,{summary:t.title,description:t.description,timestamp:Date.now(),generatedByCopilot:!0}),this.statsStore.increment("generateCommitMessageCount")}catch(t){return this.emitError(new mt(t,{repository:e})),!1}return!0})))}setAppMenu(e){return this.appMenu?this.appMenu=this.appMenu.withMenu(e):this.appMenu=as.fromMenu(e),this.emitUpdate(),Promise.resolve()}_setAppMenuState(e){return this.appMenu&&(this.appMenu=e(this.appMenu),this.emitUpdate()),Promise.resolve()}_setAccessKeyHighlightState(e){return this.highlightAccessKeys!==e&&(this.highlightAccessKeys=e,this.emitUpdate()),Promise.resolve()}async _mergeBranch(e,t,n,r=!1){const{multiCommitOperationState:s}=this.repositoryStateCache.get(e);if(null===s||"Merge"!==s.operationDetail.kind)return void log.error("[mergeBranch] - Not in merge operation state");this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({operationDetail:{...s.operationDetail,sourceBranch:t}})));const i=this.gitStoreCache.get(e);r&&this.statsStore.increment("squashMergeInvokedCount"),null!==n&&(n.kind===Rb.Clean?this.statsStore.increment("mergedWithCleanMergeHintCount"):n.kind===Rb.Conflicts?this.statsStore.increment("mergedWithConflictWarningHintCount"):n.kind===Rb.Loading&&this.statsStore.increment("mergedWithLoadingHintCount"));const o=await i.merge(t,r),{tip:a}=i;return o===Bf.Success&&a.kind===zr.Valid?(this._setBanner({type:kb.SuccessfulMerge,ourBranch:a.branch.name,theirBranch:t.name}),r&&this.statsStore.increment("squashMergeSuccessfulCount"),this._endMultiCommitOperation(e)):o===Bf.AlreadyUpToDate&&a.kind===zr.Valid&&(this._setBanner({type:kb.BranchAlreadyUpToDate,ourBranch:a.branch.name,theirBranch:t.name}),this._endMultiCommitOperation(e)),this._refreshRepository(e)}_setConflictsResolved(e){const{multiCommitOperationState:t}=this.repositoryStateCache.get(e);null!==t&&this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({userHasResolvedConflicts:!0})))}async _rebase(e,t,n){const r=this.getMultiCommitOperationProgressCallBack(e),s=this.gitStoreCache.get(e),i=await s.performFailableOperation((()=>async function(e,t,n,r){const s={expectedErrors:new Set([ad.GitError.RebaseConflicts])};let i=s;if(void 0!==r){const o=await yy(e,t.tip.sha,n.tip.sha);if(null===o)return log.warn("Unable to rebase these branches because one or both of the refs do not exist in the repository"),By.Error;i=Gy(s,{commits:o,progressCallback:r})}return zy(await zd(["-c","rebase.backend=merge","rebase",t.name,n.name],e.path,"rebase",i))}(e,t,n,r)),{retryAction:{type:pt.Rebase,repository:e,baseBranch:t,targetBranch:n}});return i||By.Error}async _abortRebase(e){const t=this.gitStoreCache.get(e);return await t.performFailableOperation((()=>async function(e){await zd(["rebase","--abort"],e.path,"abortRebase")}(e)))}async _continueRebase(e,n,r){const s=this.getMultiCommitOperationProgressCallBack(e),i=this.gitStoreCache.get(e);return await i.performFailableOperation((()=>async function(e,n,r=new Map,s,i=":"){const o=n.filter((e=>e.status.kind!==Wu.Untracked));for(const[t,s]of r){const r=n.find((e=>e.path===t));void 0!==r?await ey(e,r,s):log.error(`[continueRebase] couldn't find file ${t} even though there's a manual resolution for it`)}const a=o.filter((e=>!r.has(e.path)));await Vf(e,a);const l=await sw(e,!1);if(null==l)return log.warn("[continueRebase] unable to get status after staging changes, skipping any other steps"),By.Aborted;const c=await async function(e){try{const n=t.join(e.path,".git","REBASE_HEAD");return(await(0,w.readFile)(n,"utf8")).trim()}catch(e){return log.warn("[rebase] a problem was encountered reading .git/REBASE_HEAD, so it is unsafe to continue rebasing",e),null}}(e);if(null===c)return By.Aborted;const u=l.workingDirectory.files.filter((e=>e.status.kind!==Wu.Untracked)),h={expectedErrors:new Set([ad.GitError.RebaseConflicts,ad.GitError.UnresolvedConflicts]),env:{GIT_EDITOR:i}};let p=h;if(void 0!==s){const t=await Wy(e);if(null===t)return log.warn("[continueRebase] unable to get rebase status, skipping any other steps"),By.Aborted;p=Gy(h,{commits:t.commits,progressCallback:s})}return 0===u.length?(log.warn(`[rebase] no tracked changes to commit for ${c}, continuing rebase but skipping this commit`),zy(await zd(["rebase","--skip"],e.path,"continueRebaseSkipCurrentCommit",p))):zy(await zd(["rebase","--continue"],e.path,"continueRebase",p))}(e,n.files,r,s)))||By.Error}async _abortMerge(e){const t=this.gitStoreCache.get(e);return await t.performFailableOperation((()=>async function(e){await zd(["merge","--abort"],e.path,"abortMerge")}(e)))}async _abortSquashMerge(e){const t=this.gitStoreCache.get(e),{branchesState:n,changesState:{workingDirectory:r}}=this.repositoryStateCache.get(e);if(void 0===await this._finishConflictedMerge(e,r,new Map))return void log.error("[_abortSquashMerge] - Could not abort squash merge - commiting squash msg failed");const{tip:s}=n;s.kind===zr.Valid?await t.performFailableOperation((()=>Zf(e,0,s.branch.tip.sha))):log.error("[_abortSquashMerge] - Could not abort squash merge - tip was invalid")}async _finishConflictedMerge(e,t,n){const r=t.files.filter((e=>e.status.kind===Wu.Conflicted)),s=this.gitStoreCache.get(e);return await s.performFailableOperation((()=>async function(e,t,n=new Map){for(const[r,s]of n){const n=t.find((e=>e.path===r));void 0!==n?await ey(e,n,s):log.error(`couldn't find file ${r} even though there's a manual resolution for it`)}const r=t.filter((e=>!n.has(e.path)));return await Vf(e,r),Jd(await zd(["commit","--no-edit","--cleanup=strip"],e.path,"createMergeCommit"))}(e,r,n)))}async _setRemoteURL(e,t,n){const r=this.gitStoreCache.get(e);await r.setRemoteURL(t,n)}async _openShell(e){this.statsStore.increment("openShellCount");const{useCustomShell:t,customShell:n}=this.getState();try{if(t&&n)await Uw(n,e,(e=>this._pushError(e)));else{const t=await async function(e){const t=await Hw(),n=t.find((t=>t.shell===e));return n||t.find((e=>e.shell===Ow))}(this.selectedShell);await async function(e,t,n){if(!await k(e.path)){const t="选项";throw new Nw(`Could not find executable for '${e.shell}' at path '${e.path}'. Please open ${t} and select an available shell.`)}let r=null;return r=function(e,t){const n=e.shell;switch(n){case Iw.PowerShell:return(0,b.spawn)("START",['"PowerShell"',`"${e.path}"`],{shell:!0,cwd:t});case Iw.PowerShellCore:return(0,b.spawn)("START",['"PowerShell Core"',`"${e.path}"`,"-WorkingDirectory",`"${t}"`],{shell:!0,cwd:t});case Iw.Hyper:const r=`"${e.path}"`;return log.info(`launching ${n} at path: ${r}`),(0,b.spawn)(r,[`"${t}"`],{shell:!0,cwd:t});case Iw.Alacritty:const s=`"${e.path}"`;return log.info(`launching ${n} at path: ${s}`),(0,b.spawn)(s,[`--working-directory "${t}"`],{shell:!0,cwd:t});case Iw.GitBash:const i=`"${e.path}"`;return log.info(`launching ${n} at path: ${i}`),(0,b.spawn)(i,[`--cd="${t}"`],{shell:!0,cwd:t});case Iw.Cygwin:const o=`"${e.path}"`;return log.info(`launching ${n} at path: ${o}`),(0,b.spawn)(o,[`/bin/sh -lc 'cd "$(cygpath "${t}")"; exec bash`],{shell:!0,cwd:t});case Iw.WSL:return(0,b.spawn)("START",['"WSL"',`"${e.path}"`],{shell:!0,cwd:t});case Iw.Cmd:return(0,b.spawn)("START",['"命令行"',`"${e.path}"`,...e.extraArgs],{shell:!0,cwd:t});case Iw.WindowsTerminal:const a=`"${e.path}"`;return log.info(`launching ${n} at path: ${a}`),(0,b.spawn)(a,["-d ."],{shell:!0,cwd:t});case Iw.FluentTerminal:const l=`"${e.path}"`;return log.info(`launching ${n} at path: ${l}`),(0,b.spawn)(l,["new"],{shell:!0,cwd:t});default:return at(0,`Unknown shell: ${n}`)}}(e,t),null!=r?(Zw(e.shell,r,n),Promise.resolve()):Promise.reject("Platform not currently supported for launching shells: win32")}(t,e,(e=>this._pushError(e)))}}catch(e){this.emitError(e)}}_openInBrowser(e){return ut.openExternal(e)}async _editGlobalGitConfig(){await zd(["config","--edit","--global"],__dirname,"getGlobalConfigPath",{env:{GIT_EDITOR:"printf %s"}}).then((e=>(0,t.normalize)(e.stdout))).then((e=>this._openInExternalEditor(e))).catch((e=>log.error("Could not open global Git config for editing",e)))}async _openInExternalEditor(e){const{selectedExternalEditor:t,useCustomEditor:n,customEditor:r}=this.getState();try{if(n&&r)await((e,t)=>{const n=jm(zm(t.arguments),e),r=`custom editor at path '${t.path}'`;return Jm(t.path,n,r,!1)})(e,r);else{const n=await Vm(t);if(null===n)return void this.emitError(new Em(`No suitable editors installed for GitHub Desktop to launch. Install ${km} for your platform and restart GitHub Desktop to try again.`,{suggestDefaultEditor:!0}));await((e,t)=>Jm(t.path,[e],`'${t.editor}'`,!1))(e,n)}}catch(e){this.emitError(e)}}async _saveGitIgnore(e,t){return await hw(e,t),this._refreshRepository(e)}async setStatsOptOut(e,t){await this.statsStore.setOptOut(e,t),this.emitUpdate()}_setUseExternalCredentialHelper(e){(e=>{jt(Qv,e)})(e),this.useExternalCredentialHelper=e,this.emitUpdate()}_setAskToMoveToApplicationsFolderSetting(e){return this.askToMoveToApplicationsFolderSetting=e,jt(CS,e),this.emitUpdate(),Promise.resolve()}_setConfirmRepositoryRemovalSetting(e){return this.askForConfirmationOnRepositoryRemoval=e,jt(vS,e),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),Promise.resolve()}_setConfirmDiscardChangesSetting(e){return this.confirmDiscardChanges=e,jt(ES,e),this.emitUpdate(),Promise.resolve()}_setConfirmDiscardChangesPermanentlySetting(e){return this.confirmDiscardChangesPermanently=e,jt(AS,e),this.emitUpdate(),Promise.resolve()}_setConfirmDiscardStashSetting(e){return this.confirmDiscardStash=e,jt(kS,e),this.emitUpdate(),Promise.resolve()}_setConfirmCheckoutCommitSetting(e){return this.confirmCheckoutCommit=e,jt(RS,e),this.emitUpdate(),Promise.resolve()}_setConfirmForcePushSetting(e){return this.askForConfirmationOnForcePush=e,jt(TS,e),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate(),Promise.resolve()}_setConfirmUndoCommitSetting(e){return this.confirmUndoCommit=e,jt(xS,e),this.emitUpdate(),Promise.resolve()}_setConfirmCommitFilteredChanges(e){return this.confirmCommitFilteredChanges=e,jt(DS,e),this.emitUpdate(),Promise.resolve()}_setUncommittedChangesStrategySetting(e){return this.uncommittedChangesStrategy=e,localStorage.setItem(MS,e),this.emitUpdate(),Promise.resolve()}_setExternalEditor(e){const t=this.updateSelectedExternalEditor(e);return localStorage.setItem(PS,e),this.emitUpdate(),this.updateMenuLabelsForSelectedRepository(),t}_setShell(e){return this.selectedShell=e,localStorage.setItem(US,e),this.emitUpdate(),this.updateMenuLabelsForSelectedRepository(),Promise.resolve()}_changeImageDiffType(e){return this.imageDiffType=e,localStorage.setItem(_S,JSON.stringify(this.imageDiffType)),this.emitUpdate(),Promise.resolve()}_setHideWhitespaceInChangesDiff(e,t){return jt(FS,e),this.hideWhitespaceInChangesDiff=e,this.refreshChangesSection(t,{includingStatus:!0,clearPartialState:!0})}_setHideWhitespaceInHistoryDiff(e,t,n){return jt(NS,e),this.hideWhitespaceInHistoryDiff=e,null===n?this.updateChangesWorkingDirectoryDiff(t):this._changeFileSelection(t,n)}_setHideWhitespaceInPullRequestDiff(e,t,n){jt(OS,e),this.hideWhitespaceInPullRequestDiff=e,null!==n&&this._changePullRequestFileSelection(t,n)}_setShowSideBySideDiff(e){e!==this.showSideBySideDiff&&(function(e){jt(Jb,e)}(e),this.showSideBySideDiff=e,this.statsStore.increment("diffModeChangeCount"),this.emitUpdate())}_setUpdateBannerVisibility(e){this.isUpdateAvailableBannerVisible=e,this.emitUpdate()}_setUpdateShowCaseVisibility(e){this.isUpdateShowcaseVisible=e,this.emitUpdate()}_setBanner(e){this.currentBanner=e,this.emitUpdate()}_clearBanner(e){const{currentBanner:t}=this;null!==t&&(void 0!==e&&t.type!==e||(this.currentBanner=null,this.emitUpdate()))}_reportStats(){return this.statsStore.reportStats(this.accounts,this.repositories)}_recordLaunchStats(e){return this.statsStore.recordLaunchStats(e)}async _appendIgnoreRule(e,t){return await pw(e,t),this._refreshRepository(e)}async _appendIgnoreFile(e,t){return await async function(e,t){if(t instanceof Array){const n=t.map((e=>dw(e)));return pw(e,n)}return pw(e,dw(t))}(e,t),this._refreshRepository(e)}_resolveOAuthRequest(e){return this.signInStore.resolveOAuthRequest(e)}_resetSignInState(){return this.signInStore.reset(),Promise.resolve()}_beginDotComSignIn(e){return this.signInStore.beginDotComSignIn(e)}_beginEnterpriseSignIn(e){return this.signInStore.beginEnterpriseSignIn(e)}_setSignInEndpoint(e){return this.signInStore.setEndpoint(e)}_requestBrowserAuthentication(){this.signInStore.authenticateWithBrowser()}async _setAppFocusState(e){this.appIsFocused!==e&&(this.appIsFocused=e,this.emitUpdate()),this.appIsFocused?(this.repositoryIndicatorUpdater.resume(),this.selectedRepository instanceof Kr&&(this.startPullRequestUpdater(this.selectedRepository),this.currentOnboardingTutorialStep===Db.PickEditor&&await this._resolveCurrentEditor())):(this.repositoryIndicatorUpdater.pause(),this.stopPullRequestUpdater())}_startOpenInDesktop(e){const t=new Promise((e=>this.resolveOpenInDesktop=e));return e(),t}async _completeOpenInDesktop(e){const t=this.resolveOpenInDesktop;this.resolveOpenInDesktop=null;const n=await e();return t&&t(n),n}_updateRepositoryPath(e,t){return this.repositoriesStore.updateRepositoryPath(e,t)}async _removeAccount(e){log.info(`[AppStore] removing account ${e.login} (${e.name}) from store`),await this.accountsStore.removeAccount(e),await async function(e){try{const t=Buffer.from(`${zn}:${jn}`).toString("base64");return 204===(await Lt(e.endpoint,null,"DELETE",`applications/${zn}/token`,{access_token:e.token},{Authorization:`Basic ${t}`})).status}catch(t){return log.error(`deleteToken: failed with endpoint ${e.endpoint}`,t),!1}}(e)}async _addAccount(e){log.info(`[AppStore] adding account ${e.login} (${e.name}) to store`);const t=await this.accountsStore.addAccount(e);this.showWelcomeFlow&&null!==t&&this.apiRepositoriesStore.loadRepositories(t)}_updateRepositoryMissing(e,t){return this.repositoriesStore.updateRepositoryMissing(e,t)}async _updateRepositoryWorkflowPreferences(e,t){await this.repositoriesStore.updateRepositoryWorkflowPreferences(e,t)}async _addTutorialRepository(e,t,n){const r=await vy(e);if("regular"===r.kind){const e=r.topLevelWorkingDirectory;log.info(`[AppStore] adding tutorial repository at ${e} to store`),await this.repositoriesStore.addTutorialRepository(e,t,n),this.tutorialAssessor.onNewTutorialRepository()}else{const t=new Error(`${e} isn't a git repository.`);this.emitError(t)}}async _addRepositories(e){const t=new Array,n=new Array,r=new Array;for(const s of e){const e=await vy(s).catch((e=>(log.error("Could not determine repository type",e),{kind:"missing"})));if("unsafe"!==e.kind)if("regular"===e.kind){const r=e.topLevelWorkingDirectory;log.info(`[AppStore] adding repository at ${r} to store`);const s=vr(this.repositories,r);if(void 0!==s){t.push(s);continue}const i=await this.repositoriesStore.addRepository(r),o=this.gitStoreCache.get(i);await o.loadRemotes();const[a,l]=await Promise.all([this.repositoryWithRefreshedGitHubRepository(i),this.isUsingLFS(i)]);t.push(a),l&&n.push(a)}else r.push(s);else{const e=await this.repositoriesStore.addRepository(s,{missing:!0});t.push(e)}}return r.length>0&&this.emitError(new Error(this.getInvalidRepoPathsMessage(r))),n.length>0&&this._showPopup({type:Sh.InitializeLFS,repositories:n}),t}async _removeRepository(e,t){try{if(t)try{await ut.moveItemToTrash(e.path)}catch(e){return log.error("Failed moving repository to trash",e),void this.emitError(new Error(`Failed to move the repository directory to ${xh}.\n\nA common reason for this is that the directory or one of its files is open in another program.`))}e instanceof cs?this._removeCloningRepository(e):await this.repositoriesStore.removeRepository(e)}catch(e){return void this.emitError(e)}0===(await this.repositoriesStore.getAll()).length?this._closeFoldout(Qe.Repository):this._showFoldout({type:Qe.Repository})}async _cloneAgain(e,t){const{promise:n,repository:r}=this._clone(e,t);if(await this._selectRepository(r),!await n)return;const s=this.repositories.find((e=>e.path===t));if(s){const e=await this._updateRepositoryMissing(s,!1);await this._selectRepository(e)}}getInvalidRepoPathsMessage(e){return 1===e.length?`${e} isn't a Git repository.`:`The following paths aren't Git repositories:\n\n${e.slice(0,3).map((e=>`- ${e}`)).join("\n")}${e.length>3?`\n\n(and ${e.length-3} more)`:""}`}async withRefreshedGitHubRepository(e,t){let n=e;return tf(this.accounts,n)||(n=await this.repositoryWithRefreshedGitHubRepository(e)),t(n)}updateRevertProgress(e,t){this.repositoryStateCache.update(e,(()=>({revertProgress:t}))),this.selectedRepository===e&&this.emitUpdate()}async _revertCommit(e,t){return this.withRefreshedGitHubRepository(e,(async e=>{const n=this.gitStoreCache.get(e);await n.revertCommit(e,t,(t=>{this.updateRevertProgress(e,t)})),this.updateRevertProgress(e,null),await this._refreshRepository(e)}))}async _installGlobalLFSFilters(e){try{await async function(e){const t=["lfs","install","--skip-repo"];e&&t.push("--force"),await zd(t,__dirname,"installGlobalLFSFilter")}(e)}catch(e){this.emitError(e)}}async isUsingLFS(e){try{return await async function(e){return(await zd(["lfs","track"],e.path,"isUsingLFS",{env:{GIT_LFS_TRACK_NO_INSTALL_HOOKS:"1"}})).stdout.length>0}(e)}catch(e){return!1}}async _installLFSHooks(e){for(const t of e)try{await fw(t,!0)}catch(e){this.emitError(e)}}_changeCloneRepositoriesTab(e){return this.selectedCloneRepositoryTab=e,this.emitUpdate(),Promise.resolve()}_refreshApiRepositories(e){return this.apiRepositoriesStore.loadRepositories(e)}_changeBranchesTab(e){return this.selectedBranchesTab=e,this.emitUpdate(),Promise.resolve()}async _showGitHubExplore(e){const{gitHubRepository:t}=e;if(!t||null===t.htmlURL)return;const n=new URL(t.htmlURL);n.pathname="/explore",await this._openInBrowser(n.toString())}async _createPullRequest(e,t){if(!e.gitHubRepository)return;const n=this.repositoryStateCache.get(e),r=n.branchesState.tip;if(r.kind!==zr.Valid)return;const s=r.branch,i=n.aheadBehind;null==i?this._showPopup({type:Sh.PushBranchCommits,repository:e,branch:s}):i.ahead>0?this._showPopup({type:Sh.PushBranchCommits,repository:e,branch:s,unPushedCommits:i.ahead}):await this._openCreatePullRequestInBrowser(e,s,t)}async _showPullRequest(e){if(null===e.gitHubRepository)return;const t=this.repositoryStateCache.get(e).branchesState.currentPullRequest;return null!==t?this._showPullRequestByPR(t):void 0}async _showPullRequestByPR(e){const{htmlURL:t}=e.base.gitHubRepository;if(null===t)return;const n=`${t}/pull/${e.pullRequestNumber}`;await this._openInBrowser(n)}async _refreshPullRequests(e){if(Yr(e)){const t=tf(this.accounts,e);null!==t&&await this.pullRequestCoordinator.refreshPullRequests(e,t)}}async onPullRequestChanged(e,t){this.repositoryStateCache.updateBranchesState(e,(()=>({openPullRequests:t}))),this.updateCurrentPullRequest(e),this.gitStoreCache.get(e).pruneForkedRemotes(t);const n=this.getSelectedState();n&&n.type===Xe.Repository&&n.repository.id===e.id&&this.updateMenuLabelsForSelectedRepository(),this.emitUpdate()}updateCurrentPullRequest(e){e.gitHubRepository&&(this.repositoryStateCache.updateBranchesState(e,(t=>{let n=null;const{remote:r}=this.repositoryStateCache.get(e);return t.tip.kind===zr.Valid&&r&&(n=Ob(t.tip.branch,t.openPullRequests,r)),{currentPullRequest:n}})),this.emitUpdate())}async _openCreatePullRequestInBrowser(e,t,n){const r=e.gitHubRepository;if(!r)return;const{parent:s,owner:i,name:o,htmlURL:a}=r,l=ns(e),c=l&&null!==s?`${s.owner.login}:${s.name}:`:"",u=`${a}/pull/new/${void 0!==n?c+encodeURIComponent(n.nameWithoutRemote)+"...":""}${(l?`${i.login}:${o}:`:"")+encodeURIComponent(t.upstreamWithoutRemote??t.nameWithoutRemote)}`;await this._openInBrowser(u)}async _updateExistingUpstreamRemote(e){const t=this.gitStoreCache.get(e);return await t.updateExistingUpstreamRemote(),this._refreshRepository(e)}getIgnoreExistingUpstreamRemoteKey(e){return`repository/${e.id}/ignoreExistingUpstreamRemote`}_ignoreExistingUpstreamRemote(e){return jt(this.getIgnoreExistingUpstreamRemoteKey(e),!0),Promise.resolve()}getIgnoreExistingUpstreamRemote(e){const t=this.getIgnoreExistingUpstreamRemoteKey(e);return Promise.resolve(zt(t,!1))}async addUpstreamRemoteIfNeeded(e){const t=this.gitStoreCache.get(e);if(!await this.getIgnoreExistingUpstreamRemote(e))return t.addUpstreamRemoteIfNeeded()}async _checkoutPullRequest(e,t,n,r,s){const i=await this._findPullRequestBranch(e,t,n,r,s);void 0!==i&&(await this._checkoutBranch(e,i),this.statsStore.increment("prBranchCheckouts"))}async _findPullRequestBranch(e,t,n,r,s){const i=this.gitStoreCache.get(e);let o=(await ay(e)).find((e=>Er(r,e)));if(void 0===o)try{const t=`${nd}${n}`;o=await ly(e,t,r)}catch(e){return void this.emitError(new Error(`Couldn't find PR branch, adding remote failed: ${e.message}`))}const a=`${o.name}/${s}`;let l=i.allBranches.find((e=>e.type===rd.Local&&e.upstream===a));if(void 0!==l)return l;const c=e=>i.allBranches.find((t=>t.type===rd.Remote&&t.name===e));if(l=c(a),void 0===l)try{await this._fetchRemote(e,o,mn.UserInitiatedTask),l=c(a)}catch(e){log.error(`Failed fetching remote ${o?.name}`,e)}if(void 0!==l)return o.name!==i.defaultRemote?.name&&o.name!==i.upstreamRemote?.name?await this._createBranch(e,`pr/${t}`,a,!1):l;this.emitError(new Error(`Couldn't find branch '${s}' in remote '${o.name}'. A common reason for this is that the PR author has deleted their branch or their forked repository.`))}_setShowCoAuthoredBy(e,t){return this.gitStoreCache.get(e).setShowCoAuthoredBy(t),Promise.resolve()}_setCoAuthors(e,t){return this.gitStoreCache.get(e).setCoAuthors(t),Promise.resolve()}_setSelectedTheme(e){return jp(e),this.selectedTheme=e,this.emitUpdate(),Promise.resolve()}_setSelectedTabSize(e){return isNaN(e)||(this.selectedTabSize=e,Yt(HS,e),this.emitUpdate()),Promise.resolve()}async _resolveCurrentEditor(){const e=await Vm(this.selectedExternalEditor),t=null!=e?e.editor:null;this.resolvedExternalEditor!==t&&(this.resolvedExternalEditor=t,this.currentOnboardingTutorialStep===Db.PickEditor&&this.selectedRepository instanceof Kr&&this.updateCurrentTutorialStep(this.selectedRepository),this.emitUpdate())}getResolvedExternalEditor=()=>this.resolvedExternalEditor;_updateManualConflictResolution(e,t,n){this.repositoryStateCache.updateChangesState(e,(e=>{const{conflictState:r}=e;if(null===r)return{conflictState:r};const s=new Map(r.manualResolutions);return null!==n?s.set(t,n):s.delete(t),{conflictState:{...r,manualResolutions:s}}})),this.updateMultiCommitOperationStateAfterManualResolution(e),this.emitUpdate()}updateMultiCommitOperationStateAfterManualResolution(e){const t=this.repositoryStateCache.get(e),{changesState:n,multiCommitOperationState:r}=t;if(null===n.conflictState||null===r||"ShowConflicts"!==r.step.kind)return;const{step:s}=r,{manualResolutions:i}=n.conflictState,o={...s.conflictState,manualResolutions:i};this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({step:{...s,conflictState:o}})))}async createStashAndDropPreviousEntry(e,t){const n=await ib(e,t),r=this.gitStoreCache.get(e),s=await r.performFailableOperation((()=>this.createStashEntry(e,t)));if(!0===s&&null!==n){const{stashSha:t,branchName:s}=n;await r.performFailableOperation((async()=>{await lb(e,t),log.info(`Dropped stash '${t}' associated with ${s}`)}))}return!0===s}async createStashEntry(e,t){const{changesState:n}=this.repositoryStateCache.get(e),{workingDirectory:r}=n,s=r.files.filter((e=>e.status.kind===Wu.Untracked));return async function(e,t,n){const r=n.map((e=>e.withIncludeAll(!0)));await Vf(e,r);const s=["stash","push","-m",ob("string"==typeof t?t:t.name)],i=await zd(s,e.path,"createStashEntry").catch((e=>{if(e instanceof Gd&&1===e.result.exitCode){const t=/^error: /m.exec(Wd(e.result.stderr));return null!==t&&t.length>0?Promise.reject(e):(log.info(`[createDesktopStashEntry] a stash was created successfully but exit code ${i.exitCode} reported. stderr: ${i.stderr}`),e.result)}return Promise.reject(e)}));return"No local changes to save\n"!==i.stdout}(e,t,s)}async _popStashEntry(e,t){await cb(e,t.stashSha),log.info(`[AppStore. _popStashEntry] popped stash with commit id ${t.stashSha}`),this.statsStore.increment("stashRestoreCount"),await this._refreshRepository(e)}async _dropStashEntry(e,t){const n=this.gitStoreCache.get(e);await n.performFailableOperation((()=>lb(e,t.stashSha))),log.info(`[AppStore. _dropStashEntry] dropped stash with commit id ${t.stashSha}`),this.statsStore.increment("stashDiscardCount"),await n.loadStashEntries()}_setStashedFilesWidth(e){return this.stashedFilesWidth={...this.stashedFilesWidth,value:e},Yt(sS,e),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetStashedFilesWidth(){return this.stashedFilesWidth={...this.stashedFilesWidth,value:250},localStorage.removeItem(sS),this.updateResizableConstraints(),this.emitUpdate(),Promise.resolve()}async _testPruneBranches(){null!==this.currentBranchPruner&&await this.currentBranchPruner.testPrune()}async _showCreateForkDialog(e){const t=tf(this.accounts,e);null!==t&&await this._showPopup({type:Sh.CreateFork,repository:e,account:t})}async _convertRepositoryToFork(e,t){const n=this.gitStoreCache.get(e),r=n.defaultRemote?.name,s=n.defaultRemote?.url,{endpoint:i}=e.gitHubRepository;return void 0!==r&&void 0!==s&&await n.setRemoteURL(r,t.clone_url)?(await n.ensureUpstreamRemoteURL(s),this.repositoriesStore.setGitHubRepository(e,await this.repositoriesStore.upsertGitHubRepository(i,t))):e}async _createTutorialRepository(e){try{await this.statsStore.recordTutorialStarted();const n="desktop-tutorial",r=t.resolve(await Zb(),n),s=await async function(e,n,r,s){if(s(`Creating repository on ${e.friendlyEndpoint}`,0),await k(r))throw new Error(`The path '${r}' already exists. Please move it out of the way, or remove it, and then try again.`);const i=await async function(e,t){const n=new rr(e.endpoint,e.token);try{return await n.createRepository(null,t,"GitHub Desktop tutorial repository",!0)}catch(n){if(n instanceof Nt&&422===n.responseStatus&&null!==n.apiError&&"Repository creation failed."===n.apiError.message&&n.apiError.errors&&n.apiError.errors.some((e=>"name already exists on this account"===e.message)))throw new Error(`You already have a repository named "${t}" on your account at ${e.friendlyEndpoint}.\n\nPlease delete the repository and try again.`);throw n}}(e,n),o=i.default_branch??await Qg();s("Initializing local repository",.2),await(0,w.mkdir)(r,{recursive:!0}),await zd(["-c",`init.defaultBranch=${o}`,"init"],r,"tutorial:init"),await(0,w.writeFile)(t.join(r,"README.md"),Hb),await zd(["add","--","README.md"],r,"tutorial:add"),await zd(["commit","-m","Initial commit"],r,"tutorial:commit");const a={name:"origin",url:i.clone_url};return await zd(["remote","add",a.name,a.url],r,"tutorial:add-remote"),await async function(e,t,n,r,s){const i=`Pushing repository to ${t.friendlyEndpoint}`;s(i,0);const o=await Vg({env:await wg(n.url)},new Mg,(e=>{"progress"===e.kind&&s(i,e.percent,e.details.text)})),a=["push","-u",n.name,r];await zd(a,e,"tutorial:push",o)}(r,e,a,o,((e,t,n)=>{s(e,.3+.6*t,n)})),s("Finalizing tutorial repository",.9),i}(e,n,r,((e,t,n)=>{this.popupManager.currentPopup?.type===Sh.CreateTutorialRepository&&(this.popupManager.updatePopup({...this.popupManager.currentPopup,progress:{kind:"generic",title:e,value:t,description:n}}),this.emitUpdate())}));await this._addTutorialRepository(r,e.endpoint,s),await this.statsStore.recordTutorialRepoCreated()}catch(e){QT("tutorialRepoCreation",e),e instanceof Gd?this.emitError(e):this.emitError(new Error(`Failed creating the tutorial repository.\n\n${e.message}`))}finally{this._closePopup(Sh.CreateTutorialRepository)}}_initializeCherryPickProgress(e,t){const n=lt("Unable to initialize cherry-pick progress. No commits provided.",t.at(-1));this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:{kind:"multiCommitOperation",value:0,position:1,totalCommitCount:t.length,currentCommitSummary:n.summary}}))),this.emitUpdate()}getMultiCommitOperationProgressCallBack(e){return t=>{this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:t}))),this.emitUpdate()}}orderCommitsByHistory(e,t){const{compareState:n}=this.repositoryStateCache.get(e),{commitSHAs:r}=n,s=new Map(r.map(((e,t)=>[e,t])));return t.toSorted(((e,t)=>gr(s.get(t.sha),s.get(e.sha))))}orderShasByHistory(e,t){const{compareState:n}=this.repositoryStateCache.get(e),{commitSHAs:r}=n,s=new Map(r.map(((e,t)=>[e,t])));return t.toSorted(((e,t)=>gr(s.get(t),s.get(e))))}async _cherryPick(e,t){if(0===t.length)return log.error("[_cherryPick] - Unable to cherry-pick. No commits provided."),Ky.UnableToStart;const n=this.orderCommitsByHistory(e,t);await this._refreshRepository(e);const r=this.getMultiCommitOperationProgressCallBack(e),s=this.gitStoreCache.get(e),i=await s.performFailableOperation((()=>async function(e,t,n){if(0===t.length)return Ky.UnableToStart;let r={expectedErrors:new Set([ad.GitError.MergeConflicts,ad.GitError.ConflictModifyDeletedInBranch])};void 0!==n&&(r=await Xy(r,t,n));const s=await zd(["cherry-pick",...t.map((e=>e.sha)),"--empty=keep","-m 1"],e.path,"cherry-pick",r);return Qy(s)}(e,n,r)));return i||Ky.Error}_checkForUncommittedChanges(e,t){const{changesState:n}=this.repositoryStateCache.get(e);return n.workingDirectory.files.length>0&&(this._showPopup({type:Sh.LocalChangesOverwritten,repository:e,retryAction:t,files:n.workingDirectory.files.map((e=>e.path))}),!0)}async _checkoutBranchReturnName(e,t){const n=this.gitStoreCache.get(e),r=await this.withRefreshedGitHubRepository(e,(e=>n.performFailableOperation((()=>Kg(e,t,n.currentRemote)))));if(!0!==r)return;const s=await n.loadStatus();return s?.currentBranch}async _abortCherryPick(e,t){const n=this.gitStoreCache.get(e);await n.performFailableOperation((()=>ew(e))),await this.checkoutBranchIfNotNull(e,t)}_setCherryPickBranchCreated(e,t){const{multiCommitOperationState:n}=this.repositoryStateCache.get(e);null!==n&&"Cherry-pick"===n.operationDetail.kind?this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({operationDetail:{...n.operationDetail,branchCreated:t}}))):log.error("[setCherryPickBranchCreated] - Not in cherry-pick operation state")}async _continueCherryPick(e,t,n){const r=this.getMultiCommitOperationProgressCallBack(e),s=this.gitStoreCache.get(e),i=await s.performFailableOperation((()=>async function(e,t,n=new Map,r){const s=t.filter((e=>e.status.kind!==Wu.Untracked));for(const[r,s]of n){const n=t.find((e=>e.path===r));void 0!==n?await ey(e,n,s):log.error(`[continueCherryPick] couldn't find file ${r} even though there's a manual resolution for it`)}const i=s.filter((e=>!n.has(e.path)));await Vf(e,i);const o=await sw(e,!1);if(null==o)return log.warn("[continueCherryPick] unable to get status after staging changes,\n skipping any other steps"),Ky.UnableToStart;if(await!tw(e))return Ky.UnableToStart;let a={expectedErrors:new Set([ad.GitError.MergeConflicts,ad.GitError.ConflictModifyDeletedInBranch,ad.GitError.UnresolvedConflicts]),env:{GIT_EDITOR:":"}};if(void 0!==r){const t=await Jy(e);if(null===t)return log.warn("[continueCherryPick] unable to get cherry-pick status, skipping other steps"),Ky.UnableToStart;a=Xy(a,t.commits,r,t.cherryPickedCount)}const l=o.workingDirectory.files.filter((e=>e.status.kind!==Wu.Untracked));return 0===l.length?(log.warn("[cherryPick] no tracked changes to commit, continuing cherry-pick but skipping this commit"),Qy(await zd(["commit","--allow-empty"],e.path,"continueCherryPickSkipCurrentCommit",a))):Qy(await zd(["cherry-pick","--continue"],e.path,"continueCherryPick",a))}(e,t,n,r)));return i||Ky.Error}async _setCherryPickProgressFromState(e){const t=await Jy(e);null!==t&&this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({progress:t.progress})))}async _clearCherryPickingHead(e,t){if(!tw(e))return;const n=this.gitStoreCache.get(e);return await n.performFailableOperation((()=>ew(e))),await this.checkoutBranchIfNotNull(e,t),this._refreshRepository(e)}async checkoutBranchIfNotNull(e,t){if(null===t)return;const n=this.gitStoreCache.get(e);await this.withRefreshedGitHubRepository(e,(async e=>{await n.performFailableOperation((()=>Kg(e,t,n.currentRemote)))}))}async _setDragElement(e){this.currentDragElement=e,this.emitUpdate()}async _getBranchAheadBehind(e,t){return async function(e,t){if(t.type===rd.Remote)return null;const n=t.upstream;return n?gy(e,fy(t.name,n)):null}(e,t)}_setLastThankYou(e){const t=void 0!==this.lastThankYou&&this.lastThankYou.version===e.version,n=void 0!==this.lastThankYou&&this.lastThankYou.checkedUsers.length===e.checkedUsers.length;t&&n||(nn($S,e),this.lastThankYou=e,this.emitUpdate())}_setUseCustomEditor(e){jt(VS,e),this.useCustomEditor=e,this.emitUpdate()}_setCustomEditor(e){nn(qS,e),this.customEditor=e,this.emitUpdate()}_setUseCustomShell(e){jt(GS,e),this.useCustomShell=e,this.emitUpdate()}_setCustomShell(e){nn(zS,e),this.customShell=e,this.emitUpdate()}async _reorderCommits(e,t,n,r){if(0===t.length)return log.error("[_reorder] - Unable to reorder. No commits provided."),By.Error;const s=this.getMultiCommitOperationProgressCallBack(e),i=this.gitStoreCache.get(e),o=await i.performFailableOperation((()=>async function(e,t,n,r,s){let i,o;try{if(0===t.length)throw new Error("[reorder] No commits provided to reorder.");const a=new Set(t.map((e=>e.sha))),l=await Nf(e,null===r?void 0:my(r,"HEAD"));if(0===l.length)throw new Error("[reorder] Could not find commits in log for last retained commit ref.");i=await Bg("reorderTodo");let c=!1;const u=[],h=[];for(let e=l.length-1;e>=0;e--){const t=l[e];if(a.has(t.sha))c?await(0,w.appendFile)(i,`pick ${t.sha} ${t.summary}\n`):u.push(t);else if(null===n||t.sha!==n.sha)c?h.push(t):await(0,w.appendFile)(i,`pick ${t.sha} ${t.summary}\n`);else{c=!0,h.push(t);for(let e=0;e<u.length;e++)await(0,w.appendFile)(i,`pick ${u[e].sha} ${u[e].summary}\n`)}}if(h.length>0)for(let e=0;e<h.length;e++)await(0,w.appendFile)(i,`pick ${h[e].sha} ${h[e].summary}\n`);if(null===n)for(let e=0;e<u.length;e++)await(0,w.appendFile)(i,`pick ${u[e].sha} ${u[e].summary}\n`);else if(!c)throw new Error("[reorder] The base commit onto was not in the log. Continuing would result in dropping the commits in the toMove array.");o=await jy(e,i,r,"Reorder",void 0,s,l)}catch(e){return log.error(e),By.Error}finally{void 0!==i&&await(0,w.rm)(i,{recursive:!0,force:!0})}return o}(e,t,n,r,s)));return o||By.Error}async _squash(e,t,n,r,s){if(0===t.length)return log.error("[_squash] - Unable to squash. No commits provided."),By.Error;const i=this.getMultiCommitOperationProgressCallBack(e),o=await ef(e,s),a=this.gitStoreCache.get(e),l=await a.performFailableOperation((()=>async function(e,t,n,r,s,i){let o,a,l;try{if(0===t.length)throw new Error("[squash] No commits provided to squash.");const c=new Set(t.map((e=>e.sha)));if(c.has(n.sha))throw new Error("[squash] The commits to squash cannot contain the commit to squash onto.");const u=await Nf(e,null===r?void 0:my(r,"HEAD"));if(0===u.length)throw new Error("[squash] Could not find commits in log for last retained commit ref.");a=await Bg("squashTodo");let h=!1;const p=[],d=[];for(let e=u.length-1;e>=0;e--){const t=u[e];if(c.has(t.sha))h?await(0,w.appendFile)(a,`squash ${t.sha} ${t.summary}\n`):p.push(t);else if(t.sha!==n.sha)h?d.push(t):await(0,w.appendFile)(a,`pick ${t.sha} ${t.summary}\n`);else{h=!0,p.push(t);for(let e=0;e<p.length;e++){const t=0===e?"pick":"squash";await(0,w.appendFile)(a,`${t} ${p[e].sha} ${p[e].summary}\n`)}}}if(d.length>0)for(let e=0;e<d.length;e++)await(0,w.appendFile)(a,`pick ${d[e].sha} ${d[e].summary}\n`);if(!h)throw new Error("[squash] The commit to squash onto was not in the log. Continuing would result in dropping the commits in the toSquash array.");""!==s.trim()&&(o=await Bg("squashCommitMessage"),await(0,w.writeFile)(o,s));const m=void 0!==o?`cat "${o}" >`:void 0;l=await jy(e,a,r,"Squash",m,i,[...t,n])}catch(e){return log.error(e),By.Error}finally{void 0!==a&&await(0,w.rm)(a,{recursive:!0,force:!0}),void 0!==o&&await(0,w.rm)(o,{recursive:!0,force:!0})}return l}(e,t,n,r,o,i)));return l||By.Error}async _undoMultiCommitOperation(e,t,n){const{branchesState:r,multiCommitOperationUndoState:s,changesState:{workingDirectory:i}}=this.repositoryStateCache.get(t),{operationDetail:o}=e,{kind:a}=o;if(null===s)return log.error(`[_undoMultiCommitOperation] - Could not undo ${a}. There is no undo info available.`),!1;const{undoSha:l,branchName:c}=s;if(i.files.length>0)return log.error(`[_undoMultiCommitOperation] - Could not undo ${a}. This would delete the local changes that exist on the branch.`),!1;const{tip:u}=r;if(u.kind!==zr.Valid||u.branch.name!==c)return log.error(`[_undoMultiCommitOperation] - Could not undo ${a}. User no longer on branch the ${a} occurred on.`),!1;if(null===l)return log.error("[_undoMultiCommitOperation] - Could not determine undo sha"),!1;if("Cherry-pick"===o.kind&&o.branchCreated)return this._deleteBranch(t,u.branch,!1,o.sourceBranch),!0;const h=this.gitStoreCache.get(t);if(!0!==await h.performFailableOperation((()=>Zf(t,0,l))))return!1;let p;switch(a){case"Squash":p={type:kb.SquashUndone,commitsCount:n};break;case"Reorder":p={type:kb.ReorderUndone,commitsCount:n};break;case"Cherry-pick":const e="Cherry-pick"===o.kind?o.sourceBranch:null;await this.checkoutBranchIfNotNull(t,e),p={type:kb.CherryPickUndone,targetBranchName:c,countCherryPicked:n};break;case"Rebase":case"Merge":throw new Error(`Unexpected multi commit operation kind to undo ${a}`);default:at(0,`Unsupported multi operation kind to undo ${a}`)}this._setBanner(p),await this._loadStatus(t);const d=this.repositoryStateCache.get(t);return d.branchesState.tip.kind===zr.Valid&&"Cherry-pick"!==a&&this._addBranchToForcePushList(t,d.branchesState.tip,u.branch.tip.sha),await this._refreshRepository(t),!0}_addBranchToForcePushList=(e,t,n)=>{if(t.branch.tip.sha===n)return;const r=this.repositoryStateCache.get(e),{forcePushBranches:s}=r.branchesState,i=new Map(s);i.set(t.branch.nameWithoutRemote,t.branch.tip.sha),this.repositoryStateCache.updateBranchesState(e,(()=>({forcePushBranches:i})))};_setMultiCommitOperationUndoState(e,t){this.repositoryStateCache.updateMultiCommitOperationUndoState(e,(()=>({undoSha:tC(t),branchName:t.branch.name})))}async _handleConflictsDetectedOnError(e,t,n){const{multiCommitOperationState:r}=this.repositoryStateCache.get(e);if(null===r){const r=this.gitStoreCache.get(e),s=r.allBranches.find((e=>e.name===t));if(void 0===s)return;const i=r.allBranches.find((e=>e.name===n));this._initializeMultiCommitOperation(e,{kind:"Merge",isSquash:!1,sourceBranch:i??null},s,[],s.tip.sha)}return this._setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:new Map,ourBranch:t,theirBranch:n}}),this._showPopup({type:Sh.MultiCommitOperation,repository:e})}async _setMultiCommitOperationStep(e,t){this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({step:t}))),this.emitUpdate()}_setMultiCommitOperationTargetBranch(e,t){this.repositoryStateCache.updateMultiCommitOperationState(e,(()=>({targetBranch:t})))}_endMultiCommitOperation(e){this.repositoryStateCache.clearMultiCommitOperationState(e),this.emitUpdate()}_initializeMultiCommitOperation(e,t,n,r,s,i=!0){this.repositoryStateCache.initializeMultiCommitOperationState(e,{step:{kind:"ShowProgress"},operationDetail:t,progress:{kind:"multiCommitOperation",currentCommitSummary:r.length>0?r[0].summary:"",position:1,totalCommitCount:r.length,value:0},userHasResolvedConflicts:!1,originalBranchTip:s,targetBranch:n}),i&&this.emitUpdate()}_setShowCIStatusPopover(e){this.showCIStatusPopover!==e&&(this.showCIStatusPopover=e,this.emitUpdate())}_toggleCIStatusPopover(){this.showCIStatusPopover=!this.showCIStatusPopover,this.emitUpdate()}onChecksFailedNotification=async(e,t,n)=>{const r=this.selectedRepository??await this._selectRepository(e),s={type:Sh.PullRequestChecksFailed,pullRequest:t,repository:e,shouldChangeRepository:!0,checks:n};if(null===r||r.hash!==e.hash)return this.statsStore.increment("checksFailedDialogOpenCount"),this._showPopup(s);const i=this.repositoryStateCache.get(e),{branchesState:o}=i,{tip:a}=o,l=a.kind===zr.Valid?a.branch:null;if(null===l||l.name!==t.head.ref)return this.statsStore.increment("checksFailedDialogOpenCount"),this._showPopup({...s,shouldChangeRepository:!1});this._setShowCIStatusPopover(!0)};onPullRequestReviewSubmitNotification=async(e,t,n)=>{const r=this.selectedRepository??await this._selectRepository(e),s=this.repositoryStateCache.get(e),{branchesState:i}=s,{tip:o}=i,a=o.kind===zr.Valid?o.branch:null;return this._showPopup({type:Sh.PullRequestReview,shouldCheckoutBranch:null!==a&&a.name!==t.head.ref,shouldChangeRepository:null===r||r.hash!==e.hash,review:n,pullRequest:t,repository:e})};onPullRequestCommentNotification=async(e,t,n)=>{const r=this.selectedRepository??await this._selectRepository(e),s=this.repositoryStateCache.get(e),{branchesState:i}=s,{tip:o}=i,a=o.kind===zr.Valid?o.branch:null;return this._showPopup({type:Sh.PullRequestComment,shouldCheckoutBranch:null!==a&&a.name!==t.head.ref,shouldChangeRepository:null===r||r.hash!==e.hash,comment:n,pullRequest:t,repository:e})};async _startPullRequest(e){const{tip:t,defaultBranch:n}=this.repositoryStateCache.get(e).branchesState;if(t.kind!==zr.Valid)return;const r=t.branch;this._initializePullRequestPreview(e,n,r)}async _initializePullRequestPreview(e,t,n){if(null===t)return void this.showPullRequestPopupNoBaseBranch(e,n);const r=this.gitStoreCache.get(e),s=(await r.getCommitsBetweenBranches(t,n)).map((e=>e.sha)),i={files:[],linesAdded:0,linesDeleted:0},o=s.length>0?await r.performFailableOperation((()=>async function(e,t,n,r){const s=["diff","--merge-base",t,n,"-C","-M","-z","--raw","--numstat","--"],i=await Hf(e,t,n);return null===i?null:Of((await zd(s,e.path,"getBranchMergeBaseChangedFiles")).stdout,`${r}`,i)}(e,t.name,n.name,s[0]))):i;if(void 0===o)return;const a=null!==o,l=a?s:[];this.repositoryStateCache.initializePullRequestState(e,{baseBranch:t,commitSHAs:l,commitSelection:{shas:l,shasInDiff:l,isContiguous:!0,changesetData:o??i,file:null,diff:null},mergeStatus:l.length>0||!a?{kind:a?Rb.Loading:Rb.Invalid}:null}),this.emitUpdate(),l.length>0&&this.setupPRMergeTreePromise(e,t,n),null!==o&&o.files.length>0&&await this._changePullRequestFileSelection(e,o.files[0]),this.showPullRequestPopup(e,n,l)}showPullRequestPopupNoBaseBranch(e,t){this.repositoryStateCache.initializePullRequestState(e,{baseBranch:null,commitSHAs:null,commitSelection:null,mergeStatus:null}),this.emitUpdate(),this.showPullRequestPopup(e,t,[])}showPullRequestPopup(e,t,n){if(this.popupManager.areTherePopupsOfType(Sh.StartPullRequest))return;this.statsStore.increment("previewedPullRequestCount");const{branchesState:r,localCommitSHAs:s}=this.repositoryStateCache.get(e),{allBranches:i,recentBranches:o,defaultBranch:a,currentPullRequest:l}=r,c=this.gitStoreCache.get(e),u=ns(e)?Jw:c.defaultRemote?.name,h=i.filter((e=>e.upstreamRemoteName===u||e.remoteName===u)),p=o.filter((e=>e.upstreamRemoteName===u||e.remoteName===u)),{imageDiffType:d,selectedExternalEditor:m,showSideBySideDiff:f}=this.getState(),g=n.length>0&&!s.includes(n[0])?n[0]:null;this._showPopup({type:Sh.StartPullRequest,prBaseBranches:h,prRecentBaseBranches:p,currentBranch:t,defaultBranch:a,imageDiffType:d,repository:e,externalEditorLabel:m??void 0,nonLocalCommitSHA:g,showSideBySideDiff:f,currentBranchHasPullRequest:null!==l})}async _changePullRequestFileSelection(e,t){const{branchesState:n,pullRequestState:r}=this.repositoryStateCache.get(e);if(n.tip.kind!==zr.Valid||null===r)return;const s=n.tip.branch,{baseBranch:i,commitSHAs:o}=r;if(null===o||null===i)return;if(this.repositoryStateCache.updatePullRequestCommitSelection(e,(()=>({file:t,diff:null}))),this.emitUpdate(),0===o.length)return;const a=await this.gitStoreCache.get(e).performFailableOperation((()=>async function(e,t,n,r,s=!1,i){const o=["diff","--merge-base",n,r,...s?["-w"]:[],"--patch-with-raw","-z","--no-color","--",ag(t.path)];return t.status.kind!==Wu.Renamed&&t.status.kind!==Wu.Copied||o.push(ag(t.status.oldPath)),tg((await zd(o,e.path,"getBranchMergeBaseDiff",{encoding:"buffer"})).stdout,e,t,i,i)}(e,t,i.name,s.name,this.hideWhitespaceInPullRequestDiff,o[0])))??null,{pullRequestState:l}=this.repositoryStateCache.get(e),c=l?.commitSelection?.file;c?.id===t.id&&(this.repositoryStateCache.updatePullRequestCommitSelection(e,(()=>({diff:a}))),this.emitUpdate())}_setPullRequestFileListWidth(e){return this.pullRequestFileListWidth={...this.pullRequestFileListWidth,value:e},Yt(iS,e),this.updatePullRequestResizableConstraints(),this.emitUpdate(),Promise.resolve()}_resetPullRequestFileListWidth(){return this.pullRequestFileListWidth={...this.pullRequestFileListWidth,value:250},localStorage.removeItem(iS),this.updatePullRequestResizableConstraints(),this.emitUpdate(),Promise.resolve()}_updatePullRequestBaseBranch(e,t){const{branchesState:n,pullRequestState:r}=this.repositoryStateCache.get(e),{tip:s}=n;s.kind===zr.Valid&&null!==r&&this._initializePullRequestPreview(e,t,s.branch)}setupPRMergeTreePromise(e,t,n){this.setupMergabilityPromise(e,t,n).then((t=>{this.repositoryStateCache.updatePullRequestState(e,(()=>({mergeStatus:t}))),this.emitUpdate()}))}_quitApp(e){e&&f("will-quit-even-if-updating"),W()}_cancelQuittingApp(){f("cancel-quitting")}_setPullRequestSuggestedNextAction(e){this.pullRequestSuggestedNextAction=e,localStorage.setItem(WS,e),this.emitUpdate()}isResizePaneActive(){if(null===document.activeElement)return!1;const e=document.getElementById("app-menu-bar");return e?.contains(document.activeElement)?this.resizablePaneActive:null!==document.activeElement.closest(`.${BC}`)}_appFocusedElementChanged(){const e=this.isResizePaneActive();e!==this.resizablePaneActive&&(this.resizablePaneActive=e,this.emitUpdate())}_updateUnderlineLinks(e){e!==this.underlineLinks&&(this.underlineLinks=e,jt(jS,e),this.emitUpdate())}_updateShowDiffCheckMarks(e){e!==this.showDiffCheckMarks&&(this.showDiffCheckMarks=e,jt(XS,e),this.emitUpdate())}_updateFileListFilter(e,t){this.repositoryStateCache.updateChangesState(e,(e=>({fileListFilter:{...e.fileListFilter,...t}}))),this.emitUpdate()}_setChangesListFilterText(e,t){this._updateFileListFilter(e,{filterText:t})}_setIncludedChangesInCommitFilter(e,t){this._updateFileListFilter(e,{isIncludedInCommit:t})}_setFilterNewFiles(e,t){this._updateFileListFilter(e,{isNewFile:t})}_setFilterModifiedFiles(e,t){this._updateFileListFilter(e,{isModifiedFile:t})}_setFilterDeletedFiles(e,t){this._updateFileListFilter(e,{isDeletedFile:t})}_setFilterExcludedFiles(e,t){this._updateFileListFilter(e,{isExcludedFromCommit:t})}async _createPushProtectionBypass(e,t,n){const r=this.selectedRepository;if(null===r||r instanceof cs||!1===Yr(r))return log.error("[_createPushProtectionBypass] - No GitHub repository selected"),null;const{endpoint:s,name:i,owner:o}=r.gitHubRepository,a=lr(this.accounts,s);return null===a?(log.error(`[_createPushProtectionBypass] - No account found for endpoint - ${s}`),null):rr.fromAccount(a).createPushProtectionBypass(o.login,i,e,t,n)}_toggleChangesFilterVisibility(){this.showChangesFilter=!this.showChangesFilter,jt(eE,this.showChangesFilter),this.updateMenuLabelsForSelectedRepository(),this.emitUpdate()}}(hW,pW,dW,mW,gW,fW,wW,CW,vW,SW,AW);xW.onDidUpdate((e=>{aW=e}));const DW=new class{appStore;repositoryStateManager;statsStore;commitStatusStore;errorHandlers=new Array;incrementMetric;constructor(e,t,n,r){this.appStore=e,this.repositoryStateManager=t,this.statsStore=n,this.commitStatusStore=r,this.incrementMetric=n.increment.bind(n)}loadInitialState(){return this.appStore.loadInitialState()}addRepositories(e){return this.appStore._addRepositories(e)}addTutorialRepository(e,t,n){return this.appStore._addTutorialRepository(e,t,n)}resumeTutorial(e){return this.appStore._resumeTutorial(e)}pauseTutorial(e){return this.appStore._pauseTutorial(e)}async removeRepository(e,t){return this.appStore._removeRepository(e,t)}async updateRepositoryMissing(e,t){return this.appStore._updateRepositoryMissing(e,t)}loadNextCommitBatch(e){return this.appStore._loadNextCommitBatch(e)}loadChangedFilesForCurrentSelection(e){return this.appStore._loadChangedFilesForCurrentSelection(e)}changeCommitSelection(e,t,n){return this.appStore._changeCommitSelection(e,t,n)}updateShasToHighlight(e,t){this.appStore._updateShasToHighlight(e,t)}changeFileSelection(e,t){return this.appStore._changeFileSelection(e,t)}setRepositoryFilterText(e){return this.appStore._setRepositoryFilterText(e)}selectRepository(e){return this.appStore._selectRepository(e)}changeRepositorySection(e,t){return this.appStore._changeRepositorySection(e,t)}selectWorkingDirectoryFiles(e,t){return this.appStore._selectWorkingDirectoryFiles(e,t)}selectStashedFile(e,t){return this.appStore._selectStashedFile(e,t)}async commitIncludedChanges(e,t){return this.appStore._commitIncludedChanges(e,t)}changeFileIncluded(e,t,n){return this.appStore._changeFileIncluded(e,t,n)}changeFileLineSelection(e,t,n){return this.appStore._changeFileLineSelection(e,t,n)}changeIncludeAllFiles(e,t){return this.appStore._changeIncludeAllFiles(e,t)}refreshRepository(e){return this.appStore._refreshOrRecoverRepository(e)}async refreshAuthor(e){return this.appStore._refreshAuthor(e)}showPopup(e){return this.appStore._showPopup(e)}closePopup(e){return this.appStore._closePopup(e)}closePopupById(e){return this.appStore._closePopupById(e)}showFoldout(e){return this.appStore._showFoldout(e)}closeCurrentFoldout(){return this.appStore._closeCurrentFoldout()}closeFoldout(e){return this.appStore._closeFoldout(e)}async warnAboutRemoteCommits(e,t,n){if(null===t.upstream)return!1;if(0===(await sy(e,`refs/remotes/${t.upstream}`)).length)return!1;if(null===n)return!0;const r=await yy(e,n,t.upstream);return null!==r&&r.length>0}async showRebaseDialog(e,t){const n=this.repositoryStateManager.get(e),r=sC(n,t),{tip:s}=n.branchesState;let i=null;if(s.kind!==zr.Valid)throw new Error("Tip is not in a valid state, which is required to start the rebase flow");i=s.branch,this.initializeMultiCommitOperation(e,{kind:"Rebase",sourceBranch:null,commits:[],currentTip:s.branch.tip.sha},i,[],i.tip.sha),this.setMultiCommitOperationStep(e,r),this.showPopup({type:Sh.MultiCommitOperation,repository:e})}async startRebase(e,t,n,r,s){const{askForConfirmationOnForcePush:i}=this.appStore.getState(),o=void 0!==s&&s.continueWithForcePush,{branchesState:a}=this.repositoryStateManager.get(e),l=tC(a.tip);this.appStore._initializeMultiCommitOperation(e,{kind:"Rebase",commits:r,currentTip:t.tip.sha,sourceBranch:t},n,r,l),i&&!o&&await this.warnAboutRemoteCommits(e,t,n.tip.sha)?this.setMultiCommitOperationStep(e,{kind:"WarnForcePush",targetBranch:n,baseBranch:t,commits:r}):await this.rebase(e,t,n)}async launchRebaseOperation(e,t){await this.appStore._loadStatus(e);const n=this.repositoryStateManager.get(e),{conflictState:r}=n.changesState;if(null===r||!st(r))return;const s={...r,targetBranch:t};this.repositoryStateManager.updateChangesState(e,(()=>({conflictState:s})));const i=await Wy(e);if(null===i)return;const{progress:o,commits:a}=i;this.initializeMultiCommitOperation(e,{kind:"Rebase",sourceBranch:null,commits:a,currentTip:""},null,a,t),this.repositoryStateManager.updateMultiCommitOperationState(e,(()=>({progress:o})));const{manualResolutions:l}=r;this.setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:l,ourBranch:t,theirBranch:void 0}}),this.showPopup({type:Sh.MultiCommitOperation,repository:e})}createBranch(e,t,n,r=!1){return this.appStore._createBranch(e,t,n,r)}createTag(e,t,n){return this.appStore._createTag(e,t,n)}deleteTag(e,t){return this.appStore._deleteTag(e,t)}showCreateTagDialog(e,t,n,r){return this.showPopup({type:Sh.CreateTag,repository:e,targetCommitSha:t,initialName:r,localTags:n})}showDeleteTagDialog(e,t){return this.showPopup({type:Sh.DeleteTag,repository:e,tagName:t})}checkoutBranch(e,t,n){return this.appStore._checkoutBranch(e,t,n)}checkoutCommit(e,t){return this.appStore._checkoutCommit(e,t)}push(e){return this.appStore._push(e)}pushWithOptions(e,t){return void 0!==t&&t.forceWithLease&&this.dropCurrentBranchFromForcePushList(e),this.appStore._push(e,t)}pull(e){return this.appStore._pull(e)}fetchRefspec(e,t){return this.appStore._fetchRefspec(e,t)}fetch(e,t){return this.appStore._fetch(e,t)}publishRepository(e,t,n,r,s,i){return this.appStore._publishRepository(e,t,n,r,s,i)}async postError(e){let t=e;for(let e=this.errorHandlers.length-1;e>=0;e--){const n=this.errorHandlers[e];if(t=await n(t,this),!t)break}t&&ot(`Unhandled error ${t}. This shouldn't happen! All errors should be handled, even if it's just by the default handler.`)}presentError(e){return this.appStore._pushError(e)}cloneAgain(e,t){return this.appStore._cloneAgain(e,t)}async clone(e,t,n){return this.appStore._completeOpenInDesktop((async()=>{const{promise:r,repository:s}=this.appStore._clone(e,t,n);if(await this.selectRepository(s),!await r)return null;const i=await this.addRepositories([t]);if(i.length<1)return null;const o=i[0];return await this.selectRepository(o),Xr(o)&&this.showPopup({type:Sh.ChooseForkSettings,repository:o}),o}))}changeRepositoryAlias(e,t){return this.appStore._changeRepositoryAlias(e,t)}renameBranch(e,t,n){return this.appStore._renameBranch(e,t,n)}deleteLocalBranch(e,t,n){return this.appStore._deleteBranch(e,t,n)}deleteRemoteBranch(e,t){return this.appStore._deleteBranch(e,t)}discardChanges(e,t,n=!0){return this.appStore._discardChanges(e,t,n)}discardChangesFromSelection(e,t,n,r){return this.appStore._discardChangesFromSelection(e,t,n,r)}async startAmendingRepository(e,t,n,r=!1){this.appStore._startAmendingRepository(e,t,n,r)}async stopAmendingRepository(e){this.appStore._stopAmendingRepository(e)}undoCommit(e,t,n=!0){return this.appStore._undoCommit(e,t,n)}resetToCommit(e,t,n=!0){return this.statsStore.increment("resetToCommitCount"),this.appStore._resetToCommit(e,t,n)}revertCommit(e,t){return this.appStore._revertCommit(e,t)}setSidebarWidth(e){return this.appStore._setSidebarWidth(e)}setBranchDropdownWidth(e){return this.appStore._setBranchDropdownWidth(e)}resetBranchDropdownWidth(){return this.appStore._resetBranchDropdownWidth()}setPushPullButtonWidth(e){return this.appStore._setPushPullButtonWidth(e)}resetPushPullButtonWidth(){return this.appStore._resetPushPullButtonWidth()}setUpdateBannerVisibility(e){return this.appStore._setUpdateBannerVisibility(e)}setUpdateShowCaseVisibility(e){return this.appStore._setUpdateShowCaseVisibility(e)}setBanner(e){return this.appStore._setBanner(e)}clearBanner(e){return this.appStore._clearBanner(e)}resetSidebarWidth(){return this.appStore._resetSidebarWidth()}setCommitSummaryWidth(e){return this.appStore._setCommitSummaryWidth(e)}resetCommitSummaryWidth(){return this.appStore._resetCommitSummaryWidth()}refreshIssues(e){return this.appStore._refreshIssues(e)}endWelcomeFlow(){return this.appStore._endWelcomeFlow()}setCommitMessageFocus(e){this.appStore._setCommitMessageFocus(e)}setCommitMessage(e,t){return this.appStore._setCommitMessage(e,t)}promptOverrideWithGeneratedCommitMessage(e,t){return this.appStore._promptOverrideWithGeneratedCommitMessage(e,t)}updateCommitMessageGenerationDisclaimerLastSeen(){return this.appStore._updateCommitMessageGenerationDisclaimerLastSeen()}generateCommitMessage(e,t){return this.appStore._generateCommitMessage(e,t)}removeAccount(e){return this.appStore._removeAccount(e)}setAppMenuState(e){return this.appStore._setAppMenuState(e)}executeMenuItem(e){return(e=>{M(e.id)})(e),Promise.resolve()}setAccessKeyHighlightState(e){return this.appStore._setAccessKeyHighlightState(e)}mergeBranch(e,t,n,r=!1){return this.appStore._mergeBranch(e,t,n,r)}addBranchToForcePushList=(e,t,n)=>{this.appStore._addBranchToForcePushList(e,t,n)};dropCurrentBranchFromForcePushList=e=>{const t=this.repositoryStateManager.get(e),{forcePushBranches:n,tip:r}=t.branchesState;if(r.kind!==zr.Valid)return;const s=new Map(n);s.delete(r.branch.nameWithoutRemote),this.repositoryStateManager.updateBranchesState(e,(()=>({forcePushBranches:s})))};setConflictsResolved(e){return this.appStore._setConflictsResolved(e)}async rebase(e,t,n){const{branchesState:r,multiCommitOperationState:s}=this.repositoryStateManager.get(e);if(null==s||"Rebase"!==s.operationDetail.kind)return;const{commits:i}=s.operationDetail,o=tC(r.tip);log.info(`[rebase] starting rebase for ${n.name} at ${o}`),log.info("[rebase] to restore the previous state if this completed rebase is unsatisfactory:"),log.info(`[rebase] - git checkout ${n.name}`),log.info(`[rebase] - git reset ${o} --hard`);const a=await this.appStore._rebase(e,t,n);await this.appStore._loadStatus(e);const l=this.repositoryStateManager.get(e),{tip:c}=l.branchesState,u=tC(c);if(log.info(`[rebase] completed rebase - got ${a} and on tip ${u} - kind ${c.kind}`),a===By.ConflictsEncountered){const{conflictState:r}=l.changesState;return null===r?void log.warn("[rebase] conflict state after rebase is null - unable to continue"):st(r)?this.startMultiCommitOperationConflictFlow("Rebase",e,t.name,n.name):void log.warn("[rebase] conflict state after rebase is not rebase conflicts - unable to continue")}if(a===By.AlreadyUpToDate){if(c.kind!==zr.Valid)return void log.warn(`[rebase] tip after already up to date is ${c.kind} but this should be a valid tip if the rebase completed without error`);const{operationDetail:t}=s,{sourceBranch:r}=t,i=null!==n?n.name:"",o=null!==r?r.name:"",a={type:kb.BranchAlreadyUpToDate,ourBranch:i,theirBranch:o};this.statsStore.increment("rebaseWithBranchAlreadyUpToDateCount"),this.setBanner(a),this.endMultiCommitOperation(e),await this.refreshRepository(e)}else if(a===By.CompletedWithoutError){if(c.kind!==zr.Valid)return void log.warn(`[rebase] tip after completing rebase is ${c.kind} but this should be a valid tip if the rebase completed without error`);this.statsStore.increment("rebaseSuccessWithoutConflictsCount"),await this.completeMultiCommitOperation(e,i.length)}else a===By.Error&&this.endMultiCommitOperation(e)}async abortRebase(e){await this.appStore._abortRebase(e),await this.appStore._loadStatus(e),await this.refreshRepository(e)}async continueRebase(e,t,n,r){const s=this.repositoryStateManager.get(t),{manualResolutions:i}=r,o=tC(s.branchesState.tip);log.info(`[continueRebase] continuing rebase for ${o}`);const a=await this.appStore._continueRebase(t,n,i);a===By.CompletedWithoutError&&this.statsStore.recordOperationSuccessfulWithConflicts(e),await this.appStore._loadStatus(t);const l=this.repositoryStateManager.get(t),{tip:c}=l.branchesState,u=tC(c);return log.info(`[continueRebase] completed rebase - got ${a} and on tip ${u} - kind ${c.kind}`),a}async abortMerge(e){await this.appStore._abortMerge(e),await this.appStore._loadStatus(e)}async abortSquashMerge(e){return await this.appStore._abortSquashMerge(e),this.appStore._refreshRepository(e)}async finishConflictedMerge(e,t,n,r){const s=this.repositoryStateManager.get(e),{conflictState:i}=s.changesState;null!==i?void 0!==await this.appStore._finishConflictedMerge(e,t,i.manualResolutions)&&(this.setBanner(n),r&&(this.statsStore.increment("squashMergeSuccessfulCount"),this.statsStore.increment("squashMergeSuccessfulWithConflictsCount"))):log.error("Conflict state missing during finishConflictedMerge. No merge will be committed.")}recordLaunchStats(e){return this.appStore._recordLaunchStats(e)}reportStats(){return this.appStore._reportStats()}setRemoteURL(e,t,n){return this.appStore._setRemoteURL(e,t,n)}openInBrowser(e){return this.appStore._openInBrowser(e)}appendIgnoreRule(e,t){return this.appStore._appendIgnoreRule(e,t)}appendIgnoreFile(e,t){return this.appStore._appendIgnoreFile(e,t)}async openShell(e,t=!1){await(async()=>void 0!==await Pw())()||t?this.appStore._openShell(e):this.appStore._showPopup({type:Sh.InstallGit,path:e})}async openInExternalEditor(e){return this.appStore._openInExternalEditor(e)}saveGitIgnore(e,t){return this.appStore._saveGitIgnore(e,t)}setStatsOptOut(e,t){return this.appStore.setStatsOptOut(e,t)}setUseExternalCredentialHelper(e){return this.appStore._setUseExternalCredentialHelper(e)}moveToApplicationsFolder(){return re()}resetSignInState(){return this.appStore._resetSignInState()}beginEnterpriseSignIn(e){this.appStore._beginEnterpriseSignIn(e)}setSignInEndpoint(e){return this.appStore._setSignInEndpoint(e)}beginDotComSignIn(e){this.appStore._beginDotComSignIn(e)}beginBrowserBasedSignIn(e,t){e===ar()||"github.com"===new URL(e).hostname?(this.appStore._beginDotComSignIn(t),this.requestBrowserAuthentication()):(this.appStore._beginEnterpriseSignIn(t),this.appStore._setSignInEndpoint(e).then((()=>this.requestBrowserAuthentication())).catch((e=>log.error("Error setting sign in endpoint",e))))}requestBrowserAuthentication(){this.appStore._requestBrowserAuthentication()}requestBrowserAuthenticationToDotcom(e){this.appStore._beginDotComSignIn(e),this.requestBrowserAuthentication()}async showDotComSignInDialog(e){this.appStore._beginDotComSignIn(e),this.appStore._showPopup({type:Sh.SignIn})}async showEnterpriseSignInDialog(e,t){this.appStore._beginEnterpriseSignIn(t),void 0!==e&&this.appStore._setSignInEndpoint(e),this.appStore._showPopup({type:Sh.SignIn})}async showCreateForkDialog(e){await this.appStore._showCreateForkDialog(e)}async showUnknownAuthorsCommitWarning(e,t){return this.appStore._showPopup({type:Sh.UnknownAuthors,authors:e,onCommit:t})}registerErrorHandler(e){return this.errorHandlers.push(e),new dt.Disposable((()=>{const t=this.errorHandlers.indexOf(e);t>=0&&this.errorHandlers.splice(t,1)}))}async relocateRepository(e){const t=await de({properties:["openDirectory"]});null!==t&&await this.updateRepositoryPath(e,t)}async updateRepositoryWorkflowPreferences(e,t){await this.appStore._updateRepositoryWorkflowPreferences(e,t)}async updateRepositoryPath(e,t){await this.appStore._updateRepositoryPath(e,t)}async setAppFocusState(e){await this.appStore._setAppFocusState(e),e?this.commitStatusStore.startBackgroundRefresh():this.commitStatusStore.stopBackgroundRefresh()}async initializeAppFocusState(){const e=await P();this.setAppFocusState(e)}getRepositoryFromPullRequest(e){const t=this.appStore.getState().repositories,n=e.head.repo?.clone_url,r=e.base.repo?.clone_url;if(void 0===n||void 0===r)return null;for(const e of t)if(this.doesRepositoryMatchUrl(e,n))return e;for(const e of t)if(this.doesRepositoryMatchUrl(e,r))return e;return null}doesRepositoryMatchUrl(e,t){if(e instanceof Kr&&Yr(e)){const n=e.gitHubRepository.htmlURL,r=e.gitHubRepository.parent?.htmlURL??null;if(null!==n&&kr(n,t))return!0;if(null!==r&&kr(r,t))return!0}return!1}async openRepositoryFromUrl(e){const{url:n,pr:r,branch:s,filepath:i}=e;let o;if(o=null!==r?await this.openPullRequestFromUrl(n,r):null!==s?await this.openBranchNameFromUrl(n,s):await this.openOrCloneRepository(n),null!==o&&null!==i){if((0,t.isAbsolute)(i))return void log.error(`Refusing to open absolute path: ${i}`);const e=await function(e,...n){return async function(e,n,r=t){if(0===e.length)return null;const{join:s,normalize:i,resolve:o}=r,a=i(e),l=i(s(...n));if(-1!==a.indexOf("\0")||-1!==l.indexOf("\0"))return null;const c=o(a,l),u=await(0,w.realpath)(a);return(await(0,w.realpath)(c)).startsWith(u)?c:null}(e,n)}(o.path,i);null!==e?ut.showItemInFolder(e):log.error(`Prevented attempt to open path outside of the repository root: ${i}`)}}async openBranchNameFromUrl(e,t){const n=await this.openOrCloneRepository(e);return null===n?null:(await this.appStore._refreshRepository(n),await this.appStore._fetch(n,mn.UserInitiatedTask),await this.checkoutLocalBranch(n,t),n)}async openPullRequestFromUrl(e,t){const n=await this.appStore.fetchPullRequest(e,t);if(null===n)return null;let r=this.getRepositoryFromPullRequest(n);return null!==r?await this.selectRepository(r):r=await this.openOrCloneRepository(e),null===r?(log.warn(`Open Repository from URL failed, did not find or clone repository: ${e}`),null):Yr(r)?(await this.appStore._refreshRepository(r),null===n.head.repo?null:(await this.appStore._checkoutPullRequest(r,n.number,n.head.repo.owner.login,n.head.repo.clone_url,n.head.ref),r)):(log.warn(`Received a non-GitHub repository when opening repository from URL: ${e}`),null)}async dispatchCLIAction(e){if("clone-url"===e.kind){const{branch:t,url:n}=e;t?await this.openBranchNameFromUrl(n,t):await this.openOrCloneRepository(n)}else if("open-repository"===e.kind){const t=await vy(e.path).then((t=>"regular"===t.kind?t.topLevelWorkingDirectory:e.path)).catch((t=>(log.error("Could not determine repository type",t),e.path))),{repositories:n}=this.appStore.getState(),r=vr(n,t);r?await this.selectRepository(r):await this.showPopup({type:Sh.AddRepository,path:t})}}async dispatchURLAction(e){switch(e.name){case"oauth":await this.appStore._resolveOAuthRequest(e);break;case"open-repository-from-url":this.openRepositoryFromUrl(e);break;default:const t=e;log.warn(`Unknown URL action: ${t.name} - payload: ${JSON.stringify(t)}`)}}setAskToMoveToApplicationsFolderSetting(e){return this.appStore._setAskToMoveToApplicationsFolderSetting(e)}setConfirmRepoRemovalSetting(e){return this.appStore._setConfirmRepositoryRemovalSetting(e)}setConfirmDiscardChangesSetting(e){return this.appStore._setConfirmDiscardChangesSetting(e)}setConfirmDiscardChangesPermanentlySetting(e){return this.appStore._setConfirmDiscardChangesPermanentlySetting(e)}setUncommittedChangesStrategySetting(e){return this.appStore._setUncommittedChangesStrategySetting(e)}setExternalEditor(e){return this.appStore._setExternalEditor(e)}setShell(e){return this.appStore._setShell(e)}async checkoutLocalBranch(e,t){let n=!0;const r=this.repositoryStateManager.get(e),s=r.branchesState.allBranches,{tip:i}=r.branchesState;i.kind===zr.Valid&&(n=i.branch.nameWithoutRemote!==t);const o=s.find((e=>e.nameWithoutRemote===t));n&&void 0!==o&&await this.checkoutBranch(e,o)}async openOrCloneRepository(e){const t=this.appStore.getState().repositories.find((t=>this.doesRepositoryMatchUrl(t,e)));return t?await this.selectRepository(t):this.appStore._startOpenInDesktop((()=>{this.changeCloneRepositoriesTab(jr.Generic),this.showPopup({type:Sh.CloneRepository,initialURL:e})}))}async openOrAddRepository(e){const t=this.appStore.getState().repositories.find((t=>t.path===e));return t?await this.selectRepository(t):this.appStore._startOpenInDesktop((()=>{this.showPopup({type:Sh.AddRepository,path:e})}))}async installDarwinCLI(){try{await async function(){if(await async function(){try{return await(0,w.readlink)(yL)}catch{return null}}()!==wL)try{await bL(!1)}catch(e){await bL(!0)}}(),this.showPopup({type:Sh.CLIInstalled})}catch(e){log.error("Error installing CLI",e),this.postError(e)}}async saveGenericGitCredentials(e,t,n){log.info(`storing generic credentials for '${e}' and '${t}'`),mL(e,t);try{await fL(e,t,n)}catch(n){log.error(`Error saving generic git credentials: ${t}@${e}`,n),this.postError(n)}}async performRetry(e){switch(e.type){case pt.Push:return this.push(e.repository);case pt.Pull:return this.pull(e.repository);case pt.Fetch:return this.fetch(e.repository,mn.UserInitiatedTask);case pt.Clone:await this.clone(e.url,e.path,e.options);break;case pt.Checkout:await this.checkoutBranch(e.repository,e.branch);break;case pt.Merge:return this.mergeBranch(e.repository,e.theirBranch,null);case pt.Rebase:return this.rebase(e.repository,e.baseBranch,e.targetBranch);case pt.CherryPick:return this.cherryPick(e.repository,e.targetBranch,e.commits,e.sourceBranch);case pt.CreateBranchForCherryPick:return this.startCherryPickWithBranchName(e.repository,e.targetBranchName,e.startPoint,e.noTrackOption,e.commits,e.sourceBranch);case pt.Squash:return this.squash(e.repository,e.toSquash,e.squashOnto,e.lastRetainedCommitRef,e.commitContext);case pt.Reorder:return this.reorderCommits(e.repository,e.commitsToReorder,e.beforeCommit,e.lastRetainedCommitRef);case pt.DiscardChanges:return this.discardChanges(e.repository,e.files,!1);default:return at(0,`Unknown retry action: ${e}`)}}changeImageDiffType(e){return this.appStore._changeImageDiffType(e)}onHideWhitespaceInChangesDiffChanged(e,t){return this.appStore._setHideWhitespaceInChangesDiff(e,t)}onHideWhitespaceInHistoryDiffChanged(e,t,n=null){return this.appStore._setHideWhitespaceInHistoryDiff(e,t,n)}onHideWhitespaceInPullRequestDiffChanged(e,t,n=null){this.appStore._setHideWhitespaceInPullRequestDiff(e,t,n)}onShowSideBySideDiffChanged(e){return this.appStore._setShowSideBySideDiff(e)}installGlobalLFSFilters(e){return this.appStore._installGlobalLFSFilters(e)}installLFSHooks(e){return this.appStore._installLFSHooks(e)}changeCloneRepositoriesTab(e){return this.appStore._changeCloneRepositoriesTab(e)}refreshApiRepositories(e){return this.appStore._refreshApiRepositories(e)}changeBranchesTab(e){return this.appStore._changeBranchesTab(e)}showGitHubExplore(e){return this.appStore._showGitHubExplore(e)}createPullRequest(e,t){return this.appStore._createPullRequest(e,t)}showPullRequest(e){return this.appStore._showPullRequest(e)}async showPullRequestByPR(e){return this.appStore._showPullRequestByPR(e)}openCreatePullRequestInBrowser(e,t){return this.appStore._openCreatePullRequestInBrowser(e,t)}updateExistingUpstreamRemote(e){return this.appStore._updateExistingUpstreamRemote(e)}ignoreExistingUpstreamRemote(e){return this.appStore._ignoreExistingUpstreamRemote(e)}async checkoutPullRequest(e,t){if(null!==t.head.gitHubRepository.cloneURL)return this.appStore._checkoutPullRequest(e,t.pullRequestNumber,t.head.gitHubRepository.owner.login,t.head.gitHubRepository.cloneURL,t.head.ref)}setShowCoAuthoredBy(e,t){return this.appStore._setShowCoAuthoredBy(e,t)}setCoAuthors(e,t){return this.appStore._setCoAuthors(e,t)}initializeCompare(e,t){return this.appStore._initializeCompare(e,t)}executeCompare(e,t){return this.appStore._executeCompare(e,t)}updateCompareForm(e,t){return this.appStore._updateCompareForm(e,t)}updateManualConflictResolution(e,t,n){return this.appStore._updateManualConflictResolution(e,t,n)}async confirmOrForcePush(e){const{askForConfirmationOnForcePush:t}=this.appStore.getState(),{branchesState:n}=this.repositoryStateManager.get(e),{tip:r}=n;if(r.kind!==zr.Valid)return void log.warn("Could not find a branch to perform force push");const{upstream:s}=r.branch;null!==s?t?this.showPopup({type:Sh.ConfirmForcePush,repository:e,upstreamBranch:s}):await this.performForcePush(e):log.warn("Could not find an upstream branch which will be pushed")}async performForcePush(e){await this.pushWithOptions(e,{forceWithLease:!0}),await this.appStore._loadStatus(e)}setConfirmDiscardStashSetting(e){return this.appStore._setConfirmDiscardStashSetting(e)}setConfirmCheckoutCommitSetting(e){return this.appStore._setConfirmCheckoutCommitSetting(e)}setConfirmForcePushSetting(e){return this.appStore._setConfirmForcePushSetting(e)}setConfirmUndoCommitSetting(e){return this.appStore._setConfirmUndoCommitSetting(e)}setConfirmCommitFilteredChanges(e){return this.appStore._setConfirmCommitFilteredChanges(e)}async convertRepositoryToFork(e,t){return this.appStore._convertRepositoryToFork(e,t)}recordMenuInitiatedMerge(e=!0){return this.statsStore.recordMenuInitiatedMerge(e)}setSelectedTheme(e){return this.appStore._setSelectedTheme(e)}setSelectedTabSize(e){return this.appStore._setSelectedTabSize(e)}recordRepoClicked(e){return this.statsStore.recordRepoClicked(e)}recordWelcomeWizardInitiated(){return this.statsStore.recordWelcomeWizardInitiated()}recordCreateRepository(){this.statsStore.recordCreateRepository()}recordAddExistingRepository(){this.statsStore.recordAddExistingRepository()}refreshPullRequests(e){return this.appStore._refreshPullRequests(e)}tryGetCommitStatus(e,t,n){return this.commitStatusStore.tryGetStatus(e,t,n)}subscribeToCommitStatus(e,t,n,r){return this.commitStatusStore.subscribe(e,t,n,r)}manualRefreshSubscription(e,t,n){return this.commitStatusStore.manualRefreshSubscription(e,t,n)}async rerequestCheckSuites(e,t,n){const r=new Array;if(1===t.length&&void 0!==t[0].actionsWorkflow)return r.push(this.commitStatusStore.rerunJob(e,t[0].id)),Promise.all(r);const s=new Set,i=new Set;for(const e of t)n&&void 0!==e.actionsWorkflow?i.add(e.actionsWorkflow.id):null!==e.checkSuiteId&&s.add(e.checkSuiteId);for(const t of i)r.push(this.commitStatusStore.rerunFailedJobs(e,t));for(const t of s)r.push(this.commitStatusStore.rerequestCheckSuite(e,t));return Promise.all(r)}async fetchCheckSuite(e,t){return this.commitStatusStore.fetchCheckSuite(e,t)}createStashForCurrentBranch(e,t=!0){return this.appStore._createStashForCurrentBranch(e,t)}dropStash(e,t){return this.appStore._dropStashEntry(e,t)}popStash(e,t){return this.appStore._popStashEntry(e,t)}setStashedFilesWidth=e=>this.appStore._setStashedFilesWidth(e);resetStashedFilesWidth=()=>this.appStore._resetStashedFilesWidth();hideStashedChanges(e){return this.appStore._hideStashedChanges(e)}skipPickEditorTutorialStep(e){return this.appStore._skipPickEditorTutorialStep(e)}markPullRequestTutorialStepAsComplete(e){return this.appStore._markPullRequestTutorialStepAsComplete(e)}markTutorialCompletionAsAnnounced(e){return this.appStore._markTutorialCompletionAsAnnounced(e)}createTutorialRepository(e){return this.appStore._createTutorialRepository(e)}async openIssueCreationPage(e){const t=Jr(e);return null!==t&&(this.statsStore.increment("issueCreationWebpageOpenedCount"),this.appStore._openInBrowser(`${t}/issues/new/choose`))}setRepositoryIndicatorsEnabled(e){this.appStore._setRepositoryIndicatorsEnabled(e)}setCommitSpellcheckEnabled(e){this.appStore._setCommitSpellcheckEnabled(e)}setUseWindowsOpenSSH(e){this.appStore._setUseWindowsOpenSSH(e)}setShowCommitLengthWarning(e){this.appStore._setShowCommitLengthWarning(e)}setNotificationsEnabled(e){this.appStore._setNotificationsEnabled(e)}logHowToRevertCherryPick(e,t){log.info(`[cherryPick] starting cherry-pick for ${e} at ${t}`),log.info("[cherryPick] to restore the previous state if this completed cherry-pick is unsatisfactory:"),log.info(`[cherryPick] - git checkout ${e}`),log.info(`[cherryPick] - git reset ${t} --hard`)}initializeMultiCommitOperationStateCherryPick(e,t,n,r){null===this.repositoryStateManager.get(e).multiCommitOperationState&&this.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:r,branchCreated:!1,commits:n},t,n,r?.tip.sha??null)}async cherryPick(e,t,n,r){this.initializeMultiCommitOperationStateCherryPick(e,t,n,r),this.appStore._initializeCherryPickProgress(e,n),this.switchMultiCommitOperationToShowProgress(e);const s={type:pt.CherryPick,repository:e,targetBranch:t,commits:n,sourceBranch:r};if(this.appStore._checkForUncommittedChanges(e,s))return void this.endMultiCommitOperation(e);const{tip:i}=t;this.repositoryStateManager.updateMultiCommitOperationUndoState(e,(()=>({undoSha:i.sha,branchName:t.name}))),n.length>1&&this.statsStore.increment("cherryPickMultipleCommitsCount");const o=await this.appStore._checkoutBranchReturnName(e,t);if(void 0===o)return log.error("[cherryPick] - Failed to check out the target branch."),void this.endMultiCommitOperation(e);const a=await this.appStore._cherryPick(e,n);a!==Ky.UnableToStart&&this.logHowToRevertCherryPick(o,i.sha),this.processCherryPickResult(e,a,o,n,r)}async startCherryPickWithBranchName(e,t,n,r=!1,s,i){const o={type:pt.CreateBranchForCherryPick,repository:e,targetBranchName:t,startPoint:n,noTrackOption:r,commits:s,sourceBranch:i};if(this.appStore._checkForUncommittedChanges(e,o))return void this.endMultiCommitOperation(e);const a=await this.appStore._createBranch(e,t,n,r,!1);return void 0===a?(log.error("[startCherryPickWithBranchName] - Unable to create branch for cherry-pick operation"),void this.endMultiCommitOperation(e)):(this.initializeMultiCommitOperationStateCherryPick(e,a,s,i),this.appStore._setMultiCommitOperationTargetBranch(e,a),this.appStore._setCherryPickBranchCreated(e,!0),this.statsStore.increment("cherryPickBranchCreatedCount"),this.cherryPick(e,a,s,i))}async startCherryPickWithBranch(e,t){const{branchesState:n}=this.repositoryStateManager.get(e),{dragData:r}=Ip;if(null==r||r.type!==_p.Commit)return log.error("[cherryPick] Invalid Cherry-picking State: Could not determine selected commits."),void this.endMultiCommitOperation(e);const{tip:s}=n;if(s.kind!==zr.Valid)throw this.endMultiCommitOperation(e),new Error("Tip is not in a valid state, which is required to start the cherry-pick flow.");const i=s.branch,{commits:o}=r;this.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:i,branchCreated:!1,commits:o},t,o,s.branch.tip.sha),this.showPopup({type:Sh.MultiCommitOperation,repository:e}),this.statsStore.increment("cherryPickViaDragAndDropCount"),this.setCherryPickBranchCreated(e,!1),this.cherryPick(e,t,o,i)}async startCherryPickWithPullRequest(e,t){const{pullRequestNumber:n,head:r}=t,{ref:s,gitHubRepository:i}=r,{cloneURL:o,owner:{login:a}}=i;let l;return null!==o&&(l=await this.appStore._findPullRequestBranch(e,n,a,o,s)),void 0===l?(log.error("[cherryPick] Could not determine target branch for cherry-pick operation - aborting cherry-pick."),void this.endMultiCommitOperation(e)):this.startCherryPickWithBranch(e,l)}async continueCherryPick(e,t,n,r,s){await this.switchMultiCommitOperationToShowProgress(e);const i=await this.appStore._continueCherryPick(e,t,n.manualResolutions);i===Ky.CompletedWithoutError&&this.statsStore.increment("cherryPickSuccessfulWithConflictsCount"),this.processCherryPickResult(e,i,n.targetBranchName,r,s)}startConflictCherryPickFlow(e){const{changesState:t,multiCommitOperationState:n}=this.repositoryStateManager.get(e),{conflictState:r}=t;if(null===r||!it(r)||null==n||"Cherry-pick"!==n.operationDetail.kind)return log.error("[cherryPick] - conflict state was null or not in a cherry-pick conflict state - unable to continue"),void this.endMultiCommitOperation(e);const{sourceBranch:s}=n.operationDetail;this.setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:r.manualResolutions,ourBranch:r.targetBranchName,theirBranch:null!==s?s.name:void 0}}),this.statsStore.increment("cherryPickConflictsEncounteredCount")}async abortCherryPick(e,t){await this.appStore._abortCherryPick(e,t),await this.appStore._loadStatus(e),this.endMultiCommitOperation(e),await this.refreshRepository(e)}async switchMultiCommitOperationToShowProgress(e){this.setMultiCommitOperationStep(e,{kind:"ShowProgress"}),await Ww(500)}async processCherryPickResult(e,t,n,r,s){switch(await this.appStore._loadStatus(e),t){case Ky.CompletedWithoutError:await this.changeCommitSelection(e,[r[0].sha],!0),await this.completeMultiCommitOperation(e,r.length);break;case Ky.ConflictsEncountered:this.startConflictCherryPickFlow(e);break;case Ky.UnableToStart:this.endMultiCommitOperation(e);break;default:this.appStore._clearCherryPickingHead(e,s),this.endMultiCommitOperation(e),this.appStore._closePopup()}}setCherryPickProgressFromState(e){return this.appStore._setCherryPickProgressFromState(e)}setDragElement(e){this.appStore._setDragElement(e)}clearDragElement(){this.appStore._setDragElement(null)}async setCherryPickCreateBranchFlowStep(e,t,n,r){const{branchesState:s}=this.repositoryStateManager.get(e),{defaultBranch:i,upstreamDefaultBranch:o,allBranches:a,tip:l}=s;if(l.kind!==zr.Valid)return this.appStore._clearCherryPickingHead(e,null),this.endMultiCommitOperation(e),void log.error("Tip is in unknown state. Cherry-pick aborted.");const c=Yr(e)?es(e):null;this.initializeMultiCommitOperation(e,{kind:"Cherry-pick",sourceBranch:r,branchCreated:!0,commits:n},null,n,l.branch.tip.sha);const u={kind:"CreateBranch",allBranches:a,defaultBranch:i,upstreamDefaultBranch:o,upstreamGhRepo:c,tip:l,targetBranchName:t};return this.appStore._setMultiCommitOperationStep(e,u)}setMultiCommitOperationTargetBranch(e,t){this.repositoryStateManager.updateMultiCommitOperationState(e,(()=>({targetBranch:t})))}setCherryPickBranchCreated(e,t){this.appStore._setCherryPickBranchCreated(e,t)}async getBranchAheadBehind(e,t){return this.appStore._getBranchAheadBehind(e,t)}setLastThankYou(e){this.appStore._setLastThankYou(e)}setUseCustomEditor(e){this.appStore._setUseCustomEditor(e)}setCustomEditor(e){this.appStore._setCustomEditor(e)}setUseCustomShell(e){this.appStore._setUseCustomShell(e)}setCustomShell(e){this.appStore._setCustomShell(e)}async reorderCommits(e,t,n,r,s=!1){const i={type:pt.Reorder,repository:e,commitsToReorder:t,beforeCommit:n,lastRetainedCommitRef:r};if(this.appStore._checkForUncommittedChanges(e,i))return;const o=this.repositoryStateManager.get(e),{tip:a}=o.branchesState;if(a.kind!==zr.Valid)return void log.info("[reorder] - invalid tip state - could not perform reorder.");this.statsStore.increment("reorderStartedCount"),t.length>1&&this.statsStore.increment("reorderMultipleCommitsCount"),this.appStore._initializeMultiCommitOperation(e,{kind:"Reorder",lastRetainedCommitRef:r,beforeCommit:n,commits:t,currentTip:a.branch.tip.sha},a.branch,t,a.branch.tip.sha),this.showPopup({type:Sh.MultiCommitOperation,repository:e}),this.appStore._setMultiCommitOperationUndoState(e,a);const{askForConfirmationOnForcePush:l}=this.appStore.getState();if(l&&!s&&await this.warnAboutRemoteCommits(e,a.branch,r))return void this.setMultiCommitOperationStep(e,{kind:"WarnForcePush",targetBranch:a.branch,baseBranch:a.branch,commits:t});const c=await this.appStore._reorderCommits(e,t,n,r);return this.logHowToRevertMultiCommitOperation("Reorder",a),this.processMultiCommitOperationRebaseResult("Reorder",e,c,t.length,a.branch.name,`${"Reorder".toLowerCase()} commit`)}async squash(e,t,n,r,s,i=!1){const o={type:pt.Squash,repository:e,toSquash:t,squashOnto:n,lastRetainedCommitRef:r,commitContext:s};if(this.appStore._checkForUncommittedChanges(e,o))return;const a=this.repositoryStateManager.get(e),{tip:l}=a.branchesState;if(l.kind!==zr.Valid)return void log.info("[squash] - invalid tip state - could not perform squash.");t.length>1&&this.statsStore.increment("squashMultipleCommitsInvokedCount"),this.initializeMultiCommitOperation(e,{kind:"Squash",lastRetainedCommitRef:r,commitContext:s,targetCommit:n,commits:t,currentTip:l.branch.tip.sha},l.branch,t,l.branch.tip.sha),this.closePopup(Sh.CommitMessage),this.showPopup({type:Sh.MultiCommitOperation,repository:e}),this.appStore._setMultiCommitOperationUndoState(e,l);const{askForConfirmationOnForcePush:c}=this.appStore.getState();if(c&&!i&&await this.warnAboutRemoteCommits(e,l.branch,r))return void this.setMultiCommitOperationStep(e,{kind:"WarnForcePush",targetBranch:l.branch,baseBranch:l.branch,commits:t});const u=await this.appStore._squash(e,t,n,r,s);return this.logHowToRevertMultiCommitOperation("Squash",l),this.processMultiCommitOperationRebaseResult("Squash",e,u,t.length+1,l.branch.name,`${"Squash".toLowerCase()} commit`)}initializeMultiCommitOperation(e,t,n,r,s){this.appStore._initializeMultiCommitOperation(e,t,n,r,s)}logHowToRevertMultiCommitOperation(e,t){const n=e.toLocaleLowerCase(),r=tC(t);log.info(`[${n}] starting rebase for ${t.branch.name} at ${r}`),log.info(`[${n}] to restore the previous state if this completed rebase is unsatisfactory:`),log.info(`[${n}] - git checkout ${t.branch.name}`),log.info(`[${n}] - git reset ${r} --hard`)}async processMultiCommitOperationRebaseResult(e,t,n,r,s,i){const o=await this.appStore._loadStatus(t);switch(n){case By.AlreadyUpToDate:QT("rebaseConflictsWithBranchAlreadyUpToDate",new Error("processMultiCommitOperationRebaseResult was invoked (which means Desktop went into a conflicts-found state) but the branch was already up-to-date, so there couldn't be any conflicts at all"));break;case By.CompletedWithoutError:null!==o&&void 0!==o.currentTip&&await this.changeCommitSelection(t,[o.currentTip],!0),await this.completeMultiCommitOperation(t,r);break;case By.ConflictsEncountered:await this.refreshRepository(t),this.startMultiCommitOperationConflictFlow(e,t,s,i);break;default:this.appStore._closePopup()}}startMultiCommitOperationConflictFlow(e,t,n,r){const{changesState:{conflictState:s}}=this.repositoryStateManager.get(t);if(null===s)return log.error("[startMultiCommitOperationConflictFlow] - conflict state was null - unable to continue"),void this.endMultiCommitOperation(t);const{manualResolutions:i}=s;this.setMultiCommitOperationStep(t,{kind:"ShowConflicts",conflictState:{kind:"multiCommitOperation",manualResolutions:i,ourBranch:n,theirBranch:r}}),this.statsStore.recordOperationConflictsEncounteredCount(e),this.showPopup({type:Sh.MultiCommitOperation,repository:t})}async completeMultiCommitOperation(e,t){this.closePopup();const{branchesState:{tip:n},multiCommitOperationState:r}=this.repositoryStateManager.get(e);if(null===r)return void log.error("[completeMultiCommitOperation] - No multi commit operation to complete.");const{operationDetail:s,originalBranchTip:i}=r,{kind:o}=s,a=this.getMultiCommitOperationSuccessBanner(e,t,r);this.setBanner(a),n.kind===zr.Valid&&null!==i&&"Cherry-pick"!==o&&this.addBranchToForcePushList(e,n,i),this.statsStore.recordOperationSuccessful(o),this.endMultiCommitOperation(e),await this.refreshRepository(e)}getMultiCommitOperationSuccessBanner(e,t,n){const{operationDetail:r,targetBranch:s}=n,{kind:i}=r,o={count:t,onUndo:()=>{this.undoMultiCommitOperation(n,e,t)}};let a;switch(i){case"Squash":a={...o,type:kb.SuccessfulSquash};break;case"Reorder":a={...o,type:kb.SuccessfulReorder};break;case"Cherry-pick":a={...o,type:kb.SuccessfulCherryPick,targetBranchName:null!==s?s.name:""};break;case"Rebase":const{sourceBranch:e}=r;a={type:kb.SuccessfulRebase,targetBranch:null!==s?s.name:"",baseBranch:null!==e?e.name:void 0};break;case"Merge":throw new Error(`Unexpected multi commit operation kind ${i}`);default:at(0,`Unsupported multi operation kind ${i}`)}return a}async undoMultiCommitOperation(e,t,n){const r=await this.appStore._undoMultiCommitOperation(e,t,n);return r&&this.statsStore.recordOperationUndone(e.operationDetail.kind),r}handleConflictsDetectedOnError(e,t,n){return this.appStore._handleConflictsDetectedOnError(e,t,n)}setMultiCommitOperationStep(e,t){return this.appStore._setMultiCommitOperationStep(e,t)}endMultiCommitOperation(e){this.appStore._endMultiCommitOperation(e)}onConflictsFoundBanner=(e,t,n)=>{this.setBanner({type:kb.ConflictsFound,operationDescription:t,onOpenConflictsDialog:async()=>{const{changesState:t,multiCommitOperationState:r}=this.repositoryStateManager.get(e),{conflictState:s}=t;if(null==s)return void log.error("[onConflictsFoundBanner] App is in invalid state to so conflicts dialog.");null!==r&&"Cherry-pick"===r.operationDetail.kind&&await this.setCherryPickProgressFromState(e);const{manualResolutions:i}=s;this.setMultiCommitOperationStep(e,{kind:"ShowConflicts",conflictState:{...n,manualResolutions:i}}),this.showPopup({type:Sh.MultiCommitOperation,repository:e})}})};startMergeBranchOperation(e,t=!1,n){const{branchesState:r}=this.repositoryStateManager.get(e),{defaultBranch:s,allBranches:i,recentBranches:o,tip:a}=r;let l=null;if(a.kind!==zr.Valid)throw new Error("Tip is not in a valid state, which is required to start the merge operation");l=a.branch,this.initializeMergeOperation(e,t,null),this.setMultiCommitOperationStep(e,{kind:"ChooseBranch",defaultBranch:s,currentBranch:l,allBranches:i,recentBranches:o,initialBranch:null!==n?n:void 0}),this.showPopup({type:Sh.MultiCommitOperation,repository:e})}recordSquashInvoked(e){e?this.statsStore.increment("squashViaContextMenuInvokedCount"):this.statsStore.increment("squashViaDragAndDropInvokedCount")}initializeMergeOperation(e,t,n){const{branchesState:{tip:r}}=this.repositoryStateManager.get(e);let s=null;if(r.kind!==zr.Valid)throw new Error("Tip is not in a valid state, which is required to initialize the merge operation");s=r.branch,this.initializeMultiCommitOperation(e,{kind:"Merge",isSquash:t,sourceBranch:n},s,[],s.tip.sha)}setShowCIStatusPopover(e){this.appStore._setShowCIStatusPopover(e),e&&this.statsStore.increment("opensCheckRunsPopover")}_toggleCIStatusPopover(){this.appStore._toggleCIStatusPopover()}recordPullRequestReviewDialogSwitchToPullRequest(e){this.statsStore.recordPullRequestReviewDialogSwitchToPullRequest(e)}showUnreachableCommits(e){this.statsStore.increment("multiCommitDiffUnreachableCommitsDialogOpenedCount"),this.showPopup({type:Sh.UnreachableCommits,selectedTab:e})}startPullRequest(e){this.appStore._startPullRequest(e)}changePullRequestFileSelection(e,t){return this.appStore._changePullRequestFileSelection(e,t)}setPullRequestFileListWidth(e){return this.appStore._setPullRequestFileListWidth(e)}resetPullRequestFileListWidth(){return this.appStore._resetPullRequestFileListWidth()}updatePullRequestBaseBranch(e,t){this.appStore._updatePullRequestBaseBranch(e,t)}quitApp(e){this.appStore._quitApp(e)}cancelQuittingApp(){this.appStore._cancelQuittingApp()}setPullRequestSuggestedNextAction(e){return this.appStore._setPullRequestSuggestedNextAction(e)}appFocusedElementChanged(){this.appStore._appFocusedElementChanged()}updateCachedRepoRulesets(e){this.appStore._updateCachedRepoRulesets(e)}onChecksFailedNotification(e,t,n){this.appStore.onChecksFailedNotification(e,t,n)}setUnderlineLinksSetting(e){return this.appStore._updateUnderlineLinks(e)}setDiffCheckMarksSetting(e){return this.appStore._updateShowDiffCheckMarks(e)}testPruneBranches(){return this.appStore._testPruneBranches()}editGlobalGitConfig(){return this.appStore._editGlobalGitConfig()}setChangesListFilterText(e,t){return this.appStore._setChangesListFilterText(e,t)}setIncludedChangesInCommitFilter(e,t){return this.appStore._setIncludedChangesInCommitFilter(e,t)}setFilterNewFiles(e,t){return this.appStore._setFilterNewFiles(e,t)}setFilterModifiedFiles(e,t){return this.appStore._setFilterModifiedFiles(e,t)}setFilterDeletedFiles(e,t){return this.appStore._setFilterDeletedFiles(e,t)}setFilterExcludedFiles(e,t){return this.appStore._setFilterExcludedFiles(e,t)}async createPushProtectionBypass(e,t,n){return this.appStore._createPushProtectionBypass(e,t,n)}toggleChangesFilterVisibility(){this.appStore._toggleChangesFilterVisibility()}}(xW,vW,mW,EW);DW.registerErrorHandler(SL),DW.registerErrorHandler((async function(e,t){return e instanceof Qw?(t.showPopup({type:Sh.UpstreamAlreadyExists,repository:e.repository,existingRemote:e.existingRemote}),null):e})),DW.registerErrorHandler((async function(e,t){const n=function(e){return e instanceof Em?e:null}(e);if(!n)return e;const{suggestDefaultEditor:r,openPreferences:s}=n.metadata;return await t.showPopup({type:Sh.ExternalEditorFailed,message:n.message,suggestDefaultEditor:r,openPreferences:s}),null})),DW.registerErrorHandler((async function(e,t){return e instanceof Nw?(await t.showPopup({type:Sh.OpenShellFailed,message:e.message}),null):e})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=vL(n.underlyingError);if(!r)return e;const s=r.result.gitError;if(null===s)return e;if(s!==ad.GitError.MergeConflicts)return e;const{repository:i,gitContext:o}=n.metadata;if(null==i)return e;if(!(i instanceof Kr))return e;if(null==o)return e;if("merge"!==o.kind&&"pull"!==o.kind)return e;switch(o.kind){case"pull":t.incrementMetric("mergeConflictFromPullCount");break;case"merge":t.incrementMetric("mergeConflictFromExplicitMergeCount")}const{currentBranch:a,theirBranch:l}=o;return t.handleConflictsDetectedOnError(i,a,l),null})),DW.registerErrorHandler((async function(e,t){const n=vL(e);if(!n)return e;const r=n.result.gitError;return null===r||r!==ad.GitError.LFSAttributeDoesNotMatch?e:(t.showPopup({type:Sh.LFSAttributeMismatch}),null)})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=vL(n.underlyingError);if(!r||null===r.result.gitError)return e;if(!jd(r.result.gitError))return e;const{repository:s,retryAction:i}=n.metadata;return s instanceof Kr&&Yr(s)?void 0===i||i.type!==pt.Push||Vr(s.gitHubRepository)?e:(t.showCreateForkDialog(s),null):e})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=vL(n.underlyingError);if(!r)return e;const s=r.result.gitError;if(null===s)return e;if(s!==ad.GitError.PushNotFastForward)return e;const i=n.metadata.repository;return i&&i instanceof Kr?(t.showPopup({type:Sh.PushNeedsPull,repository:i}),null):e})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=vL(n.underlyingError);if(!r||null===r.result.gitError)return e;if(!jd(r.result.gitError))return e;const{repository:s}=n.metadata;if(!(s instanceof Kr))return e;if(null===s.gitHubRepository)return e;const i=RL(Wd(r.result.stderr)),o=kL.exec(i);if(!o)return e;const a=o[1],l=s.gitHubRepository.endpoint;return t.showPopup({type:Sh.SAMLReauthRequired,organizationName:a,endpoint:l,retryAction:n.metadata.retryAction}),null})),DW.registerErrorHandler((async function(e,t){const n=CL(e);return n&&n.metadata.backgroundTask?null:e})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=n.metadata.repository;if(!(r&&r instanceof Kr))return e;if(r.missing)return null;const s=function(e){return function(e){return e instanceof Error&&"string"==typeof e.code}(e)?e:null}(n.underlyingError),i=vL(n.underlyingError);return i&&i.result.gitError===ad.GitError.NotAGitRepository||s&&!await k(r.path)?(await t.updateRepositoryMissing(r,!0),null):e})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(null===n)return e;const r=vL(n.underlyingError);if(null===r)return e;const s=r.result.gitError;if(s!==ad.GitError.LocalChangesOverwritten&&s!==ad.GitError.MergeWithLocalChanges&&s!==ad.GitError.RebaseWithLocalChanges)return e;const{repository:i,retryAction:o}=n.metadata;if(!(i instanceof Kr))return e;if(void 0===o)return e;"checkout"===n.metadata.gitContext?.kind&&t.incrementMetric("errorWhenSwitchingBranchesWithUncommmittedChanges");const a=function(e){const t=new Array,n=e.split("\n");let r=!1;for(const e of n)if(r){if(!e.startsWith("\t"))break;t.push(e.trimLeft())}else e.startsWith("error:")&&e.includes("files would be overwritten")&&e.endsWith(":")&&(r=!0);return t}(Wd(r.result.stderr));return t.showPopup({type:Sh.LocalChangesOverwritten,repository:i,retryAction:o,files:a}),null})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=vL(n.underlyingError);if(!r)return e;const s=r.result.gitError;if(null===s)return e;if(s!==ad.GitError.RebaseConflicts)return e;const{repository:i,gitContext:o}=n.metadata;if(null==i)return e;if(!(i instanceof Kr))return e;if(null==o)return e;if("merge"!==o.kind&&"pull"!==o.kind)return e;const{currentBranch:a}=o;return t.launchRebaseOperation(i,a),null})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;if(!vL(n.underlyingError))return e;const{repository:r}=n.metadata;if(!(r instanceof Kr))return e;if(!Yr(r))return e;const s=EL.exec(e.message);return s?(t.showPopup({type:Sh.PushRejectedDueToMissingWorkflowScope,rejectedPath:s[1],repository:r}),null):e})),DW.registerErrorHandler((async function(e,t){if(!(e instanceof gt))return e;const{retryAction:n}=e.metadata;return void 0===n?e:(t.showPopup({type:Sh.DiscardChangesRetry,retryAction:n}),null)})),DW.registerErrorHandler((async function(e,t){const n=CL(e);if(!n)return e;const r=vL(n.underlyingError);if(r?.result.gitError!==ad.GitError.PushWithSecretDetected)return e;const s=function(e){const t=[...e.matchAll(/—— (?<description>.*?) —+[\s\S]*?locations:(?<locationsGroup>(?:\s+- commit: [a-f0-9]{40}\s+path: [\s\S]*?)+).*?(?<bypassURL>https[\s\S]*?) /g)],n=[];if(0===t.length)return n;for(const e of t){if(void 0===e.groups||void 0===e.index)continue;const{bypassURL:t,description:r,locationsGroup:s}=e.groups,i=/- commit: (?<commitSha>[a-f0-9]{40})\s+path: (?<path>.*?):(?<lineNumber>\d+)/g,o=[...s.matchAll(i)],a=[];o.forEach((e=>{if(void 0===e.groups)return;const{commitSha:t,path:n,lineNumber:r}=e.groups;a.push({commitSha:t,path:n,lineNumber:parseInt(r,10)})})),n.push({id:t.split("/").pop()||"",description:r,bypassURL:t,locations:a,requiresApproval:!!e.at(0)?.includes("request an exemption")})}return n}(RL(Wd(r.result.stderr)));return t.incrementMetric("pushBlockedBySecretScanningCount"),t.incrementMetric("secretsDetectedOnPushCount",s.length),t.showPopup({type:Sh.PushProtectionError,secrets:s}),null})),document.body.classList.add("platform-win32"),DW.initializeAppFocusState(),function(e){g("notification-event",((t,n,r,s)=>{if("click"!==n)return;I();const i=TC.get(r);if(void 0!==i)return i?.(),void TC.delete(r);e.onNotificationEventReceived(n,r,s)}))}(AW),m$.setDispatcher(DW),g("focus",(()=>{const{selectedState:e}=xW.getState();e&&e.type!==Xe.CloningRepository&&DW.refreshRepository(e.repository),DW.setAppFocusState(!0)})),g("blur",(()=>{DW.setAccessKeyHighlightState(!1),DW.setAppFocusState(!1)})),g("url-action",((e,t)=>DW.dispatchURLAction(t).catch((e=>log.error(`URL action ${t.name} failed`,e))))),g("cli-action",((e,t)=>DW.dispatchCLIAction(t).catch((e=>log.error(`CLI action ${t.kind} failed`,e))))),function(e,t){["aria-label","aria-readonly"].forEach((n=>{delete e?.[n],delete t?.[n]}))}(mp.defaultProps,mp.propTypes),Ae.render(ke.createElement(n$,{dispatcher:DW,appStore:xW,repositoryStateManager:vW,issuesStore:dW,gitHubUserStore:hW,aheadBehindStore:kW,notificationsDebugStore:TW,startTime:oW}),document.getElementById("desktop-app-container"))})(),module.exports.renderer={}})();
//# sourceMappingURL=renderer.js.map