@gitkraken/gitkraken-components 10.1.16 → 10.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={2584:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},4184:(e,t)=>{var o;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},8514:(e,t,o)=>{var n=o(6115);e.exports=function(e,t,o){e&&n((function(){e.apply(o||null,t||[])}))}},5229:(e,t,o)=>{var n=o(2584),r=o(8514);e.exports=function(e,t){var o=t||{},i={};return void 0===e&&(e={}),e.on=function(t,o){return i[t]?i[t].push(o):i[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var n=arguments.length;if(1===n)delete i[t];else if(0===n)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(o),1)}return e},e.emit=function(){var t=n(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(i[t]||[]).slice(0);return function(){var i=n(arguments),a=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===i.length?i[0]:i;return s.forEach((function(n){o.async?r(n,i,a):n.apply(a,i),n._once&&e.off(t,n)})),e}},e}},3285:(e,t,o)=>{o(8691),e.exports=o(4579).Array.isArray},6981:(e,t,o)=>{o(2699),e.exports=o(4579).Object.assign},5627:(e,t,o)=>{o(6760);var n=o(4579).Object;e.exports=function(e,t){return n.create(e,t)}},7965:(e,t,o)=>{o(520),e.exports=o(4579).Object.entries},8613:(e,t,o)=>{o(961),e.exports=o(4579).Object.keys},433:(e,t,o)=>{o(9349),e.exports=o(4579).Object.setPrototypeOf},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:(e,t,o)=>{var n=o(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,o)=>{var n=o(7932),r=o(8728),i=o(6531);e.exports=function(e){return function(t,o,s){var a,l=n(t),c=r(l.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((e||h in l)&&l[h]===o)return e||h||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,o)=>{var n=o(5663);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,o)=>{e.exports=!o(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,o)=>{var n=o(6727),r=o(3938).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(e,t,o)=>{var n=o(3938),r=o(4579),i=o(9216),s=o(1818),a=o(7069),l="prototype",c=function(e,t,o){var h,d,u,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,C=f?r:r[t]||(r[t]={}),S=C[l],_=f?n:m?n[t]:(n[t]||{})[l];for(h in f&&(o=t),o)(d=!p&&_&&void 0!==_[h])&&a(C,h)||(u=d?_[h]:o[h],C[h]=f&&"function"!=typeof _[h]?o[h]:v&&d?i(u,n):y&&_[h]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((C.virtual||(C.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938: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)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),a=o(6530),l=o(799),c=Object.assign;e.exports=!c||o(7929)((function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var o=a(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=l(arguments[h++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],n&&!u.call(f,p)||(o[p]=f[p]);return o}:c},526:(e,t,o)=>{var n=o(2159),r=o(7856),i=o(3338),s=o(8989)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=o(7467)("iframe"),n=i.length;for(t.style.display="none",o(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(a[l]=n(e),o=new a,a[l]=null,o[s]=e):o=c(),void 0===t?o:r(o,t)}},4743:(e,t,o)=>{var n=o(2159),r=o(3758),i=o(3206),s=Object.defineProperty;t.f=o(9666)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},7856:(e,t,o)=>{var n=o(4743),r=o(2159),i=o(6162);e.exports=o(9666)?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),a=s.length,l=0;a>l;)n.f(e,o=s[l++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),a=o(7069),l=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!n.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,o)=>{var n=o(7069),r=o(7932),i=o(7428)(!1),s=o(8989)("IE_PROTO");e.exports=function(e,t){var o,a=r(e),l=0,c=[];for(o in a)o!=s&&n(a,o)&&c.push(o);for(;t.length>l;)n(a,o=t[l++])&&(~i(c,o)||c.push(o));return c}},6162:(e,t,o)=>{var n=o(2963),r=o(3338);e.exports=Object.keys||function(e){return n(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},4938:(e,t,o)=>{var n=o(3856),r=o(4579),i=o(7929);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],s={};s[e]=t(o),n(n.S+n.F*i((function(){o(1)})),"Object",s)}},2050:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(7932),s=o(6274).f;e.exports=function(e){return function(t){for(var o,a=i(t),l=r(a),c=l.length,h=0,d=[];c>h;)o=l[h++],n&&!s.call(a,o)||d.push(e?[o,a[o]]:a[o]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,o)=>{var n=o(6727),r=o(2159),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=o(9216)(Function.call,o(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,o){return i(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},8989:(e,t,o)=>{var n=o(250)("keys"),r=o(5730);e.exports=function(e){return n[e]||(n[e]=r(e))}},250:(e,t,o)=>{var n=o(4579),r=o(3938),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,o)=>{var n=o(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},7932:(e,t,o)=>{var n=o(799),r=o(8333);e.exports=function(e){return n(r(e))}},8728:(e,t,o)=>{var n=o(1052),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},6530:(e,t,o)=>{var n=o(8333);e.exports=function(e){return Object(n(e))}},3206:(e,t,o)=>{var n=o(6727);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},8691:(e,t,o)=>{var n=o(3856);n(n.S,"Array",{isArray:o(1421)})},2699:(e,t,o)=>{var n=o(3856);n(n.S+n.F,"Object",{assign:o(8082)})},6760:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{create:o(526)})},961:(e,t,o)=>{var n=o(6530),r=o(6162);o(4938)("keys",(function(){return function(e){return r(n(e))}}))},9349:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{setPrototypeOf:o(2906).set})},520:(e,t,o)=>{var n=o(3856),r=o(2050)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,o)=>{var n=o(9638),r=o(4874),i=o.g.document,s=function(e,t,o,n){return e.addEventListener(t,o,n)},a=function(e,t,o,n){return e.removeEventListener(t,o,n)},l=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<l.length;n++)if((r=l[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=l[n].wrapper;return l.splice(n,1),r}}o.g.addEventListener||(s=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=c(e,t,n)||function(e,t,n){return function(t){var r=t||o.g.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return l.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},a=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:a,fabricate:function(e,t,o){var s=-1===r.indexOf(t)?new n(t,{detail:o}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}},4874:(e,t,o)=>{var n=[],r="",i=/^on/;for(r in o.g)i.test(r)&&n.push(r.slice(2));e.exports=n},9638:(e,t,o)=>{var n=o.g.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var o=document.createEvent("CustomEvent");return t?o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):o.initCustomEvent(e,!1,!1,void 0),o}:function(e,t){var o=document.createEventObject();return o.type=e,t?(o.bubbles=Boolean(t.bubbles),o.cancelable=Boolean(t.cancelable),o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}},3249:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.removeEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.detachEvent("on"+t,o)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.addEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,o.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},9981:(e,t)=>{t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},1629:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=n(o(139)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},7624:(e,t)=>{t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},2565:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),o=(0,i.default)(t),n=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:a.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=n(o(1629)),i=n(o(7624)),s=n(o(9981));e.exports=t.default},2939:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==s(e)&&"static"===(0,i.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var r=n(o(9981)),i=n(o(162));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o,n={top:0,left:0};"fixed"===(0,c.default)(e,"position")?o=e.getBoundingClientRect():(t=t||(0,s.default)(e),o=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,i.default)(t)),n.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,l.default)(t)||0);return(0,r.default)({},o,{top:o.top-n.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:o.left-n.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var r=n(o(434)),i=n(o(2565)),s=n(o(2939)),a=n(o(504)),l=n(o(5770)),c=n(o(162));e.exports=t.default},5770:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft:e.scrollLeft;o?o.scrollTo(t,"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop):e.scrollLeft=t};var r=n(o(7624));e.exports=t.default},504:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop:e.scrollTop;o?o.scrollTo("pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=n(o(7624));e.exports=t.default},7023:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&o&&o[t]&&(n=o[t]),s.test(n)&&!i.test(t)){var a=o.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=a,c&&(l.left=c)}return n}}};var r=n(o(3497)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t,o){var n="",h="",d=t;if("string"==typeof t){if(void 0===o)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=o}Object.keys(d).forEach((function(t){var o=d[t];o||0===o?(0,c.default)(t)?h+=t+"("+o+") ":n+=(0,i.default)(t)+": "+o+";":(0,a.default)(e,(0,i.default)(t))})),h&&(n+=l.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),a=n(o(1760)),l=o(702),c=n(o(3293));e.exports=t.default},1760:(e,t)=>{t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},3293:(e,t)=>{t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,o)=>{var n=o(4836);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 r,i,s,a,l,c,h,d,u,p,f,m=n(o(139)),g="transform";if(t.transform=g,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=h,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=f,t.animationTiming=p,t.animationDuration=u,t.animationName=d,m.default){var v=function(){for(var e,t,o=document.createElement("div").style,n={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}},r=Object.keys(n),i="",s=0;s<r.length;s++){var a=r[s];if(a+"TransitionProperty"in o){i="-"+a.toLowerCase(),e=n[a]("TransitionEnd"),t=n[a]("AnimationEnd");break}}!e&&"transitionProperty"in o&&(e="transitionend");!t&&"animationName"in o&&(t="animationend");return o=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=a=r+"-transition-property",t.transitionDuration=l=r+"-transition-duration",t.transitionDelay=h=r+"-transition-delay",t.transitionTiming=c=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=u=r+"-animation-duration",t.animationTiming=p=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:a,timing:c,delay:h,duration:l};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,(function(e,t){return t.toUpperCase()}))};var o=/-(.)/g;e.exports=t.default},3497:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=n(o(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},4403:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=n(o(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},9425:e=>{var t={},o="(?:^|\\s)",n="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(o+e+n,"g"),r}e.exports={add:function(e,t){var o=e.className;o.length?r(t).test(o)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,o)=>{var n=o(5229),r=o(1808),i=o(9425),s=document,a=s.documentElement;function l(e,t,n,i){o.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],i):o.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],i),r[t](e,n,i))}function c(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function h(e,t){return void 0!==o.g[t]?o.g[t]:a.clientHeight?a[e]:s.body[e]}function d(e,t,o){var n,r=e||{},i=r.className;return r.className+=" gu-hide",n=s.elementFromPoint(t,o),r.className=i,n}function u(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e))))}function C(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function S(e,t){var o=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,_,w,R,b,T,E,x,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,D=null,N=t||{};void 0===N.moves&&(N.moves=p),void 0===N.accepts&&(N.accepts=p),void 0===N.invalid&&(N.invalid=function(){return!1}),void 0===N.containers&&(N.containers=e||[]),void 0===N.isContainer&&(N.isContainer=u),void 0===N.copy&&(N.copy=!1),void 0===N.copySortSource&&(N.copySortSource=!1),void 0===N.revertOnSpill&&(N.revertOnSpill=!1),void 0===N.removeOnSpill&&(N.removeOnSpill=!1),void 0===N.direction&&(N.direction="vertical"),void 0===N.ignoreInputTextSelection&&(N.ignoreInputTextSelection=!0),void 0===N.mirrorContainer&&(N.mirrorContainer=s.body);var z=n({containers:N.containers,start:function(e){var t=F(e);t&&B(t)},end:Z,cancel:Y,remove:$,destroy:function(){H(!0),j({})},canMove:function(e){return!!F(e)},dragging:!1});return!0===N.removeOnSpill&&z.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){z.dragging&&i.add(e,"gu-hide")})),H(),z;function k(e){return-1!==z.containers.indexOf(e)||N.isContainer(e)}function H(e){var t=e?"remove":"add";l(a,t,"mousedown",P),l(a,t,"mouseup",j)}function G(e){l(a,e?"remove":"add","mousemove",L)}function W(e){var t=e?"remove":"add";r[t](a,"selectstart",A),r[t](a,"click",A)}function A(e){I&&e.preventDefault()}function P(e){if(b=e.clientX,T=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=F(t);o&&(I=o,G(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function L(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==b||void 0===e.clientY||e.clientY!==T){if(N.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;G(!0),W(),Z(),B(r);var d,u={left:(d=_.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};w=S("pageX",e)-u.left,R=S("pageY",e)-u.top,i.add(O||_,"gu-transit"),function(){if(o)return;var e=_.getBoundingClientRect();(o=_.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),N.mirrorContainer.appendChild(o),l(a,"add","mousemove",Q),i.add(N.mirrorContainer,"gu-unselectable"),z.emit("cloned",o,_,"mirror")}(),Q(e)}}else j({})}function F(e){if(!(z.dragging&&o||k(e))){for(var t=e;g(e)&&!1===k(g(e));){if(N.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!N.invalid(e,t))if(N.moves(e,n,t,C(e)))return{item:e,source:n}}}function B(e){var t,o;t=e.item,o=e.source,("boolean"==typeof N.copy?N.copy:N.copy(t,o))&&(O=e.item.cloneNode(!0),z.emit("cloned",O,e.item,"copy")),y=e.source,_=e.item,E=x=C(e.item),z.dragging=!0,z.emit("drag",_,y)}function Z(){if(z.dragging){var e=O||_;V(e,g(e))}}function U(){I=!1,G(!0),W(!0)}function j(e){if(U(),z.dragging){var t=O||_,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&N.copySortSource||!O||i!==y)?V(t,i):N.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);O&&N.copySortSource&&t===y&&o.removeChild(_),K(t)?z.emit("cancel",e,y,y):z.emit("drop",e,t,y,x),q()}function $(){if(z.dragging){var e=O||_,t=g(e);t&&t.removeChild(e),z.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(z.dragging){var t=arguments.length>0?e:N.revertOnSpill,o=O||_,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,E)),r||t?z.emit("cancel",o,y,y):z.emit("drop",o,n,y,x),q()}}function q(){var e=O||_;U(),o&&(i.rm(N.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),z.dragging=!1,D&&z.emit("out",e,D,y),z.emit("dragend",e),y=_=O=E=x=M=D=null}function K(e,t){var n;return n=void 0!==t?t:o?x:C(O||_),e===y&&n===E}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===k(n))return!1;var r=J(n,e),i=ee(n,r,t,o);return!!K(n,i)||N.accepts(_,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-w,i=n-R;o.style.left=r+"px",o.style.top=i+"px";var s=O||_,a=d(o,t,n),l=X(a,t,n),c=null!==l&&l!==D;(c||null===l)&&(D&&f("out"),D=l,c&&f("over"));var h=g(s);if(l!==y||!O||N.copySortSource){var u,p=J(l,a);if(null!==p)u=ee(l,p,t,n);else{if(!0!==N.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=E,l=y}(null===u&&c||u!==s&&u!==C(s))&&(x=u,l.insertBefore(s,u),z.emit("shadow",s,l,y))}else h&&h.removeChild(s)}function f(e){z.emit(e,s,D,y)}}function J(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===a?null:o}function ee(e,t,o,n){var r="horizontal"===N.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return s(o>e.left+f(e)/2);return s(n>e.top+m(e)/2)}():function(){var t,i,s,a=e.children.length;for(t=0;t<a;t++){if(s=(i=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>o)return i;if(!r&&s.top+s.height/2>n)return i}return null}();return i;function s(e){return e?C(t):t}}}},9915:(e,t,o)=>{o.d(t,{Z:()=>m});var n=o(4184),r=o.n(n),i=o(6689),s=o.n(i);class a{name;notify;constructor(e,t){this.name=e,this.notify=t}}class l{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}const c=new class{observers;constructor(){this.observers=new Set}broadcast(e){this.observers&&this.observers.forEach((t=>{e.name===t.name&&t.notify(e)}))}subscribe(e,t){const o=new a(e,t);return this.observers.add(o),new l(o,(e=>{this.observers.delete(e)}))}unsubscribe(e){e&&e.unsubscribe()}},h="ON_DRAG_START",d="ON_DRAG_END";let u=null;const p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=c.subscribe(h,(e=>{const t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})})),this.onDragEndSubscription=c.subscribe(d,(()=>{this.mounted&&this.setState({isDroppable:!1})})),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){const e=p.get(u);this.setState({isDroppable:this.canDrop(void 0,e,this.props.dndData)})}}componentWillUnmount(){this.mounted=!1,this.onDragStartSubscription.unsubscribe(),this.onDragEndSubscription.unsubscribe()}canDrop(e,t,o){const{canDrop:n}=this.props;return n&&("boolean"==typeof n||n(e,t,o))}addDragEndEventListenerOnce(){const e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){const{canDrag:e,dndData:t}=this.props;return!!e&&("boolean"==typeof e||e(t))}onDragEnter(e){if(e.stopPropagation(),this.setState({isOver:!0}),this.props.onDragEnter){const t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();const t=p.get(u);this.props.onDragLeave&&this.props.onDragLeave(e,t,this.props.dndData),this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData),isOver:!1})}onDrag(e){e.stopPropagation()}onDragOver(e){e.stopPropagation();const t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();const{dndData:t,dndId:o,onBeginDrag:n}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),c.broadcast({name:h,content:u}),n&&n(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();const{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),c.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();const{dndData:t,onDrop:o}=this.props;o&&o(e,p.get(u),t)}render(){const{children:e,className:t,style:o}=this.props,{isDragging:n,isDroppable:i,isOver:a}=this.state,l=this.isDraggable(),c=r()("dnd-component",t,{draggable:l,dragging:n,droppable:i,hovering:a});return s().createElement("div",{className:c,draggable:l,onDrag:e=>this.onDrag(e),onDragEnter:e=>this.onDragEnter(e),onDragLeave:e=>this.onDragLeave(e),onDragOver:e=>this.onDragOver(e),onDragStart:e=>this.onDragStart(e),onDrop:e=>this.onDrop(e),ref:this.dndComponentRef,style:o},e)}}var m=f},1541:(e,t,o)=>{o.d(t,{Z:()=>Zs});var n={};o.r(n),o.d(n,{types:()=>Bi});var r=o(4184),i=o.n(r),s=o(6689),a=o.n(s);function l(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}function c(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function h(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,a;if(0===o)i=s=a=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=c(r,e,t+1/3),s=c(r,e,t),a=c(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*a),a:r}}const d=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function u(e){if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){const t=(e=e.trim()).length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*l(e.charCodeAt(1))+l(e.charCodeAt(2)),g:16*l(e.charCodeAt(3))+l(e.charCodeAt(4)),b:16*l(e.charCodeAt(5))+l(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*l(e.charCodeAt(1))+l(e.charCodeAt(2)),g:16*l(e.charCodeAt(3))+l(e.charCodeAt(4)),b:16*l(e.charCodeAt(5))+l(e.charCodeAt(6)),a:(16*l(e.charCodeAt(7))+l(e.charCodeAt(8)))/255};if(4===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:1}}if(5===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3)),r=l(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:(16*r+r)/255}}return null}(e);const t=d.exec(e);if(null==t)return null;const o=t[1];let n;switch(o){case"rgb":case"hsl":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===o||"hsla"===o?h({h:n[0],s:n[1],l:n[2],a:n[3]}):{type:"rgba",r:n[0],g:n[1],b:n[2],a:n[3]}}const p=e=>{return"hsla"===(t=u(e)).type&&(t=h(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};var f=o(827),m=o(3308);const g=e=>!(e===f.o$||e===f.lH),v=/^.*(:?\n){0,2}/m;function y(e,t="\n"){return e.replace("\n"===t?v:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}const C=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function S(e){const t=[];for(let o=C.exec(e);null!==o;o=C.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}const _={"--graph-row-height":"22px","--font-default":"'Open Sans', Arial, sans-serif !important","--font-monospace":"'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace","--font-size":"62.5%","--fs-1":"1rem","--fs-2":"1.2rem","--fs-3":"1.4rem","--fs-4":"1.6rem","--fs-5":"1.8rem","--fs-6":"2rem","--fs-7":"2.4rem","--button-xs-padding-y":".15rem","--button-xs-padding-x":".25rem","--button-small-padding-y":".25rem","--button-small-padding-x":".5rem","--button-medium-padding-y":".5rem","--button-medium-padding-x":".75rem","--button-large-padding-y":"1rem","--button-large-padding-x":"1.25rem","--button-radius":".2rem","--input-radius":"3px","--about-modal-bg-color":"#e2e4e9","--about-modal-width":"650px","--label__purple-color-f25":"rgba(197,23,182,0.25)","--registration-modal-width":"400px","--file-history-header-height":"35px","--shop-modal-width":"95vw","--shop-modal-height":"95vh","--scrollable-scrollbar-thickness":"14px","--mini-commit-col-left-width":"30px","--mini-commit-col-middle-padding":"6px","--mini-commit-col-right-width":"56px","--fuzzy-finder-repo-color":"rgba(46,206,157,0.1)","--fuzzy-finder-checkout-color":"rgba(6,105,247,0.1)","--fuzzy-finder-history-color":"rgba(197,23,182,0.1)","--handle-width":"7px","--shadow-color":"rgba(0,0,0,0.4)","--graph-color-5-f10":"rgba(205,1,1,0.1)","--graph-color-6-f10":"rgba(242,93,46,0.1)","--graph-color-7-f10":"rgba(242,202,51,0.1)","--graph-color-8-f10":"rgba(123,217,56,0.1)","--graph-color-9-f10":"rgba(46,206,157,0.1)","--graph-color-0-f10":"rgba(21,160,191,0.1)","--graph-color-1-f10":"rgba(6,105,247,0.1)","--graph-color-2-f10":"rgba(142,0,194,0.1)","--graph-color-3-f10":"rgba(197,23,182,0.1)","--graph-color-4-f10":"rgba(217,1,113,0.1)","--graph-color-5-f50":"rgba(205,1,1,0.5)","--graph-color-6-f50":"rgba(242,93,46,0.5)","--graph-color-7-f50":"rgba(242,202,51,0.5)","--graph-color-8-f50":"rgba(123,217,56,0.5)","--graph-color-9-f50":"rgba(46,206,157,0.5)","--graph-color-0-f50":"rgba(21,160,191,0.5)","--graph-color-1-f50":"rgba(6,105,247,0.5)","--graph-color-2-f50":"rgba(142,0,194,0.5)","--graph-color-3-f50":"rgba(197,23,182,0.5)","--graph-color-4-f50":"rgba(217,1,113,0.5)","--axo-orange":"#e75225","--axo-ink":"#141422","--axo-cream":"#f9efc1","--axo-yellow":"#d8c13a","--info-bar-height":"26px","--left-panel-header-height":"60px","--toolbar-height":"48px","--toolbar-border":"1px","--toolbar-item-height":"calc(var(--toolbar-height, 0px) - var(--toolbar-border, 1px))","--expand-detail-panel-transition":"flex-grow 250ms ease-in-out","--conflict-left-color":"rgba(21,160,191,0.25)","--conflict-right-color":"rgba(242,202,51,0.25)","--conflict-output-color":"rgba(197,23,182,0.25)","--graph-color-5-bg50":"#751012","--graph-color-6-bg50":"#873e29","--graph-color-7-bg50":"#87742b","--graph-color-8-bg50":"#4c7c2e","--graph-color-9-bg50":"#257660","--graph-color-0-bg50":"#195f71","--graph-color-1-bg50":"#11448d","--graph-color-2-bg50":"#550f73","--graph-color-3-bg50":"#711b6d","--graph-color-4-bg50":"#7b104a","--graph-color-5-bg45":"#6c1114","--graph-color-6-bg45":"#7c3a28","--graph-color-7-bg45":"#7c6b2a","--graph-color-8-bg45":"#47722c","--graph-color-9-bg45":"#246d5a","--graph-color-0-bg45":"#195969","--graph-color-1-bg45":"#124082","--graph-color-2-bg45":"#4f116b","--graph-color-3-bg45":"#681b65","--graph-color-4-bg45":"#711146","--graph-color-5-bg25":"#48171b","--graph-color-6-bg25":"#522e26","--graph-color-7-bg25":"#524927","--graph-color-8-bg25":"#344d28","--graph-color-9-bg25":"#214a42","--graph-color-0-bg25":"#1a3f4a","--graph-color-1-bg25":"#173158","--graph-color-2-bg25":"#39174b","--graph-color-3-bg25":"#461c48","--graph-color-4-bg25":"#4b1737","--graph-color-5-bg15":"#371a1e","--graph-color-6-bg15":"#3c2725","--graph-color-7-bg15":"#3c3825","--graph-color-8-bg15":"#2a3a26","--graph-color-9-bg15":"#1f3835","--graph-color-0-bg15":"#1b323a","--graph-color-1-bg15":"#192943","--graph-color-2-bg15":"#2d1a3b","--graph-color-3-bg15":"#351d39","--graph-color-4-bg15":"#381a2f","--semi-bold":"500","--bold":"600","--num-columns-supported":"10","--column-0-color":"#15a0bf","--column-1-color":"#0669f7","--column-2-color":"#8e00c2","--column-3-color":"#c517b6","--column-4-color":"#d90171","--column-5-color":"#cd0101","--column-6-color":"#f25d2e","--column-7-color":"#f2ca33","--column-8-color":"#7bd938","--column-9-color":"#2ece9d","--red":"#D9413D","--orange":"#DE9B43","--yellow":"#ECB91C","--green":"#5CB85C","--blue":"#4D88FF","--ltblue":"#5bc0de","--app__bg0":"#1C1E23","--toolbar__bg0":"rgb(42,45,52)","--toolbar__bg1":"rgb(51,55,63)","--toolbar__bg2":"rgb(65,70,80)","--panel__bg0":"rgb(39,42,49)","--panel__bg1":"rgb(50,54,63)","--panel__bg2":"rgb(61,66,77)","--input__bg":"rgba(0,0,0,0.2)","--input-bg-warn-color":"rgba(222,155,67,0.6)","--panel-border":"rgb(19,20,24)","--section-border":"rgba(255,255,255,0.08)","--subtle-border":"rgba(255,255,255,0.04)","--modal-overlay-color":"rgba(0,0,0,.5)","--graph-color-0":"#15a0bf","--graph-color-1":"#0669f7","--graph-color-2":"#8e00c2","--graph-color-3":"#c517b6","--graph-color-4":"#d90171","--graph-color-5":"#cd0101","--graph-color-6":"#f25d2e","--graph-color-7":"#f2ca33","--graph-color-8":"#7bd938","--graph-color-9":"#2ece9d","--text-selected":"#FFFFFF","--text-selected-row":"#FFFFFF","--text-dimmed":"rgba(255,255,255,0.2)","--text-dimmed-selected":"rgba(255,255,255,0.5)","--text-normal":"rgba(255,255,255,0.75)","--text-secondary":"rgba(255,255,255,0.6)","--text-disabled":"rgba(255,255,255,0.4)","--text-accent":"#93A9EC","--text-inverse":"#222222","--text-bright":"#FFFFFF","--btn-text":"rgba(255,255,255,0.75)","--btn-text-hover":"#FFFFFF","--default-border":"rgba(255,255,255,0.75)","--default-bg":"transparent","--default-hover":"transparent","--default-border-hover":"#FFFFFF","--primary-border":"#4D88FF","--primary-bg":"rgba(77,136,255,0.2)","--primary-hover":"rgba(77,136,255,0.6)","--success-border":"#5CB85C","--success-bg":"rgba(92,184,92,0.2)","--success-hover":"rgba(92,184,92,0.6)","--warning-border":"#DE9B43","--warning-bg":"rgba(222,155,67,0.2)","--warning-hover":"rgba(222,155,67,0.6)","--danger-border":"#D9413D","--danger-bg":"rgba(217,65,61,0.2)","--danger-hover":"rgba(217,65,61,0.6)","--hover-row":"rgba(77,136,255,0.1)","--hover-row-border":"none","--danger-row":"rgba(217,65,61,0.6)","--selected-row":"rgba(77,136,255,0.2)","--selected-row-border":"none","--warning-row":"rgba(222,155,67,0.6)","--droppable":"rgba(236,185,28,0.3)","--drop-target":"rgba(92,184,92,0.5)","--input--disabled":"rgba(0,0,0,0.1)","--link-color":"#40c5ec","--link-color-bright":"#40c5ec","--form-control-focus":"#4D88FF","--scroll-thumb-border":"#1C1E23","--scroll-thumb-bg":"rgb(65,70,80)","--scroll-thumb-bg-light":"rgb(111,119,136)","--wip-status":"rgba(77,136,255,0.4)","--card__bg":"rgb(61,66,77)","--card-shadow":"rgba(0,0,0,.2)","--statusbar__warning-bg":"#87742b","--label__yellow-color":"#f2ca33","--label__light-blue-color":"#15a0bf","--label__purple-color":"#c517b6","--filtering":"rgba(77,136,255,0.5)","--soloing":"rgba(222,155,67,0.5)","--checked-out":"rgba(92,184,92,0.3)","--soloed":"rgba(222,155,67,0.3)","--filter-match":"rgba(77,136,255,0.5)","--clone__progress":"rgba(77,136,255,0.7)","--toolbar__prompt":"rgba(77,136,255,0.2)","--verified":"rgba(92,184,92,0.3)","--unverified":"rgba(255,255,255,0.1)","--drop-sort-border":"#5CB85C","--terminal__repo-name-color":"turquoise","--terminal__repo-branch-color":"violet","--terminal__repo-tag-color":"lightcoral","--terminal__repo-upstream-color":"yellowgreen","--terminal__background":"#000000","--terminal__cursor":"#FFFFFF","--terminal__cursorAccent":"#000000","--terminal__foreground":"#FFFFFF","--terminal__selection":"#304676","--terminal__black":"#000000","--terminal__red":"#F24A4A","--terminal__green":"#0DBC79","--terminal__yellow":"#E5E510","--terminal__blue":"#4A98EE","--terminal__magenta":"#E063E0","--terminal__cyan":"#11A8CD","--terminal__white":"#E5E5E5","--terminal__brightBlack":"#686868","--terminal__brightRed":"#FF5656","--terminal__brightGreen":"#23D18B","--terminal__brightYellow":"#F5F543","--terminal__brightBlue":"#51A4FF","--terminal__brightMagenta":"#D670D6","--terminal__brightCyan":"#29B8DB","--terminal__brightWhite":"#E5E5E5","--code-bg":"#1C1E23","--code-foreground":"rgba(255,255,255,0.75)","--code-blame-color-0":"#15a0bf","--code-blame-color-1":"#0669f7","--code-blame-color-2":"#8e00c2","--code-blame-color-3":"#c517b6","--code-blame-color-4":"#d90171","--code-blame-color-5":"#cd0101","--code-blame-color-6":"#f25d2e","--code-blame-color-7":"#f2ca33","--code-blame-color-8":"#7bd938","--code-blame-color-9":"#2ece9d","--added-line":"rgba(92,184,92,0.2)","--deleted-line":"rgba(217,65,61,0.2)","--modified-line":"rgba(0,0,0,0.25)","--conflict-info-color":"#15a0bf","--conflict-left-border-color":"#15a0bf","--conflict-right-border-color":"#f2ca33","--conflict-output-border-color":"#c517b6","--scroll-marker-head-color":"#16c216","--scroll-marker-highlights-color":"#e6e62b","--scroll-marker-local-branches-color":"#ffa500","--scroll-marker-remote-branches-color":"#ffd68b","--scroll-marker-selection-color":"#0821ff","--scroll-marker-stashes-color":"#fb94ff","--scroll-marker-tags-color":"#affcff","--scroll-marker-upstream-color":"#9bff9b","--stats-added-color":"#347d39","--stats-deleted-color":"#c93c37","--stats-files-color":"#e2c08d","--stats-bar-border-radius":"3px","--stats-bar-height":"40%"};function w(e){return`--column-${e}-color`}function R(e={}){const t={};return Object.keys(e).forEach((o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]})),function(e={}){return{..._,...e}}(t)}const b=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,T=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,E=new Map;let x;const O=["th","st","nd","rd"];function M(e){const t=e%100;return`${e}${O[(t-20)%10]??O[t]??O[0]}`}function I(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=E.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=T.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(b))if(null!=t)for(const e in t){const n=t[e];if(null!=n)switch(e){case"year":o.year=4===n.length?"numeric":"2-digit";break;case"month":switch(n.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":o.day="DD"===n?"2-digit":"numeric";break;case"weekday":switch(n.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===n.length?"2-digit":"numeric",o.hour12="hh"===n||"h"===n;break;case"minute":o.minute=2===n.length?"2-digit":"numeric";break;case"second":o.second=2===n.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===n.length?"long":"short"}}return o}(t);let s;s=null==o?x:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&E.set(r,i)}if(null==t||T.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=E.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?x:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&E.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(b,((t,o,n,r,i,l,c,h,d,u,p,f,m,g,v)=>{if(null!=o)return o.substring(1,o.length-1);for(const t in v){const o=v[t];if(null==o)continue;const n=a.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return M(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){const t=s("short").formatToParts(e).find((e=>"dayPeriod"===e.type));return` ${(t??n)?.value??""}`}return n?.value??""}return""}))}let D={};function N(e,t,o,n){const r=`${e}${n?"_compact":""}`;let i=D[e];return i||(i=o+e*t+t/2,D[r]=i,i)}const z={d:"d",fill:"fill","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function k(e,t){let o="";for(const[e,n]of Object.entries(z)){const r=t[n];r&&(o+=` ${e}="${r}"`)}return`<${e}${o} />`}function H(e){return k("line",e)}function G(e,t,o,n){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:g(e)?n?1:2:0,stroke:t}}function W(e,t,o,n){return`${e}_${t}_${o||"+"}${n?"_compact":""}`}function A(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}function P(e,t,o){return(e=e<=o?e:o)>=t?e:t}var L=o(8649),F=o(9453);const B=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Z(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function U(e,t,o,n){const{id:r}=e;return!r||null===t||null===t?.[r]||n&&null===t?.[r]?.[n]?null:t&&r in t?n&&!t[r]?.[n]?(o(r,[n]),null):n?t?.[r]?.[n]:t?.[r]:(o(r,F.AI),null)}function j(e,t){if(t.id)return t.id;const o=t.owner||"";return e===L.V.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function V(e){return j(e.refType,e)}function $(e,t=0){for(let o=e.length-1;o>=t;o-=1){const t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function Y(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){const t=e[o],n=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(n&&t.currentWidth<n)return t}return e[e.length-1]}}function q(e,t=!1){const o="--scrollable-scrollbar-thickness",n=t||!e[o]?R(e):e,r=n[o]?parseInt(n[o],10):0;return Number.isNaN(r)?0:r}function K(e,t){let o=0;for(const n of e)t&&n.type===t||(o+=n.currentWidth);return o}const X=(e,t)=>e===t[t.length-1].type;function Q(e,t,o){return t||o||0===e}function J(e,t,o){return e+(Q(e,t,o)?1:0)}function ee(e,t,o){const n=J(e,t,o);return m.$0*n}function te(e,t){return e.type===m.Wm&&t>0?e.contentWidth||0:e.currentWidth}function oe(e,t,o,n,r){const i=ie(e,t);if(!i)return 0;var s,a;return(s=i,a=o.length,s.currentWidth<te(s,a))?q(n,r):0}function ne(e,t,o,n,r,i,s,a,l){const c=ie(e,t);if(!c)return 0;const h=function(e,t,o,n,r,i,s){const a=ee(i,o,n);return X(e.type,t)&&(r<a||s)}(c,t,o,n,r,i.length,s);return h?q(a,l):0}function re(e,t,o){return P(o,e.minimumWidth||0,e.maximumWidth&&!X(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function ie(e,t){return t.find((({type:t})=>t===e))}function se(e,t){return t.findIndex((({type:t})=>t===e))}function ae(e,t,o){let n=0,r=0;const i=se(e,t);if(i>-1){const e=function(e,t=0){let o=0;for(let n=t;n<e.length;n+=1)o+=e[n].minimumWidth;return o}(t,i+1),s=function(e,t=e.length-1){let o=0;for(let n=0;n<=t;n+=1)o+=e[n].currentWidth;return o}(t,i-1),a=t[i].maximumWidth||Number.MAX_VALUE,l=Math.min(a,o-e-s);n=t[i].minimumWidth,r=l}return{min:n,max:r}}function le(e){const t=!!e&&e===m.Um.Compact,o=t?1:2,n=t?10:28,r=t?1:3,i=t?1:3,s=t?10:22,a=t?s:m.P3,l=t?s:s/2+1,c=t?45:56;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_PADDING_LEFT:r,COMMIT_ZONE_PADDING_RIGHT:i,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:a,COMMIT_MERGE_NODE_DIAMETER:l,COMMIT_NODE_TOP_OFFSET:.5*m.P3-.5*a,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-l/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*m.P3-.5*l,COMMIT_ZONE_AVATAR_DIAMETER:a-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:a+r+i+n,COMMIT_ZONE_SHOW_ICON_WIDTH:c,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:a/2-l/2}}function ce(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function he(e){return[f.S7,f.br,f.ch].includes(e)}function de(e){return!!e&&Object.values(e).some((e=>e>0))}function ue(e){return 1===Object.keys(e).length}function pe(e,t){return!0===e[t]&&ue(e)}function fe(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:L.V.HEAD}))):[],s=n?n.map((e=>({...e,refType:L.V.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:L.V.REMOTE}))):[],...s]}function me(e){const t=[];let o,n=!1;for(const r of e){n=!1,o=r.fullName||r.name;for(const e of t)if(e.length>0&&e[0].name===o){r.refType===L.V.HEAD?e.unshift(r):e.push(r),n=!0;break}n||t.push([r])}return t}class ge{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=ie(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?fe(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?me(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e,t=!0){const o=t?this.getVerticalScrollWidth(e):0;return function(e,t){return ie(e,t)?.currentWidth||m.qi[e].minimumWidth}(e,this.props.graphZones)-o}isDateTimeZoneActive(){return Boolean(this.getActiveGraphZone(m.PL))}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return((e,t)=>{const o=se(e,t),n=se(m.Wm,t);return-1!==o&&-1!==n&&o-n==1})(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){const t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!(!this.props.isContainerWindowFocused||!this.props.processedRows[e])&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return X(e,this.props.graphZones)}getSelectedRefGroupByName(){if(ue(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return me(fe(t,this.props.showRemoteNamesOnRefs))}}return[]}getHorizontalScrollHeight(e){return oe(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return ne(e,this.props.graphZones,this.props.hasMoreCommits,this.props.isLoadingRows,this.props.height,this.props.processedRows,this.props.enabledScrollMarkerTypes.length>0,this.props.cssVariables)}isMissingHoveredRefGroup(e){if(!this.props.isContainerWindowFocused||this.props.highlightedShas)return!1;const t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===L.V.TAG,s=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:a,tags:l,remotes:c}=!t.hasRefs||s&&!i?t.childRefs:t;if(!a.length&&!c.length&&!l.length)return!0;return!a.some((e=>e.name===n&&o.some((e=>e.refType===L.V.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===L.V.REMOTE&&t.owner===e.owner))))&&!l.some((e=>e.name===n&&o.some((e=>e.refType===L.V.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&pe(this.props.isSelectedBySha,t)}hasTimeline(e){return Boolean(this.props.processedRows[e]?.timeLineEntry)&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return ce(e)}}const ve={"CommitDiffSection-FileAdded":"added","CommitDiffSection-FileDeleted":"deleted","CommitDiffSection-FileModified":"modified","CommitDiffSection-FileRenamed":"renamed","CommitDiffSection-NFilesAdded":"{0} added","CommitDiffSection-NFilesDeleted":"{0} deleted","CommitDiffSection-NFilesModified":"{0} modified","CommitDiffSection-NFilesRenamed":"{0} renamed","Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","GraphHeader-Changes":"CHANGES","GraphHeader-CommitAuthor":"AUTHOR","GraphHeader-CommitDateTime":"COMMIT DATE / TIME","GraphHeader-CommitGraph":"GRAPH","GraphHeader-CommitMessage":"COMMIT MESSAGE","GraphHeader-CommitSha":"SHA","GraphHeader-EditColumns":"Columns settings","GraphHeader-Filter":"Filter","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","Ref-Current":"Current Branch","Ref-Local":"Local Branch","Ref-Remote":"Remote Branch","Ref-Tag":"Tag","RefZone-EnterBranchName":"enter branch name","RefZone-EnterTagName":"enter tag name","Timeline-1HourAgo":"1 hour ago","Timeline-NHoursAgo":"{0} hours ago","Timeline-Yesterday":"yesterday","Timeline-NDaysAgo":"{0} days ago","Timeline-1WeekAgo":"a week ago","Timeline-NWeeksAgo":"{0} weeks ago","Timeline-1MonthAgo":"a month ago","Timeline-NMonthsAgo":"{0} months ago","Timeline-1YearAgo":"a year ago","Timeline-NYearsAgo":"{0} years ago","Timeline-NPlusYearsAgo":"{0}+ years ago",ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"};const ye={0:1,90:0,180:-1,270:0},Ce={0:0,90:1,180:0,270:-1},Se=m.O5-m.NP,_e=` A ${Se} ${Se} 0 0 0 `;function we(e,t,o){const n=ye[o],r=Ce[o];return{x:e-m.O5*n,xOffset:-n*m.NP,y:t+m.O5*r,yOffset:r*m.NP}}const Re={};var be=function(e,t,o,n,r,i,s,a){const l=G(n,e,s,a);return l.d=function(e,t,o,n){const r=`${e}_${t}_${o}_${n}`;let i=Re[r];if(i)return i;const s=we(e,t,n),a=we(e,t,o);return i=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${_e}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,Re[r]=i,i}(r,i,o,t),k("path",l)};let Te={};function Ee(e,t,o,n,r,i,s,a){const l=W(e,t,o,a);let c=Te[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=G(o,e,i,s);return a.x1=N(t,n,r,s),a.x2=N(t,n,r,s),a.y1=0,a.y2=m.at/2,H(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=G(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=N(o,r,i,a),h.x2=N(o,r,i,a),h.y1=0,h.y2=m.An;const d={...l};return d.x1=N(o,r,i,a)+c,d.x2=N(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${H(h)}${be(e,t>o?0:90,t>o?90:180,n,N(o,r,i,a)+c,m.An,s,a)}${H(d)}</g>`}(n[e],t,e,o,r,i,s,a),Te[l]=c,c)}let xe={};function Oe(e,t,o,n,r,i,s){const a=A(e,t,s);let l=xe[a];if(l)return l;const c=N(e,n,r,s),h=G(t,o[e],i,s);return h.x1=c,h.x2=c,h.y1=0,h.y2=m.at,l=H(h),xe[a]=l,l}let Me={};function Ie(e,t,o,n,r,i,s,a){const l=W(e,t,o,a);let c=Me[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=G(o,e,i,s);return a.x1=N(t,n,r,s),a.x2=N(t,n,r,s),a.y1=m.at/2,a.y2=m.at,H(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=G(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=N(o,r,i,a),h.x2=N(o,r,i,a),h.y1=m.at-m.$s,h.y2=m.at;const d={...l};return d.x1=N(o,r,i,a)+c,d.x2=N(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${be(e,t<o?180:270,t<o?270:0,n,N(o,r,i,a)+c,m.at-m.$s,s,a)}${H(h)}${H(d)}</g>`}(n[e],t,e,o,r,i,s,a),Me[l]=c,c)}let De={};function Ne(e,t,o,n,r,i,s,a){const l=function(e,t,o,n){let r="";for(let i=0;i<=t;i++){const{passThrough:t,starting:s,ending:a}=e[i]??{};r=`${r}_${W(i,o,s?.type,n)}_${W(i,o,a?.type,n)}_${A(i,t?.type,n)}`}return r}(e,t,o,a);let c=De[l];if(c)return c;let h="";for(let l=0;l<=t;l+=1){const t=e[l];if(!t)continue;const{passThrough:c,starting:d,ending:u}=t;h+=d?Ie(l,o,d.type,n,r,i,s,a):"",h+=c?Oe(l,c.type,n,r,i,s,a):"",h+=u?Ee(l,o,u.type,n,r,i,s,a):""}return c=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${h}</g></svg>')`,De[l]=c,c}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e){return ke="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},ke(e)}function He(e){var t=function(e,t){if("object"!==ke(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ke(t)?t:String(t)}function Ge(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function We(e,t,o){return t&&Ge(e.prototype,t),o&&Ge(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pe(e,t){if(t&&("object"===ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ae(e)}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(e,t)}function Be(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}function Ze(e,t,o){return(t=He(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var Ue=o(6871);function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},je.apply(this,arguments)}function Ve(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=Ve(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const $e=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=Ve(e))&&(n&&(n+=" "),n+=t);return n};function Ye(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),l>=0&&l===a&&c())}function qe(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var Ke=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;ze(this,e),Ze(this,"_cellSizeAndPositionData",{}),Ze(this,"_lastMeasuredIndex",-1),Ze(this,"_lastBatchedIndex",-1),Ze(this,"_cellCount",void 0),Ze(this,"_cellSizeGetter",void 0),Ze(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return We(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{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 ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,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,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var s,a=this.getSizeAndPositionOfCell(i),l=a.offset,c=l-n+a.size;switch(o){case"start":s=l;break;case"end":s=c;break;case"center":s=l-(n-a.size)/2;break;default:s=Math.max(c,Math.min(l,r))}var h=this.getTotalSize();return Math.max(0,Math.min(h-n,s))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var s=r;o<n&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:r,stop:s}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=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 ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),Xe=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Qe=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?Xe():o,r=qe(t,["maxScrollSize"]);ze(this,e),Ze(this,"_cellSizeAndPositionManager",void 0),Ze(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Ke(r),this._maxScrollSize=n}return We(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,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{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,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:s})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function Je(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),s=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,s&&a&&n(r)}}var et=-1;function tt(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,h=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=h>=0&&h<f;m&&(d!==a||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<a||f<n)&&l>o.getTotalSize()-d&&p(f-1)}const ot=!("undefined"==typeof window||!window.document||!window.document.createElement);var nt,rt;function it(e){if((!nt&&0!==nt||e)&&ot){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),nt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nt}var st,at,lt=(rt="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||rt.webkitRequestAnimationFrame||rt.mozRequestAnimationFrame||rt.oRequestAnimationFrame||rt.msRequestAnimationFrame||function(e){return rt.setTimeout(e,1e3/60)},ct=rt.cancelAnimationFrame||rt.webkitCancelAnimationFrame||rt.mozCancelAnimationFrame||rt.oCancelAnimationFrame||rt.msCancelAnimationFrame||function(e){rt.clearTimeout(e)},ht=lt,dt=ct,ut=function(e){return dt(e.id)},pt=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:ht((function r(){Date.now()-o>=t?e.call():n.id=ht(r)}))};return n};function ft(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function mt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ft(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ft(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var gt="observed",vt="requested",yt=(at=st=function(e){function t(e){var o;ze(this,t),Ze(Ae(o=Pe(this,Le(t).call(this,e))),"_onGridRenderedMemoizer",Je()),Ze(Ae(o),"_onScrollMemoizer",Je(!1)),Ze(Ae(o),"_deferredInvalidateColumnIndex",null),Ze(Ae(o),"_deferredInvalidateRowIndex",null),Ze(Ae(o),"_recomputeScrollLeftFlag",!1),Ze(Ae(o),"_recomputeScrollTopFlag",!1),Ze(Ae(o),"_horizontalScrollBarSize",0),Ze(Ae(o),"_verticalScrollBarSize",0),Ze(Ae(o),"_scrollbarPresenceChanged",!1),Ze(Ae(o),"_scrollingContainer",void 0),Ze(Ae(o),"_childrenToDisplay",void 0),Ze(Ae(o),"_columnStartIndex",void 0),Ze(Ae(o),"_columnStopIndex",void 0),Ze(Ae(o),"_rowStartIndex",void 0),Ze(Ae(o),"_rowStopIndex",void 0),Ze(Ae(o),"_renderedColumnStartIndex",0),Ze(Ae(o),"_renderedColumnStopIndex",0),Ze(Ae(o),"_renderedRowStartIndex",0),Ze(Ae(o),"_renderedRowStopIndex",0),Ze(Ae(o),"_initialScrollTop",void 0),Ze(Ae(o),"_initialScrollLeft",void 0),Ze(Ae(o),"_disablePointerEventsTimeoutId",void 0),Ze(Ae(o),"_styleCache",{}),Ze(Ae(o),"_cellCache",{}),Ze(Ae(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),Ze(Ae(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),Ze(Ae(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),Ze(Ae(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),Ze(Ae(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new Qe({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new Qe({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:r,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&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return Be(t,e),We(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,a=mt({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});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,o=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,s=i.autoHeight,a=i.autoWidth,l=i.height,c=i.width,h=this.state.instanceProps,d=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),p=h.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),o),m=Math.min(Math.max(0,u-l+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?1:et:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:et:this.state.scrollDirectionVertical,scrollPositionChangeReason:gt};s||(g.scrollTop=m),a||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:u})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.height,a=n.width,l=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-a+l),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+l),Math.max(0,this._scrollingContainer.scrollTop+o));if(this.state.scrollLeft!==d||this.state.scrollTop!==u){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?1:et:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:et:this.state.scrollDirectionVertical,scrollPositionChangeReason:vt};r||(p.scrollTop=u),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:h,totalRowsHeight:c})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.scrollToColumn,a=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(o),l.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?r<=a:r>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props,r=n.columnCount,i=n.onScrollToTargetCausedUpdate,s=this.state,a=s.scrollLeft,l=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(mt({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(mt({},c,{scrollToRow:o}),h,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:a,g="number"!=typeof u?u:l;i({clientHeight:c.height,clientWidth:c.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,s=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=mt({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof s&&s>=0){var h=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:s});h&&(h.needToResetStyleCache=!1,this.setState(h))}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 d=n>0&&l>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:s||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.columnCount,a=n.height,l=n.rowCount,c=n.scrollToAlignment,h=n.scrollToColumn,d=n.scrollToRow,u=n.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=s>0&&0===e.columnCount||l>0&&0===e.rowCount;m===vt&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!r&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var C=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):tt({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):tt({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:_,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&ut(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,r=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,c=e.height,h=e.id,d=e.noContentRenderer,u=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,C=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=v.columnSizeAndPositionManager.getTotalSize(),w=v.rowSizeAndPositionManager.getTotalSize(),R=w>c?v.scrollbarSize:0,b=_>m?v.scrollbarSize:0;b===this._horizontalScrollBarSize&&R===this._verticalScrollBarSize||(this._horizontalScrollBarSize=b,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),S.overflowX=_+R<=m?"hidden":"auto",S.overflowY=w+b<=c?"hidden":"auto";var T=this._childrenToDisplay,E=0===T.length&&c>0&&m>0;return s.createElement("div",je({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:$e("ReactVirtualized__Grid",r),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:mt({},S,{},p),tabIndex:f}),T.length>0&&s.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:mt({width:t?"auto":_,height:w,maxWidth:_,maxHeight:w,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},l)},T),E&&d())}},{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,o=e.cellRenderer,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,s=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,h=e.rowCount,d=e.width,u=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var C=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),_=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),w=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var R=l({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof C.start?C.start:0,stopIndex:"number"==typeof C.stop?C.stop:-1}),b=l({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),T=R.overscanStartIndex,E=R.overscanStopIndex,x=b.overscanStartIndex,O=b.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=x;M<=O;M++)if(!i.has(M,0)){T=0,E=r-1;break}if(!i.hasFixedWidth())for(var I=T;I<=E;I++)if(!i.has(0,I)){x=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:E,deferredMeasurementCache:i,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:x,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:C,visibleRowIndices:S}),this._columnStartIndex=T,this._columnStopIndex=E,this._rowStartIndex=x,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ut(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=pt(this._debounceScrollEndedCallback,e)}},{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,o=e.scrollLeft,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{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 o=e.scrollLeft,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}}],[{key:"getDerivedStateFromProps",value:function(e,o){var n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,s=o.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===s.prevColumnWidth&&e.rowHeight===s.prevRowHeight||(n.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&&Object.assign(n,{isScrolling:!1}),Ye({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(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),Ye({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(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),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,n.instanceProps=s,mt({},n,{},r,{},i)}},{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,o=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:vt};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?1:et,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?1:et,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,s=e.width,a=t.scrollLeft,l=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=l.rowSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>n?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,s=e.width,a=t.scrollTop,l=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=l.columnSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>s?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(s.PureComponent),Ze(st,"propTypes",null),at);Ze(yt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,s=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,h=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],C=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!l&&!C,_=u;_<=p;_++)for(var w=d.getSizeAndPositionOfCell(_),R=r;R<=i;R++){var b=n.getSizeAndPositionOfCell(R),T=R>=g.start&&R<=g.stop&&_>=v.start&&_<=v.stop,E="".concat(_,"-").concat(R),x=void 0;S&&f[E]?x=f[E]:s&&!s.has(_,R)?x={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(x={height:w.size,left:b.offset+a,position:"absolute",top:w.offset+m,width:b.size},f[E]=x);var O={columnIndex:R,isScrolling:l,isVisible:T,key:E,parent:h,rowIndex:_,style:x},M=void 0;!c&&!l||a||m?M=o(O):(t[E]||(t[E]=o(O)),M=t[E]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:it,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,Ue.polyfill)(yt);const Ct=yt;function St(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===n?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var _t,wt;function Rt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var bt=(wt=_t=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Ze(Ae(o),"_columnStartIndex",0),Ze(Ae(o),"_columnStopIndex",0),Ze(Ae(o),"_rowStartIndex",0),Ze(Ae(o),"_rowStopIndex",0),Ze(Ae(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var a=o._getScrollState(),l=a.scrollToColumn,c=a.scrollToRow,h=o._getScrollState(),d=h.scrollToColumn,u=h.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===i?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":u="cells"===i?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}d===l&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),Ze(Ae(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return Be(t,e),We(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,n=this._getScrollState(),r=n.scrollToColumn,i=n.scrollToRow;return s.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rt(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(s.PureComponent),Ze(_t,"propTypes",null),wt);Ze(bt,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,Ue.polyfill)(bt);function Tt(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=i((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(o){o.call(t,e)})))}))}},c=!1,h="",d="animationstart",u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=n.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<u.length;m++)if(void 0!==f.style[u[m]+"AnimationName"]){h="-"+u[m].toLowerCase()+"-",d=p[m],c=!0;break}var g="resizeanim",v="@"+h+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=h+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,s=n.getComputedStyle(t);s&&"static"==s.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".resize-triggers { "+(y||"")+'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%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var h=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=h.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&a(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var Et,xt;function Ot(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Mt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ot(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ot(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var It=(xt=Et=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),Ze(Ae(o),"_parentNode",void 0),Ze(Ae(o),"_autoSizer",void 0),Ze(Ae(o),"_window",void 0),Ze(Ae(o),"_detectElementResize",void 0),Ze(Ae(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,a=(o._window||window).getComputedStyle(o._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,h=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,u=i-h-d,p=s-l-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-l-c}),r({height:i,width:s}))}})),Ze(Ae(o),"_setRef",(function(e){o._autoSizer=e})),o}return Be(t,e),We(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._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Tt(e,this._window),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,o=e.className,n=e.disableHeight,r=e.disableWidth,i=e.style,a=this.state,l=a.height,c=a.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=l),r||(h.width=0,d.width=c),s.createElement("div",{className:o,ref:this._setRef,style:Mt({},h,{},i)},t(d))}}]),t}(s.Component),Ze(Et,"propTypes",null),xt);Ze(It,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Dt,Nt,zt=o(6405),kt=o.n(zt),Ht=(Nt=Dt=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"_child",void 0),Ze(Ae(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,a=void 0===s?o.props.index||0:s,l=o._getCellMeasurements(),c=l.height,h=l.width;c===t.getHeight(a,r)&&h===t.getWidth(a,r)||(t.set(a,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:a}))})),Ze(Ae(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return Be(t,e),We(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,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,zt.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,s=void 0===i?this.props.index||0:i;if(!t.has(s,n)){var a=this._getCellMeasurements(),l=a.height,c=a.width;t.set(s,n,c,l),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(s.PureComponent),Ze(Dt,"propTypes",null),Nt);Ze(Ht,"__internalCellMeasurerFlag",!1);function Gt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Wt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Gt(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Gt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var At="observed",Pt="requested",Lt=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Ze(Ae(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),Ze(Ae(o),"_onSectionRenderedMemoizer",Je()),Ze(Ae(o),"_onScrollMemoizer",Je(!1)),Ze(Ae(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),Ze(Ae(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ze(Ae(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,a=o.state,l=a.scrollLeft,c=a.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:l,scrollTop:c,width:s});h.scrollLeft===l&&h.scrollTop===c||o._setScrollPosition(h)}})),Ze(Ae(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,s=t.width,a=o._scrollbarSize,l=n.getTotalSize(),c=l.height,h=l.width,d=Math.max(0,Math.min(h-s+a,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+a,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?At:Pt;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:h,totalHeight:c})}})),o._scrollbarSize=it(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return Be(t,e),We(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=it(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),s=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,a=this.state,l=a.scrollLeft,c=a.scrollPositionChangeReason,h=a.scrollTop;c===Pt&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&s===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,n=e.cellLayoutManager,r=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,c=e.noContentRenderer,h=e.style,d=e.verticalOverscanSize,u=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),y=v.height,C=v.width,S=Math.max(0,m-a),_=Math.max(0,g-d),w=Math.min(C,m+u+a),R=Math.min(y,g+i+d),b=i>0&&u>0?n.cellRenderers({height:R-_,isScrolling:f,width:w-S,x:S,y:_}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},E=y>i?this._scrollbarSize:0,x=C>u?this._scrollbarSize:0;return T.overflowX=C+E<=u?"hidden":"auto",T.overflowY=y+x<=i?"hidden":"auto",s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$e("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:Wt({},T,{},h),tabIndex:0},o>0&&s.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:C,overflow:"hidden",pointerEvents:f?"none":"",width:C}},b),0===o&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:Pt};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:Pt}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Pt}}}]),t}(s.PureComponent);Ze(Lt,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),Lt.propTypes={},(0,Ue.polyfill)(Lt);const Ft=Lt;var Bt=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;ze(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return We(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;ze(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return We(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),s=Math.floor((n+o-1)/this._sectionSize),a=Math.floor(r/this._sectionSize),l=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=a;d<=l;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new Bt({height:this._sectionSize,width:this._sectionSize,x:h*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function Ut(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,a=n,l=a-i+r;switch(o){case"start":return a;case"end":return l;case"center":return a-(i-r)/2;default:return Math.max(l,Math.min(a,s))}}var jt=function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(Ae(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(Ae(n)),n}return Be(t,e),We(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=je({},this.props);return s.createElement(Ft,je({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,n=e.sectionSize,r=[],i=new Zt(n),s=0,a=0,l=0;l<t;l++){var c=o({index:l});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));s=Math.max(s,c.y+c.height),a=Math.max(a,c.x+c.width),r[l]=c,i.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:r,height:s,sectionManager:i,width:a}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,n=e.height,r=e.scrollLeft,i=e.scrollTop,s=e.width,a=this.props.cellCount;if(o>=0&&o<a){var l=this._cellMetadata[o];r=Ut({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:r,targetIndex:o}),i=Ut({align:t,cellOffset:l.y,cellSize:l.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,s=e.y,a=this.props,l=a.cellGroupRenderer,c=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),l({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(s.PureComponent);Ze(jt,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),s={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(s)),t[e]):o(s)})).filter((function(e){return!!e}))}}),jt.propTypes={};(function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o)))._registerChild=n._registerChild.bind(Ae(n)),n}return Be(t,e),We(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,s=n||1,a=o?Math.min(o,i):i,l=i/r;return l=Math.max(s,l),l=Math.min(a,l),l=Math.floor(l),t({adjustedWidth:Math.min(i,l*r),columnWidth:l,getColumnWidth:function(){return l},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(s.PureComponent)).propTypes={};function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function $t(e,t){if(e){if("string"==typeof e)return Vt(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Vt(e,t):void 0}}function Yt(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$t(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.")}()}var qt=function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o)))._loadMoreRowsMemoizer=Je(),n._onRowsRendered=n._onRowsRendered.bind(Ae(n)),n._registerChild=n._registerChild.bind(Ae(n)),n}return Be(t,e),We(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Je(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var n=o(e);n&&n.then((function(){var o,n,r,i,s;o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},n=o.lastRenderedStartIndex,r=o.lastRenderedStopIndex,i=o.startIndex,s=o.stopIndex,i>r||s<n||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,n=this,r=this.props,i=r.isRowLoaded,s=r.minimumBatchSize,a=r.rowCount,l=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],a=null,l=null,c=r;c<=i;c++){t({index:c})?null!==l&&(s.push({startIndex:a,stopIndex:l}),a=l=null):(l=c,null===a&&(a=c))}if(null!==l){for(var h=Math.min(Math.max(l,a+o-1),n-1),d=l+1;d<=h&&!t({index:d});d++)l=d;s.push({startIndex:a,stopIndex:l})}if(s.length)for(var u=s[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var p=u.startIndex-1;if(t({index:p}))break;u.startIndex=p}return s}({isRowLoaded:i,minimumBatchSize:s,rowCount:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(a-1,t+l)}),h=(o=[]).concat.apply(o,Yt(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(s.PureComponent);Ze(qt,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),qt.propTypes={};var Kt,Xt,Qt=(Xt=Kt=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),Ze(Ae(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,a=e.key,l=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),l({index:n,style:r,isScrolling:i,isVisible:s,key:a,parent:t})})),Ze(Ae(o),"_setRef",(function(e){o.Grid=e})),Ze(Ae(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ze(Ae(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ze(Ae(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return Be(t,e),We(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,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,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,o=e.noRowsRenderer,n=e.scrollToIndex,r=e.width,i=$e("ReactVirtualized__List",t);return s.createElement(Ct,je({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(s.PureComponent),Ze(Kt,"propTypes",null),Xt);function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||$t(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.")}()}Ze(Qt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:St,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const eo={ge:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>=0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},gt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},lt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},le:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<=0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<=n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},eq:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(;t<=o;){var i=t+o>>>1,s=r(e[i],n);if(0===s)return i;s<=0?t=i+1:o=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(;t<=o;){var r=t+o>>>1,i=e[r];if(i===n)return r;i<=n?t=r+1:o=r-1}return-1}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)}};function to(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var oo=to.prototype;function no(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function ro(e,t){var o=fo(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function io(e,t){var o=e.intervals([]);o.push(t),ro(e,o)}function so(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?0:(o.splice(n,1),ro(e,o),1)}function ao(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function lo(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function co(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function ho(e,t){return e-t}function uo(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function po(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function fo(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(ho);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var a=e[o];a[1]<n?r.push(a):n<a[0]?i.push(a):s.push(a)}var l=s,c=s.slice();return l.sort(uo),c.sort(po),new to(n,fo(r),fo(i),l,c)}function mo(e){this.root=e}oo.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},oo.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?io(this,e):this.left.insert(e):this.left=fo([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?io(this,e):this.right.insert(e):this.right=fo([e]);else{var o=eo.ge(this.leftPoints,e,uo),n=eo.ge(this.rightPoints,e,po);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},oo.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?so(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?so(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}no(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?no(this,this.left):no(this,this.right);return 1}for(r=eo.ge(this.leftPoints,e,uo);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=eo.ge(this.rightPoints,e,po);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},oo.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return ao(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return lo(this.rightPoints,e,t)}return co(this.leftPoints,t)},oo.queryInterval=function(e,t,o){var n;if(e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o)))return n;if(t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o)))return n;return t<this.mid?ao(this.leftPoints,t,o):e>this.mid?lo(this.rightPoints,e,o):co(this.leftPoints,o)};var go=mo.prototype;go.insert=function(e){this.root?this.root.insert(e):this.root=new to(e[0],null,null,[e],[e])},go.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},go.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},go.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(go,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(go,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var vo,yo,Co=function(){function e(){var t;ze(this,e),Ze(this,"_columnSizeMap",{}),Ze(this,"_intervalTree",t&&0!==t.length?new mo(fo(t)):new mo(null)),Ze(this,"_leftMap",{})}return We(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Jt(e,3),r=t[0],i=(t[1],t[2]);return o(i,n._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function So(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?So(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):So(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var wo=(yo=vo=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),Ze(Ae(o),"_debounceResetIsScrollingId",void 0),Ze(Ae(o),"_invalidateOnUpdateStartIndex",null),Ze(Ae(o),"_invalidateOnUpdateStopIndex",null),Ze(Ae(o),"_positionCache",new Co),Ze(Ae(o),"_startIndex",null),Ze(Ae(o),"_startIndexMemoized",null),Ze(Ae(o),"_stopIndex",null),Ze(Ae(o),"_stopIndexMemoized",null),Ze(Ae(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),Ze(Ae(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ze(Ae(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return Be(t,e),We(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Co,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Co,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ut(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,a=o.cellRenderer,l=o.className,c=o.height,h=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,f=o.style,m=o.tabIndex,g=o.width,v=o.rowDirection,y=this.state,C=y.isScrolling,S=y.scrollTop,_=[],w=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,b=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var s;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),_.push(a({index:o,isScrolling:C,key:d(o),parent:t,style:(s={height:i.getHeight(o)},Ze(s,"ltr"===v?"left":"right",n),Ze(s,"position","absolute"),Ze(s,"top",r),Ze(s,"width",i.getWidth(o)),s)}))})),R<S+c+u&&b<r)for(var E=Math.min(r-b,Math.ceil((S+c+u-R)/i.defaultHeight*g/i.defaultWidth)),x=b;x<b+E;x++)e=x,_.push(a({index:x,isScrolling:C,key:d(x),parent:this,style:{width:i.getWidth(x)}}));return this._startIndex=T,this._stopIndex=e,s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$e("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:p,style:_o({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:w<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},s.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:w,maxWidth:"100%",maxHeight:w,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"}},_))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ut(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=pt(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var s=r(i),a=s.left,l=s.top;this._positionCache.setPosition(i,a,l,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(s.PureComponent),Ze(vo,"propTypes",null),yo);function Ro(){}Ze(wo,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Ro,onScroll:Ro,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,Ue.polyfill)(wo);var bo=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ze(this,e),Ze(this,"_cellMeasurerCache",void 0),Ze(this,"_columnIndexOffset",void 0),Ze(this,"_rowIndexOffset",void 0),Ze(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),Ze(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=a}return We(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function To(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Eo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?To(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):To(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var xo=function(e){function t(e,o){var n;ze(this,t),Ze(Ae(n=Pe(this,Le(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Ze(Ae(n),"_deferredInvalidateColumnIndex",null),Ze(Ae(n),"_deferredInvalidateRowIndex",null),Ze(Ae(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),Ze(Ae(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),Ze(Ae(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=qe(e,["rowIndex"]),r=n.props,i=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?s.createElement("div",{key:o.key,style:Eo({},o.style,{height:20})}):i(Eo({},o,{parent:Ae(n),rowIndex:t+a}))})),Ze(Ae(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=qe(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,a=i.fixedColumnCount,l=i.fixedRowCount;return s(Eo({},r,{columnIndex:t+a,parent:Ae(n),rowIndex:o+l}))})),Ze(Ae(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=qe(e,["columnIndex"]),r=n.props,i=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?s.createElement("div",{key:o.key,style:Eo({},o.style,{width:20})}):i(Eo({},o,{columnIndex:t+l,parent:Ae(n)}))})),Ze(Ae(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,a=n.state,l=a.scrollbarSize;return a.showHorizontalScrollbar&&t===r-i?l:"function"==typeof s?s({index:t+i}):s})),Ze(Ae(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)})),Ze(Ae(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,a=i.showVerticalScrollbar;if(t!==s||r!==a){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=n.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:o,vertical:r})}})),Ze(Ae(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),Ze(Ae(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),Ze(Ae(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,a=n.state,l=a.scrollbarSize;return a.showVerticalScrollbar&&t===i-r?l:"function"==typeof s?s({index:t+r}):s})),Ze(Ae(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),Ze(Ae(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var r=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),r&&(n._deferredMeasurementCacheBottomLeftGrid=a>0?new bo({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:a}):r,n._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new bo({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:a}):r,n._deferredMeasurementCacheTopRightGrid=i>0?new bo({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),n}return Be(t,e),We(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.fixedColumnCount,a=i.fixedRowCount,l=Math.max(0,o-s),c=Math.max(0,r-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=qe(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,c=a.scrollTop;return s.createElement("div",{style:this._containerOuterStyle},s.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Eo({},i,{onScroll:t,scrollLeft:l}))),s.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Eo({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Eo({},i,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:n,scrollToRow:r,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,s=t.fixedColumnCount,a=t.fixedRowCount,l=t.rowHeight,c=t.style,h=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,v=e||a!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Eo({height:i,overflow:"visible",width:f},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Eo({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Eo({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Eo({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Eo({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=i,this._lastRenderedRowHeight=l,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!o)return null;var l=a?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?h+d:h,p=s.createElement(Ct,je({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-n)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return i?s.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Eo({},this._bottomLeftGridStyle,{height:c,width:h,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return s.createElement(Ct,je({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,r-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-o,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?s.createElement(Ct,je({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,c=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!r)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;a&&(m=u+f,g=Eo({},this._topRightGridStyle,{left:0}));var v=s.createElement(Ct,je({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:g,tabIndex:null,width:p}));return a?s.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Eo({},this._topRightGridStyle,{height:u,width:p,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(s.PureComponent);Ze(xo,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),xo.propTypes={},(0,Ue.polyfill)(xo);(function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(Ae(n)),n}return Be(t,e),We(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,s=t.scrollTop,a=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:s})}}]),t}(s.PureComponent)).propTypes={};function Oo(e){var t=e.className,o=e.columns,n=e.style;return s.createElement("div",{className:t,role:"row",style:n},o)}Oo.propTypes=null;const Mo={ASC:"ASC",DESC:"DESC"};function Io(e){var t=e.sortDirection,o=$e("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Mo.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Mo.DESC});return s.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Mo.ASC?s.createElement("path",{d:"M7 14l5-5 5 5z"}):s.createElement("path",{d:"M7 10l5 5 5-5z"}),s.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Do(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,a=[s.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&a.push(s.createElement(Io,{key:"SortIndicator",sortDirection:r})),a}function No(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(i||a||l||c||h)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:n,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:n,rowData:d})}),l&&(p.onMouseOut=function(e){return l({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),h&&(p.onContextMenu=function(e){return h({event:e,index:n,rowData:d})})),s.createElement("div",je({},p,{className:t,key:r,role:"row",style:u}),o)}Io.propTypes={},Do.propTypes=null,No.propTypes=null;var zo=function(e){function t(){return ze(this,t),Pe(this,Le(t).apply(this,arguments))}return Be(t,e),t}(s.Component);function ko(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ho(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ko(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ko(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Ze(zo,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Mo.ASC,flexGrow:0,flexShrink:1,headerRenderer:Do,style:{}}),zo.propTypes={};var Go=function(e){function t(e){var o;return ze(this,t),(o=Pe(this,Le(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(Ae(o)),o._createRow=o._createRow.bind(Ae(o)),o._onScroll=o._onScroll.bind(Ae(o)),o._onSectionRendered=o._onSectionRendered.bind(Ae(o)),o._setRef=o._setRef.bind(Ae(o)),o}return Be(t,e),We(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,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,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{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:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,zt.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,n=t.className,r=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,c=t.headerRowRenderer,h=t.height,d=t.id,u=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,C=r?h:h-l,S="function"==typeof p?p({index:-1}):p,_="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],s.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Ho({overflow:"hidden"},n)})),s.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":s.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:$e("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!r&&c({className:$e("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Ho({height:l,overflow:"hidden",paddingRight:y,width:v},_)}),s.createElement(Ct,je({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:$e("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:C,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Ho({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,c=t.props,h=c.cellDataGetter,d=c.cellRenderer,u=c.className,p=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:h({columnData:p,dataKey:f,rowData:i}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:r,rowData:i,rowIndex:a}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return s.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:$e("ReactVirtualized__Table__rowColumn",u),key:"Row"+a+"-Col"+o,onClick:function(e){l&&l({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,r,i,a=e.column,l=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=a.props,v=g.columnData,y=g.dataKey,C=g.defaultSortDirection,S=g.disableSort,_=g.headerRenderer,w=g.id,R=g.label,b=!S&&p,T=$e("ReactVirtualized__Table__headerColumn",h,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),E=this._getFlexStyleForColumn(a,Ho({},d,{},a.props.headerStyle)),x=_({columnData:v,dataKey:y,disableSort:S,label:R,sortBy:f,sortDirection:m});if(b||u){var O=f!==y?C:m===Mo.DESC?Mo.ASC:Mo.DESC,M=function(e){b&&p({defaultSortDirection:C,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};i=a.props["aria-label"]||R||y,r="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(r=m===Mo.ASC?"ascending":"descending"),s.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:w,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:E,tabIndex:n},x)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,a=e.style,l=this.props,c=l.children,h=l.onRowClick,d=l.onRowDoubleClick,u=l.onRowRightClick,p=l.onRowMouseOver,f=l.onRowMouseOut,m=l.rowClassName,g=l.rowGetter,v=l.rowRenderer,y=l.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,_="function"==typeof y?y({index:o}):y,w=g({index:o}),R=s.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:w,rowIndex:o,scrollbarWidth:C})})),b=$e("ReactVirtualized__Table__row",S),T=Ho({},a,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:C},_);return v({className:b,columns:R,index:o,isScrolling:n,key:r,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Ho({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:s.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(s.PureComponent);Ze(Go,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:St,overscanRowCount:10,rowRenderer:No,headerRowRenderer:Oo,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Go.propTypes={};var Wo=[],Ao=null,Po=null;function Lo(){Po&&(Po=null,document.body&&null!=Ao&&(document.body.style.pointerEvents=Ao),Ao=null)}function Fo(){Lo(),Wo.forEach((function(e){return e.__resetIsScrolling()}))}function Bo(e){e.currentTarget===window&&null==Ao&&document.body&&(Ao=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Po&&ut(Po);var e=0;Wo.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Po=pt(Fo,e)}(),Wo.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Zo(e,t){Wo.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Bo),Wo.push(e)}function Uo(e,t){(Wo=Wo.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Bo),Po&&(ut(Po),Lo()))}var jo,Vo,$o=function(e){return e===window},Yo=function(e){return e.getBoundingClientRect()};function qo(e,t){if(e){if($o(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return Yo(e)}return{height:t.serverHeight,width:t.serverWidth}}function Ko(e){return $o(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Xo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var Qo=function(){return"undefined"!=typeof window?window:void 0},Jo=(Vo=jo=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(Ae(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"_window",Qo()),Ze(Ae(o),"_isMounted",!1),Ze(Ae(o),"_positionFromTop",0),Ze(Ae(o),"_positionFromLeft",0),Ze(Ae(o),"_detectElementResize",void 0),Ze(Ae(o),"_child",void 0),Ze(Ae(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Xo(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Xo(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},qo(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),Ze(Ae(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),Ze(Ae(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),Ze(Ae(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),Ze(Ae(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),Ze(Ae(o),"_onResize",(function(){o.updatePosition()})),Ze(Ae(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=Ko(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),Ze(Ae(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return Be(t,e),We(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,n=o.height,r=o.width,i=this._child||zt.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if($o(t)&&document.documentElement){var o=document.documentElement,n=Yo(e),r=Yo(o);return{top:n.top-r.top,left:n.left-r.left}}var i=Ko(t),s=Yo(e),a=Yo(t);return{top:s.top+i.top-a.top,left:s.left+i.left-a.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var a=qo(e,this.props);n===a.height&&r===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Tt(),this.updatePosition(e),e&&(Zo(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),Uo(this,n),Zo(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Uo(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:s})}}]),t}(s.PureComponent),Ze(jo,"propTypes",null),Vo);Ze(Jo,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Qo(),serverHeight:0,serverWidth:0});var en,tn=(en=function(e,t){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},en(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}en(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),on=function(){return on=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},on.apply(this,arguments)},nn={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return tn(t,e),t.prototype.render=function(){return s.createElement("div",{className:this.props.className||"",style:on(on({position:"absolute",userSelect:"none"},nn[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(s.PureComponent),sn=o(3316),an=o.n(sn),ln=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),cn=function(){return cn=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cn.apply(this,arguments)},hn={width:"auto",height:"auto"},dn=an()((function(e,t,o){return Math.max(Math.min(e,o),t)})),un=an()((function(e,t){return Math.round(e/t)*t})),pn=an()((function(e,t){return new RegExp(e,"i").test(t)})),fn=function(e){return Boolean(e.touches&&e.touches.length)},mn=an()((function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,r){return Math.abs(n-e)<Math.abs(t[o]-e)?r:o}),0),r=Math.abs(t[n]-e);return 0===o||r<o?t[n]:e})),gn=an()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),vn=an()((function(e){return"auto"===(e=e.toString())||gn(e,"px")||gn(e,"%")||gn(e,"vh")||gn(e,"vw")||gn(e,"vmax")||gn(e,"vmin")?e:e+"px"})),yn=function(e,t,o,n){if(e&&"string"==typeof e){if(gn(e,"px"))return Number(e.replace("px",""));if(gn(e,"%"))return t*(Number(e.replace("%",""))/100);if(gn(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(gn(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Cn=an()((function(e,t,o,n,r,i,s){return n=yn(n,e.width,t,o),r=yn(r,e.height,t,o),i=yn(i,e.width,t,o),s=yn(s,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}})),Sn=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],_n="__resizable_base__",wn=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(_n):t.className+=_n,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return ln(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||hn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&gn(e.propsSize[t].toString(),"%")){if(gn(e.state[t].toString(),"%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return vn(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?vn(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?vn(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==o&&"auto"!==o?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,r=this.props.boundsByDirection,i=this.state.direction,s=r&&pn("left",i),a=r&&pn("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(o=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),n=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,r=this.state,i=r.direction,s=r.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,h=a.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return pn("right",i)&&(d=s.width+(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),pn("left",i)&&(d=s.width-(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),pn("bottom",i)&&(u=s.height+(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),pn("top",i)&&(u=s.height-(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var r=this.props,i=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,l=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,h=void 0===n.height?10:n.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=a||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(l-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(l,f),C=Math.min(c,m),S=Math.max(h,g),_=Math.min(d,v);e=dn(e,y,C),t=dn(t,S,_)}else e=dn(e,l,c),t=dn(t,h,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),r=n.left,i=n.top,s=n.right,a=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&fn(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:cn(cn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&fn(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,o=t.maxWidth,n=t.maxHeight,r=t.minWidth,i=t.minHeight,s=fn(e)?e.touches[0].clientX:e.clientX,a=fn(e)?e.touches[0].clientY:e.clientY,l=this.state,c=l.direction,h=l.original,d=l.width,u=l.height,p=this.getParentSize(),f=Cn(p,this.window.innerWidth,this.window.innerHeight,o,n,r,i);o=f.maxWidth,n=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(s,a),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),C=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=C.newWidth,g=C.newHeight,this.props.grid){var S=un(v,this.props.grid[0]),_=un(g,this.props.grid[1]),w=this.props.snapGap||0;v=0===w||Math.abs(S-v)<=w?S:v,g=0===w||Math.abs(_-g)<=w?_:g}this.props.snap&&this.props.snap.x&&(v=mn(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=mn(g,this.props.snap.y,this.props.snapGap));var R={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(gn(d,"%"))v=v/p.width*100+"%";else if(gn(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(gn(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(gn(u,"%"))g=g/p.height*100+"%";else if(gn(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(gn(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var b={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?b.flexBasis=b.width:"column"===this.flexDir&&(b.flexBasis=b.height),this.setState(b),this.props.onResize&&this.props.onResize(e,c,this.resizable,R)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,r=t.original;if(o&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:cn(cn({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,n=t.handleStyles,r=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?s.createElement(rn,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:r&&r[t]},l&&l[t]?l[t]:null):null}));return s.createElement("div",{className:a,style:i},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Sn.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=cn(cn(cn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return s.createElement(n,cn({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&s.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(s.PureComponent);const Rn="bottom",bn="left",Tn="right",En="top",xn={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},On={min:0,max:1/0},Mn=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:P(e,t.min,t.max),width:P(o,n.min,n.max)}),In=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...Mn({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===bn||n===Tn,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===En||n===Rn});class Dn extends a().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:On,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:On};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=In(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=In(e);this.setState(s);const{height:a,width:l}=s,c=i||t;!c||a===o&&l===r||c({height:a,width:l,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:a,vertical:l,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>Mn({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=a&&d!==c,p=l&&h!==s;(u||p)&&(this.setState({height:p?h:s,width:u?d:c,isMouseWheeling:!1}),i&&i({height:p?h:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:o,horizontal:n,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?o:void 0,width:n?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:n,width:r,initialWidth:i,initialHeight:s}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&s===t||e&&e({width:o?r:void 0,height:n?t:void 0})};_onWheel=()=>{this.isMouseWheeling||(this.isMouseWheeling=!0,this.setState({isMouseWheeling:!0})),clearTimeout(this.onWheelTimeOut),this.onWheelTimeOut=setTimeout((()=>{this.isMouseWheeling=!1,this.setState({isMouseWheeling:!1})}),50)};render(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:s,style:l,translate:c,heightConstraints:h,wrapChildrenInDivContainer:d,widthConstraints:u}=this.props,{enable:p,height:f,horizontal:m,resizing:g,vertical:v,width:y,isMouseWheeling:C}=this.state,{display:S,..._}=l,{min:w,max:R}=u,{min:b,max:T}=h,E={...this.props.wrapperStyle};m&&(E.width=y,E.minWidth=y),v&&(E.height=f,E.minHeight=f);const x=i()("resizable",t,{resizing:g}),O=i()("contents",n,`resize-edge-${r}`,{horizontal:m,vertical:v}),M=i()(r,s,"resizable-handle",{horizontal:m,vertical:v}),I=a().createElement("span",{title:c("ResizePanel")});return a().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...E,display:S}},a().createElement(wn,{className:x,"data-testid":"resizable-core",enable:{...xn,[r]:!C&&p},handleClasses:{[r]:M},handleComponent:{[r]:I},handleStyles:o,maxHeight:v?T:void 0,maxWidth:m?R:void 0,minHeight:v?b:void 0,minWidth:m?w:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:v?f:"100%",width:m?y:"100%"},style:_},d?a().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}class Nn extends a().PureComponent{horizontalScrollRef=a().createRef();verticalScrollRef=a().createRef();outerHorizontalScrollRef=a().createRef();updateScrollbarValues(e,t){this.horizontalScrollRef?.current&&(this.horizontalScrollRef.current.scrollLeft=e||0),this.verticalScrollRef?.current&&(this.verticalScrollRef.current.scrollTop=t||0)}componentDidUpdate(e){const{scrollLeft:t,scrollTop:o}=this.props;e.scrollLeft===t&&e.scrollTop===o||this.updateScrollbarValues(t,o)}onHorizontalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:e.target.clientWidth,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:e.target.scrollLeft,scrollTop:this.props.scrollTop||0,scrollWidth:e.target.scrollWidth})}onVerticalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:e.target.clientHeight,clientWidth:this.props.width||0,scrollHeight:e.target.scrollHeight,scrollLeft:this.props.scrollLeft||0,scrollTop:e.target.scrollTop,scrollWidth:this.props.contentWidth||0})}componentDidMount(){this.updateScrollbarValues(this.props.scrollLeft,this.props.scrollTop)}hasHorizontalScroll(){const{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:n}=this.props;return o||t&&n<e}hasVerticalScroll(){const{displayVerticalScrollbar:e,forceVerticalScrollbar:t,height:o}=this.props;return t||e&&o<this.getAdjustedContentHeight()}getHorizontalScrollbarTickness(){return parseInt(this.outerHorizontalScrollRef.current?.clientHeight,10)||0}getAdjustedContentHeight(){return this.props.contentHeight+this.getHorizontalScrollbarTickness()}render(){const{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:n,forceVerticalScrollbar:r,height:i,width:s}=this.props,l=this.hasVerticalScroll(),c=this.hasHorizontalScroll(),h=c&&a().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${i}px - var(--scrollable-scrollbar-thickness))`,width:s}},a().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:n?"scroll":"auto",width:l?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},a().createElement("div",{style:{height:"1px",width:o}}))),d=l&&a().createElement("div",{className:"scrollbar-outer vertical",style:{height:i}},a().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:r?"scroll":"auto",height:c?`calc(${i}px - var(--scrollable-scrollbar-thickness))`:i}},a().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return a().createElement("div",{className:"scrollbar-container"},a().createElement("div",{className:"scrollable-content"},e),h,d)}}var zn=Nn;function kn(e,t,o){const n=t*m.$0,{shape:r}=m.Qh[e],i=m.d_[r];if(!i)return{height:0,offset:0};const{baseHeight:s,minHeight:a,maxHeight:l}=i;let c=s*(o/n);void 0!==a&&c<a&&(c=a),void 0!==l&&c>l&&(c=l);const h=m.$0*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function Hn(e,t,o){const n=o*m.$0;return e*m.$0/n*t}class Gn extends a().PureComponent{canvas;componentDidMount(){this.updateCanvas()}componentWillReceiveProps(e){e.branchUpstreamRowIndices===this.props.branchUpstreamRowIndices&&e.markerRowIndices===this.props.markerRowIndices&&e.totalRows===this.props.totalRows&&e.viewportHeight===this.props.viewportHeight&&e.viewportWidth===this.props.viewportWidth&&e.markerColors===this.props.markerColors&&e.enabledScrollMarkerTypes===this.props.enabledScrollMarkerTypes&&e.scrollWidth===this.props.scrollWidth||this.updateCanvas()}updateCanvas(e){const{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:n,markerRowIndices:r,markerColors:i,scrollWidth:s,totalRows:a}=e||this.props,l=this.canvas.getContext("2d");l.canvas.width=s,l.canvas.height=n;const c=s/m.dF;l.clearRect(0,0,l.canvas.width,l.canvas.height);for(const[e,s]of Object.entries(m.Qh)){if(!(o.includes(e)||"remoteBranches"===e&&o.includes("localBranches")))continue;const h="remoteBranches"!==e||o.includes("remoteBranches")?r[e]||[]:t,d=i[e],u=s.lanes;d&&h.length&&(l.fillStyle=d,h.forEach((t=>{const{height:o,offset:r}=kn(e,a,n);u.length&&l.fillRect(u[0]*c,Hn(t,n,a)+r-.5*o,c*u.length,o)})))}}render(){return a().createElement("canvas",{className:"graph-scroll-markers",ref:e=>this.canvas=e})}}var Wn=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:i,style:s}){const l=m.qi[r].listId,c=document.getElementById(l),h=c?.scrollHeight||0;let d=o-28;void 0!==i&&(d=Number(s.top)-i,c&&h-o-i<0&&(d=o-n-28));const u={top:d,zIndex:2},p=a().createElement("span",{className:"absolute",style:u},e);return a().createElement("div",{className:t,style:s},c?kt().createPortal(p,document.getElementById("graph-container")):p)};function An({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=i()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=i()("spinner","mr1",{"inline-block":e}),c={height:n,width:n},h=i()("message",{"inline-block":e,mx2:e}),d=r?a().createElement("span",{className:l,style:c},t("loading")):a().createElement("div",{className:l,style:c},a().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:c}),a().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:c}),a().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:c}));return a().createElement("div",{className:s},d,o&&a().createElement("div",{className:h},o))}class Pn extends a().Component{render(){const{currentCommits:e,graphZoneType:t,hasMoreCommits:o,height:n,horizontalScrollHeight:r,getExternalIcon:i,isLoadingRows:s,scrollTop:l,style:c,translate:h}=this.props,d=a().createElement(An,{className:"loading-spinner",getExternalIcon:i,size:20,useSimpleSpinner:!0}),u=0!==(e>0?e:0)||o?null:a().createElement(a().Fragment,null,h("Graph-NoCommits")),p=a().createElement("div",{className:"graph-adjust-commit-count p1"},s?a().createElement("div",{className:"flex items-center"},a().createElement("span",{style:{paddingRight:"5px"}},d)):u);return a().createElement(Wn,{graphZoneType:t,height:n,heightAdjustment:r,scrollTop:l,style:c},p)}}var Ln=Pn;function Fn({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:n,enabledScrollMarkerTypes:r,enableResizer:s,getExternalIcon:l,getKeyForCell:c,graphHeight:h,graphWidth:d,graphZoneType:u,graphZones:p,hasMoreCommits:f,horizontalScrollHeight:g,isLoadingRows:v,markerColors:y,markerRowIndices:C,onResize:S,onResizeEnd:_,onResizeFromPropChange:w,onScroll:R,onScrollToRowCausedUpdate:b,onZoneEnter:T,scrollLeft:E,scrollToAlignment:x,scrollToIndex:O,scrollTop:M,smartCellRangeRenderer:I,translate:D,verticalScrollWidth:N}){const z=ie(u,p);if(!z)return null;const k=X(u,p),H=Q(t,f,v),G=J(t,f,v),W=te(z,t),A=ee(t,f,v),P=N>0,L=r.length>0,F=i()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",u===m.jZ?"z3":null,{"pad-for-vertical-scrollbar":P}),B=u===m.Wm?{...!k&&{position:"static"},...k&&{width:z.currentWidth>W?z.currentWidth:W,maxWidth:"none"}}:void 0,Z=e=>R(u,e,d,h,f),U=(e,r,i,s,p,y,C,S)=>a().createElement(Ct,{autoContainerWidth:!0,cellRangeRenderer:I,cellRenderer:r=>((e,r)=>{if(r.rowIndex>t-1)return H&&0===n?a().createElement(Ln,{currentCommits:t-1,getExternalIcon:l,graphZoneType:u,hasMoreCommits:f,height:h,horizontalScrollHeight:g,isLoadingRows:v,key:c(r.rowIndex),scrollTop:M,style:r.style,translate:D}):void 0;const i={...r,style:{...r.style}};if(m.Gn===e){i.style.top=Number(r.style.top)-M;const e=document.getElementById(z.listId);e&&Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)<1&&(i.style.top=Number(r.style.top)-e?.scrollTop||M)}const s=o[e];return s?s(i):void 0})(e,r),className:i,columnCount:1,columnWidth:S,containerStyle:s,height:C,id:r,isScrolling:!1,key:r,onScroll:Z,onScrollToTargetCausedUpdate:b?e=>b(u,e,d,h,f):void 0,overscanRowCount:0,rowCount:G,rowHeight:m.$0,scrollLeft:E,scrollToAlignment:x,scrollTop:M,scrollToRow:O,style:p,tabIndex:null,width:y}),j=U(z.type,z.listId,F,B,{position:"absolute"},z.currentWidth,h,W),V=j&&a().createElement(a().Fragment,null,L&&k?a().createElement(Gn,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:r,markerColors:y,markerRowIndices:C,scrollWidth:N,totalRows:G,viewportHeight:h<A?h:A,viewportWidth:z.currentWidth}):null,a().createElement(zn,{contentHeight:A,contentWidth:W,displayHorizontalScrollbar:z.type===m.Wm,displayVerticalScrollbar:k,forceVerticalScrollbar:k&&L,height:h,onScroll:e=>Z(e),scrollLeft:E,scrollTop:M,width:z.currentWidth},j)),$=k?U(m.Gn,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:A},{position:"absolute",right:0,zIndex:3,maxHeight:h},1,h,1):void 0,Y=a().createElement("div",{onMouseEnter:T},V,$);return k?Y:a().createElement(Dn,{enable:s,height:h,id:`${u}Column`,key:`${u}Column`,onResize:S?e=>S(z,e):void 0,onResizeEnd:_?e=>_(z,e):void 0,onResizeFromPropChange:w?e=>w(z,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:z.currentWidth,widthConstraints:ae(u,p,d)},Y)}var Bn=o(977),Zn=o.n(Bn);const Un="dnd-container";class jn extends a().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,n)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),o=n?.id?this.sanitizeId(n.id):null,r=this.childReactElementsById[t],i=o?this.childReactElementsById[o]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>Boolean(e?.classList.contains(Un));movesCallback=e=>Boolean(e?.id)&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>Boolean(e?.id)&&this.isDroppable(e.id,n?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){const t={isContainer:this.isContainerCallback,mirrorContainer:this.props.mirrorContainer,moves:this.movesCallback,accepts:this.acceptsCallback,invalid:this.invalidCallBack,direction:this.props.direction||"horizontal",copy:!1,copySortSource:!1,revertOnSpill:!1,removeOnSpill:!1,ignoreInputTextSelection:!0};this.dndDrake=Zn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{a().isValidElement(e)&&this.addChildReactElement(e)})):a().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){const t=e.props.id;t&&(this.childReactElementsById[this.sanitizeId(t)]=e)}sanitizeId(e){return e.trim().toLowerCase().replace(/-/g,"").replace(/_/g,"")}isDraggable(e){if(this.props.isDraggable){const t=this.sanitizeId(e),o=this.childReactElementsById[t];return Boolean(o)&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){const o=this.sanitizeId(e),n=t?this.sanitizeId(t):null,r=this.childReactElementsById[o],i=n?this.childReactElementsById[n]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,o=i()(Un,t);return a().createElement("div",{className:o,ref:this.dndDecorator},e)}}var Vn=jn,$n=o(8613);function Yn(e,t){if(null==e)return{};var o,n,r={},i=$n(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var qn=o(5627),Kn=o(433);function Xn(e,t){return Xn=Kn?Kn.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}function Qn(e,t){e.prototype=qn(t.prototype),e.prototype.constructor=e,Xn(e,t)}var Jn=o(6981);function er(){return er=Jn?Jn.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},er.apply(this,arguments)}var tr,or=o(5697),nr=o.n(or),rr=o(2856),ir=o.n(rr),sr=o(8853),ar=o.n(sr),lr=o(644),cr={in:nr().bool,mountOnEnter:nr().bool,unmountOnExit:nr().bool,appear:nr().bool,timeout:nr().number,onEnter:nr().func,onEntering:nr().func,onEntered:nr().func,onExit:nr().func,onExiting:nr().func,onExited:nr().func},hr=((tr={})[lr.d0]="in",tr[lr.cn]="in",tr),dr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Yn(e,["className","children"]);return a().createElement(lr.ZP,n,(function(e,n){return a().cloneElement(o,er({},n,{className:i()("fade",t,o.props.className,hr[e])}))}))},t}(a().Component);dr.propTypes=cr,dr.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const ur=dr;var pr=er({},ir().propTypes,{show:nr().bool,rootClose:nr().bool,onHide:nr().func,animation:nr().oneOfType([nr().bool,ar()]),onEnter:nr().func,onEntering:nr().func,onEntered:nr().func,onExit:nr().func,onExiting:nr().func,onExited:nr().func,placement:nr().oneOf(["top","right","bottom","left"])}),fr={animation:ur,rootClose:!1,show:!1,placement:"right"},mr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,r=Yn(t,["animation","children"]),l=!0===o?ur:o||null;return e=l?n:(0,s.cloneElement)(n,{className:i()(n.props.className,"in")}),a().createElement(ir(),er({},r,{transition:l}),e)},t}(a().Component);mr.propTypes=pr,mr.defaultProps=fr;const gr=mr;var vr=o(5638),yr=o.n(vr),Cr=o(3562),Sr=o.n(Cr),_r=o(1143),wr=o.n(_r),Rr="large",br="small",Tr={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function Er(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return"function"==typeof o[o.length-1]?e.apply(void 0,o):function(t){return e.apply(void 0,o.concat([t]))}}}function xr(e,t){var o=(e.bsClass||"").trim();return null==o&&wr()(!1),o+(t?"-"+t:"")}var Or=Er((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=nr().string,n.bsClass=e,t})),Mr=(Er((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.STYLES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=nr().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=er({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),Er((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.SIZES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=[];n.forEach((function(e){var t=Tr[e];t&&t!==e&&i.push(t),i.push(e)}));var s=nr().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=er({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o})));function Ir(e){var t,o=((t={})[xr(e)]=!0,t);e.bsSize&&(o[xr(e,Tr[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[xr(e,e.bsStyle)]=!0),o}function Dr(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function Nr(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function zr(e){var t={};return Sr()(e).forEach((function(e){var o=e[0],n=e[1];Nr(o)||(t[o]=n)})),[Dr(e),t]}var kr={id:yr()(nr().oneOfType([nr().string,nr().number])),placement:nr().oneOf(["top","right","bottom","left"]),positionTop:nr().oneOfType([nr().number,nr().string]),positionLeft:nr().oneOfType([nr().number,nr().string]),arrowOffsetTop:nr().oneOfType([nr().number,nr().string]),arrowOffsetLeft:nr().oneOfType([nr().number,nr().string]),title:nr().node},Hr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.title,h=t.className,d=t.style,u=t.children,p=zr(Yn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),f=p[0],m=p[1],g=er({},Ir(f),((e={})[o]=!0,e)),v=er({display:"block",top:n,left:r},d),y={top:s,left:l};return a().createElement("div",er({},m,{role:"tooltip",className:i()(h,g),style:v}),a().createElement("div",{className:"arrow",style:y}),c&&a().createElement("h3",{className:xr(f,"title")},c),a().createElement("div",{className:xr(f,"content")},u))},t}(a().Component);Hr.propTypes=kr,Hr.defaultProps={placement:"right"};const Gr=Or("popover",Hr);function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ar=o(8149),Pr=o.n(Ar),Lr=o(1629),Fr=o.n(Lr);o(670);const Br=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.apply(this,n),t.apply(this,n)}}),null)};function Zr(e,t){return Pr()(t)?t.indexOf(e)>=0:e===t}var Ur=nr().oneOf(["click","hover","focus"]),jr=er({},gr.propTypes,{trigger:nr().oneOfType([Ur,nr().arrayOf(Ur)]),delay:nr().number,delayShow:nr().number,delayHide:nr().number,defaultOverlayShown:nr().bool,overlay:nr().node.isRequired,onBlur:nr().func,onClick:nr().func,onFocus:nr().func,onMouseOut:nr().func,onMouseOver:nr().func,target:nr().oneOf([null]),onHide:nr().oneOf([null]),show:nr().oneOf([null])}),Vr=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(Wr(Wr(n))),n.handleDelayedShow=n.handleDelayedShow.bind(Wr(Wr(n))),n.handleDelayedHide=n.handleDelayedHide.bind(Wr(Wr(n))),n.handleHide=n.handleHide.bind(Wr(Wr(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:t.defaultOverlayShown},n}Qn(t,e);var o=t.prototype;return o.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},o.componentDidUpdate=function(){this.renderOverlay()},o.componentWillUnmount=function(){kt().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},o.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout((function(){e._hoverHideDelay=null,e.hide()}),t):this.hide()}},o.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((function(){e._hoverShowDelay=null,e.show()}),t):this.show()}},o.handleHide=function(){this.hide()},o.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent[o];r&&r===n||Fr()(n,r)||e(t)},o.handleToggle=function(){this.state.show?this.hide():this.show()},o.hide=function(){this.setState({show:!1})},o.makeOverlay=function(e,t){return a().createElement(gr,er({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){kt().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,r=e.onBlur,i=e.onClick,l=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Yn(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=a().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=Br(p.onClick,i),Zr("click",t)&&(f.onClick=Br(f.onClick,this.handleToggle)),Zr("hover",t)&&(f.onMouseOver=Br(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=Br(p.onMouseOut,c,this.handleMouseOut)),Zr("focus",t)&&(f.onFocus=Br(p.onFocus,l,this.handleDelayedShow),f.onBlur=Br(p.onBlur,r,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,s.cloneElement)(u,f)},t}(a().Component);Vr.propTypes=jr,Vr.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const $r=Vr;var Yr={id:yr()(nr().oneOfType([nr().string,nr().number])),placement:nr().oneOf(["top","right","bottom","left"]),positionTop:nr().oneOfType([nr().number,nr().string]),positionLeft:nr().oneOfType([nr().number,nr().string]),arrowOffsetTop:nr().oneOfType([nr().number,nr().string]),arrowOffsetLeft:nr().oneOfType([nr().number,nr().string])},qr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.className,h=t.style,d=t.children,u=zr(Yn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),p=u[0],f=u[1],m=er({},Ir(p),((e={})[o]=!0,e)),g=er({top:n,left:r},h),v={top:s,left:l};return a().createElement("div",er({},f,{role:"tooltip",className:i()(c,m),style:g}),a().createElement("div",{className:xr(p,"arrow"),style:v}),a().createElement("div",{className:xr(p,"inner")},d))},t}(a().Component);qr.propTypes=Yr,qr.defaultProps={placement:"right"};const Kr=Or("tooltip",qr);var Xr=o(7334);var Qr=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:i,width:s}){const l={...o,background:`url(${i}) 0% 0% / ${r}px no-repeat`,height:n||r,width:s||r},c=["avatar","content-box",...e].join(" ").trim();return a().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Z(t),style:l})};const Jr=(e,t,o)=>e?((e,t)=>a().createElement("span",{className:"ref-avatar mr1"},a().createElement(Qr,{context:t,size:14,url:e})))(e,o):t;function ei({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?a().createElement($r,{delayShow:400,overlay:a().createElement(Kr,{className:i()("gk-graph","bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):a().createElement(a().Fragment,null," ",e," ")}function ti({hostingServiceType:e,icon:t,id:o,title:n}){return a().createElement(ei,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n&&""!==n.trim()?`#${o}: ${n}\nDouble-click to open pull request on ${(0,Xr.y)(e)}`:""})}function oi({icon:e,type:t,upstream:o,tooltipText:n}){return a().createElement(ei,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function ni({avatarUrl:e,context:t,icon:o,tooltipText:n}){return a().createElement(ei,{icon:Jr(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var ri=o(9915);var ii=function({name:e}){return a().createElement("span",{className:"ref-name truncate",style:{height:m.pj}},e)};function si(e,t,o,n,r,s,l){let c;if(c=n.refType===L.V.HEAD?n.upstream?e?.[n.upstream.id]?.[F.mQ]:null:U(n,e,t,F.mQ),!c||0===c.length)return null;const h=c,d=[];for(const e of h){const{context:t,hostingServiceType:c,id:h,title:u}=e;if(l.has(h))continue;l.add(h);const p={refId:n.id,type:F.mQ,data:e},f=`pr-icon-${n.refType}-${n.name}-${h}`,m=a().createElement("span",{className:i()("mr1","ref-pull-request"),"data-vscode-context":Z(t),key:f,onClick:e=>r(e,p),onDoubleClick:e=>s(e,p)},o("pull-request"));d.push(a().createElement(ti,{hostingServiceType:c,icon:m,id:h,key:f,title:u}))}return d}function ai(e,t,o,n,r,i){const s=U(n,e,t,F.uq);if(!s||0===s.ahead&&0===s.behind)return null;const l=s,c={refId:n.id,type:F.uq,data:l},h=l.ahead>0,d=l.behind>0,u=l.context;if(h||d){const e=h?`${l.ahead>99?"99+":l.ahead}`:"",t=d?`${l.behind>99?"99+":l.behind}`:"",n=`${l.owner}/${l.name}`;let s,p;return d&&h?(s=`${t} ${l.behind>1?"commits":"commit"} behind and ${e} ${l.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to pull changes`,p="ahead-behind"):d?(s=`${t} ${l.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(s=`${e} ${l.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),a().createElement(oi,{icon:a().createElement("div",{className:"ref-upstream","data-vscode-context":Z(u),onClick:e=>r(e,c),onDoubleClick:e=>i(e,c)},d?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:s,type:p,upstream:n})}return null}function li(e,t,o,n=0){const{refType:r,name:s}=t;let l,c,h="";switch(r){case L.V.REMOTE:c=L.V.REMOTE,l=t.avatarUrl,h=`${t.owner} -> ${s} (${o("Ref-Remote")})`;break;case L.V.TAG:c=L.V.TAG,h=`${s} (${o("Ref-Tag")})`;break;case L.V.HEAD:default:c=L.V.HEAD,h=`${s} (${o("Ref-Local")})`}const d=t.context||void 0,u=a().createElement("span",{className:i()("mr1"),"data-vscode-context":Z(d)},e(c));return a().createElement(ni,{avatarUrl:l||"",context:d,icon:u,key:`ref-icon-${n}-${r}-${s}`,tooltipText:h})}function ci(e,t,o){let n,r=!1,i=!1,s=!1;for(const a of e){if(a.refType===L.V.HEAD)return o?a.contextGroup||t:a.context;a.refType===L.V.REMOTE&&("origin"===a.owner?(r=!0,n=o?a.contextGroup||t:a.context):r||"upstream"!==a.owner?r||i||(s=!0,n=o?a.contextGroup||t:a.context):(i=!0,n=o?a.contextGroup||t:a.context)),r||i||s||(n=o?a.contextGroup||t:a.context)}return n}class hi extends a().PureComponent{onContextMenu=e=>{const{onContextMenu:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClick=e=>{const{onClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};render(){const{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isGhostRef:n,getExternalIcon:r,groupIsHovered:s,isInUnsupportedRebase:l,onRefBeginDrag:c,onRefDragEnter:h,onRefDragLeave:d,onRefDrop:u,onRefCanDrag:p,onRefCanDrop:f,onRefEndDrag:g,isRefGroupIncluded:v,onMissingRefMetadata:y,refGroup:C,refGroupContext:S,refMetadata:_,onHovered:w,onHideRefClick:R,sha:b,enabledRefMetadataTypes:T,translate:E,type:x}=this.props,O=i()("ref-node-wrapper","flex"),M={minWidth:0,marginLeft:3,height:m.cZ},I=i()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&s,"is-active":t}),D=C.length?C[0].fullName||C[0].name:"",N=a().createElement(ii,{name:D}),z=[],k=[];let H=null;const G=new Set;let W;for(let e=0;e<C.length;e+=1){if(W=C[e],z.push(li(r,W,E,e)),T.includes(F.mQ)&&(W.refType===L.V.REMOTE||W.refType===L.V.HEAD&&W.upstream)){const e=si(_,y,r,W,this.onClickMetadata,this.onDoubleClickMetadata,G);e&&k.push(...e)}T.includes(F.uq)&&W.refType===L.V.HEAD&&(H=ai(_,y,r,W,this.onClickMetadata,this.onDoubleClickMetadata))}const A=[...z,...k],P=C.some((e=>e.refType===L.V.HEAD&&e.isCurrentHead)),B=!t||s&&!P?null:a().createElement(ei,{icon:a().createElement("span",{className:i()("mr1")},r("check")),tooltipId:"ref-icon-current",tooltipText:E("Ref-Current")}),U=ci(C,S),j=ci(C,S,!0),V=e&&!P&&s&&!v?a().createElement(ei,{icon:a().createElement("span",{className:i()("mr1","button"),onClick:e=>R(e,C,b)},r("hide")),tooltipId:`ref-node-toggle-visibility-btn-${D}`,tooltipText:E("Hide")}):null,$={commitType:x,isGhostRef:n,isInUnsupportedRebase:l,refGroup:C,sha:b};return a().createElement(ri.Z,{canDrag:e=>p(e),canDrop:(e,t,o)=>f(e,t,o),className:O,"data-vscode-context":Z(j),dndData:$,dndId:`DndRefNode_${C[0].id}`,onBeginDrag:(e,t)=>c(e,t),onDragEnter:(e,t,o)=>h(e,t,o),onDragLeave:(e,t,o)=>d(e,t,o),onDrop:(e,t,o)=>u(e,t,o),onEndDrag:(e,t,o)=>g(e,t,o),style:M},a().createElement("span",{className:I,"data-test-class":"ref-node-span","data-vscode-context":Z(U),onClick:this.onClick,onContextMenu:l?void 0:this.onContextMenu,onDoubleClick:l?void 0:this.onDoubleClick,onMouseEnter:e=>w(e,C,b),style:{minWidth:"100%"}},B,a().createElement("span",{className:"flex items-center"},A),N,H,a().createElement("span",{className:"flex ml-auto"},V)))}}class di extends a().Component{constructor(e){super(e),this.state={showPopoverMenu:!1,refPopoverMenuTarget:void 0}}onHiddenRefsClick=e=>{const{showPopoverMenu:t}=this.state;this.setState({showPopoverMenu:!t,refPopoverMenuTarget:t?e.target:void 0})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){return e.name<t.name?-1:e.name>t.name?1:e.name===t.name&&e.type===L.V.REMOTE?-1:0}render(){const{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:n,graphWidth:r,graphZones:s,graphZoneType:l,excludeRefsById:c,includeOnlyRefsById:h,isDraggable:d,onFilterColumnClick:u,onHover:p,onResize:f,onResizeEnd:g,onResizeFromPropChange:v,onResizeStart:y,onUnhover:C,rowsStatsLoading:S,showRemoteNamesOnRefs:_,translate:w}=this.props,{showPopoverMenu:R,refPopoverMenuTarget:b}=this.state,T=ie(l,s);if(!T)return null;const E=X(l,s);let x=null,O=null;if(l===m.jZ){const e=Object.entries(c),t=Object.values(h),r=t.length>0,s=r&&t.some((e=>e.type===L.V.TAG)),l=e.filter((e=>e[1].type===L.V.TAG&&(!r||!s)||!h[e[0]]));l.length>0&&(O=l.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,t)=>{const o=e[0],r=e[1];c[o].id=o;const i={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},s=!_&&"*"!==i.name||i.refType!==L.V.REMOTE?i.name:`${i.owner}/${i.name}`;return a().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[c[o]],!0)},li(n,i,w,t),a().createElement("span",{className:"text-ellipsis"},s))})),x=o?a().createElement("div",{className:i()("right","text-normal","button",R?"active":null)},a().createElement(ei,{icon:a().createElement("span",{onClick:this.onHiddenRefsClick},n("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:w("GraphHeader-HiddenRefs-btn")})):null)}const M=`${l}-header`,I=T.currentWidth<=T.showIconWidth,D=!I&&(e?.isFilterable||!1)?a().createElement("div",{className:i()("columns-btn columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},a().createElement(ei,{icon:a().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${l}-header-filter`,onClick:e=>u(e,l),style:{height:m.ze,marginBottom:m.wi}},n("filter")),tooltipId:"header-columns-filter",tooltipText:w("GraphHeader-Filter")})):null,N=I?a().createElement("div",{className:"columns-btn flex justify-start ml1",style:{width:T.currentWidth},title:w(T.headerLabelUntranslated)},n(function(e){switch(e){case m.Wm:return"graph";case m.jZ:return"branch";case m.KE:return"message";case m.GF:return"author";case m.PL:return"datetime";case m.av:return"commit";case m.WD:return"changes";default:return""}}(l))):a().createElement("div",null,a().createElement("span",{className:"fs-1 ml1 font-monospace text-disabled"},w(T.headerLabelUntranslated)),D),z=a().createElement(a().Fragment,null,l===m.WD&&S&&a().createElement("span",{className:"spinner"},n("loading")),x,a().createElement(gr,{container:this,onHide:R?this.onHiddenRefsClick:void 0,placement:R?"bottom":void 0,rootClose:R,show:R,target:b},a().createElement(Gr,{id:"opts-popover",style:{display:R?"block":"none"}},a().createElement("ul",null,O)))),k=a().createElement("div",{onMouseEnter:p,onMouseLeave:C},z,N),H=i()("panel-bg0","graph-header",{"is-draggable":d,"is-last-header":E});return E?a().createElement("div",{className:H,id:M,key:M,style:{minWidth:T.currentWidth-m.b4,transform:"translate3d(0, 0, 0)",zIndex:2}},k):a().createElement("div",{className:H,id:M,key:M,style:{display:"flex",minWidth:T.currentWidth,transform:"translate3d(0, 0, 0)",width:T.currentWidth,zIndex:2}},a().createElement(Dn,{className:H,enable:t,handleStyles:{right:{right:0}},height:m.ze,onResize:f?e=>f(T,e):void 0,onResizeEnd:g?e=>g(T,e):void 0,onResizeFromPropChange:v?e=>v(T,e):void 0,onResizeStart:y?e=>y(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:w,width:T.currentWidth,widthConstraints:ae(l,s,r)},k))}}const ui=di;class pi extends a().PureComponent{canDrag=!1;isDraggable=e=>this.canDrag&&e.props.isDraggable;isDroppable=(e,t)=>e.props.graphZoneType!==t?.props?.graphZoneType&&(!t||t.props.isDroppable);onDrop=(e,t)=>{this.props.onColumnReOrdered&&this.props.onColumnReOrdered(e.props.graphZoneType,t?t.props.graphZoneType:null)};onZoneHover=()=>{this.canDrag=!0};onZoneUnHover=()=>{this.canDrag=!1};render(){const{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:n,getExternalIcon:r,excludeRefsById:i,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:c,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:d,onGraphZoneResizeEnd:u,onGraphZoneResizeFromPropChange:p,onSettingsClick:f,onToggleRefNodesShown:g,graphZones:v,repoPath:y,rowsStatsLoading:C,showRemoteNamesOnRefs:S,translate:_,width:w,height:R,settingsContext:b}=this.props,T=a().createElement("div",{className:"panel-bg0",style:{height:m.ze,marginBottom:m.wi,marginLeft:-m.mu,minWidth:m.mu+m.b4}}),E=f&&a().createElement("div",{className:"columns-settings","data-vscode-context":Z(b)},a().createElement(ei,{icon:a().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>f(e,w)},r("settings")),tooltipId:"header-columns-settings",tooltipText:_("GraphHeader-EditColumns")}));return a().createElement("div",{className:"graph-header flex","data-vscode-context":Z(s),onContextMenu:h?e=>h(e,w):void 0,style:{height:m.ze,marginBottom:m.wi}},T,E,a().createElement(Vn,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},v.map((t=>a().createElement(ui,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:n,excludeRefsById:i,getExternalIcon:r,graphHeight:R,graphWidth:w,graphZones:v,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:c,onHover:this.onZoneHover,onResize:d,onResizeEnd:u,onResizeFromPropChange:p,onToggleRefNodesShown:g,onUnhover:this.onZoneUnHover,repoPath:y,rowsStatsLoading:C,showRemoteNamesOnRefs:S,translate:_})))))}}var fi=pi;function mi(e){const{constraints:{max:t,min:o},stats:{files:n,additions:r,deletions:s},getExternalIcon:l,isLastColumn:c,isRowSelected:h,verticalScrollWidth:d,zoneWidth:u}=e,p=r+s,f=Math.max(o,Math.min(t,p));let g=c?d+m.SZ:m.SZ;p<=f&&(g+=m.SZ);const v=Math.max(m.QW,f/t*(u-52-g)),y=r/p*v,C=s/p*v;return a().createElement("div",{className:i()("changes-zone",h?"selected":null)},a().createElement("span",{className:"changes-files",style:{width:52}},a().createElement("span",{className:"mr1"},l("files")),a().createElement("span",{className:"mr1"},n>999?"999+":n)),a().createElement("span",{className:"changes-bar",style:{width:v}},r?a().createElement("div",{className:"changes-sub-bar added",style:{width:y}}):null,s?a().createElement("div",{className:"changes-sub-bar deleted",style:{width:C}}):null))}const gi=i()("absolute","top-0","right-0","bottom-0","left-0","time-line"),vi=i()(gi,"z2");var yi=function({z2:e}){return a().createElement("div",{className:e?vi:gi,style:{height:2}})};const Ci=a().createElement("div",{className:"color-strip height-100",style:{width:2}}),Si={};const _i={};class wi extends a().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:c,hasAvatars:h,highlightRowsOnRefHover:d,isDimmedMergeCommitRow:u,isHighlighted:p,isHovering:f,isLastColumn:g,isInUnsupportedRebase:v,isMissingHoveredRefGroup:y,isSelected:C,numGraphColumns:S,onContextMenu:_,onClickCommit:w,onDoubleClickCommit:R,rowContext:b,sha:T,showColorStrip:E,showConflictIcon:x,showTimeline:O,setAsCurrentlyHoveredGraphCommit:M,style:I,title:D,type:N,verticalScrollWidth:z,zoneWidth:k}=this.props,H=function(e,t){const o=e+t.toString();let n=Si[o];return n||(n=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),Si[o]=n,n)}(N,f),G=function(e,t,o,n,r,s=!1,a=!1,l=!1,c=!1){const h=`${e}${t}${n}${o}${s}${a}${l}${c}${r}`;let d=_i[h];return d||(d=i()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":c&&!o||s&&(a||l)}),_i[h]=d,d)}(N,o,p,C,S,y,d,s,u),W=O?a().createElement(yi,null):null;return a().createElement("div",{className:H,"data-vscode-context":Z(b),onContextMenu:v?void 0:e=>_(e,c,T),onDoubleClick:e=>R(e,c,T),onMouseDown:e=>w(e,c,T),onMouseEnter:e=>M(e,c,T,r),onMouseLeave:t=>e(t,c,T,r),style:I},W,a().createElement("div",{className:G,"data-vscode-context":Z(n)},E?Ci:null,x?a().createElement("span",{className:i()("ml2")},l("warning")):null,a().createElement("span",{className:i()("graph-zone","width-100","flex-1"),style:{lineHeight:`${m.cZ}px`,...g&&{width:k-z},...h&&{marginLeft:5}},title:D},t)))}}var Ri=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,rowsStats:y,setAsCurrentlyHoveredGraphCommit:C}=e,S=new ge(e);return({rowIndex:e,style:_})=>{const w=t(e),R=o[e],{sha:b,type:T,contexts:E}=R,x=E?.stats||void 0,O=E?.row||void 0,M=y?.[b];let I=[M?.files?`${M.files} files changed`:"",M?.additions?`${M.additions} lines added`:"",M?.deletions?`${M.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==f.ch?I:"";const D=m.WD,N=S.isColumnFollowingGraphColumn(D),z=S.isLastColumn(D),k=S.getZoneWidth(D),H=S.getVerticalScrollWidth(D);return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:c,column:R.column,context:x,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:D,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===f.lH&&d,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:s,isLastColumn:z,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:w,numGraphColumns:l,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:O,setAsCurrentlyHoveredGraphCommit:C,sha:b,showColorStrip:N,showTimeline:S.hasTimeline(e),style:_,title:I,type:T,verticalScrollWidth:H,zoneWidth:k},M&&T!==f.ch?a().createElement(mi,{constraints:n,getExternalIcon:r,isLastColumn:z,isRowSelected:S.isSelected(e),stats:M,verticalScrollWidth:H,zoneWidth:k}):null)}};function bi(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function Ti(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}class Ei extends a().Component{overlayTriggerRef;constructor(e){super(e),this.state={tooltipText:""}}componentDidUpdate(e,t){this.overlayTriggerRef&&this.state.tooltipText!==t.tooltipText&&this.overlayTriggerRef.show()}getMaybeDefaultAvatar=(e,t,o)=>{const{authorInitials:n,classes:r,column:i,context:s,cssVariables:l,divStyle:c,fontSize:h,minWidth:d,size:u,title:f=""}=this.props,g=void 0!==i&&l[w(i)]||m.iq,v=p(g.trim()),y={alignItems:"center",backgroundColor:g,backgroundSize:u,color:v,display:"flex",fontSize:`${h}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:d,top:o,width:t,...c},C=["avatar","gravatar","rad2",...r||[]].join(" ").trim();return a().createElement("div",{className:C,"data-vscode-context":Z(s),style:y,title:f},n?n.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};render(){const{tooltipText:e}=this.state,{avatarUrl:t,classes:o,context:n,divStyle:r,height:i,minWidth:s,size:l,title:c="",tooltip:h,top:d,useAuthorInitialsForAvatars:u,width:p}=this.props,f=i||l,g=p||l,v=d||m.P3/2-f/2;let y;if(u||!t)y=this.getMaybeDefaultAvatar(f,g,v);else{const e={height:f,width:g,top:v,backgroundImage:`url('${t}')`,backgroundSize:l,minWidth:s,...r},i=["avatar","gravatar","rad2",...o||[]].join(" ").trim();y=a().createElement("div",{className:i,"data-test-class":"avatar","data-vscode-context":Z(n),style:e,title:c})}return h?a().createElement($r,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:a().createElement(Kr,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},y):y}}var xi=(e,t)=>{const{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:n,cssVariables:r,currentlyHoveredCommitSha:i,dimMergeCommits:s,dimRowsOfSelectedCommit:l,getExternalIcon:c,highlightRowsOnRefHover:h,processedRows:d,isInUnsupportedRebase:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,numGraphColumns:C,setAsCurrentlyHoveredGraphCommit:_,useAuthorInitialsForAvatars:w}=e,R=new ge(e);return({rowIndex:e,style:b})=>{const T=t(e),E=d[e],{author:x,email:O,message:M,sha:I,type:D,contexts:N}=E,z=m.GF,k=R.getActiveGraphZone(z);let H=D!==f.ch?x:void 0;const G=D!==f.ch?Ti(x,O):void 0,W=N?.author||void 0,A=N?.row||void 0,P=R.isColumnFollowingGraphColumn(z),L=R.isLastColumn(z),F=R.getZoneWidth(z),B=(F<=k.minimumWidth||k?.mode===m.Um.Rich)&&D!==f.ch;if(B){const e=()=>{const e=x&&""!==x.trim()&&"Unknown"!==x?Ti(x,O):O,t=S(y(M||""));let o="";if(0===t.length)o=e;else{t.unshift({email:O,name:x});for(let e=0;e<t.length;e+=1){const n=t[e];o+=Ti(n.name,n.email),e<t.length-1&&(o+=", ")}}return o},t=w?void 0:o[O];H=a().createElement(Ei,{authorInitials:bi(x),avatarUrl:t,classes:["node",`${f.o$}`,"z6"],column:E.column,context:N?.avatar||void 0,cssVariables:r,fontSize:10,height:m.LG,size:m.Y8,tooltip:e,useAuthorInitialsForAvatars:w,width:m.LG})}return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:n,column:E.column,context:W,currentlyHoveredCommitSha:i,dimRowsOfSelectedCommit:l,getExternalIcon:c,graphZoneType:z,hasAvatars:B,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:D===f.lH&&s,isHighlighted:R.isHighlighted(e),isHovering:R.isHovering(e),isInUnsupportedRebase:u,isLastColumn:L,isMissingHoveredRefGroup:R.isMissingHoveredRefGroup(e),isSelected:R.isSelected(e),key:T,numGraphColumns:C,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:A,setAsCurrentlyHoveredGraphCommit:_,sha:I,showColorStrip:P,showTimeline:R.hasTimeline(e),style:b,title:G,type:D,verticalScrollWidth:R.getVerticalScrollWidth(z),zoneWidth:F},H)}};var Oi=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,currentlyHoveredCommitSha:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,setAsCurrentlyHoveredGraphCommit:y}=e,C=new ge(e);return({rowIndex:e,style:S})=>{const _=t(e),w=o[e],{date:R,sha:b,type:T,contexts:E}=w,x=R&&T!==f.ch?l(R,f.Gu.RowEntry):void 0,O=R&&T!==f.ch?l(R,f.Gu.Tooltip):void 0,M=E?.date||void 0,I=E?.row||void 0,D=m.PL,N=C.isColumnFollowingGraphColumn(D),z=C.isLastColumn(D),k=C.getZoneWidth(D),H=C.getVerticalScrollWidth(D);return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:c,column:w.column,context:M,currentlyHoveredCommitSha:u,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:D,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:T===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:z,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:I,setAsCurrentlyHoveredGraphCommit:y,sha:b,showColorStrip:N,showTimeline:!1,style:S,title:O,type:T,verticalScrollWidth:H,zoneWidth:k},x)}},Mi={glyph:nr().string.isRequired},Ii=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.glyph,n=t.className,r=zr(Yn(t,["glyph","className"])),s=r[0],l=r[1],c=er({},Ir(s),((e={})[xr(s,o)]=!0,e));return a().createElement("span",er({},l,{className:i()(n,c)}))},t}(a().Component);Ii.propTypes=Mi;const Di=Or("glyphicon",Ii);var Ni={$bs_formGroup:nr().object},zi=function(e){function t(){return e.apply(this,arguments)||this}Qn(t,e);var o=t.prototype;return o.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},o.renderDefaultFeedback=function(e,t,o,n){var r=this.getGlyph(e&&e.validationState);return r?a().createElement(Di,er({},n,{glyph:r,className:i()(t,o)})):null},o.render=function(){var e=this.props,t=e.className,o=e.children,n=zr(Yn(e,["className","children"])),r=n[0],s=n[1],l=Ir(r);if(!o)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,l,s);var c=a().Children.only(o);return a().cloneElement(c,er({},s,{className:i()(c.props.className,t,l)}))},t}(a().Component);zi.defaultProps={bsRole:"feedback"},zi.contextTypes=Ni;const ki=Or("form-control-feedback",zi);var Hi={componentClass:ar()},Gi=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,o=e.className,n=zr(Yn(e,["componentClass","className"])),r=n[0],s=n[1],l=Ir(r);return a().createElement(t,er({},s,{className:i()(o,l)}))},t}(a().Component);Gi.propTypes=Hi,Gi.defaultProps={componentClass:"p"};const Wi=Or("form-control-static",Gi);var Ai={componentClass:ar(),type:nr().string,id:nr().string,inputRef:nr().func},Pi={$bs_formGroup:nr().object},Li=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.context.$bs_formGroup,o=t&&t.controlId,n=this.props,r=n.componentClass,s=n.type,l=n.id,c=void 0===l?o:l,h=n.inputRef,d=n.className,u=n.bsSize,p=zr(Yn(n,["componentClass","type","id","inputRef","className","bsSize"])),f=p[0],m=p[1];("file"!==s&&(e=Ir(f)),u)&&(e[xr({bsClass:"input"},Tr[u]||u)]=!0);return a().createElement(r,er({},m,{type:s,id:c,ref:h,className:i()(d,e)}))},t}(a().Component);Li.propTypes=Ai,Li.defaultProps={componentClass:"input"},Li.contextTypes=Pi,Li.Feedback=ki,Li.Static=Wi;const Fi=Or("form-control",Mr([br,Rr],Li)),Bi={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"};class Zi extends a().Component{render(){const{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;const n=(e=>{switch(e){case Bi.ADDED:return"added";case Bi.MODIFIED:return"modified";case Bi.DELETED:return"deleted";case Bi.RENAMED:return"renamed";default:return null}})(e),r=(e=>{switch(e){case Bi.ADDED:return"color-green";case Bi.MODIFIED:return"color-orange";case Bi.DELETED:return"color-red";case Bi.RENAMED:return"color-blue";default:return null}})(e),s=(e=>{switch(e){case Bi.ADDED:return"CommitDiffSection-FileAdded";case Bi.MODIFIED:return"CommitDiffSection-FileModified";case Bi.DELETED:return"CommitDiffSection-FileDeleted";case Bi.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}})(e),l=i()("fs-1",r,"mr1");return a().createElement("span",{className:l,title:o(s)},n&&t(n))}}var Ui=Zi;const{ADDED:ji,DELETED:Vi,MODIFIED:$i,RENAMED:Yi}=Bi,qi={[ji]:"CommitDiffSection-NFilesAdded",[Vi]:"CommitDiffSection-NFilesDeleted",[$i]:"CommitDiffSection-NFilesModified",[Yi]:"CommitDiffSection-NFilesRenamed"};var Ki=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const i=n?e:r(qi[t],e);let s,l;return n&&(s={fontSize:m.wd,marginRight:m.IX},l={fontSize:m.dH,margin:`0px ${m.VB}px 0px 0px`}),a().createElement("span",{className:"tiny-files-readout",style:s},a().createElement(Ui,{fileDiffType:t,getExternalIcon:o,style:l,translate:r}),a().createElement("span",{className:"tiny-files-readout-text"},i))};var Xi=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){const{types:i}=n;if(!e)return a().createElement("span",null);if(!Object.values(e).some((e=>Boolean(e))))return a().createElement("span",null);const s=e.modified?a().createElement(Ki,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.added?a().createElement(Ki,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=e.deleted?a().createElement(Ki,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=e.renamed?a().createElement(Ki,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,d=t?{marginLeft:m.aV}:null;return a().createElement("span",{className:"summary",style:d},s,l,c,h)};class Qi extends a().Component{textWidthRef=a().createRef();wrapperRef=a().createRef();static defaultProps={style:{},value:""};componentDidMount(){this.wrapperRef?.current&&(this.wrapperRef.current.style.width="0px")}componentDidUpdate(){this.textWidthRef?.current&&this.wrapperRef?.current&&(this.wrapperRef.current.style.width=`${Number(this.textWidthRef.current.offsetWidth)+35}px`)}componentWillUnmount(){this.props.onBlur&&this.props.onBlur()}onWipKeyDown(e){e.stopPropagation()}render(){const{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:n,isCommitting:r,isHovering:s,isSelected:l,onBlur:c,onClickCommit:h,onContextMenu:d,onFocus:u,onMessageChange:p,setAsCurrentlyHoveredGraphCommit:m,sha:g,style:v,translate:y,value:C,workDirStats:S}=this.props,_=i()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",f.ch,{"is-hovering":s}),w=i()("column-1","graph-row","flex",{"is-selected":l}),R=a().createElement(Xi,{diffStats:S,getExternalIcon:o,translate:y}),b=a().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},a().createElement(Fi,{"data-test-class":"work-dir-input-field",disabled:r,onBlur:e=>c(e),onChange:e=>p(e.target.value),onContextMenu:e=>d(e,n,g),onFocus:e=>u(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:y("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:C}),a().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},C));return a().createElement("div",{className:_,onMouseEnter:e=>m(e,n,g,t),onMouseLeave:o=>e(o,n,g,t),style:v},a().createElement("div",{className:w,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>h(e,n,g)},b,R))}}var Ji=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:i,getExternalIcon:s,highlightRowsOnRefHover:l,isInUnsupportedRebase:c,numGraphColumns:h,isCommitting:d,pendingCommitMessageSummary:u,workDirStats:p,onBlurWipNodeInput:g,onFocusWipNodeInput:v,onMessageChange:y,clearCurrentlyHoveredGraphCommit:C,currentlyHoveredCommitSha:S,onCommitContextMenu:_,onClickCommit:w,onDoubleClickCommit:R,setAsCurrentlyHoveredGraphCommit:b,wipMessageEditable:T}=e,E=new ge(e);return({rowIndex:e,style:x})=>{const O=t(e),M=r[e],{sha:I,type:D,contexts:N}=M,z=D===f.ch?i("Graph-WorkInProgress"):M.message,k=D===f.ch?i("Graph-WorkInProgress"):M.messageInline,H=N?.message||void 0,G=N?.row||void 0,W=m.KE,A=E.isColumnFollowingGraphColumn(W),P=E.isLastColumn(W),L=E.getZoneWidth(W),F=E.getVerticalScrollWidth(W),B=D===f.ch&&void 0!==p&&Object.keys(p).length>0,Z=B&&!T?a().createElement(Xi,{diffStats:p,getExternalIcon:s,translate:i}):null,U=D!==f.ch||T?a().createElement(a().Fragment,null,k):a().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},k,Z);return B&&T?a().createElement(Qi,{clearCurrentlyHoveredGraphCommit:C,currentlyHoveredCommitSha:S,getExternalIcon:s,graphZoneType:W,isCommitting:d,isHovering:E.isHovering(e),isSelected:E.isSelected(e),key:O,onBlur:g,onClickCommit:w,onContextMenu:_,onFocus:v,onMessageChange:y,setAsCurrentlyHoveredGraphCommit:b,sha:I,style:x,translate:i,value:u,workDirStats:p}):a().createElement(wi,{clearCurrentlyHoveredGraphCommit:C,column:M.column,context:H,currentlyHoveredCommitSha:S,dimRowsOfSelectedCommit:n,getExternalIcon:s,graphZoneType:W,highlightRowsOnRefHover:l,isDimmedMergeCommitRow:D===f.lH&&o,isHighlighted:E.isHighlighted(e),isHovering:E.isHovering(e),isInUnsupportedRebase:c,isLastColumn:P,isMissingHoveredRefGroup:E.isMissingHoveredRefGroup(e),isSelected:E.isSelected(e),key:O,numGraphColumns:h,onClickCommit:w,onContextMenu:_,onDoubleClickCommit:R,rowContext:G,setAsCurrentlyHoveredGraphCommit:b,sha:I,showColorStrip:A,showConflictIcon:D===f.S7||D===f.br,showTimeline:E.hasTimeline(e),style:x,title:z,type:D,verticalScrollWidth:F,zoneWidth:L},U)}};var es=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,shaLength:y}=e,C=new ge(e);return({rowIndex:e,style:S})=>{const _=t(e),w=o[e],{sha:R,type:b,contexts:T}=w,E=((e,t=m.ai)=>e?e.substring(0,t):"")(R,y),x=T?.sha||void 0,O=T?.row||void 0,M=m.av,I=C.isColumnFollowingGraphColumn(M),D=C.isLastColumn(M),N=C.getZoneWidth(M),z=C.getVerticalScrollWidth(M);return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:l,column:w.column,context:x,currentlyHoveredCommitSha:c,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:M,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:b===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:D,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:R,showColorStrip:I,showTimeline:C.hasTimeline(e),style:S,type:b,verticalScrollWidth:z,zoneWidth:N},b!==f.ch?a().createElement("span",{className:"font-monospace pointer",title:E},E):null)}};function ts({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=i()("ref-line","z4",{"is-active":t});return e&&function(e){return[f.o$,f.lH,f.S7].includes(e)}(n)?a().createElement("hr",{className:s,style:{left:o,width:r}}):null}var os=ts;function ns({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:n,type:r}){return a().createElement(ts,{hasRefs:t,isActiveSha:o,left:0,type:r,width:n+(r===f.lH?e:0)})}function rs({className:e,marginLeft:t}){return a().createElement("div",{className:i()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},a().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const is=(e,t,o,n)=>o+t*e+n/2;function ss({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:n}}){return a().createElement(rs,{className:"z1",marginLeft:is(e,t,n,o)})}function as(){return a().createElement(rs,{marginLeft:0})}const ls=(e,t,o,n,r,s)=>{const l={height:s.COMMIT_MERGE_NODE_DIAMETER,left:o+s.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:s.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:n,width:s.COMMIT_MERGE_NODE_DIAMETER},c=i()("node",r,"z6"),h=a().createElement(Kr,{className:"gk-graph",id:"graph-merge-node-tooltip"},Ti(t,e));return a().createElement($r,{delayShow:250,overlay:h,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:c,"data-test-class":"tree-row-commit-node",style:l}))};class cs extends a().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:n,left:r,opacity:s,translate:l,type:c}=this.props;return(t||e)&&c===f.o$?n.IS_COMPACT?ls(e,t,r,s,f.lH,n):(({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:i,cssVariables:s,graphZoneModeConstants:l,left:c,message:h,opacity:d,type:u,useAuthorInitialsForAvatars:p})=>a().createElement(Ei,{authorInitials:t,avatarUrl:n,classes:["node",`${u}`,"z6"],column:r,context:i,cssVariables:s,divStyle:{left:c,opacity:d},fontSize:10,height:l.COMMIT_NODE_DIAMETER,size:l.COMMIT_ZONE_AVATAR_DIAMETER,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Ti(o,e):e,n=S(y(h||""));let r="";if(0===n.length)r=t;else{n.unshift({email:e,name:o});for(let e=0;e<n.length;e+=1){const t=n[e];r+=Ti(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},top:l.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:p,width:l.COMMIT_NODE_DIAMETER}))(this.props):c===f.lH||c===f.S7||c===f.br?ls(e,t,r,s,c,n):((e,t,o,n,r,s,l,c=!1,h)=>{const d={height:h.COMMIT_NODE_DIAMETER,left:n,marginTop:h.COMMIT_NODE_TOP_OFFSET,opacity:r,width:h.COMMIT_NODE_DIAMETER};c&&(d.borderWidth=1);const u=i()("gk-graph","node",l,"z6",{compact:c});let p;p=l===f.kP?s("Stash"):l===f.ch?s("Graph-WorkInProgress"):Ti(o,t);const m=a().createElement(Kr,{className:"gk-graph",id:"graph-other-node-tooltip"},p);return a().createElement($r,{delayShow:250,overlay:m,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},l!==f.kP||c?null:a().createElement("span",null,e("stash"))))})(o,e,t,r,s,l,c,n.IS_COMPACT,n)}}class hs extends a().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:r,COMMIT_ZONE_GUTTER_WIDTH:i,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,c=Ne(o,t,n,e,r,i,s,l);return a().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:c}})}}var ds=hs;function us({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return a().createElement("div",{className:i()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function ps({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return a().createElement(us,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?a().createElement(yi,{z2:!0}):null)}function fs({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return a().createElement(us,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?a().createElement(yi,{z2:!0}):null,a().createElement(as,null))}class ms extends a().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:c,cssVariables:h,currentlyHoveredCommitSha:d,edgeColumnMax:u,edges:p,hasRefs:f,hasTimeline:g,getExternalIcon:v,graphZoneModeConstants:y,isActiveSha:C,isInUnsupportedRebase:S,isLastColumn:_,isSelected:w,leftGutterBoxShadowAlpha:R,leftGutterWidth:b,message:T,nodeOffset:E,nodeOpacity:x,numGraphColumns:O,onContextMenu:M,onClickCommit:I,onDoubleClickCommit:D,rightGutterBoxShadowAlpha:N,rightGutterWidth:z,rowContext:k,scrollLeft:H,setAsCurrentlyHoveredGraphCommit:G,sha:W,shouldShowRefLine:A,style:P,translate:L,type:F,useAuthorInitialsForAvatars:B,zoneContext:U}=this.props,j=s%O+1,V=i()("relative","commit-zone","height-100-percent","pt3",F,`column-${j}`,{"is-selected":w,"has-active":C}),$=g?a().createElement(yi,{z2:!0}):null,Y=a().createElement("div",{className:V,"data-vscode-context":Z(U),onContextMenu:S?void 0:e=>M(e,m.Wm,W),onDoubleClick:e=>D(e,m.Wm,W),onMouseDown:e=>I(e,m.Wm,W),onMouseEnter:e=>G(e,m.Wm,W,d),onMouseLeave:e=>r(e,m.Wm,W,d),style:{...P,..._&&{width:"100%"}}},$,a().createElement(ps,{boxShadowAlpha:R,hasTimeline:g,scrollLeft:H,width:b}),A?a().createElement(ns,{graphZoneModeConstants:y,hasRefs:f,isActiveSha:C,nodeOffset:E,type:F}):null,a().createElement(cs,{authorEmail:e,authorInitials:bi(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:h,getExternalIcon:v,graphZoneModeConstants:y,left:E,message:T,opacity:x,translate:L,type:F,useAuthorInitialsForAvatars:B}),a().createElement(ss,{column:s,graphZoneModeConstants:y}),a().createElement(ds,{columnColorByColumn:l,edgeColumnMax:u,edges:p,graphZoneModeConstants:y,nodeColumn:s}),a().createElement(fs,{boxShadowAlpha:N,commitZoneWidth:c,hasTimeline:g,scrollLeft:H,width:z}));return k?a().createElement("div",{"data-vscode-context":Z(k)},Y):Y}}var gs=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:i,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:c,getExternalIcon:h,graphZoneModeConstants:d,isInUnsupportedRebase:u,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,onCommitContextMenu:g,onClickCommit:v,onDoubleClickCommit:y,nodeOffsetByColumn:C,nodeOpacityByColumn:S,numGraphColumns:_,rightGutterBoxShadowAlpha:w,rightGutterWidth:R,setAsCurrentlyHoveredGraphCommit:b,scrollLeft:T,shouldShowRefLine:E,translate:x,useAuthorInitialsForAvatars:O}=e,M=new ge(e);return({rowIndex:e,style:I})=>{const D=t(e),N=c[e],z=m.Wm,k=M.getZoneWidth(z),{email:H,author:G,contexts:W,message:A,sha:P,type:L}=N,F=N.column,B=W?.graph||void 0,Z=W?.avatar||void 0,U=W?.row||void 0;let j;O||(j=o[H],j||n(H,P));const V=M.isLastColumn(z);return a().createElement(ms,{authorEmail:H,authorName:G,avatarContext:Z,avatarUrl:j,clearCurrentlyHoveredGraphCommit:r,column:F,columnColorByColumn:i,commitZoneWidth:k,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:N.edgeColumnMaxes,edges:N.edges,getExternalIcon:h,graphZoneModeConstants:d,hasRefs:N.hasRefs||!1,hasTimeline:M.hasTimeline(e),isActiveSha:M.rowContainsCurrentHeadRef(N),isInUnsupportedRebase:u,isLastColumn:V,isSelected:M.isSelected(e),key:D,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,message:A,nodeOffset:C[F],nodeOpacity:S[F],numGraphColumns:_,onClickCommit:v,onContextMenu:g,onDoubleClickCommit:y,rightGutterBoxShadowAlpha:w,rightGutterWidth:R,rowContext:U,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:b,sha:P,shouldShowRefLine:E,style:I,translate:x,type:L,useAuthorInitialsForAvatars:O,zoneContext:B})}};const vs={map:function(e,t,o){var n=0;return a().Children.map(e,(function(e){return a().isValidElement(e)?t.call(o,e,n++):e}))},forEach:function(e,t,o){var n=0;a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)}))},count:function(e){var t=0;return a().Children.forEach(e,(function(e){a().isValidElement(e)&&++t})),t},find:function(e,t,o){var n,r=0;return a().Children.forEach(e,(function(e){n||a().isValidElement(e)&&t.call(o,e,r++)&&(n=e)})),n},filter:function(e,t,o){var n=0,r=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)&&r.push(e)})),r},every:function(e,t,o){var n=0,r=!0;return a().Children.forEach(e,(function(e){r&&a().isValidElement(e)&&(t.call(o,e,n++)||(r=!1))})),r},some:function(e,t,o){var n=0,r=!1;return a().Children.forEach(e,(function(e){r||a().isValidElement(e)&&t.call(o,e,n++)&&(r=!0)})),r},toArray:function(e){var t=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.push(e)})),t}};var ys={controlId:nr().string,validationState:nr().oneOf(["success","warning","error",null])},Cs={$bs_formGroup:nr().object.isRequired},Ss=function(e){function t(){return e.apply(this,arguments)||this}Qn(t,e);var o=t.prototype;return o.getChildContext=function(){var e=this.props;return{$bs_formGroup:{controlId:e.controlId,validationState:e.validationState}}},o.hasFeedback=function(e){var t=this;return vs.some(e,(function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)}))},o.render=function(){var e=this.props,t=e.validationState,o=e.className,n=e.children,r=function(e,t){var o={};t.forEach((function(e){o[e]=!0}));var n={};return Sr()(e).forEach((function(e){var t=e[0],r=e[1];Nr(t)||o[t]||(n[t]=r)})),[Dr(e),n]}(Yn(e,["validationState","className","children"]),["controlId"]),s=r[0],l=r[1],c=er({},Ir(s),{"has-feedback":this.hasFeedback(n)});return t&&(c["has-"+t]=!0),a().createElement("div",er({},l,{className:i()(o,c)}),n)},t}(a().Component);Ss.propTypes=ys,Ss.childContextTypes=Cs;const _s=Or("form-group",Mr([Rr,br],Ss));function ws(e,t){return ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ws(e,t)}function Rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bs(e,t,o){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(o):e.classList.contains(o))}var Ts,Es,xs=(void 0===Ts&&(Ts=0),function(){return++Ts}),Os={},Ms={},Is=["touchstart","touchmove"];function Ds(e,t){var o={};return-1!==Is.indexOf(t)&&Es&&(o.passive=!e.props.preventDefault),o}const Ns=function(e,t){var o,n,r=e.displayName||e.name||"Component";return n=o=function(o){var n,i;function a(e){var n;return(n=o.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof n.__clickOutsideHandlerProp){var t=n.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else n.__clickOutsideHandlerProp(e)},n.__getComponentNode=function(){var e=n.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,zt.findDOMNode)(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!Ms[n._uid]){void 0===Es&&(Es=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),o=function(){};return window.addEventListener("testPassiveEventSupport",o,t),window.removeEventListener("testPassiveEventSupport",o,t),e}}()),Ms[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),Os[n._uid]=function(e){var t;null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),n.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,o){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&bs(e,t,o))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,Os[n._uid],Ds(Rs(n),e))}))}},n.disableOnClickOutside=function(){delete Ms[n._uid];var e=Os[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,Ds(Rs(n),t))})),delete Os[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=xs(),n}i=o,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,ws(n,i);var l=a.prototype;return l.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props;t.excludeScrollbar;var o=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?o.ref=this.getRef:o.wrappedRef=this.getRef,o.disableOnClickOutside=this.disableOnClickOutside,o.enableOnClickOutside=this.enableOnClickOutside,(0,s.createElement)(e,o)},a}(s.Component),o.displayName="OnClickOutside("+r+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},o.getClass=function(){return e.getClass?e.getClass():e},n};class zs extends a().PureComponent{handleClickOutside(){const{sha:e,shorthand:t,type:o,data:n}=this.props.createRefFormData;this.props.onCancel(t,e,o,n)}constructor(e){super(e);const{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:n,shorthand:r,type:i,data:s}=t;this.state={shorthand:o(r,n,i,s)}}onInputChange(e){let t=e||"";if(e){const{sha:e,type:o,data:n}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,n)}this.setState({shorthand:t})}render(){const{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:n,onRefCreate:r,refZoneWidth:i,style:s,translate:l}=this.props,{shorthand:c}=this.state,{data:h,sha:d,type:u}=e,p=l(u===L.V.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return a().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:i,width:i}},a().createElement(_s,{validationState:0===c.length||t(c,d,u,h)?"success":"error"},a().createElement(Fi,{autoFocus:!0,"data-testid":"create-ref-form-control",onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>n(e,c,d,u,h),onKeyDown:e=>{e.stopPropagation(),"Escape"!==e.key?d&&"Enter"===e.key&&r(c,d,u,h):o(c,d,u,h)},placeholder:p,type:"text",value:c})))}}var ks=Ns(zs);var Hs=function({hasActive:e,overflowCount:t}){return a().createElement("span",{className:i()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};var Gs=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return a().createElement("div",{className:i()("gk-graph","ref-zone","column-"+(o%n+1))},a().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-m.cZ/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var Ws=function({enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,getTargetRef:r,hasActive:i,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:c,includeOnlyRemotesByName:h,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:g,refGroupContexts:v,refGroupsByName:y,refMetadata:C,refNodeHovered:S,sha:_,showContextMenuForGroupedRef:w,onClickRef:R,onDoubleClickRef:b,onToggleRefNodesShown:T,onRefBeginDrag:E,onRefCanDrag:x,onRefCanDrop:O,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,translate:z,type:k}){const H=(e,t,o)=>{const n=t.map((e=>({id:V(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})));T(e,n,!1,o)},G=u?y:[y[0]],W=G[0].some((e=>e.refType===L.V.HEAD&&e.isCurrentHead)),A=m.Vh+(y[0]?.length||0)*m.B+(W?m.B:0),P=Object.values(c),F=P.length>0&&P.some((e=>e.type===L.V.TAG)),B=G.map((t=>{const o=v?.[t[0].name]||void 0,r=t.some((e=>{const t=V(e);switch(e.refType){case L.V.TAG:return F&&Boolean(c[t]);case L.V.REMOTE:return Boolean(c[t])||e.owner&&h[e.owner];default:return Boolean(c[t])}})),f=a().createElement(hi,{enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:l,groupIsHovered:u,hasActive:i,hasRefs:s,isGhostRef:d,isInUnsupportedRebase:p,isRefGroupIncluded:r,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:R,onContextMenu:w,onDoubleClick:b,onHideRefClick:H,onHovered:S,onMissingRefMetadata:g,onRefBeginDrag:E,onRefCanDrag:x,onRefCanDrop:O,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,refGroup:t,refGroupContext:o,refMetadata:C,sha:_,translate:z,type:k});return u?a().createElement("li",{key:f.key},f):f}));return u?a().createElement("div",{"data-vscode-context":Z(o),style:{height:100,position:"relative"}},a().createElement(gr,{placement:"right",show:u,target:r},a().createElement(Gs,{column:t,numGraphColumns:f},B))):a().createElement("span",{"data-vscode-context":Z(o),style:{minWidth:A}},B)};const As={};class Ps extends a().PureComponent{refPopoverTarget;isContextMenuShown=!1;static defaultProps={style:{}};componentWillReceiveProps(e){this.props.hasRefs||!this.props.isSingleSelected||e.isSingleSelected||this.props.hoveredRefZoneSha!==this.props.sha||(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(void 0,this.props.hoveredRefGroup,this.props.sha))}getRefPopoverTarget=()=>this.refPopoverTarget;onCustomToggleRefNodesShown=(e,t,o,n)=>{this.props.onToggleRefNodesShown(e,t,o,n),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,showGhostRefsOnRowHover:r,hasActive:s,hasRefs:l,hasTimeline:c,hoveredRefGroup:h,hoveredRefZoneSha:d,getExternalIcon:u,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isContainerWindowFocused:g,isInUnsupportedRebase:v,numGraphColumns:y,onClickRef:C,onDoubleClickRef:S,onMissingRefMetadata:_,onRefBeginDrag:w,onRefCanDrag:R,onRefCanDrop:b,onRefDragEnter:T,onRefDragLeave:E,onRefDrop:x,onRefEndDrag:O,refGroupContexts:M,refGroupsByName:I,refMetadata:D,refNodeHovered:N,refNodeUnhovered:z,refZoneHovered:k,refZoneUnhovered:H,sha:G,shouldShowRefLine:W,showColorStrip:A,showContextMenuForGroupedRef:P,style:L,translate:F,type:Z,width:U}=this.props,j=d===G&&g,V={minWidth:U,width:U},$={...L,...V},Y=c?a().createElement(yi,null):null,q=I.length,K=e=>{k(G),q?N(e,I[0],G):h&&z(e,h,G)},X=e=>{g&&this.isContextMenuShown?this.isContextMenuShown=!1:(H(),h&&z(e,h,G))},Q=B(((e,t)=>{X(e),w(e,t)})),J=q>0&&!l&&r,ee=function(e,t,o,n,r,s){const a=`${e}${t}${o}${n}${r}${s}`;let l=As[a];return l||(l=i()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":s,"has-active":n,z6:o,z1:!o}),As[a]=l,l)}(Z,t,j,s,y,J),te=a().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!q)return a().createElement("div",{className:ee,onMouseEnter:K,onWheel:X,style:$},A?te:null,Y);const oe={minWidth:0,overflow:"hidden",width:U-m.PB},ne=q-1,re=ne>0&&!j?a().createElement(Hs,{hasActive:s,overflowCount:ne}):null;return a().createElement("div",{className:ee,onMouseEnter:K,onMouseLeave:X,onWheel:X,style:$},a().createElement("div",{ref:e=>this.refPopoverTarget=e}),A?te:null,Y,a().createElement("div",{className:"flex",style:oe},a().createElement(Ws,{column:t,context:o,enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:u,getTargetRef:this.getRefPopoverTarget,hasActive:s,hasRefs:l,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isGhostRef:J,isHovered:j,isInUnsupportedRebase:v,numGraphColumns:y,onClickRef:C,onDoubleClickRef:S,onMissingRefMetadata:_,onRefBeginDrag:Q,onRefCanDrag:R,onRefCanDrop:b,onRefDragEnter:(e,t,o)=>{j||o?.sha!==G||K(e),T(e,t,o)},onRefDragLeave:E,onRefDrop:x,onRefEndDrag:O,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:M,refGroupsByName:I,refMetadata:D,refNodeHovered:N,sha:G,showContextMenuForGroupedRef:(e,t,o)=>{K(e),this.isContextMenuShown=!0,P(e,t,o)},translate:F,type:Z}),re),l&&W?a().createElement("div",{className:"absolute left-0 flex z1",style:V},a().createElement(os,{hasRefs:!0,isActiveSha:s,left:m.yv,type:Z,width:"100%"})):null)}}var Ls=(e,t)=>{const{createRefFormData:o,formatRefShorthand:n,enableShowHideRefsOptions:r,enabledRefMetadataTypes:i,isRefShorthandValid:s,showGhostRefsOnRowHover:l,onDoubleClickRef:c,processedRows:h,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,getExternalIcon:g,hoveredRefGroup:v,hoveredRefZoneSha:y,numGraphColumns:C,onClickRef:S,onMissingRefMetadata:_,onShowContextMenuForGroupedRef:w,onRefBeginDrag:R,onRefCanDrag:b,onRefCanDrop:T,onRefCreate:E,onRefCreateCancel:x,onRefCreateContextMenu:O,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onRefNodeHovered:z,onRefNodeUnhovered:k,onRefZoneHovered:H,onRefZoneUnhovered:G,onToggleRefNodesShown:W,refMetadataById:A,shouldShowRefLine:P,translate:L}=e,F=new ge(e);return({rowIndex:e,style:B})=>{const Z=t(e),U=h[e],j=m.jZ,V=F.isLastColumn(j),$=F.getZoneWidth(j),Y=F.isHovering(e),{sha:q,type:K,hasRefs:X,contexts:Q}=U,J=Q?.ref||void 0,ee=Q?.refGroups||void 0,te=F.isSingleSelected(e),oe=F.getVerticalScrollWidth(j),ne=(l||X)&&(X||Y||te)?F.getGraphRefGroupsByNameForRow(e):[],re=F.isColumnFollowingGraphColumn(j);return o?.sha===q?a().createElement(ks,{createRefFormData:o,formatRefShorthand:n,isRefShorthandValid:s,key:Z,onCancel:x,onContextMenu:O,onRefCreate:E,refZoneWidth:$,style:B,translate:L}):a().createElement(Ps,{column:U.column,context:J,enabledRefMetadataTypes:i,enableShowHideRefsOptions:r,getExternalIcon:g,hasActive:F.rowContainsCurrentHeadRef(U),hasRefs:X||!1,hasTimeline:F.hasTimeline(e),hoveredRefGroup:v,hoveredRefZoneSha:y,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,isSingleSelected:te,key:Z,numGraphColumns:C,onClickRef:S,onDoubleClickRef:c,onMissingRefMetadata:_,onRefBeginDrag:R,onRefCanDrag:b,onRefCanDrop:T,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onToggleRefNodesShown:W,refGroupContexts:ee,refGroupsByName:ne,refMetadata:A,refNodeHovered:z,refNodeUnhovered:k,refZoneHovered:H,refZoneUnhovered:G,sha:q,shouldShowRefLine:P,showColorStrip:re,showContextMenuForGroupedRef:w,showGhostRefsOnRowHover:l,style:B,translate:L,type:K,width:V?$-oe:$})}};var Fs=(e,t)=>{const{translate:o,processedRows:n}=e,r=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new ge(e);return({rowIndex:e,style:l})=>{const c=t(e),h=i()("graph-row","height-100-percent","flex"),d=s.hasTimeline(e),u=n[e],p=u.contexts?.row||void 0,f=u.timeLineEntry?.label||"",m=u.timeLineEntry?.value||0,g=d?a().createElement(yi,null):null,v=d?a().createElement("span",{className:"time-line-message-container"},a().createElement("span",{className:"time-line-message"},o(f,m))):null;return a().createElement("div",{className:r,"data-vscode-context":Z(p),key:c,style:l},g,a().createElement("div",{className:h,"data-vscode-context":Z(p)},v))}};class Bs extends a().PureComponent{graphContainerRef=a().createRef();resizeObserver;isSelectedBySha={};processedGraphRowBySha={};childrenBySha={};scrollToSha;headSha;headUpstreamSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};reserverInfoBySha={};columnsUsed={};rowsStats;workDirStats=m.OR;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=le();graphZonesByType={};graphZoneOrdering=[m.jZ,m.Wm,m.KE,m.GF,m.WD,m.PL,m.av];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>e.forEach((e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))))),this.isSelectedBySha=this.props.isSelectedBySha||{},this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);const t=R(this.props.cssVariables);this.graphZoneModeConstants=le(this.props.columnsSettings?.[m.Wm]?.mode),this.maybeSortGraphZoneOrderingFromSettings(this.props.columnsSettings),this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,createRefFormData:this.props.createRefFormData,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,enableShowHideRefsOptions:this.props.enableShowHideRefsOptions||!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphZones:this.initializeGraphZones(this.props.columnsSettings,this.graphZoneOrdering,580),hasMoreCommits:this.props.hasMoreCommits||!1,height:this.graphHeight,highlightedShas:this.props.highlightedShas,hoveredRefGroup:void 0,hoveredRefZoneSha:void 0,isContainerWindowFocused:void 0===this.props.isContainerWindowFocused||this.props.isContainerWindowFocused,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),pendingCommitMessageSummary:this.props.pendingCommitMessageSummary||"",processedRows:[...this.orderedGraphRows],refMetadataById:this.props.refMetadataById,rowsStats:this.rowsStats,rowsStatsLoading:this.props.rowsStatsLoading||!1,useAuthorInitialsForAvatars:this.props.useAuthorInitialsForAvatars||!1,scrollLeft:this.getScrollLeft(),scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex(),scrollTop:this.getScrollTop(),shaLength:this.props.shaLength,themeOpacityFactor:this.props.themeOpacityFactor||m.X9.dark,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.resizeObserver.observe(this.graphContainerRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);const e=this.isSelectedBySha?this.getSelectedShas():[];e.length>0&&this.selectCommits(e,!1,!0)}componentWillReceiveProps(e){let t=!1,o=!1,n=!1;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=[];Object.keys(e.highlightedShas||{}).forEach((o=>{e.highlightedShas[o]&&void 0!==this.processedGraphRowBySha[o]?.rowIndex&&t.push(this.processedGraphRowBySha[o].rowIndex)})),this.markerRowIndices={...this.markerRowIndices,highlights:t}}if(this.props.isSelectedBySha!==e.isSelectedBySha&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.props.excludeByType!==e.excludeByType&&(this.excludeByType=e.excludeByType||{},e.graphRows?.length&&(o=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.themeOpacityFactor!==e.themeOpacityFactor&&this.setState({themeOpacityFactor:e.themeOpacityFactor}),this.props.dimMergeCommits!==e.dimMergeCommits&&this.setState({dimMergeCommits:e.dimMergeCommits||!1}),this.props.highlightRowsOnRefHover!==e.highlightRowsOnRefHover&&this.setState({highlightRowsOnRefHover:e.highlightRowsOnRefHover||!1}),this.props.showGhostRefsOnRowHover!==e.showGhostRefsOnRowHover&&this.setState({showGhostRefsOnRowHover:e.showGhostRefsOnRowHover||!1}),this.props.showRemoteNamesOnRefs!==e.showRemoteNamesOnRefs&&this.setState({showRemoteNamesOnRefs:e.showRemoteNamesOnRefs||!1}),this.props.enabledRefMetadataTypes!==e.enabledRefMetadataTypes&&this.setState({enabledRefMetadataTypes:e.enabledRefMetadataTypes||[]}),this.props.enabledScrollMarkerTypes!==e.enabledScrollMarkerTypes&&this.setState({enabledScrollMarkerTypes:e.enabledScrollMarkerTypes||[]}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.setState({dimRowsOfSelectedCommit:!1,isContainerWindowFocused:void 0===e.isContainerWindowFocused||e.isContainerWindowFocused}),this.props.downstreamsByUpstream!==e.downstreamsByUpstream&&(this.downstreamsByUpstream=e.downstreamsByUpstream||{},e.graphRows?.length&&(o=!0)),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();const r=R(e.cssVariables);n=!0,this.setState({columnColorByColumn:this.getColumnColorByColumn(r),cssVariablesWithDefaults:r,numGraphColumns:this.getNumGraphColumns(r)}),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||o)&&(this.lastLazyLoadHeight=0)}if(this.props.useAuthorInitialsForAvatars!==e.useAuthorInitialsForAvatars&&this.setState({useAuthorInitialsForAvatars:e.useAuthorInitialsForAvatars}),this.props.shaLength!==e.shaLength&&this.setState({shaLength:e.shaLength}),this.props.hasMoreCommits!==e.hasMoreCommits&&this.setState({hasMoreCommits:e.hasMoreCommits||!1}),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.rowsStats!==e.rowsStats&&(this.rowsStats=e.rowsStats,this.updateRowStatsConstraints(),this.setState({rowsStats:e.rowsStats})),this.props.rowsStatsLoading!==e.rowsStatsLoading&&this.setState({rowsStatsLoading:e.rowsStatsLoading||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||m.OR,!de(this.props.workDirStats)&&de(e.workDirStats)||de(this.props.workDirStats)&&!de(e.workDirStats)?(n=!0,this.setState({workDirStats:this.workDirStats})):this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={}),this.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[m.Wm]?.mode!==this.props.columnsSettings?.[m.Wm]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=le(e.columnsSettings?.[m.Wm]?.mode),this.updateCommitZoneContentWidthFromChange();const o=this.graphZonesByType[m.Wm];o.currentWidth=o.contentWidth,o.preferredWidth=o.contentWidth,o.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,o.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.loadEdgesBySha(),t=!0}e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0)}if(this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),this.props.pendingCommitMessageSummary!==e.pendingCommitMessageSummary&&this.setState({pendingCommitMessageSummary:e.pendingCommitMessageSummary||""}),this.props.enableShowHideRefsOptions!==e.enableShowHideRefsOptions&&this.setState({enableShowHideRefsOptions:e.enableShowHideRefsOptions}),this.props.createRefFormData!==e.createRefFormData&&(e.createRefFormData?.sha&&this.selectCommits([e.createRefFormData?.sha],!1,!0),this.setState({createRefFormData:e.createRefFormData})),n&&(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})),t){this.updateCommitZoneContentWidthFromChange();const e=this.getOrderedActiveGraphZones();this.expandLastZoneMinWidthForScrollbar(e),this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}onGraphVisibleRowsUpdatedThrottled=((e,t,o)=>{let n,r,i=!1,s=t;return(...a)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...a),n=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),s))}})((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,n)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const o=this.graphZoneOrdering.indexOf(e);let n=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<n&&(n-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(n,0,e);const r={};this.graphZoneOrdering.forEach(((e,t)=>{this.graphZonesByType[e].order=t,r[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])})),this.setState({graphZones:this.initializeGraphZones(r,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(r)};onGraphZoneResize=B(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=B(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!0),this.setState({graphZones:o})}this.props.onColumnResized&&this.props.onColumnResized(e.type,this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e.type]))}));onPopupGraphHeaderContextMenu=(e,t)=>{this.props.onPopupGraphHeaderContextMenu&&this.props.onPopupGraphHeaderContextMenu(e,t)};onSettingsClick=(e,t)=>{this.props.onSettingsClick&&this.props.onSettingsClick(e,t)};onMessageChange=e=>{this.setState({pendingCommitMessageSummary:e}),this.props.onMessageChange&&this.props.onMessageChange(e)};onRefBeginDrag=(e,t)=>{this.props.onRefBeginDrag&&this.props.onRefBeginDrag(e,t)};onRefCanDrag=e=>!!this.props.onRefCanDrag&&this.props.onRefCanDrag(e);onRefCanDrop=(e,t,o)=>!!this.props.onRefCanDrop&&this.props.onRefCanDrop(e,t,o);onRefCreate=(e,t,o,n)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,n)};onRefCreateCancel=(e,t,o,n)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,n)};onRefCreateContextMenu=(e,t,o,n,r)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,n,r)};onRefDragEnter=(e,t,o)=>{this.props.onRefDragEnter&&this.props.onRefDragEnter(e,t,o)};onRefDragLeave=(e,t,o)=>{this.props.onRefDragLeave&&this.props.onRefDragLeave(e,t,o)};onRefDrop=(e,t,o)=>{this.props.onRefDrop&&this.props.onRefDrop(e,t,o)};onRefEndDrag=(e,t,o)=>{this.props.onRefEndDrag&&this.props.onRefEndDrag(e,t,o)};onClickRef=(e,t,o,n)=>{this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onClickCommit=(e,t,o)=>{if(0===e.button){const{enableMultiSelection:n}=this.props,r=this.isMacOSPlatform();if(n&&(!r&&e.ctrlKey||r&&e.metaKey)?this.selectCommits([o],!0,!1):n&&e.shiftKey||this.selectCommits([o],!1,!1),this.props.onClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,n)}}};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,n)}};onWindowKeyUp=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=()=>{this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyDown=e=>{switch(e.keyCode){case 38:this.selectPrevious(e.shiftKey);break;case 40:this.selectNext(e.shiftKey);break;case 72:this.selectHead(e.shiftKey)}};onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||pe(this.isSelectedBySha,o)||this.processedGraphRowBySha[o]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,o)=>{this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout((()=>{this.shouldFireShowMoreCommits=!0}),100))};onScrollForZone=(e,t,o,n,r)=>{if(this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),!this.props.onShowMoreCommits||!r||!n||n<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const i=this.scrollTop+n,s=this.orderedGraphRows.length*m.$0;i>s-m.qG&&i>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(i,s-1),this.onShowMoreCommits())};onScrollToRowCausedUpdateForRefZone=(e,t)=>{this.setScroll(e,t),this.props.onScrollToRowCausedUpdateForRefZone&&this.props.onScrollToRowCausedUpdateForRefZone(e,t)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,n)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,n)}};selectCommits(e,t,o){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const n=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{n.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,o))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(m.Wm)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){const e=[];return Object.keys(this.isSelectedBySha).forEach((t=>{this.isSelectedBySha[t]&&e.push(t)})),e}getExcludeRemotesByName(){const e={};return Object.values(this.excludeRefsById).forEach((t=>{t.type===L.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===L.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}clearScrollToIndex=()=>{setTimeout((()=>this.setState({scrollToIndex:void 0})),100)};getTopAndBottomVisibleRowIndex(){const{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,n=e||0;if(!n||!t||!t.length)return{top:-1,bottom:-1};const r=(n-m.rl)/m.$0,i=o/m.$0,s=i+(r-1);return{top:Math.max(Math.floor(i),0),bottom:Math.min(Math.ceil(s),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let n=o;if(n<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,s=r.bottom;if(-1===i||-1===s)return e;const a=Math.floor((s-i)/2);if(a<1)return e;n=Math.min(n,a);const l=this.orderedGraphRows.length,c=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!c||!this.orderedGraphRows.length)return e;const h=s-n<c;return i+n>c?this.orderedGraphRows[Math.max(c-n,0)].sha||e:h&&this.orderedGraphRows[Math.min(c+n,l-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(m.Wm),s=this.getCommitZoneContentWidth(),a=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,l=n-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=a,c=a<=n+r,h=Math.max(0,s-i),d=l&&c?n:P(a-r/2,0,h);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){const n=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=re(r,n,e);if(r.currentWidth=i,t===m.Wm){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromChange(){const e=this.graphZonesByType[m.Wm];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=re(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){const o=t?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0,n=this.graphZonesByType[e];return n&&!n.isHidden?n.currentWidth-o:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT}getCommitZoneWidth(e=!0){const t=e?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0;if(this.graphZonesByType[m.Wm])return this.graphZonesByType[m.Wm].currentWidth-t;const{columnsSettings:o}=this.props;return o?.[m.Wm]?o[m.Wm].width-t:m.qi[m.Wm].minimumWidth-t}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(m.Wm);return 1===e?0:P(1-(t-2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)}setClientHeight(e){this.clientHeight=e}getClientHeight(){return this.clientHeight}setScroll(e,t){this.setClientHeight(t.clientHeight),null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===m.Wm&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){const e=this.getNonAdjustedScrollLeft();return this.getCommitZoneContentWidth()!==this.getCommitZoneWidth()?e:0}setScrollTop(e){this.scrollTop!==e&&(this.scrollTop=e,this.setState({scrollTop:e}),this.onGraphVisibleRowsUpdatedThrottled())}getScrollTop(){return this.scrollTop}getScrollToSha(){return this.scrollToSha}setScrollToSha(e,t){this.scrollToSha=e,this.setScrollLeft(t),this.onGraphVisibleRowsUpdated()}getScrollToIndex(){const e=this.getScrollToSha();return this.orderedGraphRows.findIndex((t=>t.sha===e))}getScrollToAlignment(){const e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return function(e,t,o,n){if(n<0)return m.os;const r=e+2,i=n*e;return i>=o-r&&i<o+t+r?m.os:m.MQ}(m.$0,e,t,o)}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT)+t*(e+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getHorizontalScrollHeight(e,t,o){return this.graphZonesByType[e]?oe(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?ne(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(m.Wm),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH))+o*(t+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH*t;return e}getNodeOffsetByColumn(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),n={};return Object.keys(o).forEach((r=>{const i=o[r];n[r]=P(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(m.Wm)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(m.Wm),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return P((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),n=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(o).forEach((s=>{const a=o[s],l=a-(e-r*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),c=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(a+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-n)),h=Math.min(l,c);i[s]=m.l3+(1-m.l3)*Math.max(h/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+e*(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,P(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e){const t={...this.markerRowIndices};if(e.forEach((e=>{t[e]=[]})),e.includes("selection")){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.selection.push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes("highlights")){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.highlights.push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.documentElement),t={};return Object.values(m.Qh).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey).trim();n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=m.qi[t],a=i?.width?i.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,mode:i?.mode,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=l.currentWidth),t===m.Wm&&(l.contentWidth=this.getCommitZoneContentWidth(),l.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,l.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||n.push(l)}));const i=n[n.length-1];if(i){const e=q(this.props.cssVariables,!0),t=i.minimumWidth+e;(null==i.maximumWidth||i.maximumWidth>=t)&&(i.minimumWidth=t,null!=i.showIconWidth&&(i.showIconWidth+=e),n[n.length-1]=i)}for(n.forEach((e=>{const t=re(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=$(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),a=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=a}if(r<o){const e=t[t.length-1],r=o-K(n,e);this.graphZonesByType[e].currentWidth=r}return n}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every((t=>void 0!==e?.[t]?.order))&&this.graphZoneOrdering.sort(((t,o)=>e[t].order<e[o].order?-1:e[t].order>e[o].order?1:0))}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach(((o,n)=>{const r=this.graphZonesByType[o],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0,r.type!==m.WD||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n,r.mode=i.mode,r.preferredWidth=i.width??r.preferredWidth,r.currentWidth=r.preferredWidth)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const o=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(o).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const o={};let n,r,i,s;return Object.keys(t).forEach((a=>{n=t[a],r=n.passThrough,i=n.starting,s=r&&!g(r.type)?r:i&&!g(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[a]={ending:s}:o[a]={passThrough:s})})),o}getFinalEdgeStateForGraphAndRow(e,t){const o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),n=this.getStartingEdgesByColumn(e);let r;return Object.keys(n).forEach((e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=o[e],r.starting=n[e]})),o}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const o=this.orderedGraphRows[t-1],n=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,n);const r=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=r,r>this.maxColumns&&(this.maxColumns=r)}))}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){const t={},o=e.parents;if(o.length>0){const n=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:o[0],type:n});for(let e=1;e<o.length;e+=1){const r=o[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:n})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):I(e,m.It);formatRefShorthandCallback=(e,t,o,n)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,n):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,n)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,n);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):ve[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach(((e,t)=>{const n=new RegExp(`\\{${t}\\}`,"g");o=o.replace(n,e)})),o}(ve[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):a().createElement("span",null);onMissingAvatar=(e,t)=>{this.props.onEmailsMissingAvatarUrls&&!this.requestedMissingAvatars[e]&&(this.pendingMissingAvatars[e]=t,this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingAvatarsTimer=setTimeout((()=>{const e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const o=this.pendingMissingRefsMetadata[e]||[],n=t.filter((e=>!o.includes(e)));this.pendingMissingRefsMetadata[e]=[...o,...n],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}}),100)};selectNext(e){const t=this.getSelectedShas(),o=t.length>0?t[t.length-1]:null;let n;if(e&&o){const e=this.processedGraphRowBySha[o];e?.parents?.length&&(n=e.parents[0])}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);n=this.orderedGraphRows[t]?.sha}n&&this.selectCommits([n],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),o=t.length>0?t[0]:null;let n;if(e&&o){const e=this.childrenBySha[o];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)n=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==f.kP){n=e[t];break}}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.max(-1,e-1);n=this.orderedGraphRows[t]?.sha,t<0&&(n=this.orderedGraphRows[0]?.sha)}n&&this.selectCommits([n],!1,!0)}selectHead(e){e&&this.headUpstreamSha?this.selectCommits([this.headUpstreamSha],!1,!0):this.headSha&&this.selectCommits([this.headSha],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){const t=e.parents||[],o=this.columnsToFreeWhenFound[e.sha];if(void 0!==o)for(let e=0;e<o.length;e+=1)delete this.columnsUsed[o[e]];let n=0;const r=this.reserverInfoBySha[e.sha];let i,s;void 0!==r?.column?(n=r.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let o=0;o<t.length;o+=1)if(i=t[o],s=this.reserverInfoBySha[i],0===o&&void 0!==s?.column&&s?.column!==n){const t=this.columnsToFreeWhenFound[i]||[],o=s?.type===f.kP&&e.type!==f.kP&&r?.newestDate>s?.newestDate;s?.column>n||o?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:n},t.push(s.column)):t.push(n),this.columnsToFreeWhenFound[i]=t}else void 0===s?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===n?r?.newestDate:e.date,column:0===o?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[j(L.V.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[j(L.V.HEAD,e)])))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[j(L.V.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:(!this.excludeByType.remotes||e.owner&&this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0)&&void 0===this.excludeRefsById[j(L.V.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,o){const n=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===L.V.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>n?void 0!==this.includeOnlyRefsById[j(L.V.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[j(L.V.TAG,e)]&&(!t||r||o)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,o={},n=[],r=[];this.branchUpstreamRowIndices=[];const i=[],s=[],a=[],l=[],c={};if(de(this.workDirStats)&&e.length>0&&!he(e[0].type)){const t=function(e){const t=e.find(ce);return t?.sha||void 0}(e),o={sha:f.ch,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:f.ch,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!de(this.workDirStats)&&e.length>0&&he(e[0].type)&&e.shift();const h=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,d)=>{const u=this.childrenBySha[e.sha]?.length>0,p=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,h):[],m=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,h):[],g=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,h,Boolean(c[e.sha]||u)):[],v=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],y=p.length>0||m.length>0||g.length>0,C=p.length>0||m.length>0;if(e.type!==f.o$&&e.type!==f.lH||c[e.sha]){if(e.type===f.kP&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==f.o$&&e.type!==f.lH||c[e.sha]||y||u||(o[e.sha]=!0);const S=o[e.sha],_={...e,heads:p,remotes:m,tags:g,parents:v,column:S?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:y,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(!S){let o;const c=t.get(e.sha);c?.length&&(c.sort(((e,t)=>{if(e.parentIndexScore<t.parentIndexScore)return-1;if(e.parentIndexScore>t.parentIndexScore)return 1;if(e.parentIndexScore===t.parentIndexScore){if(e.rowEntered<t.rowEntered)return-1;if(e.rowEntered>t.rowEntered)return 1}return 0})),o=c[0],_.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<v.length;n+=1){const r=v[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(C||o)&&void 0===i&&(i=[],t.set(r,i)),C?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:d,heads:p,remotes:m,tags:g}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:d})}const h=this.orderedGraphRows.length;if(_.rowIndex=h,p.length>0&&(i.push(h),p.some((e=>e.isCurrentHead))&&(this.headSha=_.sha,n.push(h))),m.length>0){s.push(h);for(const e of m)e.current&&(r.push(h),this.headUpstreamSha=_.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(h)}g.length>0&&a.push(h),e.type===f.kP&&l.push(h),this.orderedGraphRows.push(_)}this.processedGraphRowBySha[e.sha]=_})),this.markerRowIndices={...this.markerRowIndices,head:n,upstream:r,localBranches:i,remoteBranches:s,tags:a,stashes:l},clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=function(e){const{length:t}=e;if(0===t)return{min:0,max:0};if(1===t)return{min:0,max:e[0]};e.sort(((e,t)=>e-t));const o=e[0],n=e[Math.floor(.25*t)],r=e[Math.floor(.5*t)],i=e[Math.floor(.75*t)],s=e[t-1],a=i-n;return{min:Math.max(o,r-1.5*a),max:Math.min(s,r+1.5*a)}}(null!=this.rowsStats?Object.values(this.rowsStats).map((e=>e.additions+e.deletions)):[])}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=m.YJ.hour;r+=1)t.hour.push({date:e.getTime()-r*o,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=m.YJ.day;r+=1)t.day.push({date:e.getTime()-r*n,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=m.YJ.week;r+=1)t.week.push({date:e.getTime()-6048e5*r,label:1===r?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:r});const i=new Date;for(i.setHours(0,0,0,0),r=1;r<=m.YJ.month;r+=1)i.setMonth(i.getMonth()-1),i.setHours(0,0,0,0),t.month.push({date:i.getTime(),label:1===r?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:r});const s=new Date;for(s.setHours(0,0,0,0),r=1;r<=m.YJ.year;r+=1){let e;switch(s.setFullYear(s.getFullYear()-1),s.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case m.YJ.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:s.getTime(),label:e,timeUnit:"year",value:r})}return t}();Object.values(e).forEach((e=>{e.forEach((e=>{const{date:t}=e,o=this.orderedGraphRows.find((e=>e.date<t));o&&this.processedGraphRowBySha[o.sha]&&(this.processedGraphRowBySha[o.sha].timeLineEntry=e)}))}))}clearTimelines(){Object.keys(this.processedGraphRowBySha).forEach((e=>{this.processedGraphRowBySha[e].timeLineEntry&&delete this.processedGraphRowBySha[e].timeLineEntry}))}cleanupSelections(){const e=Object.keys(this.isSelectedBySha);for(let t=0;t<e.length;t+=1){const o=e[t];this.processedGraphRowBySha[o]||delete this.isSelectedBySha[o]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,n={};for(let i=0;i<=o;i+=1)if(i<t){const t=e[w(i)];n[i]="rgba"===(r=u(t)).type?`rgba(${r.r}, ${r.g}, ${r.b}, ${Number(r.a.toFixed(2))})`:`hsla(${r.h}, ${(100*r.s).toFixed(2)}%, ${(100*r.l).toFixed(2)}%, ${Number(r.a.toFixed(2))})`}else{const e=n[i%t];n[i]=e}var r;return n}getNumGraphColumns(e){const t=e["--num-columns-supported"],o=Number.parseInt(t,m.uK);return Number.isNaN(o)?m.uK:o}expandLastZoneMinWidthForScrollbar(e){const t=e[e.length-1]?.type;if(!t)return;const o=q(this.props.cssVariables,!0),n=m.qi[t].minimumWidth+o,r=this.graphZonesByType[t];if(!r||null!=r.maximumWidth&&n>r.maximumWidth)return;r.minimumWidth=n;const i=m.qi[t].showIconWidth;null!=i&&(r.showIconWidth=i+o),r.currentWidth<r.minimumWidth&&(r.currentWidth=r.minimumWidth),r.preferredWidth<r.minimumWidth&&(r.preferredWidth=r.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){const o=K(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=K(e);for(;n>t;){const r=$(e,o);if(!r)break;const i=K(e,r.type);if(i+r.currentWidth>t){const o=re(r,e,t-i);this.updateWidthByZone(o,r.type)}n=K(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort(((e,t)=>this.graphZonesByType[e].order<this.graphZonesByType[t].order?-1:this.graphZonesByType[e].order>this.graphZonesByType[t].order?1:0)).filter((e=>!this.graphZonesByType[e].isHidden)).map((e=>this.graphZonesByType[e]))}expandZoneWidthsToFitWidth(e,t,o){let n=K(e);for(;n<t;){const r=Y(e,o);if(!r)break;const i=K(e,r.type),s=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let o=t-i;!X(r.type,e)&&o>s&&(o=s),o=re(r,e,o),this.updateWidthByZone(o,r.type)}n=K(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,n)=>{t.forEach((e=>{o&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:o||(this.excludeRefsById[e.id]=e)})),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,o,n?this.processedGraphRowBySha[n]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){De={},Me={},xe={},Te={},D={}}onZoneEnter=(e,t,o,n)=>{t!==m.jZ&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o?.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=se(t.type,e),s=this.graphZonesByType[t.type];r>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered()};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=B(((e,t)=>{const o=Math.floor(t),n=Math.floor(e),r=o!==this.graphHeight,i=n!==this.graphWidth,s={};if(r&&(this.graphHeight=o,s.height=o),i){this.graphWidth=n;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(r||i)&&(this.setState(s),r&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))}));onGraphVisibleRowsUpdated(){if(!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows||!this.orderedGraphRows.length)return;const{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();-1===e||-1===t||e>=this.orderedGraphRows.length||t>=this.orderedGraphRows.length||e===this.lastTopVisibleRowIndex&&t===this.lastBottomVisibleRowIndex||(this.lastTopVisibleRowIndex=e,this.lastBottomVisibleRowIndex=t,this.props.onGraphVisibleRowsChanged&&this.props.onGraphVisibleRowsChanged(this.orderedGraphRows[e],this.orderedGraphRows[t]))}getCurrentPlatform(){return this.props.platform||"darwin"}isMacOSPlatform(){return"darwin"===this.getCurrentPlatform()}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=function(e){const t=e||_;let o="";const n=Object.keys(t);o+=".gk-graph {\n";for(const e of n)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}(t);return a().createElement(a().Fragment,null,a().createElement("style",{nonce:o},n),a().createElement("div",{className:"gk-graph"},e))};render(){const{columnsSettings:e,isInUnsupportedRebase:t,isCommitting:o,repoPath:n,nonce:r,wipMessageEditable:s}=this.props,{avatarUrlByEmail:l,columnColorByColumn:c,contexts:h,createRefFormData:d,cssVariablesWithDefaults:u,currentlyHoveredCommitSha:p,dimMergeCommits:f,dimRowsOfSelectedCommit:g,enableShowHideRefsOptions:v,highlightRowsOnRefHover:y,showGhostRefsOnRowHover:C,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:_,enabledScrollMarkerTypes:w,graphZones:R,hasMoreCommits:b,height:T,highlightedShas:E,hoveredRefGroup:x,hoveredRefZoneSha:O,themeOpacityFactor:M,isContainerWindowFocused:I,isLoadingRows:D,rowsStatsLoading:N,numGraphColumns:z,pendingCommitMessageSummary:k,processedRows:H,refMetadataById:G,useAuthorInitialsForAvatars:W,scrollToAlignment:A,scrollToIndex:P,scrollTop:L,scrollLeft:F,shaLength:B,width:U,workDirStats:j}=this.state,V=i()("flex","graph-container"),$=(Y=H,e=>e===Y.length?"SHOW_MORE_COMMITS":Y[e].sha);var Y;const q=(K=e=>$(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:a,parent:l,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!a&&!y;for(let e=h;e<=d;e+=1){const h=c.getSizeAndPositionOfCell(e);for(let c=n;c<=r;c+=1){const n=o.getSizeAndPositionOfCell(c),r=c>=f.start&&c<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${c}`;let y;C&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:a,isVisible:r,key:d,parent:l,rowIndex:e,style:y};let _;if(!a||s||p)_=t(S);else{const o=K(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),_=v[d].cell}null!=_&&g.push(_)}}return g});var K;const X=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),J=this.getRightGutterBoxShadowAlpha(M),ee=this.getLeftGutterBoxShadowAlpha(M),te=this.getNodeOffsetByColumn(),oe=this.getNodeOpacityByColumn(),ne=se(m.jZ,R),re=se(m.Wm,R),ie=-1!==ne&&-1!==re&&re-ne==1,ae=!x,le={avatarUrlByEmail:l,createRefFormData:d,dimMergeCommits:f,dimRowsOfSelectedCommit:g,enableShowHideRefsOptions:v,highlightRowsOnRefHover:y,showGhostRefsOnRowHover:C,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:_,enabledScrollMarkerTypes:w,isInUnsupportedRebase:t,isCommitting:o||!1,isContainerWindowFocused:I,pendingCommitMessageSummary:k,workDirStats:j,repoPath:n,columnColorByColumn:c,currentlyHoveredCommitSha:p,cssVariables:u,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:R,hasMoreCommits:b,height:T,highlightedShas:E,hoveredRefGroup:x,hoveredRefZoneSha:O,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:D,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:ee,leftGutterWidth:X,nodeOffsetByColumn:te,nodeOpacityByColumn:oe,nonce:r,numGraphColumns:z,processedRows:H,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:G,rightGutterBoxShadowAlpha:J,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,useAuthorInitialsForAvatars:W,scrollToAlignment:A,scrollLeft:F,scrollTop:L,shaLength:B,shouldShowRefLine:ie,width:U,wipMessageEditable:s||!1,onMissingAvatar:this.onMissingAvatar,onMissingRefMetadata:this.onMissingRefMetadata,clearCurrentlyHoveredGraphCommit:this.onClearCurrentlyHoveredGraphCommit,setAsCurrentlyHoveredGraphCommit:this.onCurrentlyHoveredGraphCommit,onClickRef:this.onClickRef,onClickCommit:this.onClickCommit,onDoubleClickCommit:this.onDoubleClickCommit,onBlurWipNodeInput:this.onBlurWipNodeInput,onFocusWipNodeInput:this.onFocusWipNodeInput,onDoubleClickRef:this.onDoubleClickRef,onMessageChange:this.onMessageChange,onRefBeginDrag:this.onRefBeginDrag,onRefCanDrag:this.onRefCanDrag,onRefCanDrop:this.onRefCanDrop,onRefCreate:this.onRefCreate,onRefCreateCancel:this.onRefCreateCancel,onRefCreateContextMenu:this.onRefCreateContextMenu,onRefDragEnter:this.onRefDragEnter,onRefDragLeave:this.onRefDragLeave,onRefDrop:this.onRefDrop,onRefEndDrag:this.onRefEndDrag,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,formatRefShorthand:this.formatRefShorthandCallback,isRefShorthandValid:this.isRefShorthandValidCallback,translate:this.translateCallback},ce={[m.jZ]:Ls(le,$),[m.Wm]:gs(le,$),[m.KE]:Ji(le,$),[m.GF]:xi(le,$),[m.PL]:Oi(le,$),[m.av]:es(le,$),[m.WD]:Ri(le,$),[m.Gn]:Fs(le,$)},he=R.map(((e,t)=>a().createElement(Fn,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:ce,columnIndex:t,enabledScrollMarkerTypes:w,enableResizer:ae,getExternalIcon:this.getIconCallback,getKeyForCell:$,graphHeight:T-m.rl,graphWidth:U,graphZones:R,graphZoneType:e.type,hasMoreCommits:b,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,u),isLoadingRows:D,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===m.jZ?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,x,O),rowCount:H.length,scrollLeft:F,scrollToAlignment:e.type===m.jZ?A:void 0,scrollToIndex:e.type===m.jZ?P:void 0,scrollTop:L,smartCellRangeRenderer:q,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,u)}))),de=this.graphContainerRef?.current&&a().createElement(fi,{columnsSettings:e,dragAppendToContainer:this.graphContainerRef?.current,enableResizer:ae,enableShowHideRefsOptions:v,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:R,headerContext:h?.header,height:T,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onFilterColumnClick:this.onFilterColumnClick,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onSettingsClick:this.onSettingsClick,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,rowsStatsLoading:N,settingsContext:h?.settings,showRemoteNamesOnRefs:S,translate:this.translateCallback,width:U}),ue=a().createElement("div",{className:"graph-component","data-vscode-context":Z(h?.graph),onBlur:e=>this.onGraphContainerBlurred(e,x,O),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},de,a().createElement("div",{className:E&&Object.keys(E).length?i()(V,"graph-highlighted"):V,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:T,width:U},tabIndex:-1},he));return this.decorateWithHelmet(ue,u,r)}}var Zs=Bs},827:(e,t,o)=>{o.d(t,{Gu:()=>c,S7:()=>r,br:()=>s,ch:()=>l,kP:()=>a,lH:()=>i,o$:()=>n});const n="commit-node",r="merge-conflict-node",i="merge-node",s="unsupported-rebase-warning-node",a="stash-node",l="work-dir-changes";var c=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(c||{})},8289:()=>{},2149:()=>{},3308:(e,t,o)=>{o.d(t,{$0:()=>s,$s:()=>h,An:()=>d,B:()=>H,B8:()=>x,GF:()=>re,Gn:()=>ee,IX:()=>$,It:()=>R,KE:()=>ne,LG:()=>C,MQ:()=>X,NP:()=>f,O5:()=>m,OR:()=>ge,Oi:()=>F,P3:()=>p,PB:()=>N,PL:()=>ie,QW:()=>P,Qh:()=>de,RG:()=>ce,Rg:()=>z,SZ:()=>L,Um:()=>le,VB:()=>Y,Vh:()=>G,WD:()=>ae,Wm:()=>oe,Wu:()=>g,X9:()=>U,Y8:()=>S,YJ:()=>me,aV:()=>j,ai:()=>pe,am:()=>k,at:()=>u,av:()=>se,b4:()=>J,cZ:()=>a,dF:()=>r,dH:()=>q,d_:()=>he,eq:()=>y,iq:()=>n,jZ:()=>te,j_:()=>O,jg:()=>b,jn:()=>v,l3:()=>c,lG:()=>E,m8:()=>_,mt:()=>W,mu:()=>Q,os:()=>K,pj:()=>M,q1:()=>w,qG:()=>l,qi:()=>fe,rl:()=>i,uK:()=>ue,v1:()=>A,wd:()=>V,wi:()=>Z,wy:()=>I,xI:()=>T,yv:()=>D,ze:()=>B});const n="#199489",r=3,i=26,s=28,a=22,l=50*s,c=.5,h=3,d=3,u=s,p=a,f=3,m=p/2,g=56,v=56,y=32,C=a,S=C-4,_=55,w=50,R="short+short",b=55,T=50,E=50,x=50,O=55,M=18,I=32,D=2,N=6,z=14,k=5,H=z+k,G=10,W=55,A=50,P=10,L=25,F=58,B=22,Z=2,U={dark:1,light:.5},j=10,V=12,$=6,Y=3,q=12,K="auto",X="center",Q=7,J=4,ee="timelineMessage",te="ref",oe="graph",ne="message",re="author",ie="datetime",se="sha",ae="changes";var le=(e=>(e.Compact="compact",e.Rich="rich",e.Text="text",e))(le||{}),ce=(e=>(e.Block="block",e.FullLine="fullLine",e.ThinLine="thinLine",e))(ce||{});const he={block:{type:"block",baseHeight:1*s,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*s,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*s,minHeight:1,maxHeight:2}},de={stashes:{type:"stashes",colorCssKey:"--color-graph-scroll-marker-stashes",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--color-graph-scroll-marker-tags",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--color-graph-scroll-marker-remote-branches",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--color-graph-scroll-marker-local-branches",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--color-graph-scroll-marker-highlights",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--color-graph-scroll-marker-upstream",lanes:[1,2],shape:"block"},head:{type:"head",colorCssKey:"--scroll-marker-head-color",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},ue=10,pe=6,fe={[re]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:y,showIconWidth:_},[ie]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:w,showIconWidth:b},[ne]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:x,showIconWidth:O},[se]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:T,showIconWidth:E},[oe]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:g,showIconWidth:v},[te]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:I,showIconWidth:W},[ae]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:A,showIconWidth:F}},me={hour:23,day:6,week:4,month:11,year:6},ge={added:0,deleted:0,modified:0}},9453:(e,t,o)=>{o.d(t,{AI:()=>i,mQ:()=>n,uq:()=>r});const n="pullRequest",r="upstream",i=[n,r]},7334:(e,t,o)=>{function n(e){switch(e){case"github":return"GitHub";case"githubEnterprise":return"GitHub Enterprise";case"gitlab":return"GitLab";case"gitlabSelfHosted":return"GitLab Self-Hosted";case"azureDevops":return"Azure DevOps";case"bitbucket":return"Bitbucket";case"bitbucketServer":return"Bitbucket Server";default:return e}}o.d(t,{y:()=>n})},8649:(e,t,o)=>{o.d(t,{V:()=>n});const n={HEAD:"head",REMOTE:"remote",TAG:"tag"}},664:()=>{},6756:()=>{},3316:e=>{function t(e,t,o,n){var r,i=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:o(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function o(e,t,o){var n=Array.prototype.slice.call(arguments,3),r=o(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function n(e,t,o,n,r){return o.bind(t,e,n,r)}function r(e,r){return n(e,this,1===e.length?t:o,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:a,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:o,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,o){return n(e,this,t,o.cache.create(),o.serializer)}}},1143:e=>{e.exports=function(e,t,o,n,r,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,n,r,i,s,a],h=0;(l=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="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=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t],l=void 0===a?"undefined":n(a);return r.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(o(6689)),r=o(9864),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t];return n.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(a)?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},5638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,o,n,r,i){var s=n||"<<anonymous>>",a=i||o;if(null==t[o])return new Error("The "+r+" `"+a+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),h=5;h<l;h++)c[h-5]=arguments[h];return e.apply(void 0,[t,o,n,r,i].concat(c))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,o,n,r,i,s){var a=r||"<<anonymous>>",l=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+a+"`."):null;for(var c=arguments.length,h=Array(c>6?c-6:0),d=6;d<c;d++)h[d-6]=arguments[d];return e.apply(void 0,[o,n,a,i,l].concat(h))}var o=t.bind(null,!1);return o.isRequired=t.bind(null,!0),o},e.exports=t.default},2703:(e,t,o)=>{var n=o(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,s){if(s!==n){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 o={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:r};return o.PropTypes=o,o}},5697:(e,t,o)=>{e.exports=o(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},977:(e,t,o)=>{var n=o(7137),r=o(2584);e.exports=function(){return n.apply(this,r(arguments)).on("cloned",(function(t){e(t),r(t.getElementsByTagName("*")).forEach(e)}));function e(e){e.removeAttribute("data-reactid")}}},9921:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,u=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,C=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case l:return e;default:return t}}case r:return t}}}function w(e){return _(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||_(e)===h},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===u},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===C||e.$$typeof===S||e.$$typeof===v)},t.typeOf=_},9864:(e,t,o)=>{e.exports=o(9921)},6871:(e,t,o)=>{function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function i(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function s(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 o=null,s=null,a=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\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=n,t.componentWillReceiveProps=r),"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=i;var h=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;h.call(this,e,t,n)}}return e}o.r(t),o.d(t,{polyfill:()=>s}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,o)=>{t.__esModule=!0;var n=c(o(5697)),r=c(o(621)),i=c(o(6689)),s=c(o(6405)),a=c(o(3464)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}function h(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 d=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),d=0;d<r;d++)c[d]=arguments[d];return o=n=h(this,e.call.apply(e,[this].concat(c))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,a.default)(n.props.container,(0,l.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?i.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(s.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,a.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},2856:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=h(o(5697)),i=h(o(8853)),s=h(o(6689)),a=h(o(5425)),l=h(o(7487)),c=h(o(2395));function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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,o,n));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!o.show},r.onHiddenListener=r.handleHidden.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,o=e.containerPadding,n=e.target,r=e.placement,i=e.shouldUpdatePosition,h=e.rootClose,d=e.children,u=e.transition,p=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||u&&!this.state.exited))return null;var f=d;if(f=s.default.createElement(l.default,{container:t,containerPadding:o,target:n,placement:r,shouldUpdatePosition:i},f),u){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,C=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:C},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(a.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},a.default.propTypes,l.default.propTypes,{show:r.default.bool,rootClose:r.default.bool,onHide:function(e){var t=r.default.func;e.rootClose&&(t=t.isRequired);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},transition:i.default,onEnter:r.default.func,onEntering:r.default.func,onEntered:r.default.func,onExit:r.default.func,onExiting:r.default.func,onExited:r.default.func}),t.default=d,e.exports=t.default},5425:(e,t,o)=>{t.__esModule=!0;var n=h(o(5697)),r=h(o(621)),i=h(o(6689)),s=h(o(6405)),a=h(o(3464)),l=h(o(290)),c=h(o(7281));function h(e){return e&&e.__esModule?e:{default:e}}function d(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 u=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return o=n=d(this,e.call.apply(e,[this].concat(i))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,a.default)(e.container,(0,l.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);u.displayName="Portal",u.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=s.default.createPortal?u:c.default,e.exports=t.default},7487:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=p(o(4184)),i=p(o(5697)),s=p(o(621)),a=o(6689),l=p(a),c=p(o(6405)),h=p(o(7603)),d=p(o(3464)),u=p(o(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}var m=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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,o,n));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&c.default.findDOMNode(t)||null},r.maybeUpdatePosition=function(e){var t=r.getTarget();(r.props.shouldUpdatePosition||t!==r._lastTarget||e)&&r.updatePosition(t)},r.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},r._needsFlush=!1,r._lastTarget=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))},t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=f(e,["children","className"]),s=this.state,c=s.positionLeft,h=s.positionTop,d=f(s,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var u=l.default.Children.only(t);return(0,a.cloneElement)(u,n({},i,d,{positionLeft:c,positionTop:h,className:(0,r.default)(o,u.props.className),style:n({},u.props.style,{left:c,top:h})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=c.default.findDOMNode(this),o=(0,d.default)(this.props.container,(0,u.default)(this).body);this.setState((0,h.default)(this.props.placement,t,e,o,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(l.default.Component);m.propTypes={target:i.default.oneOfType([s.default,i.default.func]),container:i.default.oneOfType([s.default,i.default.func]),containerPadding:i.default.number,placement:i.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:i.default.bool},m.displayName="Position",m.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=m,e.exports=t.default},2395:(e,t,o)=>{t.__esModule=!0;var n=c(o(1629)),r=c(o(5697)),i=c(o(6689)),s=c(o(6405)),a=c(o(6616)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,o,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,l.default)(i);i.documentMouseCaptureListener=(0,a.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,a.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,a.default)(t,"keyup",i.handleKeyUp)},i.removeEventListeners=function(){i.documentMouseCaptureListener&&i.documentMouseCaptureListener.remove(),i.documentMouseListener&&i.documentMouseListener.remove(),i.documentKeyupListener&&i.documentKeyupListener.remove()},i.handleMouseCapture=function(e){var t;i.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,n.default)(s.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){27===e.keyCode&&i.props.onRootClose&&i.props.onRootClose(e)},i.preventMouseRootClose=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(i.default.Component);h.displayName="RootCloseWrapper",h.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},h.defaultProps={event:"click"},t.default=h,e.exports=t.default},6616:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i){return(0,n.default)(e,t,o,i),{remove:function(){(0,r.default)(e,t,o,i)}}};var n=i(o(1416)),r=i(o(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i,s){var a="BODY"===i.tagName?(0,n.default)(o):(0,r.default)(o,i),c=(0,n.default)(t),h=c.height,d=c.width,u=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=a.top+(a.height-h)/2,u="left"===e?a.left-d:a.left+a.width;var g=function(e,t,o,n){var r=l(o),i=r.scroll,s=r.height,a=e-n-i,c=e+n-i+t;return a<0?-a:c>s?s-c:0}(p,h,i,s);p+=g,m=50*(1-2*g/h)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');u=a.left+(a.width-d)/2,p="top"===e?a.top-h:a.top+a.height;var v=function(e,t,o,n){var r=l(o),i=r.width,s=e-n,a=e+n+t;if(s<0)return-s;if(a>i)return i-a;return 0}(u,d,i,s);u+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var n=a(o(2565)),r=a(o(7265)),i=a(o(504)),s=a(o(290));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=void 0,o=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,o=window.innerHeight,r=(0,i.default)((0,s.default)(e).documentElement)||(0,i.default)(e);else{var a=(0,n.default)(e);t=a.width,o=a.height,r=(0,i.default)(e)}return{width:t,height:o,scroll:r}}e.exports=t.default},3464:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,r=o(6405),i=(n=r)&&n.__esModule?n:{default:n};e.exports=t.default},290:(e,t,o)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(n.default.findDOMNode(e))};var n=i(o(6405)),r=i(o(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},644:(e,t,o)=>{t.ZP=t.cn=t.d0=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(5697)),r=a(o(6689)),i=a(o(6405)),s=o(6871);o(4726);function a(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";var c="exited";var h="entering";t.d0=h;var d="entered";t.cn=d;var u="exiting";var p=function(e){var t,o;function n(t,o){var n;n=e.call(this,t,o)||this;var r,i=o.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(r=c,n.appearStatus=h):r=d:r=t.unmountOnExit||t.mountOnEnter?l:c,n.state={status:r},n.nextCallback=null,n}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var s=n.prototype;return s.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==h&&o!==d&&(t=h):o!==h&&o!==d||(t=u)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,o,n=this.props.timeout;return e=t=o=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,o=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:o}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var o=i.default.findDOMNode(this);t===h?this.performEnter(o,e):this.performExit(o)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},s.performEnter=function(e,t){var o=this,n=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||n?(this.props.onEnter(e,r),this.safeSetState({status:h},(function(){o.props.onEntering(e,r),o.onTransitionEnd(e,s,(function(){o.safeSetState({status:d},(function(){o.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){o.props.onEntered(e)}))},s.performExit=function(e){var t=this,o=this.props.exit,n=this.getTimeouts();o?(this.props.onExit(e),this.safeSetState({status:u},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(n){o&&(o=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(e,t,o){this.setNextCallback(o);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,o=t.children,n=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof o)return o(e,n);var i=r.default.Children.only(o);return r.default.cloneElement(i,n)},n}(r.default.Component);function f(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,s.polyfill)(p);t.ZP=m},4726:(e,t,o)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=o(5697))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6115:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},670:e=>{e.exports=function(){}},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},8149:(e,t,o)=>{e.exports=o(3285)},3562:(e,t,o)=>{e.exports=o(7965)},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{o.r(n),o.d(n,{CHANGES_BAR_MIN_WIDTH:()=>l.QW,CHANGES_BAR_RIGHT_MARGIN:()=>l.SZ,CHANGES_ZONE_MIN_WIDTH:()=>l.v1,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>l.Oi,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>l.Y8,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>l.LG,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>l.eq,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>l.m8,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>l.q1,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>l.jg,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>l.B8,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>l.j_,COMMIT_NODE_MIN_ALPHA:()=>l.l3,COMMIT_SHA_ZONE_MIN_WIDTH:()=>l.xI,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>l.lG,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>l.Wu,COMMIT_ZONE_EDGE_ARC_PADDING:()=>l.NP,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>l.O5,COMMIT_ZONE_MARGIN_BOTTOM:()=>l.$s,COMMIT_ZONE_MARGIN_TOP:()=>l.An,COMMIT_ZONE_ROW_HEIGHT:()=>l.at,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>l.P3,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>l.jn,CommitDateTimeSources:()=>r.Gu,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>l.iq,DEFAULT_COMMIT_SHA_LENGTH:()=>l.ai,DEFAULT_WORKDIR_STATS:()=>l.OR,DndComponent:()=>e.Z,GRAPH_HEADER_ROW_HEIGHT:()=>l.rl,GRAPH_ROW_HEIGHT:()=>l.$0,GRAPH_ROW_INNER_HEIGHT:()=>l.cZ,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>l.qG,GRAPH_SCROLL_MARKER_LANES:()=>l.dF,GraphColumnMode:()=>l.Um,GraphMarkerShape:()=>l.RG,HEADER_ROW_HEIGHT:()=>l.ze,HEADER_ROW_MARGIN_BOTTOM:()=>l.wi,INLINE_SUMMARY_MARGIN_LEFT:()=>l.aV,LeftPanelToGraphMarginGap:()=>l.mu,OPACITY_FACTOR_BY_THEME:()=>l.X9,REF_NODE_ICON_MARGIN:()=>l.am,REF_NODE_ICON_SPACING:()=>l.B,REF_NODE_ICON_WIDTH:()=>l.Rg,REF_NODE_OUTER_SPACING:()=>l.Vh,REF_ZONE_MARGIN_LEFT:()=>l.yv,REF_ZONE_MARGIN_RIGHT:()=>l.PB,REF_ZONE_MIN_WIDTH:()=>l.wy,REF_ZONE_SHOW_ICON_WIDTH:()=>l.mt,REF_ZONE_TEXT_HEIGHT:()=>l.pj,ResizableHandleCorrection:()=>l.b4,SCROLL_TO_ALIGNMENT_AUTO:()=>l.os,SCROLL_TO_ALIGNMENT_CENTER:()=>l.MQ,TIMESTAMP_FORMAT_DATE_TIME:()=>l.It,TINY_FILES_READOUT_FONT_SIZE:()=>l.wd,TINY_FILES_READOUT_RIGHT_MARGIN:()=>l.IX,TINY_ICON_RIGHT_MARGIN:()=>l.VB,TINY_ICON_SIZE:()=>l.dH,allMetadataTypes:()=>c.AI,changesZone:()=>l.WD,commitAuthorZone:()=>l.GF,commitDateTimeZone:()=>l.PL,commitMessageZone:()=>l.KE,commitNodeType:()=>r.o$,commitShaZone:()=>l.av,commitZone:()=>l.Wm,default:()=>f,getHostingServiceName:()=>h.y,graphMarkerMetadata:()=>l.Qh,graphMarkerShapeMetadata:()=>l.d_,graphZoneMetaData:()=>l.qi,lookbackLimitByPeriod:()=>l.YJ,mergeConflictNodeType:()=>r.S7,mergeNodeType:()=>r.lH,numGraphColumnsDefault:()=>l.uK,pullRequestMetadataType:()=>c.mQ,refTypes:()=>d.V,refZone:()=>l.jZ,stashNodeType:()=>r.kP,timelineMsgRowRenderId:()=>l.Gn,unsupportedRebaseWarningNodeType:()=>r.br,upstreamMetadataType:()=>c.uq,workDirType:()=>r.ch});var e=o(9915),t=o(1541),r=o(827),i=o(2149),s={};for(const e in i)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(s[e]=()=>i[e]);o.d(n,s);var a=o(8289);s={};for(const e in a)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(s[e]=()=>a[e]);o.d(n,s);var l=o(3308),c=o(9453),h=o(7334),d=o(8649),u=o(664);s={};for(const e in u)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refTypes"].indexOf(e)<0&&(s[e]=()=>u[e]);o.d(n,s);var p=o(6756);s={};for(const e in p)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refTypes"].indexOf(e)<0&&(s[e]=()=>p[e]);o.d(n,s);var f=t.Z})(),module.exports=n})();
|
|
1
|
+
(()=>{var e={2584:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},4184:(e,t)=>{var o;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},8514:(e,t,o)=>{var n=o(6115);e.exports=function(e,t,o){e&&n((function(){e.apply(o||null,t||[])}))}},5229:(e,t,o)=>{var n=o(2584),r=o(8514);e.exports=function(e,t){var o=t||{},i={};return void 0===e&&(e={}),e.on=function(t,o){return i[t]?i[t].push(o):i[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var n=arguments.length;if(1===n)delete i[t];else if(0===n)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(o),1)}return e},e.emit=function(){var t=n(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(i[t]||[]).slice(0);return function(){var i=n(arguments),a=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===i.length?i[0]:i;return s.forEach((function(n){o.async?r(n,i,a):n.apply(a,i),n._once&&e.off(t,n)})),e}},e}},3285:(e,t,o)=>{o(8691),e.exports=o(4579).Array.isArray},6981:(e,t,o)=>{o(2699),e.exports=o(4579).Object.assign},5627:(e,t,o)=>{o(6760);var n=o(4579).Object;e.exports=function(e,t){return n.create(e,t)}},7965:(e,t,o)=>{o(520),e.exports=o(4579).Object.entries},8613:(e,t,o)=>{o(961),e.exports=o(4579).Object.keys},433:(e,t,o)=>{o(9349),e.exports=o(4579).Object.setPrototypeOf},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:(e,t,o)=>{var n=o(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,o)=>{var n=o(7932),r=o(8728),i=o(6531);e.exports=function(e){return function(t,o,s){var a,l=n(t),c=r(l.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((e||h in l)&&l[h]===o)return e||h||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,o)=>{var n=o(5663);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,o)=>{e.exports=!o(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,o)=>{var n=o(6727),r=o(3938).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(e,t,o)=>{var n=o(3938),r=o(4579),i=o(9216),s=o(1818),a=o(7069),l="prototype",c=function(e,t,o){var h,d,u,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,C=f?r:r[t]||(r[t]={}),S=C[l],_=f?n:m?n[t]:(n[t]||{})[l];for(h in f&&(o=t),o)(d=!p&&_&&void 0!==_[h])&&a(C,h)||(u=d?_[h]:o[h],C[h]=f&&"function"!=typeof _[h]?o[h]:v&&d?i(u,n):y&&_[h]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((C.virtual||(C.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938: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)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),a=o(6530),l=o(799),c=Object.assign;e.exports=!c||o(7929)((function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var o=a(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=l(arguments[h++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],n&&!u.call(f,p)||(o[p]=f[p]);return o}:c},526:(e,t,o)=>{var n=o(2159),r=o(7856),i=o(3338),s=o(8989)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=o(7467)("iframe"),n=i.length;for(t.style.display="none",o(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(a[l]=n(e),o=new a,a[l]=null,o[s]=e):o=c(),void 0===t?o:r(o,t)}},4743:(e,t,o)=>{var n=o(2159),r=o(3758),i=o(3206),s=Object.defineProperty;t.f=o(9666)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},7856:(e,t,o)=>{var n=o(4743),r=o(2159),i=o(6162);e.exports=o(9666)?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),a=s.length,l=0;a>l;)n.f(e,o=s[l++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),a=o(7069),l=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!n.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,o)=>{var n=o(7069),r=o(7932),i=o(7428)(!1),s=o(8989)("IE_PROTO");e.exports=function(e,t){var o,a=r(e),l=0,c=[];for(o in a)o!=s&&n(a,o)&&c.push(o);for(;t.length>l;)n(a,o=t[l++])&&(~i(c,o)||c.push(o));return c}},6162:(e,t,o)=>{var n=o(2963),r=o(3338);e.exports=Object.keys||function(e){return n(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},4938:(e,t,o)=>{var n=o(3856),r=o(4579),i=o(7929);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],s={};s[e]=t(o),n(n.S+n.F*i((function(){o(1)})),"Object",s)}},2050:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(7932),s=o(6274).f;e.exports=function(e){return function(t){for(var o,a=i(t),l=r(a),c=l.length,h=0,d=[];c>h;)o=l[h++],n&&!s.call(a,o)||d.push(e?[o,a[o]]:a[o]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,o)=>{var n=o(6727),r=o(2159),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=o(9216)(Function.call,o(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,o){return i(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},8989:(e,t,o)=>{var n=o(250)("keys"),r=o(5730);e.exports=function(e){return n[e]||(n[e]=r(e))}},250:(e,t,o)=>{var n=o(4579),r=o(3938),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,o)=>{var n=o(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},7932:(e,t,o)=>{var n=o(799),r=o(8333);e.exports=function(e){return n(r(e))}},8728:(e,t,o)=>{var n=o(1052),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},6530:(e,t,o)=>{var n=o(8333);e.exports=function(e){return Object(n(e))}},3206:(e,t,o)=>{var n=o(6727);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},8691:(e,t,o)=>{var n=o(3856);n(n.S,"Array",{isArray:o(1421)})},2699:(e,t,o)=>{var n=o(3856);n(n.S+n.F,"Object",{assign:o(8082)})},6760:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{create:o(526)})},961:(e,t,o)=>{var n=o(6530),r=o(6162);o(4938)("keys",(function(){return function(e){return r(n(e))}}))},9349:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{setPrototypeOf:o(2906).set})},520:(e,t,o)=>{var n=o(3856),r=o(2050)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,o)=>{var n=o(9638),r=o(4874),i=o.g.document,s=function(e,t,o,n){return e.addEventListener(t,o,n)},a=function(e,t,o,n){return e.removeEventListener(t,o,n)},l=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<l.length;n++)if((r=l[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=l[n].wrapper;return l.splice(n,1),r}}o.g.addEventListener||(s=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=c(e,t,n)||function(e,t,n){return function(t){var r=t||o.g.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return l.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},a=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:a,fabricate:function(e,t,o){var s=-1===r.indexOf(t)?new n(t,{detail:o}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}},4874:(e,t,o)=>{var n=[],r="",i=/^on/;for(r in o.g)i.test(r)&&n.push(r.slice(2));e.exports=n},9638:(e,t,o)=>{var n=o.g.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var o=document.createEvent("CustomEvent");return t?o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):o.initCustomEvent(e,!1,!1,void 0),o}:function(e,t){var o=document.createEventObject();return o.type=e,t?(o.bubbles=Boolean(t.bubbles),o.cancelable=Boolean(t.cancelable),o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}},3249:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.removeEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.detachEvent("on"+t,o)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.addEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,o.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},9981:(e,t)=>{t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},1629:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=n(o(139)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},7624:(e,t)=>{t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},2565:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),o=(0,i.default)(t),n=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:a.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=n(o(1629)),i=n(o(7624)),s=n(o(9981));e.exports=t.default},2939:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==s(e)&&"static"===(0,i.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var r=n(o(9981)),i=n(o(162));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o,n={top:0,left:0};"fixed"===(0,c.default)(e,"position")?o=e.getBoundingClientRect():(t=t||(0,s.default)(e),o=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,i.default)(t)),n.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,l.default)(t)||0);return(0,r.default)({},o,{top:o.top-n.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:o.left-n.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var r=n(o(434)),i=n(o(2565)),s=n(o(2939)),a=n(o(504)),l=n(o(5770)),c=n(o(162));e.exports=t.default},5770:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft:e.scrollLeft;o?o.scrollTo(t,"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop):e.scrollLeft=t};var r=n(o(7624));e.exports=t.default},504:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop:e.scrollTop;o?o.scrollTo("pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=n(o(7624));e.exports=t.default},7023:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&o&&o[t]&&(n=o[t]),s.test(n)&&!i.test(t)){var a=o.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=a,c&&(l.left=c)}return n}}};var r=n(o(3497)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t,o){var n="",h="",d=t;if("string"==typeof t){if(void 0===o)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=o}Object.keys(d).forEach((function(t){var o=d[t];o||0===o?(0,c.default)(t)?h+=t+"("+o+") ":n+=(0,i.default)(t)+": "+o+";":(0,a.default)(e,(0,i.default)(t))})),h&&(n+=l.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),a=n(o(1760)),l=o(702),c=n(o(3293));e.exports=t.default},1760:(e,t)=>{t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},3293:(e,t)=>{t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,o)=>{var n=o(4836);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 r,i,s,a,l,c,h,d,u,p,f,m=n(o(139)),g="transform";if(t.transform=g,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=h,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=f,t.animationTiming=p,t.animationDuration=u,t.animationName=d,m.default){var v=function(){for(var e,t,o=document.createElement("div").style,n={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}},r=Object.keys(n),i="",s=0;s<r.length;s++){var a=r[s];if(a+"TransitionProperty"in o){i="-"+a.toLowerCase(),e=n[a]("TransitionEnd"),t=n[a]("AnimationEnd");break}}!e&&"transitionProperty"in o&&(e="transitionend");!t&&"animationName"in o&&(t="animationend");return o=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=a=r+"-transition-property",t.transitionDuration=l=r+"-transition-duration",t.transitionDelay=h=r+"-transition-delay",t.transitionTiming=c=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=u=r+"-animation-duration",t.animationTiming=p=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:a,timing:c,delay:h,duration:l};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,(function(e,t){return t.toUpperCase()}))};var o=/-(.)/g;e.exports=t.default},3497:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=n(o(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},4403:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=n(o(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},9425:e=>{var t={},o="(?:^|\\s)",n="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(o+e+n,"g"),r}e.exports={add:function(e,t){var o=e.className;o.length?r(t).test(o)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,o)=>{var n=o(5229),r=o(1808),i=o(9425),s=document,a=s.documentElement;function l(e,t,n,i){o.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],i):o.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],i),r[t](e,n,i))}function c(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function h(e,t){return void 0!==o.g[t]?o.g[t]:a.clientHeight?a[e]:s.body[e]}function d(e,t,o){var n,r=e||{},i=r.className;return r.className+=" gu-hide",n=s.elementFromPoint(t,o),r.className=i,n}function u(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e))))}function C(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function S(e,t){var o=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,_,w,R,b,T,E,x,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,D=null,N=t||{};void 0===N.moves&&(N.moves=p),void 0===N.accepts&&(N.accepts=p),void 0===N.invalid&&(N.invalid=function(){return!1}),void 0===N.containers&&(N.containers=e||[]),void 0===N.isContainer&&(N.isContainer=u),void 0===N.copy&&(N.copy=!1),void 0===N.copySortSource&&(N.copySortSource=!1),void 0===N.revertOnSpill&&(N.revertOnSpill=!1),void 0===N.removeOnSpill&&(N.removeOnSpill=!1),void 0===N.direction&&(N.direction="vertical"),void 0===N.ignoreInputTextSelection&&(N.ignoreInputTextSelection=!0),void 0===N.mirrorContainer&&(N.mirrorContainer=s.body);var z=n({containers:N.containers,start:function(e){var t=F(e);t&&B(t)},end:Z,cancel:Y,remove:$,destroy:function(){H(!0),j({})},canMove:function(e){return!!F(e)},dragging:!1});return!0===N.removeOnSpill&&z.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){z.dragging&&i.add(e,"gu-hide")})),H(),z;function k(e){return-1!==z.containers.indexOf(e)||N.isContainer(e)}function H(e){var t=e?"remove":"add";l(a,t,"mousedown",P),l(a,t,"mouseup",j)}function G(e){l(a,e?"remove":"add","mousemove",L)}function A(e){var t=e?"remove":"add";r[t](a,"selectstart",W),r[t](a,"click",W)}function W(e){I&&e.preventDefault()}function P(e){if(b=e.clientX,T=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=F(t);o&&(I=o,G(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function L(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==b||void 0===e.clientY||e.clientY!==T){if(N.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;G(!0),A(),Z(),B(r);var d,u={left:(d=_.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};w=S("pageX",e)-u.left,R=S("pageY",e)-u.top,i.add(O||_,"gu-transit"),function(){if(o)return;var e=_.getBoundingClientRect();(o=_.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),N.mirrorContainer.appendChild(o),l(a,"add","mousemove",Q),i.add(N.mirrorContainer,"gu-unselectable"),z.emit("cloned",o,_,"mirror")}(),Q(e)}}else j({})}function F(e){if(!(z.dragging&&o||k(e))){for(var t=e;g(e)&&!1===k(g(e));){if(N.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!N.invalid(e,t))if(N.moves(e,n,t,C(e)))return{item:e,source:n}}}function B(e){var t,o;t=e.item,o=e.source,("boolean"==typeof N.copy?N.copy:N.copy(t,o))&&(O=e.item.cloneNode(!0),z.emit("cloned",O,e.item,"copy")),y=e.source,_=e.item,E=x=C(e.item),z.dragging=!0,z.emit("drag",_,y)}function Z(){if(z.dragging){var e=O||_;V(e,g(e))}}function U(){I=!1,G(!0),A(!0)}function j(e){if(U(),z.dragging){var t=O||_,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&N.copySortSource||!O||i!==y)?V(t,i):N.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);O&&N.copySortSource&&t===y&&o.removeChild(_),K(t)?z.emit("cancel",e,y,y):z.emit("drop",e,t,y,x),q()}function $(){if(z.dragging){var e=O||_,t=g(e);t&&t.removeChild(e),z.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(z.dragging){var t=arguments.length>0?e:N.revertOnSpill,o=O||_,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,E)),r||t?z.emit("cancel",o,y,y):z.emit("drop",o,n,y,x),q()}}function q(){var e=O||_;U(),o&&(i.rm(N.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),z.dragging=!1,D&&z.emit("out",e,D,y),z.emit("dragend",e),y=_=O=E=x=M=D=null}function K(e,t){var n;return n=void 0!==t?t:o?x:C(O||_),e===y&&n===E}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===k(n))return!1;var r=J(n,e),i=ee(n,r,t,o);return!!K(n,i)||N.accepts(_,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-w,i=n-R;o.style.left=r+"px",o.style.top=i+"px";var s=O||_,a=d(o,t,n),l=X(a,t,n),c=null!==l&&l!==D;(c||null===l)&&(D&&f("out"),D=l,c&&f("over"));var h=g(s);if(l!==y||!O||N.copySortSource){var u,p=J(l,a);if(null!==p)u=ee(l,p,t,n);else{if(!0!==N.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=E,l=y}(null===u&&c||u!==s&&u!==C(s))&&(x=u,l.insertBefore(s,u),z.emit("shadow",s,l,y))}else h&&h.removeChild(s)}function f(e){z.emit(e,s,D,y)}}function J(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===a?null:o}function ee(e,t,o,n){var r="horizontal"===N.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return s(o>e.left+f(e)/2);return s(n>e.top+m(e)/2)}():function(){var t,i,s,a=e.children.length;for(t=0;t<a;t++){if(s=(i=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>o)return i;if(!r&&s.top+s.height/2>n)return i}return null}();return i;function s(e){return e?C(t):t}}}},9915:(e,t,o)=>{o.d(t,{Z:()=>m});var n=o(4184),r=o.n(n),i=o(6689),s=o.n(i);class a{name;notify;constructor(e,t){this.name=e,this.notify=t}}class l{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}const c=new class{observers;constructor(){this.observers=new Set}broadcast(e){this.observers&&this.observers.forEach((t=>{e.name===t.name&&t.notify(e)}))}subscribe(e,t){const o=new a(e,t);return this.observers.add(o),new l(o,(e=>{this.observers.delete(e)}))}unsubscribe(e){e&&e.unsubscribe()}},h="ON_DRAG_START",d="ON_DRAG_END";let u=null;const p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=c.subscribe(h,(e=>{const t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})})),this.onDragEndSubscription=c.subscribe(d,(()=>{this.mounted&&this.setState({isDroppable:!1})})),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){const e=p.get(u);this.setState({isDroppable:this.canDrop(void 0,e,this.props.dndData)})}}componentWillUnmount(){this.mounted=!1,this.onDragStartSubscription.unsubscribe(),this.onDragEndSubscription.unsubscribe()}canDrop(e,t,o){const{canDrop:n}=this.props;return n&&("boolean"==typeof n||n(e,t,o))}addDragEndEventListenerOnce(){const e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){const{canDrag:e,dndData:t}=this.props;return!!e&&("boolean"==typeof e||e(t))}onDragEnter(e){if(e.stopPropagation(),this.setState({isOver:!0}),this.props.onDragEnter){const t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();const t=p.get(u);this.props.onDragLeave&&this.props.onDragLeave(e,t,this.props.dndData),this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData),isOver:!1})}onDrag(e){e.stopPropagation()}onDragOver(e){e.stopPropagation();const t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();const{dndData:t,dndId:o,onBeginDrag:n}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),c.broadcast({name:h,content:u}),n&&n(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();const{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),c.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();const{dndData:t,onDrop:o}=this.props;o&&o(e,p.get(u),t)}render(){const{children:e,className:t,style:o}=this.props,{isDragging:n,isDroppable:i,isOver:a}=this.state,l=this.isDraggable(),c=r()("dnd-component",t,{draggable:l,dragging:n,droppable:i,hovering:a});return s().createElement("div",{className:c,draggable:l,onDrag:e=>this.onDrag(e),onDragEnter:e=>this.onDragEnter(e),onDragLeave:e=>this.onDragLeave(e),onDragOver:e=>this.onDragOver(e),onDragStart:e=>this.onDragStart(e),onDrop:e=>this.onDrop(e),ref:this.dndComponentRef,style:o},e)}}var m=f},1541:(e,t,o)=>{o.d(t,{Z:()=>Zs});var n={};o.r(n),o.d(n,{types:()=>Bi});var r=o(4184),i=o.n(r),s=o(6689),a=o.n(s);function l(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}function c(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function h(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,a;if(0===o)i=s=a=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=c(r,e,t+1/3),s=c(r,e,t),a=c(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*a),a:r}}const d=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function u(e){if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){const t=(e=e.trim()).length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*l(e.charCodeAt(1))+l(e.charCodeAt(2)),g:16*l(e.charCodeAt(3))+l(e.charCodeAt(4)),b:16*l(e.charCodeAt(5))+l(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*l(e.charCodeAt(1))+l(e.charCodeAt(2)),g:16*l(e.charCodeAt(3))+l(e.charCodeAt(4)),b:16*l(e.charCodeAt(5))+l(e.charCodeAt(6)),a:(16*l(e.charCodeAt(7))+l(e.charCodeAt(8)))/255};if(4===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:1}}if(5===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3)),r=l(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:(16*r+r)/255}}return null}(e);const t=d.exec(e);if(null==t)return null;const o=t[1];let n;switch(o){case"rgb":case"hsl":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===o||"hsla"===o?h({h:n[0],s:n[1],l:n[2],a:n[3]}):{type:"rgba",r:n[0],g:n[1],b:n[2],a:n[3]}}const p=e=>{return"hsla"===(t=u(e)).type&&(t=h(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};var f=o(827),m=o(3308);const g=e=>!(e===f.o$||e===f.lH),v=/^.*(:?\n){0,2}/m;function y(e,t="\n"){return e.replace("\n"===t?v:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}const C=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function S(e){const t=[];for(let o=C.exec(e);null!==o;o=C.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}const _={"--graph-row-height":"22px","--font-default":"'Open Sans', Arial, sans-serif !important","--font-monospace":"'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace","--font-size":"62.5%","--fs-1":"1rem","--fs-2":"1.2rem","--fs-3":"1.4rem","--fs-4":"1.6rem","--fs-5":"1.8rem","--fs-6":"2rem","--fs-7":"2.4rem","--button-xs-padding-y":".15rem","--button-xs-padding-x":".25rem","--button-small-padding-y":".25rem","--button-small-padding-x":".5rem","--button-medium-padding-y":".5rem","--button-medium-padding-x":".75rem","--button-large-padding-y":"1rem","--button-large-padding-x":"1.25rem","--button-radius":".2rem","--input-radius":"3px","--about-modal-bg-color":"#e2e4e9","--about-modal-width":"650px","--label__purple-color-f25":"rgba(197,23,182,0.25)","--registration-modal-width":"400px","--file-history-header-height":"35px","--shop-modal-width":"95vw","--shop-modal-height":"95vh","--scrollable-scrollbar-thickness":"14px","--mini-commit-col-left-width":"30px","--mini-commit-col-middle-padding":"6px","--mini-commit-col-right-width":"56px","--fuzzy-finder-repo-color":"rgba(46,206,157,0.1)","--fuzzy-finder-checkout-color":"rgba(6,105,247,0.1)","--fuzzy-finder-history-color":"rgba(197,23,182,0.1)","--handle-width":"7px","--shadow-color":"rgba(0,0,0,0.4)","--graph-color-5-f10":"rgba(205,1,1,0.1)","--graph-color-6-f10":"rgba(242,93,46,0.1)","--graph-color-7-f10":"rgba(242,202,51,0.1)","--graph-color-8-f10":"rgba(123,217,56,0.1)","--graph-color-9-f10":"rgba(46,206,157,0.1)","--graph-color-0-f10":"rgba(21,160,191,0.1)","--graph-color-1-f10":"rgba(6,105,247,0.1)","--graph-color-2-f10":"rgba(142,0,194,0.1)","--graph-color-3-f10":"rgba(197,23,182,0.1)","--graph-color-4-f10":"rgba(217,1,113,0.1)","--graph-color-5-f50":"rgba(205,1,1,0.5)","--graph-color-6-f50":"rgba(242,93,46,0.5)","--graph-color-7-f50":"rgba(242,202,51,0.5)","--graph-color-8-f50":"rgba(123,217,56,0.5)","--graph-color-9-f50":"rgba(46,206,157,0.5)","--graph-color-0-f50":"rgba(21,160,191,0.5)","--graph-color-1-f50":"rgba(6,105,247,0.5)","--graph-color-2-f50":"rgba(142,0,194,0.5)","--graph-color-3-f50":"rgba(197,23,182,0.5)","--graph-color-4-f50":"rgba(217,1,113,0.5)","--axo-orange":"#e75225","--axo-ink":"#141422","--axo-cream":"#f9efc1","--axo-yellow":"#d8c13a","--info-bar-height":"26px","--left-panel-header-height":"60px","--toolbar-height":"48px","--toolbar-border":"1px","--toolbar-item-height":"calc(var(--toolbar-height, 0px) - var(--toolbar-border, 1px))","--expand-detail-panel-transition":"flex-grow 250ms ease-in-out","--conflict-left-color":"rgba(21,160,191,0.25)","--conflict-right-color":"rgba(242,202,51,0.25)","--conflict-output-color":"rgba(197,23,182,0.25)","--graph-color-5-bg50":"#751012","--graph-color-6-bg50":"#873e29","--graph-color-7-bg50":"#87742b","--graph-color-8-bg50":"#4c7c2e","--graph-color-9-bg50":"#257660","--graph-color-0-bg50":"#195f71","--graph-color-1-bg50":"#11448d","--graph-color-2-bg50":"#550f73","--graph-color-3-bg50":"#711b6d","--graph-color-4-bg50":"#7b104a","--graph-color-5-bg45":"#6c1114","--graph-color-6-bg45":"#7c3a28","--graph-color-7-bg45":"#7c6b2a","--graph-color-8-bg45":"#47722c","--graph-color-9-bg45":"#246d5a","--graph-color-0-bg45":"#195969","--graph-color-1-bg45":"#124082","--graph-color-2-bg45":"#4f116b","--graph-color-3-bg45":"#681b65","--graph-color-4-bg45":"#711146","--graph-color-5-bg25":"#48171b","--graph-color-6-bg25":"#522e26","--graph-color-7-bg25":"#524927","--graph-color-8-bg25":"#344d28","--graph-color-9-bg25":"#214a42","--graph-color-0-bg25":"#1a3f4a","--graph-color-1-bg25":"#173158","--graph-color-2-bg25":"#39174b","--graph-color-3-bg25":"#461c48","--graph-color-4-bg25":"#4b1737","--graph-color-5-bg15":"#371a1e","--graph-color-6-bg15":"#3c2725","--graph-color-7-bg15":"#3c3825","--graph-color-8-bg15":"#2a3a26","--graph-color-9-bg15":"#1f3835","--graph-color-0-bg15":"#1b323a","--graph-color-1-bg15":"#192943","--graph-color-2-bg15":"#2d1a3b","--graph-color-3-bg15":"#351d39","--graph-color-4-bg15":"#381a2f","--semi-bold":"500","--bold":"600","--num-columns-supported":"10","--column-0-color":"#15a0bf","--column-1-color":"#0669f7","--column-2-color":"#8e00c2","--column-3-color":"#c517b6","--column-4-color":"#d90171","--column-5-color":"#cd0101","--column-6-color":"#f25d2e","--column-7-color":"#f2ca33","--column-8-color":"#7bd938","--column-9-color":"#2ece9d","--red":"#D9413D","--orange":"#DE9B43","--yellow":"#ECB91C","--green":"#5CB85C","--blue":"#4D88FF","--ltblue":"#5bc0de","--app__bg0":"#1C1E23","--toolbar__bg0":"rgb(42,45,52)","--toolbar__bg1":"rgb(51,55,63)","--toolbar__bg2":"rgb(65,70,80)","--panel__bg0":"rgb(39,42,49)","--panel__bg1":"rgb(50,54,63)","--panel__bg2":"rgb(61,66,77)","--input__bg":"rgba(0,0,0,0.2)","--input-bg-warn-color":"rgba(222,155,67,0.6)","--panel-border":"rgb(19,20,24)","--section-border":"rgba(255,255,255,0.08)","--subtle-border":"rgba(255,255,255,0.04)","--modal-overlay-color":"rgba(0,0,0,.5)","--graph-color-0":"#15a0bf","--graph-color-1":"#0669f7","--graph-color-2":"#8e00c2","--graph-color-3":"#c517b6","--graph-color-4":"#d90171","--graph-color-5":"#cd0101","--graph-color-6":"#f25d2e","--graph-color-7":"#f2ca33","--graph-color-8":"#7bd938","--graph-color-9":"#2ece9d","--text-selected":"#FFFFFF","--text-selected-row":"#FFFFFF","--text-dimmed":"rgba(255,255,255,0.2)","--text-dimmed-selected":"rgba(255,255,255,0.5)","--text-normal":"rgba(255,255,255,0.75)","--text-secondary":"rgba(255,255,255,0.6)","--text-disabled":"rgba(255,255,255,0.4)","--text-accent":"#93A9EC","--text-inverse":"#222222","--text-bright":"#FFFFFF","--btn-text":"rgba(255,255,255,0.75)","--btn-text-hover":"#FFFFFF","--default-border":"rgba(255,255,255,0.75)","--default-bg":"transparent","--default-hover":"transparent","--default-border-hover":"#FFFFFF","--primary-border":"#4D88FF","--primary-bg":"rgba(77,136,255,0.2)","--primary-hover":"rgba(77,136,255,0.6)","--success-border":"#5CB85C","--success-bg":"rgba(92,184,92,0.2)","--success-hover":"rgba(92,184,92,0.6)","--warning-border":"#DE9B43","--warning-bg":"rgba(222,155,67,0.2)","--warning-hover":"rgba(222,155,67,0.6)","--danger-border":"#D9413D","--danger-bg":"rgba(217,65,61,0.2)","--danger-hover":"rgba(217,65,61,0.6)","--hover-row":"rgba(77,136,255,0.1)","--hover-row-border":"none","--danger-row":"rgba(217,65,61,0.6)","--selected-row":"rgba(77,136,255,0.2)","--selected-row-border":"none","--warning-row":"rgba(222,155,67,0.6)","--droppable":"rgba(236,185,28,0.3)","--drop-target":"rgba(92,184,92,0.5)","--input--disabled":"rgba(0,0,0,0.1)","--link-color":"#40c5ec","--link-color-bright":"#40c5ec","--form-control-focus":"#4D88FF","--scroll-thumb-border":"#1C1E23","--scroll-thumb-bg":"rgb(65,70,80)","--scroll-thumb-bg-light":"rgb(111,119,136)","--wip-status":"rgba(77,136,255,0.4)","--card__bg":"rgb(61,66,77)","--card-shadow":"rgba(0,0,0,.2)","--statusbar__warning-bg":"#87742b","--label__yellow-color":"#f2ca33","--label__light-blue-color":"#15a0bf","--label__purple-color":"#c517b6","--filtering":"rgba(77,136,255,0.5)","--soloing":"rgba(222,155,67,0.5)","--checked-out":"rgba(92,184,92,0.3)","--soloed":"rgba(222,155,67,0.3)","--filter-match":"rgba(77,136,255,0.5)","--clone__progress":"rgba(77,136,255,0.7)","--toolbar__prompt":"rgba(77,136,255,0.2)","--verified":"rgba(92,184,92,0.3)","--unverified":"rgba(255,255,255,0.1)","--drop-sort-border":"#5CB85C","--terminal__repo-name-color":"turquoise","--terminal__repo-branch-color":"violet","--terminal__repo-tag-color":"lightcoral","--terminal__repo-upstream-color":"yellowgreen","--terminal__background":"#000000","--terminal__cursor":"#FFFFFF","--terminal__cursorAccent":"#000000","--terminal__foreground":"#FFFFFF","--terminal__selection":"#304676","--terminal__black":"#000000","--terminal__red":"#F24A4A","--terminal__green":"#0DBC79","--terminal__yellow":"#E5E510","--terminal__blue":"#4A98EE","--terminal__magenta":"#E063E0","--terminal__cyan":"#11A8CD","--terminal__white":"#E5E5E5","--terminal__brightBlack":"#686868","--terminal__brightRed":"#FF5656","--terminal__brightGreen":"#23D18B","--terminal__brightYellow":"#F5F543","--terminal__brightBlue":"#51A4FF","--terminal__brightMagenta":"#D670D6","--terminal__brightCyan":"#29B8DB","--terminal__brightWhite":"#E5E5E5","--code-bg":"#1C1E23","--code-foreground":"rgba(255,255,255,0.75)","--code-blame-color-0":"#15a0bf","--code-blame-color-1":"#0669f7","--code-blame-color-2":"#8e00c2","--code-blame-color-3":"#c517b6","--code-blame-color-4":"#d90171","--code-blame-color-5":"#cd0101","--code-blame-color-6":"#f25d2e","--code-blame-color-7":"#f2ca33","--code-blame-color-8":"#7bd938","--code-blame-color-9":"#2ece9d","--added-line":"rgba(92,184,92,0.2)","--deleted-line":"rgba(217,65,61,0.2)","--modified-line":"rgba(0,0,0,0.25)","--conflict-info-color":"#15a0bf","--conflict-left-border-color":"#15a0bf","--conflict-right-border-color":"#f2ca33","--conflict-output-border-color":"#c517b6","--scroll-marker-head-color":"#16c216","--scroll-marker-highlights-color":"#e6e62b","--scroll-marker-local-branches-color":"#ffa500","--scroll-marker-remote-branches-color":"#ffd68b","--scroll-marker-selection-color":"#0821ff","--scroll-marker-stashes-color":"#fb94ff","--scroll-marker-tags-color":"#affcff","--scroll-marker-upstream-color":"#9bff9b","--stats-added-color":"#347d39","--stats-deleted-color":"#c93c37","--stats-files-color":"#e2c08d","--stats-bar-border-radius":"3px","--stats-bar-height":"40%"};function w(e){return`--column-${e}-color`}function R(e={}){const t={};return Object.keys(e).forEach((o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]})),function(e={}){return{..._,...e}}(t)}const b=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,T=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,E=new Map;let x;const O=["th","st","nd","rd"];function M(e){const t=e%100;return`${e}${O[(t-20)%10]??O[t]??O[0]}`}function I(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=E.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=T.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(b))if(null!=t)for(const e in t){const n=t[e];if(null!=n)switch(e){case"year":o.year=4===n.length?"numeric":"2-digit";break;case"month":switch(n.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":o.day="DD"===n?"2-digit":"numeric";break;case"weekday":switch(n.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===n.length?"2-digit":"numeric",o.hour12="hh"===n||"h"===n;break;case"minute":o.minute=2===n.length?"2-digit":"numeric";break;case"second":o.second=2===n.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===n.length?"long":"short"}}return o}(t);let s;s=null==o?x:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&E.set(r,i)}if(null==t||T.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=E.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?x:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&E.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(b,((t,o,n,r,i,l,c,h,d,u,p,f,m,g,v)=>{if(null!=o)return o.substring(1,o.length-1);for(const t in v){const o=v[t];if(null==o)continue;const n=a.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return M(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){const t=s("short").formatToParts(e).find((e=>"dayPeriod"===e.type));return` ${(t??n)?.value??""}`}return n?.value??""}return""}))}let D={};function N(e,t,o,n){const r=`${e}${n?"_compact":""}`;let i=D[e];return i||(i=o+e*t+t/2,D[r]=i,i)}const z={d:"d",fill:"fill","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function k(e,t){let o="";for(const[e,n]of Object.entries(z)){const r=t[n];r&&(o+=` ${e}="${r}"`)}return`<${e}${o} />`}function H(e){return k("line",e)}function G(e,t,o,n){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:g(e)?n?1:2:0,stroke:t}}function A(e,t,o,n){return`${e}_${t}_${o||"+"}${n?"_compact":""}`}function W(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}function P(e,t,o){return(e=e<=o?e:o)>=t?e:t}var L=o(8649),F=o(9453);const B=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Z(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function U(e,t,o,n){const{id:r}=e;return!r||null===t||null===t?.[r]||n&&null===t?.[r]?.[n]?null:t&&r in t?n&&!t[r]?.[n]?(o(r,[n]),null):n?t?.[r]?.[n]:t?.[r]:(o(r,F.AI),null)}function j(e,t){if(t.id)return t.id;const o=t.owner||"";return e===L.V.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function V(e){return j(e.refType,e)}function $(e,t=0){for(let o=e.length-1;o>=t;o-=1){const t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function Y(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){const t=e[o],n=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(n&&t.currentWidth<n)return t}return e[e.length-1]}}function q(e,t=!1){const o="--scrollable-scrollbar-thickness",n=t||!e[o]?R(e):e,r=n[o]?parseInt(n[o],10):0;return Number.isNaN(r)?0:r}function K(e,t){let o=0;for(const n of e)t&&n.type===t||(o+=n.currentWidth);return o}const X=(e,t)=>e===t[t.length-1].type;function Q(e,t,o){return t||o||0===e}function J(e,t,o){return e+(Q(e,t,o)?1:0)}function ee(e,t,o){const n=J(e,t,o);return m.$0*n}function te(e,t){return e.type===m.Wm&&t>0?e.contentWidth||0:e.currentWidth}function oe(e,t,o,n,r){const i=ie(e,t);if(!i)return 0;var s,a;return(s=i,a=o.length,s.currentWidth<te(s,a))?q(n,r):0}function ne(e,t,o,n,r,i,s,a,l){const c=ie(e,t);if(!c)return 0;const h=function(e,t,o,n,r,i,s){const a=ee(i,o,n);return X(e.type,t)&&(r<a||s)}(c,t,o,n,r,i.length,s);return h?q(a,l):0}function re(e,t,o){return P(o,e.minimumWidth||0,e.maximumWidth&&!X(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function ie(e,t){return t.find((({type:t})=>t===e))}function se(e,t){return t.findIndex((({type:t})=>t===e))}function ae(e,t,o){let n=0,r=0;const i=se(e,t);if(i>-1){const e=function(e,t=0){let o=0;for(let n=t;n<e.length;n+=1)o+=e[n].minimumWidth;return o}(t,i+1),s=function(e,t=e.length-1){let o=0;for(let n=0;n<=t;n+=1)o+=e[n].currentWidth;return o}(t,i-1),a=t[i].maximumWidth||Number.MAX_VALUE,l=Math.min(a,o-e-s);n=t[i].minimumWidth,r=l}return{min:n,max:r}}function le(e){const t=!!e&&e===m.Um.Compact,o=t?1:2,n=t?10:28,r=t?1:3,i=t?1:3,s=t?10:22,a=t?s:m.P3,l=t?s:s/2+1,c=t?45:56;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_PADDING_LEFT:r,COMMIT_ZONE_PADDING_RIGHT:i,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:a,COMMIT_MERGE_NODE_DIAMETER:l,COMMIT_NODE_TOP_OFFSET:.5*m.P3-.5*a,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-l/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*m.P3-.5*l,COMMIT_ZONE_AVATAR_DIAMETER:a-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:a+r+i+n,COMMIT_ZONE_SHOW_ICON_WIDTH:c,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:a/2-l/2}}function ce(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function he(e){return[f.S7,f.br,f.ch].includes(e)}function de(e){return!!e&&Object.values(e).some((e=>e>0))}function ue(e){return 1===Object.keys(e).length}function pe(e,t){return!0===e[t]&&ue(e)}function fe(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:L.V.HEAD}))):[],s=n?n.map((e=>({...e,refType:L.V.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:L.V.REMOTE}))):[],...s]}function me(e){const t=[];let o,n=!1;for(const r of e){n=!1,o=r.fullName||r.name;for(const e of t)if(e.length>0&&e[0].name===o){r.refType===L.V.HEAD?e.unshift(r):e.push(r),n=!0;break}n||t.push([r])}return t}class ge{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=ie(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?fe(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?me(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e,t=!0){const o=t?this.getVerticalScrollWidth(e):0;return function(e,t){return ie(e,t)?.currentWidth||m.qi[e].minimumWidth}(e,this.props.graphZones)-o}isDateTimeZoneActive(){return Boolean(this.getActiveGraphZone(m.PL))}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return((e,t)=>{const o=se(e,t),n=se(m.Wm,t);return-1!==o&&-1!==n&&o-n==1})(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){const t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!(!this.props.isContainerWindowFocused||!this.props.processedRows[e])&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return X(e,this.props.graphZones)}getSelectedRefGroupByName(){if(ue(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return me(fe(t,this.props.showRemoteNamesOnRefs))}}return[]}getHorizontalScrollHeight(e){return oe(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return ne(e,this.props.graphZones,this.props.hasMoreCommits,this.props.isLoadingRows,this.props.height,this.props.processedRows,this.props.enabledScrollMarkerTypes.length>0,this.props.cssVariables)}isMissingHoveredRefGroup(e){if(!this.props.isContainerWindowFocused||this.props.highlightedShas)return!1;const t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===L.V.TAG,s=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:a,tags:l,remotes:c}=!t.hasRefs||s&&!i?t.childRefs:t;if(!a.length&&!c.length&&!l.length)return!0;return!a.some((e=>e.name===n&&o.some((e=>e.refType===L.V.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===L.V.REMOTE&&t.owner===e.owner))))&&!l.some((e=>e.name===n&&o.some((e=>e.refType===L.V.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&pe(this.props.isSelectedBySha,t)}hasTimeline(e){return Boolean(this.props.processedRows[e]?.timeLineEntry)&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return ce(e)}}const ve={"CommitDiffSection-FileAdded":"added","CommitDiffSection-FileDeleted":"deleted","CommitDiffSection-FileModified":"modified","CommitDiffSection-FileRenamed":"renamed","CommitDiffSection-NFilesAdded":"{0} added","CommitDiffSection-NFilesDeleted":"{0} deleted","CommitDiffSection-NFilesModified":"{0} modified","CommitDiffSection-NFilesRenamed":"{0} renamed","Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","GraphHeader-Changes":"CHANGES","GraphHeader-CommitAuthor":"AUTHOR","GraphHeader-CommitDateTime":"COMMIT DATE / TIME","GraphHeader-CommitGraph":"GRAPH","GraphHeader-CommitMessage":"COMMIT MESSAGE","GraphHeader-CommitSha":"SHA","GraphHeader-EditColumns":"Columns settings","GraphHeader-Filter":"Filter","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","Ref-Current":"Current Branch","Ref-Local":"Local Branch","Ref-Remote":"Remote Branch","Ref-Tag":"Tag","RefZone-EnterBranchName":"enter branch name","RefZone-EnterTagName":"enter tag name","Timeline-1HourAgo":"1 hour ago","Timeline-NHoursAgo":"{0} hours ago","Timeline-Yesterday":"yesterday","Timeline-NDaysAgo":"{0} days ago","Timeline-1WeekAgo":"a week ago","Timeline-NWeeksAgo":"{0} weeks ago","Timeline-1MonthAgo":"a month ago","Timeline-NMonthsAgo":"{0} months ago","Timeline-1YearAgo":"a year ago","Timeline-NYearsAgo":"{0} years ago","Timeline-NPlusYearsAgo":"{0}+ years ago",ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"};const ye={0:1,90:0,180:-1,270:0},Ce={0:0,90:1,180:0,270:-1},Se=m.O5-m.NP,_e=` A ${Se} ${Se} 0 0 0 `;function we(e,t,o){const n=ye[o],r=Ce[o];return{x:e-m.O5*n,xOffset:-n*m.NP,y:t+m.O5*r,yOffset:r*m.NP}}const Re={};var be=function(e,t,o,n,r,i,s,a){const l=G(n,e,s,a);return l.d=function(e,t,o,n){const r=`${e}_${t}_${o}_${n}`;let i=Re[r];if(i)return i;const s=we(e,t,n),a=we(e,t,o);return i=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${_e}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,Re[r]=i,i}(r,i,o,t),k("path",l)};let Te={};function Ee(e,t,o,n,r,i,s,a){const l=A(e,t,o,a);let c=Te[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=G(o,e,i,s);return a.x1=N(t,n,r,s),a.x2=N(t,n,r,s),a.y1=0,a.y2=m.at/2,H(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=G(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=N(o,r,i,a),h.x2=N(o,r,i,a),h.y1=0,h.y2=m.An;const d={...l};return d.x1=N(o,r,i,a)+c,d.x2=N(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${H(h)}${be(e,t>o?0:90,t>o?90:180,n,N(o,r,i,a)+c,m.An,s,a)}${H(d)}</g>`}(n[e],t,e,o,r,i,s,a),Te[l]=c,c)}let xe={};function Oe(e,t,o,n,r,i,s){const a=W(e,t,s);let l=xe[a];if(l)return l;const c=N(e,n,r,s),h=G(t,o[e],i,s);return h.x1=c,h.x2=c,h.y1=0,h.y2=m.at,l=H(h),xe[a]=l,l}let Me={};function Ie(e,t,o,n,r,i,s,a){const l=A(e,t,o,a);let c=Me[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=G(o,e,i,s);return a.x1=N(t,n,r,s),a.x2=N(t,n,r,s),a.y1=m.at/2,a.y2=m.at,H(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=G(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=N(o,r,i,a),h.x2=N(o,r,i,a),h.y1=m.at-m.$s,h.y2=m.at;const d={...l};return d.x1=N(o,r,i,a)+c,d.x2=N(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${be(e,t<o?180:270,t<o?270:0,n,N(o,r,i,a)+c,m.at-m.$s,s,a)}${H(h)}${H(d)}</g>`}(n[e],t,e,o,r,i,s,a),Me[l]=c,c)}let De={};function Ne(e,t,o,n,r,i,s,a){const l=function(e,t,o,n){let r="";for(let i=0;i<=t;i++){const{passThrough:t,starting:s,ending:a}=e[i]??{};r=`${r}_${A(i,o,s?.type,n)}_${A(i,o,a?.type,n)}_${W(i,t?.type,n)}`}return r}(e,t,o,a);let c=De[l];if(c)return c;let h="";for(let l=0;l<=t;l+=1){const t=e[l];if(!t)continue;const{passThrough:c,starting:d,ending:u}=t;h+=d?Ie(l,o,d.type,n,r,i,s,a):"",h+=c?Oe(l,c.type,n,r,i,s,a):"",h+=u?Ee(l,o,u.type,n,r,i,s,a):""}return c=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${h}</g></svg>')`,De[l]=c,c}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e){return ke="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},ke(e)}function He(e){var t=function(e,t){if("object"!==ke(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ke(t)?t:String(t)}function Ge(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function Ae(e,t,o){return t&&Ge(e.prototype,t),o&&Ge(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pe(e,t){if(t&&("object"===ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(e,t)}function Be(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}function Ze(e,t,o){return(t=He(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var Ue=o(6871);function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},je.apply(this,arguments)}function Ve(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=Ve(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const $e=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=Ve(e))&&(n&&(n+=" "),n+=t);return n};function Ye(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),l>=0&&l===a&&c())}function qe(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var Ke=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;ze(this,e),Ze(this,"_cellSizeAndPositionData",{}),Ze(this,"_lastMeasuredIndex",-1),Ze(this,"_lastBatchedIndex",-1),Ze(this,"_cellCount",void 0),Ze(this,"_cellSizeGetter",void 0),Ze(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return Ae(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{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 ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,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,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var s,a=this.getSizeAndPositionOfCell(i),l=a.offset,c=l-n+a.size;switch(o){case"start":s=l;break;case"end":s=c;break;case"center":s=l-(n-a.size)/2;break;default:s=Math.max(c,Math.min(l,r))}var h=this.getTotalSize();return Math.max(0,Math.min(h-n,s))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var s=r;o<n&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:r,stop:s}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=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 ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),Xe=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Qe=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?Xe():o,r=qe(t,["maxScrollSize"]);ze(this,e),Ze(this,"_cellSizeAndPositionManager",void 0),Ze(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Ke(r),this._maxScrollSize=n}return Ae(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,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{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,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:s})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function Je(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),s=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,s&&a&&n(r)}}var et=-1;function tt(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,h=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=h>=0&&h<f;m&&(d!==a||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<a||f<n)&&l>o.getTotalSize()-d&&p(f-1)}const ot=!("undefined"==typeof window||!window.document||!window.document.createElement);var nt,rt;function it(e){if((!nt&&0!==nt||e)&&ot){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),nt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nt}var st,at,lt=(rt="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||rt.webkitRequestAnimationFrame||rt.mozRequestAnimationFrame||rt.oRequestAnimationFrame||rt.msRequestAnimationFrame||function(e){return rt.setTimeout(e,1e3/60)},ct=rt.cancelAnimationFrame||rt.webkitCancelAnimationFrame||rt.mozCancelAnimationFrame||rt.oCancelAnimationFrame||rt.msCancelAnimationFrame||function(e){rt.clearTimeout(e)},ht=lt,dt=ct,ut=function(e){return dt(e.id)},pt=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:ht((function r(){Date.now()-o>=t?e.call():n.id=ht(r)}))};return n};function ft(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function mt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ft(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ft(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var gt="observed",vt="requested",yt=(at=st=function(e){function t(e){var o;ze(this,t),Ze(We(o=Pe(this,Le(t).call(this,e))),"_onGridRenderedMemoizer",Je()),Ze(We(o),"_onScrollMemoizer",Je(!1)),Ze(We(o),"_deferredInvalidateColumnIndex",null),Ze(We(o),"_deferredInvalidateRowIndex",null),Ze(We(o),"_recomputeScrollLeftFlag",!1),Ze(We(o),"_recomputeScrollTopFlag",!1),Ze(We(o),"_horizontalScrollBarSize",0),Ze(We(o),"_verticalScrollBarSize",0),Ze(We(o),"_scrollbarPresenceChanged",!1),Ze(We(o),"_scrollingContainer",void 0),Ze(We(o),"_childrenToDisplay",void 0),Ze(We(o),"_columnStartIndex",void 0),Ze(We(o),"_columnStopIndex",void 0),Ze(We(o),"_rowStartIndex",void 0),Ze(We(o),"_rowStopIndex",void 0),Ze(We(o),"_renderedColumnStartIndex",0),Ze(We(o),"_renderedColumnStopIndex",0),Ze(We(o),"_renderedRowStartIndex",0),Ze(We(o),"_renderedRowStopIndex",0),Ze(We(o),"_initialScrollTop",void 0),Ze(We(o),"_initialScrollLeft",void 0),Ze(We(o),"_disablePointerEventsTimeoutId",void 0),Ze(We(o),"_styleCache",{}),Ze(We(o),"_cellCache",{}),Ze(We(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),Ze(We(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),Ze(We(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),Ze(We(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),Ze(We(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new Qe({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new Qe({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:r,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&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return Be(t,e),Ae(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,a=mt({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});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,o=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,s=i.autoHeight,a=i.autoWidth,l=i.height,c=i.width,h=this.state.instanceProps,d=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),p=h.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),o),m=Math.min(Math.max(0,u-l+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?1:et:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:et:this.state.scrollDirectionVertical,scrollPositionChangeReason:gt};s||(g.scrollTop=m),a||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:u})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.height,a=n.width,l=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-a+l),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+l),Math.max(0,this._scrollingContainer.scrollTop+o));if(this.state.scrollLeft!==d||this.state.scrollTop!==u){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?1:et:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:et:this.state.scrollDirectionVertical,scrollPositionChangeReason:vt};r||(p.scrollTop=u),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:h,totalRowsHeight:c})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.scrollToColumn,a=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(o),l.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?r<=a:r>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props,r=n.columnCount,i=n.onScrollToTargetCausedUpdate,s=this.state,a=s.scrollLeft,l=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(mt({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(mt({},c,{scrollToRow:o}),h,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:a,g="number"!=typeof u?u:l;i({clientHeight:c.height,clientWidth:c.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,s=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=mt({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof s&&s>=0){var h=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:s});h&&(h.needToResetStyleCache=!1,this.setState(h))}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 d=n>0&&l>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:s||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.columnCount,a=n.height,l=n.rowCount,c=n.scrollToAlignment,h=n.scrollToColumn,d=n.scrollToRow,u=n.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=s>0&&0===e.columnCount||l>0&&0===e.rowCount;m===vt&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!r&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var C=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):tt({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):tt({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:_,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&ut(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,r=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,c=e.height,h=e.id,d=e.noContentRenderer,u=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,C=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=v.columnSizeAndPositionManager.getTotalSize(),w=v.rowSizeAndPositionManager.getTotalSize(),R=w>c?v.scrollbarSize:0,b=_>m?v.scrollbarSize:0;b===this._horizontalScrollBarSize&&R===this._verticalScrollBarSize||(this._horizontalScrollBarSize=b,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),S.overflowX=_+R<=m?"hidden":"auto",S.overflowY=w+b<=c?"hidden":"auto";var T=this._childrenToDisplay,E=0===T.length&&c>0&&m>0;return s.createElement("div",je({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:$e("ReactVirtualized__Grid",r),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:mt({},S,{},p),tabIndex:f}),T.length>0&&s.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:mt({width:t?"auto":_,height:w,maxWidth:_,maxHeight:w,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},l)},T),E&&d())}},{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,o=e.cellRenderer,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,s=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,h=e.rowCount,d=e.width,u=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var C=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),_=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),w=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var R=l({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof C.start?C.start:0,stopIndex:"number"==typeof C.stop?C.stop:-1}),b=l({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),T=R.overscanStartIndex,E=R.overscanStopIndex,x=b.overscanStartIndex,O=b.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=x;M<=O;M++)if(!i.has(M,0)){T=0,E=r-1;break}if(!i.hasFixedWidth())for(var I=T;I<=E;I++)if(!i.has(0,I)){x=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:E,deferredMeasurementCache:i,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:x,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:C,visibleRowIndices:S}),this._columnStartIndex=T,this._columnStopIndex=E,this._rowStartIndex=x,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ut(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=pt(this._debounceScrollEndedCallback,e)}},{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,o=e.scrollLeft,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{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 o=e.scrollLeft,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}}],[{key:"getDerivedStateFromProps",value:function(e,o){var n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,s=o.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===s.prevColumnWidth&&e.rowHeight===s.prevRowHeight||(n.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&&Object.assign(n,{isScrolling:!1}),Ye({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(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),Ye({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(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),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,n.instanceProps=s,mt({},n,{},r,{},i)}},{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,o=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:vt};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?1:et,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?1:et,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,s=e.width,a=t.scrollLeft,l=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=l.rowSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>n?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,s=e.width,a=t.scrollTop,l=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=l.columnSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>s?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(s.PureComponent),Ze(st,"propTypes",null),at);Ze(yt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,s=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,h=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],C=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!l&&!C,_=u;_<=p;_++)for(var w=d.getSizeAndPositionOfCell(_),R=r;R<=i;R++){var b=n.getSizeAndPositionOfCell(R),T=R>=g.start&&R<=g.stop&&_>=v.start&&_<=v.stop,E="".concat(_,"-").concat(R),x=void 0;S&&f[E]?x=f[E]:s&&!s.has(_,R)?x={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(x={height:w.size,left:b.offset+a,position:"absolute",top:w.offset+m,width:b.size},f[E]=x);var O={columnIndex:R,isScrolling:l,isVisible:T,key:E,parent:h,rowIndex:_,style:x},M=void 0;!c&&!l||a||m?M=o(O):(t[E]||(t[E]=o(O)),M=t[E]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:it,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,Ue.polyfill)(yt);const Ct=yt;function St(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===n?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var _t,wt;function Rt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var bt=(wt=_t=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Ze(We(o),"_columnStartIndex",0),Ze(We(o),"_columnStopIndex",0),Ze(We(o),"_rowStartIndex",0),Ze(We(o),"_rowStopIndex",0),Ze(We(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var a=o._getScrollState(),l=a.scrollToColumn,c=a.scrollToRow,h=o._getScrollState(),d=h.scrollToColumn,u=h.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===i?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":u="cells"===i?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}d===l&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),Ze(We(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return Be(t,e),Ae(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,n=this._getScrollState(),r=n.scrollToColumn,i=n.scrollToRow;return s.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rt(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(s.PureComponent),Ze(_t,"propTypes",null),wt);Ze(bt,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,Ue.polyfill)(bt);function Tt(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=i((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(o){o.call(t,e)})))}))}},c=!1,h="",d="animationstart",u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=n.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<u.length;m++)if(void 0!==f.style[u[m]+"AnimationName"]){h="-"+u[m].toLowerCase()+"-",d=p[m],c=!0;break}var g="resizeanim",v="@"+h+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=h+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,s=n.getComputedStyle(t);s&&"static"==s.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".resize-triggers { "+(y||"")+'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%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var h=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=h.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&a(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var Et,xt;function Ot(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Mt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ot(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ot(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var It=(xt=Et=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),Ze(We(o),"_parentNode",void 0),Ze(We(o),"_autoSizer",void 0),Ze(We(o),"_window",void 0),Ze(We(o),"_detectElementResize",void 0),Ze(We(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,a=(o._window||window).getComputedStyle(o._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,h=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,u=i-h-d,p=s-l-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-l-c}),r({height:i,width:s}))}})),Ze(We(o),"_setRef",(function(e){o._autoSizer=e})),o}return Be(t,e),Ae(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._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Tt(e,this._window),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,o=e.className,n=e.disableHeight,r=e.disableWidth,i=e.style,a=this.state,l=a.height,c=a.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=l),r||(h.width=0,d.width=c),s.createElement("div",{className:o,ref:this._setRef,style:Mt({},h,{},i)},t(d))}}]),t}(s.Component),Ze(Et,"propTypes",null),xt);Ze(It,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Dt,Nt,zt=o(6405),kt=o.n(zt),Ht=(Nt=Dt=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"_child",void 0),Ze(We(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,a=void 0===s?o.props.index||0:s,l=o._getCellMeasurements(),c=l.height,h=l.width;c===t.getHeight(a,r)&&h===t.getWidth(a,r)||(t.set(a,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:a}))})),Ze(We(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return Be(t,e),Ae(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,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,zt.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,s=void 0===i?this.props.index||0:i;if(!t.has(s,n)){var a=this._getCellMeasurements(),l=a.height,c=a.width;t.set(s,n,c,l),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(s.PureComponent),Ze(Dt,"propTypes",null),Nt);Ze(Ht,"__internalCellMeasurerFlag",!1);function Gt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function At(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Gt(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Gt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Wt="observed",Pt="requested",Lt=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Ze(We(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),Ze(We(o),"_onSectionRenderedMemoizer",Je()),Ze(We(o),"_onScrollMemoizer",Je(!1)),Ze(We(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),Ze(We(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ze(We(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,a=o.state,l=a.scrollLeft,c=a.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:l,scrollTop:c,width:s});h.scrollLeft===l&&h.scrollTop===c||o._setScrollPosition(h)}})),Ze(We(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,s=t.width,a=o._scrollbarSize,l=n.getTotalSize(),c=l.height,h=l.width,d=Math.max(0,Math.min(h-s+a,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+a,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?Wt:Pt;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:h,totalHeight:c})}})),o._scrollbarSize=it(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return Be(t,e),Ae(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=it(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),s=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,a=this.state,l=a.scrollLeft,c=a.scrollPositionChangeReason,h=a.scrollTop;c===Pt&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&s===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,n=e.cellLayoutManager,r=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,c=e.noContentRenderer,h=e.style,d=e.verticalOverscanSize,u=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),y=v.height,C=v.width,S=Math.max(0,m-a),_=Math.max(0,g-d),w=Math.min(C,m+u+a),R=Math.min(y,g+i+d),b=i>0&&u>0?n.cellRenderers({height:R-_,isScrolling:f,width:w-S,x:S,y:_}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},E=y>i?this._scrollbarSize:0,x=C>u?this._scrollbarSize:0;return T.overflowX=C+E<=u?"hidden":"auto",T.overflowY=y+x<=i?"hidden":"auto",s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$e("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:At({},T,{},h),tabIndex:0},o>0&&s.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:C,overflow:"hidden",pointerEvents:f?"none":"",width:C}},b),0===o&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:Pt};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:Pt}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Pt}}}]),t}(s.PureComponent);Ze(Lt,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),Lt.propTypes={},(0,Ue.polyfill)(Lt);const Ft=Lt;var Bt=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;ze(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Ae(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;ze(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Ae(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),s=Math.floor((n+o-1)/this._sectionSize),a=Math.floor(r/this._sectionSize),l=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=a;d<=l;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new Bt({height:this._sectionSize,width:this._sectionSize,x:h*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function Ut(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,a=n,l=a-i+r;switch(o){case"start":return a;case"end":return l;case"center":return a-(i-r)/2;default:return Math.max(l,Math.min(a,s))}}var jt=function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(We(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(We(n)),n}return Be(t,e),Ae(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=je({},this.props);return s.createElement(Ft,je({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,n=e.sectionSize,r=[],i=new Zt(n),s=0,a=0,l=0;l<t;l++){var c=o({index:l});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));s=Math.max(s,c.y+c.height),a=Math.max(a,c.x+c.width),r[l]=c,i.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:r,height:s,sectionManager:i,width:a}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,n=e.height,r=e.scrollLeft,i=e.scrollTop,s=e.width,a=this.props.cellCount;if(o>=0&&o<a){var l=this._cellMetadata[o];r=Ut({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:r,targetIndex:o}),i=Ut({align:t,cellOffset:l.y,cellSize:l.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,s=e.y,a=this.props,l=a.cellGroupRenderer,c=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),l({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(s.PureComponent);Ze(jt,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),s={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(s)),t[e]):o(s)})).filter((function(e){return!!e}))}}),jt.propTypes={};(function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o)))._registerChild=n._registerChild.bind(We(n)),n}return Be(t,e),Ae(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,s=n||1,a=o?Math.min(o,i):i,l=i/r;return l=Math.max(s,l),l=Math.min(a,l),l=Math.floor(l),t({adjustedWidth:Math.min(i,l*r),columnWidth:l,getColumnWidth:function(){return l},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(s.PureComponent)).propTypes={};function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function $t(e,t){if(e){if("string"==typeof e)return Vt(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Vt(e,t):void 0}}function Yt(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$t(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.")}()}var qt=function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o)))._loadMoreRowsMemoizer=Je(),n._onRowsRendered=n._onRowsRendered.bind(We(n)),n._registerChild=n._registerChild.bind(We(n)),n}return Be(t,e),Ae(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Je(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var n=o(e);n&&n.then((function(){var o,n,r,i,s;o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},n=o.lastRenderedStartIndex,r=o.lastRenderedStopIndex,i=o.startIndex,s=o.stopIndex,i>r||s<n||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,n=this,r=this.props,i=r.isRowLoaded,s=r.minimumBatchSize,a=r.rowCount,l=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],a=null,l=null,c=r;c<=i;c++){t({index:c})?null!==l&&(s.push({startIndex:a,stopIndex:l}),a=l=null):(l=c,null===a&&(a=c))}if(null!==l){for(var h=Math.min(Math.max(l,a+o-1),n-1),d=l+1;d<=h&&!t({index:d});d++)l=d;s.push({startIndex:a,stopIndex:l})}if(s.length)for(var u=s[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var p=u.startIndex-1;if(t({index:p}))break;u.startIndex=p}return s}({isRowLoaded:i,minimumBatchSize:s,rowCount:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(a-1,t+l)}),h=(o=[]).concat.apply(o,Yt(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(s.PureComponent);Ze(qt,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),qt.propTypes={};var Kt,Xt,Qt=(Xt=Kt=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),Ze(We(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,a=e.key,l=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),l({index:n,style:r,isScrolling:i,isVisible:s,key:a,parent:t})})),Ze(We(o),"_setRef",(function(e){o.Grid=e})),Ze(We(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ze(We(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ze(We(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return Be(t,e),Ae(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,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,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,o=e.noRowsRenderer,n=e.scrollToIndex,r=e.width,i=$e("ReactVirtualized__List",t);return s.createElement(Ct,je({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(s.PureComponent),Ze(Kt,"propTypes",null),Xt);function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||$t(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.")}()}Ze(Qt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:St,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const eo={ge:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>=0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},gt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},lt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},le:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<=0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<=n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},eq:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(;t<=o;){var i=t+o>>>1,s=r(e[i],n);if(0===s)return i;s<=0?t=i+1:o=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(;t<=o;){var r=t+o>>>1,i=e[r];if(i===n)return r;i<=n?t=r+1:o=r-1}return-1}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)}};function to(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var oo=to.prototype;function no(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function ro(e,t){var o=fo(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function io(e,t){var o=e.intervals([]);o.push(t),ro(e,o)}function so(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?0:(o.splice(n,1),ro(e,o),1)}function ao(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function lo(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function co(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function ho(e,t){return e-t}function uo(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function po(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function fo(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(ho);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var a=e[o];a[1]<n?r.push(a):n<a[0]?i.push(a):s.push(a)}var l=s,c=s.slice();return l.sort(uo),c.sort(po),new to(n,fo(r),fo(i),l,c)}function mo(e){this.root=e}oo.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},oo.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?io(this,e):this.left.insert(e):this.left=fo([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?io(this,e):this.right.insert(e):this.right=fo([e]);else{var o=eo.ge(this.leftPoints,e,uo),n=eo.ge(this.rightPoints,e,po);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},oo.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?so(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?so(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}no(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?no(this,this.left):no(this,this.right);return 1}for(r=eo.ge(this.leftPoints,e,uo);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=eo.ge(this.rightPoints,e,po);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},oo.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return ao(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return lo(this.rightPoints,e,t)}return co(this.leftPoints,t)},oo.queryInterval=function(e,t,o){var n;if(e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o)))return n;if(t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o)))return n;return t<this.mid?ao(this.leftPoints,t,o):e>this.mid?lo(this.rightPoints,e,o):co(this.leftPoints,o)};var go=mo.prototype;go.insert=function(e){this.root?this.root.insert(e):this.root=new to(e[0],null,null,[e],[e])},go.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},go.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},go.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(go,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(go,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var vo,yo,Co=function(){function e(){var t;ze(this,e),Ze(this,"_columnSizeMap",{}),Ze(this,"_intervalTree",t&&0!==t.length?new mo(fo(t)):new mo(null)),Ze(this,"_leftMap",{})}return Ae(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Jt(e,3),r=t[0],i=(t[1],t[2]);return o(i,n._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function So(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?So(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):So(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var wo=(yo=vo=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),Ze(We(o),"_debounceResetIsScrollingId",void 0),Ze(We(o),"_invalidateOnUpdateStartIndex",null),Ze(We(o),"_invalidateOnUpdateStopIndex",null),Ze(We(o),"_positionCache",new Co),Ze(We(o),"_startIndex",null),Ze(We(o),"_startIndexMemoized",null),Ze(We(o),"_stopIndex",null),Ze(We(o),"_stopIndexMemoized",null),Ze(We(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),Ze(We(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ze(We(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return Be(t,e),Ae(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Co,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Co,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ut(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,a=o.cellRenderer,l=o.className,c=o.height,h=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,f=o.style,m=o.tabIndex,g=o.width,v=o.rowDirection,y=this.state,C=y.isScrolling,S=y.scrollTop,_=[],w=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,b=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var s;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),_.push(a({index:o,isScrolling:C,key:d(o),parent:t,style:(s={height:i.getHeight(o)},Ze(s,"ltr"===v?"left":"right",n),Ze(s,"position","absolute"),Ze(s,"top",r),Ze(s,"width",i.getWidth(o)),s)}))})),R<S+c+u&&b<r)for(var E=Math.min(r-b,Math.ceil((S+c+u-R)/i.defaultHeight*g/i.defaultWidth)),x=b;x<b+E;x++)e=x,_.push(a({index:x,isScrolling:C,key:d(x),parent:this,style:{width:i.getWidth(x)}}));return this._startIndex=T,this._stopIndex=e,s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$e("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:p,style:_o({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:w<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},s.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:w,maxWidth:"100%",maxHeight:w,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"}},_))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ut(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=pt(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var s=r(i),a=s.left,l=s.top;this._positionCache.setPosition(i,a,l,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(s.PureComponent),Ze(vo,"propTypes",null),yo);function Ro(){}Ze(wo,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Ro,onScroll:Ro,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,Ue.polyfill)(wo);var bo=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ze(this,e),Ze(this,"_cellMeasurerCache",void 0),Ze(this,"_columnIndexOffset",void 0),Ze(this,"_rowIndexOffset",void 0),Ze(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),Ze(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=a}return Ae(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function To(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Eo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?To(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):To(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var xo=function(e){function t(e,o){var n;ze(this,t),Ze(We(n=Pe(this,Le(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Ze(We(n),"_deferredInvalidateColumnIndex",null),Ze(We(n),"_deferredInvalidateRowIndex",null),Ze(We(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),Ze(We(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),Ze(We(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=qe(e,["rowIndex"]),r=n.props,i=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?s.createElement("div",{key:o.key,style:Eo({},o.style,{height:20})}):i(Eo({},o,{parent:We(n),rowIndex:t+a}))})),Ze(We(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=qe(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,a=i.fixedColumnCount,l=i.fixedRowCount;return s(Eo({},r,{columnIndex:t+a,parent:We(n),rowIndex:o+l}))})),Ze(We(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=qe(e,["columnIndex"]),r=n.props,i=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?s.createElement("div",{key:o.key,style:Eo({},o.style,{width:20})}):i(Eo({},o,{columnIndex:t+l,parent:We(n)}))})),Ze(We(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,a=n.state,l=a.scrollbarSize;return a.showHorizontalScrollbar&&t===r-i?l:"function"==typeof s?s({index:t+i}):s})),Ze(We(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)})),Ze(We(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,a=i.showVerticalScrollbar;if(t!==s||r!==a){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=n.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:o,vertical:r})}})),Ze(We(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),Ze(We(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),Ze(We(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,a=n.state,l=a.scrollbarSize;return a.showVerticalScrollbar&&t===i-r?l:"function"==typeof s?s({index:t+r}):s})),Ze(We(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),Ze(We(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var r=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),r&&(n._deferredMeasurementCacheBottomLeftGrid=a>0?new bo({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:a}):r,n._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new bo({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:a}):r,n._deferredMeasurementCacheTopRightGrid=i>0?new bo({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),n}return Be(t,e),Ae(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.fixedColumnCount,a=i.fixedRowCount,l=Math.max(0,o-s),c=Math.max(0,r-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=qe(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,c=a.scrollTop;return s.createElement("div",{style:this._containerOuterStyle},s.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Eo({},i,{onScroll:t,scrollLeft:l}))),s.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Eo({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Eo({},i,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:n,scrollToRow:r,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,s=t.fixedColumnCount,a=t.fixedRowCount,l=t.rowHeight,c=t.style,h=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,v=e||a!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Eo({height:i,overflow:"visible",width:f},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Eo({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Eo({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Eo({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Eo({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=i,this._lastRenderedRowHeight=l,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!o)return null;var l=a?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?h+d:h,p=s.createElement(Ct,je({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-n)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return i?s.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Eo({},this._bottomLeftGridStyle,{height:c,width:h,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return s.createElement(Ct,je({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,r-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-o,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?s.createElement(Ct,je({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,c=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!r)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;a&&(m=u+f,g=Eo({},this._topRightGridStyle,{left:0}));var v=s.createElement(Ct,je({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:g,tabIndex:null,width:p}));return a?s.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Eo({},this._topRightGridStyle,{height:u,width:p,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(s.PureComponent);Ze(xo,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),xo.propTypes={},(0,Ue.polyfill)(xo);(function(e){function t(e,o){var n;return ze(this,t),(n=Pe(this,Le(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(We(n)),n}return Be(t,e),Ae(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,s=t.scrollTop,a=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:s})}}]),t}(s.PureComponent)).propTypes={};function Oo(e){var t=e.className,o=e.columns,n=e.style;return s.createElement("div",{className:t,role:"row",style:n},o)}Oo.propTypes=null;const Mo={ASC:"ASC",DESC:"DESC"};function Io(e){var t=e.sortDirection,o=$e("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Mo.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Mo.DESC});return s.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Mo.ASC?s.createElement("path",{d:"M7 14l5-5 5 5z"}):s.createElement("path",{d:"M7 10l5 5 5-5z"}),s.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Do(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,a=[s.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&a.push(s.createElement(Io,{key:"SortIndicator",sortDirection:r})),a}function No(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(i||a||l||c||h)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:n,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:n,rowData:d})}),l&&(p.onMouseOut=function(e){return l({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),h&&(p.onContextMenu=function(e){return h({event:e,index:n,rowData:d})})),s.createElement("div",je({},p,{className:t,key:r,role:"row",style:u}),o)}Io.propTypes={},Do.propTypes=null,No.propTypes=null;var zo=function(e){function t(){return ze(this,t),Pe(this,Le(t).apply(this,arguments))}return Be(t,e),t}(s.Component);function ko(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ho(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ko(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ko(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Ze(zo,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Mo.ASC,flexGrow:0,flexShrink:1,headerRenderer:Do,style:{}}),zo.propTypes={};var Go=function(e){function t(e){var o;return ze(this,t),(o=Pe(this,Le(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(We(o)),o._createRow=o._createRow.bind(We(o)),o._onScroll=o._onScroll.bind(We(o)),o._onSectionRendered=o._onSectionRendered.bind(We(o)),o._setRef=o._setRef.bind(We(o)),o}return Be(t,e),Ae(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,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,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{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:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,zt.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,n=t.className,r=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,c=t.headerRowRenderer,h=t.height,d=t.id,u=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,C=r?h:h-l,S="function"==typeof p?p({index:-1}):p,_="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],s.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Ho({overflow:"hidden"},n)})),s.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":s.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:$e("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!r&&c({className:$e("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Ho({height:l,overflow:"hidden",paddingRight:y,width:v},_)}),s.createElement(Ct,je({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:$e("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:C,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Ho({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,c=t.props,h=c.cellDataGetter,d=c.cellRenderer,u=c.className,p=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:h({columnData:p,dataKey:f,rowData:i}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:r,rowData:i,rowIndex:a}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return s.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:$e("ReactVirtualized__Table__rowColumn",u),key:"Row"+a+"-Col"+o,onClick:function(e){l&&l({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,r,i,a=e.column,l=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=a.props,v=g.columnData,y=g.dataKey,C=g.defaultSortDirection,S=g.disableSort,_=g.headerRenderer,w=g.id,R=g.label,b=!S&&p,T=$e("ReactVirtualized__Table__headerColumn",h,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),E=this._getFlexStyleForColumn(a,Ho({},d,{},a.props.headerStyle)),x=_({columnData:v,dataKey:y,disableSort:S,label:R,sortBy:f,sortDirection:m});if(b||u){var O=f!==y?C:m===Mo.DESC?Mo.ASC:Mo.DESC,M=function(e){b&&p({defaultSortDirection:C,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};i=a.props["aria-label"]||R||y,r="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(r=m===Mo.ASC?"ascending":"descending"),s.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:w,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:E,tabIndex:n},x)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,a=e.style,l=this.props,c=l.children,h=l.onRowClick,d=l.onRowDoubleClick,u=l.onRowRightClick,p=l.onRowMouseOver,f=l.onRowMouseOut,m=l.rowClassName,g=l.rowGetter,v=l.rowRenderer,y=l.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,_="function"==typeof y?y({index:o}):y,w=g({index:o}),R=s.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:w,rowIndex:o,scrollbarWidth:C})})),b=$e("ReactVirtualized__Table__row",S),T=Ho({},a,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:C},_);return v({className:b,columns:R,index:o,isScrolling:n,key:r,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Ho({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:s.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(s.PureComponent);Ze(Go,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:St,overscanRowCount:10,rowRenderer:No,headerRowRenderer:Oo,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Go.propTypes={};var Ao=[],Wo=null,Po=null;function Lo(){Po&&(Po=null,document.body&&null!=Wo&&(document.body.style.pointerEvents=Wo),Wo=null)}function Fo(){Lo(),Ao.forEach((function(e){return e.__resetIsScrolling()}))}function Bo(e){e.currentTarget===window&&null==Wo&&document.body&&(Wo=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Po&&ut(Po);var e=0;Ao.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Po=pt(Fo,e)}(),Ao.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Zo(e,t){Ao.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Bo),Ao.push(e)}function Uo(e,t){(Ao=Ao.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Bo),Po&&(ut(Po),Lo()))}var jo,Vo,$o=function(e){return e===window},Yo=function(e){return e.getBoundingClientRect()};function qo(e,t){if(e){if($o(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return Yo(e)}return{height:t.serverHeight,width:t.serverWidth}}function Ko(e){return $o(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Xo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var Qo=function(){return"undefined"!=typeof window?window:void 0},Jo=(Vo=jo=function(e){function t(){var e,o;ze(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ze(We(o=Pe(this,(e=Le(t)).call.apply(e,[this].concat(r)))),"_window",Qo()),Ze(We(o),"_isMounted",!1),Ze(We(o),"_positionFromTop",0),Ze(We(o),"_positionFromLeft",0),Ze(We(o),"_detectElementResize",void 0),Ze(We(o),"_child",void 0),Ze(We(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Xo(o,!0).forEach((function(t){Ze(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Xo(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},qo(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),Ze(We(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),Ze(We(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),Ze(We(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),Ze(We(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),Ze(We(o),"_onResize",(function(){o.updatePosition()})),Ze(We(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=Ko(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),Ze(We(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return Be(t,e),Ae(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,n=o.height,r=o.width,i=this._child||zt.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if($o(t)&&document.documentElement){var o=document.documentElement,n=Yo(e),r=Yo(o);return{top:n.top-r.top,left:n.left-r.left}}var i=Ko(t),s=Yo(e),a=Yo(t);return{top:s.top+i.top-a.top,left:s.left+i.left-a.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var a=qo(e,this.props);n===a.height&&r===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Tt(),this.updatePosition(e),e&&(Zo(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),Uo(this,n),Zo(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Uo(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:s})}}]),t}(s.PureComponent),Ze(jo,"propTypes",null),Vo);Ze(Jo,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Qo(),serverHeight:0,serverWidth:0});var en,tn=(en=function(e,t){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},en(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}en(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),on=function(){return on=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},on.apply(this,arguments)},nn={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return tn(t,e),t.prototype.render=function(){return s.createElement("div",{className:this.props.className||"",style:on(on({position:"absolute",userSelect:"none"},nn[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(s.PureComponent),sn=o(3316),an=o.n(sn),ln=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),cn=function(){return cn=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cn.apply(this,arguments)},hn={width:"auto",height:"auto"},dn=an()((function(e,t,o){return Math.max(Math.min(e,o),t)})),un=an()((function(e,t){return Math.round(e/t)*t})),pn=an()((function(e,t){return new RegExp(e,"i").test(t)})),fn=function(e){return Boolean(e.touches&&e.touches.length)},mn=an()((function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,r){return Math.abs(n-e)<Math.abs(t[o]-e)?r:o}),0),r=Math.abs(t[n]-e);return 0===o||r<o?t[n]:e})),gn=an()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),vn=an()((function(e){return"auto"===(e=e.toString())||gn(e,"px")||gn(e,"%")||gn(e,"vh")||gn(e,"vw")||gn(e,"vmax")||gn(e,"vmin")?e:e+"px"})),yn=function(e,t,o,n){if(e&&"string"==typeof e){if(gn(e,"px"))return Number(e.replace("px",""));if(gn(e,"%"))return t*(Number(e.replace("%",""))/100);if(gn(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(gn(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Cn=an()((function(e,t,o,n,r,i,s){return n=yn(n,e.width,t,o),r=yn(r,e.height,t,o),i=yn(i,e.width,t,o),s=yn(s,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}})),Sn=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],_n="__resizable_base__",wn=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(_n):t.className+=_n,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return ln(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||hn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&gn(e.propsSize[t].toString(),"%")){if(gn(e.state[t].toString(),"%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return vn(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?vn(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?vn(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==o&&"auto"!==o?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,r=this.props.boundsByDirection,i=this.state.direction,s=r&&pn("left",i),a=r&&pn("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(o=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),n=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,r=this.state,i=r.direction,s=r.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,h=a.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return pn("right",i)&&(d=s.width+(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),pn("left",i)&&(d=s.width-(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),pn("bottom",i)&&(u=s.height+(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),pn("top",i)&&(u=s.height-(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var r=this.props,i=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,l=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,h=void 0===n.height?10:n.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=a||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(l-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(l,f),C=Math.min(c,m),S=Math.max(h,g),_=Math.min(d,v);e=dn(e,y,C),t=dn(t,S,_)}else e=dn(e,l,c),t=dn(t,h,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),r=n.left,i=n.top,s=n.right,a=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&fn(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:cn(cn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&fn(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,o=t.maxWidth,n=t.maxHeight,r=t.minWidth,i=t.minHeight,s=fn(e)?e.touches[0].clientX:e.clientX,a=fn(e)?e.touches[0].clientY:e.clientY,l=this.state,c=l.direction,h=l.original,d=l.width,u=l.height,p=this.getParentSize(),f=Cn(p,this.window.innerWidth,this.window.innerHeight,o,n,r,i);o=f.maxWidth,n=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(s,a),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),C=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=C.newWidth,g=C.newHeight,this.props.grid){var S=un(v,this.props.grid[0]),_=un(g,this.props.grid[1]),w=this.props.snapGap||0;v=0===w||Math.abs(S-v)<=w?S:v,g=0===w||Math.abs(_-g)<=w?_:g}this.props.snap&&this.props.snap.x&&(v=mn(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=mn(g,this.props.snap.y,this.props.snapGap));var R={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(gn(d,"%"))v=v/p.width*100+"%";else if(gn(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(gn(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(gn(u,"%"))g=g/p.height*100+"%";else if(gn(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(gn(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var b={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?b.flexBasis=b.width:"column"===this.flexDir&&(b.flexBasis=b.height),this.setState(b),this.props.onResize&&this.props.onResize(e,c,this.resizable,R)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,r=t.original;if(o&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:cn(cn({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,n=t.handleStyles,r=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?s.createElement(rn,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:r&&r[t]},l&&l[t]?l[t]:null):null}));return s.createElement("div",{className:a,style:i},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Sn.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=cn(cn(cn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return s.createElement(n,cn({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&s.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(s.PureComponent);const Rn="bottom",bn="left",Tn="right",En="top",xn={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},On={min:0,max:1/0},Mn=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:P(e,t.min,t.max),width:P(o,n.min,n.max)}),In=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...Mn({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===bn||n===Tn,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===En||n===Rn});class Dn extends a().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:On,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:On};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=In(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=In(e);this.setState(s);const{height:a,width:l}=s,c=i||t;!c||a===o&&l===r||c({height:a,width:l,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:a,vertical:l,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>Mn({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=a&&d!==c,p=l&&h!==s;(u||p)&&(this.setState({height:p?h:s,width:u?d:c,isMouseWheeling:!1}),i&&i({height:p?h:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:o,horizontal:n,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?o:void 0,width:n?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:n,width:r,initialWidth:i,initialHeight:s}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&s===t||e&&e({width:o?r:void 0,height:n?t:void 0})};_onWheel=()=>{this.isMouseWheeling||(this.isMouseWheeling=!0,this.setState({isMouseWheeling:!0})),clearTimeout(this.onWheelTimeOut),this.onWheelTimeOut=setTimeout((()=>{this.isMouseWheeling=!1,this.setState({isMouseWheeling:!1})}),50)};render(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:s,style:l,translate:c,heightConstraints:h,wrapChildrenInDivContainer:d,widthConstraints:u}=this.props,{enable:p,height:f,horizontal:m,resizing:g,vertical:v,width:y,isMouseWheeling:C}=this.state,{display:S,..._}=l,{min:w,max:R}=u,{min:b,max:T}=h,E={...this.props.wrapperStyle};m&&(E.width=y,E.minWidth=y),v&&(E.height=f,E.minHeight=f);const x=i()("resizable",t,{resizing:g}),O=i()("contents",n,`resize-edge-${r}`,{horizontal:m,vertical:v}),M=i()(r,s,"resizable-handle",{horizontal:m,vertical:v}),I=a().createElement("span",{title:c("ResizePanel")});return a().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...E,display:S}},a().createElement(wn,{className:x,"data-testid":"resizable-core",enable:{...xn,[r]:!C&&p},handleClasses:{[r]:M},handleComponent:{[r]:I},handleStyles:o,maxHeight:v?T:void 0,maxWidth:m?R:void 0,minHeight:v?b:void 0,minWidth:m?w:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:v?f:"100%",width:m?y:"100%"},style:_},d?a().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}class Nn extends a().PureComponent{horizontalScrollRef=a().createRef();verticalScrollRef=a().createRef();outerHorizontalScrollRef=a().createRef();updateScrollbarValues(e,t){this.horizontalScrollRef?.current&&(this.horizontalScrollRef.current.scrollLeft=e||0),this.verticalScrollRef?.current&&(this.verticalScrollRef.current.scrollTop=t||0)}componentDidUpdate(e){const{scrollLeft:t,scrollTop:o}=this.props;e.scrollLeft===t&&e.scrollTop===o||this.updateScrollbarValues(t,o)}onHorizontalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:e.target.clientWidth,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:e.target.scrollLeft,scrollTop:this.props.scrollTop||0,scrollWidth:e.target.scrollWidth})}onVerticalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:e.target.clientHeight,clientWidth:this.props.width||0,scrollHeight:e.target.scrollHeight,scrollLeft:this.props.scrollLeft||0,scrollTop:e.target.scrollTop,scrollWidth:this.props.contentWidth||0})}componentDidMount(){this.updateScrollbarValues(this.props.scrollLeft,this.props.scrollTop)}hasHorizontalScroll(){const{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:n}=this.props;return o||t&&n<e}hasVerticalScroll(){const{displayVerticalScrollbar:e,forceVerticalScrollbar:t,height:o}=this.props;return t||e&&o<this.getAdjustedContentHeight()}getHorizontalScrollbarTickness(){return parseInt(this.outerHorizontalScrollRef.current?.clientHeight,10)||0}getAdjustedContentHeight(){return this.props.contentHeight+this.getHorizontalScrollbarTickness()}render(){const{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:n,forceVerticalScrollbar:r,height:i,width:s}=this.props,l=this.hasVerticalScroll(),c=this.hasHorizontalScroll(),h=c&&a().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${i}px - var(--scrollable-scrollbar-thickness))`,width:s}},a().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:n?"scroll":"auto",width:l?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},a().createElement("div",{style:{height:"1px",width:o}}))),d=l&&a().createElement("div",{className:"scrollbar-outer vertical",style:{height:i}},a().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:r?"scroll":"auto",height:c?`calc(${i}px - var(--scrollable-scrollbar-thickness))`:i}},a().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return a().createElement("div",{className:"scrollbar-container"},a().createElement("div",{className:"scrollable-content"},e),h,d)}}var zn=Nn;function kn(e,t,o){const n=t*m.$0,{shape:r}=m.Qh[e],i=m.d_[r];if(!i)return{height:0,offset:0};const{baseHeight:s,minHeight:a,maxHeight:l}=i;let c=s*(o/n);void 0!==a&&c<a&&(c=a),void 0!==l&&c>l&&(c=l);const h=m.$0*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function Hn(e,t,o){const n=o*m.$0;return e*m.$0/n*t}class Gn extends a().PureComponent{canvas;componentDidMount(){this.updateCanvas()}componentWillReceiveProps(e){e.branchUpstreamRowIndices===this.props.branchUpstreamRowIndices&&e.markerRowIndices===this.props.markerRowIndices&&e.totalRows===this.props.totalRows&&e.viewportHeight===this.props.viewportHeight&&e.viewportWidth===this.props.viewportWidth&&e.markerColors===this.props.markerColors&&e.enabledScrollMarkerTypes===this.props.enabledScrollMarkerTypes&&e.scrollWidth===this.props.scrollWidth||this.updateCanvas()}updateCanvas(e){const{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:n,markerRowIndices:r,markerColors:i,scrollWidth:s,totalRows:a}=e||this.props,l=this.canvas.getContext("2d");l.canvas.width=s,l.canvas.height=n;const c=s/m.dF;l.clearRect(0,0,l.canvas.width,l.canvas.height);for(const[e,s]of Object.entries(m.Qh)){if(!(o.includes(e)||"remoteBranches"===e&&o.includes("localBranches")))continue;const h="remoteBranches"!==e||o.includes("remoteBranches")?r[e]||[]:t,d=i[e],u=s.lanes;d&&h.length&&(l.fillStyle=d,h.forEach((t=>{const{height:o,offset:r}=kn(e,a,n);u.length&&l.fillRect(u[0]*c,Hn(t,n,a)+r-.5*o,c*u.length,o)})))}}render(){return a().createElement("canvas",{className:"graph-scroll-markers",ref:e=>this.canvas=e})}}var An=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:i,style:s}){const l=m.qi[r].listId,c=document.getElementById(l),h=c?.scrollHeight||0;let d=o-28;void 0!==i&&(d=Number(s.top)-i,c&&h-o-i<0&&(d=o-n-28));const u={top:d,zIndex:2},p=a().createElement("span",{className:"absolute",style:u},e);return a().createElement("div",{className:t,style:s},c?kt().createPortal(p,document.getElementById("graph-container")):p)};function Wn({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=i()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=i()("spinner","mr1",{"inline-block":e}),c={height:n,width:n},h=i()("message",{"inline-block":e,mx2:e}),d=r?a().createElement("span",{className:l,style:c},t("loading")):a().createElement("div",{className:l,style:c},a().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:c}),a().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:c}),a().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:c}));return a().createElement("div",{className:s},d,o&&a().createElement("div",{className:h},o))}class Pn extends a().Component{render(){const{currentCommits:e,graphZoneType:t,hasMoreCommits:o,height:n,horizontalScrollHeight:r,getExternalIcon:i,isLoadingRows:s,scrollTop:l,style:c,translate:h}=this.props,d=a().createElement(Wn,{className:"loading-spinner",getExternalIcon:i,size:20,useSimpleSpinner:!0}),u=0!==(e>0?e:0)||o?null:a().createElement(a().Fragment,null,h("Graph-NoCommits")),p=a().createElement("div",{className:"graph-adjust-commit-count p1"},s?a().createElement("div",{className:"flex items-center"},a().createElement("span",{style:{paddingRight:"5px"}},d)):u);return a().createElement(An,{graphZoneType:t,height:n,heightAdjustment:r,scrollTop:l,style:c},p)}}var Ln=Pn;function Fn({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:n,enabledScrollMarkerTypes:r,enableResizer:s,getExternalIcon:l,getKeyForCell:c,graphHeight:h,graphWidth:d,graphZoneType:u,graphZones:p,hasMoreCommits:f,horizontalScrollHeight:g,isLoadingRows:v,markerColors:y,markerRowIndices:C,onResize:S,onResizeEnd:_,onResizeFromPropChange:w,onScroll:R,onScrollToRowCausedUpdate:b,onZoneEnter:T,scrollLeft:E,scrollToAlignment:x,scrollToIndex:O,scrollTop:M,smartCellRangeRenderer:I,translate:D,verticalScrollWidth:N}){const z=ie(u,p);if(!z)return null;const k=X(u,p),H=Q(t,f,v),G=J(t,f,v),A=te(z,t),W=ee(t,f,v),P=N>0,L=r.length>0,F=i()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",u===m.jZ?"z3":null,{"pad-for-vertical-scrollbar":P}),B=u===m.Wm?{...!k&&{position:"static"},...k&&{width:z.currentWidth>A?z.currentWidth:A,maxWidth:"none"}}:void 0,Z=e=>R(u,e,d,h,f),U=(e,r,i,s,p,y,C,S)=>a().createElement(Ct,{autoContainerWidth:!0,cellRangeRenderer:I,cellRenderer:r=>((e,r)=>{if(r.rowIndex>t-1)return H&&0===n?a().createElement(Ln,{currentCommits:t-1,getExternalIcon:l,graphZoneType:u,hasMoreCommits:f,height:h,horizontalScrollHeight:g,isLoadingRows:v,key:c(r.rowIndex),scrollTop:M,style:r.style,translate:D}):void 0;const i={...r,style:{...r.style}};if(m.Gn===e){i.style.top=Number(r.style.top)-M;const e=document.getElementById(z.listId);e&&Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)<1&&(i.style.top=Number(r.style.top)-e?.scrollTop||M)}const s=o[e];return s?s(i):void 0})(e,r),className:i,columnCount:1,columnWidth:S,containerStyle:s,height:C,id:r,isScrolling:!1,key:r,onScroll:Z,onScrollToTargetCausedUpdate:b?e=>b(u,e,d,h,f):void 0,overscanRowCount:0,rowCount:G,rowHeight:m.$0,scrollLeft:E,scrollToAlignment:x,scrollTop:M,scrollToRow:O,style:p,tabIndex:null,width:y}),j=U(z.type,z.listId,F,B,{position:"absolute"},z.currentWidth,h,A),V=j&&a().createElement(a().Fragment,null,L&&k?a().createElement(Gn,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:r,markerColors:y,markerRowIndices:C,scrollWidth:N,totalRows:G,viewportHeight:h<W?h:W,viewportWidth:z.currentWidth}):null,a().createElement(zn,{contentHeight:W,contentWidth:A,displayHorizontalScrollbar:z.type===m.Wm,displayVerticalScrollbar:k,forceVerticalScrollbar:k&&L,height:h,onScroll:e=>Z(e),scrollLeft:E,scrollTop:M,width:z.currentWidth},j)),$=k?U(m.Gn,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:W},{position:"absolute",right:0,zIndex:3,maxHeight:h},1,h,1):void 0,Y=a().createElement("div",{onMouseEnter:T},V,$);return k?Y:a().createElement(Dn,{enable:s,height:h,id:`${u}Column`,key:`${u}Column`,onResize:S?e=>S(z,e):void 0,onResizeEnd:_?e=>_(z,e):void 0,onResizeFromPropChange:w?e=>w(z,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:z.currentWidth,widthConstraints:ae(u,p,d)},Y)}var Bn=o(977),Zn=o.n(Bn);const Un="dnd-container";class jn extends a().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,n)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),o=n?.id?this.sanitizeId(n.id):null,r=this.childReactElementsById[t],i=o?this.childReactElementsById[o]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>Boolean(e?.classList.contains(Un));movesCallback=e=>Boolean(e?.id)&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>Boolean(e?.id)&&this.isDroppable(e.id,n?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){const t={isContainer:this.isContainerCallback,mirrorContainer:this.props.mirrorContainer,moves:this.movesCallback,accepts:this.acceptsCallback,invalid:this.invalidCallBack,direction:this.props.direction||"horizontal",copy:!1,copySortSource:!1,revertOnSpill:!1,removeOnSpill:!1,ignoreInputTextSelection:!0};this.dndDrake=Zn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{a().isValidElement(e)&&this.addChildReactElement(e)})):a().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){const t=e.props.id;t&&(this.childReactElementsById[this.sanitizeId(t)]=e)}sanitizeId(e){return e.trim().toLowerCase().replace(/-/g,"").replace(/_/g,"")}isDraggable(e){if(this.props.isDraggable){const t=this.sanitizeId(e),o=this.childReactElementsById[t];return Boolean(o)&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){const o=this.sanitizeId(e),n=t?this.sanitizeId(t):null,r=this.childReactElementsById[o],i=n?this.childReactElementsById[n]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,o=i()(Un,t);return a().createElement("div",{className:o,ref:this.dndDecorator},e)}}var Vn=jn,$n=o(8613);function Yn(e,t){if(null==e)return{};var o,n,r={},i=$n(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var qn=o(5627),Kn=o(433);function Xn(e,t){return Xn=Kn?Kn.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}function Qn(e,t){e.prototype=qn(t.prototype),e.prototype.constructor=e,Xn(e,t)}var Jn=o(6981);function er(){return er=Jn?Jn.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},er.apply(this,arguments)}var tr,or=o(5697),nr=o.n(or),rr=o(2856),ir=o.n(rr),sr=o(8853),ar=o.n(sr),lr=o(644),cr={in:nr().bool,mountOnEnter:nr().bool,unmountOnExit:nr().bool,appear:nr().bool,timeout:nr().number,onEnter:nr().func,onEntering:nr().func,onEntered:nr().func,onExit:nr().func,onExiting:nr().func,onExited:nr().func},hr=((tr={})[lr.d0]="in",tr[lr.cn]="in",tr),dr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Yn(e,["className","children"]);return a().createElement(lr.ZP,n,(function(e,n){return a().cloneElement(o,er({},n,{className:i()("fade",t,o.props.className,hr[e])}))}))},t}(a().Component);dr.propTypes=cr,dr.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const ur=dr;var pr=er({},ir().propTypes,{show:nr().bool,rootClose:nr().bool,onHide:nr().func,animation:nr().oneOfType([nr().bool,ar()]),onEnter:nr().func,onEntering:nr().func,onEntered:nr().func,onExit:nr().func,onExiting:nr().func,onExited:nr().func,placement:nr().oneOf(["top","right","bottom","left"])}),fr={animation:ur,rootClose:!1,show:!1,placement:"right"},mr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,r=Yn(t,["animation","children"]),l=!0===o?ur:o||null;return e=l?n:(0,s.cloneElement)(n,{className:i()(n.props.className,"in")}),a().createElement(ir(),er({},r,{transition:l}),e)},t}(a().Component);mr.propTypes=pr,mr.defaultProps=fr;const gr=mr;var vr=o(5638),yr=o.n(vr),Cr=o(3562),Sr=o.n(Cr),_r=o(1143),wr=o.n(_r),Rr="large",br="small",Tr={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function Er(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return"function"==typeof o[o.length-1]?e.apply(void 0,o):function(t){return e.apply(void 0,o.concat([t]))}}}function xr(e,t){var o=(e.bsClass||"").trim();return null==o&&wr()(!1),o+(t?"-"+t:"")}var Or=Er((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=nr().string,n.bsClass=e,t})),Mr=(Er((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.STYLES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=nr().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=er({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),Er((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.SIZES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=[];n.forEach((function(e){var t=Tr[e];t&&t!==e&&i.push(t),i.push(e)}));var s=nr().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=er({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o})));function Ir(e){var t,o=((t={})[xr(e)]=!0,t);e.bsSize&&(o[xr(e,Tr[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[xr(e,e.bsStyle)]=!0),o}function Dr(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function Nr(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function zr(e){var t={};return Sr()(e).forEach((function(e){var o=e[0],n=e[1];Nr(o)||(t[o]=n)})),[Dr(e),t]}var kr={id:yr()(nr().oneOfType([nr().string,nr().number])),placement:nr().oneOf(["top","right","bottom","left"]),positionTop:nr().oneOfType([nr().number,nr().string]),positionLeft:nr().oneOfType([nr().number,nr().string]),arrowOffsetTop:nr().oneOfType([nr().number,nr().string]),arrowOffsetLeft:nr().oneOfType([nr().number,nr().string]),title:nr().node},Hr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.title,h=t.className,d=t.style,u=t.children,p=zr(Yn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),f=p[0],m=p[1],g=er({},Ir(f),((e={})[o]=!0,e)),v=er({display:"block",top:n,left:r},d),y={top:s,left:l};return a().createElement("div",er({},m,{role:"tooltip",className:i()(h,g),style:v}),a().createElement("div",{className:"arrow",style:y}),c&&a().createElement("h3",{className:xr(f,"title")},c),a().createElement("div",{className:xr(f,"content")},u))},t}(a().Component);Hr.propTypes=kr,Hr.defaultProps={placement:"right"};const Gr=Or("popover",Hr);function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wr=o(8149),Pr=o.n(Wr),Lr=o(1629),Fr=o.n(Lr);o(670);const Br=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.apply(this,n),t.apply(this,n)}}),null)};function Zr(e,t){return Pr()(t)?t.indexOf(e)>=0:e===t}var Ur=nr().oneOf(["click","hover","focus"]),jr=er({},gr.propTypes,{trigger:nr().oneOfType([Ur,nr().arrayOf(Ur)]),delay:nr().number,delayShow:nr().number,delayHide:nr().number,defaultOverlayShown:nr().bool,overlay:nr().node.isRequired,onBlur:nr().func,onClick:nr().func,onFocus:nr().func,onMouseOut:nr().func,onMouseOver:nr().func,target:nr().oneOf([null]),onHide:nr().oneOf([null]),show:nr().oneOf([null])}),Vr=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(Ar(Ar(n))),n.handleDelayedShow=n.handleDelayedShow.bind(Ar(Ar(n))),n.handleDelayedHide=n.handleDelayedHide.bind(Ar(Ar(n))),n.handleHide=n.handleHide.bind(Ar(Ar(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:t.defaultOverlayShown},n}Qn(t,e);var o=t.prototype;return o.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},o.componentDidUpdate=function(){this.renderOverlay()},o.componentWillUnmount=function(){kt().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},o.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout((function(){e._hoverHideDelay=null,e.hide()}),t):this.hide()}},o.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((function(){e._hoverShowDelay=null,e.show()}),t):this.show()}},o.handleHide=function(){this.hide()},o.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent[o];r&&r===n||Fr()(n,r)||e(t)},o.handleToggle=function(){this.state.show?this.hide():this.show()},o.hide=function(){this.setState({show:!1})},o.makeOverlay=function(e,t){return a().createElement(gr,er({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){kt().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,r=e.onBlur,i=e.onClick,l=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Yn(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=a().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=Br(p.onClick,i),Zr("click",t)&&(f.onClick=Br(f.onClick,this.handleToggle)),Zr("hover",t)&&(f.onMouseOver=Br(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=Br(p.onMouseOut,c,this.handleMouseOut)),Zr("focus",t)&&(f.onFocus=Br(p.onFocus,l,this.handleDelayedShow),f.onBlur=Br(p.onBlur,r,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,s.cloneElement)(u,f)},t}(a().Component);Vr.propTypes=jr,Vr.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const $r=Vr;var Yr={id:yr()(nr().oneOfType([nr().string,nr().number])),placement:nr().oneOf(["top","right","bottom","left"]),positionTop:nr().oneOfType([nr().number,nr().string]),positionLeft:nr().oneOfType([nr().number,nr().string]),arrowOffsetTop:nr().oneOfType([nr().number,nr().string]),arrowOffsetLeft:nr().oneOfType([nr().number,nr().string])},qr=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.className,h=t.style,d=t.children,u=zr(Yn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),p=u[0],f=u[1],m=er({},Ir(p),((e={})[o]=!0,e)),g=er({top:n,left:r},h),v={top:s,left:l};return a().createElement("div",er({},f,{role:"tooltip",className:i()(c,m),style:g}),a().createElement("div",{className:xr(p,"arrow"),style:v}),a().createElement("div",{className:xr(p,"inner")},d))},t}(a().Component);qr.propTypes=Yr,qr.defaultProps={placement:"right"};const Kr=Or("tooltip",qr);var Xr=o(7334);var Qr=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:i,width:s}){const l={...o,background:`url(${i}) 0% 0% / ${r}px no-repeat`,height:n||r,width:s||r},c=["avatar","content-box",...e].join(" ").trim();return a().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Z(t),style:l})};const Jr=(e,t,o)=>e?((e,t)=>a().createElement("span",{className:"ref-avatar mr1"},a().createElement(Qr,{context:t,size:14,url:e})))(e,o):t;function ei({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?a().createElement($r,{delayShow:400,overlay:a().createElement(Kr,{className:i()("gk-graph","bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):a().createElement(a().Fragment,null," ",e," ")}function ti({hostingServiceType:e,icon:t,id:o,title:n}){return a().createElement(ei,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n&&""!==n.trim()?`#${o}: ${n}\nDouble-click to open pull request on ${(0,Xr.y)(e)}`:""})}function oi({icon:e,type:t,upstream:o,tooltipText:n}){return a().createElement(ei,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function ni({avatarUrl:e,context:t,icon:o,tooltipText:n}){return a().createElement(ei,{icon:Jr(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var ri=o(9915);var ii=function({name:e}){return a().createElement("span",{className:"ref-name truncate",style:{height:m.pj}},e)};function si(e,t,o,n,r,s,l){let c;if(c=n.refType===L.V.HEAD?n.upstream?e?.[n.upstream.id]?.[F.mQ]:null:U(n,e,t,F.mQ),!c||0===c.length)return null;const h=c,d=[];for(const e of h){const{context:t,hostingServiceType:c,id:h,title:u}=e;if(l.has(h))continue;l.add(h);const p={refId:n.id,type:F.mQ,data:e},f=`pr-icon-${n.refType}-${n.name}-${h}`,m=a().createElement("span",{className:i()("mr1","ref-pull-request"),"data-vscode-context":Z(t),key:f,onClick:e=>r(e,p),onDoubleClick:e=>s(e,p)},o("pull-request"));d.push(a().createElement(ti,{hostingServiceType:c,icon:m,id:h,key:f,title:u}))}return d}function ai(e,t,o,n,r,i){const s=U(n,e,t,F.uq);if(!s||0===s.ahead&&0===s.behind)return null;const l=s,c={refId:n.id,type:F.uq,data:l},h=l.ahead>0,d=l.behind>0,u=l.context;if(h||d){const e=h?`${l.ahead>99?"99+":l.ahead}`:"",t=d?`${l.behind>99?"99+":l.behind}`:"",n=`${l.owner}/${l.name}`;let s,p;return d&&h?(s=`${t} ${l.behind>1?"commits":"commit"} behind and ${e} ${l.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to pull changes`,p="ahead-behind"):d?(s=`${t} ${l.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(s=`${e} ${l.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),a().createElement(oi,{icon:a().createElement("div",{className:"ref-upstream","data-vscode-context":Z(u),onClick:e=>r(e,c),onDoubleClick:e=>i(e,c)},d?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:s,type:p,upstream:n})}return null}function li(e,t,o,n=0){const{refType:r,name:s}=t;let l,c,h="";switch(r){case L.V.REMOTE:c=L.V.REMOTE,l=t.avatarUrl,h=`${t.owner} -> ${s} (${o("Ref-Remote")})`;break;case L.V.TAG:c=L.V.TAG,h=`${s} (${o("Ref-Tag")})`;break;case L.V.HEAD:default:c=L.V.HEAD,h=`${s} (${o("Ref-Local")})`}const d=t.context||void 0,u=a().createElement("span",{className:i()("mr1"),"data-vscode-context":Z(d)},e(c));return a().createElement(ni,{avatarUrl:l||"",context:d,icon:u,key:`ref-icon-${n}-${r}-${s}`,tooltipText:h})}function ci(e,t,o){let n,r=!1,i=!1,s=!1;for(const a of e){if(a.refType===L.V.HEAD)return o?a.contextGroup||t:a.context;a.refType===L.V.REMOTE&&("origin"===a.owner?(r=!0,n=o?a.contextGroup||t:a.context):r||"upstream"!==a.owner?r||i||(s=!0,n=o?a.contextGroup||t:a.context):(i=!0,n=o?a.contextGroup||t:a.context)),r||i||s||(n=o?a.contextGroup||t:a.context)}return n}class hi extends a().PureComponent{onContextMenu=e=>{const{onContextMenu:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClick=e=>{const{onClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};render(){const{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isGhostRef:n,getExternalIcon:r,groupIsHovered:s,isInUnsupportedRebase:l,onRefBeginDrag:c,onRefDragEnter:h,onRefDragLeave:d,onRefDrop:u,onRefCanDrag:p,onRefCanDrop:f,onRefEndDrag:g,isRefGroupIncluded:v,onMissingRefMetadata:y,refGroup:C,refGroupContext:S,refMetadata:_,onHovered:w,onHideRefClick:R,sha:b,enabledRefMetadataTypes:T,translate:E,type:x}=this.props,O=i()("ref-node-wrapper","flex"),M={minWidth:0,marginLeft:3,height:m.cZ},I=i()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&s,"is-active":t}),D=C.length?C[0].fullName||C[0].name:"",N=a().createElement(ii,{name:D}),z=[],k=[];let H=null;const G=new Set;let A;for(let e=0;e<C.length;e+=1){if(A=C[e],z.push(li(r,A,E,e)),T.includes(F.mQ)&&(A.refType===L.V.REMOTE||A.refType===L.V.HEAD&&A.upstream)){const e=si(_,y,r,A,this.onClickMetadata,this.onDoubleClickMetadata,G);e&&k.push(...e)}T.includes(F.uq)&&A.refType===L.V.HEAD&&(H=ai(_,y,r,A,this.onClickMetadata,this.onDoubleClickMetadata))}const W=[...z,...k],P=C.some((e=>e.refType===L.V.HEAD&&e.isCurrentHead)),B=!t||s&&!P?null:a().createElement(ei,{icon:a().createElement("span",{className:i()("mr1")},r("check")),tooltipId:"ref-icon-current",tooltipText:E("Ref-Current")}),U=ci(C,S),j=ci(C,S,!0),V=e&&!P&&s&&!v?a().createElement(ei,{icon:a().createElement("span",{className:i()("mr1","button"),onClick:e=>R(e,C,b)},r("hide")),tooltipId:`ref-node-toggle-visibility-btn-${D}`,tooltipText:E("Hide")}):null,$={commitType:x,isGhostRef:n,isInUnsupportedRebase:l,refGroup:C,sha:b};return a().createElement(ri.Z,{canDrag:e=>p(e),canDrop:(e,t,o)=>f(e,t,o),className:O,"data-vscode-context":Z(j),dndData:$,dndId:`DndRefNode_${C[0].id}`,onBeginDrag:(e,t)=>c(e,t),onDragEnter:(e,t,o)=>h(e,t,o),onDragLeave:(e,t,o)=>d(e,t,o),onDrop:(e,t,o)=>u(e,t,o),onEndDrag:(e,t,o)=>g(e,t,o),style:M},a().createElement("span",{className:I,"data-test-class":"ref-node-span","data-vscode-context":Z(U),onClick:this.onClick,onContextMenu:l?void 0:this.onContextMenu,onDoubleClick:l?void 0:this.onDoubleClick,onMouseEnter:e=>w(e,C,b),style:{minWidth:"100%"}},B,a().createElement("span",{className:"flex items-center"},W),N,H,a().createElement("span",{className:"flex ml-auto"},V)))}}class di extends a().Component{constructor(e){super(e),this.state={showPopoverMenu:!1,refPopoverMenuTarget:void 0}}onHiddenRefsClick=e=>{const{showPopoverMenu:t}=this.state;this.setState({showPopoverMenu:!t,refPopoverMenuTarget:t?e.target:void 0})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){return e.name<t.name?-1:e.name>t.name?1:e.name===t.name&&e.type===L.V.REMOTE?-1:0}render(){const{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:n,graphWidth:r,graphZones:s,graphZoneType:l,excludeRefsById:c,includeOnlyRefsById:h,isDraggable:d,onFilterColumnClick:u,onHover:p,onResize:f,onResizeEnd:g,onResizeFromPropChange:v,onResizeStart:y,onUnhover:C,rowsStatsLoading:S,showRemoteNamesOnRefs:_,translate:w}=this.props,{showPopoverMenu:R,refPopoverMenuTarget:b}=this.state,T=ie(l,s);if(!T)return null;const E=X(l,s);let x=null,O=null;if(l===m.jZ){const e=Object.entries(c),t=Object.values(h),r=t.length>0,s=r&&t.some((e=>e.type===L.V.TAG)),l=e.filter((e=>e[1].type===L.V.TAG&&(!r||!s)||!h[e[0]]));l.length>0&&(O=l.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,t)=>{const o=e[0],r=e[1];c[o].id=o;const i={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},s=!_&&"*"!==i.name||i.refType!==L.V.REMOTE?i.name:`${i.owner}/${i.name}`;return a().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[c[o]],!0)},li(n,i,w,t),a().createElement("span",{className:"text-ellipsis"},s))})),x=o?a().createElement("div",{className:i()("right","text-normal","button",R?"active":null)},a().createElement(ei,{icon:a().createElement("span",{onClick:this.onHiddenRefsClick},n("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:w("GraphHeader-HiddenRefs-btn")})):null)}const M=`${l}-header`,I=T.currentWidth<=T.showIconWidth,D=!I&&(e?.isFilterable||!1)?a().createElement("div",{className:i()("columns-btn columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},a().createElement(ei,{icon:a().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${l}-header-filter`,onClick:e=>u(e,l),style:{height:m.ze,marginBottom:m.wi}},n("filter")),tooltipId:"header-columns-filter",tooltipText:w("GraphHeader-Filter")})):null,N=I?a().createElement("div",{className:"columns-btn flex justify-start ml1",style:{width:T.currentWidth},title:w(T.headerLabelUntranslated)},n(function(e){switch(e){case m.Wm:return"graph";case m.jZ:return"branch";case m.KE:return"message";case m.GF:return"author";case m.PL:return"datetime";case m.av:return"commit";case m.WD:return"changes";default:return""}}(l))):a().createElement("div",null,a().createElement("span",{className:"fs-1 ml1 font-monospace text-disabled"},w(T.headerLabelUntranslated)),D),z=a().createElement(a().Fragment,null,l===m.WD&&S&&a().createElement("span",{className:"spinner"},n("loading")),x,a().createElement(gr,{container:this,onHide:R?this.onHiddenRefsClick:void 0,placement:R?"bottom":void 0,rootClose:R,show:R,target:b},a().createElement(Gr,{id:"opts-popover",style:{display:R?"block":"none"}},a().createElement("ul",null,O)))),k=a().createElement("div",{onMouseEnter:p,onMouseLeave:C},z,N),H=i()("panel-bg0","graph-header",{"is-draggable":d,"is-last-header":E});return E?a().createElement("div",{className:H,id:M,key:M,style:{minWidth:T.currentWidth-m.b4,transform:"translate3d(0, 0, 0)",zIndex:2}},k):a().createElement("div",{className:H,id:M,key:M,style:{display:"flex",minWidth:T.currentWidth,transform:"translate3d(0, 0, 0)",width:T.currentWidth,zIndex:2}},a().createElement(Dn,{className:H,enable:t,handleStyles:{right:{right:0}},height:m.ze,onResize:f?e=>f(T,e):void 0,onResizeEnd:g?e=>g(T,e):void 0,onResizeFromPropChange:v?e=>v(T,e):void 0,onResizeStart:y?e=>y(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:w,width:T.currentWidth,widthConstraints:ae(l,s,r)},k))}}const ui=di;class pi extends a().PureComponent{canDrag=!1;isDraggable=e=>this.canDrag&&e.props.isDraggable;isDroppable=(e,t)=>e.props.graphZoneType!==t?.props?.graphZoneType&&(!t||t.props.isDroppable);onDrop=(e,t)=>{this.props.onColumnReOrdered&&this.props.onColumnReOrdered(e.props.graphZoneType,t?t.props.graphZoneType:null)};onZoneHover=()=>{this.canDrag=!0};onZoneUnHover=()=>{this.canDrag=!1};render(){const{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:n,getExternalIcon:r,excludeRefsById:i,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:c,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:d,onGraphZoneResizeEnd:u,onGraphZoneResizeFromPropChange:p,onSettingsClick:f,onToggleRefNodesShown:g,graphZones:v,repoPath:y,rowsStatsLoading:C,showRemoteNamesOnRefs:S,translate:_,width:w,height:R,settingsContext:b}=this.props,T=a().createElement("div",{className:"panel-bg0",style:{height:m.ze,marginBottom:m.wi,marginLeft:-m.mu,minWidth:m.mu+m.b4}}),E=f&&a().createElement("div",{className:"columns-settings","data-vscode-context":Z(b)},a().createElement(ei,{icon:a().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>f(e,w)},r("settings")),tooltipId:"header-columns-settings",tooltipText:_("GraphHeader-EditColumns")}));return a().createElement("div",{className:"graph-header flex","data-vscode-context":Z(s),onContextMenu:h?e=>h(e,w):void 0,style:{height:m.ze,marginBottom:m.wi}},T,E,a().createElement(Vn,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},v.map((t=>a().createElement(ui,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:n,excludeRefsById:i,getExternalIcon:r,graphHeight:R,graphWidth:w,graphZones:v,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:c,onHover:this.onZoneHover,onResize:d,onResizeEnd:u,onResizeFromPropChange:p,onToggleRefNodesShown:g,onUnhover:this.onZoneUnHover,repoPath:y,rowsStatsLoading:C,showRemoteNamesOnRefs:S,translate:_})))))}}var fi=pi;function mi(e){const{constraints:{max:t,min:o},stats:{files:n,additions:r,deletions:s},getExternalIcon:l,isLastColumn:c,isRowSelected:h,verticalScrollWidth:d,zoneWidth:u}=e,p=r+s,f=Math.max(o,Math.min(t,p));let g=c?d+m.SZ:m.SZ;p<=f&&(g+=m.SZ);const v=Math.max(m.QW,f/t*(u-52-g)),y=r/p*v,C=s/p*v;return a().createElement("div",{className:i()("changes-zone",h?"selected":null)},a().createElement("span",{className:"changes-files",style:{width:52}},a().createElement("span",{className:"mr1"},l("files")),a().createElement("span",{className:"mr1"},n>999?"999+":n)),a().createElement("span",{className:"changes-bar",style:{width:v}},r?a().createElement("div",{className:"changes-sub-bar added",style:{width:y}}):null,s?a().createElement("div",{className:"changes-sub-bar deleted",style:{width:C}}):null))}const gi=i()("absolute","top-0","right-0","bottom-0","left-0","time-line"),vi=i()(gi,"z2");var yi=function({z2:e}){return a().createElement("div",{className:e?vi:gi,style:{height:2}})};const Ci=a().createElement("div",{className:"color-strip height-100",style:{width:2}}),Si={};const _i={};class wi extends a().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:c,hasAvatars:h,highlightRowsOnRefHover:d,isDimmedMergeCommitRow:u,isHighlighted:p,isHovering:f,isLastColumn:g,isInUnsupportedRebase:v,isMissingHoveredRefGroup:y,isSelected:C,numGraphColumns:S,onContextMenu:_,onClickCommit:w,onDoubleClickCommit:R,rowContext:b,sha:T,showColorStrip:E,showConflictIcon:x,showTimeline:O,setAsCurrentlyHoveredGraphCommit:M,style:I,title:D,type:N,verticalScrollWidth:z,zoneWidth:k}=this.props,H=function(e,t){const o=e+t.toString();let n=Si[o];return n||(n=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),Si[o]=n,n)}(N,f),G=function(e,t,o,n,r,s=!1,a=!1,l=!1,c=!1){const h=`${e}${t}${n}${o}${s}${a}${l}${c}${r}`;let d=_i[h];return d||(d=i()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":c&&!o||s&&(a||l)}),_i[h]=d,d)}(N,o,p,C,S,y,d,s,u),A=O?a().createElement(yi,null):null;return a().createElement("div",{className:H,"data-vscode-context":Z(b),onContextMenu:v?void 0:e=>_(e,c,T),onDoubleClick:e=>R(e,c,T),onMouseDown:e=>w(e,c,T),onMouseEnter:e=>M(e,c,T,r),onMouseLeave:t=>e(t,c,T,r),style:I},A,a().createElement("div",{className:G,"data-vscode-context":Z(n)},E?Ci:null,x?a().createElement("span",{className:i()("ml2")},l("warning")):null,a().createElement("span",{className:i()("graph-zone","width-100","flex-1"),style:{lineHeight:`${m.cZ}px`,...g&&{width:k-z},...h&&{marginLeft:5}},title:D},t)))}}var Ri=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,rowsStats:y,setAsCurrentlyHoveredGraphCommit:C}=e,S=new ge(e);return({rowIndex:e,style:_})=>{const w=t(e),R=o[e],{sha:b,type:T,contexts:E}=R,x=E?.stats||void 0,O=E?.row||void 0,M=y?.[b];let I=[M?.files?`${M.files} files changed`:"",M?.additions?`${M.additions} lines added`:"",M?.deletions?`${M.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==f.ch?I:"";const D=m.WD,N=S.isColumnFollowingGraphColumn(D),z=S.isLastColumn(D),k=S.getZoneWidth(D),H=S.getVerticalScrollWidth(D);return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:c,column:R.column,context:x,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:D,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===f.lH&&d,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:s,isLastColumn:z,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:w,numGraphColumns:l,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:O,setAsCurrentlyHoveredGraphCommit:C,sha:b,showColorStrip:N,showTimeline:S.hasTimeline(e),style:_,title:I,type:T,verticalScrollWidth:H,zoneWidth:k},M&&T!==f.ch?a().createElement(mi,{constraints:n,getExternalIcon:r,isLastColumn:z,isRowSelected:S.isSelected(e),stats:M,verticalScrollWidth:H,zoneWidth:k}):null)}};function bi(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function Ti(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}class Ei extends a().Component{overlayTriggerRef;constructor(e){super(e),this.state={tooltipText:""}}componentDidUpdate(e,t){this.overlayTriggerRef&&this.state.tooltipText!==t.tooltipText&&this.overlayTriggerRef.show()}getMaybeDefaultAvatar=(e,t,o)=>{const{authorInitials:n,classes:r,column:i,context:s,cssVariables:l,divStyle:c,fontSize:h,minWidth:d,size:u,title:f=""}=this.props,g=void 0!==i&&l[w(i)]||m.iq,v=p(g.trim()),y={alignItems:"center",backgroundColor:g,backgroundSize:u,color:v,display:"flex",fontSize:`${h}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:d,top:o,width:t,...c},C=["avatar","gravatar","rad2",...r||[]].join(" ").trim();return a().createElement("div",{className:C,"data-vscode-context":Z(s),style:y,title:f},n?n.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};render(){const{tooltipText:e}=this.state,{avatarUrl:t,classes:o,context:n,divStyle:r,height:i,minWidth:s,size:l,title:c="",tooltip:h,top:d,useAuthorInitialsForAvatars:u,width:p}=this.props,f=i||l,g=p||l,v=d||m.P3/2-f/2;let y;if(u||!t)y=this.getMaybeDefaultAvatar(f,g,v);else{const e={height:f,width:g,top:v,backgroundImage:`url('${t}')`,backgroundSize:l,minWidth:s,...r},i=["avatar","gravatar","rad2",...o||[]].join(" ").trim();y=a().createElement("div",{className:i,"data-test-class":"avatar","data-vscode-context":Z(n),style:e,title:c})}return h?a().createElement($r,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:a().createElement(Kr,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},y):y}}var xi=(e,t)=>{const{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:n,cssVariables:r,currentlyHoveredCommitSha:i,dimMergeCommits:s,dimRowsOfSelectedCommit:l,getExternalIcon:c,highlightRowsOnRefHover:h,processedRows:d,isInUnsupportedRebase:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,numGraphColumns:C,setAsCurrentlyHoveredGraphCommit:_,useAuthorInitialsForAvatars:w}=e,R=new ge(e);return({rowIndex:e,style:b})=>{const T=t(e),E=d[e],{author:x,email:O,message:M,sha:I,type:D,contexts:N}=E,z=m.GF,k=R.getActiveGraphZone(z);let H=D!==f.ch?x:void 0;const G=D!==f.ch?Ti(x,O):void 0,A=N?.author||void 0,W=N?.row||void 0,P=R.isColumnFollowingGraphColumn(z),L=R.isLastColumn(z),F=R.getZoneWidth(z),B=(F<=k.minimumWidth||k?.mode===m.Um.Rich)&&D!==f.ch;if(B){const e=()=>{const e=x&&""!==x.trim()&&"Unknown"!==x?Ti(x,O):O,t=S(y(M||""));let o="";if(0===t.length)o=e;else{t.unshift({email:O,name:x});for(let e=0;e<t.length;e+=1){const n=t[e];o+=Ti(n.name,n.email),e<t.length-1&&(o+=", ")}}return o},t=w?void 0:o[O];H=a().createElement(Ei,{authorInitials:bi(x),avatarUrl:t,classes:["node",`${f.o$}`,"z6"],column:E.column,context:N?.avatar||void 0,cssVariables:r,fontSize:10,height:m.LG,size:m.Y8,tooltip:e,useAuthorInitialsForAvatars:w,width:m.LG})}return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:n,column:E.column,context:A,currentlyHoveredCommitSha:i,dimRowsOfSelectedCommit:l,getExternalIcon:c,graphZoneType:z,hasAvatars:B,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:D===f.lH&&s,isHighlighted:R.isHighlighted(e),isHovering:R.isHovering(e),isInUnsupportedRebase:u,isLastColumn:L,isMissingHoveredRefGroup:R.isMissingHoveredRefGroup(e),isSelected:R.isSelected(e),key:T,numGraphColumns:C,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:W,setAsCurrentlyHoveredGraphCommit:_,sha:I,showColorStrip:P,showTimeline:R.hasTimeline(e),style:b,title:G,type:D,verticalScrollWidth:R.getVerticalScrollWidth(z),zoneWidth:F},H)}};var Oi=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,currentlyHoveredCommitSha:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,setAsCurrentlyHoveredGraphCommit:y}=e,C=new ge(e);return({rowIndex:e,style:S})=>{const _=t(e),w=o[e],{date:R,sha:b,type:T,contexts:E}=w,x=R&&T!==f.ch?l(R,f.Gu.RowEntry):void 0,O=R&&T!==f.ch?l(R,f.Gu.Tooltip):void 0,M=E?.date||void 0,I=E?.row||void 0,D=m.PL,N=C.isColumnFollowingGraphColumn(D),z=C.isLastColumn(D),k=C.getZoneWidth(D),H=C.getVerticalScrollWidth(D);return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:c,column:w.column,context:M,currentlyHoveredCommitSha:u,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:D,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:T===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:z,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:I,setAsCurrentlyHoveredGraphCommit:y,sha:b,showColorStrip:N,showTimeline:!1,style:S,title:O,type:T,verticalScrollWidth:H,zoneWidth:k},x)}},Mi={glyph:nr().string.isRequired},Ii=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.glyph,n=t.className,r=zr(Yn(t,["glyph","className"])),s=r[0],l=r[1],c=er({},Ir(s),((e={})[xr(s,o)]=!0,e));return a().createElement("span",er({},l,{className:i()(n,c)}))},t}(a().Component);Ii.propTypes=Mi;const Di=Or("glyphicon",Ii);var Ni={$bs_formGroup:nr().object},zi=function(e){function t(){return e.apply(this,arguments)||this}Qn(t,e);var o=t.prototype;return o.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},o.renderDefaultFeedback=function(e,t,o,n){var r=this.getGlyph(e&&e.validationState);return r?a().createElement(Di,er({},n,{glyph:r,className:i()(t,o)})):null},o.render=function(){var e=this.props,t=e.className,o=e.children,n=zr(Yn(e,["className","children"])),r=n[0],s=n[1],l=Ir(r);if(!o)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,l,s);var c=a().Children.only(o);return a().cloneElement(c,er({},s,{className:i()(c.props.className,t,l)}))},t}(a().Component);zi.defaultProps={bsRole:"feedback"},zi.contextTypes=Ni;const ki=Or("form-control-feedback",zi);var Hi={componentClass:ar()},Gi=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,o=e.className,n=zr(Yn(e,["componentClass","className"])),r=n[0],s=n[1],l=Ir(r);return a().createElement(t,er({},s,{className:i()(o,l)}))},t}(a().Component);Gi.propTypes=Hi,Gi.defaultProps={componentClass:"p"};const Ai=Or("form-control-static",Gi);var Wi={componentClass:ar(),type:nr().string,id:nr().string,inputRef:nr().func},Pi={$bs_formGroup:nr().object},Li=function(e){function t(){return e.apply(this,arguments)||this}return Qn(t,e),t.prototype.render=function(){var e,t=this.context.$bs_formGroup,o=t&&t.controlId,n=this.props,r=n.componentClass,s=n.type,l=n.id,c=void 0===l?o:l,h=n.inputRef,d=n.className,u=n.bsSize,p=zr(Yn(n,["componentClass","type","id","inputRef","className","bsSize"])),f=p[0],m=p[1];("file"!==s&&(e=Ir(f)),u)&&(e[xr({bsClass:"input"},Tr[u]||u)]=!0);return a().createElement(r,er({},m,{type:s,id:c,ref:h,className:i()(d,e)}))},t}(a().Component);Li.propTypes=Wi,Li.defaultProps={componentClass:"input"},Li.contextTypes=Pi,Li.Feedback=ki,Li.Static=Ai;const Fi=Or("form-control",Mr([br,Rr],Li)),Bi={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"};class Zi extends a().Component{render(){const{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;const n=(e=>{switch(e){case Bi.ADDED:return"added";case Bi.MODIFIED:return"modified";case Bi.DELETED:return"deleted";case Bi.RENAMED:return"renamed";default:return null}})(e),r=(e=>{switch(e){case Bi.ADDED:return"color-green";case Bi.MODIFIED:return"color-orange";case Bi.DELETED:return"color-red";case Bi.RENAMED:return"color-blue";default:return null}})(e),s=(e=>{switch(e){case Bi.ADDED:return"CommitDiffSection-FileAdded";case Bi.MODIFIED:return"CommitDiffSection-FileModified";case Bi.DELETED:return"CommitDiffSection-FileDeleted";case Bi.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}})(e),l=i()("fs-1",r,"mr1");return a().createElement("span",{className:l,title:o(s)},n&&t(n))}}var Ui=Zi;const{ADDED:ji,DELETED:Vi,MODIFIED:$i,RENAMED:Yi}=Bi,qi={[ji]:"CommitDiffSection-NFilesAdded",[Vi]:"CommitDiffSection-NFilesDeleted",[$i]:"CommitDiffSection-NFilesModified",[Yi]:"CommitDiffSection-NFilesRenamed"};var Ki=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const i=n?e:r(qi[t],e);let s,l;return n&&(s={fontSize:m.wd,marginRight:m.IX},l={fontSize:m.dH,margin:`0px ${m.VB}px 0px 0px`}),a().createElement("span",{className:"tiny-files-readout",style:s},a().createElement(Ui,{fileDiffType:t,getExternalIcon:o,style:l,translate:r}),a().createElement("span",{className:"tiny-files-readout-text"},i))};var Xi=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){const{types:i}=n;if(!e)return a().createElement("span",null);if(!Object.values(e).some((e=>Boolean(e))))return a().createElement("span",null);const s=e.modified?a().createElement(Ki,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.added?a().createElement(Ki,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=e.deleted?a().createElement(Ki,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=e.renamed?a().createElement(Ki,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,d=t?{marginLeft:m.aV}:null;return a().createElement("span",{className:"summary",style:d},s,l,c,h)};class Qi extends a().Component{textWidthRef=a().createRef();wrapperRef=a().createRef();static defaultProps={style:{},value:""};componentDidMount(){this.wrapperRef?.current&&(this.wrapperRef.current.style.width="0px")}componentDidUpdate(){this.textWidthRef?.current&&this.wrapperRef?.current&&(this.wrapperRef.current.style.width=`${Number(this.textWidthRef.current.offsetWidth)+35}px`)}componentWillUnmount(){this.props.onBlur&&this.props.onBlur()}onWipKeyDown(e){e.stopPropagation()}render(){const{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:n,isCommitting:r,isHovering:s,isSelected:l,onBlur:c,onClickCommit:h,onContextMenu:d,onFocus:u,onMessageChange:p,setAsCurrentlyHoveredGraphCommit:m,sha:g,style:v,translate:y,value:C,workDirStats:S}=this.props,_=i()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",f.ch,{"is-hovering":s}),w=i()("column-1","graph-row","flex",{"is-selected":l}),R=a().createElement(Xi,{diffStats:S,getExternalIcon:o,translate:y}),b=a().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},a().createElement(Fi,{"data-test-class":"work-dir-input-field",disabled:r,onBlur:e=>c(e),onChange:e=>p(e.target.value),onContextMenu:e=>d(e,n,g),onFocus:e=>u(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:y("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:C}),a().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},C));return a().createElement("div",{className:_,onMouseEnter:e=>m(e,n,g,t),onMouseLeave:o=>e(o,n,g,t),style:v},a().createElement("div",{className:w,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>h(e,n,g)},b,R))}}var Ji=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:i,getExternalIcon:s,highlightRowsOnRefHover:l,isInUnsupportedRebase:c,numGraphColumns:h,isCommitting:d,pendingCommitMessageSummary:u,workDirStats:p,onBlurWipNodeInput:g,onFocusWipNodeInput:v,onMessageChange:y,clearCurrentlyHoveredGraphCommit:C,currentlyHoveredCommitSha:S,onCommitContextMenu:_,onClickCommit:w,onDoubleClickCommit:R,setAsCurrentlyHoveredGraphCommit:b,wipMessageEditable:T}=e,E=new ge(e);return({rowIndex:e,style:x})=>{const O=t(e),M=r[e],{sha:I,type:D,contexts:N}=M;let z,k,H;D===f.ch?(z=i("Graph-WorkInProgress"),k=z):(z=M.message,k=M.summary,H=M.body||void 0);const G=N?.message||void 0,A=N?.row||void 0,W=m.KE,P=E.isColumnFollowingGraphColumn(W),L=E.isLastColumn(W),F=E.getZoneWidth(W),B=E.getVerticalScrollWidth(W),Z=D===f.ch&&void 0!==p&&Object.keys(p).length>0,U=Z&&!T?a().createElement(Xi,{diffStats:p,getExternalIcon:s,translate:i}):null,j=D!==f.ch||T?a().createElement(a().Fragment,null,a().createElement("span",{className:"message-zone--summary"},k),H?a().createElement("span",{className:"message-zone--body"},H):null):a().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},k,U);return Z&&T?a().createElement(Qi,{clearCurrentlyHoveredGraphCommit:C,currentlyHoveredCommitSha:S,getExternalIcon:s,graphZoneType:W,isCommitting:d,isHovering:E.isHovering(e),isSelected:E.isSelected(e),key:O,onBlur:g,onClickCommit:w,onContextMenu:_,onFocus:v,onMessageChange:y,setAsCurrentlyHoveredGraphCommit:b,sha:I,style:x,translate:i,value:u,workDirStats:p}):a().createElement(wi,{clearCurrentlyHoveredGraphCommit:C,column:M.column,context:G,currentlyHoveredCommitSha:S,dimRowsOfSelectedCommit:n,getExternalIcon:s,graphZoneType:W,highlightRowsOnRefHover:l,isDimmedMergeCommitRow:D===f.lH&&o,isHighlighted:E.isHighlighted(e),isHovering:E.isHovering(e),isInUnsupportedRebase:c,isLastColumn:L,isMissingHoveredRefGroup:E.isMissingHoveredRefGroup(e),isSelected:E.isSelected(e),key:O,numGraphColumns:h,onClickCommit:w,onContextMenu:_,onDoubleClickCommit:R,rowContext:A,setAsCurrentlyHoveredGraphCommit:b,sha:I,showColorStrip:P,showConflictIcon:D===f.S7||D===f.br,showTimeline:E.hasTimeline(e),style:x,title:z,type:D,verticalScrollWidth:B,zoneWidth:F},j)}};var es=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,shaLength:y}=e,C=new ge(e);return({rowIndex:e,style:S})=>{const _=t(e),w=o[e],{sha:R,type:b,contexts:T}=w,E=((e,t=m.ai)=>e?e.substring(0,t):"")(R,y),x=T?.sha||void 0,O=T?.row||void 0,M=m.av,I=C.isColumnFollowingGraphColumn(M),D=C.isLastColumn(M),N=C.getZoneWidth(M),z=C.getVerticalScrollWidth(M);return a().createElement(wi,{clearCurrentlyHoveredGraphCommit:l,column:w.column,context:x,currentlyHoveredCommitSha:c,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:M,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:b===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:D,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:R,showColorStrip:I,showTimeline:C.hasTimeline(e),style:S,type:b,verticalScrollWidth:z,zoneWidth:N},b!==f.ch?a().createElement("span",{className:"font-monospace pointer",title:E},E):null)}};function ts({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=i()("ref-line","z4",{"is-active":t});return e&&function(e){return[f.o$,f.lH,f.S7].includes(e)}(n)?a().createElement("hr",{className:s,style:{left:o,width:r}}):null}var os=ts;function ns({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:n,type:r}){return a().createElement(ts,{hasRefs:t,isActiveSha:o,left:0,type:r,width:n+(r===f.lH?e:0)})}function rs({className:e,marginLeft:t}){return a().createElement("div",{className:i()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},a().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const is=(e,t,o,n)=>o+t*e+n/2;function ss({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:n}}){return a().createElement(rs,{className:"z1",marginLeft:is(e,t,n,o)})}function as(){return a().createElement(rs,{marginLeft:0})}const ls=(e,t,o,n,r,s)=>{const l={height:s.COMMIT_MERGE_NODE_DIAMETER,left:o+s.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:s.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:n,width:s.COMMIT_MERGE_NODE_DIAMETER},c=i()("node",r,"z6"),h=a().createElement(Kr,{className:"gk-graph",id:"graph-merge-node-tooltip"},Ti(t,e));return a().createElement($r,{delayShow:250,overlay:h,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:c,"data-test-class":"tree-row-commit-node",style:l}))};class cs extends a().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:n,left:r,opacity:s,translate:l,type:c}=this.props;return(t||e)&&c===f.o$?n.IS_COMPACT?ls(e,t,r,s,f.lH,n):(({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:i,cssVariables:s,graphZoneModeConstants:l,left:c,message:h,opacity:d,type:u,useAuthorInitialsForAvatars:p})=>a().createElement(Ei,{authorInitials:t,avatarUrl:n,classes:["node",`${u}`,"z6"],column:r,context:i,cssVariables:s,divStyle:{left:c,opacity:d},fontSize:10,height:l.COMMIT_NODE_DIAMETER,size:l.COMMIT_ZONE_AVATAR_DIAMETER,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Ti(o,e):e,n=S(y(h||""));let r="";if(0===n.length)r=t;else{n.unshift({email:e,name:o});for(let e=0;e<n.length;e+=1){const t=n[e];r+=Ti(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},top:l.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:p,width:l.COMMIT_NODE_DIAMETER}))(this.props):c===f.lH||c===f.S7||c===f.br?ls(e,t,r,s,c,n):((e,t,o,n,r,s,l,c=!1,h)=>{const d={height:h.COMMIT_NODE_DIAMETER,left:n,marginTop:h.COMMIT_NODE_TOP_OFFSET,opacity:r,width:h.COMMIT_NODE_DIAMETER};c&&(d.borderWidth=1);const u=i()("gk-graph","node",l,"z6",{compact:c});let p;p=l===f.kP?s("Stash"):l===f.ch?s("Graph-WorkInProgress"):Ti(o,t);const m=a().createElement(Kr,{className:"gk-graph",id:"graph-other-node-tooltip"},p);return a().createElement($r,{delayShow:250,overlay:m,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},l!==f.kP||c?null:a().createElement("span",null,e("stash"))))})(o,e,t,r,s,l,c,n.IS_COMPACT,n)}}class hs extends a().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:r,COMMIT_ZONE_GUTTER_WIDTH:i,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,c=Ne(o,t,n,e,r,i,s,l);return a().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:c}})}}var ds=hs;function us({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return a().createElement("div",{className:i()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function ps({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return a().createElement(us,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?a().createElement(yi,{z2:!0}):null)}function fs({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return a().createElement(us,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?a().createElement(yi,{z2:!0}):null,a().createElement(as,null))}class ms extends a().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:c,cssVariables:h,currentlyHoveredCommitSha:d,edgeColumnMax:u,edges:p,hasRefs:f,hasTimeline:g,getExternalIcon:v,graphZoneModeConstants:y,isActiveSha:C,isInUnsupportedRebase:S,isLastColumn:_,isSelected:w,leftGutterBoxShadowAlpha:R,leftGutterWidth:b,message:T,nodeOffset:E,nodeOpacity:x,numGraphColumns:O,onContextMenu:M,onClickCommit:I,onDoubleClickCommit:D,rightGutterBoxShadowAlpha:N,rightGutterWidth:z,rowContext:k,scrollLeft:H,setAsCurrentlyHoveredGraphCommit:G,sha:A,shouldShowRefLine:W,style:P,translate:L,type:F,useAuthorInitialsForAvatars:B,zoneContext:U}=this.props,j=s%O+1,V=i()("relative","commit-zone","height-100-percent","pt3",F,`column-${j}`,{"is-selected":w,"has-active":C}),$=g?a().createElement(yi,{z2:!0}):null,Y=a().createElement("div",{className:V,"data-vscode-context":Z(U),onContextMenu:S?void 0:e=>M(e,m.Wm,A),onDoubleClick:e=>D(e,m.Wm,A),onMouseDown:e=>I(e,m.Wm,A),onMouseEnter:e=>G(e,m.Wm,A,d),onMouseLeave:e=>r(e,m.Wm,A,d),style:{...P,..._&&{width:"100%"}}},$,a().createElement(ps,{boxShadowAlpha:R,hasTimeline:g,scrollLeft:H,width:b}),W?a().createElement(ns,{graphZoneModeConstants:y,hasRefs:f,isActiveSha:C,nodeOffset:E,type:F}):null,a().createElement(cs,{authorEmail:e,authorInitials:bi(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:h,getExternalIcon:v,graphZoneModeConstants:y,left:E,message:T,opacity:x,translate:L,type:F,useAuthorInitialsForAvatars:B}),a().createElement(ss,{column:s,graphZoneModeConstants:y}),a().createElement(ds,{columnColorByColumn:l,edgeColumnMax:u,edges:p,graphZoneModeConstants:y,nodeColumn:s}),a().createElement(fs,{boxShadowAlpha:N,commitZoneWidth:c,hasTimeline:g,scrollLeft:H,width:z}));return k?a().createElement("div",{"data-vscode-context":Z(k)},Y):Y}}var gs=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:i,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:c,getExternalIcon:h,graphZoneModeConstants:d,isInUnsupportedRebase:u,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,onCommitContextMenu:g,onClickCommit:v,onDoubleClickCommit:y,nodeOffsetByColumn:C,nodeOpacityByColumn:S,numGraphColumns:_,rightGutterBoxShadowAlpha:w,rightGutterWidth:R,setAsCurrentlyHoveredGraphCommit:b,scrollLeft:T,shouldShowRefLine:E,translate:x,useAuthorInitialsForAvatars:O}=e,M=new ge(e);return({rowIndex:e,style:I})=>{const D=t(e),N=c[e],z=m.Wm,k=M.getZoneWidth(z),{email:H,author:G,contexts:A,message:W,sha:P,type:L}=N,F=N.column,B=A?.graph||void 0,Z=A?.avatar||void 0,U=A?.row||void 0;let j;O||(j=o[H],j||n(H,P));const V=M.isLastColumn(z);return a().createElement(ms,{authorEmail:H,authorName:G,avatarContext:Z,avatarUrl:j,clearCurrentlyHoveredGraphCommit:r,column:F,columnColorByColumn:i,commitZoneWidth:k,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:N.edgeColumnMaxes,edges:N.edges,getExternalIcon:h,graphZoneModeConstants:d,hasRefs:N.hasRefs||!1,hasTimeline:M.hasTimeline(e),isActiveSha:M.rowContainsCurrentHeadRef(N),isInUnsupportedRebase:u,isLastColumn:V,isSelected:M.isSelected(e),key:D,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,message:W,nodeOffset:C[F],nodeOpacity:S[F],numGraphColumns:_,onClickCommit:v,onContextMenu:g,onDoubleClickCommit:y,rightGutterBoxShadowAlpha:w,rightGutterWidth:R,rowContext:U,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:b,sha:P,shouldShowRefLine:E,style:I,translate:x,type:L,useAuthorInitialsForAvatars:O,zoneContext:B})}};const vs={map:function(e,t,o){var n=0;return a().Children.map(e,(function(e){return a().isValidElement(e)?t.call(o,e,n++):e}))},forEach:function(e,t,o){var n=0;a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)}))},count:function(e){var t=0;return a().Children.forEach(e,(function(e){a().isValidElement(e)&&++t})),t},find:function(e,t,o){var n,r=0;return a().Children.forEach(e,(function(e){n||a().isValidElement(e)&&t.call(o,e,r++)&&(n=e)})),n},filter:function(e,t,o){var n=0,r=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)&&r.push(e)})),r},every:function(e,t,o){var n=0,r=!0;return a().Children.forEach(e,(function(e){r&&a().isValidElement(e)&&(t.call(o,e,n++)||(r=!1))})),r},some:function(e,t,o){var n=0,r=!1;return a().Children.forEach(e,(function(e){r||a().isValidElement(e)&&t.call(o,e,n++)&&(r=!0)})),r},toArray:function(e){var t=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.push(e)})),t}};var ys={controlId:nr().string,validationState:nr().oneOf(["success","warning","error",null])},Cs={$bs_formGroup:nr().object.isRequired},Ss=function(e){function t(){return e.apply(this,arguments)||this}Qn(t,e);var o=t.prototype;return o.getChildContext=function(){var e=this.props;return{$bs_formGroup:{controlId:e.controlId,validationState:e.validationState}}},o.hasFeedback=function(e){var t=this;return vs.some(e,(function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)}))},o.render=function(){var e=this.props,t=e.validationState,o=e.className,n=e.children,r=function(e,t){var o={};t.forEach((function(e){o[e]=!0}));var n={};return Sr()(e).forEach((function(e){var t=e[0],r=e[1];Nr(t)||o[t]||(n[t]=r)})),[Dr(e),n]}(Yn(e,["validationState","className","children"]),["controlId"]),s=r[0],l=r[1],c=er({},Ir(s),{"has-feedback":this.hasFeedback(n)});return t&&(c["has-"+t]=!0),a().createElement("div",er({},l,{className:i()(o,c)}),n)},t}(a().Component);Ss.propTypes=ys,Ss.childContextTypes=Cs;const _s=Or("form-group",Mr([Rr,br],Ss));function ws(e,t){return ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ws(e,t)}function Rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bs(e,t,o){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(o):e.classList.contains(o))}var Ts,Es,xs=(void 0===Ts&&(Ts=0),function(){return++Ts}),Os={},Ms={},Is=["touchstart","touchmove"];function Ds(e,t){var o={};return-1!==Is.indexOf(t)&&Es&&(o.passive=!e.props.preventDefault),o}const Ns=function(e,t){var o,n,r=e.displayName||e.name||"Component";return n=o=function(o){var n,i;function a(e){var n;return(n=o.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof n.__clickOutsideHandlerProp){var t=n.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else n.__clickOutsideHandlerProp(e)},n.__getComponentNode=function(){var e=n.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,zt.findDOMNode)(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!Ms[n._uid]){void 0===Es&&(Es=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),o=function(){};return window.addEventListener("testPassiveEventSupport",o,t),window.removeEventListener("testPassiveEventSupport",o,t),e}}()),Ms[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),Os[n._uid]=function(e){var t;null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),n.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,o){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&bs(e,t,o))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,Os[n._uid],Ds(Rs(n),e))}))}},n.disableOnClickOutside=function(){delete Ms[n._uid];var e=Os[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,Ds(Rs(n),t))})),delete Os[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=xs(),n}i=o,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,ws(n,i);var l=a.prototype;return l.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props;t.excludeScrollbar;var o=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?o.ref=this.getRef:o.wrappedRef=this.getRef,o.disableOnClickOutside=this.disableOnClickOutside,o.enableOnClickOutside=this.enableOnClickOutside,(0,s.createElement)(e,o)},a}(s.Component),o.displayName="OnClickOutside("+r+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},o.getClass=function(){return e.getClass?e.getClass():e},n};class zs extends a().PureComponent{handleClickOutside(){const{sha:e,shorthand:t,type:o,data:n}=this.props.createRefFormData;this.props.onCancel(t,e,o,n)}constructor(e){super(e);const{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:n,shorthand:r,type:i,data:s}=t;this.state={shorthand:o(r,n,i,s)}}onInputChange(e){let t=e||"";if(e){const{sha:e,type:o,data:n}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,n)}this.setState({shorthand:t})}render(){const{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:n,onRefCreate:r,refZoneWidth:i,style:s,translate:l}=this.props,{shorthand:c}=this.state,{data:h,sha:d,type:u}=e,p=l(u===L.V.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return a().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:i,width:i}},a().createElement(_s,{validationState:0===c.length||t(c,d,u,h)?"success":"error"},a().createElement(Fi,{autoFocus:!0,"data-testid":"create-ref-form-control",onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>n(e,c,d,u,h),onKeyDown:e=>{e.stopPropagation(),"Escape"!==e.key?d&&"Enter"===e.key&&r(c,d,u,h):o(c,d,u,h)},placeholder:p,type:"text",value:c})))}}var ks=Ns(zs);var Hs=function({hasActive:e,overflowCount:t}){return a().createElement("span",{className:i()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};var Gs=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return a().createElement("div",{className:i()("gk-graph","ref-zone","column-"+(o%n+1))},a().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-m.cZ/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var As=function({enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,getTargetRef:r,hasActive:i,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:c,includeOnlyRemotesByName:h,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:g,refGroupContexts:v,refGroupsByName:y,refMetadata:C,refNodeHovered:S,sha:_,showContextMenuForGroupedRef:w,onClickRef:R,onDoubleClickRef:b,onToggleRefNodesShown:T,onRefBeginDrag:E,onRefCanDrag:x,onRefCanDrop:O,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,translate:z,type:k}){const H=(e,t,o)=>{const n=t.map((e=>({id:V(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})));T(e,n,!1,o)},G=u?y:[y[0]],A=G[0].some((e=>e.refType===L.V.HEAD&&e.isCurrentHead)),W=m.Vh+(y[0]?.length||0)*m.B+(A?m.B:0),P=Object.values(c),F=P.length>0&&P.some((e=>e.type===L.V.TAG)),B=G.map((t=>{const o=v?.[t[0].name]||void 0,r=t.some((e=>{const t=V(e);switch(e.refType){case L.V.TAG:return F&&Boolean(c[t]);case L.V.REMOTE:return Boolean(c[t])||e.owner&&h[e.owner];default:return Boolean(c[t])}})),f=a().createElement(hi,{enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:l,groupIsHovered:u,hasActive:i,hasRefs:s,isGhostRef:d,isInUnsupportedRebase:p,isRefGroupIncluded:r,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:R,onContextMenu:w,onDoubleClick:b,onHideRefClick:H,onHovered:S,onMissingRefMetadata:g,onRefBeginDrag:E,onRefCanDrag:x,onRefCanDrop:O,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,refGroup:t,refGroupContext:o,refMetadata:C,sha:_,translate:z,type:k});return u?a().createElement("li",{key:f.key},f):f}));return u?a().createElement("div",{"data-vscode-context":Z(o),style:{height:100,position:"relative"}},a().createElement(gr,{placement:"right",show:u,target:r},a().createElement(Gs,{column:t,numGraphColumns:f},B))):a().createElement("span",{"data-vscode-context":Z(o),style:{minWidth:W}},B)};const Ws={};class Ps extends a().PureComponent{refPopoverTarget;isContextMenuShown=!1;static defaultProps={style:{}};componentWillReceiveProps(e){this.props.hasRefs||!this.props.isSingleSelected||e.isSingleSelected||this.props.hoveredRefZoneSha!==this.props.sha||(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(void 0,this.props.hoveredRefGroup,this.props.sha))}getRefPopoverTarget=()=>this.refPopoverTarget;onCustomToggleRefNodesShown=(e,t,o,n)=>{this.props.onToggleRefNodesShown(e,t,o,n),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,showGhostRefsOnRowHover:r,hasActive:s,hasRefs:l,hasTimeline:c,hoveredRefGroup:h,hoveredRefZoneSha:d,getExternalIcon:u,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isContainerWindowFocused:g,isInUnsupportedRebase:v,numGraphColumns:y,onClickRef:C,onDoubleClickRef:S,onMissingRefMetadata:_,onRefBeginDrag:w,onRefCanDrag:R,onRefCanDrop:b,onRefDragEnter:T,onRefDragLeave:E,onRefDrop:x,onRefEndDrag:O,refGroupContexts:M,refGroupsByName:I,refMetadata:D,refNodeHovered:N,refNodeUnhovered:z,refZoneHovered:k,refZoneUnhovered:H,sha:G,shouldShowRefLine:A,showColorStrip:W,showContextMenuForGroupedRef:P,style:L,translate:F,type:Z,width:U}=this.props,j=d===G&&g,V={minWidth:U,width:U},$={...L,...V},Y=c?a().createElement(yi,null):null,q=I.length,K=e=>{k(G),q?N(e,I[0],G):h&&z(e,h,G)},X=e=>{g&&this.isContextMenuShown?this.isContextMenuShown=!1:(H(),h&&z(e,h,G))},Q=B(((e,t)=>{X(e),w(e,t)})),J=q>0&&!l&&r,ee=function(e,t,o,n,r,s){const a=`${e}${t}${o}${n}${r}${s}`;let l=Ws[a];return l||(l=i()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":s,"has-active":n,z6:o,z1:!o}),Ws[a]=l,l)}(Z,t,j,s,y,J),te=a().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!q)return a().createElement("div",{className:ee,onMouseEnter:K,onWheel:X,style:$},W?te:null,Y);const oe={minWidth:0,overflow:"hidden",width:U-m.PB},ne=q-1,re=ne>0&&!j?a().createElement(Hs,{hasActive:s,overflowCount:ne}):null;return a().createElement("div",{className:ee,onMouseEnter:K,onMouseLeave:X,onWheel:X,style:$},a().createElement("div",{ref:e=>this.refPopoverTarget=e}),W?te:null,Y,a().createElement("div",{className:"flex",style:oe},a().createElement(As,{column:t,context:o,enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:u,getTargetRef:this.getRefPopoverTarget,hasActive:s,hasRefs:l,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isGhostRef:J,isHovered:j,isInUnsupportedRebase:v,numGraphColumns:y,onClickRef:C,onDoubleClickRef:S,onMissingRefMetadata:_,onRefBeginDrag:Q,onRefCanDrag:R,onRefCanDrop:b,onRefDragEnter:(e,t,o)=>{j||o?.sha!==G||K(e),T(e,t,o)},onRefDragLeave:E,onRefDrop:x,onRefEndDrag:O,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:M,refGroupsByName:I,refMetadata:D,refNodeHovered:N,sha:G,showContextMenuForGroupedRef:(e,t,o)=>{K(e),this.isContextMenuShown=!0,P(e,t,o)},translate:F,type:Z}),re),l&&A?a().createElement("div",{className:"absolute left-0 flex z1",style:V},a().createElement(os,{hasRefs:!0,isActiveSha:s,left:m.yv,type:Z,width:"100%"})):null)}}var Ls=(e,t)=>{const{createRefFormData:o,formatRefShorthand:n,enableShowHideRefsOptions:r,enabledRefMetadataTypes:i,isRefShorthandValid:s,showGhostRefsOnRowHover:l,onDoubleClickRef:c,processedRows:h,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,getExternalIcon:g,hoveredRefGroup:v,hoveredRefZoneSha:y,numGraphColumns:C,onClickRef:S,onMissingRefMetadata:_,onShowContextMenuForGroupedRef:w,onRefBeginDrag:R,onRefCanDrag:b,onRefCanDrop:T,onRefCreate:E,onRefCreateCancel:x,onRefCreateContextMenu:O,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onRefNodeHovered:z,onRefNodeUnhovered:k,onRefZoneHovered:H,onRefZoneUnhovered:G,onToggleRefNodesShown:A,refMetadataById:W,shouldShowRefLine:P,translate:L}=e,F=new ge(e);return({rowIndex:e,style:B})=>{const Z=t(e),U=h[e],j=m.jZ,V=F.isLastColumn(j),$=F.getZoneWidth(j),Y=F.isHovering(e),{sha:q,type:K,hasRefs:X,contexts:Q}=U,J=Q?.ref||void 0,ee=Q?.refGroups||void 0,te=F.isSingleSelected(e),oe=F.getVerticalScrollWidth(j),ne=(l||X)&&(X||Y||te)?F.getGraphRefGroupsByNameForRow(e):[],re=F.isColumnFollowingGraphColumn(j);return o?.sha===q?a().createElement(ks,{createRefFormData:o,formatRefShorthand:n,isRefShorthandValid:s,key:Z,onCancel:x,onContextMenu:O,onRefCreate:E,refZoneWidth:$,style:B,translate:L}):a().createElement(Ps,{column:U.column,context:J,enabledRefMetadataTypes:i,enableShowHideRefsOptions:r,getExternalIcon:g,hasActive:F.rowContainsCurrentHeadRef(U),hasRefs:X||!1,hasTimeline:F.hasTimeline(e),hoveredRefGroup:v,hoveredRefZoneSha:y,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,isSingleSelected:te,key:Z,numGraphColumns:C,onClickRef:S,onDoubleClickRef:c,onMissingRefMetadata:_,onRefBeginDrag:R,onRefCanDrag:b,onRefCanDrop:T,onRefDragEnter:M,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onToggleRefNodesShown:A,refGroupContexts:ee,refGroupsByName:ne,refMetadata:W,refNodeHovered:z,refNodeUnhovered:k,refZoneHovered:H,refZoneUnhovered:G,sha:q,shouldShowRefLine:P,showColorStrip:re,showContextMenuForGroupedRef:w,showGhostRefsOnRowHover:l,style:B,translate:L,type:K,width:V?$-oe:$})}};var Fs=(e,t)=>{const{translate:o,processedRows:n}=e,r=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new ge(e);return({rowIndex:e,style:l})=>{const c=t(e),h=i()("graph-row","height-100-percent","flex"),d=s.hasTimeline(e),u=n[e],p=u.contexts?.row||void 0,f=u.timeLineEntry?.label||"",m=u.timeLineEntry?.value||0,g=d?a().createElement(yi,null):null,v=d?a().createElement("span",{className:"time-line-message-container"},a().createElement("span",{className:"time-line-message"},o(f,m))):null;return a().createElement("div",{className:r,"data-vscode-context":Z(p),key:c,style:l},g,a().createElement("div",{className:h,"data-vscode-context":Z(p)},v))}};class Bs extends a().PureComponent{graphContainerRef=a().createRef();resizeObserver;isSelectedBySha={};processedGraphRowBySha={};childrenBySha={};scrollToSha;headSha;headUpstreamSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};reserverInfoBySha={};columnsUsed={};rowsStats;workDirStats=m.OR;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=le();graphZonesByType={};graphZoneOrdering=[m.jZ,m.Wm,m.KE,m.GF,m.WD,m.PL,m.av];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>e.forEach((e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))))),this.isSelectedBySha=this.props.isSelectedBySha||{},this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);const t=R(this.props.cssVariables);this.graphZoneModeConstants=le(this.props.columnsSettings?.[m.Wm]?.mode),this.maybeSortGraphZoneOrderingFromSettings(this.props.columnsSettings),this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,createRefFormData:this.props.createRefFormData,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,enableShowHideRefsOptions:this.props.enableShowHideRefsOptions||!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphZones:this.initializeGraphZones(this.props.columnsSettings,this.graphZoneOrdering,580),hasMoreCommits:this.props.hasMoreCommits||!1,height:this.graphHeight,highlightedShas:this.props.highlightedShas,hoveredRefGroup:void 0,hoveredRefZoneSha:void 0,isContainerWindowFocused:void 0===this.props.isContainerWindowFocused||this.props.isContainerWindowFocused,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),pendingCommitMessageSummary:this.props.pendingCommitMessageSummary||"",processedRows:[...this.orderedGraphRows],refMetadataById:this.props.refMetadataById,rowsStats:this.rowsStats,rowsStatsLoading:this.props.rowsStatsLoading||!1,useAuthorInitialsForAvatars:this.props.useAuthorInitialsForAvatars||!1,scrollLeft:this.getScrollLeft(),scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex(),scrollTop:this.getScrollTop(),shaLength:this.props.shaLength,themeOpacityFactor:this.props.themeOpacityFactor||m.X9.dark,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.resizeObserver.observe(this.graphContainerRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);const e=this.isSelectedBySha?this.getSelectedShas():[];e.length>0&&this.selectCommits(e,!1,!0)}componentWillReceiveProps(e){let t=!1,o=!1,n=!1;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=[];Object.keys(e.highlightedShas||{}).forEach((o=>{e.highlightedShas[o]&&void 0!==this.processedGraphRowBySha[o]?.rowIndex&&t.push(this.processedGraphRowBySha[o].rowIndex)})),this.markerRowIndices={...this.markerRowIndices,highlights:t}}if(this.props.isSelectedBySha!==e.isSelectedBySha&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.props.excludeByType!==e.excludeByType&&(this.excludeByType=e.excludeByType||{},e.graphRows?.length&&(o=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.themeOpacityFactor!==e.themeOpacityFactor&&this.setState({themeOpacityFactor:e.themeOpacityFactor}),this.props.dimMergeCommits!==e.dimMergeCommits&&this.setState({dimMergeCommits:e.dimMergeCommits||!1}),this.props.highlightRowsOnRefHover!==e.highlightRowsOnRefHover&&this.setState({highlightRowsOnRefHover:e.highlightRowsOnRefHover||!1}),this.props.showGhostRefsOnRowHover!==e.showGhostRefsOnRowHover&&this.setState({showGhostRefsOnRowHover:e.showGhostRefsOnRowHover||!1}),this.props.showRemoteNamesOnRefs!==e.showRemoteNamesOnRefs&&this.setState({showRemoteNamesOnRefs:e.showRemoteNamesOnRefs||!1}),this.props.enabledRefMetadataTypes!==e.enabledRefMetadataTypes&&this.setState({enabledRefMetadataTypes:e.enabledRefMetadataTypes||[]}),this.props.enabledScrollMarkerTypes!==e.enabledScrollMarkerTypes&&this.setState({enabledScrollMarkerTypes:e.enabledScrollMarkerTypes||[]}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.setState({dimRowsOfSelectedCommit:!1,isContainerWindowFocused:void 0===e.isContainerWindowFocused||e.isContainerWindowFocused}),this.props.downstreamsByUpstream!==e.downstreamsByUpstream&&(this.downstreamsByUpstream=e.downstreamsByUpstream||{},e.graphRows?.length&&(o=!0)),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();const r=R(e.cssVariables);n=!0,this.setState({columnColorByColumn:this.getColumnColorByColumn(r),cssVariablesWithDefaults:r,numGraphColumns:this.getNumGraphColumns(r)}),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||o)&&(this.lastLazyLoadHeight=0)}if(this.props.useAuthorInitialsForAvatars!==e.useAuthorInitialsForAvatars&&this.setState({useAuthorInitialsForAvatars:e.useAuthorInitialsForAvatars}),this.props.shaLength!==e.shaLength&&this.setState({shaLength:e.shaLength}),this.props.hasMoreCommits!==e.hasMoreCommits&&this.setState({hasMoreCommits:e.hasMoreCommits||!1}),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.rowsStats!==e.rowsStats&&(this.rowsStats=e.rowsStats,this.updateRowStatsConstraints(),this.setState({rowsStats:e.rowsStats})),this.props.rowsStatsLoading!==e.rowsStatsLoading&&this.setState({rowsStatsLoading:e.rowsStatsLoading||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||m.OR,!de(this.props.workDirStats)&&de(e.workDirStats)||de(this.props.workDirStats)&&!de(e.workDirStats)?(n=!0,this.setState({workDirStats:this.workDirStats})):this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={}),this.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[m.Wm]?.mode!==this.props.columnsSettings?.[m.Wm]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=le(e.columnsSettings?.[m.Wm]?.mode),this.updateCommitZoneContentWidthFromChange();const o=this.graphZonesByType[m.Wm];o.currentWidth=o.contentWidth,o.preferredWidth=o.contentWidth,o.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,o.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.loadEdgesBySha(),t=!0}e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0)}if(this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),this.props.pendingCommitMessageSummary!==e.pendingCommitMessageSummary&&this.setState({pendingCommitMessageSummary:e.pendingCommitMessageSummary||""}),this.props.enableShowHideRefsOptions!==e.enableShowHideRefsOptions&&this.setState({enableShowHideRefsOptions:e.enableShowHideRefsOptions}),this.props.createRefFormData!==e.createRefFormData&&(e.createRefFormData?.sha&&this.selectCommits([e.createRefFormData?.sha],!1,!0),this.setState({createRefFormData:e.createRefFormData})),n&&(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})),t){this.updateCommitZoneContentWidthFromChange();const e=this.getOrderedActiveGraphZones();this.expandLastZoneMinWidthForScrollbar(e),this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}onGraphVisibleRowsUpdatedThrottled=((e,t,o)=>{let n,r,i=!1,s=t;return(...a)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...a),n=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),s))}})((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,n)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const o=this.graphZoneOrdering.indexOf(e);let n=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<n&&(n-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(n,0,e);const r={};this.graphZoneOrdering.forEach(((e,t)=>{this.graphZonesByType[e].order=t,r[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])})),this.setState({graphZones:this.initializeGraphZones(r,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(r)};onGraphZoneResize=B(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=B(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!0),this.setState({graphZones:o})}this.props.onColumnResized&&this.props.onColumnResized(e.type,this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e.type]))}));onPopupGraphHeaderContextMenu=(e,t)=>{this.props.onPopupGraphHeaderContextMenu&&this.props.onPopupGraphHeaderContextMenu(e,t)};onSettingsClick=(e,t)=>{this.props.onSettingsClick&&this.props.onSettingsClick(e,t)};onMessageChange=e=>{this.setState({pendingCommitMessageSummary:e}),this.props.onMessageChange&&this.props.onMessageChange(e)};onRefBeginDrag=(e,t)=>{this.props.onRefBeginDrag&&this.props.onRefBeginDrag(e,t)};onRefCanDrag=e=>!!this.props.onRefCanDrag&&this.props.onRefCanDrag(e);onRefCanDrop=(e,t,o)=>!!this.props.onRefCanDrop&&this.props.onRefCanDrop(e,t,o);onRefCreate=(e,t,o,n)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,n)};onRefCreateCancel=(e,t,o,n)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,n)};onRefCreateContextMenu=(e,t,o,n,r)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,n,r)};onRefDragEnter=(e,t,o)=>{this.props.onRefDragEnter&&this.props.onRefDragEnter(e,t,o)};onRefDragLeave=(e,t,o)=>{this.props.onRefDragLeave&&this.props.onRefDragLeave(e,t,o)};onRefDrop=(e,t,o)=>{this.props.onRefDrop&&this.props.onRefDrop(e,t,o)};onRefEndDrag=(e,t,o)=>{this.props.onRefEndDrag&&this.props.onRefEndDrag(e,t,o)};onClickRef=(e,t,o,n)=>{this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onClickCommit=(e,t,o)=>{if(0===e.button){const{enableMultiSelection:n}=this.props,r=this.isMacOSPlatform();if(n&&(!r&&e.ctrlKey||r&&e.metaKey)?this.selectCommits([o],!0,!1):n&&e.shiftKey||this.selectCommits([o],!1,!1),this.props.onClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,n)}}};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,n)}};onWindowKeyUp=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=()=>{this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyDown=e=>{switch(e.keyCode){case 38:this.selectPrevious(e.shiftKey);break;case 40:this.selectNext(e.shiftKey);break;case 72:this.selectHead(e.shiftKey)}};onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||pe(this.isSelectedBySha,o)||this.processedGraphRowBySha[o]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,o)=>{this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout((()=>{this.shouldFireShowMoreCommits=!0}),100))};onScrollForZone=(e,t,o,n,r)=>{if(this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),!this.props.onShowMoreCommits||!r||!n||n<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const i=this.scrollTop+n,s=this.orderedGraphRows.length*m.$0;i>s-m.qG&&i>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(i,s-1),this.onShowMoreCommits())};onScrollToRowCausedUpdateForRefZone=(e,t)=>{this.setScroll(e,t),this.props.onScrollToRowCausedUpdateForRefZone&&this.props.onScrollToRowCausedUpdateForRefZone(e,t)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,n)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,n)}};selectCommits(e,t,o){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const n=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{n.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,o))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(m.Wm)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){const e=[];return Object.keys(this.isSelectedBySha).forEach((t=>{this.isSelectedBySha[t]&&e.push(t)})),e}getExcludeRemotesByName(){const e={};return Object.values(this.excludeRefsById).forEach((t=>{t.type===L.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===L.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}clearScrollToIndex=()=>{setTimeout((()=>this.setState({scrollToIndex:void 0})),100)};getTopAndBottomVisibleRowIndex(){const{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,n=e||0;if(!n||!t||!t.length)return{top:-1,bottom:-1};const r=(n-m.rl)/m.$0,i=o/m.$0,s=i+(r-1);return{top:Math.max(Math.floor(i),0),bottom:Math.min(Math.ceil(s),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let n=o;if(n<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,s=r.bottom;if(-1===i||-1===s)return e;const a=Math.floor((s-i)/2);if(a<1)return e;n=Math.min(n,a);const l=this.orderedGraphRows.length,c=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!c||!this.orderedGraphRows.length)return e;const h=s-n<c;return i+n>c?this.orderedGraphRows[Math.max(c-n,0)].sha||e:h&&this.orderedGraphRows[Math.min(c+n,l-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(m.Wm),s=this.getCommitZoneContentWidth(),a=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,l=n-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=a,c=a<=n+r,h=Math.max(0,s-i),d=l&&c?n:P(a-r/2,0,h);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){const n=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=re(r,n,e);if(r.currentWidth=i,t===m.Wm){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromChange(){const e=this.graphZonesByType[m.Wm];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=re(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){const o=t?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0,n=this.graphZonesByType[e];return n&&!n.isHidden?n.currentWidth-o:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT}getCommitZoneWidth(e=!0){const t=e?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0;if(this.graphZonesByType[m.Wm])return this.graphZonesByType[m.Wm].currentWidth-t;const{columnsSettings:o}=this.props;return o?.[m.Wm]?o[m.Wm].width-t:m.qi[m.Wm].minimumWidth-t}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(m.Wm);return 1===e?0:P(1-(t-2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)}setClientHeight(e){this.clientHeight=e}getClientHeight(){return this.clientHeight}setScroll(e,t){this.setClientHeight(t.clientHeight),null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===m.Wm&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){const e=this.getNonAdjustedScrollLeft();return this.getCommitZoneContentWidth()!==this.getCommitZoneWidth()?e:0}setScrollTop(e){this.scrollTop!==e&&(this.scrollTop=e,this.setState({scrollTop:e}),this.onGraphVisibleRowsUpdatedThrottled())}getScrollTop(){return this.scrollTop}getScrollToSha(){return this.scrollToSha}setScrollToSha(e,t){this.scrollToSha=e,this.setScrollLeft(t),this.onGraphVisibleRowsUpdated()}getScrollToIndex(){const e=this.getScrollToSha();return this.orderedGraphRows.findIndex((t=>t.sha===e))}getScrollToAlignment(){const e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return function(e,t,o,n){if(n<0)return m.os;const r=e+2,i=n*e;return i>=o-r&&i<o+t+r?m.os:m.MQ}(m.$0,e,t,o)}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT)+t*(e+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getHorizontalScrollHeight(e,t,o){return this.graphZonesByType[e]?oe(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?ne(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(m.Wm),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH))+o*(t+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH*t;return e}getNodeOffsetByColumn(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),n={};return Object.keys(o).forEach((r=>{const i=o[r];n[r]=P(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(m.Wm)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(m.Wm),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return P((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),n=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(o).forEach((s=>{const a=o[s],l=a-(e-r*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),c=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(a+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-n)),h=Math.min(l,c);i[s]=m.l3+(1-m.l3)*Math.max(h/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+e*(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,P(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e){const t={...this.markerRowIndices};if(e.forEach((e=>{t[e]=[]})),e.includes("selection")){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.selection.push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes("highlights")){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.highlights.push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.documentElement),t={};return Object.values(m.Qh).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey).trim();n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=m.qi[t],a=i?.width?i.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,mode:i?.mode,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=l.currentWidth),t===m.Wm&&(l.contentWidth=this.getCommitZoneContentWidth(),l.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,l.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||n.push(l)}));const i=n[n.length-1];if(i){const e=q(this.props.cssVariables,!0),t=i.minimumWidth+e;(null==i.maximumWidth||i.maximumWidth>=t)&&(i.minimumWidth=t,null!=i.showIconWidth&&(i.showIconWidth+=e),n[n.length-1]=i)}for(n.forEach((e=>{const t=re(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=$(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),a=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=a}if(r<o){const e=t[t.length-1],r=o-K(n,e);this.graphZonesByType[e].currentWidth=r}return n}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every((t=>void 0!==e?.[t]?.order))&&this.graphZoneOrdering.sort(((t,o)=>e[t].order<e[o].order?-1:e[t].order>e[o].order?1:0))}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach(((o,n)=>{const r=this.graphZonesByType[o],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0,r.type!==m.WD||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n,r.mode=i.mode,r.preferredWidth=i.width??r.preferredWidth,r.currentWidth=r.preferredWidth)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const o=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(o).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const o={};let n,r,i,s;return Object.keys(t).forEach((a=>{n=t[a],r=n.passThrough,i=n.starting,s=r&&!g(r.type)?r:i&&!g(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[a]={ending:s}:o[a]={passThrough:s})})),o}getFinalEdgeStateForGraphAndRow(e,t){const o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),n=this.getStartingEdgesByColumn(e);let r;return Object.keys(n).forEach((e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=o[e],r.starting=n[e]})),o}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const o=this.orderedGraphRows[t-1],n=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,n);const r=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=r,r>this.maxColumns&&(this.maxColumns=r)}))}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){const t={},o=e.parents;if(o.length>0){const n=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:o[0],type:n});for(let e=1;e<o.length;e+=1){const r=o[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:n})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):I(e,m.It);formatRefShorthandCallback=(e,t,o,n)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,n):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,n)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,n);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):ve[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach(((e,t)=>{const n=new RegExp(`\\{${t}\\}`,"g");o=o.replace(n,e)})),o}(ve[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):a().createElement("span",null);onMissingAvatar=(e,t)=>{this.props.onEmailsMissingAvatarUrls&&!this.requestedMissingAvatars[e]&&(this.pendingMissingAvatars[e]=t,this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingAvatarsTimer=setTimeout((()=>{const e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const o=this.pendingMissingRefsMetadata[e]||[],n=t.filter((e=>!o.includes(e)));this.pendingMissingRefsMetadata[e]=[...o,...n],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}}),100)};selectNext(e){const t=this.getSelectedShas(),o=t.length>0?t[t.length-1]:null;let n;if(e&&o){const e=this.processedGraphRowBySha[o];e?.parents?.length&&(n=e.parents[0])}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);n=this.orderedGraphRows[t]?.sha}n&&this.selectCommits([n],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),o=t.length>0?t[0]:null;let n;if(e&&o){const e=this.childrenBySha[o];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)n=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==f.kP){n=e[t];break}}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.max(-1,e-1);n=this.orderedGraphRows[t]?.sha,t<0&&(n=this.orderedGraphRows[0]?.sha)}n&&this.selectCommits([n],!1,!0)}selectHead(e){e&&this.headUpstreamSha?this.selectCommits([this.headUpstreamSha],!1,!0):this.headSha&&this.selectCommits([this.headSha],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){const t=e.parents||[],o=this.columnsToFreeWhenFound[e.sha];if(void 0!==o)for(let e=0;e<o.length;e+=1)delete this.columnsUsed[o[e]];let n=0;const r=this.reserverInfoBySha[e.sha];let i,s;void 0!==r?.column?(n=r.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let o=0;o<t.length;o+=1)if(i=t[o],s=this.reserverInfoBySha[i],0===o&&void 0!==s?.column&&s?.column!==n){const t=this.columnsToFreeWhenFound[i]||[],o=s?.type===f.kP&&e.type!==f.kP&&r?.newestDate>s?.newestDate;s?.column>n||o?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:n},t.push(s.column)):t.push(n),this.columnsToFreeWhenFound[i]=t}else void 0===s?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===n?r?.newestDate:e.date,column:0===o?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[j(L.V.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[j(L.V.HEAD,e)])))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[j(L.V.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:(!this.excludeByType.remotes||e.owner&&this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0)&&void 0===this.excludeRefsById[j(L.V.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,o){const n=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===L.V.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>n?void 0!==this.includeOnlyRefsById[j(L.V.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[j(L.V.TAG,e)]&&(!t||r||o)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,o={},n=[],r=[];this.branchUpstreamRowIndices=[];const i=[],s=[],a=[],l=[],c={};if(de(this.workDirStats)&&e.length>0&&!he(e[0].type)){const t=function(e){const t=e.find(ce);return t?.sha||void 0}(e),o={sha:f.ch,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:f.ch,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!de(this.workDirStats)&&e.length>0&&he(e[0].type)&&e.shift();const h=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,d)=>{const u=this.childrenBySha[e.sha]?.length>0,p=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,h):[],m=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,h):[],g=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,h,Boolean(c[e.sha]||u)):[],v=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],y=p.length>0||m.length>0||g.length>0,C=p.length>0||m.length>0;if(e.type!==f.o$&&e.type!==f.lH||c[e.sha]){if(e.type===f.kP&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==f.o$&&e.type!==f.lH||c[e.sha]||y||u||(o[e.sha]=!0);const S=o[e.sha],{summary:_,body:w}=this.getSummaryAndBody(e.message),R={...e,heads:p,remotes:m,tags:g,parents:v,column:S?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:y,summary:_,body:w,childRefs:{heads:[],tags:[],remotes:[]}};if(!S){let o;const c=t.get(e.sha);c?.length&&(c.sort(((e,t)=>{if(e.parentIndexScore<t.parentIndexScore)return-1;if(e.parentIndexScore>t.parentIndexScore)return 1;if(e.parentIndexScore===t.parentIndexScore){if(e.rowEntered<t.rowEntered)return-1;if(e.rowEntered>t.rowEntered)return 1}return 0})),o=c[0],R.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<v.length;n+=1){const r=v[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(C||o)&&void 0===i&&(i=[],t.set(r,i)),C?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:d,heads:p,remotes:m,tags:g}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:d})}const h=this.orderedGraphRows.length;if(R.rowIndex=h,p.length>0&&(i.push(h),p.some((e=>e.isCurrentHead))&&(this.headSha=R.sha,n.push(h))),m.length>0){s.push(h);for(const e of m)e.current&&(r.push(h),this.headUpstreamSha=R.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(h)}g.length>0&&a.push(h),e.type===f.kP&&l.push(h),this.orderedGraphRows.push(R)}this.processedGraphRowBySha[e.sha]=R})),this.markerRowIndices={...this.markerRowIndices,head:n,upstream:r,localBranches:i,remoteBranches:s,tags:a,stashes:l},clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}getSummaryAndBody(e){const t={summary:e.trim()},o=t.summary.indexOf("\n");return-1!==o&&(t.body=t.summary.substring(o+1).trim().replace(/\n+(?:\s+\n+)?/g," | "),t.summary=t.summary.substring(0,o)),t}updateRowStatsConstraints(){this.rowStatsConstraints=function(e){const{length:t}=e;if(0===t)return{min:0,max:0};if(1===t)return{min:0,max:e[0]};e.sort(((e,t)=>e-t));const o=e[0],n=e[Math.floor(.25*t)],r=e[Math.floor(.5*t)],i=e[Math.floor(.75*t)],s=e[t-1],a=i-n;return{min:Math.max(o,r-1.5*a),max:Math.min(s,r+1.5*a)}}(null!=this.rowsStats?Object.values(this.rowsStats).map((e=>e.additions+e.deletions)):[])}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=m.YJ.hour;r+=1)t.hour.push({date:e.getTime()-r*o,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=m.YJ.day;r+=1)t.day.push({date:e.getTime()-r*n,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=m.YJ.week;r+=1)t.week.push({date:e.getTime()-6048e5*r,label:1===r?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:r});const i=new Date;for(i.setHours(0,0,0,0),r=1;r<=m.YJ.month;r+=1)i.setMonth(i.getMonth()-1),i.setHours(0,0,0,0),t.month.push({date:i.getTime(),label:1===r?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:r});const s=new Date;for(s.setHours(0,0,0,0),r=1;r<=m.YJ.year;r+=1){let e;switch(s.setFullYear(s.getFullYear()-1),s.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case m.YJ.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:s.getTime(),label:e,timeUnit:"year",value:r})}return t}();Object.values(e).forEach((e=>{e.forEach((e=>{const{date:t}=e,o=this.orderedGraphRows.find((e=>e.date<t));o&&this.processedGraphRowBySha[o.sha]&&(this.processedGraphRowBySha[o.sha].timeLineEntry=e)}))}))}clearTimelines(){Object.keys(this.processedGraphRowBySha).forEach((e=>{this.processedGraphRowBySha[e].timeLineEntry&&delete this.processedGraphRowBySha[e].timeLineEntry}))}cleanupSelections(){const e=Object.keys(this.isSelectedBySha);for(let t=0;t<e.length;t+=1){const o=e[t];this.processedGraphRowBySha[o]||delete this.isSelectedBySha[o]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,n={};for(let i=0;i<=o;i+=1)if(i<t){const t=e[w(i)];n[i]="rgba"===(r=u(t)).type?`rgba(${r.r}, ${r.g}, ${r.b}, ${Number(r.a.toFixed(2))})`:`hsla(${r.h}, ${(100*r.s).toFixed(2)}%, ${(100*r.l).toFixed(2)}%, ${Number(r.a.toFixed(2))})`}else{const e=n[i%t];n[i]=e}var r;return n}getNumGraphColumns(e){const t=e["--num-columns-supported"],o=Number.parseInt(t,m.uK);return Number.isNaN(o)?m.uK:o}expandLastZoneMinWidthForScrollbar(e){const t=e[e.length-1]?.type;if(!t)return;const o=q(this.props.cssVariables,!0),n=m.qi[t].minimumWidth+o,r=this.graphZonesByType[t];if(!r||null!=r.maximumWidth&&n>r.maximumWidth)return;r.minimumWidth=n;const i=m.qi[t].showIconWidth;null!=i&&(r.showIconWidth=i+o),r.currentWidth<r.minimumWidth&&(r.currentWidth=r.minimumWidth),r.preferredWidth<r.minimumWidth&&(r.preferredWidth=r.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){const o=K(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=K(e);for(;n>t;){const r=$(e,o);if(!r)break;const i=K(e,r.type);if(i+r.currentWidth>t){const o=re(r,e,t-i);this.updateWidthByZone(o,r.type)}n=K(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort(((e,t)=>this.graphZonesByType[e].order<this.graphZonesByType[t].order?-1:this.graphZonesByType[e].order>this.graphZonesByType[t].order?1:0)).filter((e=>!this.graphZonesByType[e].isHidden)).map((e=>this.graphZonesByType[e]))}expandZoneWidthsToFitWidth(e,t,o){let n=K(e);for(;n<t;){const r=Y(e,o);if(!r)break;const i=K(e,r.type),s=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let o=t-i;!X(r.type,e)&&o>s&&(o=s),o=re(r,e,o),this.updateWidthByZone(o,r.type)}n=K(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,n)=>{t.forEach((e=>{o&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:o||(this.excludeRefsById[e.id]=e)})),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,o,n?this.processedGraphRowBySha[n]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){De={},Me={},xe={},Te={},D={}}onZoneEnter=(e,t,o,n)=>{t!==m.jZ&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o?.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=se(t.type,e),s=this.graphZonesByType[t.type];r>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered()};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=B(((e,t)=>{const o=Math.floor(t),n=Math.floor(e),r=o!==this.graphHeight,i=n!==this.graphWidth,s={};if(r&&(this.graphHeight=o,s.height=o),i){this.graphWidth=n;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(r||i)&&(this.setState(s),r&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))}));onGraphVisibleRowsUpdated(){if(!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows||!this.orderedGraphRows.length)return;const{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();-1===e||-1===t||e>=this.orderedGraphRows.length||t>=this.orderedGraphRows.length||e===this.lastTopVisibleRowIndex&&t===this.lastBottomVisibleRowIndex||(this.lastTopVisibleRowIndex=e,this.lastBottomVisibleRowIndex=t,this.props.onGraphVisibleRowsChanged&&this.props.onGraphVisibleRowsChanged(this.orderedGraphRows[e],this.orderedGraphRows[t]))}getCurrentPlatform(){return this.props.platform||"darwin"}isMacOSPlatform(){return"darwin"===this.getCurrentPlatform()}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=function(e){const t=e||_;let o="";const n=Object.keys(t);o+=".gk-graph {\n";for(const e of n)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}(t);return a().createElement(a().Fragment,null,a().createElement("style",{nonce:o},n),a().createElement("div",{className:"gk-graph"},e))};render(){const{columnsSettings:e,isInUnsupportedRebase:t,isCommitting:o,repoPath:n,nonce:r,wipMessageEditable:s}=this.props,{avatarUrlByEmail:l,columnColorByColumn:c,contexts:h,createRefFormData:d,cssVariablesWithDefaults:u,currentlyHoveredCommitSha:p,dimMergeCommits:f,dimRowsOfSelectedCommit:g,enableShowHideRefsOptions:v,highlightRowsOnRefHover:y,showGhostRefsOnRowHover:C,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:_,enabledScrollMarkerTypes:w,graphZones:R,hasMoreCommits:b,height:T,highlightedShas:E,hoveredRefGroup:x,hoveredRefZoneSha:O,themeOpacityFactor:M,isContainerWindowFocused:I,isLoadingRows:D,rowsStatsLoading:N,numGraphColumns:z,pendingCommitMessageSummary:k,processedRows:H,refMetadataById:G,useAuthorInitialsForAvatars:A,scrollToAlignment:W,scrollToIndex:P,scrollTop:L,scrollLeft:F,shaLength:B,width:U,workDirStats:j}=this.state,V=i()("flex","graph-container"),$=(Y=H,e=>e===Y.length?"SHOW_MORE_COMMITS":Y[e].sha);var Y;const q=(K=e=>$(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:a,parent:l,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!a&&!y;for(let e=h;e<=d;e+=1){const h=c.getSizeAndPositionOfCell(e);for(let c=n;c<=r;c+=1){const n=o.getSizeAndPositionOfCell(c),r=c>=f.start&&c<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${c}`;let y;C&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:a,isVisible:r,key:d,parent:l,rowIndex:e,style:y};let _;if(!a||s||p)_=t(S);else{const o=K(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),_=v[d].cell}null!=_&&g.push(_)}}return g});var K;const X=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),J=this.getRightGutterBoxShadowAlpha(M),ee=this.getLeftGutterBoxShadowAlpha(M),te=this.getNodeOffsetByColumn(),oe=this.getNodeOpacityByColumn(),ne=se(m.jZ,R),re=se(m.Wm,R),ie=-1!==ne&&-1!==re&&re-ne==1,ae=!x,le={avatarUrlByEmail:l,createRefFormData:d,dimMergeCommits:f,dimRowsOfSelectedCommit:g,enableShowHideRefsOptions:v,highlightRowsOnRefHover:y,showGhostRefsOnRowHover:C,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:_,enabledScrollMarkerTypes:w,isInUnsupportedRebase:t,isCommitting:o||!1,isContainerWindowFocused:I,pendingCommitMessageSummary:k,workDirStats:j,repoPath:n,columnColorByColumn:c,currentlyHoveredCommitSha:p,cssVariables:u,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:R,hasMoreCommits:b,height:T,highlightedShas:E,hoveredRefGroup:x,hoveredRefZoneSha:O,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:D,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:ee,leftGutterWidth:X,nodeOffsetByColumn:te,nodeOpacityByColumn:oe,nonce:r,numGraphColumns:z,processedRows:H,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:G,rightGutterBoxShadowAlpha:J,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,useAuthorInitialsForAvatars:A,scrollToAlignment:W,scrollLeft:F,scrollTop:L,shaLength:B,shouldShowRefLine:ie,width:U,wipMessageEditable:s||!1,onMissingAvatar:this.onMissingAvatar,onMissingRefMetadata:this.onMissingRefMetadata,clearCurrentlyHoveredGraphCommit:this.onClearCurrentlyHoveredGraphCommit,setAsCurrentlyHoveredGraphCommit:this.onCurrentlyHoveredGraphCommit,onClickRef:this.onClickRef,onClickCommit:this.onClickCommit,onDoubleClickCommit:this.onDoubleClickCommit,onBlurWipNodeInput:this.onBlurWipNodeInput,onFocusWipNodeInput:this.onFocusWipNodeInput,onDoubleClickRef:this.onDoubleClickRef,onMessageChange:this.onMessageChange,onRefBeginDrag:this.onRefBeginDrag,onRefCanDrag:this.onRefCanDrag,onRefCanDrop:this.onRefCanDrop,onRefCreate:this.onRefCreate,onRefCreateCancel:this.onRefCreateCancel,onRefCreateContextMenu:this.onRefCreateContextMenu,onRefDragEnter:this.onRefDragEnter,onRefDragLeave:this.onRefDragLeave,onRefDrop:this.onRefDrop,onRefEndDrag:this.onRefEndDrag,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,formatRefShorthand:this.formatRefShorthandCallback,isRefShorthandValid:this.isRefShorthandValidCallback,translate:this.translateCallback},ce={[m.jZ]:Ls(le,$),[m.Wm]:gs(le,$),[m.KE]:Ji(le,$),[m.GF]:xi(le,$),[m.PL]:Oi(le,$),[m.av]:es(le,$),[m.WD]:Ri(le,$),[m.Gn]:Fs(le,$)},he=R.map(((e,t)=>a().createElement(Fn,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:ce,columnIndex:t,enabledScrollMarkerTypes:w,enableResizer:ae,getExternalIcon:this.getIconCallback,getKeyForCell:$,graphHeight:T-m.rl,graphWidth:U,graphZones:R,graphZoneType:e.type,hasMoreCommits:b,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,u),isLoadingRows:D,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===m.jZ?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,x,O),rowCount:H.length,scrollLeft:F,scrollToAlignment:e.type===m.jZ?W:void 0,scrollToIndex:e.type===m.jZ?P:void 0,scrollTop:L,smartCellRangeRenderer:q,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,u)}))),de=this.graphContainerRef?.current&&a().createElement(fi,{columnsSettings:e,dragAppendToContainer:this.graphContainerRef?.current,enableResizer:ae,enableShowHideRefsOptions:v,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:R,headerContext:h?.header,height:T,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onFilterColumnClick:this.onFilterColumnClick,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onSettingsClick:this.onSettingsClick,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,rowsStatsLoading:N,settingsContext:h?.settings,showRemoteNamesOnRefs:S,translate:this.translateCallback,width:U}),ue=a().createElement("div",{className:"graph-component","data-vscode-context":Z(h?.graph),onBlur:e=>this.onGraphContainerBlurred(e,x,O),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},de,a().createElement("div",{className:E&&Object.keys(E).length?i()(V,"graph-highlighted"):V,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:T,width:U},tabIndex:-1},he));return this.decorateWithHelmet(ue,u,r)}}var Zs=Bs},827:(e,t,o)=>{o.d(t,{Gu:()=>c,S7:()=>r,br:()=>s,ch:()=>l,kP:()=>a,lH:()=>i,o$:()=>n});const n="commit-node",r="merge-conflict-node",i="merge-node",s="unsupported-rebase-warning-node",a="stash-node",l="work-dir-changes";var c=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(c||{})},8289:()=>{},2149:()=>{},3308:(e,t,o)=>{o.d(t,{$0:()=>s,$s:()=>h,An:()=>d,B:()=>H,B8:()=>x,GF:()=>re,Gn:()=>ee,IX:()=>$,It:()=>R,KE:()=>ne,LG:()=>C,MQ:()=>X,NP:()=>f,O5:()=>m,OR:()=>ge,Oi:()=>F,P3:()=>p,PB:()=>N,PL:()=>ie,QW:()=>P,Qh:()=>de,RG:()=>ce,Rg:()=>z,SZ:()=>L,Um:()=>le,VB:()=>Y,Vh:()=>G,WD:()=>ae,Wm:()=>oe,Wu:()=>g,X9:()=>U,Y8:()=>S,YJ:()=>me,aV:()=>j,ai:()=>pe,am:()=>k,at:()=>u,av:()=>se,b4:()=>J,cZ:()=>a,dF:()=>r,dH:()=>q,d_:()=>he,eq:()=>y,iq:()=>n,jZ:()=>te,j_:()=>O,jg:()=>b,jn:()=>v,l3:()=>c,lG:()=>E,m8:()=>_,mt:()=>A,mu:()=>Q,os:()=>K,pj:()=>M,q1:()=>w,qG:()=>l,qi:()=>fe,rl:()=>i,uK:()=>ue,v1:()=>W,wd:()=>V,wi:()=>Z,wy:()=>I,xI:()=>T,yv:()=>D,ze:()=>B});const n="#199489",r=3,i=26,s=28,a=22,l=50*s,c=.5,h=3,d=3,u=s,p=a,f=3,m=p/2,g=56,v=56,y=32,C=a,S=C-4,_=55,w=50,R="short+short",b=55,T=50,E=50,x=50,O=55,M=18,I=32,D=2,N=6,z=14,k=5,H=z+k,G=10,A=55,W=50,P=10,L=25,F=58,B=22,Z=2,U={dark:1,light:.5},j=10,V=12,$=6,Y=3,q=12,K="auto",X="center",Q=7,J=4,ee="timelineMessage",te="ref",oe="graph",ne="message",re="author",ie="datetime",se="sha",ae="changes";var le=(e=>(e.Compact="compact",e.Rich="rich",e.Text="text",e))(le||{}),ce=(e=>(e.Block="block",e.FullLine="fullLine",e.ThinLine="thinLine",e))(ce||{});const he={block:{type:"block",baseHeight:1*s,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*s,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*s,minHeight:1,maxHeight:2}},de={stashes:{type:"stashes",colorCssKey:"--color-graph-scroll-marker-stashes",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--color-graph-scroll-marker-tags",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--color-graph-scroll-marker-remote-branches",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--color-graph-scroll-marker-local-branches",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--color-graph-scroll-marker-highlights",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--color-graph-scroll-marker-upstream",lanes:[1,2],shape:"block"},head:{type:"head",colorCssKey:"--scroll-marker-head-color",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},ue=10,pe=6,fe={[re]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:y,showIconWidth:_},[ie]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:w,showIconWidth:b},[ne]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:x,showIconWidth:O},[se]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:T,showIconWidth:E},[oe]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:g,showIconWidth:v},[te]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:I,showIconWidth:A},[ae]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:W,showIconWidth:F}},me={hour:23,day:6,week:4,month:11,year:6},ge={added:0,deleted:0,modified:0}},9453:(e,t,o)=>{o.d(t,{AI:()=>i,mQ:()=>n,uq:()=>r});const n="pullRequest",r="upstream",i=[n,r]},7334:(e,t,o)=>{function n(e){switch(e){case"github":return"GitHub";case"githubEnterprise":return"GitHub Enterprise";case"gitlab":return"GitLab";case"gitlabSelfHosted":return"GitLab Self-Hosted";case"azureDevops":return"Azure DevOps";case"bitbucket":return"Bitbucket";case"bitbucketServer":return"Bitbucket Server";default:return e}}o.d(t,{y:()=>n})},8649:(e,t,o)=>{o.d(t,{V:()=>n});const n={HEAD:"head",REMOTE:"remote",TAG:"tag"}},664:()=>{},6756:()=>{},3316:e=>{function t(e,t,o,n){var r,i=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:o(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function o(e,t,o){var n=Array.prototype.slice.call(arguments,3),r=o(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function n(e,t,o,n,r){return o.bind(t,e,n,r)}function r(e,r){return n(e,this,1===e.length?t:o,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:a,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:o,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,o){return n(e,this,t,o.cache.create(),o.serializer)}}},1143:e=>{e.exports=function(e,t,o,n,r,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,n,r,i,s,a],h=0;(l=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="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=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t],l=void 0===a?"undefined":n(a);return r.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(o(6689)),r=o(9864),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t];return n.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(a)?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},5638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,o,n,r,i){var s=n||"<<anonymous>>",a=i||o;if(null==t[o])return new Error("The "+r+" `"+a+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),h=5;h<l;h++)c[h-5]=arguments[h];return e.apply(void 0,[t,o,n,r,i].concat(c))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,o,n,r,i,s){var a=r||"<<anonymous>>",l=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+a+"`."):null;for(var c=arguments.length,h=Array(c>6?c-6:0),d=6;d<c;d++)h[d-6]=arguments[d];return e.apply(void 0,[o,n,a,i,l].concat(h))}var o=t.bind(null,!1);return o.isRequired=t.bind(null,!0),o},e.exports=t.default},2703:(e,t,o)=>{var n=o(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,s){if(s!==n){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 o={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:r};return o.PropTypes=o,o}},5697:(e,t,o)=>{e.exports=o(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},977:(e,t,o)=>{var n=o(7137),r=o(2584);e.exports=function(){return n.apply(this,r(arguments)).on("cloned",(function(t){e(t),r(t.getElementsByTagName("*")).forEach(e)}));function e(e){e.removeAttribute("data-reactid")}}},9921:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,u=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,C=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case l:return e;default:return t}}case r:return t}}}function w(e){return _(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||_(e)===h},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===u},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===C||e.$$typeof===S||e.$$typeof===v)},t.typeOf=_},9864:(e,t,o)=>{e.exports=o(9921)},6871:(e,t,o)=>{function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function i(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function s(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 o=null,s=null,a=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\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=n,t.componentWillReceiveProps=r),"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=i;var h=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;h.call(this,e,t,n)}}return e}o.r(t),o.d(t,{polyfill:()=>s}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,o)=>{t.__esModule=!0;var n=c(o(5697)),r=c(o(621)),i=c(o(6689)),s=c(o(6405)),a=c(o(3464)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}function h(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 d=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),d=0;d<r;d++)c[d]=arguments[d];return o=n=h(this,e.call.apply(e,[this].concat(c))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,a.default)(n.props.container,(0,l.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?i.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(s.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,a.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},2856:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=h(o(5697)),i=h(o(8853)),s=h(o(6689)),a=h(o(5425)),l=h(o(7487)),c=h(o(2395));function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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,o,n));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!o.show},r.onHiddenListener=r.handleHidden.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,o=e.containerPadding,n=e.target,r=e.placement,i=e.shouldUpdatePosition,h=e.rootClose,d=e.children,u=e.transition,p=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||u&&!this.state.exited))return null;var f=d;if(f=s.default.createElement(l.default,{container:t,containerPadding:o,target:n,placement:r,shouldUpdatePosition:i},f),u){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,C=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:C},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(a.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},a.default.propTypes,l.default.propTypes,{show:r.default.bool,rootClose:r.default.bool,onHide:function(e){var t=r.default.func;e.rootClose&&(t=t.isRequired);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},transition:i.default,onEnter:r.default.func,onEntering:r.default.func,onEntered:r.default.func,onExit:r.default.func,onExiting:r.default.func,onExited:r.default.func}),t.default=d,e.exports=t.default},5425:(e,t,o)=>{t.__esModule=!0;var n=h(o(5697)),r=h(o(621)),i=h(o(6689)),s=h(o(6405)),a=h(o(3464)),l=h(o(290)),c=h(o(7281));function h(e){return e&&e.__esModule?e:{default:e}}function d(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 u=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return o=n=d(this,e.call.apply(e,[this].concat(i))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,a.default)(e.container,(0,l.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);u.displayName="Portal",u.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=s.default.createPortal?u:c.default,e.exports=t.default},7487:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=p(o(4184)),i=p(o(5697)),s=p(o(621)),a=o(6689),l=p(a),c=p(o(6405)),h=p(o(7603)),d=p(o(3464)),u=p(o(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}var m=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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,o,n));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&c.default.findDOMNode(t)||null},r.maybeUpdatePosition=function(e){var t=r.getTarget();(r.props.shouldUpdatePosition||t!==r._lastTarget||e)&&r.updatePosition(t)},r.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},r._needsFlush=!1,r._lastTarget=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))},t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=f(e,["children","className"]),s=this.state,c=s.positionLeft,h=s.positionTop,d=f(s,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var u=l.default.Children.only(t);return(0,a.cloneElement)(u,n({},i,d,{positionLeft:c,positionTop:h,className:(0,r.default)(o,u.props.className),style:n({},u.props.style,{left:c,top:h})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=c.default.findDOMNode(this),o=(0,d.default)(this.props.container,(0,u.default)(this).body);this.setState((0,h.default)(this.props.placement,t,e,o,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(l.default.Component);m.propTypes={target:i.default.oneOfType([s.default,i.default.func]),container:i.default.oneOfType([s.default,i.default.func]),containerPadding:i.default.number,placement:i.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:i.default.bool},m.displayName="Position",m.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=m,e.exports=t.default},2395:(e,t,o)=>{t.__esModule=!0;var n=c(o(1629)),r=c(o(5697)),i=c(o(6689)),s=c(o(6405)),a=c(o(6616)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,o,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,l.default)(i);i.documentMouseCaptureListener=(0,a.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,a.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,a.default)(t,"keyup",i.handleKeyUp)},i.removeEventListeners=function(){i.documentMouseCaptureListener&&i.documentMouseCaptureListener.remove(),i.documentMouseListener&&i.documentMouseListener.remove(),i.documentKeyupListener&&i.documentKeyupListener.remove()},i.handleMouseCapture=function(e){var t;i.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,n.default)(s.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){27===e.keyCode&&i.props.onRootClose&&i.props.onRootClose(e)},i.preventMouseRootClose=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(i.default.Component);h.displayName="RootCloseWrapper",h.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},h.defaultProps={event:"click"},t.default=h,e.exports=t.default},6616:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i){return(0,n.default)(e,t,o,i),{remove:function(){(0,r.default)(e,t,o,i)}}};var n=i(o(1416)),r=i(o(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i,s){var a="BODY"===i.tagName?(0,n.default)(o):(0,r.default)(o,i),c=(0,n.default)(t),h=c.height,d=c.width,u=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=a.top+(a.height-h)/2,u="left"===e?a.left-d:a.left+a.width;var g=function(e,t,o,n){var r=l(o),i=r.scroll,s=r.height,a=e-n-i,c=e+n-i+t;return a<0?-a:c>s?s-c:0}(p,h,i,s);p+=g,m=50*(1-2*g/h)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');u=a.left+(a.width-d)/2,p="top"===e?a.top-h:a.top+a.height;var v=function(e,t,o,n){var r=l(o),i=r.width,s=e-n,a=e+n+t;if(s<0)return-s;if(a>i)return i-a;return 0}(u,d,i,s);u+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var n=a(o(2565)),r=a(o(7265)),i=a(o(504)),s=a(o(290));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=void 0,o=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,o=window.innerHeight,r=(0,i.default)((0,s.default)(e).documentElement)||(0,i.default)(e);else{var a=(0,n.default)(e);t=a.width,o=a.height,r=(0,i.default)(e)}return{width:t,height:o,scroll:r}}e.exports=t.default},3464:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,r=o(6405),i=(n=r)&&n.__esModule?n:{default:n};e.exports=t.default},290:(e,t,o)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(n.default.findDOMNode(e))};var n=i(o(6405)),r=i(o(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},644:(e,t,o)=>{t.ZP=t.cn=t.d0=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(5697)),r=a(o(6689)),i=a(o(6405)),s=o(6871);o(4726);function a(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";var c="exited";var h="entering";t.d0=h;var d="entered";t.cn=d;var u="exiting";var p=function(e){var t,o;function n(t,o){var n;n=e.call(this,t,o)||this;var r,i=o.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(r=c,n.appearStatus=h):r=d:r=t.unmountOnExit||t.mountOnEnter?l:c,n.state={status:r},n.nextCallback=null,n}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var s=n.prototype;return s.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==h&&o!==d&&(t=h):o!==h&&o!==d||(t=u)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,o,n=this.props.timeout;return e=t=o=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,o=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:o}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var o=i.default.findDOMNode(this);t===h?this.performEnter(o,e):this.performExit(o)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},s.performEnter=function(e,t){var o=this,n=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||n?(this.props.onEnter(e,r),this.safeSetState({status:h},(function(){o.props.onEntering(e,r),o.onTransitionEnd(e,s,(function(){o.safeSetState({status:d},(function(){o.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){o.props.onEntered(e)}))},s.performExit=function(e){var t=this,o=this.props.exit,n=this.getTimeouts();o?(this.props.onExit(e),this.safeSetState({status:u},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(n){o&&(o=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(e,t,o){this.setNextCallback(o);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,o=t.children,n=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof o)return o(e,n);var i=r.default.Children.only(o);return r.default.cloneElement(i,n)},n}(r.default.Component);function f(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,s.polyfill)(p);t.ZP=m},4726:(e,t,o)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=o(5697))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6115:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},670:e=>{e.exports=function(){}},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},8149:(e,t,o)=>{e.exports=o(3285)},3562:(e,t,o)=>{e.exports=o(7965)},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{o.r(n),o.d(n,{CHANGES_BAR_MIN_WIDTH:()=>l.QW,CHANGES_BAR_RIGHT_MARGIN:()=>l.SZ,CHANGES_ZONE_MIN_WIDTH:()=>l.v1,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>l.Oi,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>l.Y8,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>l.LG,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>l.eq,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>l.m8,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>l.q1,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>l.jg,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>l.B8,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>l.j_,COMMIT_NODE_MIN_ALPHA:()=>l.l3,COMMIT_SHA_ZONE_MIN_WIDTH:()=>l.xI,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>l.lG,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>l.Wu,COMMIT_ZONE_EDGE_ARC_PADDING:()=>l.NP,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>l.O5,COMMIT_ZONE_MARGIN_BOTTOM:()=>l.$s,COMMIT_ZONE_MARGIN_TOP:()=>l.An,COMMIT_ZONE_ROW_HEIGHT:()=>l.at,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>l.P3,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>l.jn,CommitDateTimeSources:()=>r.Gu,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>l.iq,DEFAULT_COMMIT_SHA_LENGTH:()=>l.ai,DEFAULT_WORKDIR_STATS:()=>l.OR,DndComponent:()=>e.Z,GRAPH_HEADER_ROW_HEIGHT:()=>l.rl,GRAPH_ROW_HEIGHT:()=>l.$0,GRAPH_ROW_INNER_HEIGHT:()=>l.cZ,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>l.qG,GRAPH_SCROLL_MARKER_LANES:()=>l.dF,GraphColumnMode:()=>l.Um,GraphMarkerShape:()=>l.RG,HEADER_ROW_HEIGHT:()=>l.ze,HEADER_ROW_MARGIN_BOTTOM:()=>l.wi,INLINE_SUMMARY_MARGIN_LEFT:()=>l.aV,LeftPanelToGraphMarginGap:()=>l.mu,OPACITY_FACTOR_BY_THEME:()=>l.X9,REF_NODE_ICON_MARGIN:()=>l.am,REF_NODE_ICON_SPACING:()=>l.B,REF_NODE_ICON_WIDTH:()=>l.Rg,REF_NODE_OUTER_SPACING:()=>l.Vh,REF_ZONE_MARGIN_LEFT:()=>l.yv,REF_ZONE_MARGIN_RIGHT:()=>l.PB,REF_ZONE_MIN_WIDTH:()=>l.wy,REF_ZONE_SHOW_ICON_WIDTH:()=>l.mt,REF_ZONE_TEXT_HEIGHT:()=>l.pj,ResizableHandleCorrection:()=>l.b4,SCROLL_TO_ALIGNMENT_AUTO:()=>l.os,SCROLL_TO_ALIGNMENT_CENTER:()=>l.MQ,TIMESTAMP_FORMAT_DATE_TIME:()=>l.It,TINY_FILES_READOUT_FONT_SIZE:()=>l.wd,TINY_FILES_READOUT_RIGHT_MARGIN:()=>l.IX,TINY_ICON_RIGHT_MARGIN:()=>l.VB,TINY_ICON_SIZE:()=>l.dH,allMetadataTypes:()=>c.AI,changesZone:()=>l.WD,commitAuthorZone:()=>l.GF,commitDateTimeZone:()=>l.PL,commitMessageZone:()=>l.KE,commitNodeType:()=>r.o$,commitShaZone:()=>l.av,commitZone:()=>l.Wm,default:()=>f,getHostingServiceName:()=>h.y,graphMarkerMetadata:()=>l.Qh,graphMarkerShapeMetadata:()=>l.d_,graphZoneMetaData:()=>l.qi,lookbackLimitByPeriod:()=>l.YJ,mergeConflictNodeType:()=>r.S7,mergeNodeType:()=>r.lH,numGraphColumnsDefault:()=>l.uK,pullRequestMetadataType:()=>c.mQ,refTypes:()=>d.V,refZone:()=>l.jZ,stashNodeType:()=>r.kP,timelineMsgRowRenderId:()=>l.Gn,unsupportedRebaseWarningNodeType:()=>r.br,upstreamMetadataType:()=>c.uq,workDirType:()=>r.ch});var e=o(9915),t=o(1541),r=o(827),i=o(2149),s={};for(const e in i)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(s[e]=()=>i[e]);o.d(n,s);var a=o(8289);s={};for(const e in a)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(s[e]=()=>a[e]);o.d(n,s);var l=o(3308),c=o(9453),h=o(7334),d=o(8649),u=o(664);s={};for(const e in u)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refTypes"].indexOf(e)<0&&(s[e]=()=>u[e]);o.d(n,s);var p=o(6756);s={};for(const e in p)["default","DndComponent","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refTypes"].indexOf(e)<0&&(s[e]=()=>p[e]);o.d(n,s);var f=t.Z})(),module.exports=n})();
|