@gitkraken/gitkraken-components 7.2.0 → 8.0.0

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={2989: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(2989),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,S=f?r:r[t]||(r[t]={}),w=S[l],C=f?n:m?n[t]:(n[t]||{})[l];for(h in f&&(o=t),o)(d=!p&&C&&void 0!==C[h])&&a(S,h)||(u=d?C[h]:o[h],S[h]=f&&"function"!=typeof C[h]?o[h]:v&&d?i(u,n):y&&C[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&&((S.virtual||(S.virtual={}))[h]=u,e&c.R&&w&&!w[h]&&s(w,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},2584:(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(2584)("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 S(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function w(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,C,b,_,R,T,x,E,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,z=null,k=t||{};void 0===k.moves&&(k.moves=p),void 0===k.accepts&&(k.accepts=p),void 0===k.invalid&&(k.invalid=function(){return!1}),void 0===k.containers&&(k.containers=e||[]),void 0===k.isContainer&&(k.isContainer=u),void 0===k.copy&&(k.copy=!1),void 0===k.copySortSource&&(k.copySortSource=!1),void 0===k.revertOnSpill&&(k.revertOnSpill=!1),void 0===k.removeOnSpill&&(k.removeOnSpill=!1),void 0===k.direction&&(k.direction="vertical"),void 0===k.ignoreInputTextSelection&&(k.ignoreInputTextSelection=!0),void 0===k.mirrorContainer&&(k.mirrorContainer=s.body);var A=n({containers:k.containers,start:function(e){var t=B(e);t&&F(t)},end:j,cancel:Y,remove:V,destroy:function(){N(!0),Z({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===k.removeOnSpill&&A.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){A.dragging&&i.add(e,"gu-hide")})),N(),A;function G(e){return-1!==A.containers.indexOf(e)||k.isContainer(e)}function N(e){var t=e?"remove":"add";l(a,t,"mousedown",L),l(a,t,"mouseup",Z)}function H(e){l(a,e?"remove":"add","mousemove",W)}function P(e){var t=e?"remove":"add";r[t](a,"selectstart",D),r[t](a,"click",D)}function D(e){I&&e.preventDefault()}function L(e){if(R=e.clientX,T=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=B(t);o&&(I=o,H(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function W(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==R||void 0===e.clientY||e.clientY!==T){if(k.ignoreInputTextSelection){var t=w("clientX",e),n=w("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;H(!0),P(),j(),F(r);var d,u={left:(d=C.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};b=w("pageX",e)-u.left,_=w("pageY",e)-u.top,i.add(O||C,"gu-transit"),function(){if(o)return;var e=C.getBoundingClientRect();(o=C.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),k.mirrorContainer.appendChild(o),l(a,"add","mousemove",Q),i.add(k.mirrorContainer,"gu-unselectable"),A.emit("cloned",o,C,"mirror")}(),Q(e)}}else Z({})}function B(e){if(!(A.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));){if(k.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!k.invalid(e,t))if(k.moves(e,n,t,S(e)))return{item:e,source:n}}}function F(e){var t,o;t=e.item,o=e.source,("boolean"==typeof k.copy?k.copy:k.copy(t,o))&&(O=e.item.cloneNode(!0),A.emit("cloned",O,e.item,"copy")),y=e.source,C=e.item,x=E=S(e.item),A.dragging=!0,A.emit("drag",C,y)}function j(){if(A.dragging){var e=O||C;$(e,g(e))}}function U(){I=!1,H(!0),P(!0)}function Z(e){if(U(),A.dragging){var t=O||C,n=w("clientX",e),r=w("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&k.copySortSource||!O||i!==y)?$(t,i):k.removeOnSpill?V():Y()}}function $(e,t){var o=g(e);O&&k.copySortSource&&t===y&&o.removeChild(C),K(t)?A.emit("cancel",e,y,y):A.emit("drop",e,t,y,E),q()}function V(){if(A.dragging){var e=O||C,t=g(e);t&&t.removeChild(e),A.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(A.dragging){var t=arguments.length>0?e:k.revertOnSpill,o=O||C,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,x)),r||t?A.emit("cancel",o,y,y):A.emit("drop",o,n,y,E),q()}}function q(){var e=O||C;U(),o&&(i.rm(k.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),A.dragging=!1,z&&A.emit("out",e,z,y),A.emit("dragend",e),y=C=O=x=E=M=z=null}function K(e,t){var n;return n=void 0!==t?t:o?E:S(O||C),e===y&&n===x}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===G(n))return!1;var r=J(n,e),i=ee(n,r,t,o);return!!K(n,i)||k.accepts(C,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=w("clientX",e),n=w("clientY",e),r=t-b,i=n-_;o.style.left=r+"px",o.style.top=i+"px";var s=O||C,a=d(o,t,n),l=X(a,t,n),c=null!==l&&l!==z;(c||null===l)&&(z&&f("out"),z=l,c&&f("over"));var h=g(s);if(l!==y||!O||k.copySortSource){var u,p=J(l,a);if(null!==p)u=ee(l,p,t,n);else{if(!0!==k.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=x,l=y}(null===u&&c||u!==s&&u!==S(s))&&(E=u,l.insertBefore(s,u),A.emit("shadow",s,l,y))}else h&&h.removeChild(s)}function f(e){A.emit(e,s,z,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"===k.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?S(t):t}}}},693:(e,t,o)=>{o.d(t,{Z:()=>sa});var n={};o.r(n),o.d(n,{types:()=>us});var r,i=o(4184),s=o.n(i),a=o(6689),l=o.n(a),c=o(5697),h=o.n(c),d=o(3524),u=o.n(d),p=o(9590),f=o.n(p),m=o(7418),g=o.n(m),v="bodyAttributes",y="htmlAttributes",S="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},C=(Object.keys(w).map((function(e){return w[e]})),"charset"),b="cssText",_="href",R="http-equiv",T="innerHTML",x="itemprop",E="name",O="property",M="rel",I="src",z="target",k={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},A="defaultTitle",G="defer",N="encodeSpecialCharacters",H="onChangeClientState",P="titleTemplate",D=Object.keys(k).reduce((function(e,t){return e[k[t]]=t,e}),{}),L=[w.NOSCRIPT,w.SCRIPT,w.STYLE],W="data-react-helmet",B="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},F=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},j=function(){function e(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,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),U=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},Z=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},$=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Y=function(e){var t=J(e,w.TITLE),o=J(e,P);if(o&&t)return o.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=J(e,A);return t||n||void 0},q=function(e){return J(e,H)||function(){}},K=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return U({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,o){if(!t.length)for(var n=Object.keys(o),r=0;r<n.length;r++){var i=n[r].toLowerCase();if(-1!==e.indexOf(i)&&o[i])return t.concat(o)}return t}),[])},Q=function(e,t,o){var n={};return o.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,o){var r={};o.filter((function(e){for(var o=void 0,i=Object.keys(e),s=0;s<i.length;s++){var a=i[s],l=a.toLowerCase();-1===t.indexOf(l)||o===M&&"canonical"===e[o].toLowerCase()||l===M&&"stylesheet"===e[l].toLowerCase()||(o=l),-1===t.indexOf(a)||a!==T&&a!==b&&a!==x||(o=a)}if(!o||!e[o])return!1;var c=e[o].toLowerCase();return n[o]||(n[o]={}),r[o]||(r[o]={}),!n[o][c]&&(r[o][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),s=0;s<i.length;s++){var a=i[s],l=g()({},n[a],r[a]);n[a]=l}return e}),[]).reverse()},J=function(e,t){for(var o=e.length-1;o>=0;o--){var n=e[o];if(n.hasOwnProperty(t))return n[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},oe="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:o.g.requestAnimationFrame||ee,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:o.g.cancelAnimationFrame||te,re=function(e){return console&&"function"==typeof console.warn&&void 0},ie=null,se=function(e,t){var o=e.baseTag,n=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,a=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,h=e.styleTags,d=e.title,u=e.titleAttributes;ce(w.BODY,n),ce(w.HTML,r),le(d,u);var p={baseTag:he(w.BASE,o),linkTags:he(w.LINK,i),metaTags:he(w.META,s),noscriptTags:he(w.NOSCRIPT,a),scriptTags:he(w.SCRIPT,c),styleTags:he(w.STYLE,h)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],o=t.newTags,n=t.oldTags;o.length&&(f[e]=o),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,f,m)},ae=function(e){return Array.isArray(e)?e.join(""):e},le=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ce(w.TITLE,t)},ce=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(W),r=n?n.split(","):[],i=[].concat(r),s=Object.keys(t),a=0;a<s.length;a++){var l=s[a],c=t[l]||"";o.getAttribute(l)!==c&&o.setAttribute(l,c),-1===r.indexOf(l)&&r.push(l);var h=i.indexOf(l);-1!==h&&i.splice(h,1)}for(var d=i.length-1;d>=0;d--)o.removeAttribute(i[d]);r.length===i.length?o.removeAttribute(W):o.getAttribute(W)!==s.join(",")&&o.setAttribute(W,s.join(","))}},he=function(e,t){var o=document.head||document.querySelector(w.HEAD),n=o.querySelectorAll(e+"["+W+"]"),r=Array.prototype.slice.call(n),i=[],s=void 0;return t&&t.length&&t.forEach((function(t){var o=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===T)o.innerHTML=t.innerHTML;else if(n===b)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var a=void 0===t[n]?"":t[n];o.setAttribute(n,a)}o.setAttribute(W,"true"),r.some((function(e,t){return s=t,o.isEqualNode(e)}))?r.splice(s,1):i.push(o)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return o.appendChild(e)})),{oldTags:r,newTags:i}},de=function(e){return Object.keys(e).reduce((function(t,o){var n=void 0!==e[o]?o+'="'+e[o]+'"':""+o;return t?t+" "+n:n}),"")},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[k[o]||o]=e[o],t}),t)},pe=function(e,t,o){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(n={key:e})[W]=!0,r=ue(o,n),[l().createElement(w.TITLE,r,e)];var e,o,n,r},toString:function(){return function(e,t,o,n){var r=de(o),i=ae(t);return r?"<"+e+" "+W+'="true" '+r+">"+V(i,n)+"</"+e+">":"<"+e+" "+W+'="true">'+V(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case v:case y:return{toComponent:function(){return ue(t)},toString:function(){return de(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var n,r=((n={key:o})[W]=!0,n);return Object.keys(t).forEach((function(e){var o=k[e]||e;if(o===T||o===b){var n=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:n}}else r[o]=t[e]})),l().createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,o){return t.reduce((function(t,n){var r=Object.keys(n).filter((function(e){return!(e===T||e===b)})).reduce((function(e,t){var r=void 0===n[t]?t:t+'="'+V(n[t],o)+'"';return e?e+" "+r:r}),""),i=n.innerHTML||n.cssText||"",s=-1===L.indexOf(e);return t+"<"+e+" "+W+'="true" '+r+(s?"/>":">"+i+"</"+e+">")}),"")}(e,t,o)}}}},fe=function(e){var t=e.baseTag,o=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,a=e.noscriptTags,l=e.scriptTags,c=e.styleTags,h=e.title,d=void 0===h?"":h,u=e.titleAttributes;return{base:pe(w.BASE,t,n),bodyAttributes:pe(v,o,n),htmlAttributes:pe(y,r,n),link:pe(w.LINK,i,n),meta:pe(w.META,s,n),noscript:pe(w.NOSCRIPT,a,n),script:pe(w.SCRIPT,l,n),style:pe(w.STYLE,c,n),title:pe(w.TITLE,{title:d,titleAttributes:u},n)}},me=function(e){var t,o;return o=t=function(t){function o(){return F(this,o),$(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,t),o.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},o.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(e){var t,o=e.child,n=e.arrayTypeChildren,r=e.newChildProps,i=e.nestedChildren;return U({},n,((t={})[o.type]=[].concat(n[o.type]||[],[U({},r,this.mapNestedChildrenToProps(o,i))]),t))},o.prototype.mapObjectTypeChildren=function(e){var t,o,n=e.child,r=e.newProps,i=e.newChildProps,s=e.nestedChildren;switch(n.type){case w.TITLE:return U({},r,((t={})[n.type]=s,t.titleAttributes=U({},i),t));case w.BODY:return U({},r,{bodyAttributes:U({},i)});case w.HTML:return U({},r,{htmlAttributes:U({},i)})}return U({},r,((o={})[n.type]=U({},i),o))},o.prototype.mapArrayTypeChildrenToProps=function(e,t){var o=U({},t);return Object.keys(e).forEach((function(t){var n;o=U({},o,((n={})[t]=e[t],n))})),o},o.prototype.warnOnInvalidChildren=function(e,t){return!0},o.prototype.mapChildrenToProps=function(e,t){var o=this,n={};return l().Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[D[o]||o]=e[o],t}),t)}(Z(r,["children"]));switch(o.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:n=o.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=o.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},o.prototype.render=function(){var t=this.props,o=t.children,n=Z(t,["children"]),r=U({},n);return o&&(r=this.mapChildrenToProps(o,r)),l().createElement(e,r)},j(o,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),o}(l().Component),t.propTypes={base:h().object,bodyAttributes:h().object,children:h().oneOfType([h().arrayOf(h().node),h().node]),defaultTitle:h().string,defer:h().bool,encodeSpecialCharacters:h().bool,htmlAttributes:h().object,link:h().arrayOf(h().object),meta:h().arrayOf(h().object),noscript:h().arrayOf(h().object),onChangeClientState:h().func,script:h().arrayOf(h().object),style:h().arrayOf(h().object),title:h().string,titleAttributes:h().object,titleTemplate:h().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=fe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o}(u()((function(e){return{baseTag:X([_,z],e),bodyAttributes:K(v,e),defer:J(e,G),encode:J(e,N),htmlAttributes:K(y,e),linkTags:Q(w.LINK,[M,_],e),metaTags:Q(w.META,[E,C,R,O,x],e),noscriptTags:Q(w.NOSCRIPT,[T],e),onChangeClientState:q(e),scriptTags:Q(w.SCRIPT,[I,T],e),styleTags:Q(w.STYLE,[b],e),title:Y(e),titleAttributes:K(S,e)}}),(function(e){ie&&ne(ie),e.defer?ie=oe((function(){se(e,(function(){ie=null}))})):(se(e),ie=null)}),fe)((function(){return null})));me.renderStatic=me.rewind;const ge=me;function ve(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 ye(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 Se(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=ye(r,e,t+1/3),s=ye(r,e,t),a=ye(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 we=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function Ce(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*ve(e.charCodeAt(1))+ve(e.charCodeAt(2)),g:16*ve(e.charCodeAt(3))+ve(e.charCodeAt(4)),b:16*ve(e.charCodeAt(5))+ve(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*ve(e.charCodeAt(1))+ve(e.charCodeAt(2)),g:16*ve(e.charCodeAt(3))+ve(e.charCodeAt(4)),b:16*ve(e.charCodeAt(5))+ve(e.charCodeAt(6)),a:(16*ve(e.charCodeAt(7))+ve(e.charCodeAt(8)))/255};if(4===t){const t=ve(e.charCodeAt(1)),o=ve(e.charCodeAt(2)),n=ve(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=ve(e.charCodeAt(1)),o=ve(e.charCodeAt(2)),n=ve(e.charCodeAt(3)),r=ve(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=we.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?Se({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 be=e=>{return"hsla"===(t=Ce(e)).type&&(t=Se(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};var _e=o(827),Re=o(3308);const Te=e=>!(e===_e.o$||e===_e.lH),xe=/^.*(:?\n){0,2}/m;const Ee=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;const Oe={"--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"};function Me(e){return`--column-${e}-color`}function Ie(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{...Oe,...e}}(t)}const ze=/(?<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,ke=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,Ae=new Map;let Ge;const Ne=["th","st","nd","rd"];function He(e){const t=e%100;return`${e}${Ne[(t-20)%10]??Ne[t]??Ne[0]}`}function Pe(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=Ae.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=ke.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(ze))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?Ge:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&Ae.set(r,i)}if(null==t||ke.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=Ae.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?Ge:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&Ae.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(ze,((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 He(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""}))}function De(e,t,o){return(e=e<=o?e:o)>=t?e:t}const Le={HEAD:"head",REMOTE:"remote",TAG:"tag"};var We=o(9453);const Be=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Fe(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function je(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)}}function Ue(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,We.AI),null)}function Ze(e,t){if(t.id)return t.id;const o=t.owner||"";return e===Le.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function $e(e){return Ze(e.refType,e)}function Ve(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 Ye(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 qe(e,t){let o=0;for(const n of e)t&&n.type===t||(o+=n.currentWidth);return o}const Ke=(e,t)=>e===t[t.length-1].type;function Xe(e,t,o){return De(o,e.minimumWidth||0,e.maximumWidth&&!Ke(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function Qe(e,t){return t.find((({type:t})=>t===e))}function Je(e,t){return t.findIndex((({type:t})=>t===e))}function et(e,t,o){let n=0,r=0;const i=Je(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 tt(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function ot(e){return!!e&&Object.values(e).some((e=>e>0))}function nt(e){return 1===Object.keys(e).length}function rt(e,t){return!0===e[t]&&nt(e)}function it(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:Le.HEAD}))):[],s=n?n.map((e=>({...e,refType:Le.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:Le.REMOTE}))):[],...s]}function st(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===Le.HEAD?e.unshift(r):e.push(r),n=!0;break}n||t.push([r])}return t}class at{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=Qe(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?it(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?st(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e){return function(e,t){return Qe(e,t)?.currentWidth||Re.qi[e].minimumWidth}(e,this.props.graphZones)}isDateTimeZoneActive(){return Boolean(this.getActiveGraphZone(Re.PL))}isFirstRow(e){return 0===e}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 Ke(e,this.props.graphZones)}getSelectedRefGroupByName(){if(nt(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return st(it(t,this.props.showRemoteNamesOnRefs))}}return[]}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===Le.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===Le.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===Le.REMOTE&&t.owner===e.owner))))&&!l.some((e=>e.name===n&&o.some((e=>e.refType===Le.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)&&rt(this.props.isSelectedBySha,t)}hasTimeline(e){return Boolean(this.props.processedRows[e]?.timeLineEntry)&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return tt(e)}}const lt={"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":"Add/Remove Columns","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","Ref-Current":"current","Ref-Local":"local","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",Hide:"Hide",Show:"Show"};const ct={};function ht(e){let t=ct[e];return t||(t=Re.Cc+e*Re.yW+Re.yW/2,ct[e]=t,t)}const dt={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 ut(e,t){let o="";for(const[e,n]of Object.entries(dt)){const r=t[n];r&&(o+=` ${e}="${r}"`)}return`<${e}${o} />`}function pt(e){return ut("line",e)}function ft(e,t){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:Re.F0,strokeDasharray:Te(e)?2:0,stroke:t}}function mt(e,t,o){return`${e}_${t}_${o||"+"}`}function gt(e,t){return`${e}_${t||"+"}`}const vt={0:1,90:0,180:-1,270:0},yt={0:0,90:1,180:0,270:-1},St=Re.O5-Re.NP,wt=` A ${St} ${St} 0 0 0 `;function Ct(e,t,o){const n=vt[o],r=yt[o];return{x:e-Re.O5*n,xOffset:-n*Re.NP,y:t+Re.O5*r,yOffset:r*Re.NP}}const bt={};var _t=function(e,t,o,n,r,i){const s=ft(n,e);return s.d=function(e,t,o,n){const r=`${e}_${t}_${o}_${n}`;let i=bt[r];if(i)return i;const s=Ct(e,t,n),a=Ct(e,t,o);return i=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${wt}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,bt[r]=i,i}(r,i,o,t),ut("path",s)};let Rt={};function Tt(e,t,o,n){const r=mt(e,t,o);let i=Rt[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ft(o,e);return n.x1=ht(t),n.x2=ht(t),n.y1=0,n.y2=Re.at/2,pt(n)}(n[e],t,o):function(e,t,o,n){const r=ft(n,e),i={...r};i.x1=ht(o),i.x2=ht(o),i.y1=0,i.y2=Re.An;const s={...r};return s.x1=ht(o<t?o:o-1)+Re.yW/2,s.x2=ht(t),s.y1=Re.at/2,s.y2=Re.at/2,`<g>${pt(i)}${_t(e,t>o?0:90,t>o?90:180,n,ht(o)+(t<o?-Re.yW/2:Re.yW/2),Re.An)}${pt(s)}</g>`}(n[e],t,e,o),Rt[r]=i,i)}let xt={};function Et(e,t,o){const n=gt(e,t);let r=xt[n];if(r)return r;const i=ht(e),s=ft(t,o[e]);return s.x1=i,s.x2=i,s.y1=0,s.y2=Re.at,r=pt(s),xt[n]=r,r}let Ot={};function Mt(e,t,o,n){const r=mt(e,t,o);let i=Ot[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ft(o,e);return n.x1=ht(t),n.x2=ht(t),n.y1=Re.at/2,n.y2=Re.at,pt(n)}(n[e],t,o):function(e,t,o,n){const r=ft(n,e),i={...r};i.x1=ht(o),i.x2=ht(o),i.y1=Re.at-Re.$s,i.y2=Re.at;const s={...r};return s.x1=ht(o<t?o:o-1)+Re.yW/2,s.x2=ht(t),s.y1=Re.at/2,s.y2=Re.at/2,`<g>${_t(e,t<o?180:270,t<o?270:0,n,ht(o)+(t<o?-Re.yW/2:Re.yW/2),Re.at-Re.$s)}${pt(i)}${pt(s)}</g>`}(n[e],t,e,o),Ot[r]=i,i)}let It={};function zt(e,t,o,n){const r=function(e,t,o){let n="";for(let r=0;r<=t;r++){const{passThrough:t,starting:i,ending:s}=e[r]??{};n=`${n}_${mt(r,o,i?.type)}_${mt(r,o,s?.type)}_${gt(r,t?.type)}`}return n}(e,t,o);let i=It[r];if(i)return i;let s="";for(let r=0;r<=t;r+=1){const t=e[r];if(!t)continue;const{passThrough:i,starting:a,ending:l}=t;s+=a?Mt(r,o,a.type,n):"",s+=i?Et(r,i.type,n):"",s+=l?Tt(r,o,l.type,n):""}return i=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${s}</g></svg>')`,It[r]=i,i}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e){return At="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},At(e)}function Gt(e){var t=function(e,t){if("object"!==At(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===At(t)?t:String(t)}function Nt(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,Gt(n.key),n)}}function Ht(e,t,o){return t&&Nt(e.prototype,t),o&&Nt(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dt(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}function Lt(e){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(e)}function Wt(e,t){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wt(e,t)}function Bt(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&&Wt(e,t)}function Ft(e,t,o){return(t=Gt(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var jt=o(6871);function Ut(){return Ut=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},Ut.apply(this,arguments)}function Zt(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=Zt(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const $t=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=Zt(e))&&(n&&(n+=" "),n+=t);return n};function Vt(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 Yt(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 qt=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;kt(this,e),Ft(this,"_cellSizeAndPositionData",{}),Ft(this,"_lastMeasuredIndex",-1),Ft(this,"_lastBatchedIndex",-1),Ft(this,"_cellCount",void 0),Ft(this,"_cellSizeGetter",void 0),Ft(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return Ht(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}(),Kt=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Xt=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?Kt():o,r=Yt(t,["maxScrollSize"]);kt(this,e),Ft(this,"_cellSizeAndPositionManager",void 0),Ft(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new qt(r),this._maxScrollSize=n}return Ht(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 Qt(){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 Jt=-1,eo=1;function to(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 oo=!("undefined"==typeof window||!window.document||!window.document.createElement);var no,ro;function io(e){if((!no&&0!==no||e)&&oo){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),no=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return no}var so,ao,lo=(ro="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||ro.webkitRequestAnimationFrame||ro.mozRequestAnimationFrame||ro.oRequestAnimationFrame||ro.msRequestAnimationFrame||function(e){return ro.setTimeout(e,1e3/60)},co=ro.cancelAnimationFrame||ro.webkitCancelAnimationFrame||ro.mozCancelAnimationFrame||ro.oCancelAnimationFrame||ro.msCancelAnimationFrame||function(e){ro.clearTimeout(e)},ho=lo,uo=co,po=function(e){return uo(e.id)},fo=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:ho((function r(){Date.now()-o>=t?e.call():n.id=ho(r)}))};return n};function mo(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 go(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?mo(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):mo(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var vo="observed",yo="requested",So=(ao=so=function(e){function t(e){var o;kt(this,t),Ft(Pt(o=Dt(this,Lt(t).call(this,e))),"_onGridRenderedMemoizer",Qt()),Ft(Pt(o),"_onScrollMemoizer",Qt(!1)),Ft(Pt(o),"_deferredInvalidateColumnIndex",null),Ft(Pt(o),"_deferredInvalidateRowIndex",null),Ft(Pt(o),"_recomputeScrollLeftFlag",!1),Ft(Pt(o),"_recomputeScrollTopFlag",!1),Ft(Pt(o),"_horizontalScrollBarSize",0),Ft(Pt(o),"_verticalScrollBarSize",0),Ft(Pt(o),"_scrollbarPresenceChanged",!1),Ft(Pt(o),"_scrollingContainer",void 0),Ft(Pt(o),"_childrenToDisplay",void 0),Ft(Pt(o),"_columnStartIndex",void 0),Ft(Pt(o),"_columnStopIndex",void 0),Ft(Pt(o),"_rowStartIndex",void 0),Ft(Pt(o),"_rowStopIndex",void 0),Ft(Pt(o),"_renderedColumnStartIndex",0),Ft(Pt(o),"_renderedColumnStopIndex",0),Ft(Pt(o),"_renderedRowStartIndex",0),Ft(Pt(o),"_renderedRowStopIndex",0),Ft(Pt(o),"_initialScrollTop",void 0),Ft(Pt(o),"_initialScrollLeft",void 0),Ft(Pt(o),"_disablePointerEventsTimeoutId",void 0),Ft(Pt(o),"_styleCache",{}),Ft(Pt(o),"_cellCache",{}),Ft(Pt(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),Ft(Pt(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}})})),Ft(Pt(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),Ft(Pt(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),Ft(Pt(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new Xt({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new Xt({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:eo,scrollDirectionVertical:eo,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 Bt(t,e),Ht(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=go({},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?eo:Jt:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?eo:Jt:this.state.scrollDirectionVertical,scrollPositionChangeReason:vo};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?eo:Jt:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?eo:Jt:this.state.scrollDirectionVertical,scrollPositionChangeReason:yo};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&&(this.state.scrollDirectionHorizontal===eo?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(this.state.scrollDirectionVertical===eo?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(go({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(go({},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=go({},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===yo&&(!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 S=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):to({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:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):to({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:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var w=v.rowSizeAndPositionManager.getTotalSize(),C=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:C,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&po(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,s=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,S=this._isScrolling(),w={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 C=v.columnSizeAndPositionManager.getTotalSize(),b=v.rowSizeAndPositionManager.getTotalSize(),_=b>c?v.scrollbarSize:0,R=C>m?v.scrollbarSize:0;R===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),w.overflowX=C+_<=m?"hidden":"auto",w.overflowY=b+R<=c?"hidden":"auto";var T=this._childrenToDisplay,x=0===T.length&&c>0&&m>0;return a.createElement("div",Ut({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:$t("ReactVirtualized__Grid",r),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:go({},w,{},p),tabIndex:f}),T.length>0&&a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:go({width:t?"auto":C,height:b,maxWidth:C,maxHeight:b,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"},l)},T),x&&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 S=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),C=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),b=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var _=l({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),R=l({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),T=_.overscanStartIndex,x=_.overscanStopIndex,E=R.overscanStartIndex,O=R.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=E;M<=O;M++)if(!i.has(M,0)){T=0,x=r-1;break}if(!i.hasFixedWidth())for(var I=T;I<=x;I++)if(!i.has(0,I)){E=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:x,deferredMeasurementCache:i,horizontalOffsetAdjustment:C,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:b,visibleColumnIndices:S,visibleRowIndices:w}),this._columnStartIndex=T,this._columnStopIndex=x,this._rowStartIndex=E,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&po(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=fo(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}),Vt({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)}}),Vt({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,go({},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:yo};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?eo:Jt,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?eo:Jt,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}(a.PureComponent),Ft(so,"propTypes",null),ao);Ft(So,"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=[],S=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),w=!l&&!S,C=u;C<=p;C++)for(var b=d.getSizeAndPositionOfCell(C),_=r;_<=i;_++){var R=n.getSizeAndPositionOfCell(_),T=_>=g.start&&_<=g.stop&&C>=v.start&&C<=v.stop,x="".concat(C,"-").concat(_),E=void 0;w&&f[x]?E=f[x]:s&&!s.has(C,_)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:b.size,left:R.offset+a,position:"absolute",top:b.offset+m,width:R.size},f[x]=E);var O={columnIndex:_,isScrolling:l,isVisible:T,key:x,parent:h,rowIndex:C,style:E},M=void 0;!c&&!l||a||m?M=o(O):(t[x]||(t[x]=o(O)),M=t[x]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:io,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 n===eo?{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,jt.polyfill)(So);const wo=So;var Co=1;function bo(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),n===Co?{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 _o,Ro;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}var xo=(Ro=_o=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Ft(Pt(o),"_columnStartIndex",0),Ft(Pt(o),"_columnStopIndex",0),Ft(Pt(o),"_rowStartIndex",0),Ft(Pt(o),"_rowStopIndex",0),Ft(Pt(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}))}})),Ft(Pt(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 Bt(t,e),Ht(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 a.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?To(o,!0).forEach((function(t){Ft(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}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(a.PureComponent),Ft(_o,"propTypes",null),Ro);Ft(xo,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,jt.polyfill)(xo);function Eo(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 Oo,Mo;function Io(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 zo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Io(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Io(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ko=(Mo=Oo=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),Ft(Pt(o),"_parentNode",void 0),Ft(Pt(o),"_autoSizer",void 0),Ft(Pt(o),"_window",void 0),Ft(Pt(o),"_detectElementResize",void 0),Ft(Pt(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}))}})),Ft(Pt(o),"_setRef",(function(e){o._autoSizer=e})),o}return Bt(t,e),Ht(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=Eo(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,s=this.state,l=s.height,c=s.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=l),r||(h.width=0,d.width=c),a.createElement("div",{className:o,ref:this._setRef,style:zo({},h,{},i)},t(d))}}]),t}(a.Component),Ft(Oo,"propTypes",null),Mo);Ft(ko,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Ao,Go,No=o(6405),Ho=o.n(No),Po=(Go=Ao=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"_child",void 0),Ft(Pt(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}))})),Ft(Pt(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return Bt(t,e),Ht(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,No.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}(a.PureComponent),Ft(Ao,"propTypes",null),Go);Ft(Po,"__internalCellMeasurerFlag",!1);function Do(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 Lo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Do(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Do(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Wo={OBSERVED:"observed",REQUESTED:"requested"},Bo=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Ft(Pt(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),Ft(Pt(o),"_onSectionRenderedMemoizer",Qt()),Ft(Pt(o),"_onScrollMemoizer",Qt(!1)),Ft(Pt(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),Ft(Pt(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ft(Pt(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)}})),Ft(Pt(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?Wo.OBSERVED:Wo.REQUESTED;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=io(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return Bt(t,e),Ht(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=io(),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===Wo.REQUESTED&&(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,s=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,S=v.width,w=Math.max(0,m-s),C=Math.max(0,g-d),b=Math.min(S,m+u+s),_=Math.min(y,g+i+d),R=i>0&&u>0?n.cellRenderers({height:_-C,isScrolling:f,width:b-w,x:w,y:C}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},x=y>i?this._scrollbarSize:0,E=S>u?this._scrollbarSize:0;return T.overflowX=S+x<=u?"hidden":"auto",T.overflowY=y+E<=i?"hidden":"auto",a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$t("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:Lo({},T,{},h),tabIndex:0},o>0&&a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:S,overflow:"hidden",pointerEvents:f?"none":"",width:S}},R),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:Wo.REQUESTED};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:Wo.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Wo.REQUESTED}}}]),t}(a.PureComponent);Ft(Bo,"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}),Bo.propTypes={},(0,jt.polyfill)(Bo);const Fo=Bo;var jo=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;kt(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Ht(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}(),Uo=100,Zo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uo;kt(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Ht(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 jo({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 $o(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 Vo=function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(Pt(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(Pt(n)),n}return Bt(t,e),Ht(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=Ut({},this.props);return a.createElement(Fo,Ut({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 Zo(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=$o({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:r,targetIndex:o}),i=$o({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}(a.PureComponent);Ft(Vo,"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}))}}),Vo.propTypes={};(function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o)))._registerChild=n._registerChild.bind(Pt(n)),n}return Bt(t,e),Ht(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}(a.PureComponent)).propTypes={};function Yo(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 qo(e,t){if(e){if("string"==typeof e)return Yo(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)?Yo(e,t):void 0}}function Ko(e){return function(e){if(Array.isArray(e))return Yo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qo(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 Xo=function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o)))._loadMoreRowsMemoizer=Qt(),n._onRowsRendered=n._onRowsRendered.bind(Pt(n)),n._registerChild=n._registerChild.bind(Pt(n)),n}return Bt(t,e),Ht(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Qt(),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,Ko(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}(a.PureComponent);Ft(Xo,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Xo.propTypes={};var Qo,Jo,en=(Jo=Qo=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),Ft(Pt(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})})),Ft(Pt(o),"_setRef",(function(e){o.Grid=e})),Ft(Pt(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ft(Pt(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ft(Pt(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 Bt(t,e),Ht(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=$t("ReactVirtualized__List",t);return a.createElement(wo,Ut({},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}(a.PureComponent),Ft(Qo,"propTypes",null),Jo);function tn(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)||qo(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.")}()}Ft(en,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:bo,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const on={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)}};var nn=0,rn=1;function sn(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 an=sn.prototype;function ln(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 cn(e,t){var o=yn(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 hn(e,t){var o=e.intervals([]);o.push(t),cn(e,o)}function dn(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?nn:(o.splice(n,1),cn(e,o),rn)}function un(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 pn(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 fn(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function mn(e,t){return e-t}function gn(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function vn(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function yn(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(mn);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(gn),c.sort(vn),new sn(n,yn(r),yn(i),l,c)}function Sn(e){this.root=e}an.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},an.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)?hn(this,e):this.left.insert(e):this.left=yn([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?hn(this,e):this.right.insert(e):this.right=yn([e]);else{var o=on.ge(this.leftPoints,e,gn),n=on.ge(this.rightPoints,e,vn);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},an.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)?dn(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,rn):(i===rn&&(this.count-=1),i):nn;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?dn(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,rn):(i===rn&&(this.count-=1),i):nn;if(1===this.count)return this.leftPoints[0]===e?2:nn;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}ln(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ln(this,this.left):ln(this,this.right);return rn}for(r=on.ge(this.leftPoints,e,gn);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=on.ge(this.rightPoints,e,vn);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),rn}return nn},an.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return un(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return pn(this.rightPoints,e,t)}return fn(this.leftPoints,t)},an.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?un(this.leftPoints,t,o):e>this.mid?pn(this.rightPoints,e,o):fn(this.leftPoints,o)};var wn=Sn.prototype;wn.insert=function(e){this.root?this.root.insert(e):this.root=new sn(e[0],null,null,[e],[e])},wn.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==nn}return!1},wn.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},wn.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(wn,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(wn,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Cn,bn,_n=function(){function e(){var t;kt(this,e),Ft(this,"_columnSizeMap",{}),Ft(this,"_intervalTree",t&&0!==t.length?new Sn(yn(t)):new Sn(null)),Ft(this,"_leftMap",{})}return Ht(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=tn(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 Rn(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 Tn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rn(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rn(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var xn=(bn=Cn=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),Ft(Pt(o),"_debounceResetIsScrollingId",void 0),Ft(Pt(o),"_invalidateOnUpdateStartIndex",null),Ft(Pt(o),"_invalidateOnUpdateStopIndex",null),Ft(Pt(o),"_positionCache",new _n),Ft(Pt(o),"_startIndex",null),Ft(Pt(o),"_startIndexMemoized",null),Ft(Pt(o),"_stopIndex",null),Ft(Pt(o),"_stopIndexMemoized",null),Ft(Pt(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),Ft(Pt(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ft(Pt(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 Bt(t,e),Ht(t,[{key:"clearCellPositions",value:function(){this._positionCache=new _n,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 _n,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&&po(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,s=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,S=y.isScrolling,w=y.scrollTop,C=[],b=this._getEstimatedTotalHeight(),_=this._positionCache.shortestColumnSize,R=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-u),c+2*u,(function(o,n,r){var a;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),C.push(s({index:o,isScrolling:S,key:d(o),parent:t,style:(a={height:i.getHeight(o)},Ft(a,"ltr"===v?"left":"right",n),Ft(a,"position","absolute"),Ft(a,"top",r),Ft(a,"width",i.getWidth(o)),a)}))})),_<w+c+u&&R<r)for(var x=Math.min(r-R,Math.ceil((w+c+u-_)/i.defaultHeight*g/i.defaultWidth)),E=R;E<R+x;E++)e=E,C.push(s({index:E,isScrolling:S,key:d(E),parent:this,style:{width:i.getWidth(E)}}));return this._startIndex=T,this._stopIndex=e,a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$t("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:p,style:Tn({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:b<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},a.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:b,maxWidth:"100%",maxHeight:b,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"}},C))}},{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&&po(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=fo(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}(a.PureComponent),Ft(Cn,"propTypes",null),bn);function En(){}Ft(xn,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:En,onScroll:En,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,jt.polyfill)(xn);var On=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};kt(this,e),Ft(this,"_cellMeasurerCache",void 0),Ft(this,"_columnIndexOffset",void 0),Ft(this,"_rowIndexOffset",void 0),Ft(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),Ft(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 Ht(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 Mn(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 In(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Mn(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Mn(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var zn=20,kn=function(e){function t(e,o){var n;kt(this,t),Ft(Pt(n=Dt(this,Lt(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Ft(Pt(n),"_deferredInvalidateColumnIndex",null),Ft(Pt(n),"_deferredInvalidateRowIndex",null),Ft(Pt(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),Ft(Pt(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),Ft(Pt(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=Yt(e,["rowIndex"]),r=n.props,i=r.cellRenderer,s=r.fixedRowCount;return t===r.rowCount-s?a.createElement("div",{key:o.key,style:In({},o.style,{height:zn})}):i(In({},o,{parent:Pt(n),rowIndex:t+s}))})),Ft(Pt(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=Yt(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,a=i.fixedColumnCount,l=i.fixedRowCount;return s(In({},r,{columnIndex:t+a,parent:Pt(n),rowIndex:o+l}))})),Ft(Pt(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=Yt(e,["columnIndex"]),r=n.props,i=r.cellRenderer,s=r.columnCount,l=r.fixedColumnCount;return t===s-l?a.createElement("div",{key:o.key,style:In({},o.style,{width:zn})}):i(In({},o,{columnIndex:t+l,parent:Pt(n)}))})),Ft(Pt(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})),Ft(Pt(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)})),Ft(Pt(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})}})),Ft(Pt(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),Ft(Pt(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),Ft(Pt(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})),Ft(Pt(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),Ft(Pt(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var r=e.deferredMeasurementCache,i=e.fixedColumnCount,s=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),r&&(n._deferredMeasurementCacheBottomLeftGrid=s>0?new On({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:s}):r,n._deferredMeasurementCacheBottomRightGrid=i>0||s>0?new On({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:s}):r,n._deferredMeasurementCacheTopRightGrid=i>0?new On({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),n}return Bt(t,e),Ht(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=Yt(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,l=s.scrollLeft,c=s.scrollTop;return a.createElement("div",{style:this._containerOuterStyle},a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(In({},i,{onScroll:t,scrollLeft:l}))),a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(In({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(In({},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=In({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=In({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=In({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=In({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=In({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,s=this.state.showVerticalScrollbar;if(!o)return null;var l=s?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?h+d:h,p=a.createElement(wo,Ut({},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?a.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:In({},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,s=e.scrollToRow;return a.createElement(wo,Ut({},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:s-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?a.createElement(wo,Ut({},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,s=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;s&&(m=u+f,g=In({},this._topRightGridStyle,{left:0}));var v=a.createElement(wo,Ut({},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 s?a.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:In({},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}(a.PureComponent);Ft(kn,"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}),kn.propTypes={},(0,jt.polyfill)(kn);(function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(Pt(n)),n}return Bt(t,e),Ht(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}(a.PureComponent)).propTypes={};function An(e){var t=e.className,o=e.columns,n=e.style;return a.createElement("div",{className:t,role:"row",style:n},o)}An.propTypes=null;const Gn={ASC:"ASC",DESC:"DESC"};function Nn(e){var t=e.sortDirection,o=$t("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Gn.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Gn.DESC});return a.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Gn.ASC?a.createElement("path",{d:"M7 14l5-5 5 5z"}):a.createElement("path",{d:"M7 10l5 5 5-5z"}),a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Hn(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,s=[a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&s.push(a.createElement(Nn,{key:"SortIndicator",sortDirection:r})),s}function Pn(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(i||s||l||c||h)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:n,rowData:d})}),s&&(p.onDoubleClick=function(e){return s({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})})),a.createElement("div",Ut({},p,{className:t,key:r,role:"row",style:u}),o)}Nn.propTypes={},Hn.propTypes=null,Pn.propTypes=null;var Dn=function(e){function t(){return kt(this,t),Dt(this,Lt(t).apply(this,arguments))}return Bt(t,e),t}(a.Component);function Ln(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 Wn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ln(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ln(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Ft(Dn,"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:Gn.ASC,flexGrow:0,flexShrink:1,headerRenderer:Hn,style:{}}),Dn.propTypes={};var Bn=function(e){function t(e){var o;return kt(this,t),(o=Dt(this,Lt(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(Pt(o)),o._createRow=o._createRow.bind(Pt(o)),o._onScroll=o._onScroll.bind(Pt(o)),o._onSectionRendered=o._onSectionRendered.bind(Pt(o)),o._setRef=o._setRef.bind(Pt(o)),o}return Bt(t,e),Ht(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,No.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,s=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,S=r?h:h-l,w="function"==typeof p?p({index:-1}):p,C="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],a.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Wn({overflow:"hidden"},n)})),a.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":a.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:$t("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!r&&c({className:$t("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Wn({height:l,overflow:"hidden",paddingRight:y,width:v},C)}),a.createElement(wo,Ut({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:$t("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:S,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Wn({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,s=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:s}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return a.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:$t("ReactVirtualized__Table__rowColumn",u),key:"Row"+s+"-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,s=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=s.props,v=g.columnData,y=g.dataKey,S=g.defaultSortDirection,w=g.disableSort,C=g.headerRenderer,b=g.id,_=g.label,R=!w&&p,T=$t("ReactVirtualized__Table__headerColumn",h,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),x=this._getFlexStyleForColumn(s,Wn({},d,{},s.props.headerStyle)),E=C({columnData:v,dataKey:y,disableSort:w,label:_,sortBy:f,sortDirection:m});if(R||u){var O=f!==y?S:m===Gn.DESC?Gn.ASC:Gn.DESC,M=function(e){R&&p({defaultSortDirection:S,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};i=s.props["aria-label"]||_||y,r="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(r=m===Gn.ASC?"ascending":"descending"),a.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:b,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:x,tabIndex:n},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,s=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,S=this.state.scrollbarWidth,w="function"==typeof m?m({index:o}):m,C="function"==typeof y?y({index:o}):y,b=g({index:o}),_=a.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:b,rowIndex:o,scrollbarWidth:S})})),R=$t("ReactVirtualized__Table__row",w),T=Wn({},s,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:S},C);return v({className:R,columns:_,index:o,isScrolling:n,key:r,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:b,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=Wn({},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?[]:a.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}(a.PureComponent);Ft(Bn,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:bo,overscanRowCount:10,rowRenderer:Pn,headerRowRenderer:An,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Bn.propTypes={};var Fn=[],jn=null,Un=null;function Zn(){Un&&(Un=null,document.body&&null!=jn&&(document.body.style.pointerEvents=jn),jn=null)}function $n(){Zn(),Fn.forEach((function(e){return e.__resetIsScrolling()}))}function Vn(e){e.currentTarget===window&&null==jn&&document.body&&(jn=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Un&&po(Un);var e=0;Fn.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Un=fo($n,e)}(),Fn.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Yn(e,t){Fn.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Vn),Fn.push(e)}function qn(e,t){(Fn=Fn.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Vn),Un&&(po(Un),Zn()))}var Kn,Xn,Qn=function(e){return e===window},Jn=function(e){return e.getBoundingClientRect()};function er(e,t){if(e){if(Qn(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return Jn(e)}return{height:t.serverHeight,width:t.serverWidth}}function tr(e){return Qn(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 or(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 nr=function(){return"undefined"!=typeof window?window:void 0},rr=(Xn=Kn=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"_window",nr()),Ft(Pt(o),"_isMounted",!1),Ft(Pt(o),"_positionFromTop",0),Ft(Pt(o),"_positionFromLeft",0),Ft(Pt(o),"_detectElementResize",void 0),Ft(Pt(o),"_child",void 0),Ft(Pt(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?or(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):or(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},er(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),Ft(Pt(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),Ft(Pt(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)}})),Ft(Pt(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),Ft(Pt(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),Ft(Pt(o),"_onResize",(function(){o.updatePosition()})),Ft(Pt(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=tr(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})}}})),Ft(Pt(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return Bt(t,e),Ht(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||No.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(Qn(t)&&document.documentElement){var o=document.documentElement,n=Jn(e),r=Jn(o);return{top:n.top-r.top,left:n.left-r.left}}var i=tr(t),s=Jn(e),a=Jn(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=er(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=Eo(),this.updatePosition(e),e&&(Yn(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),qn(this,n),Yn(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(qn(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}(a.PureComponent),Ft(Kn,"propTypes",null),Xn);Ft(rr,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:nr(),serverHeight:0,serverWidth:0});var ir,sr=(ir=function(e,t){return ir=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])},ir(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}ir(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),ar=function(){return ar=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},ar.apply(this,arguments)},lr={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"}},cr=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 sr(t,e),t.prototype.render=function(){return a.createElement("div",{className:this.props.className||"",style:ar(ar({position:"absolute",userSelect:"none"},lr[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(a.PureComponent),hr=o(3316),dr=o.n(hr),ur=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)}}(),pr=function(){return pr=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},pr.apply(this,arguments)},fr={width:"auto",height:"auto"},mr=dr()((function(e,t,o){return Math.max(Math.min(e,o),t)})),gr=dr()((function(e,t){return Math.round(e/t)*t})),vr=dr()((function(e,t){return new RegExp(e,"i").test(t)})),yr=function(e){return Boolean(e.touches&&e.touches.length)},Sr=dr()((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})),wr=dr()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Cr=dr()((function(e){return"auto"===(e=e.toString())||wr(e,"px")||wr(e,"%")||wr(e,"vh")||wr(e,"vw")||wr(e,"vmax")||wr(e,"vmin")?e:e+"px"})),br=function(e,t,o,n){if(e&&"string"==typeof e){if(wr(e,"px"))return Number(e.replace("px",""));if(wr(e,"%"))return t*(Number(e.replace("%",""))/100);if(wr(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(wr(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},_r=dr()((function(e,t,o,n,r,i,s){return n=br(n,e.width,t,o),r=br(r,e.height,t,o),i=br(i,e.width,t,o),s=br(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)}})),Rr=["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"],Tr="__resizable_base__",xr=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(Tr):t.className+=Tr,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 ur(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||fr},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]&&wr(e.propsSize[t].toString(),"%")){if(wr(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 Cr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Cr(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Cr(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&&vr("left",i),a=r&&vr("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 vr("right",i)&&(d=s.width+(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),vr("left",i)&&(d=s.width-(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),vr("bottom",i)&&(u=s.height+(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),vr("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),S=Math.min(c,m),w=Math.max(h,g),C=Math.min(d,v);e=mr(e,y,S),t=mr(t,w,C)}else e=mr(e,l,c),t=mr(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&&yr(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:pr(pr({},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&&yr(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=yr(e)?e.touches[0].clientX:e.clientX,a=yr(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=_r(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),S=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=S.newWidth,g=S.newHeight,this.props.grid){var w=gr(v,this.props.grid[0]),C=gr(g,this.props.grid[1]),b=this.props.snapGap||0;v=0===b||Math.abs(w-v)<=b?w:v,g=0===b||Math.abs(C-g)<=b?C:g}this.props.snap&&this.props.snap.x&&(v=Sr(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=Sr(g,this.props.snap.y,this.props.snapGap));var _={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(wr(d,"%"))v=v/p.width*100+"%";else if(wr(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(wr(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(wr(u,"%"))g=g/p.height*100+"%";else if(wr(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(wr(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var R={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?R.flexBasis=R.width:"column"===this.flexDir&&(R.flexBasis=R.height),this.setState(R),this.props.onResize&&this.props.onResize(e,c,this.resizable,_)}},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:pr(pr({},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,s=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?a.createElement(cr,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:r&&r[t]},l&&l[t]?l[t]:null):null}));return a.createElement("div",{className:s,style:i},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Rr.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=pr(pr(pr({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 a.createElement(n,pr({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&a.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}(a.PureComponent);const Er="bottom",Or="left",Mr="right",Ir="top",zr={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},kr={min:0,max:1/0},Ar=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:De(e,t.min,t.max),width:De(o,n.min,n.max)}),Gr=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...Ar({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Or||n===Mr,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Ir||n===Er});class Nr extends l().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:kr,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:kr};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=Gr(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=Gr(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})=>Ar({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})}),10)};render(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:i,style:a,translate:c,heightConstraints:h,wrapChildrenInDivContainer:d,widthConstraints:u}=this.props,{enable:p,height:f,horizontal:m,resizing:g,vertical:v,width:y,isMouseWheeling:S}=this.state,{display:w,...C}=a,{min:b,max:_}=u,{min:R,max:T}=h,x={...this.props.wrapperStyle};m&&(x.width=y,x.minWidth=y),v&&(x.height=f,x.minHeight=f);const E=s()("resizable",t,{resizing:g}),O=s()("contents",n,`resize-edge-${r}`,{horizontal:m,vertical:v}),M=s()(r,i,"resizable-handle",{horizontal:m,vertical:v}),I=l().createElement("span",{title:c("ResizePanel")});return l().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...x,display:w}},l().createElement(xr,{className:E,"data-testid":"resizable-core",enable:{...zr,[r]:!S&&p},handleClasses:{[r]:M},handleComponent:{[r]:I},handleStyles:o,maxHeight:v?T:void 0,maxWidth:m?_:void 0,minHeight:v?R:void 0,minWidth:m?b:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:v?f:"100%",width:m?y:"100%"},style:C},d?l().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}var Hr=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:i,style:s}){const a=Re.qi[r].listId,c=document.getElementById(a),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=l().createElement("span",{className:"absolute",style:u},e);return l().createElement("div",{className:t,style:s},c?Ho().createPortal(p,document.getElementById("graph-container")):p)};function Pr({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const i=s()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),a=s()("spinner","mr1",{"inline-block":e}),c={height:n,width:n},h=s()("message",{"inline-block":e,mx2:e}),d=r?l().createElement("span",{className:a,style:c},t("loading")):l().createElement("div",{className:a,style:c},l().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:c}),l().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:c}),l().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:c}));return l().createElement("div",{className:i},d,o&&l().createElement("div",{className:h},o))}class Dr extends l().Component{render(){const{cssVariables:e,currentCommits:t,graphZoneType:o,hasMoreCommits:n,height:r,getExternalIcon:i,isLoadingRows:s,scrollTop:a,style:c,translate:h,zoneContentWidth:d,zoneWidth:u}=this.props,p=parseInt(e["--scrollable-scrollbar-thickness"].trim(),10),f=Number.isNaN(p)?0:p,m=d>u?f:0,g=l().createElement(Pr,{className:"loading-spinner",getExternalIcon:i,size:20,useSimpleSpinner:!0}),v=0!==(t>0?t:0)||n?null:l().createElement(l().Fragment,null,h("Graph-NoCommits")),y=l().createElement("div",{className:"graph-adjust-commit-count p1"},s?l().createElement("div",{className:"flex items-center"},l().createElement("span",{style:{paddingRight:"5px"}},g)):v);return l().createElement(Hr,{graphZoneType:o,height:r,heightAdjustment:m,scrollTop:a,style:c},y)}}var Lr=Dr;function Wr({rowCount:e,cellRenderersByIds:t,columnIndex:o,cssVariables:n,enableResizer:r,getExternalIcon:i,getKeyForCell:a,graphHeight:c,graphWidth:h,graphZoneType:d,graphZones:u,hasMoreCommits:p,isLoadingRows:f,onResize:m,onResizeEnd:g,onResizeFromPropChange:v,onScroll:y,onScrollToRowCausedUpdate:S,onZoneEnter:w,scrollLeft:C,scrollToAlignment:b,scrollToIndex:_,scrollTop:R,smartCellRangeRenderer:T,translate:x}){const E=Qe(d,u);if(!E)return null;const O=Ke(d,u),M=Qe(Re.Wm,u),I=M?M.contentWidth:0,z=M?M.currentWidth:0,k=d===Re.Wm?s()("graph-panel","horizontal_scrollbar","react-virtualized-list"):s()("graph-panel","react-virtualized-list",d===Re.jZ?"z3":null,O?"vertical_scrollbar":null,{"pad-for-horizontal-scrollbar":Boolean(I)&&I>z}),A=d===Re.Wm?{position:"static"}:void 0,G=e=>y(d,e,h,c,p),N=p||f||0===e,H=e+(N?1:0),P=(r,s,u,m,g,v,y)=>l().createElement(wo,{autoContainerWidth:!0,cellRangeRenderer:T,cellRenderer:s=>((r,s)=>{if(s.rowIndex>e-1)return N&&0===o?l().createElement(Lr,{cssVariables:n,currentCommits:e-1,getExternalIcon:i,graphZoneType:d,hasMoreCommits:p,height:c,isLoadingRows:f,key:a(s.rowIndex),scrollTop:R,style:s.style,translate:x,zoneContentWidth:I||0,zoneWidth:z}):void 0;const h={...s,style:{...s.style}};Re.Gn===r&&(h.style.top=Number(s.style.top)-R);const u=t[r];return u?u(h):void 0})(r,s),className:u,columnCount:1,columnWidth:y,containerStyle:m,height:c,id:s,isScrolling:!1,key:s,onScroll:G,onScrollToTargetCausedUpdate:S?e=>S(d,e,h,c,p):void 0,overscanRowCount:0,rowCount:H,rowHeight:Re.$0,scrollLeft:C,scrollToAlignment:b,scrollTop:R,scrollToRow:_,style:g,tabIndex:null,width:v}),D=P(E.type,E.listId,k,A,{position:"absolute"},E.currentWidth,E.type===Re.Wm&&e>0?E.contentWidth||0:E.currentWidth),L=O?P(Re.Gn,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3},{position:"absolute",right:0,overflow:"visible",zIndex:3},1,1):void 0,W=l().createElement("div",{onMouseEnter:w},D,L);return O?W:l().createElement(Nr,{enable:r,height:c,id:`${d}Column`,key:`${d}Column`,onResize:m?e=>m(E,e):void 0,onResizeEnd:g?e=>g(E,e):void 0,onResizeFromPropChange:v?e=>v(E,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:E.currentWidth,widthConstraints:et(d,u,h)},W)}var Br=o(6243);function Fr(e,t){if(null==e)return{};var o,n,r={},i=Br(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var jr=o(5940),Ur=o(2863);function Zr(e,t){return Zr=Ur?Ur.bind():function(e,t){return e.__proto__=t,e},Zr(e,t)}function $r(e,t){e.prototype=jr(t.prototype),e.prototype.constructor=e,Zr(e,t)}var Vr=o(8428);function Yr(){return Yr=Vr?Vr.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},Yr.apply(this,arguments)}var qr,Kr=o(2856),Xr=o.n(Kr),Qr=o(8853),Jr=o.n(Qr),ei=o(644),ti={in:h().bool,mountOnEnter:h().bool,unmountOnExit:h().bool,appear:h().bool,timeout:h().number,onEnter:h().func,onEntering:h().func,onEntered:h().func,onExit:h().func,onExiting:h().func,onExited:h().func},oi=((qr={})[ei.d0]="in",qr[ei.cn]="in",qr),ni=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Fr(e,["className","children"]);return l().createElement(ei.ZP,n,(function(e,n){return l().cloneElement(o,Yr({},n,{className:s()("fade",t,o.props.className,oi[e])}))}))},t}(l().Component);ni.propTypes=ti,ni.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const ri=ni;var ii=Yr({},Xr().propTypes,{show:h().bool,rootClose:h().bool,onHide:h().func,animation:h().oneOfType([h().bool,Jr()]),onEnter:h().func,onEntering:h().func,onEntered:h().func,onExit:h().func,onExiting:h().func,onExited:h().func,placement:h().oneOf(["top","right","bottom","left"])}),si={animation:ri,rootClose:!1,show:!1,placement:"right"},ai=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,r=Fr(t,["animation","children"]),i=!0===o?ri:o||null;return e=i?n:(0,a.cloneElement)(n,{className:s()(n.props.className,"in")}),l().createElement(Xr(),Yr({},r,{transition:i}),e)},t}(l().Component);ai.propTypes=ii,ai.defaultProps=si;const li=ai;var ci=o(5638),hi=o.n(ci),di=o(3562),ui=o.n(di),pi=o(1143),fi=o.n(pi),mi={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function gi(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 vi(e,t){var o=(e.bsClass||"").trim();return null==o&&fi()(!1),o+(t?"-"+t:"")}var yi=gi((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=h().string,n.bsClass=e,t}));gi((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=h().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=Yr({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),gi((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=mi[e];t&&t!==e&&i.push(t),i.push(e)}));var s=h().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=Yr({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o}));function Si(e){var t,o=((t={})[vi(e)]=!0,t);e.bsSize&&(o[vi(e,mi[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[vi(e,e.bsStyle)]=!0),o}function wi(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function Ci(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function bi(e){var t={};return ui()(e).forEach((function(e){var o=e[0],n=e[1];Ci(o)||(t[o]=n)})),[wi(e),t]}var _i={id:hi()(h().oneOfType([h().string,h().number])),placement:h().oneOf(["top","right","bottom","left"]),positionTop:h().oneOfType([h().number,h().string]),positionLeft:h().oneOfType([h().number,h().string]),arrowOffsetTop:h().oneOfType([h().number,h().string]),arrowOffsetLeft:h().oneOfType([h().number,h().string]),title:h().node},Ri=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,i=t.arrowOffsetTop,a=t.arrowOffsetLeft,c=t.title,h=t.className,d=t.style,u=t.children,p=bi(Fr(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),f=p[0],m=p[1],g=Yr({},Si(f),((e={})[o]=!0,e)),v=Yr({display:"block",top:n,left:r},d),y={top:i,left:a};return l().createElement("div",Yr({},m,{role:"tooltip",className:s()(h,g),style:v}),l().createElement("div",{className:"arrow",style:y}),c&&l().createElement("h3",{className:vi(f,"title")},c),l().createElement("div",{className:vi(f,"content")},u))},t}(l().Component);Ri.propTypes=_i,Ri.defaultProps={placement:"right"};const Ti=yi("popover",Ri);function xi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ei=o(8149),Oi=o.n(Ei),Mi=o(1629),Ii=o.n(Mi);o(670);const zi=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 ki(e,t){return Oi()(t)?t.indexOf(e)>=0:e===t}var Ai=h().oneOf(["click","hover","focus"]),Gi=Yr({},li.propTypes,{trigger:h().oneOfType([Ai,h().arrayOf(Ai)]),delay:h().number,delayShow:h().number,delayHide:h().number,defaultOverlayShown:h().bool,overlay:h().node.isRequired,onBlur:h().func,onClick:h().func,onFocus:h().func,onMouseOut:h().func,onMouseOver:h().func,target:h().oneOf([null]),onHide:h().oneOf([null]),show:h().oneOf([null])}),Ni=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(xi(xi(n))),n.handleDelayedShow=n.handleDelayedShow.bind(xi(xi(n))),n.handleDelayedHide=n.handleDelayedHide.bind(xi(xi(n))),n.handleHide=n.handleHide.bind(xi(xi(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}$r(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(){Ho().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||Ii()(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 l().createElement(li,Yr({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){Ho().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,s=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Fr(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=l().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=zi(p.onClick,i),ki("click",t)&&(f.onClick=zi(f.onClick,this.handleToggle)),ki("hover",t)&&(f.onMouseOver=zi(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=zi(p.onMouseOut,c,this.handleMouseOut)),ki("focus",t)&&(f.onFocus=zi(p.onFocus,s,this.handleDelayedShow),f.onBlur=zi(p.onBlur,r,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,a.cloneElement)(u,f)},t}(l().Component);Ni.propTypes=Gi,Ni.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const Hi=Ni;var Pi={id:hi()(h().oneOfType([h().string,h().number])),placement:h().oneOf(["top","right","bottom","left"]),positionTop:h().oneOfType([h().number,h().string]),positionLeft:h().oneOfType([h().number,h().string]),arrowOffsetTop:h().oneOfType([h().number,h().string]),arrowOffsetLeft:h().oneOfType([h().number,h().string])},Di=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,i=t.arrowOffsetTop,a=t.arrowOffsetLeft,c=t.className,h=t.style,d=t.children,u=bi(Fr(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),p=u[0],f=u[1],m=Yr({},Si(p),((e={})[o]=!0,e)),g=Yr({top:n,left:r},h),v={top:i,left:a};return l().createElement("div",Yr({},f,{role:"tooltip",className:s()(c,m),style:g}),l().createElement("div",{className:vi(p,"arrow"),style:v}),l().createElement("div",{className:vi(p,"inner")},d))},t}(l().Component);Di.propTypes=Pi,Di.defaultProps={placement:"right"};const Li=yi("tooltip",Di);var Wi=o(7334);var Bi=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:i,width:s}){const a={...o,background:`url(${i}) 0% 0% / ${r}px no-repeat`,height:n||r,width:s||r},c=["avatar","content-box",...e].join(" ").trim();return l().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Fe(t),style:a})};const Fi=(e,t,o)=>e?((e,t)=>l().createElement("span",{className:"ref-avatar mr1"},l().createElement(Bi,{context:t,size:14,url:e})))(e,o):t;function ji({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?l().createElement(Hi,{overlay:l().createElement(Li,{className:s()("bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):l().createElement(l().Fragment,null," ",e," ")}function Ui({hostingServiceType:e,icon:t,id:o,title:n}){return l().createElement(ji,{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,Wi.y)(e)}`:""})}function Zi({icon:e,type:t,upstream:o,tooltipText:n}){return l().createElement(ji,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function $i({avatarUrl:e,context:t,icon:o,tooltipText:n}){return l().createElement(ji,{icon:Fi(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var Vi=function({name:e}){return l().createElement("span",{className:"ref-name truncate",style:{height:Re.pj}},e)};function Yi(e,t,o,n,r,i){const a=Ue(n,e,t,We.mQ);if(!a||0===a.length)return null;const c=a,h=[];for(const e of c){const{context:t,hostingServiceType:a,id:c,title:d}=e,u={refId:n.id,type:We.mQ,data:e},p=l().createElement("span",{className:s()("mr1","ref-pull-request"),"data-vscode-context":Fe(t),onClick:e=>r(e,u),onDoubleClick:e=>i(e,u)},o("pull-request"));h.push(l().createElement(Ui,{hostingServiceType:a,icon:p,id:c,title:d}))}return h}function qi(e,t,o,n,r,i){const s=Ue(n,e,t,We.uq);if(!s||0===s.ahead&&0===s.behind)return null;const a=s,c={refId:n.id,type:We.uq,data:a},h=a.ahead>0,d=a.behind>0,u=a.context;if(h||d){const e=h?`${a.ahead>99?"99+":a.ahead}`:"",t=d?`${a.behind>99?"99+":a.behind}`:"",n=`${a.owner}/${a.name}`;let s,p;return d&&h?(s=`${t} ${a.behind>1?"commits":"commit"} behind and ${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to pull changes`,p="ahead-behind"):d?(s=`${t} ${a.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(s=`${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),l().createElement(Zi,{icon:l().createElement("div",{className:"ref-upstream","data-vscode-context":Fe(u),onClick:e=>r(e,c),onDoubleClick:e=>i(e,c)},d?l().createElement(l().Fragment,null,l().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?l().createElement(l().Fragment,null,l().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:s,type:p,upstream:n})}return null}function Ki(e,t,o,n=0){const{refType:r,name:i}=t;let a,c,h="";switch(r){case Le.REMOTE:c=Le.REMOTE,a=t.avatarUrl,h=t.owner||"";break;case Le.TAG:c=Le.TAG,h=i||"";break;case Le.HEAD:default:c=Le.HEAD,h=o("Ref-Local")}const d=t.context||void 0,u=l().createElement("span",{className:s()("mr1"),"data-vscode-context":Fe(d)},e(c));return l().createElement($i,{avatarUrl:a||"",context:d,icon:u,key:`ref-icon-${n}-${r}-${i}`,tooltipText:h})}function Xi(e,t,o){let n,r=!1,i=!1,s=!1;for(const a of e){if(a.refType===Le.HEAD)return o?a.contextGroup||t:a.context;a.refType===Le.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 Qi extends l().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{hasActive:e,hasRefs:t,getExternalIcon:o,groupIsHovered:n,isInUnsupportedRebase:r,isRefGroupIncluded:i,onMissingRefMetadata:a,refGroup:c,refGroupContext:h,refMetadata:d,onHovered:u,onHideRefClick:p,sha:f,enabledRefMetadataTypes:m,translate:g}=this.props,v=s()("ref-node-wrapper","flex"),y=s()("ref-node","flex","items-center","p1",{"has-active":e,"dim-ref":!t&&n,"is-active":e}),S=c.length?c[0].fullName||c[0].name:"",w=l().createElement(Vi,{name:S}),C=[],b=[];let _=null;for(let e=0;e<c.length;e+=1){if(C.push(Ki(o,c[e],g,e)),m.includes(We.mQ)&&c[e].refType===Le.REMOTE){const t=Yi(d,a,o,c[e],this.onClickMetadata,this.onDoubleClickMetadata);t&&b.push(...t)}m.includes(We.uq)&&c[e].refType===Le.HEAD&&(_=qi(d,a,o,c[e],this.onClickMetadata,this.onDoubleClickMetadata))}const R=[...C,...b],T=c.some((e=>e.refType===Le.HEAD&&e.isCurrentHead)),x=!e||n&&!T?null:l().createElement(ji,{icon:l().createElement("span",{className:s()("mr1")},o("check")),tooltipId:"ref-icon-current",tooltipText:g("Ref-Current")}),E=Xi(c,h),O=Xi(c,h,!0),M=!T&&n&&!i?l().createElement(ji,{icon:l().createElement("span",{className:s()("mr1","button"),onClick:e=>p(e,c,f)},o("hide")),tooltipId:`ref-node-toggle-visibility-btn-${S}`,tooltipText:g("Hide")}):null;return l().createElement("span",{className:v,"data-vscode-context":Fe(O),style:{minWidth:0,marginLeft:3,marginRight:3}},l().createElement("span",{className:y,"data-test-class":"ref-node-span","data-vscode-context":Fe(E),onClick:this.onClick,onContextMenu:r?void 0:this.onContextMenu,onDoubleClick:r?void 0:this.onDoubleClick,onMouseEnter:e=>u(e,c,f),style:{height:Re.cZ,minWidth:"100%"}},x,l().createElement("span",{className:"flex items-center"},R),w,_,l().createElement("span",{className:"flex ml-auto"},M)))}}class Ji extends l().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===Le.REMOTE?-1:0}render(){const{enableResizer:e,getExternalIcon:t,graphWidth:o,graphZones:n,graphZoneType:r,excludeRefsById:i,includeOnlyRefsById:a,isDraggable:c,onHover:h,onResize:d,onResizeEnd:u,onResizeFromPropChange:p,onResizeStart:f,onUnhover:m,showRemoteNamesOnRefs:g,translate:v}=this.props,{showPopoverMenu:y,refPopoverMenuTarget:S}=this.state,w=Qe(r,n);if(!w)return null;const C=Ke(r,n);let b=null,_=null;if(r===Re.jZ){const e=Object.entries(i),o=Object.values(a),n=o.length>0,r=n&&o.some((e=>e.type===Le.TAG)),c=e.filter((e=>e[1].type===Le.TAG&&(!n||!r)||!a[e[0]]));c.length>0&&(_=c.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,o)=>{const n=e[0],r=e[1];i[n].id=n;const s={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},a=!g&&"*"!==s.name||s.refType!==Le.REMOTE?s.name:`${s.owner}/${s.name}`;return l().createElement("li",{id:n,key:n,onClick:e=>this.onShowRefNodes(e,[i[n]],!0)},Ki(t,s,v,o),l().createElement("span",{className:"text-ellipsis"},a))})),b=l().createElement("div",{className:s()("right","text-normal","button",y?"active":null)},l().createElement(ji,{icon:l().createElement("span",{onClick:this.onHiddenRefsClick},t("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:v("GraphHeader-HiddenRefs-btn")})))}const R=`${r}-header`,T=l().createElement("div",{onMouseEnter:h,onMouseLeave:m},b,l().createElement(li,{container:this,onHide:y?this.onHiddenRefsClick:void 0,placement:y?"bottom":void 0,rootClose:y,show:y,target:S},l().createElement(Ti,{id:"opts-popover",style:{display:y?"block":"none"}},l().createElement("ul",null,_))),l().createElement("div",{className:"text-ellipsis font-monospace text-disabled"},l().createElement("span",{className:"ml1 fs-1"},v(w.headerLabelUntranslated)))),x=s()("panel-bg0","graph-header",{"is-draggable":c});return C?l().createElement("div",{className:x,id:R,key:R,style:{minWidth:w.currentWidth-Re.b4,transform:"translate3d(0, 0, 0)",zIndex:2}},T):l().createElement("div",{className:x,id:R,key:R,style:{display:"flex",minWidth:w.currentWidth,transform:"translate3d(0, 0, 0)",width:w.currentWidth,zIndex:2}},l().createElement(Nr,{className:x,enable:e,handleStyles:{right:{right:0}},height:Re.ze,onResize:d?e=>d(w,e):void 0,onResizeEnd:u?e=>u(w,e):void 0,onResizeFromPropChange:p?e=>p(w,e):void 0,onResizeStart:f?e=>f(w,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:v,width:w.currentWidth,widthConstraints:et(r,n,o)},T))}}const es=Ji;var ts=o(977),os=o.n(ts);const ns="dnd-container";class rs extends l().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(ns));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,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=os()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{l().isValidElement(e)&&this.addChildReactElement(e)})):l().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=s()(ns,t);return l().createElement("div",{className:o,ref:this.dndDecorator},e)}}var is=rs;class ss extends l().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{context:e,enableResizer:t,getExternalIcon:o,excludeRefsById:n,includeOnlyRefsById:r,onPopupGraphHeaderContextMenu:i,onGraphZoneResize:s,onGraphZoneResizeEnd:a,onGraphZoneResizeFromPropChange:c,onToggleRefNodesShown:h,graphZones:d,repoPath:u,showRemoteNamesOnRefs:p,translate:f,width:m,height:g}=this.props,v=l().createElement("div",{className:"panel-bg0",style:{height:Re.ze,marginBottom:Re.xs,marginLeft:-Re.mu,minWidth:Re.mu+Re.b4}});return l().createElement("div",{className:"graph-header flex","data-vscode-context":Fe(e),onContextMenu:i?()=>i(m):void 0,style:{height:Re.ze,marginBottom:Re.xs}},v,l().createElement(is,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,onDrop:this.onDrop},d.map((e=>l().createElement(es,{enableResizer:t,excludeRefsById:n,getExternalIcon:o,graphHeight:g,graphWidth:m,graphZones:d,graphZoneType:e.type,id:`${e.type}Header`,includeOnlyRefsById:r,isDraggable:e.isCustomizable,isDroppable:e.isCustomizable,key:`${e.type}Header`,onHover:this.onZoneHover,onResize:s,onResizeEnd:a,onResizeFromPropChange:c,onToggleRefNodesShown:h,onUnhover:this.onZoneUnHover,repoPath:u,showRemoteNamesOnRefs:p,translate:f})))))}}var as=ss;function ls(e,t,o){const n=t*Re.$0,{shape:r}=Re.Qh[e],i=Re.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=Re.$0*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function cs(e,t,o){const n=o*Re.$0;return e*Re.$0/n*t}class hs extends l().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&&!Number.isNaN(s)?s:Re.pU,l.canvas.height=n;const c=(s&&!Number.isNaN(s)?s:Re.pU)/Re.dF;l.clearRect(0,0,l.canvas.width,l.canvas.height);for(const[e,s]of Object.entries(Re.Qh)){if(!(o.includes(e)||e===Re.IE.RemoteBranches&&o.includes(Re.IE.LocalBranches)))continue;const h=e!==Re.IE.RemoteBranches||o.includes(Re.IE.RemoteBranches)?r[e]||[]:t,d=i[e],u=s.lanes;d&&h.length&&(l.fillStyle=d,h.forEach((t=>{const{height:o,offset:r}=ls(e,a,n);u.length&&l.fillRect(u[0]*c,cs(t,n,a)+r-.5*o,c*u.length,o)})))}}render(){const{scrollWidth:e,viewportWidth:t}=this.props,o=e&&!Number.isNaN(e)?e:Re.pU;return l().createElement("div",{style:{pointerEvents:"none",position:"absolute",left:t-o,zIndex:9999}},l().createElement("canvas",{ref:e=>{this.canvas=e}}))}}function ds(e){const{constraints:{max:t,min:o},stats:{additions:n,deletions:r},isLastColumn:i,scrollWidth:a,zoneWidth:c}=e,h=n+r,d=Math.max(o,Math.min(t,h)),u=i?a+Re.SZ:Re.SZ,p=Math.max(Re.QW,d/t*c-u);return l().createElement("div",{className:"changes-zone changes-bar",style:{width:p}},n?l().createElement("div",{className:s()("changes-sub-bar","added",r?null:"last-bar"),style:{width:n/h*100+"%"}}):null,r?l().createElement("div",{className:"changes-sub-bar deleted last-bar",style:{width:r/h*100+"%"}}):null)}const us={ADDED:"added",DELETED:"deleted",MODIFIED:"modified"};class ps extends l().Component{render(){const{fileDiffType:e,getExternalIcon:t}=this.props;if(!e)return null;const o=(e=>{switch(e){case us.ADDED:return"added";case us.MODIFIED:return"modified";case us.DELETED:return"deleted";default:return""}})(e),n=(e=>{switch(e){case us.ADDED:return"color-green";case us.MODIFIED:return"color-orange";case us.DELETED:return"color-red";default:return null}})(e),r=(e=>{switch(e){case us.ADDED:return"added";case us.MODIFIED:return"modified";case us.DELETED:return"deleted";default:return null}})(e),i=s()("fs-1",n,"mr1");return l().createElement("span",{className:i,title:r},t(o))}}var fs=ps;const{ADDED:ms,DELETED:gs,MODIFIED:vs}=us,ys={[ms]:"CommitDiffSection-NFilesAdded",[gs]:"CommitDiffSection-NFilesDeleted",[vs]:"CommitDiffSection-NFilesModified"};var Ss=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const i=n?e:r(ys[t],e);let s,a;return n&&(s={fontSize:Re.wd,marginRight:Re.IX},a={fontSize:Re.dH,margin:`0px ${Re.VB}px 0px 0px`}),l().createElement("span",{className:"tiny-files-readout",style:s},l().createElement(fs,{fileDiffType:t,getExternalIcon:o,style:a}),l().createElement("span",{className:"tiny-files-readout-text"},i))};var ws=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){const{types:i}=n;if(!e)return l().createElement("span",null);if(!Object.values(e).some((e=>Boolean(e))))return l().createElement("span",null);const s=e.modified?l().createElement(Ss,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,a=e.added?l().createElement(Ss,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=e.deleted?l().createElement(Ss,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=t?{marginLeft:Re.aV}:null;return l().createElement("span",{className:"summary",style:h},s,a,c)};const Cs=s()("absolute","top-0","right-0","bottom-0","left-0","height-1","time-line"),bs=s()(Cs,"z2");var _s=function({z2:e}){return l().createElement("div",{className:e?bs:Cs})};const Rs=l().createElement("div",{className:"color-strip height-100",style:{width:2}}),Ts={};const xs={};class Es extends l().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:i,getExternalIcon:a,graphZoneType:c,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:d,isHighlighted:u,isHovering:p,isInUnsupportedRebase:f,isMissingHoveredRefGroup:m,isSelected:g,numGraphColumns:v,onContextMenu:y,onClickCommit:S,onDoubleClickCommit:w,rowContext:C,sha:b,showColorStrip:_,showConflictIcon:R,showTimeline:T,setAsCurrentlyHoveredGraphCommit:x,style:E,title:O,translate:M,type:I,workDirStats:z}=this.props,k=function(e,t){const o=e+t.toString();let n=Ts[o];return n||(n=s()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),Ts[o]=n,n)}(I,p),A=function(e,t,o,n,r,i=!1,a=!1,l=!1,c=!1){const h=`${e}${t}${n}${o}${i}${a}${l}${c}${r}`;let d=xs[h];return d||(d=s()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":c&&!o||i&&(a||l)}),xs[h]=d,d)}(I,o,u,g,v,m,h,i,d),G=T?l().createElement(_s,null):null,N=I===_e.ch&&void 0!==z&&Object.keys(z).length>0,H=N&&l().createElement(ws,{diffStats:z,getExternalIcon:a,translate:M});return l().createElement("div",{className:k,"data-vscode-context":Fe(C),onContextMenu:f?void 0:e=>y(e,c,b),onDoubleClick:e=>w(e,c,b),onMouseDown:e=>S(e,c,b),onMouseEnter:e=>x(e,c,b,r),onMouseLeave:t=>e(t,c,b,r),style:E},G,l().createElement("div",{className:A,"data-vscode-context":Fe(n)},_?Rs:null,R?l().createElement("span",{className:s()("ml2")},a("warning")):null,l().createElement("span",{className:s()("graph-zone",N?"has-work-dir":"width-100","flex-1"),style:{lineHeight:`${Re.cZ}px`},title:O},t),H))}}var Os=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,translate:r,getExternalIcon:i,highlightRowsOnRefHover:s,isInUnsupportedRebase:a,numGraphColumns:c,clearCurrentlyHoveredGraphCommit:h,currentlyHoveredCommitSha:d,dimMergeCommits:u,dimRowsOfSelectedCommit:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,cssVariables:y,graphZones:S}=e,w=new at(e);return({rowIndex:e,style:C})=>{const b=t(e),_=w.getZoneWidth(Re.WD),R=o[e],{sha:T,stats:x,type:E,contexts:O}=R,M=O?.stats||void 0,I=O?.row||void 0;let z=[x?.files?`${x.files} files changed`:"",x?.additions?`${x.additions} lines added`:"",x?.deletions?`${x.deletions} lines deleted`:""].filter(Boolean).join(", ");z=E!==_e.ch?z:"";const k=parseInt(y["---scrollable-scrollbar-thickness"],10);return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:h,column:R.column,context:M,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:p,getExternalIcon:i,graphZoneType:Re.WD,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:E===_e.lH&&u,isHighlighted:w.isHighlighted(e),isHovering:w.isHovering(e),isInUnsupportedRebase:a,isMissingHoveredRefGroup:w.isMissingHoveredRefGroup(e),isSelected:w.isSelected(e),key:b,numGraphColumns:c,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:I,setAsCurrentlyHoveredGraphCommit:v,sha:T,showTimeline:w.hasTimeline(e),style:C,title:z,translate:r,type:E},x&&E!==_e.ch?l().createElement(ds,{constraints:n,isLastColumn:Ke(Re.WD,S),scrollWidth:k&&!Number.isNaN(k)?k:Re.pU,stats:x,zoneWidth:_}):null)}};function Ms(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 Is(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}var zs=(e,t)=>{const{clearCurrentlyHoveredGraphCommit:o,currentlyHoveredCommitSha:n,dimMergeCommits:r,dimRowsOfSelectedCommit:i,getExternalIcon:s,highlightRowsOnRefHover:a,processedRows:c,isInUnsupportedRebase:h,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,numGraphColumns:f,setAsCurrentlyHoveredGraphCommit:m,translate:g}=e,v=new at(e);return({rowIndex:e,style:y})=>{const S=t(e),w=c[e],{author:C,email:b,sha:_,type:R,contexts:T}=w,x=R!==_e.ch?C:void 0,E=R!==_e.ch?Is(C,b):void 0,O=T?.author||void 0,M=T?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:o,column:w.column,context:O,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:i,getExternalIcon:s,graphZoneType:Re.GF,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:R===_e.lH&&r,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:h,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:S,numGraphColumns:f,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:M,setAsCurrentlyHoveredGraphCommit:m,sha:_,showTimeline:v.hasTimeline(e),style:y,title:E,translate:g,type:R},x)}};var ks=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:a,formatCommitDateTime:c,clearCurrentlyHoveredGraphCommit:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new at(e);return({rowIndex:e,style:S})=>{const w=t(e),C=o[e],{date:b,sha:_,type:R,contexts:T}=C,x=b&&R!==_e.ch?c(b,_e.Gu.RowEntry):void 0,E=b&&R!==_e.ch?c(b,_e.Gu.Tooltip):void 0,O=T?.date||void 0,M=T?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:h,column:C.column,context:O,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Re.PL,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:R===_e.lH&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:s,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:a,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:_,showTimeline:!1,style:S,title:E,translate:n,type:R},x)}};var As=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:i,getExternalIcon:s,highlightRowsOnRefHover:a,isInUnsupportedRebase:c,numGraphColumns:h,workDirStats:d,clearCurrentlyHoveredGraphCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new at(e);return({rowIndex:e,style:S})=>{const w=t(e),C=r[e],{sha:b,type:_,contexts:R}=C,T=_===_e.ch?i("Graph-WorkInProgress"):C.message,x=_===_e.ch?i("Graph-WorkInProgress"):C.messageInline,E=R?.message||void 0,O=R?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:u,column:C.column,context:E,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:n,getExternalIcon:s,graphZoneType:Re.KE,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:_===_e.lH&&o,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:c,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:h,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:b,showColorStrip:!0,showConflictIcon:_===_e.S7||_===_e.br,showTimeline:y.hasTimeline(e),style:S,title:T,translate:i,type:_,workDirStats:d},x)}};var Gs=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:a,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:f,onDoubleClickCommit:m,setAsCurrentlyHoveredGraphCommit:g,shaLength:v}=e,y=new at(e);return({rowIndex:e,style:S})=>{const w=t(e),C=o[e],{sha:b,type:_,contexts:R}=C,T=((e,t=Re.ai)=>e?e.substring(0,t):"")(b,v),x=R?.sha||void 0,E=R?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:c,column:C.column,context:x,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Re.av,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:_===_e.lH&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:s,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:a,onClickCommit:f,onContextMenu:p,onDoubleClickCommit:m,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:b,showTimeline:y.hasTimeline(e),style:S,translate:n,type:_},_!==_e.ch?l().createElement("span",{className:"font-monospace pointer",title:T},T):null)}};function Ns({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const i=s()("ref-line","z4",{"is-active":t});return e&&function(e){return[_e.o$,_e.lH,_e.S7].includes(e)}(n)?l().createElement("hr",{className:i,style:{left:o,width:r}}):null}var Hs=Ns;function Ps({hasRefs:e,isActiveSha:t,nodeOffset:o,type:n}){return l().createElement(Ns,{hasRefs:e,isActiveSha:t,left:0,type:n,width:o+(n===_e.lH?Re.Qj:0)})}function Ds({className:e,marginLeft:t}){return l().createElement("div",{className:s()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},l().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const Ls=e=>Re.Cc+Re.yW*e+Re.UU/2;function Ws({column:e}){return l().createElement(Ds,{className:"z1",marginLeft:Ls(e)})}function Bs(){return l().createElement(Ds,{marginLeft:0})}class Fs extends l().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)=>{const{authorInitials:o,classes:n,column:r,context:i,cssVariables:s,divStyle:a,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,p=void 0!==r&&s[Me(r)]||Re.iq,f=be(p.trim()),m={alignItems:"center",backgroundColor:p,backgroundSize:d,color:f,display:"flex",fontSize:`${c}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,width:t,...a},g=["avatar","gravatar","rad2",...n||[]].join(" ").trim();return l().createElement("div",{className:g,"data-vscode-context":Fe(i),style:m,title:u},o?o.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:a,title:c="",tooltip:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=i||a,f=u||a;let m;if(d||!t)m=this.getMaybeDefaultAvatar(p,f);else{const e={height:p,width:f,backgroundImage:`url('${t}')`,backgroundSize:a,minWidth:s,...r},i=["avatar","gravatar","rad2",...o||[]].join(" ").trim();m=l().createElement("div",{className:i,"data-test-class":"avatar","data-vscode-context":Fe(n),style:e,title:c})}return h?l().createElement(Hi,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:l().createElement(Li,{id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},m):m}}const js=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:i,cssVariables:s,left:a,message:c,opacity:h,type:d,useAuthorInitialsForAvatars:u})=>l().createElement(Fs,{authorInitials:t,avatarUrl:n,classes:["node",`${d}`,"z6"],column:r,context:i,cssVariables:s,divStyle:{left:a,opacity:h},fontSize:10,height:Re.UU,size:Re.mP,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Is(o,e):e,n=function(e){const t=[];for(let o=Ee.exec(e);null!==o;o=Ee.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}(function(e,t="\n"){return e.replace("\n"===t?xe:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}(c||""));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+=Is(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},useAuthorInitialsForAvatars:u,width:Re.UU});class Us extends l().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,left:n,opacity:r,type:i}=this.props;return(t||e)&&i===_e.o$?js(this.props):i===_e.lH||i===_e.S7||i===_e.br?((e,t,o,n,r)=>{const i={height:Re.k9,left:o+5,opacity:n},a=s()("node",r,"z6"),c=l().createElement(Li,{id:"graph-merge-node-tooltip"},Is(t,e));return l().createElement(Hi,{delayShow:250,overlay:c,placement:"bottom",trigger:["hover","focus"]},l().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:i}))})(e,t,n,r,i):((e,t,o,n,r)=>{const i={height:Re.UU,left:o,opacity:n},a=s()("node",r,"z6");return l().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:i},r===_e.kP?e("stash"):null)})(o,0,n,r,i)}}class Zs extends l().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n}=this.props,r=zt(o,t,n,e);return l().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:r}})}}var $s=Zs;function Vs({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:i}){return l().createElement("div",{className:s()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:i}},o)}function Ys({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return l().createElement(Vs,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?l().createElement(_s,{z2:!0}):null)}function qs({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return l().createElement(Vs,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?l().createElement(_s,{z2:!0}):null,l().createElement(Bs,null))}class Ks extends l().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:i,columnColorByColumn:a,commitZoneWidth:c,cssVariables:h,currentlyHoveredCommitSha:d,edgeColumnMax:u,edges:p,hasRefs:f,hasTimeline:m,getExternalIcon:g,isActiveSha:v,isInUnsupportedRebase:y,isSelected:S,leftGutterBoxShadowAlpha:w,leftGutterWidth:C,message:b,nodeOffset:_,nodeOpacity:R,numGraphColumns:T,onContextMenu:x,onClickCommit:E,onDoubleClickCommit:O,rightGutterBoxShadowAlpha:M,rightGutterWidth:I,rowContext:z,scrollLeft:k,setAsCurrentlyHoveredGraphCommit:A,sha:G,style:N,type:H,useAuthorInitialsForAvatars:P,zoneContext:D}=this.props,L=i%T+1,W=s()("relative","commit-zone","height-100-percent","pt3",H,`column-${L}`,{"is-selected":S,"has-active":v}),B=m?l().createElement(_s,{z2:!0}):null,F=l().createElement("div",{className:W,"data-vscode-context":Fe(D),onContextMenu:y?void 0:e=>x(e,Re.Wm,G),onDoubleClick:e=>O(e,Re.Wm,G),onMouseDown:e=>E(e,Re.Wm,G),onMouseEnter:e=>A(e,Re.Wm,G,d),onMouseLeave:e=>r(e,Re.Wm,G,d),style:N},B,l().createElement(Ys,{boxShadowAlpha:w,hasTimeline:m,scrollLeft:k,width:C}),l().createElement(Ps,{hasRefs:f,isActiveSha:v,nodeOffset:_,type:H}),l().createElement(Us,{authorEmail:e,authorInitials:Ms(t),authorName:t,avatarUrl:n,column:i,context:o,cssVariables:h,getExternalIcon:g,left:_,message:b,opacity:R,type:H,useAuthorInitialsForAvatars:P}),l().createElement(Ws,{column:i}),l().createElement($s,{columnColorByColumn:a,edgeColumnMax:u,edges:p,nodeColumn:i}),l().createElement(qs,{boxShadowAlpha:M,commitZoneWidth:c,hasTimeline:m,scrollLeft:k,width:I}));return z?l().createElement("div",{"data-vscode-context":Fe(z)},F):F}}var Xs=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:i,cssVariables:s,currentlyHoveredCommitSha:a,processedRows:c,getExternalIcon:h,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:v,nodeOpacityByColumn:y,numGraphColumns:S,rightGutterBoxShadowAlpha:w,rightGutterWidth:C,setAsCurrentlyHoveredGraphCommit:b,scrollLeft:_,useAuthorInitialsForAvatars:R}=e,T=new at(e);return({rowIndex:e,style:x})=>{const E=t(e),O=c[e],M=T.getZoneWidth(Re.Wm),{email:I,author:z,contexts:k,message:A,sha:G,type:N}=O,H=O.column,P=k?.graph||void 0,D=k?.avatar||void 0,L=k?.row||void 0;let W;return R||(W=o[I],W||n(I,G)),l().createElement(Ks,{authorEmail:I,authorName:z,avatarContext:D,avatarUrl:W,clearCurrentlyHoveredGraphCommit:r,column:H,columnColorByColumn:i,commitZoneWidth:M,cssVariables:s,currentlyHoveredCommitSha:a,edgeColumnMax:O.edgeColumnMaxes,edges:O.edges,getExternalIcon:h,hasRefs:O.hasRefs||!1,hasTimeline:T.hasTimeline(e),isActiveSha:T.rowContainsCurrentHeadRef(O),isInUnsupportedRebase:d,isSelected:T.isSelected(e),key:E,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:A,nodeOffset:v[H],nodeOpacity:y[H],numGraphColumns:S,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:w,rightGutterWidth:C,rowContext:L,scrollLeft:_,setAsCurrentlyHoveredGraphCommit:b,sha:G,style:x,type:N,useAuthorInitialsForAvatars:R,zoneContext:P})}};var Qs=function({hasActive:e,overflowCount:t}){return l().createElement("span",{className:s()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};var Js=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:i}){const a=e?.top||0;return l().createElement("div",{className:s()("ref-zone","column-"+(o%n+1))},l().createElement("ul",{onMouseEnter:r,onMouseLeave:i,style:{...e,top:a-Re.cZ/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var ea=function({enabledRefMetadataTypes:e,column:t,context:o,getTargetRef:n,hasActive:r,hasRefs:i,getExternalIcon:s,includeOnlyRefsById:a,includeOnlyRemotesByName:c,isHovered:h,isInUnsupportedRebase:d,numGraphColumns:u,onMissingRefMetadata:p,refGroupContexts:f,refGroupsByName:m,refMetadata:g,refNodeHovered:v,sha:y,showContextMenuForGroupedRef:S,onClickRef:w,onDoubleClickRef:C,onToggleRefNodesShown:b,translate:_}){const R=(e,t,o)=>{const n=t.map((e=>({id:$e(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})));b(e,n,!1,o)},T=h?m:[m[0]],x=Object.values(a),E=x.length>0&&x.some((e=>e.type===Le.TAG)),O=T.map((t=>{const o=f?.[t[0].name]||void 0,n=t.some((e=>{const t=$e(e);switch(e.refType){case Le.TAG:return E&&Boolean(a[t]);case Le.REMOTE:return Boolean(a[t])||e.owner&&c[e.owner];default:return Boolean(a[t])}})),u=l().createElement(Qi,{enabledRefMetadataTypes:e,getExternalIcon:s,groupIsHovered:h,hasActive:r,hasRefs:i,isInUnsupportedRebase:d,isRefGroupIncluded:n,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:w,onContextMenu:S,onDoubleClick:C,onHideRefClick:R,onHovered:v,onMissingRefMetadata:p,refGroup:t,refGroupContext:o,refMetadata:g,sha:y,translate:_});return h?l().createElement("li",{key:u.key},u):u}));return h?l().createElement("div",{"data-vscode-context":Fe(o),style:{height:100,position:"relative"}},l().createElement(li,{placement:"right",show:h,target:n},l().createElement(Js,{column:t,numGraphColumns:u},O))):l().createElement("span",{"data-vscode-context":Fe(o),style:{minWidth:0}},O)};const ta={};class oa extends l().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,showGhostRefsOnRowHover:n,hasActive:r,hasRefs:i,hasTimeline:a,hoveredRefGroup:c,hoveredRefZoneSha:h,getExternalIcon:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isContainerWindowFocused:f,isInUnsupportedRebase:m,numGraphColumns:g,onClickRef:v,onDoubleClickRef:y,onMissingRefMetadata:S,refGroupContexts:w,refGroupsByName:C,refMetadata:b,refNodeHovered:_,refNodeUnhovered:R,refZoneHovered:T,refZoneUnhovered:x,sha:E,showContextMenuForGroupedRef:O,style:M,translate:I,type:z,width:k}=this.props,A=h===E&&f,G={minWidth:k,width:k},N={...M,...G},H=a?l().createElement(_s,null):null,P=C.length,D=e=>{T(E),P?_(e,C[0],E):c&&R(e,c,E)},L=e=>{f&&this.isContextMenuShown?this.isContextMenuShown=!1:(x(),c&&R(e,c,E))},W=function(e,t,o,n,r,i){const a=`${e}${t}${o}${n}${r}${i}`;let l=ta[a];return l||(l=s()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":i,"has-active":n,z6:o,z1:!o}),ta[a]=l,l)}(z,t,A,r,g,P>0&&!i&&n);if(!P)return l().createElement("div",{className:W,onMouseEnter:D,onWheel:L,style:N},H);const B=G,F=P-1,j=F>0&&!A?l().createElement(Qs,{hasActive:r,overflowCount:F}):null;return l().createElement("div",{className:W,onMouseEnter:D,onMouseLeave:L,onWheel:L,style:N},l().createElement("div",{ref:e=>this.refPopoverTarget=e}),H,l().createElement("div",{className:"flex",style:B},l().createElement(ea,{column:t,context:o,enabledRefMetadataTypes:e,getExternalIcon:d,getTargetRef:this.getRefPopoverTarget,hasActive:r,hasRefs:i,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isHovered:A,isInUnsupportedRebase:m,numGraphColumns:g,onClickRef:v,onDoubleClickRef:y,onMissingRefMetadata:S,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:w,refGroupsByName:C,refMetadata:b,refNodeHovered:_,sha:E,showContextMenuForGroupedRef:(e,t,o)=>{D(e),this.isContextMenuShown=!0,O(e,t,o)},translate:I}),j),i?l().createElement("div",{className:"absolute left-0 flex z1",style:G},l().createElement(Hs,{hasRefs:!0,isActiveSha:r,left:Re.yv,type:z,width:"100%"})):null)}}var na=(e,t)=>{const{enabledRefMetadataTypes:o,showGhostRefsOnRowHover:n,onDoubleClickRef:r,processedRows:i,includeOnlyRefsById:s,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,getExternalIcon:d,hoveredRefGroup:u,hoveredRefZoneSha:p,numGraphColumns:f,onClickRef:m,onMissingRefMetadata:g,onShowContextMenuForGroupedRef:v,onRefNodeHovered:y,onRefNodeUnhovered:S,onRefZoneHovered:w,onRefZoneUnhovered:C,onToggleRefNodesShown:b,refMetadataById:_,translate:R}=e,T=new at(e);return({rowIndex:e,style:x})=>{const E=t(e),O=i[e],M=T.getZoneWidth(Re.jZ),I=T.isHovering(e),{sha:z,type:k,hasRefs:A,contexts:G}=O,N=G?.ref||void 0,H=G?.refGroups||void 0,P=T.isSingleSelected(e),D=(n||A)&&(A||I||P)?T.getGraphRefGroupsByNameForRow(e):[];return l().createElement(oa,{column:O.column,context:N,enabledRefMetadataTypes:o,getExternalIcon:d,hasActive:T.rowContainsCurrentHeadRef(O),hasRefs:A||!1,hasTimeline:T.hasTimeline(e),hoveredRefGroup:u,hoveredRefZoneSha:p,includeOnlyRefsById:s,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,isSingleSelected:P,key:E,numGraphColumns:f,onClickRef:m,onDoubleClickRef:r,onMissingRefMetadata:g,onToggleRefNodesShown:b,refGroupContexts:H,refGroupsByName:D,refMetadata:_,refNodeHovered:y,refNodeUnhovered:S,refZoneHovered:w,refZoneUnhovered:C,sha:z,showContextMenuForGroupedRef:v,showGhostRefsOnRowHover:n,style:x,translate:R,type:k,width:M})}};var ra=(e,t)=>{const{translate:o,processedRows:n}=e,r=s()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),i=new at(e);return({rowIndex:e,style:a})=>{const c=t(e),h=s()("graph-row","height-100-percent","flex"),d=i.hasTimeline(e),u=n[e],p=u.contexts?.row||void 0,f=u.timeLineEntry?.label||"",m=u.timeLineEntry?.value||0,g=d?l().createElement(_s,null):null,v=d?l().createElement("span",{className:"time-line-message-container"},l().createElement("span",{className:"time-line-message"},o(f,m))):null;return l().createElement("div",{className:r,"data-vscode-context":Fe(p),key:c,style:a},g,l().createElement("div",{className:h,"data-vscode-context":Fe(p)},v))}};class ia extends l().PureComponent{graphContainerRef=l().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={};workDirStats=Re.OR;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZonesByType={};graphZoneOrdering=[Re.jZ,Re.Wm,Re.KE,Re.GF,Re.WD,Re.PL,Re.av];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.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices([Re.IE.Selection,Re.IE.Highlights]);const t=Ie(this.props.cssVariables);this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!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),processedRows:[...this.orderedGraphRows],refMetadataById:this.props.refMetadataById,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||Re.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;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=Object.keys(e.highlightedShas||{}).filter((t=>e.highlightedShas[t])),o=[];t.forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&o.push(this.processedGraphRowBySha[e].rowIndex)})),this.markerRowIndices={...this.markerRowIndices,[Re.IE.Highlights]:o}}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 n=Ie(e.cssVariables);this.processRows(e.graphRows),this.setState({columnColorByColumn:this.getColumnColorByColumn(n),cssVariablesWithDefaults:n,numGraphColumns:this.getNumGraphColumns(n),processedRows:[...this.orderedGraphRows]}),this.updateCommitZoneContentWidthFromGraphRowsChange(),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.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||Re.OR,!ot(this.props.workDirStats)&&ot(e.workDirStats)||ot(this.props.workDirStats)&&!ot(e.workDirStats)?(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows],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&&e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0),this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),t){const e=this.getOrderedActiveGraphZones();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)};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=Be(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=Be(((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=()=>{};onMessageChange=e=>{this.props.onMessageChange&&this.props.onMessageChange(e)};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||rt(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*Re.$0;i>s-Re.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)}};onWipNodeInputWillUnmount=()=>{this.props.onWipNodeInputWillUnmount&&this.props.onWipNodeInputWillUnmount()};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([Re.IE.Selection]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(Re.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===Le.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===Le.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-Re.rl)/Re.$0,i=o/Re.$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(Re.Wm),s=this.getCommitZoneContentWidth(),a=o*Re.yW,l=n-Re.Cc/3<=a,c=a<=n+r,h=Math.max(0,s-i),d=l&&c?n:De(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=Xe(r,n,e);if(r.currentWidth=i,t===Re.Wm){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromGraphRowsChange(){const e=this.graphZonesByType[Re.Wm];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=Xe(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e){const t=this.graphZonesByType[e];return t&&!t.isHidden?t.currentWidth:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*Re.yW+2*Re.Cc+2*Re.hc}getCommitZoneWidth(){if(this.graphZonesByType[Re.Wm])return this.graphZonesByType[Re.Wm].currentWidth;const{columnsSettings:e}=this.props;return e?.[Re.Wm]?e[Re.Wm].width:Re.qi[Re.Wm].minimumWidth}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(Re.Wm);return 1===e?0:De(1-(t-2*Re.Cc-Re.hc)/Re.yW,0,1)}setScroll(e,t){null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===Re.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(){return Re.os}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*Re.Uo)+t*(e+Re.Cc)}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(Re.Wm),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(Re.hc-Re.Cc))+o*(t+Re.Cc)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=Re.Cc+Re.yW*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]=De(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(Re.Wm)-Re.yW-Re.hc)}getMinNodeLeft(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+Re.Uo+t*Re.Cc}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(Re.Wm),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return De((e-(t-(Re.Cc+Re.hc)))/Re.yW,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*Re.Cc),c=t+Re.yW-(a+Re.Cc*(1-n)),h=Math.min(l,c);i[s]=Re.l3+(1-Re.l3)*Math.max(h/(Re.Cc/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return Re.Cc+e*(Re.Cc/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*Re.Cc}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,De(1-t/Re.yW,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(Re.IE.Selection)){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Re.IE.Selection].push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes(Re.IE.Highlights)){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Re.IE.Highlights].push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.body),t={};return Object.values(Re.Qh).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey);n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;for(t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=Re.qi[t],a=i?.width?i.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=l.currentWidth),t===Re.Wm&&(l.contentWidth=this.getCommitZoneContentWidth(),this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||n.push(l)})),n.forEach((e=>{const t=Xe(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=Ve(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-qe(n,e);this.graphZonesByType[e].currentWidth=r}return n}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!==Re.WD||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n)})),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&&!Te(r.type)?r:i&&!Te(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):Pe(e,Re.It);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):lt[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}(lt[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):l().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!==_e.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]||[];s?.type===_e.kP&&e.type!==_e.kP&&r?.newestDate>s?.newestDate?(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=>t?void 0!==this.includeOnlyRefsById[Ze(Le.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[Ze(Le.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[Ze(Le.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[Ze(Le.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===Le.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[Ze(Le.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[Ze(Le.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={},h=[],d=void 0!==this.graphZonesByType[Re.WD]&&!this.graphZonesByType[Re.WD].isHidden;if(ot(this.workDirStats)&&e.length>0&&e[0].type!==_e.ch){const t=function(e){const t=e.find(tt);return t?.sha||void 0}(e),o={sha:_e.ch,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:_e.ch,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!ot(this.workDirStats)&&e.length>0&&e[0].type===_e.ch&&e.shift();const u=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,p)=>{const f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,u):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,u):[],v=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,u,Boolean(c[e.sha]||f)):[],y=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],S=m.length>0||g.length>0||v.length>0,w=m.length>0||g.length>0;if(e.type!==_e.o$&&e.type!==_e.lH||c[e.sha]){if(e.type===_e.kP&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&y.length>0){let e;for(e of y)c[e]=!0}}else e.type!==_e.o$&&e.type!==_e.lH||c[e.sha]||S||f||(o[e.sha]=!0);const C=o[e.sha],b={...e,heads:m,remotes:g,tags:v,parents:y,column:C?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:S,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(!C){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],b.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<y.length;n+=1){const r=y[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(w||o)&&void 0===i&&(i=[],t.set(r,i)),w?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:p,heads:m,remotes:g,tags:v}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:p})}const u=this.orderedGraphRows.length;if(b.rowIndex=u,m.length>0&&(i.push(u),m.some((e=>e.isCurrentHead))&&(this.headSha=b.sha,n.push(u))),g.length>0){s.push(u);for(const e of g)e.current&&(r.push(u),this.headUpstreamSha=b.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(u)}v.length>0&&a.push(u),e.type===_e.kP&&l.push(u),this.orderedGraphRows.push(b),d&&b.stats&&h.push(b.stats.additions+b.stats.deletions)}this.processedGraphRowBySha[e.sha]=b})),this.markerRowIndices={...this.markerRowIndices,[Re.IE.Head]:n,[Re.IE.Upstream]:r,[Re.IE.LocalBranches]:i,[Re.IE.RemoteBranches]:s,[Re.IE.Tags]:a,[Re.IE.Stashes]:l},d&&(this.rowStatsConstraints=je(h)),clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){const e=[];for(const t of this.orderedGraphRows)t.stats&&e.push(t.stats.additions+t.stats.deletions);this.rowStatsConstraints=je(e)}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=Re.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<=Re.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<=Re.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<=Re.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<=Re.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 Re.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[Me(i)];n[i]="rgba"===(r=Ce(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,Re.uK);return Number.isNaN(o)?Re.uK:o}ensureZoneWidthsMatchGraphWidth(e,t){const o=qe(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=qe(e);for(;n>t;){const r=Ve(e,o);if(!r)break;const i=qe(e,r.type);if(i+r.currentWidth>t){const o=Xe(r,e,t-i);this.updateWidthByZone(o,r.type)}n=qe(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=qe(e);for(;n<t;){const r=Ye(e,o);if(!r)break;const i=qe(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;!Ke(r.type,e)&&o>s&&(o=s),o=Xe(r,e,o),this.updateWidthByZone(o,r.type)}n=qe(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(){It={},Ot={},xt={},Rt={}}onZoneEnter=(e,t,o,n)=>{t!==Re.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=Je(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=Be(((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,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=function(e){const t=e||Oe;let o="";const n=Object.keys(t);o+="body {\n";for(const e of n)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}(t);return l().createElement("div",{id:"graph-container-helmet"},l().createElement(ge,null,l().createElement("style",{nonce:o},n)),e)};render(){const{isInUnsupportedRebase:e,isCommitting:t,pendingCommitMessageSummary:o,repoPath:n,nonce:r}=this.props,{avatarUrlByEmail:i,columnColorByColumn:a,contexts:c,cssVariablesWithDefaults:h,currentlyHoveredCommitSha:d,dimMergeCommits:u,dimRowsOfSelectedCommit:p,highlightRowsOnRefHover:f,showGhostRefsOnRowHover:m,showRemoteNamesOnRefs:g,enabledRefMetadataTypes:v,enabledScrollMarkerTypes:y,graphZones:S,hasMoreCommits:w,height:C,highlightedShas:b,hoveredRefGroup:_,hoveredRefZoneSha:R,themeOpacityFactor:T,isContainerWindowFocused:x,isLoadingRows:E,numGraphColumns:O,processedRows:M,refMetadataById:I,useAuthorInitialsForAvatars:z,scrollToAlignment:k,scrollToIndex:A,scrollTop:G,scrollLeft:N,shaLength:H,width:P,workDirStats:D}=this.state,L=s()("flex","graph-container"),W=(B=M,e=>e===B.length?"SHOW_MORE_COMMITS":B[e].sha);var B;const F=(j=e=>W(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(),S=!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;S&&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 w={columnIndex:c,isScrolling:a,isVisible:r,key:d,parent:l,rowIndex:e,style:y};let C;if(!a||s||p)C=t(w);else{const o=j(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(w)}),C=v[d].cell}null!=C&&g.push(C)}}return g});var j;const U=this.getLeftGutterWidth(),Z=this.getRightGutterWidth(),$=this.getRightGutterBoxShadowAlpha(T),V=this.getLeftGutterBoxShadowAlpha(T),Y=this.getNodeOffsetByColumn(),q=this.getNodeOpacityByColumn(),K=!_,X={avatarUrlByEmail:i,dimMergeCommits:u,dimRowsOfSelectedCommit:p,highlightRowsOnRefHover:f,showGhostRefsOnRowHover:m,showRemoteNamesOnRefs:g,enabledRefMetadataTypes:v,isInUnsupportedRebase:e,isCommitting:t,isContainerWindowFocused:x,pendingCommitMessageSummary:o,workDirStats:D,repoPath:n,columnColorByColumn:a,currentlyHoveredCommitSha:d,cssVariables:h,graphZones:S,height:C,highlightedShas:b,hoveredRefGroup:_,hoveredRefZoneSha:R,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:V,leftGutterWidth:U,nodeOffsetByColumn:Y,nodeOpacityByColumn:q,nonce:r,numGraphColumns:O,processedRows:M,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:I,rightGutterBoxShadowAlpha:$,rightGutterWidth:Z,rowStatsConstraints:this.rowStatsConstraints,useAuthorInitialsForAvatars:z,scrollToAlignment:k,scrollLeft:N,scrollTop:G,shaLength:H,width:P,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,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,onWipNodeInputWillUnmount:this.onWipNodeInputWillUnmount,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,translate:this.translateCallback},Q={[Re.jZ]:na(X,W),[Re.Wm]:Xs(X,W),[Re.KE]:As(X,W),[Re.GF]:zs(X,W),[Re.PL]:ks(X,W),[Re.av]:Gs(X,W),[Re.WD]:Os(X,W),[Re.Gn]:ra(X,W)},J=S.map(((e,t)=>l().createElement(Wr,{cellRenderersByIds:Q,columnIndex:t,cssVariables:h,enableResizer:K,getExternalIcon:this.getIconCallback,getKeyForCell:W,graphHeight:C-Re.rl,graphWidth:P,graphZones:S,graphZoneType:e.type,hasMoreCommits:w,isLoadingRows:E,key:`${e.type}ColumnContainer`,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===Re.jZ?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,_,R),rowCount:M.length,scrollLeft:N,scrollToAlignment:e.type===Re.jZ?k:void 0,scrollToIndex:e.type===Re.jZ?A:void 0,scrollTop:G,smartCellRangeRenderer:F,translate:this.translateCallback}))),ee=C-Re.rl,te=this.orderedGraphRows.length*Re.$0,oe=l().createElement("div",{className:"graph-component","data-vscode-context":Fe(c?.graph),onBlur:e=>this.onGraphContainerBlurred(e,_,R),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},l().createElement(as,{context:c?.header,enableResizer:K,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:S,height:C,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,showRemoteNamesOnRefs:g,translate:this.translateCallback,width:P}),l().createElement("div",{className:b?s()(L,"graph-highlighted"):L,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:C,width:P},tabIndex:-1},y.length?l().createElement(hs,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,enabledScrollMarkerTypes:y,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,scrollWidth:parseInt(h["---scrollable-scrollbar-thickness"],10),totalRows:this.orderedGraphRows.length,viewportHeight:ee<te?ee:te,viewportWidth:P}):null,J));return this.decorateWithHelmet(oe,h,r)}}var sa=ia},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:()=>a,$s:()=>p,An:()=>f,B8:()=>z,Cc:()=>u,F0:()=>h,GF:()=>ee,Gn:()=>K,IE:()=>re,IX:()=>j,It:()=>M,KE:()=>J,MQ:()=>V,NP:()=>b,O5:()=>_,OR:()=>ue,P3:()=>y,PL:()=>te,QW:()=>H,Qh:()=>ae,Qj:()=>x,RG:()=>ie,SZ:()=>P,UU:()=>w,Uo:()=>m,VB:()=>U,WD:()=>ne,Wm:()=>Q,X9:()=>W,YJ:()=>de,aV:()=>B,ai:()=>ce,at:()=>v,av:()=>oe,b4:()=>q,cZ:()=>l,dF:()=>i,dH:()=>Z,d_:()=>se,eq:()=>E,hc:()=>g,iq:()=>n,jZ:()=>X,k9:()=>C,l3:()=>d,mP:()=>R,mu:()=>Y,os:()=>$,pU:()=>r,pj:()=>k,q1:()=>O,qG:()=>c,qi:()=>he,rl:()=>s,uK:()=>le,v1:()=>N,wd:()=>F,wi:()=>T,wy:()=>A,xI:()=>I,xs:()=>L,yW:()=>S,yv:()=>G,ze:()=>D});const n="#199489",r=14,i=3,s=26,a=28,l=22,c=50*a,h=2,d=.5,u=28,p=3,f=3,m=3,g=3,v=a,y=l,S=22,w=22,C=w/2+1,b=3,_=y/2,R=w-2*h,T=w+m+g+u,x=w/2-C/2,E=50,O=50,M="short+short",I=50,z=50,k=18,A=100,G=2,N=50,H=10,P=15,D=22,L=2,W={dark:1,light:.5},B=10,F=12,j=6,U=3,Z=12,$="auto",V="center",Y=7,q=4,K="timelineMessage",X="ref",Q="graph",J="message",ee="author",te="datetime",oe="sha",ne="changes";var re=(e=>(e.LocalBranches="localBranches",e.RemoteBranches="remoteBranches",e.Selection="selection",e.Head="head",e.Upstream="upstream",e.Highlights="highlights",e.Stashes="stashes",e.Tags="tags",e))(re||{}),ie=(e=>(e.Block="block",e.FullLine="fullLine",e.ThinLine="thinLine",e))(ie||{});const se={block:{type:"block",baseHeight:1*a,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*a,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*a,minHeight:1,maxHeight:2}},ae={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:"--color-graph-scroll-marker-head",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},le=10,ce=6,he={[ee]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:E},[te]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:O},[J]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!1,listId:"commit-message-zone",minimumWidth:z},[oe]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:I},[Q]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!1,listId:"commit-zone",minimumWidth:T},[X]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!1,listId:"ref-zone",minimumWidth:A},[ne]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:N}},de={hour:23,day:6,week:4,month:11,year:6},ue={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})},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}}},7418:e=>{var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))o.call(i,c)&&(a[c]=i[c]);if(t){s=t(i);for(var h=0;h<s.length;h++)n.call(i,s[h])&&(a[s[h]]=i[s[h]])}}return a}},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(2989);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")}}},9590:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,l,c,h;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(l=a;0!=l--;)if(!i(e[l],s[l]))return!1;return!0}if(o&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(h=e.entries();!(l=h.next()).done;)if(!s.has(l.value[0]))return!1;for(h=e.entries();!(l=h.next()).done;)if(!i(l.value[1],s.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(h=e.entries();!(l=h.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(l=a;0!=l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((a=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=a;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=a;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],s[c[l]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return!1;throw e}}},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,S=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function C(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 b(e){return C(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 b(e)||C(e)===h},t.isConcurrentMode=b,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===u},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===r},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(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===S||e.$$typeof===w||e.$$typeof===v)},t.typeOf=C},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,S=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:S},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=27;var d=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){e.keyCode===h&&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);d.displayName="RootCloseWrapper",d.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},d.defaultProps={event:"click"},t.default=d,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},3524:(e,t,o)=>{var n,r=o(6689),i=(n=r)&&"object"==typeof n&&"default"in n?n.default:n;function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var a=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,o){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==o&&"function"!=typeof o)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function h(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):o&&(l=o(l))}var d=function(e){var t,o;function r(){return e.apply(this,arguments)||this}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o,r.peek=function(){return l},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var s=r.prototype;return s.UNSAFE_componentWillMount=function(){c.push(this),h()},s.componentDidUpdate=function(){h()},s.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),h()},s.render=function(){return i.createElement(n,this.props)},r}(r.PureComponent);return s(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s(d,"canUseDOM",a),d}}},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)},8428:(e,t,o)=>{e.exports=o(6981)},5940:(e,t,o)=>{e.exports=o(5627)},3562:(e,t,o)=>{e.exports=o(7965)},6243:(e,t,o)=>{e.exports=o(8613)},2863:(e,t,o)=>{e.exports=o(433)},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:()=>a.QW,CHANGES_BAR_RIGHT_MARGIN:()=>a.SZ,CHANGES_ZONE_MIN_WIDTH:()=>a.v1,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>a.eq,COMMIT_COLUMN_WIDTH:()=>a.yW,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>a.q1,COMMIT_MERGE_NODE_DIAMETER:()=>a.k9,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>a.B8,COMMIT_NODE_DIAMETER:()=>a.UU,COMMIT_NODE_MIN_ALPHA:()=>a.l3,COMMIT_SHA_ZONE_MIN_WIDTH:()=>a.xI,COMMIT_ZONE_AVATAR_DIAMETER:()=>a.mP,COMMIT_ZONE_EDGE_ARC_PADDING:()=>a.NP,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>a.O5,COMMIT_ZONE_GUTTER_WIDTH:()=>a.Cc,COMMIT_ZONE_LINE_WIDTH:()=>a.F0,COMMIT_ZONE_MARGIN_BOTTOM:()=>a.$s,COMMIT_ZONE_MARGIN_TOP:()=>a.An,COMMIT_ZONE_PADDING_LEFT:()=>a.Uo,COMMIT_ZONE_PADDING_RIGHT:()=>a.hc,COMMIT_ZONE_ROW_HEIGHT:()=>a.at,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>a.P3,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:()=>a.wi,CommitDateTimeSources:()=>t.Gu,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>a.iq,DEFAULT_COMMIT_SHA_LENGTH:()=>a.ai,DEFAULT_WORKDIR_STATS:()=>a.OR,GRAPH_HEADER_ROW_HEIGHT:()=>a.rl,GRAPH_ROW_HEIGHT:()=>a.$0,GRAPH_ROW_INNER_HEIGHT:()=>a.cZ,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>a.qG,GRAPH_SCROLL_BAR_DEFAULT_WIDTH:()=>a.pU,GRAPH_SCROLL_MARKER_LANES:()=>a.dF,GraphMarkerShape:()=>a.RG,GraphMarkerType:()=>a.IE,HEADER_ROW_HEIGHT:()=>a.ze,HEADER_ROW_MARGIN_BOTTOM:()=>a.xs,INLINE_SUMMARY_MARGIN_LEFT:()=>a.aV,LeftPanelToGraphMarginGap:()=>a.mu,OPACITY_FACTOR_BY_THEME:()=>a.X9,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:()=>a.Qj,REF_ZONE_MARGIN_LEFT:()=>a.yv,REF_ZONE_MIN_WIDTH:()=>a.wy,REF_ZONE_TEXT_HEIGHT:()=>a.pj,ResizableHandleCorrection:()=>a.b4,SCROLL_TO_ALIGNMENT_AUTO:()=>a.os,SCROLL_TO_ALIGNMENT_CENTER:()=>a.MQ,TIMESTAMP_FORMAT_DATE_TIME:()=>a.It,TINY_FILES_READOUT_FONT_SIZE:()=>a.wd,TINY_FILES_READOUT_RIGHT_MARGIN:()=>a.IX,TINY_ICON_RIGHT_MARGIN:()=>a.VB,TINY_ICON_SIZE:()=>a.dH,allMetadataTypes:()=>l.AI,changesZone:()=>a.WD,commitAuthorZone:()=>a.GF,commitDateTimeZone:()=>a.PL,commitMessageZone:()=>a.KE,commitNodeType:()=>t.o$,commitShaZone:()=>a.av,commitZone:()=>a.Wm,default:()=>u,getHostingServiceName:()=>c.y,graphMarkerMetadata:()=>a.Qh,graphMarkerShapeMetadata:()=>a.d_,graphZoneMetaData:()=>a.qi,lookbackLimitByPeriod:()=>a.YJ,mergeConflictNodeType:()=>t.S7,mergeNodeType:()=>t.lH,numGraphColumnsDefault:()=>a.uK,pullRequestMetadataType:()=>l.mQ,refZone:()=>a.jZ,stashNodeType:()=>t.kP,timelineMsgRowRenderId:()=>a.Gn,unsupportedRebaseWarningNodeType:()=>t.br,upstreamMetadataType:()=>l.uq,workDirType:()=>t.ch});var e=o(693),t=o(827),r=o(2149),i={};for(const e in r)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(i[e]=()=>r[e]);o.d(n,i);var s=o(8289);i={};for(const e in s)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(i[e]=()=>s[e]);o.d(n,i);var a=o(3308),l=o(9453),c=o(7334),h=o(664);i={};for(const e in h)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_COLUMN_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_MERGE_NODE_DIAMETER","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_NODE_DIAMETER","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_ZONE_AVATAR_DIAMETER","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_GUTTER_WIDTH","COMMIT_ZONE_LINE_WIDTH","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_PADDING_LEFT","COMMIT_ZONE_PADDING_RIGHT","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_VIEWPORT_WIDTH_MIN","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_BAR_DEFAULT_WIDTH","GRAPH_SCROLL_MARKER_LANES","GraphMarkerShape","GraphMarkerType","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","RADIUS_DIFF_MERGE_NODE_COMMIT_NODE","REF_ZONE_MARGIN_LEFT","REF_ZONE_MIN_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"].indexOf(e)<0&&(i[e]=()=>h[e]);o.d(n,i);var d=o(6756);i={};for(const e in d)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_COLUMN_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_MERGE_NODE_DIAMETER","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_NODE_DIAMETER","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_ZONE_AVATAR_DIAMETER","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_GUTTER_WIDTH","COMMIT_ZONE_LINE_WIDTH","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_PADDING_LEFT","COMMIT_ZONE_PADDING_RIGHT","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_VIEWPORT_WIDTH_MIN","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_BAR_DEFAULT_WIDTH","GRAPH_SCROLL_MARKER_LANES","GraphMarkerShape","GraphMarkerType","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","RADIUS_DIFF_MERGE_NODE_COMMIT_NODE","REF_ZONE_MARGIN_LEFT","REF_ZONE_MIN_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"].indexOf(e)<0&&(i[e]=()=>d[e]);o.d(n,i);var u=e.Z})(),module.exports=n})();
1
+ (()=>{var e={2989: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(2989),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,S=f?r:r[t]||(r[t]={}),w=S[l],C=f?n:m?n[t]:(n[t]||{})[l];for(h in f&&(o=t),o)(d=!p&&C&&void 0!==C[h])&&a(S,h)||(u=d?C[h]:o[h],S[h]=f&&"function"!=typeof C[h]?o[h]:v&&d?i(u,n):y&&C[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&&((S.virtual||(S.virtual={}))[h]=u,e&c.R&&w&&!w[h]&&s(w,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},2584:(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(2584)("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 S(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function w(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,C,b,_,R,T,x,E,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,z=null,k=t||{};void 0===k.moves&&(k.moves=p),void 0===k.accepts&&(k.accepts=p),void 0===k.invalid&&(k.invalid=function(){return!1}),void 0===k.containers&&(k.containers=e||[]),void 0===k.isContainer&&(k.isContainer=u),void 0===k.copy&&(k.copy=!1),void 0===k.copySortSource&&(k.copySortSource=!1),void 0===k.revertOnSpill&&(k.revertOnSpill=!1),void 0===k.removeOnSpill&&(k.removeOnSpill=!1),void 0===k.direction&&(k.direction="vertical"),void 0===k.ignoreInputTextSelection&&(k.ignoreInputTextSelection=!0),void 0===k.mirrorContainer&&(k.mirrorContainer=s.body);var A=n({containers:k.containers,start:function(e){var t=B(e);t&&F(t)},end:j,cancel:Y,remove:V,destroy:function(){N(!0),Z({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===k.removeOnSpill&&A.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){A.dragging&&i.add(e,"gu-hide")})),N(),A;function G(e){return-1!==A.containers.indexOf(e)||k.isContainer(e)}function N(e){var t=e?"remove":"add";l(a,t,"mousedown",L),l(a,t,"mouseup",Z)}function H(e){l(a,e?"remove":"add","mousemove",W)}function P(e){var t=e?"remove":"add";r[t](a,"selectstart",D),r[t](a,"click",D)}function D(e){I&&e.preventDefault()}function L(e){if(R=e.clientX,T=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=B(t);o&&(I=o,H(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function W(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==R||void 0===e.clientY||e.clientY!==T){if(k.ignoreInputTextSelection){var t=w("clientX",e),n=w("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;H(!0),P(),j(),F(r);var d,u={left:(d=C.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};b=w("pageX",e)-u.left,_=w("pageY",e)-u.top,i.add(O||C,"gu-transit"),function(){if(o)return;var e=C.getBoundingClientRect();(o=C.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),k.mirrorContainer.appendChild(o),l(a,"add","mousemove",Q),i.add(k.mirrorContainer,"gu-unselectable"),A.emit("cloned",o,C,"mirror")}(),Q(e)}}else Z({})}function B(e){if(!(A.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));){if(k.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!k.invalid(e,t))if(k.moves(e,n,t,S(e)))return{item:e,source:n}}}function F(e){var t,o;t=e.item,o=e.source,("boolean"==typeof k.copy?k.copy:k.copy(t,o))&&(O=e.item.cloneNode(!0),A.emit("cloned",O,e.item,"copy")),y=e.source,C=e.item,x=E=S(e.item),A.dragging=!0,A.emit("drag",C,y)}function j(){if(A.dragging){var e=O||C;$(e,g(e))}}function U(){I=!1,H(!0),P(!0)}function Z(e){if(U(),A.dragging){var t=O||C,n=w("clientX",e),r=w("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&k.copySortSource||!O||i!==y)?$(t,i):k.removeOnSpill?V():Y()}}function $(e,t){var o=g(e);O&&k.copySortSource&&t===y&&o.removeChild(C),K(t)?A.emit("cancel",e,y,y):A.emit("drop",e,t,y,E),q()}function V(){if(A.dragging){var e=O||C,t=g(e);t&&t.removeChild(e),A.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(A.dragging){var t=arguments.length>0?e:k.revertOnSpill,o=O||C,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,x)),r||t?A.emit("cancel",o,y,y):A.emit("drop",o,n,y,E),q()}}function q(){var e=O||C;U(),o&&(i.rm(k.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),A.dragging=!1,z&&A.emit("out",e,z,y),A.emit("dragend",e),y=C=O=x=E=M=z=null}function K(e,t){var n;return n=void 0!==t?t:o?E:S(O||C),e===y&&n===x}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===G(n))return!1;var r=J(n,e),i=ee(n,r,t,o);return!!K(n,i)||k.accepts(C,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=w("clientX",e),n=w("clientY",e),r=t-b,i=n-_;o.style.left=r+"px",o.style.top=i+"px";var s=O||C,a=d(o,t,n),l=X(a,t,n),c=null!==l&&l!==z;(c||null===l)&&(z&&f("out"),z=l,c&&f("over"));var h=g(s);if(l!==y||!O||k.copySortSource){var u,p=J(l,a);if(null!==p)u=ee(l,p,t,n);else{if(!0!==k.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=x,l=y}(null===u&&c||u!==s&&u!==S(s))&&(E=u,l.insertBefore(s,u),A.emit("shadow",s,l,y))}else h&&h.removeChild(s)}function f(e){A.emit(e,s,z,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"===k.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?S(t):t}}}},693:(e,t,o)=>{o.d(t,{Z:()=>sa});var n={};o.r(n),o.d(n,{types:()=>us});var r,i=o(4184),s=o.n(i),a=o(6689),l=o.n(a),c=o(5697),h=o.n(c),d=o(3524),u=o.n(d),p=o(9590),f=o.n(p),m=o(7418),g=o.n(m),v="bodyAttributes",y="htmlAttributes",S="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},C=(Object.keys(w).map((function(e){return w[e]})),"charset"),b="cssText",_="href",R="http-equiv",T="innerHTML",x="itemprop",E="name",O="property",M="rel",I="src",z="target",k={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},A="defaultTitle",G="defer",N="encodeSpecialCharacters",H="onChangeClientState",P="titleTemplate",D=Object.keys(k).reduce((function(e,t){return e[k[t]]=t,e}),{}),L=[w.NOSCRIPT,w.SCRIPT,w.STYLE],W="data-react-helmet",B="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},F=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},j=function(){function e(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,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),U=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},Z=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},$=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Y=function(e){var t=J(e,w.TITLE),o=J(e,P);if(o&&t)return o.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=J(e,A);return t||n||void 0},q=function(e){return J(e,H)||function(){}},K=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return U({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,o){if(!t.length)for(var n=Object.keys(o),r=0;r<n.length;r++){var i=n[r].toLowerCase();if(-1!==e.indexOf(i)&&o[i])return t.concat(o)}return t}),[])},Q=function(e,t,o){var n={};return o.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,o){var r={};o.filter((function(e){for(var o=void 0,i=Object.keys(e),s=0;s<i.length;s++){var a=i[s],l=a.toLowerCase();-1===t.indexOf(l)||o===M&&"canonical"===e[o].toLowerCase()||l===M&&"stylesheet"===e[l].toLowerCase()||(o=l),-1===t.indexOf(a)||a!==T&&a!==b&&a!==x||(o=a)}if(!o||!e[o])return!1;var c=e[o].toLowerCase();return n[o]||(n[o]={}),r[o]||(r[o]={}),!n[o][c]&&(r[o][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),s=0;s<i.length;s++){var a=i[s],l=g()({},n[a],r[a]);n[a]=l}return e}),[]).reverse()},J=function(e,t){for(var o=e.length-1;o>=0;o--){var n=e[o];if(n.hasOwnProperty(t))return n[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},oe="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:o.g.requestAnimationFrame||ee,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:o.g.cancelAnimationFrame||te,re=function(e){return console&&"function"==typeof console.warn&&void 0},ie=null,se=function(e,t){var o=e.baseTag,n=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,a=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,h=e.styleTags,d=e.title,u=e.titleAttributes;ce(w.BODY,n),ce(w.HTML,r),le(d,u);var p={baseTag:he(w.BASE,o),linkTags:he(w.LINK,i),metaTags:he(w.META,s),noscriptTags:he(w.NOSCRIPT,a),scriptTags:he(w.SCRIPT,c),styleTags:he(w.STYLE,h)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],o=t.newTags,n=t.oldTags;o.length&&(f[e]=o),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,f,m)},ae=function(e){return Array.isArray(e)?e.join(""):e},le=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ce(w.TITLE,t)},ce=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(W),r=n?n.split(","):[],i=[].concat(r),s=Object.keys(t),a=0;a<s.length;a++){var l=s[a],c=t[l]||"";o.getAttribute(l)!==c&&o.setAttribute(l,c),-1===r.indexOf(l)&&r.push(l);var h=i.indexOf(l);-1!==h&&i.splice(h,1)}for(var d=i.length-1;d>=0;d--)o.removeAttribute(i[d]);r.length===i.length?o.removeAttribute(W):o.getAttribute(W)!==s.join(",")&&o.setAttribute(W,s.join(","))}},he=function(e,t){var o=document.head||document.querySelector(w.HEAD),n=o.querySelectorAll(e+"["+W+"]"),r=Array.prototype.slice.call(n),i=[],s=void 0;return t&&t.length&&t.forEach((function(t){var o=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===T)o.innerHTML=t.innerHTML;else if(n===b)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var a=void 0===t[n]?"":t[n];o.setAttribute(n,a)}o.setAttribute(W,"true"),r.some((function(e,t){return s=t,o.isEqualNode(e)}))?r.splice(s,1):i.push(o)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return o.appendChild(e)})),{oldTags:r,newTags:i}},de=function(e){return Object.keys(e).reduce((function(t,o){var n=void 0!==e[o]?o+'="'+e[o]+'"':""+o;return t?t+" "+n:n}),"")},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[k[o]||o]=e[o],t}),t)},pe=function(e,t,o){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(n={key:e})[W]=!0,r=ue(o,n),[l().createElement(w.TITLE,r,e)];var e,o,n,r},toString:function(){return function(e,t,o,n){var r=de(o),i=ae(t);return r?"<"+e+" "+W+'="true" '+r+">"+V(i,n)+"</"+e+">":"<"+e+" "+W+'="true">'+V(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case v:case y:return{toComponent:function(){return ue(t)},toString:function(){return de(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var n,r=((n={key:o})[W]=!0,n);return Object.keys(t).forEach((function(e){var o=k[e]||e;if(o===T||o===b){var n=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:n}}else r[o]=t[e]})),l().createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,o){return t.reduce((function(t,n){var r=Object.keys(n).filter((function(e){return!(e===T||e===b)})).reduce((function(e,t){var r=void 0===n[t]?t:t+'="'+V(n[t],o)+'"';return e?e+" "+r:r}),""),i=n.innerHTML||n.cssText||"",s=-1===L.indexOf(e);return t+"<"+e+" "+W+'="true" '+r+(s?"/>":">"+i+"</"+e+">")}),"")}(e,t,o)}}}},fe=function(e){var t=e.baseTag,o=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,a=e.noscriptTags,l=e.scriptTags,c=e.styleTags,h=e.title,d=void 0===h?"":h,u=e.titleAttributes;return{base:pe(w.BASE,t,n),bodyAttributes:pe(v,o,n),htmlAttributes:pe(y,r,n),link:pe(w.LINK,i,n),meta:pe(w.META,s,n),noscript:pe(w.NOSCRIPT,a,n),script:pe(w.SCRIPT,l,n),style:pe(w.STYLE,c,n),title:pe(w.TITLE,{title:d,titleAttributes:u},n)}},me=function(e){var t,o;return o=t=function(t){function o(){return F(this,o),$(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,t),o.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},o.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(e){var t,o=e.child,n=e.arrayTypeChildren,r=e.newChildProps,i=e.nestedChildren;return U({},n,((t={})[o.type]=[].concat(n[o.type]||[],[U({},r,this.mapNestedChildrenToProps(o,i))]),t))},o.prototype.mapObjectTypeChildren=function(e){var t,o,n=e.child,r=e.newProps,i=e.newChildProps,s=e.nestedChildren;switch(n.type){case w.TITLE:return U({},r,((t={})[n.type]=s,t.titleAttributes=U({},i),t));case w.BODY:return U({},r,{bodyAttributes:U({},i)});case w.HTML:return U({},r,{htmlAttributes:U({},i)})}return U({},r,((o={})[n.type]=U({},i),o))},o.prototype.mapArrayTypeChildrenToProps=function(e,t){var o=U({},t);return Object.keys(e).forEach((function(t){var n;o=U({},o,((n={})[t]=e[t],n))})),o},o.prototype.warnOnInvalidChildren=function(e,t){return!0},o.prototype.mapChildrenToProps=function(e,t){var o=this,n={};return l().Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[D[o]||o]=e[o],t}),t)}(Z(r,["children"]));switch(o.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:n=o.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=o.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},o.prototype.render=function(){var t=this.props,o=t.children,n=Z(t,["children"]),r=U({},n);return o&&(r=this.mapChildrenToProps(o,r)),l().createElement(e,r)},j(o,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),o}(l().Component),t.propTypes={base:h().object,bodyAttributes:h().object,children:h().oneOfType([h().arrayOf(h().node),h().node]),defaultTitle:h().string,defer:h().bool,encodeSpecialCharacters:h().bool,htmlAttributes:h().object,link:h().arrayOf(h().object),meta:h().arrayOf(h().object),noscript:h().arrayOf(h().object),onChangeClientState:h().func,script:h().arrayOf(h().object),style:h().arrayOf(h().object),title:h().string,titleAttributes:h().object,titleTemplate:h().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=fe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o}(u()((function(e){return{baseTag:X([_,z],e),bodyAttributes:K(v,e),defer:J(e,G),encode:J(e,N),htmlAttributes:K(y,e),linkTags:Q(w.LINK,[M,_],e),metaTags:Q(w.META,[E,C,R,O,x],e),noscriptTags:Q(w.NOSCRIPT,[T],e),onChangeClientState:q(e),scriptTags:Q(w.SCRIPT,[I,T],e),styleTags:Q(w.STYLE,[b],e),title:Y(e),titleAttributes:K(S,e)}}),(function(e){ie&&ne(ie),e.defer?ie=oe((function(){se(e,(function(){ie=null}))})):(se(e),ie=null)}),fe)((function(){return null})));me.renderStatic=me.rewind;const ge=me;function ve(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 ye(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 Se(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=ye(r,e,t+1/3),s=ye(r,e,t),a=ye(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 we=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function Ce(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*ve(e.charCodeAt(1))+ve(e.charCodeAt(2)),g:16*ve(e.charCodeAt(3))+ve(e.charCodeAt(4)),b:16*ve(e.charCodeAt(5))+ve(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*ve(e.charCodeAt(1))+ve(e.charCodeAt(2)),g:16*ve(e.charCodeAt(3))+ve(e.charCodeAt(4)),b:16*ve(e.charCodeAt(5))+ve(e.charCodeAt(6)),a:(16*ve(e.charCodeAt(7))+ve(e.charCodeAt(8)))/255};if(4===t){const t=ve(e.charCodeAt(1)),o=ve(e.charCodeAt(2)),n=ve(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=ve(e.charCodeAt(1)),o=ve(e.charCodeAt(2)),n=ve(e.charCodeAt(3)),r=ve(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=we.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?Se({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 be=e=>{return"hsla"===(t=Ce(e)).type&&(t=Se(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};var _e=o(827),Re=o(3308);const Te=e=>!(e===_e.o$||e===_e.lH),xe=/^.*(:?\n){0,2}/m;const Ee=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;const Oe={"--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"};function Me(e){return`--column-${e}-color`}function Ie(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{...Oe,...e}}(t)}const ze=/(?<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,ke=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,Ae=new Map;let Ge;const Ne=["th","st","nd","rd"];function He(e){const t=e%100;return`${e}${Ne[(t-20)%10]??Ne[t]??Ne[0]}`}function Pe(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=Ae.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=ke.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(ze))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?Ge:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&Ae.set(r,i)}if(null==t||ke.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=Ae.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?Ge:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&Ae.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(ze,((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 He(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""}))}function De(e,t,o){return(e=e<=o?e:o)>=t?e:t}const Le={HEAD:"head",REMOTE:"remote",TAG:"tag"};var We=o(9453);const Be=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Fe(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function je(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)}}function Ue(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,We.AI),null)}function Ze(e,t){if(t.id)return t.id;const o=t.owner||"";return e===Le.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function $e(e){return Ze(e.refType,e)}function Ve(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 Ye(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 qe(e,t){let o=0;for(const n of e)t&&n.type===t||(o+=n.currentWidth);return o}const Ke=(e,t)=>e===t[t.length-1].type;function Xe(e,t,o){return De(o,e.minimumWidth||0,e.maximumWidth&&!Ke(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function Qe(e,t){return t.find((({type:t})=>t===e))}function Je(e,t){return t.findIndex((({type:t})=>t===e))}function et(e,t,o){let n=0,r=0;const i=Je(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 tt(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function ot(e){return!!e&&Object.values(e).some((e=>e>0))}function nt(e){return 1===Object.keys(e).length}function rt(e,t){return!0===e[t]&&nt(e)}function it(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:Le.HEAD}))):[],s=n?n.map((e=>({...e,refType:Le.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:Le.REMOTE}))):[],...s]}function st(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===Le.HEAD?e.unshift(r):e.push(r),n=!0;break}n||t.push([r])}return t}class at{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=Qe(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?it(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?st(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e){return function(e,t){return Qe(e,t)?.currentWidth||Re.qi[e].minimumWidth}(e,this.props.graphZones)}isDateTimeZoneActive(){return Boolean(this.getActiveGraphZone(Re.PL))}isFirstRow(e){return 0===e}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 Ke(e,this.props.graphZones)}getSelectedRefGroupByName(){if(nt(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return st(it(t,this.props.showRemoteNamesOnRefs))}}return[]}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===Le.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===Le.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===Le.REMOTE&&t.owner===e.owner))))&&!l.some((e=>e.name===n&&o.some((e=>e.refType===Le.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)&&rt(this.props.isSelectedBySha,t)}hasTimeline(e){return Boolean(this.props.processedRows[e]?.timeLineEntry)&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return tt(e)}}const lt={"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":"Add/Remove Columns","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","Ref-Current":"current","Ref-Local":"local","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",Hide:"Hide",Show:"Show"};const ct={};function ht(e){let t=ct[e];return t||(t=Re.Cc+e*Re.yW+Re.yW/2,ct[e]=t,t)}const dt={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 ut(e,t){let o="";for(const[e,n]of Object.entries(dt)){const r=t[n];r&&(o+=` ${e}="${r}"`)}return`<${e}${o} />`}function pt(e){return ut("line",e)}function ft(e,t){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:Re.F0,strokeDasharray:Te(e)?2:0,stroke:t}}function mt(e,t,o){return`${e}_${t}_${o||"+"}`}function gt(e,t){return`${e}_${t||"+"}`}const vt={0:1,90:0,180:-1,270:0},yt={0:0,90:1,180:0,270:-1},St=Re.O5-Re.NP,wt=` A ${St} ${St} 0 0 0 `;function Ct(e,t,o){const n=vt[o],r=yt[o];return{x:e-Re.O5*n,xOffset:-n*Re.NP,y:t+Re.O5*r,yOffset:r*Re.NP}}const bt={};var _t=function(e,t,o,n,r,i){const s=ft(n,e);return s.d=function(e,t,o,n){const r=`${e}_${t}_${o}_${n}`;let i=bt[r];if(i)return i;const s=Ct(e,t,n),a=Ct(e,t,o);return i=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${wt}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,bt[r]=i,i}(r,i,o,t),ut("path",s)};let Rt={};function Tt(e,t,o,n){const r=mt(e,t,o);let i=Rt[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ft(o,e);return n.x1=ht(t),n.x2=ht(t),n.y1=0,n.y2=Re.at/2,pt(n)}(n[e],t,o):function(e,t,o,n){const r=ft(n,e),i={...r};i.x1=ht(o),i.x2=ht(o),i.y1=0,i.y2=Re.An;const s={...r};return s.x1=ht(o<t?o:o-1)+Re.yW/2,s.x2=ht(t),s.y1=Re.at/2,s.y2=Re.at/2,`<g>${pt(i)}${_t(e,t>o?0:90,t>o?90:180,n,ht(o)+(t<o?-Re.yW/2:Re.yW/2),Re.An)}${pt(s)}</g>`}(n[e],t,e,o),Rt[r]=i,i)}let xt={};function Et(e,t,o){const n=gt(e,t);let r=xt[n];if(r)return r;const i=ht(e),s=ft(t,o[e]);return s.x1=i,s.x2=i,s.y1=0,s.y2=Re.at,r=pt(s),xt[n]=r,r}let Ot={};function Mt(e,t,o,n){const r=mt(e,t,o);let i=Ot[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ft(o,e);return n.x1=ht(t),n.x2=ht(t),n.y1=Re.at/2,n.y2=Re.at,pt(n)}(n[e],t,o):function(e,t,o,n){const r=ft(n,e),i={...r};i.x1=ht(o),i.x2=ht(o),i.y1=Re.at-Re.$s,i.y2=Re.at;const s={...r};return s.x1=ht(o<t?o:o-1)+Re.yW/2,s.x2=ht(t),s.y1=Re.at/2,s.y2=Re.at/2,`<g>${_t(e,t<o?180:270,t<o?270:0,n,ht(o)+(t<o?-Re.yW/2:Re.yW/2),Re.at-Re.$s)}${pt(i)}${pt(s)}</g>`}(n[e],t,e,o),Ot[r]=i,i)}let It={};function zt(e,t,o,n){const r=function(e,t,o){let n="";for(let r=0;r<=t;r++){const{passThrough:t,starting:i,ending:s}=e[r]??{};n=`${n}_${mt(r,o,i?.type)}_${mt(r,o,s?.type)}_${gt(r,t?.type)}`}return n}(e,t,o);let i=It[r];if(i)return i;let s="";for(let r=0;r<=t;r+=1){const t=e[r];if(!t)continue;const{passThrough:i,starting:a,ending:l}=t;s+=a?Mt(r,o,a.type,n):"",s+=i?Et(r,i.type,n):"",s+=l?Tt(r,o,l.type,n):""}return i=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${s}</g></svg>')`,It[r]=i,i}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e){return At="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},At(e)}function Gt(e){var t=function(e,t){if("object"!==At(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===At(t)?t:String(t)}function Nt(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,Gt(n.key),n)}}function Ht(e,t,o){return t&&Nt(e.prototype,t),o&&Nt(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dt(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}function Lt(e){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(e)}function Wt(e,t){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wt(e,t)}function Bt(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&&Wt(e,t)}function Ft(e,t,o){return(t=Gt(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var jt=o(6871);function Ut(){return Ut=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},Ut.apply(this,arguments)}function Zt(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=Zt(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const $t=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=Zt(e))&&(n&&(n+=" "),n+=t);return n};function Vt(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 Yt(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 qt=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;kt(this,e),Ft(this,"_cellSizeAndPositionData",{}),Ft(this,"_lastMeasuredIndex",-1),Ft(this,"_lastBatchedIndex",-1),Ft(this,"_cellCount",void 0),Ft(this,"_cellSizeGetter",void 0),Ft(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return Ht(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}(),Kt=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Xt=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?Kt():o,r=Yt(t,["maxScrollSize"]);kt(this,e),Ft(this,"_cellSizeAndPositionManager",void 0),Ft(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new qt(r),this._maxScrollSize=n}return Ht(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 Qt(){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 Jt=-1,eo=1;function to(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 oo=!("undefined"==typeof window||!window.document||!window.document.createElement);var no,ro;function io(e){if((!no&&0!==no||e)&&oo){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),no=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return no}var so,ao,lo=(ro="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||ro.webkitRequestAnimationFrame||ro.mozRequestAnimationFrame||ro.oRequestAnimationFrame||ro.msRequestAnimationFrame||function(e){return ro.setTimeout(e,1e3/60)},co=ro.cancelAnimationFrame||ro.webkitCancelAnimationFrame||ro.mozCancelAnimationFrame||ro.oCancelAnimationFrame||ro.msCancelAnimationFrame||function(e){ro.clearTimeout(e)},ho=lo,uo=co,po=function(e){return uo(e.id)},fo=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:ho((function r(){Date.now()-o>=t?e.call():n.id=ho(r)}))};return n};function mo(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 go(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?mo(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):mo(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var vo="observed",yo="requested",So=(ao=so=function(e){function t(e){var o;kt(this,t),Ft(Pt(o=Dt(this,Lt(t).call(this,e))),"_onGridRenderedMemoizer",Qt()),Ft(Pt(o),"_onScrollMemoizer",Qt(!1)),Ft(Pt(o),"_deferredInvalidateColumnIndex",null),Ft(Pt(o),"_deferredInvalidateRowIndex",null),Ft(Pt(o),"_recomputeScrollLeftFlag",!1),Ft(Pt(o),"_recomputeScrollTopFlag",!1),Ft(Pt(o),"_horizontalScrollBarSize",0),Ft(Pt(o),"_verticalScrollBarSize",0),Ft(Pt(o),"_scrollbarPresenceChanged",!1),Ft(Pt(o),"_scrollingContainer",void 0),Ft(Pt(o),"_childrenToDisplay",void 0),Ft(Pt(o),"_columnStartIndex",void 0),Ft(Pt(o),"_columnStopIndex",void 0),Ft(Pt(o),"_rowStartIndex",void 0),Ft(Pt(o),"_rowStopIndex",void 0),Ft(Pt(o),"_renderedColumnStartIndex",0),Ft(Pt(o),"_renderedColumnStopIndex",0),Ft(Pt(o),"_renderedRowStartIndex",0),Ft(Pt(o),"_renderedRowStopIndex",0),Ft(Pt(o),"_initialScrollTop",void 0),Ft(Pt(o),"_initialScrollLeft",void 0),Ft(Pt(o),"_disablePointerEventsTimeoutId",void 0),Ft(Pt(o),"_styleCache",{}),Ft(Pt(o),"_cellCache",{}),Ft(Pt(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),Ft(Pt(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}})})),Ft(Pt(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),Ft(Pt(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),Ft(Pt(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new Xt({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new Xt({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:eo,scrollDirectionVertical:eo,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 Bt(t,e),Ht(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=go({},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?eo:Jt:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?eo:Jt:this.state.scrollDirectionVertical,scrollPositionChangeReason:vo};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?eo:Jt:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?eo:Jt:this.state.scrollDirectionVertical,scrollPositionChangeReason:yo};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&&(this.state.scrollDirectionHorizontal===eo?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(this.state.scrollDirectionVertical===eo?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(go({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(go({},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=go({},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===yo&&(!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 S=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):to({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:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):to({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:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var w=v.rowSizeAndPositionManager.getTotalSize(),C=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:C,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&po(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,s=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,S=this._isScrolling(),w={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 C=v.columnSizeAndPositionManager.getTotalSize(),b=v.rowSizeAndPositionManager.getTotalSize(),_=b>c?v.scrollbarSize:0,R=C>m?v.scrollbarSize:0;R===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),w.overflowX=C+_<=m?"hidden":"auto",w.overflowY=b+R<=c?"hidden":"auto";var T=this._childrenToDisplay,x=0===T.length&&c>0&&m>0;return a.createElement("div",Ut({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:$t("ReactVirtualized__Grid",r),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:go({},w,{},p),tabIndex:f}),T.length>0&&a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:go({width:t?"auto":C,height:b,maxWidth:C,maxHeight:b,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"},l)},T),x&&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 S=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),C=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),b=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var _=l({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),R=l({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),T=_.overscanStartIndex,x=_.overscanStopIndex,E=R.overscanStartIndex,O=R.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=E;M<=O;M++)if(!i.has(M,0)){T=0,x=r-1;break}if(!i.hasFixedWidth())for(var I=T;I<=x;I++)if(!i.has(0,I)){E=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:x,deferredMeasurementCache:i,horizontalOffsetAdjustment:C,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:b,visibleColumnIndices:S,visibleRowIndices:w}),this._columnStartIndex=T,this._columnStopIndex=x,this._rowStartIndex=E,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&po(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=fo(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}),Vt({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)}}),Vt({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,go({},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:yo};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?eo:Jt,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?eo:Jt,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}(a.PureComponent),Ft(so,"propTypes",null),ao);Ft(So,"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=[],S=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),w=!l&&!S,C=u;C<=p;C++)for(var b=d.getSizeAndPositionOfCell(C),_=r;_<=i;_++){var R=n.getSizeAndPositionOfCell(_),T=_>=g.start&&_<=g.stop&&C>=v.start&&C<=v.stop,x="".concat(C,"-").concat(_),E=void 0;w&&f[x]?E=f[x]:s&&!s.has(C,_)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:b.size,left:R.offset+a,position:"absolute",top:b.offset+m,width:R.size},f[x]=E);var O={columnIndex:_,isScrolling:l,isVisible:T,key:x,parent:h,rowIndex:C,style:E},M=void 0;!c&&!l||a||m?M=o(O):(t[x]||(t[x]=o(O)),M=t[x]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:io,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 n===eo?{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,jt.polyfill)(So);const wo=So;var Co=1;function bo(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),n===Co?{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 _o,Ro;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}var xo=(Ro=_o=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Ft(Pt(o),"_columnStartIndex",0),Ft(Pt(o),"_columnStopIndex",0),Ft(Pt(o),"_rowStartIndex",0),Ft(Pt(o),"_rowStopIndex",0),Ft(Pt(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}))}})),Ft(Pt(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 Bt(t,e),Ht(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 a.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?To(o,!0).forEach((function(t){Ft(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}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(a.PureComponent),Ft(_o,"propTypes",null),Ro);Ft(xo,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,jt.polyfill)(xo);function Eo(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 Oo,Mo;function Io(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 zo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Io(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Io(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ko=(Mo=Oo=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),Ft(Pt(o),"_parentNode",void 0),Ft(Pt(o),"_autoSizer",void 0),Ft(Pt(o),"_window",void 0),Ft(Pt(o),"_detectElementResize",void 0),Ft(Pt(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}))}})),Ft(Pt(o),"_setRef",(function(e){o._autoSizer=e})),o}return Bt(t,e),Ht(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=Eo(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,s=this.state,l=s.height,c=s.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=l),r||(h.width=0,d.width=c),a.createElement("div",{className:o,ref:this._setRef,style:zo({},h,{},i)},t(d))}}]),t}(a.Component),Ft(Oo,"propTypes",null),Mo);Ft(ko,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Ao,Go,No=o(6405),Ho=o.n(No),Po=(Go=Ao=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"_child",void 0),Ft(Pt(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}))})),Ft(Pt(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return Bt(t,e),Ht(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,No.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}(a.PureComponent),Ft(Ao,"propTypes",null),Go);Ft(Po,"__internalCellMeasurerFlag",!1);function Do(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 Lo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Do(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Do(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Wo={OBSERVED:"observed",REQUESTED:"requested"},Bo=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Ft(Pt(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),Ft(Pt(o),"_onSectionRenderedMemoizer",Qt()),Ft(Pt(o),"_onScrollMemoizer",Qt(!1)),Ft(Pt(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),Ft(Pt(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ft(Pt(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)}})),Ft(Pt(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?Wo.OBSERVED:Wo.REQUESTED;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=io(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return Bt(t,e),Ht(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=io(),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===Wo.REQUESTED&&(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,s=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,S=v.width,w=Math.max(0,m-s),C=Math.max(0,g-d),b=Math.min(S,m+u+s),_=Math.min(y,g+i+d),R=i>0&&u>0?n.cellRenderers({height:_-C,isScrolling:f,width:b-w,x:w,y:C}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},x=y>i?this._scrollbarSize:0,E=S>u?this._scrollbarSize:0;return T.overflowX=S+x<=u?"hidden":"auto",T.overflowY=y+E<=i?"hidden":"auto",a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$t("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:Lo({},T,{},h),tabIndex:0},o>0&&a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:S,overflow:"hidden",pointerEvents:f?"none":"",width:S}},R),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:Wo.REQUESTED};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:Wo.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Wo.REQUESTED}}}]),t}(a.PureComponent);Ft(Bo,"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}),Bo.propTypes={},(0,jt.polyfill)(Bo);const Fo=Bo;var jo=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;kt(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Ht(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}(),Uo=100,Zo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uo;kt(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Ht(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 jo({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 $o(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 Vo=function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(Pt(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(Pt(n)),n}return Bt(t,e),Ht(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=Ut({},this.props);return a.createElement(Fo,Ut({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 Zo(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=$o({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:r,targetIndex:o}),i=$o({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}(a.PureComponent);Ft(Vo,"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}))}}),Vo.propTypes={};(function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o)))._registerChild=n._registerChild.bind(Pt(n)),n}return Bt(t,e),Ht(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}(a.PureComponent)).propTypes={};function Yo(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 qo(e,t){if(e){if("string"==typeof e)return Yo(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)?Yo(e,t):void 0}}function Ko(e){return function(e){if(Array.isArray(e))return Yo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qo(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 Xo=function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o)))._loadMoreRowsMemoizer=Qt(),n._onRowsRendered=n._onRowsRendered.bind(Pt(n)),n._registerChild=n._registerChild.bind(Pt(n)),n}return Bt(t,e),Ht(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Qt(),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,Ko(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}(a.PureComponent);Ft(Xo,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Xo.propTypes={};var Qo,Jo,en=(Jo=Qo=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),Ft(Pt(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})})),Ft(Pt(o),"_setRef",(function(e){o.Grid=e})),Ft(Pt(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ft(Pt(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Ft(Pt(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 Bt(t,e),Ht(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=$t("ReactVirtualized__List",t);return a.createElement(wo,Ut({},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}(a.PureComponent),Ft(Qo,"propTypes",null),Jo);function tn(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)||qo(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.")}()}Ft(en,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:bo,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const on={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)}};var nn=0,rn=1;function sn(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 an=sn.prototype;function ln(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 cn(e,t){var o=yn(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 hn(e,t){var o=e.intervals([]);o.push(t),cn(e,o)}function dn(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?nn:(o.splice(n,1),cn(e,o),rn)}function un(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 pn(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 fn(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function mn(e,t){return e-t}function gn(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function vn(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function yn(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(mn);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(gn),c.sort(vn),new sn(n,yn(r),yn(i),l,c)}function Sn(e){this.root=e}an.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},an.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)?hn(this,e):this.left.insert(e):this.left=yn([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?hn(this,e):this.right.insert(e):this.right=yn([e]);else{var o=on.ge(this.leftPoints,e,gn),n=on.ge(this.rightPoints,e,vn);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},an.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)?dn(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,rn):(i===rn&&(this.count-=1),i):nn;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?dn(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,rn):(i===rn&&(this.count-=1),i):nn;if(1===this.count)return this.leftPoints[0]===e?2:nn;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}ln(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ln(this,this.left):ln(this,this.right);return rn}for(r=on.ge(this.leftPoints,e,gn);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=on.ge(this.rightPoints,e,vn);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),rn}return nn},an.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return un(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return pn(this.rightPoints,e,t)}return fn(this.leftPoints,t)},an.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?un(this.leftPoints,t,o):e>this.mid?pn(this.rightPoints,e,o):fn(this.leftPoints,o)};var wn=Sn.prototype;wn.insert=function(e){this.root?this.root.insert(e):this.root=new sn(e[0],null,null,[e],[e])},wn.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==nn}return!1},wn.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},wn.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(wn,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(wn,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Cn,bn,_n=function(){function e(){var t;kt(this,e),Ft(this,"_columnSizeMap",{}),Ft(this,"_intervalTree",t&&0!==t.length?new Sn(yn(t)):new Sn(null)),Ft(this,"_leftMap",{})}return Ht(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=tn(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 Rn(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 Tn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rn(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rn(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var xn=(bn=Cn=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),Ft(Pt(o),"_debounceResetIsScrollingId",void 0),Ft(Pt(o),"_invalidateOnUpdateStartIndex",null),Ft(Pt(o),"_invalidateOnUpdateStopIndex",null),Ft(Pt(o),"_positionCache",new _n),Ft(Pt(o),"_startIndex",null),Ft(Pt(o),"_startIndexMemoized",null),Ft(Pt(o),"_stopIndex",null),Ft(Pt(o),"_stopIndexMemoized",null),Ft(Pt(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),Ft(Pt(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Ft(Pt(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 Bt(t,e),Ht(t,[{key:"clearCellPositions",value:function(){this._positionCache=new _n,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 _n,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&&po(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,s=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,S=y.isScrolling,w=y.scrollTop,C=[],b=this._getEstimatedTotalHeight(),_=this._positionCache.shortestColumnSize,R=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-u),c+2*u,(function(o,n,r){var a;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),C.push(s({index:o,isScrolling:S,key:d(o),parent:t,style:(a={height:i.getHeight(o)},Ft(a,"ltr"===v?"left":"right",n),Ft(a,"position","absolute"),Ft(a,"top",r),Ft(a,"width",i.getWidth(o)),a)}))})),_<w+c+u&&R<r)for(var x=Math.min(r-R,Math.ceil((w+c+u-_)/i.defaultHeight*g/i.defaultWidth)),E=R;E<R+x;E++)e=E,C.push(s({index:E,isScrolling:S,key:d(E),parent:this,style:{width:i.getWidth(E)}}));return this._startIndex=T,this._stopIndex=e,a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:$t("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:p,style:Tn({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:b<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},a.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:b,maxWidth:"100%",maxHeight:b,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"}},C))}},{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&&po(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=fo(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}(a.PureComponent),Ft(Cn,"propTypes",null),bn);function En(){}Ft(xn,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:En,onScroll:En,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,jt.polyfill)(xn);var On=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};kt(this,e),Ft(this,"_cellMeasurerCache",void 0),Ft(this,"_columnIndexOffset",void 0),Ft(this,"_rowIndexOffset",void 0),Ft(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),Ft(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 Ht(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 Mn(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 In(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Mn(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Mn(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var zn=20,kn=function(e){function t(e,o){var n;kt(this,t),Ft(Pt(n=Dt(this,Lt(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Ft(Pt(n),"_deferredInvalidateColumnIndex",null),Ft(Pt(n),"_deferredInvalidateRowIndex",null),Ft(Pt(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),Ft(Pt(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),Ft(Pt(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=Yt(e,["rowIndex"]),r=n.props,i=r.cellRenderer,s=r.fixedRowCount;return t===r.rowCount-s?a.createElement("div",{key:o.key,style:In({},o.style,{height:zn})}):i(In({},o,{parent:Pt(n),rowIndex:t+s}))})),Ft(Pt(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=Yt(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,a=i.fixedColumnCount,l=i.fixedRowCount;return s(In({},r,{columnIndex:t+a,parent:Pt(n),rowIndex:o+l}))})),Ft(Pt(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=Yt(e,["columnIndex"]),r=n.props,i=r.cellRenderer,s=r.columnCount,l=r.fixedColumnCount;return t===s-l?a.createElement("div",{key:o.key,style:In({},o.style,{width:zn})}):i(In({},o,{columnIndex:t+l,parent:Pt(n)}))})),Ft(Pt(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})),Ft(Pt(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)})),Ft(Pt(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})}})),Ft(Pt(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),Ft(Pt(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),Ft(Pt(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})),Ft(Pt(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),Ft(Pt(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var r=e.deferredMeasurementCache,i=e.fixedColumnCount,s=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),r&&(n._deferredMeasurementCacheBottomLeftGrid=s>0?new On({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:s}):r,n._deferredMeasurementCacheBottomRightGrid=i>0||s>0?new On({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:s}):r,n._deferredMeasurementCacheTopRightGrid=i>0?new On({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),n}return Bt(t,e),Ht(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=Yt(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,l=s.scrollLeft,c=s.scrollTop;return a.createElement("div",{style:this._containerOuterStyle},a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(In({},i,{onScroll:t,scrollLeft:l}))),a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(In({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(In({},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=In({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=In({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=In({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=In({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=In({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,s=this.state.showVerticalScrollbar;if(!o)return null;var l=s?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?h+d:h,p=a.createElement(wo,Ut({},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?a.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:In({},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,s=e.scrollToRow;return a.createElement(wo,Ut({},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:s-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?a.createElement(wo,Ut({},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,s=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;s&&(m=u+f,g=In({},this._topRightGridStyle,{left:0}));var v=a.createElement(wo,Ut({},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 s?a.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:In({},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}(a.PureComponent);Ft(kn,"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}),kn.propTypes={},(0,jt.polyfill)(kn);(function(e){function t(e,o){var n;return kt(this,t),(n=Dt(this,Lt(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(Pt(n)),n}return Bt(t,e),Ht(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}(a.PureComponent)).propTypes={};function An(e){var t=e.className,o=e.columns,n=e.style;return a.createElement("div",{className:t,role:"row",style:n},o)}An.propTypes=null;const Gn={ASC:"ASC",DESC:"DESC"};function Nn(e){var t=e.sortDirection,o=$t("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Gn.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Gn.DESC});return a.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Gn.ASC?a.createElement("path",{d:"M7 14l5-5 5 5z"}):a.createElement("path",{d:"M7 10l5 5 5-5z"}),a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Hn(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,s=[a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&s.push(a.createElement(Nn,{key:"SortIndicator",sortDirection:r})),s}function Pn(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(i||s||l||c||h)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:n,rowData:d})}),s&&(p.onDoubleClick=function(e){return s({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})})),a.createElement("div",Ut({},p,{className:t,key:r,role:"row",style:u}),o)}Nn.propTypes={},Hn.propTypes=null,Pn.propTypes=null;var Dn=function(e){function t(){return kt(this,t),Dt(this,Lt(t).apply(this,arguments))}return Bt(t,e),t}(a.Component);function Ln(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 Wn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ln(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ln(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Ft(Dn,"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:Gn.ASC,flexGrow:0,flexShrink:1,headerRenderer:Hn,style:{}}),Dn.propTypes={};var Bn=function(e){function t(e){var o;return kt(this,t),(o=Dt(this,Lt(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(Pt(o)),o._createRow=o._createRow.bind(Pt(o)),o._onScroll=o._onScroll.bind(Pt(o)),o._onSectionRendered=o._onSectionRendered.bind(Pt(o)),o._setRef=o._setRef.bind(Pt(o)),o}return Bt(t,e),Ht(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,No.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,s=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,S=r?h:h-l,w="function"==typeof p?p({index:-1}):p,C="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],a.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Wn({overflow:"hidden"},n)})),a.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":a.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:$t("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!r&&c({className:$t("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Wn({height:l,overflow:"hidden",paddingRight:y,width:v},C)}),a.createElement(wo,Ut({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:$t("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:S,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Wn({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,s=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:s}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return a.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:$t("ReactVirtualized__Table__rowColumn",u),key:"Row"+s+"-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,s=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=s.props,v=g.columnData,y=g.dataKey,S=g.defaultSortDirection,w=g.disableSort,C=g.headerRenderer,b=g.id,_=g.label,R=!w&&p,T=$t("ReactVirtualized__Table__headerColumn",h,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),x=this._getFlexStyleForColumn(s,Wn({},d,{},s.props.headerStyle)),E=C({columnData:v,dataKey:y,disableSort:w,label:_,sortBy:f,sortDirection:m});if(R||u){var O=f!==y?S:m===Gn.DESC?Gn.ASC:Gn.DESC,M=function(e){R&&p({defaultSortDirection:S,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};i=s.props["aria-label"]||_||y,r="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(r=m===Gn.ASC?"ascending":"descending"),a.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:b,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:x,tabIndex:n},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,s=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,S=this.state.scrollbarWidth,w="function"==typeof m?m({index:o}):m,C="function"==typeof y?y({index:o}):y,b=g({index:o}),_=a.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:b,rowIndex:o,scrollbarWidth:S})})),R=$t("ReactVirtualized__Table__row",w),T=Wn({},s,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:S},C);return v({className:R,columns:_,index:o,isScrolling:n,key:r,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:b,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=Wn({},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?[]:a.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}(a.PureComponent);Ft(Bn,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:bo,overscanRowCount:10,rowRenderer:Pn,headerRowRenderer:An,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Bn.propTypes={};var Fn=[],jn=null,Un=null;function Zn(){Un&&(Un=null,document.body&&null!=jn&&(document.body.style.pointerEvents=jn),jn=null)}function $n(){Zn(),Fn.forEach((function(e){return e.__resetIsScrolling()}))}function Vn(e){e.currentTarget===window&&null==jn&&document.body&&(jn=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Un&&po(Un);var e=0;Fn.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Un=fo($n,e)}(),Fn.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Yn(e,t){Fn.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Vn),Fn.push(e)}function qn(e,t){(Fn=Fn.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Vn),Un&&(po(Un),Zn()))}var Kn,Xn,Qn=function(e){return e===window},Jn=function(e){return e.getBoundingClientRect()};function er(e,t){if(e){if(Qn(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return Jn(e)}return{height:t.serverHeight,width:t.serverWidth}}function tr(e){return Qn(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 or(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 nr=function(){return"undefined"!=typeof window?window:void 0},rr=(Xn=Kn=function(e){function t(){var e,o;kt(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ft(Pt(o=Dt(this,(e=Lt(t)).call.apply(e,[this].concat(r)))),"_window",nr()),Ft(Pt(o),"_isMounted",!1),Ft(Pt(o),"_positionFromTop",0),Ft(Pt(o),"_positionFromLeft",0),Ft(Pt(o),"_detectElementResize",void 0),Ft(Pt(o),"_child",void 0),Ft(Pt(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?or(o,!0).forEach((function(t){Ft(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):or(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},er(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),Ft(Pt(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),Ft(Pt(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)}})),Ft(Pt(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),Ft(Pt(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),Ft(Pt(o),"_onResize",(function(){o.updatePosition()})),Ft(Pt(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=tr(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})}}})),Ft(Pt(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return Bt(t,e),Ht(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||No.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(Qn(t)&&document.documentElement){var o=document.documentElement,n=Jn(e),r=Jn(o);return{top:n.top-r.top,left:n.left-r.left}}var i=tr(t),s=Jn(e),a=Jn(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=er(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=Eo(),this.updatePosition(e),e&&(Yn(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),qn(this,n),Yn(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(qn(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}(a.PureComponent),Ft(Kn,"propTypes",null),Xn);Ft(rr,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:nr(),serverHeight:0,serverWidth:0});var ir,sr=(ir=function(e,t){return ir=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])},ir(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}ir(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),ar=function(){return ar=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},ar.apply(this,arguments)},lr={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"}},cr=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 sr(t,e),t.prototype.render=function(){return a.createElement("div",{className:this.props.className||"",style:ar(ar({position:"absolute",userSelect:"none"},lr[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(a.PureComponent),hr=o(3316),dr=o.n(hr),ur=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)}}(),pr=function(){return pr=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},pr.apply(this,arguments)},fr={width:"auto",height:"auto"},mr=dr()((function(e,t,o){return Math.max(Math.min(e,o),t)})),gr=dr()((function(e,t){return Math.round(e/t)*t})),vr=dr()((function(e,t){return new RegExp(e,"i").test(t)})),yr=function(e){return Boolean(e.touches&&e.touches.length)},Sr=dr()((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})),wr=dr()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Cr=dr()((function(e){return"auto"===(e=e.toString())||wr(e,"px")||wr(e,"%")||wr(e,"vh")||wr(e,"vw")||wr(e,"vmax")||wr(e,"vmin")?e:e+"px"})),br=function(e,t,o,n){if(e&&"string"==typeof e){if(wr(e,"px"))return Number(e.replace("px",""));if(wr(e,"%"))return t*(Number(e.replace("%",""))/100);if(wr(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(wr(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},_r=dr()((function(e,t,o,n,r,i,s){return n=br(n,e.width,t,o),r=br(r,e.height,t,o),i=br(i,e.width,t,o),s=br(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)}})),Rr=["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"],Tr="__resizable_base__",xr=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(Tr):t.className+=Tr,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 ur(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||fr},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]&&wr(e.propsSize[t].toString(),"%")){if(wr(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 Cr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Cr(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Cr(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&&vr("left",i),a=r&&vr("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 vr("right",i)&&(d=s.width+(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),vr("left",i)&&(d=s.width-(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),vr("bottom",i)&&(u=s.height+(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),vr("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),S=Math.min(c,m),w=Math.max(h,g),C=Math.min(d,v);e=mr(e,y,S),t=mr(t,w,C)}else e=mr(e,l,c),t=mr(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&&yr(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:pr(pr({},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&&yr(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=yr(e)?e.touches[0].clientX:e.clientX,a=yr(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=_r(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),S=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=S.newWidth,g=S.newHeight,this.props.grid){var w=gr(v,this.props.grid[0]),C=gr(g,this.props.grid[1]),b=this.props.snapGap||0;v=0===b||Math.abs(w-v)<=b?w:v,g=0===b||Math.abs(C-g)<=b?C:g}this.props.snap&&this.props.snap.x&&(v=Sr(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=Sr(g,this.props.snap.y,this.props.snapGap));var _={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(wr(d,"%"))v=v/p.width*100+"%";else if(wr(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(wr(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(wr(u,"%"))g=g/p.height*100+"%";else if(wr(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(wr(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var R={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?R.flexBasis=R.width:"column"===this.flexDir&&(R.flexBasis=R.height),this.setState(R),this.props.onResize&&this.props.onResize(e,c,this.resizable,_)}},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:pr(pr({},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,s=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?a.createElement(cr,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:r&&r[t]},l&&l[t]?l[t]:null):null}));return a.createElement("div",{className:s,style:i},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Rr.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=pr(pr(pr({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 a.createElement(n,pr({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&a.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}(a.PureComponent);const Er="bottom",Or="left",Mr="right",Ir="top",zr={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},kr={min:0,max:1/0},Ar=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:De(e,t.min,t.max),width:De(o,n.min,n.max)}),Gr=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...Ar({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Or||n===Mr,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Ir||n===Er});class Nr extends l().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:kr,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:kr};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=Gr(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=Gr(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})=>Ar({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})}),10)};render(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:i,style:a,translate:c,heightConstraints:h,wrapChildrenInDivContainer:d,widthConstraints:u}=this.props,{enable:p,height:f,horizontal:m,resizing:g,vertical:v,width:y,isMouseWheeling:S}=this.state,{display:w,...C}=a,{min:b,max:_}=u,{min:R,max:T}=h,x={...this.props.wrapperStyle};m&&(x.width=y,x.minWidth=y),v&&(x.height=f,x.minHeight=f);const E=s()("resizable",t,{resizing:g}),O=s()("contents",n,`resize-edge-${r}`,{horizontal:m,vertical:v}),M=s()(r,i,"resizable-handle",{horizontal:m,vertical:v}),I=l().createElement("span",{title:c("ResizePanel")});return l().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...x,display:w}},l().createElement(xr,{className:E,"data-testid":"resizable-core",enable:{...zr,[r]:!S&&p},handleClasses:{[r]:M},handleComponent:{[r]:I},handleStyles:o,maxHeight:v?T:void 0,maxWidth:m?_:void 0,minHeight:v?R:void 0,minWidth:m?b:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:v?f:"100%",width:m?y:"100%"},style:C},d?l().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}var Hr=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:i,style:s}){const a=Re.qi[r].listId,c=document.getElementById(a),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=l().createElement("span",{className:"absolute",style:u},e);return l().createElement("div",{className:t,style:s},c?Ho().createPortal(p,document.getElementById("graph-container")):p)};function Pr({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const i=s()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),a=s()("spinner","mr1",{"inline-block":e}),c={height:n,width:n},h=s()("message",{"inline-block":e,mx2:e}),d=r?l().createElement("span",{className:a,style:c},t("loading")):l().createElement("div",{className:a,style:c},l().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:c}),l().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:c}),l().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:c}));return l().createElement("div",{className:i},d,o&&l().createElement("div",{className:h},o))}class Dr extends l().Component{render(){const{cssVariables:e,currentCommits:t,graphZoneType:o,hasMoreCommits:n,height:r,getExternalIcon:i,isLoadingRows:s,scrollTop:a,style:c,translate:h,zoneContentWidth:d,zoneWidth:u}=this.props,p=parseInt(e["--scrollable-scrollbar-thickness"].trim(),10),f=Number.isNaN(p)?0:p,m=d>u?f:0,g=l().createElement(Pr,{className:"loading-spinner",getExternalIcon:i,size:20,useSimpleSpinner:!0}),v=0!==(t>0?t:0)||n?null:l().createElement(l().Fragment,null,h("Graph-NoCommits")),y=l().createElement("div",{className:"graph-adjust-commit-count p1"},s?l().createElement("div",{className:"flex items-center"},l().createElement("span",{style:{paddingRight:"5px"}},g)):v);return l().createElement(Hr,{graphZoneType:o,height:r,heightAdjustment:m,scrollTop:a,style:c},y)}}var Lr=Dr;function Wr({rowCount:e,cellRenderersByIds:t,columnIndex:o,cssVariables:n,enableResizer:r,getExternalIcon:i,getKeyForCell:a,graphHeight:c,graphWidth:h,graphZoneType:d,graphZones:u,hasMoreCommits:p,isLoadingRows:f,onResize:m,onResizeEnd:g,onResizeFromPropChange:v,onScroll:y,onScrollToRowCausedUpdate:S,onZoneEnter:w,scrollLeft:C,scrollToAlignment:b,scrollToIndex:_,scrollTop:R,smartCellRangeRenderer:T,translate:x}){const E=Qe(d,u);if(!E)return null;const O=Ke(d,u),M=Qe(Re.Wm,u),I=M?M.contentWidth:0,z=M?M.currentWidth:0,k=d===Re.Wm?s()("graph-panel","horizontal_scrollbar","react-virtualized-list"):s()("graph-panel","react-virtualized-list",d===Re.jZ?"z3":null,O?"vertical_scrollbar":null,{"pad-for-horizontal-scrollbar":Boolean(I)&&I>z}),A=d===Re.Wm?{position:"static"}:void 0,G=e=>y(d,e,h,c,p),N=p||f||0===e,H=e+(N?1:0),P=(r,s,u,m,g,v,y)=>l().createElement(wo,{autoContainerWidth:!0,cellRangeRenderer:T,cellRenderer:s=>((r,s)=>{if(s.rowIndex>e-1)return N&&0===o?l().createElement(Lr,{cssVariables:n,currentCommits:e-1,getExternalIcon:i,graphZoneType:d,hasMoreCommits:p,height:c,isLoadingRows:f,key:a(s.rowIndex),scrollTop:R,style:s.style,translate:x,zoneContentWidth:I||0,zoneWidth:z}):void 0;const h={...s,style:{...s.style}};Re.Gn===r&&(h.style.top=Number(s.style.top)-R);const u=t[r];return u?u(h):void 0})(r,s),className:u,columnCount:1,columnWidth:y,containerStyle:m,height:c,id:s,isScrolling:!1,key:s,onScroll:G,onScrollToTargetCausedUpdate:S?e=>S(d,e,h,c,p):void 0,overscanRowCount:0,rowCount:H,rowHeight:Re.$0,scrollLeft:C,scrollToAlignment:b,scrollTop:R,scrollToRow:_,style:g,tabIndex:null,width:v}),D=P(E.type,E.listId,k,A,{position:"absolute"},E.currentWidth,E.type===Re.Wm&&e>0?E.contentWidth||0:E.currentWidth),L=O?P(Re.Gn,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3},{position:"absolute",right:0,overflow:"visible",zIndex:3},1,1):void 0,W=l().createElement("div",{onMouseEnter:w},D,L);return O?W:l().createElement(Nr,{enable:r,height:c,id:`${d}Column`,key:`${d}Column`,onResize:m?e=>m(E,e):void 0,onResizeEnd:g?e=>g(E,e):void 0,onResizeFromPropChange:v?e=>v(E,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:E.currentWidth,widthConstraints:et(d,u,h)},W)}var Br=o(6243);function Fr(e,t){if(null==e)return{};var o,n,r={},i=Br(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var jr=o(5940),Ur=o(2863);function Zr(e,t){return Zr=Ur?Ur.bind():function(e,t){return e.__proto__=t,e},Zr(e,t)}function $r(e,t){e.prototype=jr(t.prototype),e.prototype.constructor=e,Zr(e,t)}var Vr=o(8428);function Yr(){return Yr=Vr?Vr.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},Yr.apply(this,arguments)}var qr,Kr=o(2856),Xr=o.n(Kr),Qr=o(8853),Jr=o.n(Qr),ei=o(644),ti={in:h().bool,mountOnEnter:h().bool,unmountOnExit:h().bool,appear:h().bool,timeout:h().number,onEnter:h().func,onEntering:h().func,onEntered:h().func,onExit:h().func,onExiting:h().func,onExited:h().func},oi=((qr={})[ei.d0]="in",qr[ei.cn]="in",qr),ni=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Fr(e,["className","children"]);return l().createElement(ei.ZP,n,(function(e,n){return l().cloneElement(o,Yr({},n,{className:s()("fade",t,o.props.className,oi[e])}))}))},t}(l().Component);ni.propTypes=ti,ni.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const ri=ni;var ii=Yr({},Xr().propTypes,{show:h().bool,rootClose:h().bool,onHide:h().func,animation:h().oneOfType([h().bool,Jr()]),onEnter:h().func,onEntering:h().func,onEntered:h().func,onExit:h().func,onExiting:h().func,onExited:h().func,placement:h().oneOf(["top","right","bottom","left"])}),si={animation:ri,rootClose:!1,show:!1,placement:"right"},ai=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,r=Fr(t,["animation","children"]),i=!0===o?ri:o||null;return e=i?n:(0,a.cloneElement)(n,{className:s()(n.props.className,"in")}),l().createElement(Xr(),Yr({},r,{transition:i}),e)},t}(l().Component);ai.propTypes=ii,ai.defaultProps=si;const li=ai;var ci=o(5638),hi=o.n(ci),di=o(3562),ui=o.n(di),pi=o(1143),fi=o.n(pi),mi={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function gi(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 vi(e,t){var o=(e.bsClass||"").trim();return null==o&&fi()(!1),o+(t?"-"+t:"")}var yi=gi((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=h().string,n.bsClass=e,t}));gi((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=h().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=Yr({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),gi((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=mi[e];t&&t!==e&&i.push(t),i.push(e)}));var s=h().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=Yr({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o}));function Si(e){var t,o=((t={})[vi(e)]=!0,t);e.bsSize&&(o[vi(e,mi[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[vi(e,e.bsStyle)]=!0),o}function wi(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function Ci(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function bi(e){var t={};return ui()(e).forEach((function(e){var o=e[0],n=e[1];Ci(o)||(t[o]=n)})),[wi(e),t]}var _i={id:hi()(h().oneOfType([h().string,h().number])),placement:h().oneOf(["top","right","bottom","left"]),positionTop:h().oneOfType([h().number,h().string]),positionLeft:h().oneOfType([h().number,h().string]),arrowOffsetTop:h().oneOfType([h().number,h().string]),arrowOffsetLeft:h().oneOfType([h().number,h().string]),title:h().node},Ri=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,i=t.arrowOffsetTop,a=t.arrowOffsetLeft,c=t.title,h=t.className,d=t.style,u=t.children,p=bi(Fr(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),f=p[0],m=p[1],g=Yr({},Si(f),((e={})[o]=!0,e)),v=Yr({display:"block",top:n,left:r},d),y={top:i,left:a};return l().createElement("div",Yr({},m,{role:"tooltip",className:s()(h,g),style:v}),l().createElement("div",{className:"arrow",style:y}),c&&l().createElement("h3",{className:vi(f,"title")},c),l().createElement("div",{className:vi(f,"content")},u))},t}(l().Component);Ri.propTypes=_i,Ri.defaultProps={placement:"right"};const Ti=yi("popover",Ri);function xi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ei=o(8149),Oi=o.n(Ei),Mi=o(1629),Ii=o.n(Mi);o(670);const zi=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 ki(e,t){return Oi()(t)?t.indexOf(e)>=0:e===t}var Ai=h().oneOf(["click","hover","focus"]),Gi=Yr({},li.propTypes,{trigger:h().oneOfType([Ai,h().arrayOf(Ai)]),delay:h().number,delayShow:h().number,delayHide:h().number,defaultOverlayShown:h().bool,overlay:h().node.isRequired,onBlur:h().func,onClick:h().func,onFocus:h().func,onMouseOut:h().func,onMouseOver:h().func,target:h().oneOf([null]),onHide:h().oneOf([null]),show:h().oneOf([null])}),Ni=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(xi(xi(n))),n.handleDelayedShow=n.handleDelayedShow.bind(xi(xi(n))),n.handleDelayedHide=n.handleDelayedHide.bind(xi(xi(n))),n.handleHide=n.handleHide.bind(xi(xi(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}$r(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(){Ho().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||Ii()(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 l().createElement(li,Yr({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){Ho().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,s=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Fr(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=l().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=zi(p.onClick,i),ki("click",t)&&(f.onClick=zi(f.onClick,this.handleToggle)),ki("hover",t)&&(f.onMouseOver=zi(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=zi(p.onMouseOut,c,this.handleMouseOut)),ki("focus",t)&&(f.onFocus=zi(p.onFocus,s,this.handleDelayedShow),f.onBlur=zi(p.onBlur,r,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,a.cloneElement)(u,f)},t}(l().Component);Ni.propTypes=Gi,Ni.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const Hi=Ni;var Pi={id:hi()(h().oneOfType([h().string,h().number])),placement:h().oneOf(["top","right","bottom","left"]),positionTop:h().oneOfType([h().number,h().string]),positionLeft:h().oneOfType([h().number,h().string]),arrowOffsetTop:h().oneOfType([h().number,h().string]),arrowOffsetLeft:h().oneOfType([h().number,h().string])},Di=function(e){function t(){return e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,i=t.arrowOffsetTop,a=t.arrowOffsetLeft,c=t.className,h=t.style,d=t.children,u=bi(Fr(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),p=u[0],f=u[1],m=Yr({},Si(p),((e={})[o]=!0,e)),g=Yr({top:n,left:r},h),v={top:i,left:a};return l().createElement("div",Yr({},f,{role:"tooltip",className:s()(c,m),style:g}),l().createElement("div",{className:vi(p,"arrow"),style:v}),l().createElement("div",{className:vi(p,"inner")},d))},t}(l().Component);Di.propTypes=Pi,Di.defaultProps={placement:"right"};const Li=yi("tooltip",Di);var Wi=o(7334);var Bi=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:i,width:s}){const a={...o,background:`url(${i}) 0% 0% / ${r}px no-repeat`,height:n||r,width:s||r},c=["avatar","content-box",...e].join(" ").trim();return l().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Fe(t),style:a})};const Fi=(e,t,o)=>e?((e,t)=>l().createElement("span",{className:"ref-avatar mr1"},l().createElement(Bi,{context:t,size:14,url:e})))(e,o):t;function ji({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?l().createElement(Hi,{overlay:l().createElement(Li,{className:s()("bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):l().createElement(l().Fragment,null," ",e," ")}function Ui({hostingServiceType:e,icon:t,id:o,title:n}){return l().createElement(ji,{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,Wi.y)(e)}`:""})}function Zi({icon:e,type:t,upstream:o,tooltipText:n}){return l().createElement(ji,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function $i({avatarUrl:e,context:t,icon:o,tooltipText:n}){return l().createElement(ji,{icon:Fi(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var Vi=function({name:e}){return l().createElement("span",{className:"ref-name truncate",style:{height:Re.pj}},e)};function Yi(e,t,o,n,r,i,a){let c;if(c=n.refType===Le.HEAD?n.upstream?e?.[n.upstream.id]?.[We.mQ]:null:Ue(n,e,t,We.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(a.has(h))continue;a.add(h);const p={refId:n.id,type:We.mQ,data:e},f=l().createElement("span",{className:s()("mr1","ref-pull-request"),"data-vscode-context":Fe(t),onClick:e=>r(e,p),onDoubleClick:e=>i(e,p)},o("pull-request"));d.push(l().createElement(Ui,{hostingServiceType:c,icon:f,id:h,title:u}))}return d}function qi(e,t,o,n,r,i){const s=Ue(n,e,t,We.uq);if(!s||0===s.ahead&&0===s.behind)return null;const a=s,c={refId:n.id,type:We.uq,data:a},h=a.ahead>0,d=a.behind>0,u=a.context;if(h||d){const e=h?`${a.ahead>99?"99+":a.ahead}`:"",t=d?`${a.behind>99?"99+":a.behind}`:"",n=`${a.owner}/${a.name}`;let s,p;return d&&h?(s=`${t} ${a.behind>1?"commits":"commit"} behind and ${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to pull changes`,p="ahead-behind"):d?(s=`${t} ${a.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(s=`${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),l().createElement(Zi,{icon:l().createElement("div",{className:"ref-upstream","data-vscode-context":Fe(u),onClick:e=>r(e,c),onDoubleClick:e=>i(e,c)},d?l().createElement(l().Fragment,null,l().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?l().createElement(l().Fragment,null,l().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:s,type:p,upstream:n})}return null}function Ki(e,t,o,n=0){const{refType:r,name:i}=t;let a,c,h="";switch(r){case Le.REMOTE:c=Le.REMOTE,a=t.avatarUrl,h=t.owner||"";break;case Le.TAG:c=Le.TAG,h=i||"";break;case Le.HEAD:default:c=Le.HEAD,h=o("Ref-Local")}const d=t.context||void 0,u=l().createElement("span",{className:s()("mr1"),"data-vscode-context":Fe(d)},e(c));return l().createElement($i,{avatarUrl:a||"",context:d,icon:u,key:`ref-icon-${n}-${r}-${i}`,tooltipText:h})}function Xi(e,t,o){let n,r=!1,i=!1,s=!1;for(const a of e){if(a.refType===Le.HEAD)return o?a.contextGroup||t:a.context;a.refType===Le.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 Qi extends l().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{hasActive:e,hasRefs:t,getExternalIcon:o,groupIsHovered:n,isInUnsupportedRebase:r,isRefGroupIncluded:i,onMissingRefMetadata:a,refGroup:c,refGroupContext:h,refMetadata:d,onHovered:u,onHideRefClick:p,sha:f,enabledRefMetadataTypes:m,translate:g}=this.props,v=s()("ref-node-wrapper","flex"),y=s()("ref-node","flex","items-center","p1",{"has-active":e,"dim-ref":!t&&n,"is-active":e}),S=c.length?c[0].fullName||c[0].name:"",w=l().createElement(Vi,{name:S}),C=[],b=[];let _=null;const R=new Set;let T;for(let e=0;e<c.length;e+=1){if(T=c[e],C.push(Ki(o,T,g,e)),m.includes(We.mQ)&&(T.refType===Le.REMOTE||T.refType===Le.HEAD&&T.upstream)){const e=Yi(d,a,o,T,this.onClickMetadata,this.onDoubleClickMetadata,R);e&&b.push(...e)}m.includes(We.uq)&&T.refType===Le.HEAD&&(_=qi(d,a,o,T,this.onClickMetadata,this.onDoubleClickMetadata))}const x=[...C,...b],E=c.some((e=>e.refType===Le.HEAD&&e.isCurrentHead)),O=!e||n&&!E?null:l().createElement(ji,{icon:l().createElement("span",{className:s()("mr1")},o("check")),tooltipId:"ref-icon-current",tooltipText:g("Ref-Current")}),M=Xi(c,h),I=Xi(c,h,!0),z=!E&&n&&!i?l().createElement(ji,{icon:l().createElement("span",{className:s()("mr1","button"),onClick:e=>p(e,c,f)},o("hide")),tooltipId:`ref-node-toggle-visibility-btn-${S}`,tooltipText:g("Hide")}):null;return l().createElement("span",{className:v,"data-vscode-context":Fe(I),style:{minWidth:0,marginLeft:3,marginRight:3}},l().createElement("span",{className:y,"data-test-class":"ref-node-span","data-vscode-context":Fe(M),onClick:this.onClick,onContextMenu:r?void 0:this.onContextMenu,onDoubleClick:r?void 0:this.onDoubleClick,onMouseEnter:e=>u(e,c,f),style:{height:Re.cZ,minWidth:"100%"}},O,l().createElement("span",{className:"flex items-center"},x),w,_,l().createElement("span",{className:"flex ml-auto"},z)))}}class Ji extends l().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===Le.REMOTE?-1:0}render(){const{enableResizer:e,getExternalIcon:t,graphWidth:o,graphZones:n,graphZoneType:r,excludeRefsById:i,includeOnlyRefsById:a,isDraggable:c,onHover:h,onResize:d,onResizeEnd:u,onResizeFromPropChange:p,onResizeStart:f,onUnhover:m,showRemoteNamesOnRefs:g,translate:v}=this.props,{showPopoverMenu:y,refPopoverMenuTarget:S}=this.state,w=Qe(r,n);if(!w)return null;const C=Ke(r,n);let b=null,_=null;if(r===Re.jZ){const e=Object.entries(i),o=Object.values(a),n=o.length>0,r=n&&o.some((e=>e.type===Le.TAG)),c=e.filter((e=>e[1].type===Le.TAG&&(!n||!r)||!a[e[0]]));c.length>0&&(_=c.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,o)=>{const n=e[0],r=e[1];i[n].id=n;const s={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},a=!g&&"*"!==s.name||s.refType!==Le.REMOTE?s.name:`${s.owner}/${s.name}`;return l().createElement("li",{id:n,key:n,onClick:e=>this.onShowRefNodes(e,[i[n]],!0)},Ki(t,s,v,o),l().createElement("span",{className:"text-ellipsis"},a))})),b=l().createElement("div",{className:s()("right","text-normal","button",y?"active":null)},l().createElement(ji,{icon:l().createElement("span",{onClick:this.onHiddenRefsClick},t("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:v("GraphHeader-HiddenRefs-btn")})))}const R=`${r}-header`,T=l().createElement("div",{onMouseEnter:h,onMouseLeave:m},b,l().createElement(li,{container:this,onHide:y?this.onHiddenRefsClick:void 0,placement:y?"bottom":void 0,rootClose:y,show:y,target:S},l().createElement(Ti,{id:"opts-popover",style:{display:y?"block":"none"}},l().createElement("ul",null,_))),l().createElement("div",{className:"text-ellipsis font-monospace text-disabled"},l().createElement("span",{className:"ml1 fs-1"},v(w.headerLabelUntranslated)))),x=s()("panel-bg0","graph-header",{"is-draggable":c});return C?l().createElement("div",{className:x,id:R,key:R,style:{minWidth:w.currentWidth-Re.b4,transform:"translate3d(0, 0, 0)",zIndex:2}},T):l().createElement("div",{className:x,id:R,key:R,style:{display:"flex",minWidth:w.currentWidth,transform:"translate3d(0, 0, 0)",width:w.currentWidth,zIndex:2}},l().createElement(Nr,{className:x,enable:e,handleStyles:{right:{right:0}},height:Re.ze,onResize:d?e=>d(w,e):void 0,onResizeEnd:u?e=>u(w,e):void 0,onResizeFromPropChange:p?e=>p(w,e):void 0,onResizeStart:f?e=>f(w,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:v,width:w.currentWidth,widthConstraints:et(r,n,o)},T))}}const es=Ji;var ts=o(977),os=o.n(ts);const ns="dnd-container";class rs extends l().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(ns));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,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=os()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{l().isValidElement(e)&&this.addChildReactElement(e)})):l().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=s()(ns,t);return l().createElement("div",{className:o,ref:this.dndDecorator},e)}}var is=rs;class ss extends l().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{context:e,enableResizer:t,getExternalIcon:o,excludeRefsById:n,includeOnlyRefsById:r,onPopupGraphHeaderContextMenu:i,onGraphZoneResize:s,onGraphZoneResizeEnd:a,onGraphZoneResizeFromPropChange:c,onToggleRefNodesShown:h,graphZones:d,repoPath:u,showRemoteNamesOnRefs:p,translate:f,width:m,height:g}=this.props,v=l().createElement("div",{className:"panel-bg0",style:{height:Re.ze,marginBottom:Re.xs,marginLeft:-Re.mu,minWidth:Re.mu+Re.b4}});return l().createElement("div",{className:"graph-header flex","data-vscode-context":Fe(e),onContextMenu:i?()=>i(m):void 0,style:{height:Re.ze,marginBottom:Re.xs}},v,l().createElement(is,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,onDrop:this.onDrop},d.map((e=>l().createElement(es,{enableResizer:t,excludeRefsById:n,getExternalIcon:o,graphHeight:g,graphWidth:m,graphZones:d,graphZoneType:e.type,id:`${e.type}Header`,includeOnlyRefsById:r,isDraggable:e.isCustomizable,isDroppable:e.isCustomizable,key:`${e.type}Header`,onHover:this.onZoneHover,onResize:s,onResizeEnd:a,onResizeFromPropChange:c,onToggleRefNodesShown:h,onUnhover:this.onZoneUnHover,repoPath:u,showRemoteNamesOnRefs:p,translate:f})))))}}var as=ss;function ls(e,t,o){const n=t*Re.$0,{shape:r}=Re.Qh[e],i=Re.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=Re.$0*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function cs(e,t,o){const n=o*Re.$0;return e*Re.$0/n*t}class hs extends l().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&&!Number.isNaN(s)?s:Re.pU,l.canvas.height=n;const c=(s&&!Number.isNaN(s)?s:Re.pU)/Re.dF;l.clearRect(0,0,l.canvas.width,l.canvas.height);for(const[e,s]of Object.entries(Re.Qh)){if(!(o.includes(e)||e===Re.IE.RemoteBranches&&o.includes(Re.IE.LocalBranches)))continue;const h=e!==Re.IE.RemoteBranches||o.includes(Re.IE.RemoteBranches)?r[e]||[]:t,d=i[e],u=s.lanes;d&&h.length&&(l.fillStyle=d,h.forEach((t=>{const{height:o,offset:r}=ls(e,a,n);u.length&&l.fillRect(u[0]*c,cs(t,n,a)+r-.5*o,c*u.length,o)})))}}render(){const{scrollWidth:e,viewportWidth:t}=this.props,o=e&&!Number.isNaN(e)?e:Re.pU;return l().createElement("div",{style:{pointerEvents:"none",position:"absolute",left:t-o,zIndex:9999}},l().createElement("canvas",{ref:e=>{this.canvas=e}}))}}function ds(e){const{constraints:{max:t,min:o},stats:{additions:n,deletions:r},isLastColumn:i,scrollWidth:a,zoneWidth:c}=e,h=n+r,d=Math.max(o,Math.min(t,h)),u=i?a+Re.SZ:Re.SZ,p=Math.max(Re.QW,d/t*c-u);return l().createElement("div",{className:"changes-zone changes-bar",style:{width:p}},n?l().createElement("div",{className:s()("changes-sub-bar","added",r?null:"last-bar"),style:{width:n/h*100+"%"}}):null,r?l().createElement("div",{className:"changes-sub-bar deleted last-bar",style:{width:r/h*100+"%"}}):null)}const us={ADDED:"added",DELETED:"deleted",MODIFIED:"modified"};class ps extends l().Component{render(){const{fileDiffType:e,getExternalIcon:t}=this.props;if(!e)return null;const o=(e=>{switch(e){case us.ADDED:return"added";case us.MODIFIED:return"modified";case us.DELETED:return"deleted";default:return""}})(e),n=(e=>{switch(e){case us.ADDED:return"color-green";case us.MODIFIED:return"color-orange";case us.DELETED:return"color-red";default:return null}})(e),r=(e=>{switch(e){case us.ADDED:return"added";case us.MODIFIED:return"modified";case us.DELETED:return"deleted";default:return null}})(e),i=s()("fs-1",n,"mr1");return l().createElement("span",{className:i,title:r},t(o))}}var fs=ps;const{ADDED:ms,DELETED:gs,MODIFIED:vs}=us,ys={[ms]:"CommitDiffSection-NFilesAdded",[gs]:"CommitDiffSection-NFilesDeleted",[vs]:"CommitDiffSection-NFilesModified"};var Ss=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const i=n?e:r(ys[t],e);let s,a;return n&&(s={fontSize:Re.wd,marginRight:Re.IX},a={fontSize:Re.dH,margin:`0px ${Re.VB}px 0px 0px`}),l().createElement("span",{className:"tiny-files-readout",style:s},l().createElement(fs,{fileDiffType:t,getExternalIcon:o,style:a}),l().createElement("span",{className:"tiny-files-readout-text"},i))};var ws=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){const{types:i}=n;if(!e)return l().createElement("span",null);if(!Object.values(e).some((e=>Boolean(e))))return l().createElement("span",null);const s=e.modified?l().createElement(Ss,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,a=e.added?l().createElement(Ss,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=e.deleted?l().createElement(Ss,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=t?{marginLeft:Re.aV}:null;return l().createElement("span",{className:"summary",style:h},s,a,c)};const Cs=s()("absolute","top-0","right-0","bottom-0","left-0","height-1","time-line"),bs=s()(Cs,"z2");var _s=function({z2:e}){return l().createElement("div",{className:e?bs:Cs})};const Rs=l().createElement("div",{className:"color-strip height-100",style:{width:2}}),Ts={};const xs={};class Es extends l().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:i,getExternalIcon:a,graphZoneType:c,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:d,isHighlighted:u,isHovering:p,isInUnsupportedRebase:f,isMissingHoveredRefGroup:m,isSelected:g,numGraphColumns:v,onContextMenu:y,onClickCommit:S,onDoubleClickCommit:w,rowContext:C,sha:b,showColorStrip:_,showConflictIcon:R,showTimeline:T,setAsCurrentlyHoveredGraphCommit:x,style:E,title:O,translate:M,type:I,workDirStats:z}=this.props,k=function(e,t){const o=e+t.toString();let n=Ts[o];return n||(n=s()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),Ts[o]=n,n)}(I,p),A=function(e,t,o,n,r,i=!1,a=!1,l=!1,c=!1){const h=`${e}${t}${n}${o}${i}${a}${l}${c}${r}`;let d=xs[h];return d||(d=s()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":c&&!o||i&&(a||l)}),xs[h]=d,d)}(I,o,u,g,v,m,h,i,d),G=T?l().createElement(_s,null):null,N=I===_e.ch&&void 0!==z&&Object.keys(z).length>0,H=N&&l().createElement(ws,{diffStats:z,getExternalIcon:a,translate:M});return l().createElement("div",{className:k,"data-vscode-context":Fe(C),onContextMenu:f?void 0:e=>y(e,c,b),onDoubleClick:e=>w(e,c,b),onMouseDown:e=>S(e,c,b),onMouseEnter:e=>x(e,c,b,r),onMouseLeave:t=>e(t,c,b,r),style:E},G,l().createElement("div",{className:A,"data-vscode-context":Fe(n)},_?Rs:null,R?l().createElement("span",{className:s()("ml2")},a("warning")):null,l().createElement("span",{className:s()("graph-zone",N?"has-work-dir":"width-100","flex-1"),style:{lineHeight:`${Re.cZ}px`},title:O},t),H))}}var Os=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,translate:r,getExternalIcon:i,highlightRowsOnRefHover:s,isInUnsupportedRebase:a,numGraphColumns:c,clearCurrentlyHoveredGraphCommit:h,currentlyHoveredCommitSha:d,dimMergeCommits:u,dimRowsOfSelectedCommit:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,cssVariables:y,graphZones:S}=e,w=new at(e);return({rowIndex:e,style:C})=>{const b=t(e),_=w.getZoneWidth(Re.WD),R=o[e],{sha:T,stats:x,type:E,contexts:O}=R,M=O?.stats||void 0,I=O?.row||void 0;let z=[x?.files?`${x.files} files changed`:"",x?.additions?`${x.additions} lines added`:"",x?.deletions?`${x.deletions} lines deleted`:""].filter(Boolean).join(", ");z=E!==_e.ch?z:"";const k=parseInt(y["---scrollable-scrollbar-thickness"],10);return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:h,column:R.column,context:M,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:p,getExternalIcon:i,graphZoneType:Re.WD,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:E===_e.lH&&u,isHighlighted:w.isHighlighted(e),isHovering:w.isHovering(e),isInUnsupportedRebase:a,isMissingHoveredRefGroup:w.isMissingHoveredRefGroup(e),isSelected:w.isSelected(e),key:b,numGraphColumns:c,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:I,setAsCurrentlyHoveredGraphCommit:v,sha:T,showTimeline:w.hasTimeline(e),style:C,title:z,translate:r,type:E},x&&E!==_e.ch?l().createElement(ds,{constraints:n,isLastColumn:Ke(Re.WD,S),scrollWidth:k&&!Number.isNaN(k)?k:Re.pU,stats:x,zoneWidth:_}):null)}};function Ms(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 Is(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}var zs=(e,t)=>{const{clearCurrentlyHoveredGraphCommit:o,currentlyHoveredCommitSha:n,dimMergeCommits:r,dimRowsOfSelectedCommit:i,getExternalIcon:s,highlightRowsOnRefHover:a,processedRows:c,isInUnsupportedRebase:h,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,numGraphColumns:f,setAsCurrentlyHoveredGraphCommit:m,translate:g}=e,v=new at(e);return({rowIndex:e,style:y})=>{const S=t(e),w=c[e],{author:C,email:b,sha:_,type:R,contexts:T}=w,x=R!==_e.ch?C:void 0,E=R!==_e.ch?Is(C,b):void 0,O=T?.author||void 0,M=T?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:o,column:w.column,context:O,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:i,getExternalIcon:s,graphZoneType:Re.GF,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:R===_e.lH&&r,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:h,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:S,numGraphColumns:f,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:M,setAsCurrentlyHoveredGraphCommit:m,sha:_,showTimeline:v.hasTimeline(e),style:y,title:E,translate:g,type:R},x)}};var ks=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:a,formatCommitDateTime:c,clearCurrentlyHoveredGraphCommit:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new at(e);return({rowIndex:e,style:S})=>{const w=t(e),C=o[e],{date:b,sha:_,type:R,contexts:T}=C,x=b&&R!==_e.ch?c(b,_e.Gu.RowEntry):void 0,E=b&&R!==_e.ch?c(b,_e.Gu.Tooltip):void 0,O=T?.date||void 0,M=T?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:h,column:C.column,context:O,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Re.PL,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:R===_e.lH&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:s,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:a,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:_,showTimeline:!1,style:S,title:E,translate:n,type:R},x)}};var As=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:i,getExternalIcon:s,highlightRowsOnRefHover:a,isInUnsupportedRebase:c,numGraphColumns:h,workDirStats:d,clearCurrentlyHoveredGraphCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new at(e);return({rowIndex:e,style:S})=>{const w=t(e),C=r[e],{sha:b,type:_,contexts:R}=C,T=_===_e.ch?i("Graph-WorkInProgress"):C.message,x=_===_e.ch?i("Graph-WorkInProgress"):C.messageInline,E=R?.message||void 0,O=R?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:u,column:C.column,context:E,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:n,getExternalIcon:s,graphZoneType:Re.KE,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:_===_e.lH&&o,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:c,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:h,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:b,showColorStrip:!0,showConflictIcon:_===_e.S7||_===_e.br,showTimeline:y.hasTimeline(e),style:S,title:T,translate:i,type:_,workDirStats:d},x)}};var Gs=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:a,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:f,onDoubleClickCommit:m,setAsCurrentlyHoveredGraphCommit:g,shaLength:v}=e,y=new at(e);return({rowIndex:e,style:S})=>{const w=t(e),C=o[e],{sha:b,type:_,contexts:R}=C,T=((e,t=Re.ai)=>e?e.substring(0,t):"")(b,v),x=R?.sha||void 0,E=R?.row||void 0;return l().createElement(Es,{clearCurrentlyHoveredGraphCommit:c,column:C.column,context:x,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Re.av,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:_===_e.lH&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:s,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:a,onClickCommit:f,onContextMenu:p,onDoubleClickCommit:m,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:b,showTimeline:y.hasTimeline(e),style:S,translate:n,type:_},_!==_e.ch?l().createElement("span",{className:"font-monospace pointer",title:T},T):null)}};function Ns({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const i=s()("ref-line","z4",{"is-active":t});return e&&function(e){return[_e.o$,_e.lH,_e.S7].includes(e)}(n)?l().createElement("hr",{className:i,style:{left:o,width:r}}):null}var Hs=Ns;function Ps({hasRefs:e,isActiveSha:t,nodeOffset:o,type:n}){return l().createElement(Ns,{hasRefs:e,isActiveSha:t,left:0,type:n,width:o+(n===_e.lH?Re.Qj:0)})}function Ds({className:e,marginLeft:t}){return l().createElement("div",{className:s()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},l().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const Ls=e=>Re.Cc+Re.yW*e+Re.UU/2;function Ws({column:e}){return l().createElement(Ds,{className:"z1",marginLeft:Ls(e)})}function Bs(){return l().createElement(Ds,{marginLeft:0})}class Fs extends l().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)=>{const{authorInitials:o,classes:n,column:r,context:i,cssVariables:s,divStyle:a,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,p=void 0!==r&&s[Me(r)]||Re.iq,f=be(p.trim()),m={alignItems:"center",backgroundColor:p,backgroundSize:d,color:f,display:"flex",fontSize:`${c}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,width:t,...a},g=["avatar","gravatar","rad2",...n||[]].join(" ").trim();return l().createElement("div",{className:g,"data-vscode-context":Fe(i),style:m,title:u},o?o.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:a,title:c="",tooltip:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=i||a,f=u||a;let m;if(d||!t)m=this.getMaybeDefaultAvatar(p,f);else{const e={height:p,width:f,backgroundImage:`url('${t}')`,backgroundSize:a,minWidth:s,...r},i=["avatar","gravatar","rad2",...o||[]].join(" ").trim();m=l().createElement("div",{className:i,"data-test-class":"avatar","data-vscode-context":Fe(n),style:e,title:c})}return h?l().createElement(Hi,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:l().createElement(Li,{id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},m):m}}const js=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:i,cssVariables:s,left:a,message:c,opacity:h,type:d,useAuthorInitialsForAvatars:u})=>l().createElement(Fs,{authorInitials:t,avatarUrl:n,classes:["node",`${d}`,"z6"],column:r,context:i,cssVariables:s,divStyle:{left:a,opacity:h},fontSize:10,height:Re.UU,size:Re.mP,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Is(o,e):e,n=function(e){const t=[];for(let o=Ee.exec(e);null!==o;o=Ee.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}(function(e,t="\n"){return e.replace("\n"===t?xe:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}(c||""));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+=Is(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},useAuthorInitialsForAvatars:u,width:Re.UU});class Us extends l().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,left:n,opacity:r,type:i}=this.props;return(t||e)&&i===_e.o$?js(this.props):i===_e.lH||i===_e.S7||i===_e.br?((e,t,o,n,r)=>{const i={height:Re.k9,left:o+5,opacity:n},a=s()("node",r,"z6"),c=l().createElement(Li,{id:"graph-merge-node-tooltip"},Is(t,e));return l().createElement(Hi,{delayShow:250,overlay:c,placement:"bottom",trigger:["hover","focus"]},l().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:i}))})(e,t,n,r,i):((e,t,o,n,r)=>{const i={height:Re.UU,left:o,opacity:n},a=s()("node",r,"z6");return l().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:i},r===_e.kP?e("stash"):null)})(o,0,n,r,i)}}class Zs extends l().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n}=this.props,r=zt(o,t,n,e);return l().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:r}})}}var $s=Zs;function Vs({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:i}){return l().createElement("div",{className:s()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:i}},o)}function Ys({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return l().createElement(Vs,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?l().createElement(_s,{z2:!0}):null)}function qs({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return l().createElement(Vs,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?l().createElement(_s,{z2:!0}):null,l().createElement(Bs,null))}class Ks extends l().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:i,columnColorByColumn:a,commitZoneWidth:c,cssVariables:h,currentlyHoveredCommitSha:d,edgeColumnMax:u,edges:p,hasRefs:f,hasTimeline:m,getExternalIcon:g,isActiveSha:v,isInUnsupportedRebase:y,isSelected:S,leftGutterBoxShadowAlpha:w,leftGutterWidth:C,message:b,nodeOffset:_,nodeOpacity:R,numGraphColumns:T,onContextMenu:x,onClickCommit:E,onDoubleClickCommit:O,rightGutterBoxShadowAlpha:M,rightGutterWidth:I,rowContext:z,scrollLeft:k,setAsCurrentlyHoveredGraphCommit:A,sha:G,style:N,type:H,useAuthorInitialsForAvatars:P,zoneContext:D}=this.props,L=i%T+1,W=s()("relative","commit-zone","height-100-percent","pt3",H,`column-${L}`,{"is-selected":S,"has-active":v}),B=m?l().createElement(_s,{z2:!0}):null,F=l().createElement("div",{className:W,"data-vscode-context":Fe(D),onContextMenu:y?void 0:e=>x(e,Re.Wm,G),onDoubleClick:e=>O(e,Re.Wm,G),onMouseDown:e=>E(e,Re.Wm,G),onMouseEnter:e=>A(e,Re.Wm,G,d),onMouseLeave:e=>r(e,Re.Wm,G,d),style:N},B,l().createElement(Ys,{boxShadowAlpha:w,hasTimeline:m,scrollLeft:k,width:C}),l().createElement(Ps,{hasRefs:f,isActiveSha:v,nodeOffset:_,type:H}),l().createElement(Us,{authorEmail:e,authorInitials:Ms(t),authorName:t,avatarUrl:n,column:i,context:o,cssVariables:h,getExternalIcon:g,left:_,message:b,opacity:R,type:H,useAuthorInitialsForAvatars:P}),l().createElement(Ws,{column:i}),l().createElement($s,{columnColorByColumn:a,edgeColumnMax:u,edges:p,nodeColumn:i}),l().createElement(qs,{boxShadowAlpha:M,commitZoneWidth:c,hasTimeline:m,scrollLeft:k,width:I}));return z?l().createElement("div",{"data-vscode-context":Fe(z)},F):F}}var Xs=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:i,cssVariables:s,currentlyHoveredCommitSha:a,processedRows:c,getExternalIcon:h,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:v,nodeOpacityByColumn:y,numGraphColumns:S,rightGutterBoxShadowAlpha:w,rightGutterWidth:C,setAsCurrentlyHoveredGraphCommit:b,scrollLeft:_,useAuthorInitialsForAvatars:R}=e,T=new at(e);return({rowIndex:e,style:x})=>{const E=t(e),O=c[e],M=T.getZoneWidth(Re.Wm),{email:I,author:z,contexts:k,message:A,sha:G,type:N}=O,H=O.column,P=k?.graph||void 0,D=k?.avatar||void 0,L=k?.row||void 0;let W;return R||(W=o[I],W||n(I,G)),l().createElement(Ks,{authorEmail:I,authorName:z,avatarContext:D,avatarUrl:W,clearCurrentlyHoveredGraphCommit:r,column:H,columnColorByColumn:i,commitZoneWidth:M,cssVariables:s,currentlyHoveredCommitSha:a,edgeColumnMax:O.edgeColumnMaxes,edges:O.edges,getExternalIcon:h,hasRefs:O.hasRefs||!1,hasTimeline:T.hasTimeline(e),isActiveSha:T.rowContainsCurrentHeadRef(O),isInUnsupportedRebase:d,isSelected:T.isSelected(e),key:E,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:A,nodeOffset:v[H],nodeOpacity:y[H],numGraphColumns:S,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:w,rightGutterWidth:C,rowContext:L,scrollLeft:_,setAsCurrentlyHoveredGraphCommit:b,sha:G,style:x,type:N,useAuthorInitialsForAvatars:R,zoneContext:P})}};var Qs=function({hasActive:e,overflowCount:t}){return l().createElement("span",{className:s()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};var Js=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:i}){const a=e?.top||0;return l().createElement("div",{className:s()("ref-zone","column-"+(o%n+1))},l().createElement("ul",{onMouseEnter:r,onMouseLeave:i,style:{...e,top:a-Re.cZ/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var ea=function({enabledRefMetadataTypes:e,column:t,context:o,getTargetRef:n,hasActive:r,hasRefs:i,getExternalIcon:s,includeOnlyRefsById:a,includeOnlyRemotesByName:c,isHovered:h,isInUnsupportedRebase:d,numGraphColumns:u,onMissingRefMetadata:p,refGroupContexts:f,refGroupsByName:m,refMetadata:g,refNodeHovered:v,sha:y,showContextMenuForGroupedRef:S,onClickRef:w,onDoubleClickRef:C,onToggleRefNodesShown:b,translate:_}){const R=(e,t,o)=>{const n=t.map((e=>({id:$e(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})));b(e,n,!1,o)},T=h?m:[m[0]],x=Object.values(a),E=x.length>0&&x.some((e=>e.type===Le.TAG)),O=T.map((t=>{const o=f?.[t[0].name]||void 0,n=t.some((e=>{const t=$e(e);switch(e.refType){case Le.TAG:return E&&Boolean(a[t]);case Le.REMOTE:return Boolean(a[t])||e.owner&&c[e.owner];default:return Boolean(a[t])}})),u=l().createElement(Qi,{enabledRefMetadataTypes:e,getExternalIcon:s,groupIsHovered:h,hasActive:r,hasRefs:i,isInUnsupportedRebase:d,isRefGroupIncluded:n,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:w,onContextMenu:S,onDoubleClick:C,onHideRefClick:R,onHovered:v,onMissingRefMetadata:p,refGroup:t,refGroupContext:o,refMetadata:g,sha:y,translate:_});return h?l().createElement("li",{key:u.key},u):u}));return h?l().createElement("div",{"data-vscode-context":Fe(o),style:{height:100,position:"relative"}},l().createElement(li,{placement:"right",show:h,target:n},l().createElement(Js,{column:t,numGraphColumns:u},O))):l().createElement("span",{"data-vscode-context":Fe(o),style:{minWidth:0}},O)};const ta={};class oa extends l().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,showGhostRefsOnRowHover:n,hasActive:r,hasRefs:i,hasTimeline:a,hoveredRefGroup:c,hoveredRefZoneSha:h,getExternalIcon:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isContainerWindowFocused:f,isInUnsupportedRebase:m,numGraphColumns:g,onClickRef:v,onDoubleClickRef:y,onMissingRefMetadata:S,refGroupContexts:w,refGroupsByName:C,refMetadata:b,refNodeHovered:_,refNodeUnhovered:R,refZoneHovered:T,refZoneUnhovered:x,sha:E,showContextMenuForGroupedRef:O,style:M,translate:I,type:z,width:k}=this.props,A=h===E&&f,G={minWidth:k,width:k},N={...M,...G},H=a?l().createElement(_s,null):null,P=C.length,D=e=>{T(E),P?_(e,C[0],E):c&&R(e,c,E)},L=e=>{f&&this.isContextMenuShown?this.isContextMenuShown=!1:(x(),c&&R(e,c,E))},W=function(e,t,o,n,r,i){const a=`${e}${t}${o}${n}${r}${i}`;let l=ta[a];return l||(l=s()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":i,"has-active":n,z6:o,z1:!o}),ta[a]=l,l)}(z,t,A,r,g,P>0&&!i&&n);if(!P)return l().createElement("div",{className:W,onMouseEnter:D,onWheel:L,style:N},H);const B=G,F=P-1,j=F>0&&!A?l().createElement(Qs,{hasActive:r,overflowCount:F}):null;return l().createElement("div",{className:W,onMouseEnter:D,onMouseLeave:L,onWheel:L,style:N},l().createElement("div",{ref:e=>this.refPopoverTarget=e}),H,l().createElement("div",{className:"flex",style:B},l().createElement(ea,{column:t,context:o,enabledRefMetadataTypes:e,getExternalIcon:d,getTargetRef:this.getRefPopoverTarget,hasActive:r,hasRefs:i,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isHovered:A,isInUnsupportedRebase:m,numGraphColumns:g,onClickRef:v,onDoubleClickRef:y,onMissingRefMetadata:S,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:w,refGroupsByName:C,refMetadata:b,refNodeHovered:_,sha:E,showContextMenuForGroupedRef:(e,t,o)=>{D(e),this.isContextMenuShown=!0,O(e,t,o)},translate:I}),j),i?l().createElement("div",{className:"absolute left-0 flex z1",style:G},l().createElement(Hs,{hasRefs:!0,isActiveSha:r,left:Re.yv,type:z,width:"100%"})):null)}}var na=(e,t)=>{const{enabledRefMetadataTypes:o,showGhostRefsOnRowHover:n,onDoubleClickRef:r,processedRows:i,includeOnlyRefsById:s,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,getExternalIcon:d,hoveredRefGroup:u,hoveredRefZoneSha:p,numGraphColumns:f,onClickRef:m,onMissingRefMetadata:g,onShowContextMenuForGroupedRef:v,onRefNodeHovered:y,onRefNodeUnhovered:S,onRefZoneHovered:w,onRefZoneUnhovered:C,onToggleRefNodesShown:b,refMetadataById:_,translate:R}=e,T=new at(e);return({rowIndex:e,style:x})=>{const E=t(e),O=i[e],M=T.getZoneWidth(Re.jZ),I=T.isHovering(e),{sha:z,type:k,hasRefs:A,contexts:G}=O,N=G?.ref||void 0,H=G?.refGroups||void 0,P=T.isSingleSelected(e),D=(n||A)&&(A||I||P)?T.getGraphRefGroupsByNameForRow(e):[];return l().createElement(oa,{column:O.column,context:N,enabledRefMetadataTypes:o,getExternalIcon:d,hasActive:T.rowContainsCurrentHeadRef(O),hasRefs:A||!1,hasTimeline:T.hasTimeline(e),hoveredRefGroup:u,hoveredRefZoneSha:p,includeOnlyRefsById:s,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,isSingleSelected:P,key:E,numGraphColumns:f,onClickRef:m,onDoubleClickRef:r,onMissingRefMetadata:g,onToggleRefNodesShown:b,refGroupContexts:H,refGroupsByName:D,refMetadata:_,refNodeHovered:y,refNodeUnhovered:S,refZoneHovered:w,refZoneUnhovered:C,sha:z,showContextMenuForGroupedRef:v,showGhostRefsOnRowHover:n,style:x,translate:R,type:k,width:M})}};var ra=(e,t)=>{const{translate:o,processedRows:n}=e,r=s()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),i=new at(e);return({rowIndex:e,style:a})=>{const c=t(e),h=s()("graph-row","height-100-percent","flex"),d=i.hasTimeline(e),u=n[e],p=u.contexts?.row||void 0,f=u.timeLineEntry?.label||"",m=u.timeLineEntry?.value||0,g=d?l().createElement(_s,null):null,v=d?l().createElement("span",{className:"time-line-message-container"},l().createElement("span",{className:"time-line-message"},o(f,m))):null;return l().createElement("div",{className:r,"data-vscode-context":Fe(p),key:c,style:a},g,l().createElement("div",{className:h,"data-vscode-context":Fe(p)},v))}};class ia extends l().PureComponent{graphContainerRef=l().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={};workDirStats=Re.OR;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZonesByType={};graphZoneOrdering=[Re.jZ,Re.Wm,Re.KE,Re.GF,Re.WD,Re.PL,Re.av];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.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices([Re.IE.Selection,Re.IE.Highlights]);const t=Ie(this.props.cssVariables);this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!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),processedRows:[...this.orderedGraphRows],refMetadataById:this.props.refMetadataById,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||Re.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;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=Object.keys(e.highlightedShas||{}).filter((t=>e.highlightedShas[t])),o=[];t.forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&o.push(this.processedGraphRowBySha[e].rowIndex)})),this.markerRowIndices={...this.markerRowIndices,[Re.IE.Highlights]:o}}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 n=Ie(e.cssVariables);this.processRows(e.graphRows),this.setState({columnColorByColumn:this.getColumnColorByColumn(n),cssVariablesWithDefaults:n,numGraphColumns:this.getNumGraphColumns(n),processedRows:[...this.orderedGraphRows]}),this.updateCommitZoneContentWidthFromGraphRowsChange(),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.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||Re.OR,!ot(this.props.workDirStats)&&ot(e.workDirStats)||ot(this.props.workDirStats)&&!ot(e.workDirStats)?(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows],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&&e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0),this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),t){const e=this.getOrderedActiveGraphZones();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)};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=Be(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=Be(((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=()=>{};onMessageChange=e=>{this.props.onMessageChange&&this.props.onMessageChange(e)};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||rt(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*Re.$0;i>s-Re.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)}};onWipNodeInputWillUnmount=()=>{this.props.onWipNodeInputWillUnmount&&this.props.onWipNodeInputWillUnmount()};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([Re.IE.Selection]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(Re.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===Le.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===Le.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-Re.rl)/Re.$0,i=o/Re.$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(Re.Wm),s=this.getCommitZoneContentWidth(),a=o*Re.yW,l=n-Re.Cc/3<=a,c=a<=n+r,h=Math.max(0,s-i),d=l&&c?n:De(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=Xe(r,n,e);if(r.currentWidth=i,t===Re.Wm){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromGraphRowsChange(){const e=this.graphZonesByType[Re.Wm];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=Xe(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e){const t=this.graphZonesByType[e];return t&&!t.isHidden?t.currentWidth:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*Re.yW+2*Re.Cc+2*Re.hc}getCommitZoneWidth(){if(this.graphZonesByType[Re.Wm])return this.graphZonesByType[Re.Wm].currentWidth;const{columnsSettings:e}=this.props;return e?.[Re.Wm]?e[Re.Wm].width:Re.qi[Re.Wm].minimumWidth}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(Re.Wm);return 1===e?0:De(1-(t-2*Re.Cc-Re.hc)/Re.yW,0,1)}setScroll(e,t){null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===Re.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(){return Re.os}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*Re.Uo)+t*(e+Re.Cc)}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(Re.Wm),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(Re.hc-Re.Cc))+o*(t+Re.Cc)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=Re.Cc+Re.yW*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]=De(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(Re.Wm)-Re.yW-Re.hc)}getMinNodeLeft(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+Re.Uo+t*Re.Cc}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(Re.Wm),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return De((e-(t-(Re.Cc+Re.hc)))/Re.yW,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*Re.Cc),c=t+Re.yW-(a+Re.Cc*(1-n)),h=Math.min(l,c);i[s]=Re.l3+(1-Re.l3)*Math.max(h/(Re.Cc/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return Re.Cc+e*(Re.Cc/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*Re.Cc}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,De(1-t/Re.yW,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(Re.IE.Selection)){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Re.IE.Selection].push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes(Re.IE.Highlights)){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Re.IE.Highlights].push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.body),t={};return Object.values(Re.Qh).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey);n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;for(t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=Re.qi[t],a=i?.width?i.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=l.currentWidth),t===Re.Wm&&(l.contentWidth=this.getCommitZoneContentWidth(),this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||n.push(l)})),n.forEach((e=>{const t=Xe(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=Ve(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-qe(n,e);this.graphZonesByType[e].currentWidth=r}return n}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!==Re.WD||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n)})),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&&!Te(r.type)?r:i&&!Te(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):Pe(e,Re.It);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):lt[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}(lt[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):l().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!==_e.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===_e.kP&&e.type!==_e.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=>t?void 0!==this.includeOnlyRefsById[Ze(Le.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[Ze(Le.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[Ze(Le.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[Ze(Le.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===Le.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[Ze(Le.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[Ze(Le.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={},h=[],d=void 0!==this.graphZonesByType[Re.WD]&&!this.graphZonesByType[Re.WD].isHidden;if(ot(this.workDirStats)&&e.length>0&&e[0].type!==_e.ch){const t=function(e){const t=e.find(tt);return t?.sha||void 0}(e),o={sha:_e.ch,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:_e.ch,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!ot(this.workDirStats)&&e.length>0&&e[0].type===_e.ch&&e.shift();const u=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,p)=>{const f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,u):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,u):[],v=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,u,Boolean(c[e.sha]||f)):[],y=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],S=m.length>0||g.length>0||v.length>0,w=m.length>0||g.length>0;if(e.type!==_e.o$&&e.type!==_e.lH||c[e.sha]){if(e.type===_e.kP&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&y.length>0){let e;for(e of y)c[e]=!0}}else e.type!==_e.o$&&e.type!==_e.lH||c[e.sha]||S||f||(o[e.sha]=!0);const C=o[e.sha],b={...e,heads:m,remotes:g,tags:v,parents:y,column:C?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:S,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(!C){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],b.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<y.length;n+=1){const r=y[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(w||o)&&void 0===i&&(i=[],t.set(r,i)),w?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:p,heads:m,remotes:g,tags:v}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:p})}const u=this.orderedGraphRows.length;if(b.rowIndex=u,m.length>0&&(i.push(u),m.some((e=>e.isCurrentHead))&&(this.headSha=b.sha,n.push(u))),g.length>0){s.push(u);for(const e of g)e.current&&(r.push(u),this.headUpstreamSha=b.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(u)}v.length>0&&a.push(u),e.type===_e.kP&&l.push(u),this.orderedGraphRows.push(b),d&&b.stats&&h.push(b.stats.additions+b.stats.deletions)}this.processedGraphRowBySha[e.sha]=b})),this.markerRowIndices={...this.markerRowIndices,[Re.IE.Head]:n,[Re.IE.Upstream]:r,[Re.IE.LocalBranches]:i,[Re.IE.RemoteBranches]:s,[Re.IE.Tags]:a,[Re.IE.Stashes]:l},d&&(this.rowStatsConstraints=je(h)),clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){const e=[];for(const t of this.orderedGraphRows)t.stats&&e.push(t.stats.additions+t.stats.deletions);this.rowStatsConstraints=je(e)}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=Re.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<=Re.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<=Re.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<=Re.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<=Re.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 Re.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[Me(i)];n[i]="rgba"===(r=Ce(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,Re.uK);return Number.isNaN(o)?Re.uK:o}ensureZoneWidthsMatchGraphWidth(e,t){const o=qe(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=qe(e);for(;n>t;){const r=Ve(e,o);if(!r)break;const i=qe(e,r.type);if(i+r.currentWidth>t){const o=Xe(r,e,t-i);this.updateWidthByZone(o,r.type)}n=qe(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=qe(e);for(;n<t;){const r=Ye(e,o);if(!r)break;const i=qe(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;!Ke(r.type,e)&&o>s&&(o=s),o=Xe(r,e,o),this.updateWidthByZone(o,r.type)}n=qe(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(){It={},Ot={},xt={},Rt={}}onZoneEnter=(e,t,o,n)=>{t!==Re.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=Je(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=Be(((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,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=function(e){const t=e||Oe;let o="";const n=Object.keys(t);o+="body {\n";for(const e of n)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}(t);return l().createElement("div",{id:"graph-container-helmet"},l().createElement(ge,null,l().createElement("style",{nonce:o},n)),e)};render(){const{isInUnsupportedRebase:e,isCommitting:t,pendingCommitMessageSummary:o,repoPath:n,nonce:r}=this.props,{avatarUrlByEmail:i,columnColorByColumn:a,contexts:c,cssVariablesWithDefaults:h,currentlyHoveredCommitSha:d,dimMergeCommits:u,dimRowsOfSelectedCommit:p,highlightRowsOnRefHover:f,showGhostRefsOnRowHover:m,showRemoteNamesOnRefs:g,enabledRefMetadataTypes:v,enabledScrollMarkerTypes:y,graphZones:S,hasMoreCommits:w,height:C,highlightedShas:b,hoveredRefGroup:_,hoveredRefZoneSha:R,themeOpacityFactor:T,isContainerWindowFocused:x,isLoadingRows:E,numGraphColumns:O,processedRows:M,refMetadataById:I,useAuthorInitialsForAvatars:z,scrollToAlignment:k,scrollToIndex:A,scrollTop:G,scrollLeft:N,shaLength:H,width:P,workDirStats:D}=this.state,L=s()("flex","graph-container"),W=(B=M,e=>e===B.length?"SHOW_MORE_COMMITS":B[e].sha);var B;const F=(j=e=>W(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(),S=!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;S&&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 w={columnIndex:c,isScrolling:a,isVisible:r,key:d,parent:l,rowIndex:e,style:y};let C;if(!a||s||p)C=t(w);else{const o=j(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(w)}),C=v[d].cell}null!=C&&g.push(C)}}return g});var j;const U=this.getLeftGutterWidth(),Z=this.getRightGutterWidth(),$=this.getRightGutterBoxShadowAlpha(T),V=this.getLeftGutterBoxShadowAlpha(T),Y=this.getNodeOffsetByColumn(),q=this.getNodeOpacityByColumn(),K=!_,X={avatarUrlByEmail:i,dimMergeCommits:u,dimRowsOfSelectedCommit:p,highlightRowsOnRefHover:f,showGhostRefsOnRowHover:m,showRemoteNamesOnRefs:g,enabledRefMetadataTypes:v,isInUnsupportedRebase:e,isCommitting:t,isContainerWindowFocused:x,pendingCommitMessageSummary:o,workDirStats:D,repoPath:n,columnColorByColumn:a,currentlyHoveredCommitSha:d,cssVariables:h,graphZones:S,height:C,highlightedShas:b,hoveredRefGroup:_,hoveredRefZoneSha:R,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:V,leftGutterWidth:U,nodeOffsetByColumn:Y,nodeOpacityByColumn:q,nonce:r,numGraphColumns:O,processedRows:M,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:I,rightGutterBoxShadowAlpha:$,rightGutterWidth:Z,rowStatsConstraints:this.rowStatsConstraints,useAuthorInitialsForAvatars:z,scrollToAlignment:k,scrollLeft:N,scrollTop:G,shaLength:H,width:P,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,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,onWipNodeInputWillUnmount:this.onWipNodeInputWillUnmount,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,translate:this.translateCallback},Q={[Re.jZ]:na(X,W),[Re.Wm]:Xs(X,W),[Re.KE]:As(X,W),[Re.GF]:zs(X,W),[Re.PL]:ks(X,W),[Re.av]:Gs(X,W),[Re.WD]:Os(X,W),[Re.Gn]:ra(X,W)},J=S.map(((e,t)=>l().createElement(Wr,{cellRenderersByIds:Q,columnIndex:t,cssVariables:h,enableResizer:K,getExternalIcon:this.getIconCallback,getKeyForCell:W,graphHeight:C-Re.rl,graphWidth:P,graphZones:S,graphZoneType:e.type,hasMoreCommits:w,isLoadingRows:E,key:`${e.type}ColumnContainer`,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===Re.jZ?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,_,R),rowCount:M.length,scrollLeft:N,scrollToAlignment:e.type===Re.jZ?k:void 0,scrollToIndex:e.type===Re.jZ?A:void 0,scrollTop:G,smartCellRangeRenderer:F,translate:this.translateCallback}))),ee=C-Re.rl,te=this.orderedGraphRows.length*Re.$0,oe=l().createElement("div",{className:"graph-component","data-vscode-context":Fe(c?.graph),onBlur:e=>this.onGraphContainerBlurred(e,_,R),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},l().createElement(as,{context:c?.header,enableResizer:K,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:S,height:C,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,showRemoteNamesOnRefs:g,translate:this.translateCallback,width:P}),l().createElement("div",{className:b?s()(L,"graph-highlighted"):L,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:C,width:P},tabIndex:-1},y.length?l().createElement(hs,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,enabledScrollMarkerTypes:y,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,scrollWidth:parseInt(h["---scrollable-scrollbar-thickness"],10),totalRows:this.orderedGraphRows.length,viewportHeight:ee<te?ee:te,viewportWidth:P}):null,J));return this.decorateWithHelmet(oe,h,r)}}var sa=ia},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:()=>a,$s:()=>p,An:()=>f,B8:()=>z,Cc:()=>u,F0:()=>h,GF:()=>ee,Gn:()=>K,IE:()=>re,IX:()=>j,It:()=>M,KE:()=>J,MQ:()=>V,NP:()=>b,O5:()=>_,OR:()=>ue,P3:()=>y,PL:()=>te,QW:()=>H,Qh:()=>ae,Qj:()=>x,RG:()=>ie,SZ:()=>P,UU:()=>w,Uo:()=>m,VB:()=>U,WD:()=>ne,Wm:()=>Q,X9:()=>W,YJ:()=>de,aV:()=>B,ai:()=>ce,at:()=>v,av:()=>oe,b4:()=>q,cZ:()=>l,dF:()=>i,dH:()=>Z,d_:()=>se,eq:()=>E,hc:()=>g,iq:()=>n,jZ:()=>X,k9:()=>C,l3:()=>d,mP:()=>R,mu:()=>Y,os:()=>$,pU:()=>r,pj:()=>k,q1:()=>O,qG:()=>c,qi:()=>he,rl:()=>s,uK:()=>le,v1:()=>N,wd:()=>F,wi:()=>T,wy:()=>A,xI:()=>I,xs:()=>L,yW:()=>S,yv:()=>G,ze:()=>D});const n="#199489",r=14,i=3,s=26,a=28,l=22,c=50*a,h=2,d=.5,u=28,p=3,f=3,m=3,g=3,v=a,y=l,S=22,w=22,C=w/2+1,b=3,_=y/2,R=w-2*h,T=w+m+g+u,x=w/2-C/2,E=50,O=50,M="short+short",I=50,z=50,k=18,A=100,G=2,N=50,H=10,P=15,D=22,L=2,W={dark:1,light:.5},B=10,F=12,j=6,U=3,Z=12,$="auto",V="center",Y=7,q=4,K="timelineMessage",X="ref",Q="graph",J="message",ee="author",te="datetime",oe="sha",ne="changes";var re=(e=>(e.LocalBranches="localBranches",e.RemoteBranches="remoteBranches",e.Selection="selection",e.Head="head",e.Upstream="upstream",e.Highlights="highlights",e.Stashes="stashes",e.Tags="tags",e))(re||{}),ie=(e=>(e.Block="block",e.FullLine="fullLine",e.ThinLine="thinLine",e))(ie||{});const se={block:{type:"block",baseHeight:1*a,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*a,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*a,minHeight:1,maxHeight:2}},ae={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:"--color-graph-scroll-marker-head",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},le=10,ce=6,he={[ee]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:E},[te]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:O},[J]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!1,listId:"commit-message-zone",minimumWidth:z},[oe]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:I},[Q]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!1,listId:"commit-zone",minimumWidth:T},[X]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!1,listId:"ref-zone",minimumWidth:A},[ne]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:N}},de={hour:23,day:6,week:4,month:11,year:6},ue={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})},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}}},7418:e=>{var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))o.call(i,c)&&(a[c]=i[c]);if(t){s=t(i);for(var h=0;h<s.length;h++)n.call(i,s[h])&&(a[s[h]]=i[s[h]])}}return a}},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(2989);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")}}},9590:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,l,c,h;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(l=a;0!=l--;)if(!i(e[l],s[l]))return!1;return!0}if(o&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(h=e.entries();!(l=h.next()).done;)if(!s.has(l.value[0]))return!1;for(h=e.entries();!(l=h.next()).done;)if(!i(l.value[1],s.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(h=e.entries();!(l=h.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(l=a;0!=l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((a=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=a;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=a;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],s[c[l]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return!1;throw e}}},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,S=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function C(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 b(e){return C(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 b(e)||C(e)===h},t.isConcurrentMode=b,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===u},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===r},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(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===S||e.$$typeof===w||e.$$typeof===v)},t.typeOf=C},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,S=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:S},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=27;var d=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){e.keyCode===h&&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);d.displayName="RootCloseWrapper",d.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},d.defaultProps={event:"click"},t.default=d,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},3524:(e,t,o)=>{var n,r=o(6689),i=(n=r)&&"object"==typeof n&&"default"in n?n.default:n;function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var a=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,o){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==o&&"function"!=typeof o)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function h(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):o&&(l=o(l))}var d=function(e){var t,o;function r(){return e.apply(this,arguments)||this}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o,r.peek=function(){return l},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var s=r.prototype;return s.UNSAFE_componentWillMount=function(){c.push(this),h()},s.componentDidUpdate=function(){h()},s.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),h()},s.render=function(){return i.createElement(n,this.props)},r}(r.PureComponent);return s(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s(d,"canUseDOM",a),d}}},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)},8428:(e,t,o)=>{e.exports=o(6981)},5940:(e,t,o)=>{e.exports=o(5627)},3562:(e,t,o)=>{e.exports=o(7965)},6243:(e,t,o)=>{e.exports=o(8613)},2863:(e,t,o)=>{e.exports=o(433)},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:()=>a.QW,CHANGES_BAR_RIGHT_MARGIN:()=>a.SZ,CHANGES_ZONE_MIN_WIDTH:()=>a.v1,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>a.eq,COMMIT_COLUMN_WIDTH:()=>a.yW,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>a.q1,COMMIT_MERGE_NODE_DIAMETER:()=>a.k9,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>a.B8,COMMIT_NODE_DIAMETER:()=>a.UU,COMMIT_NODE_MIN_ALPHA:()=>a.l3,COMMIT_SHA_ZONE_MIN_WIDTH:()=>a.xI,COMMIT_ZONE_AVATAR_DIAMETER:()=>a.mP,COMMIT_ZONE_EDGE_ARC_PADDING:()=>a.NP,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>a.O5,COMMIT_ZONE_GUTTER_WIDTH:()=>a.Cc,COMMIT_ZONE_LINE_WIDTH:()=>a.F0,COMMIT_ZONE_MARGIN_BOTTOM:()=>a.$s,COMMIT_ZONE_MARGIN_TOP:()=>a.An,COMMIT_ZONE_PADDING_LEFT:()=>a.Uo,COMMIT_ZONE_PADDING_RIGHT:()=>a.hc,COMMIT_ZONE_ROW_HEIGHT:()=>a.at,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>a.P3,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:()=>a.wi,CommitDateTimeSources:()=>t.Gu,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>a.iq,DEFAULT_COMMIT_SHA_LENGTH:()=>a.ai,DEFAULT_WORKDIR_STATS:()=>a.OR,GRAPH_HEADER_ROW_HEIGHT:()=>a.rl,GRAPH_ROW_HEIGHT:()=>a.$0,GRAPH_ROW_INNER_HEIGHT:()=>a.cZ,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>a.qG,GRAPH_SCROLL_BAR_DEFAULT_WIDTH:()=>a.pU,GRAPH_SCROLL_MARKER_LANES:()=>a.dF,GraphMarkerShape:()=>a.RG,GraphMarkerType:()=>a.IE,HEADER_ROW_HEIGHT:()=>a.ze,HEADER_ROW_MARGIN_BOTTOM:()=>a.xs,INLINE_SUMMARY_MARGIN_LEFT:()=>a.aV,LeftPanelToGraphMarginGap:()=>a.mu,OPACITY_FACTOR_BY_THEME:()=>a.X9,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:()=>a.Qj,REF_ZONE_MARGIN_LEFT:()=>a.yv,REF_ZONE_MIN_WIDTH:()=>a.wy,REF_ZONE_TEXT_HEIGHT:()=>a.pj,ResizableHandleCorrection:()=>a.b4,SCROLL_TO_ALIGNMENT_AUTO:()=>a.os,SCROLL_TO_ALIGNMENT_CENTER:()=>a.MQ,TIMESTAMP_FORMAT_DATE_TIME:()=>a.It,TINY_FILES_READOUT_FONT_SIZE:()=>a.wd,TINY_FILES_READOUT_RIGHT_MARGIN:()=>a.IX,TINY_ICON_RIGHT_MARGIN:()=>a.VB,TINY_ICON_SIZE:()=>a.dH,allMetadataTypes:()=>l.AI,changesZone:()=>a.WD,commitAuthorZone:()=>a.GF,commitDateTimeZone:()=>a.PL,commitMessageZone:()=>a.KE,commitNodeType:()=>t.o$,commitShaZone:()=>a.av,commitZone:()=>a.Wm,default:()=>u,getHostingServiceName:()=>c.y,graphMarkerMetadata:()=>a.Qh,graphMarkerShapeMetadata:()=>a.d_,graphZoneMetaData:()=>a.qi,lookbackLimitByPeriod:()=>a.YJ,mergeConflictNodeType:()=>t.S7,mergeNodeType:()=>t.lH,numGraphColumnsDefault:()=>a.uK,pullRequestMetadataType:()=>l.mQ,refZone:()=>a.jZ,stashNodeType:()=>t.kP,timelineMsgRowRenderId:()=>a.Gn,unsupportedRebaseWarningNodeType:()=>t.br,upstreamMetadataType:()=>l.uq,workDirType:()=>t.ch});var e=o(693),t=o(827),r=o(2149),i={};for(const e in r)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(i[e]=()=>r[e]);o.d(n,i);var s=o(8289);i={};for(const e in s)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(i[e]=()=>s[e]);o.d(n,i);var a=o(3308),l=o(9453),c=o(7334),h=o(664);i={};for(const e in h)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_COLUMN_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_MERGE_NODE_DIAMETER","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_NODE_DIAMETER","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_ZONE_AVATAR_DIAMETER","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_GUTTER_WIDTH","COMMIT_ZONE_LINE_WIDTH","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_PADDING_LEFT","COMMIT_ZONE_PADDING_RIGHT","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_VIEWPORT_WIDTH_MIN","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_BAR_DEFAULT_WIDTH","GRAPH_SCROLL_MARKER_LANES","GraphMarkerShape","GraphMarkerType","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","RADIUS_DIFF_MERGE_NODE_COMMIT_NODE","REF_ZONE_MARGIN_LEFT","REF_ZONE_MIN_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"].indexOf(e)<0&&(i[e]=()=>h[e]);o.d(n,i);var d=o(6756);i={};for(const e in d)["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_COLUMN_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_MERGE_NODE_DIAMETER","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_NODE_DIAMETER","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_ZONE_AVATAR_DIAMETER","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_GUTTER_WIDTH","COMMIT_ZONE_LINE_WIDTH","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_PADDING_LEFT","COMMIT_ZONE_PADDING_RIGHT","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_VIEWPORT_WIDTH_MIN","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_BAR_DEFAULT_WIDTH","GRAPH_SCROLL_MARKER_LANES","GraphMarkerShape","GraphMarkerType","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","RADIUS_DIFF_MERGE_NODE_COMMIT_NODE","REF_ZONE_MARGIN_LEFT","REF_ZONE_MIN_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"].indexOf(e)<0&&(i[e]=()=>d[e]);o.d(n,i);var u=e.Z})(),module.exports=n})();