@gitkraken/gitkraken-components 3.1.0 → 4.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
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 n;!function(){var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var l=r.apply(null,n);l&&e.push(l)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)o.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},8514:(e,t,n)=>{var o=n(6115);e.exports=function(e,t,n){e&&o((function(){e.apply(n||null,t||[])}))}},5229:(e,t,n)=>{var o=n(2989),r=n(8514);e.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var o=arguments.length;if(1===o)delete i[t];else if(0===o)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(n),1)}return e},e.emit=function(){var t=o(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var l=(i[t]||[]).slice(0);return function(){var i=o(arguments),a=this||e;if("error"===t&&!1!==n.throws&&!l.length)throw 1===i.length?i[0]:i;return l.forEach((function(o){n.async?r(o,i,a):o.apply(a,i),o._once&&e.off(t,o)})),e}},e}},3285:(e,t,n)=>{n(8691),e.exports=n(4579).Array.isArray},6981:(e,t,n)=>{n(2699),e.exports=n(4579).Object.assign},5627:(e,t,n)=>{n(6760);var o=n(4579).Object;e.exports=function(e,t){return o.create(e,t)}},7965:(e,t,n)=>{n(520),e.exports=n(4579).Object.entries},8613:(e,t,n)=>{n(961),e.exports=n(4579).Object.keys},433:(e,t,n)=>{n(9349),e.exports=n(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,n)=>{var o=n(6727);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,n)=>{var o=n(7932),r=n(8728),i=n(6531);e.exports=function(e){return function(t,n,l){var a,s=o(t),u=r(s.length),c=i(l,u);if(e&&n!=n){for(;u>c;)if((a=s[c++])!=a)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||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,n)=>{var o=n(5663);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,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,n)=>{e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,n)=>{var o=n(6727),r=n(3938).document,i=o(r)&&o(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,n)=>{var o=n(3938),r=n(4579),i=n(9216),l=n(1818),a=n(7069),s="prototype",u=function(e,t,n){var c,d,h,p=e&u.F,f=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,y=e&u.W,b=f?r:r[t]||(r[t]={}),w=b[s],S=f?o:m?o[t]:(o[t]||{})[s];for(c in f&&(n=t),n)(d=!p&&S&&void 0!==S[c])&&a(b,c)||(h=d?S[c]:n[c],b[c]=f&&"function"!=typeof S[c]?n[c]:v&&d?i(h,o):y&&S[c]==h?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[s]=e[s],t}(h):g&&"function"==typeof h?i(Function.call,h):h,g&&((b.virtual||(b.virtual={}))[c]=h,e&u.R&&w&&!w[c]&&l(w,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},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,n){return t.call(e,n)}},1818:(e,t,n)=>{var o=n(4743),r=n(3101);e.exports=n(9666)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},4881:(e,t,n)=>{var o=n(3938).document;e.exports=o&&o.documentElement},3758:(e,t,n)=>{e.exports=!n(9666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,n)=>{var o=n(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},1421:(e,t,n)=>{var o=n(2894);e.exports=Array.isArray||function(e){return"Array"==o(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,n)=>{var o=n(9666),r=n(6162),i=n(8195),l=n(6274),a=n(6530),s=n(799),u=Object.assign;e.exports=!u||n(7929)((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o}))?function(e,t){for(var n=a(e),u=arguments.length,c=1,d=i.f,h=l.f;u>c;)for(var p,f=s(arguments[c++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],o&&!h.call(f,p)||(n[p]=f[p]);return n}:u},526:(e,t,n)=>{var o=n(2159),r=n(7856),i=n(3338),l=n(8989)("IE_PROTO"),a=function(){},s="prototype",u=function(){var e,t=n(7467)("iframe"),o=i.length;for(t.style.display="none",n(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[s]=o(e),n=new a,a[s]=null,n[l]=e):n=u(),void 0===t?n:r(n,t)}},4743:(e,t,n)=>{var o=n(2159),r=n(3758),i=n(3206),l=Object.defineProperty;t.f=n(9666)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},7856:(e,t,n)=>{var o=n(4743),r=n(2159),i=n(6162);e.exports=n(9666)?Object.defineProperties:function(e,t){r(e);for(var n,l=i(t),a=l.length,s=0;a>s;)o.f(e,n=l[s++],t[n]);return e}},6183:(e,t,n)=>{var o=n(6274),r=n(3101),i=n(7932),l=n(3206),a=n(7069),s=n(3758),u=Object.getOwnPropertyDescriptor;t.f=n(9666)?u:function(e,t){if(e=i(e),t=l(t,!0),s)try{return u(e,t)}catch(e){}if(a(e,t))return r(!o.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,n)=>{var o=n(7069),r=n(7932),i=n(7428)(!1),l=n(8989)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),s=0,u=[];for(n in a)n!=l&&o(a,n)&&u.push(n);for(;t.length>s;)o(a,n=t[s++])&&(~i(u,n)||u.push(n));return u}},6162:(e,t,n)=>{var o=n(2963),r=n(3338);e.exports=Object.keys||function(e){return o(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},2584:(e,t,n)=>{var o=n(3856),r=n(4579),i=n(7929);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],l={};l[e]=t(n),o(o.S+o.F*i((function(){n(1)})),"Object",l)}},2050:(e,t,n)=>{var o=n(9666),r=n(6162),i=n(7932),l=n(6274).f;e.exports=function(e){return function(t){for(var n,a=i(t),s=r(a),u=s.length,c=0,d=[];u>c;)n=s[c++],o&&!l.call(a,n)||d.push(e?[n,a[n]]:a[n]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,n)=>{var o=n(6727),r=n(2159),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(9216)(Function.call,n(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},8989:(e,t,n)=>{var o=n(250)("keys"),r=n(5730);e.exports=function(e){return o[e]||(o[e]=r(e))}},250:(e,t,n)=>{var o=n(4579),r=n(3938),i="__core-js_shared__",l=r[i]||(r[i]={});(e.exports=function(e,t){return l[e]||(l[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,n)=>{var o=n(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7932:(e,t,n)=>{var o=n(799),r=n(8333);e.exports=function(e){return o(r(e))}},8728:(e,t,n)=>{var o=n(1052),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},6530:(e,t,n)=>{var o=n(8333);e.exports=function(e){return Object(o(e))}},3206:(e,t,n)=>{var o=n(6727);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},8691:(e,t,n)=>{var o=n(3856);o(o.S,"Array",{isArray:n(1421)})},2699:(e,t,n)=>{var o=n(3856);o(o.S+o.F,"Object",{assign:n(8082)})},6760:(e,t,n)=>{var o=n(3856);o(o.S,"Object",{create:n(526)})},961:(e,t,n)=>{var o=n(6530),r=n(6162);n(2584)("keys",(function(){return function(e){return r(o(e))}}))},9349:(e,t,n)=>{var o=n(3856);o(o.S,"Object",{setPrototypeOf:n(2906).set})},520:(e,t,n)=>{var o=n(3856),r=n(2050)(!0);o(o.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,n)=>{var o=n(9638),r=n(4874),i=n.g.document,l=function(e,t,n,o){return e.addEventListener(t,n,o)},a=function(e,t,n,o){return e.removeEventListener(t,n,o)},s=[];function u(e,t,n){var o=function(e,t,n){var o,r;for(o=0;o<s.length;o++)if((r=s[o]).element===e&&r.type===t&&r.fn===n)return o}(e,t,n);if(o){var r=s[o].wrapper;return s.splice(o,1),r}}n.g.addEventListener||(l=function(e,t,o){return e.attachEvent("on"+t,function(e,t,o){var r=u(e,t,o)||function(e,t,o){return function(t){var r=t||n.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,o.call(e,r)}}(e,0,o);return s.push({wrapper:r,element:e,type:t,fn:o}),r}(e,t,o))},a=function(e,t,n){var o=u(e,t,n);if(o)return e.detachEvent("on"+t,o)}),e.exports={add:l,remove:a,fabricate:function(e,t,n){var l=-1===r.indexOf(t)?new o(t,{detail:n}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(l):e.fireEvent("on"+t,l)}}},4874:(e,t,n)=>{var o=[],r="",i=/^on/;for(r in n.g)i.test(r)&&o.push(r.slice(2));e.exports=o},9638:(e,t,n)=>{var o=n.g.CustomEvent;e.exports=function(){try{var e=new o("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?o:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}},3249:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=void 0;var r=function(){};o(n(139)).default&&(r=document.addEventListener?function(e,t,n,o){return e.removeEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=void 0;var r=function(){};o(n(139)).default&&(r=document.addEventListener?function(e,t,n,o){return e.addEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.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,n)=>{var o=n(4836);t.__esModule=!0,t.default=void 0;var r=o(n(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,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e){var t=(0,l.default)(e),n=(0,i.default)(t),o=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(o,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),left:a.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=o(n(1629)),i=o(n(7624)),l=o(n(9981));e.exports=t.default},2939:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),n=e&&e.offsetParent;for(;n&&"html"!==l(e)&&"static"===(0,i.default)(n,"position");)n=n.offsetParent;return n||t.documentElement};var r=o(n(9981)),i=o(n(162));function l(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e,t){var n,o={top:0,left:0};"fixed"===(0,u.default)(e,"position")?n=e.getBoundingClientRect():(t=t||(0,l.default)(e),n=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(o=(0,i.default)(t)),o.top+=parseInt((0,u.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,o.left+=parseInt((0,u.default)(t,"borderLeftWidth"),10)-(0,s.default)(t)||0);return(0,r.default)({},n,{top:n.top-o.top-(parseInt((0,u.default)(e,"marginTop"),10)||0),left:n.left-o.left-(parseInt((0,u.default)(e,"marginLeft"),10)||0)})};var r=o(n(434)),i=o(n(2565)),l=o(n(2939)),a=o(n(504)),s=o(n(5770)),u=o(n(162));e.exports=t.default},5770:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e,t){var n=(0,r.default)(e);if(void 0===t)return n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:e.scrollLeft;n?n.scrollTo(t,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):e.scrollLeft=t};var r=o(n(7624));e.exports=t.default},504:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e,t){var n=(0,r.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=o(n(7624));e.exports=t.default},7023:(e,t,n)=>{var o=n(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 n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var o=e.currentStyle[t]||null;if(null==o&&n&&n[t]&&(o=n[t]),l.test(o)&&!i.test(t)){var a=n.left,s=e.runtimeStyle,u=s&&s.left;u&&(s.left=e.currentStyle.left),n.left="fontSize"===t?"1em":o,o=n.pixelLeft+"px",n.left=a,u&&(s.left=u)}return o}}};var r=o(n(3497)),i=/^(top|right|bottom|left)$/,l=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e,t,n){var o="",c="",d=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,l.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=n}Object.keys(d).forEach((function(t){var n=d[t];n||0===n?(0,u.default)(t)?c+=t+"("+n+") ":o+=(0,i.default)(t)+": "+n+";":(0,a.default)(e,(0,i.default)(t))})),c&&(o+=s.transform+": "+c+";");e.style.cssText+=";"+o};var r=o(n(3497)),i=o(n(4403)),l=o(n(7023)),a=o(n(1760)),s=n(702),u=o(n(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||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,n)=>{var o=n(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,l,a,s,u,c,d,h,p,f,m=o(n(139)),g="transform";if(t.transform=g,t.animationEnd=l,t.transitionEnd=i,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=s,t.transitionProperty=a,t.animationDelay=f,t.animationTiming=p,t.animationDuration=h,t.animationName=d,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,o={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(o),i="",l=0;l<r.length;l++){var a=r[l];if(a+"TransitionProperty"in n){i="-"+a.toLowerCase(),e=o[a]("TransitionEnd"),t=o[a]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=l=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=a=r+"-transition-property",t.transitionDuration=s=r+"-transition-duration",t.transitionDelay=c=r+"-transition-delay",t.transitionTiming=u=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=h=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:u,delay:c,duration:s};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default},3497:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=o(n(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default},4403:(e,t,n)=>{var o=n(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=o(n(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},9425:e=>{var t={},n="(?:^|\\s)",o="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(n+e+o,"g"),r}e.exports={add:function(e,t){var n=e.className;n.length?r(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,n)=>{var o=n(5229),r=n(1808),i=n(9425),l=document,a=l.documentElement;function s(e,t,o,i){n.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[o],i):n.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[o],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[o],i),r[t](e,o,i))}function u(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 c(e,t){return void 0!==n.g[t]?n.g[t]:a.clientHeight?a[e]:l.body[e]}function d(e,t,n){var o,r=e||{},i=r.className;return r.className+=" gu-hide",o=l.elementFromPoint(t,n),r.className=i,o}function h(){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===l?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 b(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function w(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),o={pageX:"clientX",pageY:"clientY"};return e in o&&!(e in n)&&o[e]in n&&(e=o[e]),n[e]}e.exports=function(e,t){var n,y,S,C,x,_,T,R,E,k,O;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var M,z=null,I=t||{};void 0===I.moves&&(I.moves=p),void 0===I.accepts&&(I.accepts=p),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=h),void 0===I.copy&&(I.copy=!1),void 0===I.copySortSource&&(I.copySortSource=!1),void 0===I.revertOnSpill&&(I.revertOnSpill=!1),void 0===I.removeOnSpill&&(I.removeOnSpill=!1),void 0===I.direction&&(I.direction="vertical"),void 0===I.ignoreInputTextSelection&&(I.ignoreInputTextSelection=!0),void 0===I.mirrorContainer&&(I.mirrorContainer=l.body);var P=o({containers:I.containers,start:function(e){var t=F(e);t&&B(t)},end:U,cancel:Y,remove:$,destroy:function(){A(!0),Z({})},canMove:function(e){return!!F(e)},dragging:!1});return!0===I.removeOnSpill&&P.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){P.dragging&&i.add(e,"gu-hide")})),A(),P;function N(e){return-1!==P.containers.indexOf(e)||I.isContainer(e)}function A(e){var t=e?"remove":"add";s(a,t,"mousedown",W),s(a,t,"mouseup",Z)}function D(e){s(a,e?"remove":"add","mousemove",H)}function L(e){var t=e?"remove":"add";r[t](a,"selectstart",G),r[t](a,"click",G)}function G(e){M&&e.preventDefault()}function W(e){if(_=e.clientX,T=e.clientY,!(1!==u(e)||e.metaKey||e.ctrlKey)){var t=e.target,n=F(t);n&&(M=n,D(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function H(e){if(M)if(0!==u(e)){if(void 0===e.clientX||e.clientX!==_||void 0===e.clientY||e.clientY!==T){if(I.ignoreInputTextSelection){var t=w("clientX",e),o=w("clientY",e);if(v(l.elementFromPoint(t,o)))return}var r=M;D(!0),L(),U(),B(r);var d,h={left:(d=S.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:d.top+c("scrollTop","pageYOffset")};C=w("pageX",e)-h.left,x=w("pageY",e)-h.top,i.add(k||S,"gu-transit"),function(){if(n)return;var e=S.getBoundingClientRect();(n=S.cloneNode(!0)).style.width=f(e)+"px",n.style.height=m(e)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),s(a,"add","mousemove",Q),i.add(I.mirrorContainer,"gu-unselectable"),P.emit("cloned",n,S,"mirror")}(),Q(e)}}else Z({})}function F(e){if(!(P.dragging&&n||N(e))){for(var t=e;g(e)&&!1===N(g(e));){if(I.invalid(e,t))return;if(!(e=g(e)))return}var o=g(e);if(o)if(!I.invalid(e,t))if(I.moves(e,o,t,b(e)))return{item:e,source:o}}}function B(e){var t,n;t=e.item,n=e.source,("boolean"==typeof I.copy?I.copy:I.copy(t,n))&&(k=e.item.cloneNode(!0),P.emit("cloned",k,e.item,"copy")),y=e.source,S=e.item,R=E=b(e.item),P.dragging=!0,P.emit("drag",S,y)}function U(){if(P.dragging){var e=k||S;V(e,g(e))}}function j(){M=!1,D(!0),L(!0)}function Z(e){if(j(),P.dragging){var t=k||S,o=w("clientX",e),r=w("clientY",e),i=X(d(n,o,r),o,r);i&&(k&&I.copySortSource||!k||i!==y)?V(t,i):I.removeOnSpill?$():Y()}}function V(e,t){var n=g(e);k&&I.copySortSource&&t===y&&n.removeChild(S),K(t)?P.emit("cancel",e,y,y):P.emit("drop",e,t,y,E),q()}function $(){if(P.dragging){var e=k||S,t=g(e);t&&t.removeChild(e),P.emit(k?"cancel":"remove",e,t,y),q()}}function Y(e){if(P.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=k||S,o=g(n),r=K(o);!1===r&&t&&(k?o&&o.removeChild(k):y.insertBefore(n,R)),r||t?P.emit("cancel",n,y,y):P.emit("drop",n,o,y,E),q()}}function q(){var e=k||S;j(),n&&(i.rm(I.mirrorContainer,"gu-unselectable"),s(a,"remove","mousemove",Q),g(n).removeChild(n),n=null),e&&i.rm(e,"gu-transit"),O&&clearTimeout(O),P.dragging=!1,z&&P.emit("out",e,z,y),P.emit("dragend",e),y=S=k=R=E=O=z=null}function K(e,t){var o;return o=void 0!==t?t:n?E:b(k||S),e===y&&o===R}function X(e,t,n){for(var o=e;o&&!r();)o=g(o);return o;function r(){if(!1===N(o))return!1;var r=J(o,e),i=ee(o,r,t,n);return!!K(o,i)||I.accepts(S,o,y,i)}}function Q(e){if(n){e.preventDefault();var t=w("clientX",e),o=w("clientY",e),r=t-C,i=o-x;n.style.left=r+"px",n.style.top=i+"px";var l=k||S,a=d(n,t,o),s=X(a,t,o),u=null!==s&&s!==z;(u||null===s)&&(z&&f("out"),z=s,u&&f("over"));var c=g(l);if(s!==y||!k||I.copySortSource){var h,p=J(s,a);if(null!==p)h=ee(s,p,t,o);else{if(!0!==I.revertOnSpill||k)return void(k&&c&&c.removeChild(l));h=R,s=y}(null===h&&u||h!==l&&h!==b(l))&&(E=h,s.insertBefore(l,h),P.emit("shadow",l,s,y))}else c&&c.removeChild(l)}function f(e){P.emit(e,l,z,y)}}function J(e,t){for(var n=t;n!==e&&g(n)!==e;)n=g(n);return n===a?null:n}function ee(e,t,n,o){var r="horizontal"===I.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return l(n>e.left+f(e)/2);return l(o>e.top+m(e)/2)}():function(){var t,i,l,a=e.children.length;for(t=0;t<a;t++){if(l=(i=e.children[t]).getBoundingClientRect(),r&&l.left+l.width/2>n)return i;if(!r&&l.top+l.height/2>o)return i}return null}();return i;function l(e){return e?b(t):t}}}},3316:e=>{function t(e,t,n,o){var r,i=null==(r=o)||"number"==typeof r||"boolean"==typeof r?o:n(o),l=t.get(i);return void 0===l&&(l=e.call(this,o),t.set(i,l)),l}function n(e,t,n){var o=Array.prototype.slice.call(arguments,3),r=n(o),i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}function o(e,t,n,o,r){return n.bind(t,e,o,r)}function r(e,r){return o(e,this,1===e.length?t:n,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function l(){this.cache=Object.create(null)}l.prototype.has=function(e){return e in this.cache},l.prototype.get=function(e){return this.cache[e]},l.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new l}};e.exports=function(e,t){var n=t&&t.cache?t.cache:a,o=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:n,serializer:o})},e.exports.strategies={variadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return o(e,this,t,n.cache.create(),n.serializer)}}},1143:e=>{e.exports=function(e,t,n,o,r,i,l,a){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,l,a],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},7418:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,l,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))n.call(i,u)&&(a[u]=i[u]);if(t){l=t(i);for(var c=0;c<l.length;c++)o.call(i,l[c])&&(a[l[c]]=i[l[c]])}}return a}},621:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var o="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=l(n(7294)),i=l(n(2613));function l(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n,i,l){var a=e[t],s=void 0===a?"undefined":o(a);return r.default.isValidElement(a)?new Error("Invalid "+i+" `"+l+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===s&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+l+"` of value `"+a+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(7294)),r=n(9864),i=l(n(2613));function l(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n,i,l){var a=e[t];return o.default.isValidElement(a)?new Error("Invalid "+i+" `"+l+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(a)?null:new Error("Invalid "+i+" `"+l+"` of value `"+a+"` supplied to `"+n+"`, 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,n,o,r,i){var l=o||"<<anonymous>>",a=i||n;if(null==t[n])return new Error("The "+r+" `"+a+"` is required to make `"+l+"` accessible for users of assistive technologies such as screen readers.");for(var s=arguments.length,u=Array(s>5?s-5:0),c=5;c<s;c++)u[c-5]=arguments[c];return e.apply(void 0,[t,n,o,r,i].concat(u))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,o,r,i,l){var a=r||"<<anonymous>>",s=l||o;if(null==n[o])return t?new Error("Required "+i+" `"+s+"` was not specified in `"+a+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),d=6;d<u;d++)c[d-6]=arguments[d];return e.apply(void 0,[n,o,a,i,s].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},2703:(e,t,n)=>{var o=n(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,l){if(l!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{var o=n(7294),r=n(7418),i=n(3840);function l(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,i,l,a){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,l,a],u=0;(e=Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function a(e,t,n,o,r,i,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}o||l("227");var s=!1,u=null,c=!1,d=null,h={onError:function(e){s=!0,u=e}};function p(e,t,n,o,r,i,l,c,d){s=!1,u=null,a.apply(h,arguments)}var f=null,m={};function g(){if(f)for(var e in m){var t=m[e],n=f.indexOf(e);if(-1<n||l("96",e),!y[n])for(var o in t.extractEvents||l("97",e),y[n]=t,n=t.eventTypes){var r=void 0,i=n[o],a=t,s=o;b.hasOwnProperty(s)&&l("99",s),b[s]=i;var u=i.phasedRegistrationNames;if(u){for(r in u)u.hasOwnProperty(r)&&v(u[r],a,s);r=!0}else i.registrationName?(v(i.registrationName,a,s),r=!0):r=!1;r||l("98",o,e)}}}function v(e,t,n){w[e]&&l("100",e),w[e]=t,S[e]=t.eventTypes[n].dependencies}var y=[],b={},w={},S={},C=null,x=null,_=null;function T(e,t,n){var o=e.type||"unknown-event";e.currentTarget=_(n),function(e,t,n,o,r,i,a,h,f){if(p.apply(this,arguments),s){if(s){var m=u;s=!1,u=null}else l("198"),m=void 0;c||(c=!0,d=m)}}(o,t,void 0,e),e.currentTarget=null}function R(e,t){return null==t&&l("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function E(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var k=null;function O(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)T(e,t[o],n[o]);else t&&T(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var M={injectEventPluginOrder:function(e){f&&l("101"),f=Array.prototype.slice.call(e),g()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];m.hasOwnProperty(t)&&m[t]===o||(m[t]&&l("102",t),m[t]=o,n=!0)}n&&g()}};function z(e,t){var n=e.stateNode;if(!n)return null;var o=C(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&l("231",t,typeof n),n)}function I(e){if(null!==e&&(k=R(k,e)),e=k,k=null,e&&(E(e,O),k&&l("95"),c))throw e=d,c=!1,d=null,e}var P=Math.random().toString(36).slice(2),N="__reactInternalInstance$"+P,A="__reactEventHandlers$"+P;function D(e){if(e[N])return e[N];for(;!e[N];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[N]).tag||6===e.tag?e:null}function L(e){return!(e=e[N])||5!==e.tag&&6!==e.tag?null:e}function G(e){if(5===e.tag||6===e.tag)return e.stateNode;l("33")}function W(e){return e[A]||null}function H(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function F(e,t,n){(t=z(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=R(n._dispatchListeners,t),n._dispatchInstances=R(n._dispatchInstances,e))}function B(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=H(t);for(t=n.length;0<t--;)F(n[t],"captured",e);for(t=0;t<n.length;t++)F(n[t],"bubbled",e)}}function U(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=z(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=R(n._dispatchListeners,t),n._dispatchInstances=R(n._dispatchInstances,e))}function j(e){e&&e.dispatchConfig.registrationName&&U(e._targetInst,null,e)}function Z(e){E(e,B)}var V=!("undefined"==typeof window||!window.document||!window.document.createElement);function $(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Y={animationend:$("Animation","AnimationEnd"),animationiteration:$("Animation","AnimationIteration"),animationstart:$("Animation","AnimationStart"),transitionend:$("Transition","TransitionEnd")},q={},K={};function X(e){if(q[e])return q[e];if(!Y[e])return e;var t,n=Y[e];for(t in n)if(n.hasOwnProperty(t)&&t in K)return q[e]=n[t];return e}V&&(K=document.createElement("div").style,"AnimationEvent"in window||(delete Y.animationend.animation,delete Y.animationiteration.animation,delete Y.animationstart.animation),"TransitionEvent"in window||delete Y.transitionend.transition);var Q=X("animationend"),J=X("animationiteration"),ee=X("animationstart"),te=X("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),oe=null,re=null,ie=null;function le(){if(ie)return ie;var e,t,n=re,o=n.length,r="value"in oe?oe.value:oe.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var l=o-e;for(t=1;t<=l&&n[o-t]===r[i-t];t++);return ie=r.slice(e,1<t?1-t:void 0)}function ae(){return!0}function se(){return!1}function ue(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:se,this.isPropagationStopped=se,this}function ce(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function de(e){e instanceof this||l("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function he(e){e.eventPool=[],e.getPooled=ce,e.release=de}r(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,he(n),n},he(ue);var pe=ue.extend({data:null}),fe=ue.extend({data:null}),me=[9,13,27,32],ge=V&&"CompositionEvent"in window,ve=null;V&&"documentMode"in document&&(ve=document.documentMode);var ye=V&&"TextEvent"in window&&!ve,be=V&&(!ge||ve&&8<ve&&11>=ve),we=String.fromCharCode(32),Se={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ce=!1;function xe(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function _e(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Te=!1;var Re={eventTypes:Se,extractEvents:function(e,t,n,o){var r=void 0,i=void 0;if(ge)e:{switch(e){case"compositionstart":r=Se.compositionStart;break e;case"compositionend":r=Se.compositionEnd;break e;case"compositionupdate":r=Se.compositionUpdate;break e}r=void 0}else Te?xe(e,n)&&(r=Se.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=Se.compositionStart);return r?(be&&"ko"!==n.locale&&(Te||r!==Se.compositionStart?r===Se.compositionEnd&&Te&&(i=le()):(re="value"in(oe=o)?oe.value:oe.textContent,Te=!0)),r=pe.getPooled(r,t,n,o),i?r.data=i:null!==(i=_e(n))&&(r.data=i),Z(r),i=r):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return _e(t);case"keypress":return 32!==t.which?null:(Ce=!0,we);case"textInput":return(e=t.data)===we&&Ce?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!ge&&xe(e,t)?(e=le(),ie=re=oe=null,Te=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data}}(e,n))?((t=fe.getPooled(Se.beforeInput,t,n,o)).data=e,Z(t)):t=null,null===i?t:null===t?i:[i,t]}},Ee=null,ke=null,Oe=null;function Me(e){if(e=x(e)){"function"!=typeof Ee&&l("280");var t=C(e.stateNode);Ee(e.stateNode,e.type,t)}}function ze(e){ke?Oe?Oe.push(e):Oe=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Oe;if(Oe=ke=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Pe(e,t){return e(t)}function Ne(e,t,n){return e(t,n)}function Ae(){}var De=!1;function Le(e,t){if(De)return e(t);De=!0;try{return Pe(e,t)}finally{De=!1,(null!==ke||null!==Oe)&&(Ae(),Ie())}}var Ge={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function We(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ge[e.type]:"textarea"===t}function He(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Fe(e){if(!V)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=Be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function je(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Be(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}var Ze=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ze.hasOwnProperty("ReactCurrentDispatcher")||(Ze.ReactCurrentDispatcher={current:null});var Ve=/^(.*)[\\\/]/,$e="function"==typeof Symbol&&Symbol.for,Ye=$e?Symbol.for("react.element"):60103,qe=$e?Symbol.for("react.portal"):60106,Ke=$e?Symbol.for("react.fragment"):60107,Xe=$e?Symbol.for("react.strict_mode"):60108,Qe=$e?Symbol.for("react.profiler"):60114,Je=$e?Symbol.for("react.provider"):60109,et=$e?Symbol.for("react.context"):60110,tt=$e?Symbol.for("react.concurrent_mode"):60111,nt=$e?Symbol.for("react.forward_ref"):60112,ot=$e?Symbol.for("react.suspense"):60113,rt=$e?Symbol.for("react.memo"):60115,it=$e?Symbol.for("react.lazy"):60116,lt="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=lt&&e[lt]||e["@@iterator"])?e:null}function st(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case tt:return"ConcurrentMode";case Ke:return"Fragment";case qe:return"Portal";case Qe:return"Profiler";case Xe:return"StrictMode";case ot:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case et:return"Context.Consumer";case Je:return"Context.Provider";case nt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return st(e.type);case it:if(e=1===e._status?e._result:null)return st(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=st(e.type);n=null,o&&(n=st(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(Ve,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ct=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dt=Object.prototype.hasOwnProperty,ht={},pt={};function ft(e,t,n,o,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){mt[e]=new ft(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];mt[t]=new ft(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){mt[e]=new ft(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){mt[e]=new ft(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){mt[e]=new ft(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){mt[e]=new ft(e,3,!0,e,null)})),["capture","download"].forEach((function(e){mt[e]=new ft(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){mt[e]=new ft(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){mt[e]=new ft(e,5,!1,e.toLowerCase(),null)}));var gt=/[\-:]([a-z])/g;function vt(e){return e[1].toUpperCase()}function yt(e,t,n,o){var r=mt.hasOwnProperty(t)?mt[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!dt.call(pt,e)||!dt.call(ht,e)&&(ct.test(e)?pt[e]=!0:(ht[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function bt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function wt(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function St(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=bt(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ct(e,t){null!=(t=t.checked)&&yt(e,"checked",t,!1)}function xt(e,t){Ct(e,t);var n=bt(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Tt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tt(e,t.type,bt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function _t(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Tt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(gt,vt);mt[t]=new ft(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(gt,vt);mt[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(gt,vt);mt[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){mt[e]=new ft(e,1,!1,e.toLowerCase(),null)}));var Rt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Et(e,t,n){return(e=ue.getPooled(Rt.change,e,t,n)).type="change",ze(n),Z(e),e}var kt=null,Ot=null;function Mt(e){I(e)}function zt(e){if(je(G(e)))return e}function It(e,t){if("change"===e)return t}var Pt=!1;function Nt(){kt&&(kt.detachEvent("onpropertychange",At),Ot=kt=null)}function At(e){"value"===e.propertyName&&zt(Ot)&&Le(Mt,e=Et(Ot,e,He(e)))}function Dt(e,t,n){"focus"===e?(Nt(),Ot=n,(kt=t).attachEvent("onpropertychange",At)):"blur"===e&&Nt()}function Lt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zt(Ot)}function Gt(e,t){if("click"===e)return zt(t)}function Wt(e,t){if("input"===e||"change"===e)return zt(t)}V&&(Pt=Fe("input")&&(!document.documentMode||9<document.documentMode));var Ht={eventTypes:Rt,_isInputEventSupported:Pt,extractEvents:function(e,t,n,o){var r=t?G(t):window,i=void 0,l=void 0,a=r.nodeName&&r.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===r.type?i=It:We(r)?Pt?i=Wt:(i=Lt,l=Dt):(a=r.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(i=Gt),i&&(i=i(e,t)))return Et(i,n,o);l&&l(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Tt(r,"number",r.value)}},Ft=ue.extend({view:null,detail:null}),Bt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ut(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Bt[e])&&!!t[e]}function jt(){return Ut}var Zt=0,Vt=0,$t=!1,Yt=!1,qt=Ft.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:jt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Zt;return Zt=e.screenX,$t?"mousemove"===e.type?e.screenX-t:0:($t=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Vt;return Vt=e.screenY,Yt?"mousemove"===e.type?e.screenY-t:0:(Yt=!0,0)}}),Kt=qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qt={eventTypes:Xt,extractEvents:function(e,t,n,o){var r="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!i&&!r)return null;if(r=o.window===o?o:(r=o.ownerDocument)?r.defaultView||r.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?D(t):null):i=null,i===t)return null;var l=void 0,a=void 0,s=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(l=qt,a=Xt.mouseLeave,s=Xt.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(l=Kt,a=Xt.pointerLeave,s=Xt.pointerEnter,u="pointer");var c=null==i?r:G(i);if(r=null==t?r:G(t),(e=l.getPooled(a,i,n,o)).type=u+"leave",e.target=c,e.relatedTarget=r,(n=l.getPooled(s,t,n,o)).type=u+"enter",n.target=r,n.relatedTarget=c,o=t,i&&o)e:{for(r=o,u=0,l=t=i;l;l=H(l))u++;for(l=0,s=r;s;s=H(s))l++;for(;0<u-l;)t=H(t),u--;for(;0<l-u;)r=H(r),l--;for(;u--;){if(t===r||t===r.alternate)break e;t=H(t),r=H(r)}t=null}else t=null;for(r=t,t=[];i&&i!==r&&(null===(u=i.alternate)||u!==r);)t.push(i),i=H(i);for(i=[];o&&o!==r&&(null===(u=o.alternate)||u!==r);)i.push(o),o=H(o);for(o=0;o<t.length;o++)U(t[o],"bubbled",e);for(o=i.length;0<o--;)U(i[o],"captured",n);return[e,n]}};function Jt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var en=Object.prototype.hasOwnProperty;function tn(e,t){if(Jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!en.call(t,n[o])||!Jt(e[n[o]],t[n[o]]))return!1;return!0}function nn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function on(e){2!==nn(e)&&l("188")}function rn(e){if(e=function(e){var t=e.alternate;if(!t)return 3===(t=nn(e))&&l("188"),1===t?null:e;for(var n=e,o=t;;){var r=n.return,i=r?r.alternate:null;if(!r||!i)break;if(r.child===i.child){for(var a=r.child;a;){if(a===n)return on(r),e;if(a===o)return on(r),t;a=a.sibling}l("188")}if(n.return!==o.return)n=r,o=i;else{a=!1;for(var s=r.child;s;){if(s===n){a=!0,n=r,o=i;break}if(s===o){a=!0,o=r,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,o=r;break}if(s===o){a=!0,o=i,n=r;break}s=s.sibling}a||l("189")}}n.alternate!==o&&l("190")}return 3!==n.tag&&l("188"),n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var ln=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sn=Ft.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn=Ft.extend({key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:jt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=qt.extend({dataTransfer:null}),fn=Ft.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:jt}),mn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),gn=qt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),vn=[["abort","abort"],[Q,"animationEnd"],[J,"animationIteration"],[ee,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[te,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],yn={},bn={};function wn(e,t){var n=e[0],o="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],isInteractive:t},yn[e]=t,bn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){wn(e,!0)})),vn.forEach((function(e){wn(e,!1)}));var Sn={eventTypes:yn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=bn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,o){var r=bn[e];if(!r)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=hn;break;case"blur":case"focus":e=sn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=fn;break;case Q:case J:case ee:e=ln;break;case te:e=mn;break;case"scroll":e=Ft;break;case"wheel":e=gn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Kt;break;default:e=ue}return Z(t=e.getPooled(r,t,n,o)),t}},Cn=Sn.isInteractiveTopLevelEventType,xn=[];function _n(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o;for(o=n;o.return;)o=o.return;if(!(o=3!==o.tag?null:o.stateNode.containerInfo))break;e.ancestors.push(n),n=D(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=He(e.nativeEvent);o=e.topLevelType;for(var i=e.nativeEvent,l=null,a=0;a<y.length;a++){var s=y[a];s&&(s=s.extractEvents(o,t,i,r))&&(l=R(l,s))}I(l)}}var Tn=!0;function Rn(e,t){if(!t)return null;var n=(Cn(e)?kn:On).bind(null,e);t.addEventListener(e,n,!1)}function En(e,t){if(!t)return null;var n=(Cn(e)?kn:On).bind(null,e);t.addEventListener(e,n,!0)}function kn(e,t){Ne(On,e,t)}function On(e,t){if(Tn){var n=He(t);if(null===(n=D(n))||"number"!=typeof n.tag||2===nn(n)||(n=null),xn.length){var o=xn.pop();o.topLevelType=e,o.nativeEvent=t,o.targetInst=n,e=o}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Le(_n,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>xn.length&&xn.push(e)}}}var Mn={},zn=0,In="_reactListenersID"+(""+Math.random()).slice(2);function Pn(e){return Object.prototype.hasOwnProperty.call(e,In)||(e[In]=zn++,Mn[e[In]]={}),Mn[e[In]]}function Nn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function An(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dn(e,t){var n,o=An(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=An(o)}}function Ln(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ln(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Gn(){for(var e=window,t=Nn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Nn(e.document)}return t}function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Hn(e){var t=Gn(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ln(n.ownerDocument.documentElement,n)){if(null!==o&&Wn(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Dn(n,i);var l=Dn(n,o);r&&l&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Fn=V&&"documentMode"in document&&11>=document.documentMode,Bn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,jn=null,Zn=null,Vn=!1;function $n(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vn||null==Un||Un!==Nn(n)?null:("selectionStart"in(n=Un)&&Wn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Zn&&tn(Zn,n)?null:(Zn=n,(e=ue.getPooled(Bn.select,jn,e,t)).type="select",e.target=Un,Z(e),e))}var Yn={eventTypes:Bn,extractEvents:function(e,t,n,o){var r,i=o.window===o?o.document:9===o.nodeType?o:o.ownerDocument;if(!(r=!i)){e:{i=Pn(i),r=S.onSelect;for(var l=0;l<r.length;l++){var a=r[l];if(!i.hasOwnProperty(a)||!i[a]){i=!1;break e}}i=!0}r=!i}if(r)return null;switch(i=t?G(t):window,e){case"focus":(We(i)||"true"===i.contentEditable)&&(Un=i,jn=t,Zn=null);break;case"blur":Zn=jn=Un=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,$n(n,o);case"selectionchange":if(Fn)break;case"keydown":case"keyup":return $n(n,o)}return null}};function qn(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Kn(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Xn(e,t){return null!=t.dangerouslySetInnerHTML&&l("91"),r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&l("92"),Array.isArray(t)&&(1>=t.length||l("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:bt(n)}}function Jn(e,t){var n=bt(t.value),o=bt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function eo(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),C=W,x=L,_=G,M.injectEventPluginsByName({SimpleEventPlugin:Sn,EnterLeaveEventPlugin:Qt,ChangeEventPlugin:Ht,SelectEventPlugin:Yn,BeforeInputEventPlugin:Re});var to={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function no(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?no(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ro,io=void 0,lo=(ro=function(e,t){if(e.namespaceURI!==to.svg||"innerHTML"in e)e.innerHTML=t;else{for((io=io||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=io.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ro(e,t)}))}:ro);function ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var so={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uo=["Webkit","ms","Moz","O"];function co(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||so.hasOwnProperty(e)&&so[e]?(""+t).trim():t+"px"}function ho(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=co(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(so).forEach((function(e){uo.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),so[t]=so[e]}))}));var po=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fo(e,t){t&&(po[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&l("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&l("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||l("61")),null!=t.style&&"object"!=typeof t.style&&l("62",""))}function mo(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function go(e,t){var n=Pn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var o=0;o<t.length;o++){var r=t[o];if(!n.hasOwnProperty(r)||!n[r]){switch(r){case"scroll":En("scroll",e);break;case"focus":case"blur":En("focus",e),En("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Fe(r)&&En(r,e);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(r)&&Rn(r,e)}n[r]=!0}}}function vo(){}var yo=null,bo=null;function wo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function So(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Co="function"==typeof setTimeout?setTimeout:void 0,xo="function"==typeof clearTimeout?clearTimeout:void 0,_o=i.unstable_scheduleCallback,To=i.unstable_cancelCallback;function Ro(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Eo(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var ko=[],Oo=-1;function Mo(e){0>Oo||(e.current=ko[Oo],ko[Oo]=null,Oo--)}function zo(e,t){Oo++,ko[Oo]=e.current,e.current=t}var Io={},Po={current:Io},No={current:!1},Ao=Io;function Do(e,t){var n=e.type.contextTypes;if(!n)return Io;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=(e=e.childContextTypes)}function Go(e){Mo(No),Mo(Po)}function Wo(e){Mo(No),Mo(Po)}function Ho(e,t,n){Po.current!==Io&&l("168"),zo(Po,t),zo(No,n)}function Fo(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())i in e||l("108",st(t)||"Unknown",i);return r({},n,o)}function Bo(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Io,Ao=Po.current,zo(Po,t),zo(No,No.current),!0}function Uo(e,t,n){var o=e.stateNode;o||l("169"),n?(t=Fo(e,t,Ao),o.__reactInternalMemoizedMergedChildContext=t,Mo(No),Mo(Po),zo(Po,t)):Mo(No),zo(No,n)}var jo=null,Zo=null;function Vo(e){return function(t){try{return e(t)}catch(e){}}}function $o(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Yo(e,t,n,o){return new $o(e,t,n,o)}function qo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ko(e,t){var n=e.alternate;return null===n?((n=Yo(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xo(e,t,n,o,r,i){var a=2;if(o=e,"function"==typeof e)qo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Ke:return Qo(n.children,r,i,t);case tt:return Jo(n,3|r,i,t);case Xe:return Jo(n,2|r,i,t);case Qe:return(e=Yo(12,n,t,4|r)).elementType=Qe,e.type=Qe,e.expirationTime=i,e;case ot:return(e=Yo(13,n,t,r)).elementType=ot,e.type=ot,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Je:a=10;break e;case et:a=9;break e;case nt:a=11;break e;case rt:a=14;break e;case it:a=16,o=null;break e}l("130",null==e?e:typeof e,"")}return(t=Yo(a,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function Qo(e,t,n,o){return(e=Yo(7,e,o,t)).expirationTime=n,e}function Jo(e,t,n,o){return e=Yo(8,e,o,t),t=0==(1&t)?Xe:tt,e.elementType=t,e.type=t,e.expirationTime=n,e}function er(e,t,n){return(e=Yo(6,e,null,t)).expirationTime=n,e}function tr(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),ir(t,e)}function or(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,o=e.latestPendingTime;n===t?e.earliestPendingTime=o===t?e.latestPendingTime=0:o:o===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,o=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:o>t&&(e.latestSuspendedTime=t),ir(t,e)}function rr(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ir(e,t){var n=t.earliestSuspendedTime,o=t.latestSuspendedTime,r=t.earliestPendingTime,i=t.latestPingedTime;0===(r=0!==r?r:i)&&(0===e||o<e)&&(r=o),0!==(e=r)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=r,t.expirationTime=e}function lr(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ar=(new o.Component).refs;function sr(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(o=e.updateQueue)&&0===e.expirationTime&&(o.baseState=n)}var ur={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===nn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=Ea(),r=Qi(o=Ql(o,e));r.payload=t,null!=n&&(r.callback=n),Vl(),el(e,r),na(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=Ea(),r=Qi(o=Ql(o,e));r.tag=Vi,r.payload=t,null!=n&&(r.callback=n),Vl(),el(e,r),na(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ea(),o=Qi(n=Ql(n,e));o.tag=$i,null!=t&&(o.callback=t),Vl(),el(e,o),na(e,n)}};function cr(e,t,n,o,r,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!tn(n,o)||!tn(r,i))}function dr(e,t,n){var o=!1,r=Io,i=t.contextType;return"object"==typeof i&&null!==i?i=ji(i):(r=Lo(t)?Ao:Po.current,i=(o=null!=(o=t.contextTypes))?Do(e,r):Io),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ur,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function hr(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&ur.enqueueReplaceState(t,t.state,null)}function pr(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=ar;var i=t.contextType;"object"==typeof i&&null!==i?r.context=ji(i):(i=Lo(t)?Ao:Po.current,r.context=Do(e,i)),null!==(i=e.updateQueue)&&(rl(e,i,n,r,o),r.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(sr(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&ur.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(rl(e,i,n,r,o),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var fr=Array.isArray;function mr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var o=void 0;n&&(1!==n.tag&&l("309"),o=n.stateNode),o||l("147",e);var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=o.refs;t===ar&&(t=o.refs={}),null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}"string"!=typeof e&&l("284"),n._owner||l("290",e)}return e}function gr(e,t){"textarea"!==e.type&&l("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function vr(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=Ko(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,o){return null===t||6!==t.tag?((t=er(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=mr(e,t,n),o.return=e,o):((o=Xo(n.type,n.key,n.props,null,e.mode,o)).ref=mr(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=tr(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,o,i){return null===t||7!==t.tag?((t=Qo(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=er(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ye:return(n=Xo(t.type,t.key,t.props,null,e.mode,n)).ref=mr(e,null,t),n.return=e,n;case qe:return(t=tr(t,e.mode,n)).return=e,t}if(fr(t)||at(t))return(t=Qo(t,e.mode,n,null)).return=e,t;gr(e,t)}return null}function p(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:s(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ye:return n.key===r?n.type===Ke?d(e,t,n.props.children,o,r):u(e,t,n,o):null;case qe:return n.key===r?c(e,t,n,o):null}if(fr(n)||at(n))return null!==r?null:d(e,t,n,o,null);gr(e,n)}return null}function f(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return s(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case Ye:return e=e.get(null===o.key?n:o.key)||null,o.type===Ke?d(t,e,o.props.children,r,o.key):u(t,e,o,r);case qe:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(fr(o)||at(o))return d(t,e=e.get(n)||null,o,r,null);gr(t,o)}return null}function m(r,l,a,s){for(var u=null,c=null,d=l,m=l=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(r,d,a[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),l=i(v,l,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===a.length)return n(r,d),u;if(null===d){for(;m<a.length;m++)(d=h(r,a[m],s))&&(l=i(d,l,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=o(r,d);m<a.length;m++)(g=f(d,r,m,a[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),l=i(g,l,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(r,e)})),u}function g(r,a,s,u){var c=at(s);"function"!=typeof c&&l("150"),null==(s=c.call(s))&&l("151");for(var d=c=null,m=a,g=a=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(r,m,y.value,u);if(null===b){m||(m=v);break}e&&m&&null===b.alternate&&t(r,m),a=i(b,a,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(r,m),c;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=h(r,y.value,u))&&(a=i(y,a,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=o(r,m);!y.done;g++,y=s.next())null!==(y=f(m,r,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=i(y,a,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(r,e)})),c}return function(e,o,i,s){var u="object"==typeof i&&null!==i&&i.type===Ke&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case Ye:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){if(7===u.tag?i.type===Ke:u.elementType===i.type){n(e,u.sibling),(o=r(u,i.type===Ke?i.props.children:i.props)).ref=mr(e,u,i),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===Ke?((o=Qo(i.props.children,e.mode,s,i.key)).return=e,e=o):((s=Xo(i.type,i.key,i.props,null,e.mode,s)).ref=mr(e,o,i),s.return=e,e=s)}return a(e);case qe:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=tr(i,e.mode,s)).return=e,e=o}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=er(i,e.mode,s)).return=e,e=o),a(e);if(fr(i))return m(e,o,i,s);if(at(i))return g(e,o,i,s);if(c&&gr(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:l("152",(s=e.type).displayName||s.name||"Component")}return n(e,o)}}var yr=vr(!0),br=vr(!1),wr={},Sr={current:wr},Cr={current:wr},xr={current:wr};function _r(e){return e===wr&&l("174"),e}function Tr(e,t){zo(xr,t),zo(Cr,e),zo(Sr,wr);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oo(null,"");break;default:t=oo(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Mo(Sr),zo(Sr,t)}function Rr(e){Mo(Sr),Mo(Cr),Mo(xr)}function Er(e){_r(xr.current);var t=_r(Sr.current),n=oo(t,e.type);t!==n&&(zo(Cr,e),zo(Sr,n))}function kr(e){Cr.current===e&&(Mo(Sr),Mo(Cr))}var Or=0,Mr=2,zr=4,Ir=8,Pr=16,Nr=32,Ar=64,Dr=128,Lr=Ze.ReactCurrentDispatcher,Gr=0,Wr=null,Hr=null,Fr=null,Br=null,Ur=null,jr=null,Zr=0,Vr=null,$r=0,Yr=!1,qr=null,Kr=0;function Xr(){l("307")}function Qr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function Jr(e,t,n,o,r,i){if(Gr=i,Wr=t,Fr=null!==e?e.memoizedState:null,Lr.current=null===Fr?hi:pi,t=n(o,r),Yr){do{Yr=!1,Kr+=1,Fr=null!==e?e.memoizedState:null,jr=Br,Vr=Ur=Hr=null,Lr.current=pi,t=n(o,r)}while(Yr);qr=null,Kr=0}return Lr.current=di,(e=Wr).memoizedState=Br,e.expirationTime=Zr,e.updateQueue=Vr,e.effectTag|=$r,e=null!==Hr&&null!==Hr.next,Gr=0,jr=Ur=Br=Fr=Hr=Wr=null,Zr=0,Vr=null,$r=0,e&&l("300"),t}function ei(){Lr.current=di,Gr=0,jr=Ur=Br=Fr=Hr=Wr=null,Zr=0,Vr=null,$r=0,Yr=!1,qr=null,Kr=0}function ti(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Ur?Br=Ur=e:Ur=Ur.next=e,Ur}function ni(){if(null!==jr)jr=(Ur=jr).next,Fr=null!==(Hr=Fr)?Hr.next:null;else{null===Fr&&l("310");var e={memoizedState:(Hr=Fr).memoizedState,baseState:Hr.baseState,queue:Hr.queue,baseUpdate:Hr.baseUpdate,next:null};Ur=null===Ur?Br=e:Ur.next=e,Fr=Hr.next}return Ur}function oi(e,t){return"function"==typeof t?t(e):t}function ri(e){var t=ni(),n=t.queue;if(null===n&&l("311"),0<Kr){var o=n.dispatch;if(null!==qr){var r=qr.get(n);if(void 0!==r){qr.delete(n);var i=t.memoizedState;do{i=e(i,r.action),r=r.next}while(null!==r);return Jt(i,t.memoizedState)||(_i=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.eagerReducer=e,n.eagerState=i,[i,o]}}return[t.memoizedState,o]}o=n.last;var a=t.baseUpdate;if(i=t.baseState,null!==a?(null!==o&&(o.next=null),o=a.next):o=null!==o?o.next:null,null!==o){var s=r=null,u=o,c=!1;do{var d=u.expirationTime;d<Gr?(c||(c=!0,s=a,r=i),d>Zr&&(Zr=d)):i=u.eagerReducer===e?u.eagerState:e(i,u.action),a=u,u=u.next}while(null!==u&&u!==o);c||(s=a,r=i),Jt(i,t.memoizedState)||(_i=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=r,n.eagerReducer=e,n.eagerState=i}return[t.memoizedState,n.dispatch]}function ii(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===Vr?(Vr={lastEffect:null}).lastEffect=e.next=e:null===(t=Vr.lastEffect)?Vr.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Vr.lastEffect=e),e}function li(e,t,n,o){var r=ti();$r|=e,r.memoizedState=ii(t,n,void 0,void 0===o?null:o)}function ai(e,t,n,o){var r=ni();o=void 0===o?null:o;var i=void 0;if(null!==Hr){var l=Hr.memoizedState;if(i=l.destroy,null!==o&&Qr(o,l.deps))return void ii(Or,n,i,o)}$r|=e,r.memoizedState=ii(t,n,i,o)}function si(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ui(){}function ci(e,t,n){25>Kr||l("301");var o=e.alternate;if(e===Wr||null!==o&&o===Wr)if(Yr=!0,e={expirationTime:Gr,action:n,eagerReducer:null,eagerState:null,next:null},null===qr&&(qr=new Map),void 0===(n=qr.get(t)))qr.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Vl();var r=Ea(),i={expirationTime:r=Ql(r,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)i.next=i;else{var s=a.next;null!==s&&(i.next=s),a.next=i}if(t.last=i,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.eagerReducer))try{var u=t.eagerState,c=o(u,n);if(i.eagerReducer=o,i.eagerState=c,Jt(c,u))return}catch(e){}na(e,r)}}var di={readContext:ji,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr},hi={readContext:ji,useCallback:function(e,t){return ti().memoizedState=[e,void 0===t?null:t],e},useContext:ji,useEffect:function(e,t){return li(516,Dr|Ar,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,li(4,zr|Nr,si.bind(null,t,e),n)},useLayoutEffect:function(e,t){return li(4,zr|Nr,e,t)},useMemo:function(e,t){var n=ti();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ti();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=ci.bind(null,Wr,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},ti().memoizedState=e},useState:function(e){var t=ti();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:oi,eagerState:e}).dispatch=ci.bind(null,Wr,e),[t.memoizedState,e]},useDebugValue:ui},pi={readContext:ji,useCallback:function(e,t){var n=ni();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Qr(t,o[1])?o[0]:(n.memoizedState=[e,t],e)},useContext:ji,useEffect:function(e,t){return ai(516,Dr|Ar,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ai(4,zr|Nr,si.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ai(4,zr|Nr,e,t)},useMemo:function(e,t){var n=ni();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Qr(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ri,useRef:function(){return ni().memoizedState},useState:function(e){return ri(oi)},useDebugValue:ui},fi=null,mi=null,gi=!1;function vi(e,t){var n=Yo(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function yi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function bi(e){if(gi){var t=mi;if(t){var n=t;if(!yi(e,t)){if(!(t=Ro(n))||!yi(e,t))return e.effectTag|=2,gi=!1,void(fi=e);vi(fi,n)}fi=e,mi=Eo(t)}else e.effectTag|=2,gi=!1,fi=e}}function wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;fi=e}function Si(e){if(e!==fi)return!1;if(!gi)return wi(e),gi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!So(t,e.memoizedProps))for(t=mi;t;)vi(e,t),t=Ro(t);return wi(e),mi=fi?Ro(e.stateNode):null,!0}function Ci(){mi=fi=null,gi=!1}var xi=Ze.ReactCurrentOwner,_i=!1;function Ti(e,t,n,o){t.child=null===e?br(t,null,n,o):yr(t,e.child,n,o)}function Ri(e,t,n,o,r){n=n.render;var i=t.ref;return Ui(t,r),o=Jr(e,t,n,o,i,r),null===e||_i?(t.effectTag|=1,Ti(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ai(e,t,r))}function Ei(e,t,n,o,r,i){if(null===e){var l=n.type;return"function"!=typeof l||qo(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xo(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,ki(e,t,l,o,r,i))}return l=e.child,r<i&&(r=l.memoizedProps,(n=null!==(n=n.compare)?n:tn)(r,o)&&e.ref===t.ref)?Ai(e,t,i):(t.effectTag|=1,(e=Ko(l,o)).ref=t.ref,e.return=t,t.child=e)}function ki(e,t,n,o,r,i){return null!==e&&tn(e.memoizedProps,o)&&e.ref===t.ref&&(_i=!1,r<i)?Ai(e,t,i):Mi(e,t,n,o,i)}function Oi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Mi(e,t,n,o,r){var i=Lo(n)?Ao:Po.current;return i=Do(t,i),Ui(t,r),n=Jr(e,t,n,o,i,r),null===e||_i?(t.effectTag|=1,Ti(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ai(e,t,r))}function zi(e,t,n,o,r){if(Lo(n)){var i=!0;Bo(t)}else i=!1;if(Ui(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),dr(t,n,o),pr(t,n,o,r),o=!0;else if(null===e){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;"object"==typeof u&&null!==u?u=ji(u):u=Do(t,u=Lo(n)?Ao:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==o||s!==u)&&hr(t,l,o,u),qi=!1;var h=t.memoizedState;s=l.state=h;var p=t.updateQueue;null!==p&&(rl(t,p,o,l,r),s=t.memoizedState),a!==o||h!==s||No.current||qi?("function"==typeof c&&(sr(t,n,c,o),s=t.memoizedState),(a=qi||cr(t,n,a,o,h,s,u))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.effectTag|=4)):("function"==typeof l.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=s),l.props=o,l.state=s,l.context=u,o=a):("function"==typeof l.componentDidMount&&(t.effectTag|=4),o=!1)}else l=t.stateNode,a=t.memoizedProps,l.props=t.type===t.elementType?a:lr(t.type,a),s=l.context,"object"==typeof(u=n.contextType)&&null!==u?u=ji(u):u=Do(t,u=Lo(n)?Ao:Po.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==o||s!==u)&&hr(t,l,o,u),qi=!1,s=t.memoizedState,h=l.state=s,null!==(p=t.updateQueue)&&(rl(t,p,o,l,r),h=t.memoizedState),a!==o||s!==h||No.current||qi?("function"==typeof c&&(sr(t,n,c,o),h=t.memoizedState),(c=qi||cr(t,n,a,o,s,h,u))?(d||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(o,h,u),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(o,h,u)),"function"==typeof l.componentDidUpdate&&(t.effectTag|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=h),l.props=o,l.state=h,l.context=u,o=c):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),o=!1);return Ii(e,t,n,o,i,r)}function Ii(e,t,n,o,r,i){Oi(e,t);var l=0!=(64&t.effectTag);if(!o&&!l)return r&&Uo(t,n,!1),Ai(e,t,i);o=t.stateNode,xi.current=t;var a=l&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&l?(t.child=yr(t,e.child,null,i),t.child=yr(t,null,a,i)):Ti(e,t,a,i),t.memoizedState=o.state,r&&Uo(t,n,!0),t.child}function Pi(e){var t=e.stateNode;t.pendingContext?Ho(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ho(0,t.context,!1),Tr(e,t.containerInfo)}function Ni(e,t,n){var o=t.mode,r=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var l=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},l=!0,t.effectTag&=-65;if(null===e)if(l){var a=r.fallback;e=Qo(null,o,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),o=Qo(a,o,n,null),e.sibling=o,(n=e).return=o.return=t}else n=o=br(t,null,r.children,n);else null!==e.memoizedState?(a=(o=e.child).sibling,l?(n=r.fallback,r=Ko(o,o.pendingProps),0==(1&t.mode)&&((l=null!==t.memoizedState?t.child.child:t.child)!==o.child&&(r.child=l)),o=r.sibling=Ko(a,n,a.expirationTime),n=r,r.childExpirationTime=0,n.return=o.return=t):n=o=yr(t,o.child,r.children,n)):(a=e.child,l?(l=r.fallback,(r=Qo(null,o,0,null)).child=a,0==(1&t.mode)&&(r.child=null!==t.memoizedState?t.child.child:t.child),(o=r.sibling=Qo(l,o,n,null)).effectTag|=2,n=r,r.childExpirationTime=0,n.return=o.return=t):o=n=yr(t,a,r.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,o}function Ai(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&l("153"),null!==t.child){for(n=Ko(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ko(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Di(e,t,n){var o=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||No.current)_i=!0;else if(o<n){switch(_i=!1,t.tag){case 3:Pi(t),Ci();break;case 5:Er(t);break;case 1:Lo(t.type)&&Bo(t);break;case 4:Tr(t,t.stateNode.containerInfo);break;case 10:Fi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Ni(e,t,n):null!==(t=Ai(e,t,n))?t.sibling:null}return Ai(e,t,n)}}else _i=!1;switch(t.expirationTime=0,t.tag){case 2:o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var r=Do(t,Po.current);if(Ui(t,n),r=Jr(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,ei(),Lo(o)){var i=!0;Bo(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var a=o.getDerivedStateFromProps;"function"==typeof a&&sr(t,o,a,e),r.updater=ur,t.stateNode=r,r._reactInternalFiber=t,pr(t,o,e,n),t=Ii(null,t,o,!0,i,n)}else t.tag=0,Ti(null,t,r,n),t=t.child;return t;case 16:switch(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(r),t.type=e,r=t.tag=function(e){if("function"==typeof e)return qo(e)?1:0;if(null!=e){if((e=e.$$typeof)===nt)return 11;if(e===rt)return 14}return 2}(e),i=lr(e,i),a=void 0,r){case 0:a=Mi(null,t,e,i,n);break;case 1:a=zi(null,t,e,i,n);break;case 11:a=Ri(null,t,e,i,n);break;case 14:a=Ei(null,t,e,lr(e.type,i),o,n);break;default:l("306",e,"")}return a;case 0:return o=t.type,r=t.pendingProps,Mi(e,t,o,r=t.elementType===o?r:lr(o,r),n);case 1:return o=t.type,r=t.pendingProps,zi(e,t,o,r=t.elementType===o?r:lr(o,r),n);case 3:return Pi(t),null===(o=t.updateQueue)&&l("282"),r=null!==(r=t.memoizedState)?r.element:null,rl(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(Ci(),t=Ai(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(mi=Eo(t.stateNode.containerInfo),fi=t,r=gi=!0),r?(t.effectTag|=2,t.child=br(t,null,o,n)):(Ti(e,t,o,n),Ci()),t=t.child),t;case 5:return Er(t),null===e&&bi(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,a=r.children,So(o,r)?a=null:null!==i&&So(o,i)&&(t.effectTag|=16),Oi(e,t),1!==n&&1&t.mode&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ti(e,t,a,n),t=t.child),t;case 6:return null===e&&bi(t),null;case 13:return Ni(e,t,n);case 4:return Tr(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=yr(t,null,o,n):Ti(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Ri(e,t,o,r=t.elementType===o?r:lr(o,r),n);case 7:return Ti(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ti(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,a=t.memoizedProps,Fi(t,i=r.value),null!==a){var s=a.value;if(0===(i=Jt(s,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(s,i):1073741823))){if(a.children===r.children&&!No.current){t=Ai(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.contextDependencies;if(null!==u){a=s.child;for(var c=u.first;null!==c;){if(c.context===o&&0!=(c.observedBits&i)){1===s.tag&&((c=Qi(n)).tag=$i,el(s,c)),s.expirationTime<n&&(s.expirationTime=n),null!==(c=s.alternate)&&c.expirationTime<n&&(c.expirationTime=n),c=n;for(var d=s.return;null!==d;){var h=d.alternate;if(d.childExpirationTime<c)d.childExpirationTime=c,null!==h&&h.childExpirationTime<c&&(h.childExpirationTime=c);else{if(!(null!==h&&h.childExpirationTime<c))break;h.childExpirationTime=c}d=d.return}u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}Ti(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,Ui(t,n),o=o(r=ji(r,i.unstable_observedBits)),t.effectTag|=1,Ti(e,t,o,n),t.child;case 14:return i=lr(r=t.type,t.pendingProps),Ei(e,t,r,i=lr(r.type,i),o,n);case 15:return ki(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:lr(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Lo(o)?(e=!0,Bo(t)):e=!1,Ui(t,n),dr(t,o,r),pr(t,o,r,n),Ii(null,t,o,!0,e,n)}l("156")}var Li={current:null},Gi=null,Wi=null,Hi=null;function Fi(e,t){var n=e.type._context;zo(Li,n._currentValue),n._currentValue=t}function Bi(e){var t=Li.current;Mo(Li),e.type._context._currentValue=t}function Ui(e,t){Gi=e,Hi=Wi=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(_i=!0),e.contextDependencies=null}function ji(e,t){return Hi!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Hi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Wi?(null===Gi&&l("308"),Wi=t,Gi.contextDependencies={first:t,expirationTime:0}):Wi=Wi.next=t),e._currentValue}var Zi=0,Vi=1,$i=2,Yi=3,qi=!1;function Ki(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Qi(e){return{expirationTime:e,tag:Zi,payload:null,callback:null,next:null,nextEffect:null}}function Ji(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function el(e,t){var n=e.alternate;if(null===n){var o=e.updateQueue,r=null;null===o&&(o=e.updateQueue=Ki(e.memoizedState))}else o=e.updateQueue,r=n.updateQueue,null===o?null===r?(o=e.updateQueue=Ki(e.memoizedState),r=n.updateQueue=Ki(n.memoizedState)):o=e.updateQueue=Xi(r):null===r&&(r=n.updateQueue=Xi(o));null===r||o===r?Ji(o,t):null===o.lastUpdate||null===r.lastUpdate?(Ji(o,t),Ji(r,t)):(Ji(o,t),r.lastUpdate=t)}function tl(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Ki(e.memoizedState):nl(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function nl(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Xi(t)),t}function ol(e,t,n,o,i,l){switch(n.tag){case Vi:return"function"==typeof(e=n.payload)?e.call(l,o,i):e;case Yi:e.effectTag=-2049&e.effectTag|64;case Zi:if(null==(i="function"==typeof(e=n.payload)?e.call(l,o,i):e))break;return r({},o,i);case $i:qi=!0}return o}function rl(e,t,n,o,r){qi=!1;for(var i=(t=nl(e,t)).baseState,l=null,a=0,s=t.firstUpdate,u=i;null!==s;){var c=s.expirationTime;c<r?(null===l&&(l=s,i=u),a<c&&(a=c)):(u=ol(e,0,s,u,n,o),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var d=s.expirationTime;d<r?(null===c&&(c=s,null===l&&(i=u)),a<d&&(a=d)):(u=ol(e,0,s,u,n,o),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===l&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===l&&null===c&&(i=u),t.baseState=i,t.firstUpdate=l,t.firstCapturedUpdate=c,e.expirationTime=a,e.memoizedState=u}function il(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ll(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ll(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ll(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var o=t;"function"!=typeof n&&l("191",n),n.call(o)}e=e.nextEffect}}function al(e,t){return{value:e,source:t,stack:ut(t)}}function sl(e){e.effectTag|=4}var ul=void 0,cl=void 0,dl=void 0,hl=void 0;ul=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},cl=function(){},dl=function(e,t,n,o,i){var l=e.memoizedProps;if(l!==o){var a=t.stateNode;switch(_r(Sr.current),e=null,n){case"input":l=wt(a,l),o=wt(a,o),e=[];break;case"option":l=qn(a,l),o=qn(a,o),e=[];break;case"select":l=r({},l,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":l=Xn(a,l),o=Xn(a,o),e=[];break;default:"function"!=typeof l.onClick&&"function"==typeof o.onClick&&(a.onclick=vo)}fo(n,o),a=n=void 0;var s=null;for(n in l)if(!o.hasOwnProperty(n)&&l.hasOwnProperty(n)&&null!=l[n])if("style"===n){var u=l[n];for(a in u)u.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(w.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in o){var c=o[n];if(u=null!=l?l[n]:void 0,o.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(s||(s={}),s[a]=c[a])}else s||(e||(e=[]),e.push(n,s)),s=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(w.hasOwnProperty(n)?(null!=c&&go(i,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&sl(t)}},hl=function(e,t,n,o){n!==o&&sl(t)};var pl="function"==typeof WeakSet?WeakSet:Set;function fl(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=ut(n)),null!==n&&st(n.type),t=t.value,null!==e&&1===e.tag&&st(e.type)}function ml(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Xl(e,t)}else t.current=null}function gl(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)!==Or){var r=o.destroy;o.destroy=void 0,void 0!==r&&r()}(o.tag&t)!==Or&&(r=o.create,o.destroy=r()),o=o.next}while(o!==n)}}function vl(e){switch("function"==typeof Zo&&Zo(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var o=n.destroy;if(void 0!==o){var r=e;try{o()}catch(e){Xl(r,e)}}n=n.next}while(n!==t)}break;case 1:if(ml(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Xl(e,t)}break;case 5:ml(e);break;case 4:wl(e)}}function yl(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:{for(var t=e.return;null!==t;){if(yl(t)){var n=t;break e}t=t.return}l("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:l("161")}16&n.effectTag&&(ao(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){if(5===r.tag||6===r.tag)if(n)if(o){var i=t,a=r.stateNode,s=n;8===i.nodeType?i.parentNode.insertBefore(a,s):i.insertBefore(a,s)}else t.insertBefore(r.stateNode,n);else o?(a=t,s=r.stateNode,8===a.nodeType?(i=a.parentNode).insertBefore(s,a):(i=a).appendChild(s),null!=(a=a._reactRootContainer)||null!==i.onclick||(i.onclick=vo)):t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function wl(e){for(var t=e,n=!1,o=void 0,r=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&l("160"),n.tag){case 5:o=n.stateNode,r=!1;break e;case 3:case 4:o=n.stateNode.containerInfo,r=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,a=i;;)if(vl(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===i)break;for(;null===a.sibling;){if(null===a.return||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}r?(i=o,a=t.stateNode,8===i.nodeType?i.parentNode.removeChild(a):i.removeChild(a)):o.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){o=t.stateNode.containerInfo,r=!0,t.child.return=t,t=t.child;continue}}else if(vl(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Sl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:gl(zr,Ir,t);break;case 1:case 3:case 12:case 17:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var r=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,o,r){e[A]=r,"input"===n&&"radio"===r.type&&null!=r.name&&Ct(e,r),mo(n,o),o=mo(n,r);for(var i=0;i<t.length;i+=2){var l=t[i],a=t[i+1];"style"===l?ho(e,a):"dangerouslySetInnerHTML"===l?lo(e,a):"children"===l?ao(e,a):yt(e,l,a,o)}switch(n){case"input":xt(e,r);break;case"textarea":Jn(e,r);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!r.multiple,null!=(n=r.value)?Kn(e,!!r.multiple,n,!1):t!==!!r.multiple&&(null!=r.defaultValue?Kn(e,!!r.multiple,r.defaultValue,!0):Kn(e,!!r.multiple,r.multiple?[]:"",!1))}}(n,i,r,e,o)}break;case 6:null===t.stateNode&&l("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 13:if(n=t.memoizedState,o=void 0,e=t,null===n?o=!1:(o=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Ea())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)o.style.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=null!=r&&r.hasOwnProperty("display")?r.display:null,o.style.display=co("display",r)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(o=n.child.sibling).return=n,n=o;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,o),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new pl),n.forEach((function(e){var n=ea.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;default:l("163")}}var Cl="function"==typeof WeakMap?WeakMap:Map;function xl(e,t,n){(n=Qi(n)).tag=Yi,n.payload={element:null};var o=t.value;return n.callback=function(){La(o),fl(e,t)},n}function _l(e,t,n){(n=Qi(n)).tag=Yi;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Hl?Hl=new Set([this]):Hl.add(this));var n=t.value,r=t.stack;fl(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Tl(e){switch(e.tag){case 1:Lo(e.type)&&Go();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Rr(),Wo(),0!=(64&(t=e.effectTag))&&l("285"),e.effectTag=-2049&t|64,e;case 5:return kr(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:default:return null;case 4:return Rr(),null;case 10:return Bi(e),null}}var Rl=Ze.ReactCurrentDispatcher,El=Ze.ReactCurrentOwner,kl=1073741822,Ol=!1,Ml=null,zl=null,Il=0,Pl=-1,Nl=!1,Al=null,Dl=!1,Ll=null,Gl=null,Wl=null,Hl=null;function Fl(){if(null!==Ml)for(var e=Ml.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Go();break;case 3:Rr(),Wo();break;case 5:kr(t);break;case 4:Rr();break;case 10:Bi(t)}e=e.return}zl=null,Il=0,Pl=-1,Nl=!1,Ml=null}function Bl(){for(;null!==Al;){var e=Al.effectTag;if(16&e&&ao(Al.stateNode,""),128&e){var t=Al.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:bl(Al),Al.effectTag&=-3;break;case 6:bl(Al),Al.effectTag&=-3,Sl(Al.alternate,Al);break;case 4:Sl(Al.alternate,Al);break;case 8:wl(e=Al),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Al=Al.nextEffect}}function Ul(){for(;null!==Al;){if(256&Al.effectTag)e:{var e=Al.alternate,t=Al;switch(t.tag){case 0:case 11:case 15:gl(Mr,Or,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:lr(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:l("163")}}Al=Al.nextEffect}}function jl(e,t){for(;null!==Al;){var n=Al.effectTag;if(36&n){var o=Al.alternate,r=Al,i=t;switch(r.tag){case 0:case 11:case 15:gl(Pr,Nr,r);break;case 1:var a=r.stateNode;if(4&r.effectTag)if(null===o)a.componentDidMount();else{var s=r.elementType===r.type?o.memoizedProps:lr(r.type,o.memoizedProps);a.componentDidUpdate(s,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(o=r.updateQueue)&&il(0,o,a);break;case 3:if(null!==(o=r.updateQueue)){if(a=null,null!==r.child)switch(r.child.tag){case 5:case 1:a=r.child.stateNode}il(0,o,a)}break;case 5:i=r.stateNode,null===o&&4&r.effectTag&&wo(r.type,r.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:l("163")}}128&n&&(null!==(r=Al.ref)&&(i=Al.stateNode,"function"==typeof r?r(i):r.current=i)),512&n&&(Ll=e),Al=Al.nextEffect}}function Zl(e,t){Wl=Gl=Ll=null;var n=sa;sa=!0;do{if(512&t.effectTag){var o=!1,r=void 0;try{var i=t;gl(Dr,Or,i),gl(Or,Ar,i)}catch(e){o=!0,r=e}o&&Xl(t,r)}t=t.nextEffect}while(null!==t);sa=n,0!==(n=e.expirationTime)&&ka(e,n),fa||sa||Pa(1073741823,!1)}function Vl(){null!==Gl&&To(Gl),null!==Wl&&Wl()}function $l(e,t){Dl=Ol=!0,e.current===t&&l("177");var n=e.pendingCommitExpirationTime;0===n&&l("261"),e.pendingCommitExpirationTime=0;var o=t.expirationTime,r=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?nr(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,nr(e,t)):t>n&&nr(e,t)}ir(0,e)}(e,r>o?r:o),El.current=null,o=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,o=t.firstEffect):o=t:o=t.firstEffect,yo=Tn,bo=function(){var e=Gn();if(Wn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var o=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{t.nodeType,r.nodeType}catch(e){t=null;break e}var i=0,l=-1,a=-1,s=0,u=0,c=e,d=null;t:for(;;){for(var h;c!==t||0!==o&&3!==c.nodeType||(l=i+o),c!==r||0!==n&&3!==c.nodeType||(a=i+n),3===c.nodeType&&(i+=c.nodeValue.length),null!==(h=c.firstChild);)d=c,c=h;for(;;){if(c===e)break t;if(d===t&&++s===o&&(l=i),d===r&&++u===n&&(a=i),null!==(h=c.nextSibling))break;d=(c=d).parentNode}c=h}t=-1===l||-1===a?null:{start:l,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),Tn=!1,Al=o;null!==Al;){r=!1;var a=void 0;try{Ul()}catch(e){r=!0,a=e}r&&(null===Al&&l("178"),Xl(Al,a),null!==Al&&(Al=Al.nextEffect))}for(Al=o;null!==Al;){r=!1,a=void 0;try{Bl()}catch(e){r=!0,a=e}r&&(null===Al&&l("178"),Xl(Al,a),null!==Al&&(Al=Al.nextEffect))}for(Hn(bo),bo=null,Tn=!!yo,yo=null,e.current=t,Al=o;null!==Al;){r=!1,a=void 0;try{jl(e,n)}catch(e){r=!0,a=e}r&&(null===Al&&l("178"),Xl(Al,a),null!==Al&&(Al=Al.nextEffect))}if(null!==o&&null!==Ll){var s=Zl.bind(null,e,o);Gl=i.unstable_runWithPriority(i.unstable_NormalPriority,(function(){return _o(s)})),Wl=s}Ol=Dl=!1,"function"==typeof jo&&jo(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Hl=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Yl(e){for(;;){var t=e.alternate,n=e.return,o=e.sibling;if(0==(1024&e.effectTag)){Ml=e;e:{var i=t,a=Il,s=(t=e).pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 18:break;case 1:case 17:Lo(t.type)&&Go();break;case 3:Rr(),Wo(),(s=t.stateNode).pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==i&&null!==i.child||(Si(t),t.effectTag&=-3),cl(t);break;case 5:kr(t);var u=_r(xr.current);if(a=t.type,null!==i&&null!=t.stateNode)dl(i,t,a,s,u),i.ref!==t.ref&&(t.effectTag|=128);else if(s){var c=_r(Sr.current);if(Si(t)){i=(s=t).stateNode;var d=s.type,h=s.memoizedProps,p=u;switch(i[N]=s,i[A]=h,a=void 0,u=d){case"iframe":case"object":Rn("load",i);break;case"video":case"audio":for(d=0;d<ne.length;d++)Rn(ne[d],i);break;case"source":Rn("error",i);break;case"img":case"image":case"link":Rn("error",i),Rn("load",i);break;case"form":Rn("reset",i),Rn("submit",i);break;case"details":Rn("toggle",i);break;case"input":St(i,h),Rn("invalid",i),go(p,"onChange");break;case"select":i._wrapperState={wasMultiple:!!h.multiple},Rn("invalid",i),go(p,"onChange");break;case"textarea":Qn(i,h),Rn("invalid",i),go(p,"onChange")}for(a in fo(u,h),d=null,h)h.hasOwnProperty(a)&&(c=h[a],"children"===a?"string"==typeof c?i.textContent!==c&&(d=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(d=["children",""+c]):w.hasOwnProperty(a)&&null!=c&&go(p,a));switch(u){case"input":Ue(i),_t(i,h,!0);break;case"textarea":Ue(i),eo(i);break;case"select":case"option":break;default:"function"==typeof h.onClick&&(i.onclick=vo)}a=d,s.updateQueue=a,(s=null!==a)&&sl(t)}else{h=t,i=a,p=s,d=9===u.nodeType?u:u.ownerDocument,c===to.html&&(c=no(i)),c===to.html?"script"===i?((i=d.createElement("div")).innerHTML="<script><\/script>",d=i.removeChild(i.firstChild)):"string"==typeof p.is?d=d.createElement(i,{is:p.is}):(d=d.createElement(i),"select"===i&&p.multiple&&(d.multiple=!0)):d=d.createElementNS(c,i),(i=d)[N]=h,i[A]=s,ul(i,t,!1,!1),p=i;var f=u,m=mo(d=a,h=s);switch(d){case"iframe":case"object":Rn("load",p),u=h;break;case"video":case"audio":for(u=0;u<ne.length;u++)Rn(ne[u],p);u=h;break;case"source":Rn("error",p),u=h;break;case"img":case"image":case"link":Rn("error",p),Rn("load",p),u=h;break;case"form":Rn("reset",p),Rn("submit",p),u=h;break;case"details":Rn("toggle",p),u=h;break;case"input":St(p,h),u=wt(p,h),Rn("invalid",p),go(f,"onChange");break;case"option":u=qn(p,h);break;case"select":p._wrapperState={wasMultiple:!!h.multiple},u=r({},h,{value:void 0}),Rn("invalid",p),go(f,"onChange");break;case"textarea":Qn(p,h),u=Xn(p,h),Rn("invalid",p),go(f,"onChange");break;default:u=h}fo(d,u),c=void 0;var g=d,v=p,y=u;for(c in y)if(y.hasOwnProperty(c)){var b=y[c];"style"===c?ho(v,b):"dangerouslySetInnerHTML"===c?null!=(b=b?b.__html:void 0)&&lo(v,b):"children"===c?"string"==typeof b?("textarea"!==g||""!==b)&&ao(v,b):"number"==typeof b&&ao(v,""+b):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(w.hasOwnProperty(c)?null!=b&&go(f,c):null!=b&&yt(v,c,b,m))}switch(d){case"input":Ue(p),_t(p,h,!1);break;case"textarea":Ue(p),eo(p);break;case"option":null!=h.value&&p.setAttribute("value",""+bt(h.value));break;case"select":(u=p).multiple=!!h.multiple,null!=(p=h.value)?Kn(u,!!h.multiple,p,!1):null!=h.defaultValue&&Kn(u,!!h.multiple,h.defaultValue,!0);break;default:"function"==typeof u.onClick&&(p.onclick=vo)}(s=wo(a,s))&&sl(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&l("166");break;case 6:i&&null!=t.stateNode?hl(i,t,i.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&l("166")),i=_r(xr.current),_r(Sr.current),Si(t)?(a=(s=t).stateNode,i=s.memoizedProps,a[N]=s,(s=a.nodeValue!==i)&&sl(t)):(a=t,(s=(9===i.nodeType?i:i.ownerDocument).createTextNode(s))[N]=t,a.stateNode=s));break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a,Ml=t;break e}s=null!==s,a=null!==i&&null!==i.memoizedState,null!==i&&!s&&a&&(null!==(i=i.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(s||a)&&(t.effectTag|=4);break;case 4:Rr(),cl(t);break;case 10:Bi(t);break;default:l("156")}Ml=null}if(t=e,1===Il||1!==t.childExpirationTime){for(s=0,a=t.child;null!==a;)(i=a.expirationTime)>s&&(s=i),(u=a.childExpirationTime)>s&&(s=u),a=a.sibling;t.childExpirationTime=s}if(null!==Ml)return Ml;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Tl(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==o)return o;if(null===n)break;e=n}return null}function ql(e){var t=Di(e.alternate,e,Il);return e.memoizedProps=e.pendingProps,null===t&&(t=Yl(e)),El.current=null,t}function Kl(e,t){Ol&&l("243"),Vl(),Ol=!0;var n=Rl.current;Rl.current=di;var o=e.nextExpirationTimeToWorkOn;o===Il&&e===zl&&null!==Ml||(Fl(),Il=o,Ml=Ko((zl=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Ml&&!za();)Ml=ql(Ml);else for(;null!==Ml;)Ml=ql(Ml)}catch(t){if(Hi=Wi=Gi=null,ei(),null===Ml)r=!0,La(t);else{null===Ml&&l("271");var i=Ml,a=i.return;if(null!==a){e:{var s=e,u=a,c=i,d=t;if(a=Il,c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==d&&"object"==typeof d&&"function"==typeof d.then){var h=d;d=u;var p=-1,f=-1;do{if(13===d.tag){var m=d.alternate;if(null!==m&&null!==(m=m.memoizedState)){f=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=d.pendingProps.maxDuration)&&(0>=m?p=0:(-1===p||m<p)&&(p=m))}d=d.return}while(null!==d);d=u;do{if((m=13===d.tag)&&(m=void 0!==d.memoizedProps.fallback&&null===d.memoizedState),m){if(null===(u=d.updateQueue)?((u=new Set).add(h),d.updateQueue=u):u.add(h),0==(1&d.mode)){d.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((a=Qi(1073741823)).tag=$i,el(c,a))),c.expirationTime=1073741823;break e}u=a;var g=(c=s).pingCache;null===g?(g=c.pingCache=new Cl,m=new Set,g.set(h,m)):void 0===(m=g.get(h))&&(m=new Set,g.set(h,m)),m.has(u)||(m.add(u),c=Jl.bind(null,c,h,u),h.then(c,c)),-1===p?s=1073741823:(-1===f&&(f=10*(1073741822-rr(s,a))-5e3),s=f+p),0<=s&&Pl<s&&(Pl=s),d.effectTag|=2048,d.expirationTime=a;break e}d=d.return}while(null!==d);d=Error((st(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(c))}Nl=!0,d=al(d,c),s=u;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=a,tl(s,a=xl(s,d,a));break e;case 1:if(p=d,f=s.type,c=s.stateNode,0==(64&s.effectTag)&&("function"==typeof f.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Hl||!Hl.has(c)))){s.effectTag|=2048,s.expirationTime=a,tl(s,a=_l(s,p,a));break e}}s=s.return}while(null!==s)}Ml=Yl(i);continue}r=!0,La(t)}}break}if(Ol=!1,Rl.current=n,Hi=Wi=Gi=null,ei(),r)zl=null,e.finishedWork=null;else if(null!==Ml)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&l("281"),zl=null,Nl){if(r=e.latestPendingTime,i=e.latestSuspendedTime,a=e.latestPingedTime,0!==r&&r<o||0!==i&&i<o||0!==a&&a<o)return or(e,o),void Ta(e,n,o,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,o=e.nextExpirationTimeToWorkOn=o,t=e.expirationTime=1073741823,void Ta(e,n,o,t,-1)}t&&-1!==Pl?(or(e,o),(t=10*(1073741822-rr(e,o)))<Pl&&(Pl=t),t=10*(1073741822-Ea()),t=Pl-t,Ta(e,n,o,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=o,e.finishedWork=n)}}function Xl(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Hl||!Hl.has(o)))return el(n,e=_l(n,e=al(t,e),1073741823)),void na(n,1073741823);break;case 3:return el(n,e=xl(n,e=al(t,e),1073741823)),void na(n,1073741823)}n=n.return}3===e.tag&&(el(e,n=xl(e,n=al(t,e),1073741823)),na(e,1073741823))}function Ql(e,t){var n=i.unstable_getCurrentPriorityLevel(),o=void 0;if(0==(1&t.mode))o=1073741823;else if(Ol&&!Dl)o=Il;else{switch(n){case i.unstable_ImmediatePriority:o=1073741823;break;case i.unstable_UserBlockingPriority:o=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:o=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:o=1;break;default:l("313")}null!==zl&&o===Il&&--o}return n===i.unstable_UserBlockingPriority&&(0===da||o<da)&&(da=o),o}function Jl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),null!==zl&&Il===n?zl=null:(t=e.earliestSuspendedTime,o=e.latestSuspendedTime,0!==t&&n<=t&&n>=o&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),ir(n,e),0!==(n=e.expirationTime)&&ka(e,n)))}function ea(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=ta(e,t=Ql(t=Ea(),e)))&&(nr(e,t),0!==(t=e.expirationTime)&&ka(e,t))}function ta(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return r}function na(e,t){null!==(e=ta(e,t))&&(!Ol&&0!==Il&&t>Il&&Fl(),nr(e,t),Ol&&!Dl&&zl===e||ka(e,e.expirationTime),Sa>wa&&(Sa=0,l("185")))}function oa(e,t,n,o,r){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,(function(){return e(t,n,o,r)}))}var ra=null,ia=null,la=0,aa=void 0,sa=!1,ua=null,ca=0,da=0,ha=!1,pa=null,fa=!1,ma=!1,ga=null,va=i.unstable_now(),ya=1073741822-(va/10|0),ba=ya,wa=50,Sa=0,Ca=null;function xa(){ya=1073741822-((i.unstable_now()-va)/10|0)}function _a(e,t){if(0!==la){if(t<la)return;null!==aa&&i.unstable_cancelCallback(aa)}la=t,e=i.unstable_now()-va,aa=i.unstable_scheduleCallback(Ia,{timeout:10*(1073741822-t)-e})}function Ta(e,t,n,o,r){e.expirationTime=o,0!==r||za()?0<r&&(e.timeoutHandle=Co(Ra.bind(null,e,t,n),r)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Ra(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,xa(),ba=ya,Na(e,n)}function Ea(){return sa||(Oa(),0!==ca&&1!==ca||(xa(),ba=ya)),ba}function ka(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ia?(ra=ia=e,e.nextScheduledRoot=e):(ia=ia.nextScheduledRoot=e).nextScheduledRoot=ra):t>e.expirationTime&&(e.expirationTime=t),sa||(fa?ma&&(ua=e,ca=1073741823,Aa(e,1073741823,!1)):1073741823===t?Pa(1073741823,!1):_a(e,t))}function Oa(){var e=0,t=null;if(null!==ia)for(var n=ia,o=ra;null!==o;){var r=o.expirationTime;if(0===r){if((null===n||null===ia)&&l("244"),o===o.nextScheduledRoot){ra=ia=o.nextScheduledRoot=null;break}if(o===ra)ra=r=o.nextScheduledRoot,ia.nextScheduledRoot=r,o.nextScheduledRoot=null;else{if(o===ia){(ia=n).nextScheduledRoot=ra,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if(r>e&&(e=r,t=o),o===ia)break;if(1073741823===e)break;n=o,o=o.nextScheduledRoot}}ua=t,ca=e}var Ma=!1;function za(){return!!Ma||!!i.unstable_shouldYield()&&(Ma=!0)}function Ia(){try{if(!za()&&null!==ra){xa();var e=ra;do{var t=e.expirationTime;0!==t&&ya<=t&&(e.nextExpirationTimeToWorkOn=ya),e=e.nextScheduledRoot}while(e!==ra)}Pa(0,!0)}finally{Ma=!1}}function Pa(e,t){if(Oa(),t)for(xa(),ba=ya;null!==ua&&0!==ca&&e<=ca&&!(Ma&&ya>ca);)Aa(ua,ca,ya>ca),Oa(),xa(),ba=ya;else for(;null!==ua&&0!==ca&&e<=ca;)Aa(ua,ca,!1),Oa();if(t&&(la=0,aa=null),0!==ca&&_a(ua,ca),Sa=0,Ca=null,null!==ga)for(e=ga,ga=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ha||(ha=!0,pa=e)}}if(ha)throw e=pa,pa=null,ha=!1,e}function Na(e,t){sa&&l("253"),ua=e,ca=t,Aa(e,t,!1),Pa(1073741823,!1)}function Aa(e,t,n){if(sa&&l("245"),sa=!0,n){var o=e.finishedWork;null!==o?Da(e,o,t):(e.finishedWork=null,-1!==(o=e.timeoutHandle)&&(e.timeoutHandle=-1,xo(o)),Kl(e,n),null!==(o=e.finishedWork)&&(za()?e.finishedWork=o:Da(e,o,t)))}else null!==(o=e.finishedWork)?Da(e,o,t):(e.finishedWork=null,-1!==(o=e.timeoutHandle)&&(e.timeoutHandle=-1,xo(o)),Kl(e,n),null!==(o=e.finishedWork)&&Da(e,o,t));sa=!1}function Da(e,t,n){var o=e.firstBatch;if(null!==o&&o._expirationTime>=n&&(null===ga?ga=[o]:ga.push(o),o._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===Ca?Sa++:(Ca=e,Sa=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,(function(){$l(e,t)}))}function La(e){null===ua&&l("246"),ua.expirationTime=0,ha||(ha=!0,pa=e)}function Ga(e,t){var n=fa;fa=!0;try{return e(t)}finally{(fa=n)||sa||Pa(1073741823,!1)}}function Wa(e,t){if(fa&&!ma){ma=!0;try{return e(t)}finally{ma=!1}}return e(t)}function Ha(e,t,n){fa||sa||0===da||(Pa(da,!1),da=0);var o=fa;fa=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(fa=o)||sa||Pa(1073741823,!1)}}function Fa(e,t,n,o,r){var i=t.current;e:if(n){t:{2===nn(n=n._reactInternalFiber)&&1===n.tag||l("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Lo(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);l("171"),a=void 0}if(1===n.tag){var s=n.type;if(Lo(s)){n=Fo(n,s,a);break e}}n=a}else n=Io;return null===t.context?t.context=n:t.pendingContext=n,t=r,(r=Qi(o)).payload={element:e},null!==(t=void 0===t?null:t)&&(r.callback=t),Vl(),el(i,r),na(i,o),o}function Ba(e,t,n,o){var r=t.current;return Fa(e,t,n,r=Ql(Ea(),r),o)}function Ua(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ja(e){var t=1073741822-25*(1+((1073741822-Ea()+500)/25|0));t>=kl&&(t=kl-1),this._expirationTime=kl=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Za(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Va(e,t,n){e={current:t=Yo(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function $a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ya(e,t,n,o,r){var i=n._reactRootContainer;if(i){if("function"==typeof r){var l=r;r=function(){var e=Ua(i._internalRoot);l.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,r):i.render(t,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Va(e,!1,t)}(n,o),"function"==typeof r){var a=r;r=function(){var e=Ua(i._internalRoot);a.call(e)}}Wa((function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,r):i.render(t,r)}))}return Ua(i._internalRoot)}function qa(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return $a(t)||l("200"),function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:qe,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ee=function(e,t,n){switch(t){case"input":if(xt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=W(o);r||l("90"),je(o),xt(o,r)}}}break;case"textarea":Jn(e,n);break;case"select":null!=(t=n.value)&&Kn(e,!!n.multiple,t,!1)}},ja.prototype.render=function(e){this._defer||l("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,o=new Za;return Fa(e,t,null,n,o._onCommit),o},ja.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ja.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||l("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var o=null,r=t;r!==this;)o=r,r=r._next;null===o&&l("251"),o._next=r._next,this._next=t,e.firstBatch=this}this._defer=!1,Na(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},ja.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Za.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Za.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&l("191",n),n()}}},Va.prototype.render=function(e,t){var n=this._internalRoot,o=new Za;return null!==(t=void 0===t?null:t)&&o.then(t),Ba(e,n,null,o._onCommit),o},Va.prototype.unmount=function(e){var t=this._internalRoot,n=new Za;return null!==(e=void 0===e?null:e)&&n.then(e),Ba(null,t,null,n._onCommit),n},Va.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var o=this._internalRoot,r=new Za;return null!==(n=void 0===n?null:n)&&r.then(n),Ba(t,o,e,r._onCommit),r},Va.prototype.createBatch=function(){var e=new ja(this),t=e._expirationTime,n=this._internalRoot,o=n.firstBatch;if(null===o)n.firstBatch=e,e._next=null;else{for(n=null;null!==o&&o._expirationTime>=t;)n=o,o=o._next;e._next=o,null!==n&&(n._next=e)}return e},Pe=Ga,Ne=Ha,Ae=function(){sa||0===da||(Pa(da,!1),da=0)};var Ka={createPortal:qa,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?l("188"):l("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return $a(t)||l("200"),Ya(null,e,t,!0,n)},render:function(e,t,n){return $a(t)||l("200"),Ya(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return $a(n)||l("200"),(null==e||void 0===e._reactInternalFiber)&&l("38"),Ya(e,t,n,!1,o)},unmountComponentAtNode:function(e){return $a(e)||l("40"),!!e._reactRootContainer&&(Wa((function(){Ya(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return qa.apply(void 0,arguments)},unstable_batchedUpdates:Ga,unstable_interactiveUpdates:Ha,flushSync:function(e,t){sa&&l("187");var n=fa;fa=!0;try{return oa(e,t)}finally{fa=n,Pa(1073741823,!1)}},unstable_createRoot:function(e,t){return $a(e)||l("299","unstable_createRoot"),new Va(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=fa;fa=!0;try{oa(e)}finally{(fa=t)||sa||Pa(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[L,G,W,M.injectEventPluginsByName,b,Z,function(e){E(e,j)},ze,Ie,On,I]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);jo=Vo((function(e){return t.onCommitFiberRoot(n,e)})),Zo=Vo((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}})(r({},e,{overrideProps:null,currentDispatcherRef:Ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:D,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var Xa={default:Ka},Qa=Xa&&Ka||Xa;e.exports=Qa.default||Qa},3935:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(4448)},977:(e,t,n)=>{var o=n(7137),r=n(2989);e.exports=function(){return o.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,n="function"==typeof Map,o="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){if(e.constructor!==l.constructor)return!1;var a,s,u,c;if(Array.isArray(e)){if((a=e.length)!=l.length)return!1;for(s=a;0!=s--;)if(!i(e[s],l[s]))return!1;return!0}if(n&&e instanceof Map&&l instanceof Map){if(e.size!==l.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!l.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!i(s.value[1],l.get(s.value[0])))return!1;return!0}if(o&&e instanceof Set&&l instanceof Set){if(e.size!==l.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!l.has(s.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(l)){if((a=e.length)!=l.length)return!1;for(s=a;0!=s--;)if(e[s]!==l[s])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(l,u[s]))return!1;if(t&&e instanceof Element)return!1;for(s=a;0!=s--;)if(("_owner"!==u[s]&&"__v"!==u[s]&&"__o"!==u[s]||!e.$$typeof)&&!i(e[u[s]],l[u[s]]))return!1;return!0}return e!=e&&l!=l}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 n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case d:case i:case a:case l:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case s:return e;default:return t}}case r:return t}}}function C(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=o,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=l,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||S(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===h},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===r},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===l},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===l||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},9864:(e,t,n)=>{e.exports=n(9921)},6871:(e,t,n)=>{function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function l(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,l=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?l="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==l||null!==a){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==l?"\n "+l:"")+(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=o,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 c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>l}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,n)=>{t.__esModule=!0;var o=u(n(5697)),r=u(n(621)),i=u(n(7294)),l=u(n(3935)),a=u(n(3464)),s=u(n(290));function u(e){return e&&e.__esModule?e:{default:e}}function c(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 n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,u=Array(r),d=0;d<r;d++)u[d]=arguments[d];return n=o=c(this,e.call.apply(e,[this].concat(u))),o._mountOverlayTarget=function(){o._overlayTarget||(o._overlayTarget=document.createElement("div"),o._portalContainerNode=(0,a.default)(o.props.container,(0,s.default)(o).body),o._portalContainerNode.appendChild(o._overlayTarget))},o._unmountOverlayTarget=function(){o._overlayTarget&&(o._portalContainerNode.removeChild(o._overlayTarget),o._overlayTarget=null),o._portalContainerNode=null},o._renderOverlay=function(){var e=o.props.children?i.default.Children.only(o.props.children):null;if(null!==e){o._mountOverlayTarget();var t=!o._overlayInstance;o._overlayInstance=l.default.unstable_renderSubtreeIntoContainer(o,e,o._overlayTarget,(function(){t&&o.props.onRendered&&o.props.onRendered()}))}else o._unrenderOverlay(),o._unmountOverlayTarget()},o._unrenderOverlay=function(){o._overlayTarget&&(l.default.unmountComponentAtNode(o._overlayTarget),o._overlayInstance=null)},o.getMountNode=function(){return o._overlayTarget},c(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?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,s.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:o.default.oneOfType([r.default,o.default.func]),onRendered:o.default.func},t.default=d,e.exports=t.default},2856:(e,t,n)=>{t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=c(n(5697)),i=c(n(8853)),l=c(n(7294)),a=c(n(5425)),s=c(n(7487)),u=c(n(2395));function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(n,o){!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,n,o));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!n.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,n=e.containerPadding,o=e.target,r=e.placement,i=e.shouldUpdatePosition,c=e.rootClose,d=e.children,h=e.transition,p=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||h&&!this.state.exited))return null;var f=d;if(f=l.default.createElement(s.default,{container:t,containerPadding:n,target:o,placement:r,shouldUpdatePosition:i},f),h){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,b=p.onEntered;f=l.default.createElement(h,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:b},f)}return c&&(f=l.default.createElement(u.default,{onRootClose:p.onHide},f)),l.default.createElement(a.default,{container:t},f)},t}(l.default.Component);d.propTypes=o({},a.default.propTypes,s.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 n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[e].concat(o))},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,n)=>{t.__esModule=!0;var o=c(n(5697)),r=c(n(621)),i=c(n(7294)),l=c(n(3935)),a=c(n(3464)),s=c(n(290)),u=c(n(7281));function c(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 h=function(e){function t(){var n,o;!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),l=0;l<r;l++)i[l]=arguments[l];return n=o=d(this,e.call.apply(e,[this].concat(i))),o.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props;o._portalContainerNode=(0,a.default)(e.container,(0,s.default)(o).body)},o.getMountNode=function(){return o._portalContainerNode},d(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?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?l.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);h.displayName="Portal",h.propTypes={container:o.default.oneOfType([r.default,o.default.func]),onRendered:o.default.func},t.default=l.default.createPortal?h:u.default,e.exports=t.default},7487:(e,t,n)=>{t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=p(n(4184)),i=p(n(5697)),l=p(n(621)),a=n(7294),s=p(a),u=p(n(3935)),c=p(n(7603)),d=p(n(3464)),h=p(n(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var m=function(e){function t(n,o){!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,n,o));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&u.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,n=e.className,i=f(e,["children","className"]),l=this.state,u=l.positionLeft,c=l.positionTop,d=f(l,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var h=s.default.Children.only(t);return(0,a.cloneElement)(h,o({},i,d,{positionLeft:u,positionTop:c,className:(0,r.default)(n,h.props.className),style:o({},h.props.style,{left:u,top:c})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=u.default.findDOMNode(this),n=(0,d.default)(this.props.container,(0,h.default)(this).body);this.setState((0,c.default)(this.props.placement,t,e,n,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(s.default.Component);m.propTypes={target:i.default.oneOfType([l.default,i.default.func]),container:i.default.oneOfType([l.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,n)=>{t.__esModule=!0;var o=u(n(1629)),r=u(n(5697)),i=u(n(7294)),l=u(n(3935)),a=u(n(6616)),s=u(n(290));function u(e){return e&&e.__esModule?e:{default:e}}var c=27;var d=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var 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,n,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,s.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,o.default)(l.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){e.keyCode===c&&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,n)=>{t.__esModule=!0,t.default=function(e,t,n,i){return(0,o.default)(e,t,n,i),{remove:function(){(0,r.default)(e,t,n,i)}}};var o=i(n(1416)),r=i(n(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,n)=>{t.__esModule=!0,t.default=function(e,t,n,i,l){var a="BODY"===i.tagName?(0,o.default)(n):(0,r.default)(n,i),u=(0,o.default)(t),c=u.height,d=u.width,h=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=a.top+(a.height-c)/2,h="left"===e?a.left-d:a.left+a.width;var g=function(e,t,n,o){var r=s(n),i=r.scroll,l=r.height,a=e-o-i,u=e+o-i+t;return a<0?-a:u>l?l-u:0}(p,c,i,l);p+=g,m=50*(1-2*g/c)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');h=a.left+(a.width-d)/2,p="top"===e?a.top-c:a.top+a.height;var v=function(e,t,n,o){var r=s(n),i=r.width,l=e-o,a=e+o+t;if(l<0)return-l;if(a>i)return i-a;return 0}(h,d,i,l);h+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:h,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var o=a(n(2565)),r=a(n(7265)),i=a(n(504)),l=a(n(290));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=void 0,n=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,n=window.innerHeight,r=(0,i.default)((0,l.default)(e).documentElement)||(0,i.default)(e);else{var a=(0,o.default)(e);t=a.width,n=a.height,r=(0,i.default)(e)}return{width:t,height:n,scroll:r}}e.exports=t.default},3464:(e,t,n)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var o,r=n(3935),i=(o=r)&&o.__esModule?o:{default:o};e.exports=t.default},290:(e,t,n)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(o.default.findDOMNode(e))};var o=i(n(3935)),r=i(n(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3524:(e,t,n)=>{var o,r=n(7294),i=(o=r)&&"object"==typeof o&&"default"in o?o.default:o;function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){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!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(o){if("function"!=typeof o)throw new Error("Expected WrappedComponent to be a React component.");var s,u=[];function c(){s=e(u.map((function(e){return e.props}))),d.canUseDOM?t(s):n&&(s=n(s))}var d=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.peek=function(){return s},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=s;return s=void 0,u=[],e};var l=r.prototype;return l.UNSAFE_componentWillMount=function(){u.push(this),c()},l.componentDidUpdate=function(){c()},l.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),c()},l.render=function(){return i.createElement(o,this.props)},r}(r.PureComponent);return l(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(o)+")"),l(d,"canUseDOM",a),d}}},644:(e,t,n)=>{t.ZP=t.cn=t.d0=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(5697)),r=a(n(7294)),i=a(n(3935)),l=n(6871);n(4726);function a(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";var u="exited";var c="entering";t.d0=c;var d="entered";t.cn=d;var h="exiting";var p=function(e){var t,n;function o(t,n){var o;o=e.call(this,t,n)||this;var r,i=n.transitionGroup,l=i&&!i.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?l?(r=u,o.appearStatus=c):r=d:r=t.unmountOnExit||t.mountOnEnter?s:u,o.state={status:r},o.nextCallback=null,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=o.prototype;return l.getChildContext=function(){return{transitionGroup:null}},o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:u}:null},l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=h)}this.updateStatus(!1,t)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},l.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},l.performEnter=function(e,t){var n=this,o=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),l=r?i.appear:i.enter;t||o?(this.props.onEnter(e,r),this.safeSetState({status:c},(function(){n.props.onEntering(e,r),n.onTransitionEnd(e,l,(function(){n.safeSetState({status:d},(function(){n.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){n.props.onEntered(e)}))},l.performExit=function(e){var t=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:h},(function(){t.props.onExiting(e),t.onTransitionEnd(e,o.exit,(function(){t.safeSetState({status:u},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:u},(function(){t.props.onExited(e)}))},l.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},l.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},l.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var o=null==t&&!this.props.addEndListener;e&&!o?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},l.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,o=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(e,o);var i=r.default.Children.only(n);return r.default.cloneElement(i,o)},o}(r.default.Component);function f(){}p.contextTypes={transitionGroup:o.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,l.polyfill)(p);t.ZP=m},4726:(e,t,n)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var o;(o=n(5697))&&o.__esModule;t.timeoutsShape=null;t.classNamesShape=null},2408:(e,t,n)=>{var o=n(7418),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,i,l,a){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,l,a],u=0;(e=Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function C(){}function x(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=S.prototype;var _=x.prototype=new C;_.constructor=x,o(_,S.prototype),_.isPureReactComponent=!0;var T={current:null},R={current:null},E=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var o=void 0,r={},l=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(l=""+t.key),t)E.call(t,o)&&!k.hasOwnProperty(o)&&(r[o]=t[o]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===r[o]&&(r[o]=s[o]);return{$$typeof:i,type:e,key:l,ref:a,props:r,_owner:R.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var z=/\/+/g,I=[];function P(e,t,n,o){if(I.length){var r=I.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function A(e,t,n,o){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var a=!1;if(null===e)a=!0;else switch(r){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case i:case l:a=!0}}if(a)return n(o,e,""===t?"."+L(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var u=t+L(r=e[s],s);a+=A(r,u,n,o)}else if(null===e||"object"!=typeof e?u=null:u="function"==typeof(u=v&&e[v]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),s=0;!(r=e.next()).done;)a+=A(r=r.value,u=t+L(r,s++),n,o);else"object"===r&&y("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function D(e,t,n){return null==e?0:A(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function G(e,t){e.func.call(e.context,t,e.count++)}function W(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?H(e,o,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(z,"$&/")+"/")+n)),o.push(e))}function H(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(z,"$&/")+"/"),D(e,W,t=P(t,i,o,r)),N(t)}function F(){var e=T.current;return null===e&&y("307"),e}var B={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return H(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;D(e,G,t=P(null,null,t,n)),N(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return H(e,t,null,(function(e){return e})),t},only:function(e){return M(e)||y("143"),e}},createRef:function(){return{current:null}},Component:S,PureComponent:x,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return F().useCallback(e,t)},useContext:function(e,t){return F().useContext(e,t)},useEffect:function(e,t){return F().useEffect(e,t)},useImperativeHandle:function(e,t,n){return F().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return F().useLayoutEffect(e,t)},useMemo:function(e,t){return F().useMemo(e,t)},useReducer:function(e,t,n){return F().useReducer(e,t,n)},useRef:function(e){return F().useRef(e)},useState:function(e){return F().useState(e)},Fragment:a,StrictMode:s,Suspense:f,createElement:O,cloneElement:function(e,t,n){null==e&&y("267",e);var r=void 0,l=o({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,u=R.current),void 0!==t.key&&(a=""+t.key);var c=void 0;for(r in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)E.call(t,r)&&!k.hasOwnProperty(r)&&(l[r]=void 0===t[r]&&void 0!==c?c[r]:t[r])}if(1===(r=arguments.length-2))l.children=n;else if(1<r){c=Array(r);for(var d=0;d<r;d++)c[d]=arguments[d+2];l.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:l,_owner:u}},createFactory:function(e){var t=O.bind(null,e);return t.type=e,t},isValidElement:M,version:"16.8.4",unstable_ConcurrentMode:h,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:T,ReactCurrentOwner:R,assign:o}},U={default:B},j=U&&B||U;e.exports=j.default||j},7294:(e,t,n)=>{e.exports=n(2408)},53:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=null,r=!1,i=3,l=-1,a=-1,s=!1,u=!1;function c(){if(!s){var e=o.expirationTime;u?_():u=!0,x(p,e)}}function d(){var e=o,t=o.next;if(o===t)o=null;else{var n=o.previous;o=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var r=i,l=a;i=e,a=t;try{var s=n()}finally{i=r,a=l}if("function"==typeof s)if(s={callback:s,priorityLevel:e,expirationTime:t,next:null,previous:null},null===o)o=s.next=s.previous=s;else{n=null,e=o;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==o);null===n?n=o:n===o&&(o=s,c()),(t=n.previous).next=n.previous=s,s.next=n,s.previous=t}}function h(){if(-1===l&&null!==o&&1===o.priorityLevel){s=!0;try{do{d()}while(null!==o&&1===o.priorityLevel)}finally{s=!1,null!==o?c():u=!1}}}function p(e){s=!0;var n=r;r=e;try{if(e)for(;null!==o;){var i=t.unstable_now();if(!(o.expirationTime<=i))break;do{d()}while(null!==o&&o.expirationTime<=i)}else if(null!==o)do{d()}while(null!==o&&!T())}finally{s=!1,r=n,null!==o?c():u=!1,h()}}var f,m,g=Date,v="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,w="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function S(e){f=b((function(t){y(m),e(t)})),m=v((function(){w(f),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var C=performance;t.unstable_now=function(){return C.now()}}else t.unstable_now=function(){return g.now()};var x,_,T,R=null;if("undefined"!=typeof window?R=window:void 0!==n.g&&(R=n.g),R&&R._schedMock){var E=R._schedMock;x=E[0],_=E[1],T=E[2],t.unstable_now=E[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var k=null,O=function(e){if(null!==k)try{k(e)}finally{k=null}};x=function(e){null!==k?setTimeout(x,0,e):(k=e,setTimeout(O,0,!1))},_=function(){k=null},T=function(){return!1}}else{var M=null,z=!1,I=-1,P=!1,N=!1,A=0,D=33,L=33;T=function(){return A<=t.unstable_now()};var G=new MessageChannel,W=G.port2;G.port1.onmessage=function(){z=!1;var e=M,n=I;M=null,I=-1;var o=t.unstable_now(),r=!1;if(0>=A-o){if(!(-1!==n&&n<=o))return P||(P=!0,S(H)),M=e,void(I=n);r=!0}if(null!==e){N=!0;try{e(r)}finally{N=!1}}};var H=function(e){if(null!==M){S(H);var t=e-A+L;t<L&&D<L?(8>t&&(t=8),L=t<D?D:t):D=t,A=e+L,z||(z=!0,W.postMessage(void 0))}else P=!1};x=function(e,t){M=e,I=t,N||0>t?W.postMessage(void 0):P||(P=!0,S(H))},_=function(){M=null,z=!1,I=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var o=i,r=l;i=e,l=t.unstable_now();try{return n()}finally{i=o,l=r,h()}},t.unstable_next=function(e){switch(i){case 1:case 2:case 3:var n=3;break;default:n=i}var o=i,r=l;i=n,l=t.unstable_now();try{return e()}finally{i=o,l=r,h()}},t.unstable_scheduleCallback=function(e,n){var r=-1!==l?l:t.unstable_now();if("object"==typeof n&&null!==n&&"number"==typeof n.timeout)n=r+n.timeout;else switch(i){case 1:n=r+-1;break;case 2:n=r+250;break;case 5:n=r+1073741823;break;case 4:n=r+1e4;break;default:n=r+5e3}if(e={callback:e,priorityLevel:i,expirationTime:n,next:null,previous:null},null===o)o=e.next=e.previous=e,c();else{r=null;var a=o;do{if(a.expirationTime>n){r=a;break}a=a.next}while(a!==o);null===r?r=o:r===o&&(o=e,c()),(n=r.previous).next=r.previous=e,e.next=r,e.previous=n}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)o=null;else{e===o&&(o=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=i;return function(){var o=i,r=l;i=n,l=t.unstable_now();try{return e.apply(this,arguments)}finally{i=o,l=r,h()}}},t.unstable_getCurrentPriorityLevel=function(){return i},t.unstable_shouldYield=function(){return!r&&(null!==o&&o.expirationTime<a||T())},t.unstable_continueExecution=function(){null!==o&&c()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return o}},3840:(e,t,n)=>{e.exports=n(53)},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(){}},8149:(e,t,n)=>{e.exports=n(3285)},8428:(e,t,n)=>{e.exports=n(6981)},5940:(e,t,n)=>{e.exports=n(5627)},3562:(e,t,n)=>{e.exports=n(7965)},6243:(e,t,n)=>{e.exports=n(8613)},2863:(e,t,n)=>{e.exports=n(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 n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}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 n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{commitNodeType:()=>Re,default:()=>Ga,mergeNodeType:()=>ke,stashNodeType:()=>Me});var e={};n.r(e),n.d(e,{types:()=>jl});var t,r=n(7294),i=n.n(r),l=n(5697),a=n.n(l),s=n(3524),u=n.n(s),c=n(9590),d=n.n(c),h=n(7418),p=n.n(h),f="bodyAttributes",m="htmlAttributes",g="titleAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},y=(Object.keys(v).map((function(e){return v[e]})),"charset"),b="cssText",w="href",S="http-equiv",C="innerHTML",x="itemprop",_="name",T="property",R="rel",E="src",k="target",O={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M="defaultTitle",z="defer",I="encodeSpecialCharacters",P="onChangeClientState",N="titleTemplate",A=Object.keys(O).reduce((function(e,t){return e[O[t]]=t,e}),{}),D=[v.NOSCRIPT,v.SCRIPT,v.STYLE],L="data-react-helmet",G="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},W=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},H=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},B=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},U=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},j=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;")},Z=function(e){var t=K(e,v.TITLE),n=K(e,N);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var o=K(e,M);return t||o||void 0},V=function(e){return K(e,P)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return F({},e,t)}),{})},Y=function(e,t){return t.filter((function(e){return void 0!==e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var o=Object.keys(n),r=0;r<o.length;r++){var i=o[r].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},q=function(e,t,n){var o={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+G(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var r={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),l=0;l<i.length;l++){var a=i[l],s=a.toLowerCase();-1===t.indexOf(s)||n===R&&"canonical"===e[n].toLowerCase()||s===R&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(a)||a!==C&&a!==b&&a!==x||(n=a)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return o[n]||(o[n]={}),r[n]||(r[n]={}),!o[n][u]&&(r[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),l=0;l<i.length;l++){var a=i[l],s=p()({},o[a],r[a]);o[a]=s}return e}),[]).reverse()},K=function(e,t){for(var n=e.length-1;n>=0;n--){var o=e[n];if(o.hasOwnProperty(t))return o[t]}return null},X=(t=Date.now(),function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout((function(){X(e)}),0)}),Q=function(e){return clearTimeout(e)},J="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:n.g.requestAnimationFrame||X,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:n.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"==typeof console.warn&&void 0},ne=null,oe=function(e,t){var n=e.baseTag,o=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,l=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,d=e.title,h=e.titleAttributes;le(v.BODY,o),le(v.HTML,r),ie(d,h);var p={baseTag:ae(v.BASE,n),linkTags:ae(v.LINK,i),metaTags:ae(v.META,l),noscriptTags:ae(v.NOSCRIPT,a),scriptTags:ae(v.SCRIPT,u),styleTags:ae(v.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,o=t.oldTags;n.length&&(f[e]=n),o.length&&(m[e]=p[e].oldTags)})),t&&t(),s(e,f,m)},re=function(e){return Array.isArray(e)?e.join(""):e},ie=function(e,t){void 0!==e&&document.title!==e&&(document.title=re(e)),le(v.TITLE,t)},le=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var o=n.getAttribute(L),r=o?o.split(","):[],i=[].concat(r),l=Object.keys(t),a=0;a<l.length;a++){var s=l[a],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===r.indexOf(s)&&r.push(s);var c=i.indexOf(s);-1!==c&&i.splice(c,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);r.length===i.length?n.removeAttribute(L):n.getAttribute(L)!==l.join(",")&&n.setAttribute(L,l.join(","))}},ae=function(e,t){var n=document.head||document.querySelector(v.HEAD),o=n.querySelectorAll(e+"["+L+"]"),r=Array.prototype.slice.call(o),i=[],l=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)if(t.hasOwnProperty(o))if(o===C)n.innerHTML=t.innerHTML;else if(o===b)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var a=void 0===t[o]?"":t[o];n.setAttribute(o,a)}n.setAttribute(L,"true"),r.some((function(e,t){return l=t,n.isEqualNode(e)}))?r.splice(l,1):i.push(n)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:r,newTags:i}},se=function(e){return Object.keys(e).reduce((function(t,n){var o=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+o:o}),"")},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[O[n]||n]=e[n],t}),t)},ce=function(e,t,n){switch(e){case v.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(o={key:e})[L]=!0,r=ue(n,o),[i().createElement(v.TITLE,r,e)];var e,n,o,r},toString:function(){return function(e,t,n,o){var r=se(n),i=re(t);return r?"<"+e+" "+L+'="true" '+r+">"+j(i,o)+"</"+e+">":"<"+e+" "+L+'="true">'+j(i,o)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case f:case m:return{toComponent:function(){return ue(t)},toString:function(){return se(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var o,r=((o={key:n})[L]=!0,o);return Object.keys(t).forEach((function(e){var n=O[e]||e;if(n===C||n===b){var o=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:o}}else r[n]=t[e]})),i().createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,o){var r=Object.keys(o).filter((function(e){return!(e===C||e===b)})).reduce((function(e,t){var r=void 0===o[t]?t:t+'="'+j(o[t],n)+'"';return e?e+" "+r:r}),""),i=o.innerHTML||o.cssText||"",l=-1===D.indexOf(e);return t+"<"+e+" "+L+'="true" '+r+(l?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,o=e.encode,r=e.htmlAttributes,i=e.linkTags,l=e.metaTags,a=e.noscriptTags,s=e.scriptTags,u=e.styleTags,c=e.title,d=void 0===c?"":c,h=e.titleAttributes;return{base:ce(v.BASE,t,o),bodyAttributes:ce(f,n,o),htmlAttributes:ce(m,r,o),link:ce(v.LINK,i,o),meta:ce(v.META,l,o),noscript:ce(v.NOSCRIPT,a,o),script:ce(v.SCRIPT,s,o),style:ce(v.STYLE,u,o),title:ce(v.TITLE,{title:d,titleAttributes:h},o)}},he=function(e){var t,n;return n=t=function(t){function n(){return W(this,n),U(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)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!d()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.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.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,o=e.arrayTypeChildren,r=e.newChildProps,i=e.nestedChildren;return F({},o,((t={})[n.type]=[].concat(o[n.type]||[],[F({},r,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,o=e.child,r=e.newProps,i=e.newChildProps,l=e.nestedChildren;switch(o.type){case v.TITLE:return F({},r,((t={})[o.type]=l,t.titleAttributes=F({},i),t));case v.BODY:return F({},r,{bodyAttributes:F({},i)});case v.HTML:return F({},r,{htmlAttributes:F({},i)})}return F({},r,((n={})[o.type]=F({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=F({},t);return Object.keys(e).forEach((function(t){var o;n=F({},n,((o={})[t]=e[t],o))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,o={};return i().Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[A[n]||n]=e[n],t}),t)}(B(r,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:l,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:l,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(o,t)},n.prototype.render=function(){var t=this.props,n=t.children,o=B(t,["children"]),r=F({},o);return n&&(r=this.mapChildrenToProps(n,r)),i().createElement(e,r)},H(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(i().Component),t.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(u()((function(e){return{baseTag:Y([w,k],e),bodyAttributes:$(f,e),defer:K(e,z),encode:K(e,I),htmlAttributes:$(m,e),linkTags:q(v.LINK,[R,w],e),metaTags:q(v.META,[_,y,S,T,x],e),noscriptTags:q(v.NOSCRIPT,[C],e),onChangeClientState:V(e),scriptTags:q(v.SCRIPT,[E,C],e),styleTags:q(v.STYLE,[b],e),title:Z(e),titleAttributes:$(g,e)}}),(function(e){ne&&ee(ne),e.defer?ne=J((function(){oe(e,(function(){ne=null}))})):(oe(e),ne=null)}),de)((function(){return null})));he.renderStatic=he.rewind;const pe=he;var fe=n(4184),me=n.n(fe);const ge=/(?<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,ve=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,ye=new Map;let be;const we=["th","st","nd","rd"];function Se(e){const t=e%100;return`${e}${we[(t-20)%10]??we[t]??we[0]}`}function Ce(e,t,n,o=!0){const r=`${n??""}:${t=t??void 0}`;let i=ye.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=ve.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:n}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:n||void 0}}const n={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(ge))if(null!=t)for(const e in t){const o=t[e];if(null!=o)switch(e){case"year":n.year=4===o.length?"numeric":"2-digit";break;case"month":switch(o.length){case 4:n.month="long";break;case 3:n.month="short";break;case 2:n.month="2-digit";break;case 1:n.month="numeric"}break;case"day":n.day="DD"===o?"2-digit":"numeric";break;case"weekday":switch(o.length){case 4:n.weekday="long";break;case 3:n.weekday="short";break;case 2:n.weekday="narrow"}break;case"hour":n.hour=2===o.length?"2-digit":"numeric",n.hour12="hh"===o||"h"===o;break;case"minute":n.minute=2===o.length?"2-digit":"numeric";break;case"second":n.second=2===o.length?"2-digit":"numeric";break;case"fractionalSecond":n.fractionalSecondDigits=3;break;case"dayPeriod":n.dayPeriod="narrow",n.hour12=!0,n.hourCycle="h12";break;case"timeZoneName":n.timeZoneName=2===o.length?"long":"short"}}return n}(t);let l;l=null==n?be:"system"===n?void 0:[n],i=new Intl.DateTimeFormat(l,e),o&&ye.set(r,i)}if(null==t||ve.test(t))return i.format(e);function l(e){const t=`${n??""}:time:${e}`;let r=ye.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let l;l=null==n?be:"system"===n?void 0:[n],r=new Intl.DateTimeFormat(l,i),o&&ye.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(ge,((t,n,o,r,i,s,u,c,d,h,p,f,m,g,v)=>{if(null!=n)return n.substring(1,n.length-1);for(const t in v){const n=v[t];if(null==n)continue;const o=a.find((e=>e.type===t));if("Do"===n&&"day"===o?.type)return Se(Number(o.value));if("a"===n&&"dayPeriod"===o?.type){return` ${(l("short").formatToParts(e).find((e=>"dayPeriod"===e.type))??o)?.value??""}`}return o?.value??""}return""}))}const xe={"--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":"10px","--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 _e(e){return`--column-${e}-color`}function Te(e={}){const t={};return Object.keys(e).forEach((n=>{n.includes("--graph-color-")||n.match(/^--column-\d+-color$/)?CSS.supports("color",e[n])&&(t[n]=e[n]):t[n]=e[n]})),function(e={}){return{...xe,...e}}(t)}const Re="commit-node",Ee="merge-conflict-node",ke="merge-node",Oe="unsupported-rebase-warning-node",Me="stash-node",ze="work-dir-changes";var Ie=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(Ie||{}),Pe=n(6243);function Ne(e,t){if(null==e)return{};var n,o,r={},i=Pe(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var Ae=n(5940),De=n(2863);function Le(e,t){return Le=De?De.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}function Ge(e,t){e.prototype=Ae(t.prototype),e.prototype.constructor=e,Le(e,t)}var We=n(8428);function He(){return He=We?We.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},He.apply(this,arguments)}var Fe,Be=n(2856),Ue=n.n(Be),je=n(8853),Ze=n.n(je),Ve=n(644),$e={in:a().bool,mountOnEnter:a().bool,unmountOnExit:a().bool,appear:a().bool,timeout:a().number,onEnter:a().func,onEntering:a().func,onEntered:a().func,onExit:a().func,onExiting:a().func,onExited:a().func},Ye=((Fe={})[Ve.d0]="in",Fe[Ve.cn]="in",Fe),qe=function(e){function t(){return e.apply(this,arguments)||this}return Ge(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,o=Ne(e,["className","children"]);return i().createElement(Ve.ZP,o,(function(e,o){return i().cloneElement(n,He({},o,{className:me()("fade",t,n.props.className,Ye[e])}))}))},t}(i().Component);qe.propTypes=$e,qe.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const Ke=qe;var Xe=He({},Ue().propTypes,{show:a().bool,rootClose:a().bool,onHide:a().func,animation:a().oneOfType([a().bool,Ze()]),onEnter:a().func,onEntering:a().func,onEntered:a().func,onExit:a().func,onExiting:a().func,onExited:a().func,placement:a().oneOf(["top","right","bottom","left"])}),Qe={animation:Ke,rootClose:!1,show:!1,placement:"right"},Je=function(e){function t(){return e.apply(this,arguments)||this}return Ge(t,e),t.prototype.render=function(){var e,t=this.props,n=t.animation,o=t.children,l=Ne(t,["animation","children"]),a=!0===n?Ke:n||null;return e=a?o:(0,r.cloneElement)(o,{className:me()(o.props.className,"in")}),i().createElement(Ue(),He({},l,{transition:a}),e)},t}(i().Component);Je.propTypes=Xe,Je.defaultProps=Qe;const et=Je;var tt=n(5638),nt=n.n(tt),ot=n(3562),rt=n.n(ot),it=n(1143),lt=n.n(it),at={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function st(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return"function"==typeof n[n.length-1]?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function ut(e,t){var n=(e.bsClass||"").trim();return null==n&&lt()(!1),n+(t?"-"+t:"")}var ct=st((function(e,t){var n=t.propTypes||(t.propTypes={}),o=t.defaultProps||(t.defaultProps={});return n.bsClass=a().string,o.bsClass=e,t}));st((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var o=n.STYLES||[],r=n.propTypes||{};e.forEach((function(e){-1===o.indexOf(e)&&o.push(e)}));var i=a().oneOf(o);(n.STYLES=o,i._values=o,n.propTypes=He({},r,{bsStyle:i}),void 0!==t)&&((n.defaultProps||(n.defaultProps={})).bsStyle=t);return n})),st((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var o=n.SIZES||[],r=n.propTypes||{};e.forEach((function(e){-1===o.indexOf(e)&&o.push(e)}));var i=[];o.forEach((function(e){var t=at[e];t&&t!==e&&i.push(t),i.push(e)}));var l=a().oneOf(i);return l._values=i,n.SIZES=o,n.propTypes=He({},r,{bsSize:l}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n}));function dt(e){var t,n=((t={})[ut(e)]=!0,t);e.bsSize&&(n[ut(e,at[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(n[ut(e,e.bsStyle)]=!0),n}function ht(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function pt(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function ft(e){var t={};return rt()(e).forEach((function(e){var n=e[0],o=e[1];pt(n)||(t[n]=o)})),[ht(e),t]}var mt={id:nt()(a().oneOfType([a().string,a().number])),placement:a().oneOf(["top","right","bottom","left"]),positionTop:a().oneOfType([a().number,a().string]),positionLeft:a().oneOfType([a().number,a().string]),arrowOffsetTop:a().oneOfType([a().number,a().string]),arrowOffsetLeft:a().oneOfType([a().number,a().string]),title:a().node},gt=function(e){function t(){return e.apply(this,arguments)||this}return Ge(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,o=t.positionTop,r=t.positionLeft,l=t.arrowOffsetTop,a=t.arrowOffsetLeft,s=t.title,u=t.className,c=t.style,d=t.children,h=ft(Ne(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),p=h[0],f=h[1],m=He({},dt(p),((e={})[n]=!0,e)),g=He({display:"block",top:o,left:r},c),v={top:l,left:a};return i().createElement("div",He({},f,{role:"tooltip",className:me()(u,m),style:g}),i().createElement("div",{className:"arrow",style:v}),s&&i().createElement("h3",{className:ut(p,"title")},s),i().createElement("div",{className:ut(p,"content")},d))},t}(i().Component);gt.propTypes=mt,gt.defaultProps={placement:"right"};const vt=ct("popover",gt);var yt,bt=(yt=function(e,t){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},yt(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 n(){this.constructor=e}yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),wt=function(){return wt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},wt.apply(this,arguments)},St={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"}},Ct=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 bt(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:wt(wt({position:"absolute",userSelect:"none"},St[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),xt=n(3316),_t=n.n(xt),Tt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rt=function(){return Rt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Rt.apply(this,arguments)},Et={width:"auto",height:"auto"},kt=_t()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Ot=_t()((function(e,t){return Math.round(e/t)*t})),Mt=_t()((function(e,t){return new RegExp(e,"i").test(t)})),zt=function(e){return Boolean(e.touches&&e.touches.length)},It=_t()((function(e,t,n){void 0===n&&(n=0);var o=t.reduce((function(n,o,r){return Math.abs(o-e)<Math.abs(t[n]-e)?r:n}),0),r=Math.abs(t[o]-e);return 0===n||r<n?t[o]:e})),Pt=_t()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Nt=_t()((function(e){return"auto"===(e=e.toString())||Pt(e,"px")||Pt(e,"%")||Pt(e,"vh")||Pt(e,"vw")||Pt(e,"vmax")||Pt(e,"vmin")?e:e+"px"})),At=function(e,t,n,o){if(e&&"string"==typeof e){if(Pt(e,"px"))return Number(e.replace("px",""));if(Pt(e,"%"))return t*(Number(e.replace("%",""))/100);if(Pt(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(Pt(e,"vh"))return o*(Number(e.replace("vh",""))/100)}return e},Dt=_t()((function(e,t,n,o,r,i,l){return o=At(o,e.width,t,n),r=At(r,e.height,t,n),i=At(i,e.width,t,n),l=At(l,e.height,t,n),{maxWidth:void 0===o?void 0:Number(o),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===l?void 0:Number(l)}})),Lt=["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"],Gt="__resizable_base__",Wt=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.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(Gt):t.className+=Gt,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.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},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Tt(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||Et},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,o=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:o,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,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Pt(e.propsSize[t].toString(),"%")){if(Pt(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return Nt(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Nt(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Nt(t.height):n("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,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var o={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),o},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 n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,o,r=this.props.boundsByDirection,i=this.state.direction,l=r&&Mt("left",i),a=r&&Mt("top",i);if("parent"===this.props.bounds){var s=this.parentNode;s&&(n=l?this.resizableRight-this.parentLeft:s.offsetWidth+(this.parentLeft-this.resizableLeft),o=a?this.resizableBottom-this.parentTop:s.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,o=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),o&&Number.isFinite(o)&&(t=t&&t<o?t:o),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,o=this.props.resizeRatio||1,r=this.state,i=r.direction,l=r.original,a=this.props,s=a.lockAspectRatio,u=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,d=l.width,h=l.height,p=u||0,f=c||0;return Mt("right",i)&&(d=l.width+(e-l.x)*o/n,s&&(h=(d-f)/this.ratio+p)),Mt("left",i)&&(d=l.width-(e-l.x)*o/n,s&&(h=(d-f)/this.ratio+p)),Mt("bottom",i)&&(h=l.height+(t-l.y)*o/n,s&&(d=(h-p)*this.ratio+f)),Mt("top",i)&&(h=l.height-(t-l.y)*o/n,s&&(d=(h-p)*this.ratio+f)),{newWidth:d,newHeight:h}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,o){var r=this.props,i=r.lockAspectRatio,l=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,s=void 0===o.width?10:o.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===o.height?10:o.height,d=void 0===n.height||n.height<0?t:n.height,h=l||0,p=a||0;if(i){var f=(c-h)*this.ratio+p,m=(d-h)*this.ratio+p,g=(s-p)/this.ratio+h,v=(u-p)/this.ratio+h,y=Math.max(s,f),b=Math.min(u,m),w=Math.max(c,g),S=Math.min(d,v);e=kt(e,y,b),t=kt(t,w,S)}else e=kt(e,s,u),t=kt(t,c,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 n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),r=o.left,i=o.top,l=o.right,a=o.bottom;this.resizableLeft=r,this.resizableRight=l,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,o=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(o=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&zt(e.nativeEvent)&&(o=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 l=this.parentNode;if(l){var a=this.window.getComputedStyle(l).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:o,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Rt(Rt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&zt(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,o=t.maxHeight,r=t.minWidth,i=t.minHeight,l=zt(e)?e.touches[0].clientX:e.clientX,a=zt(e)?e.touches[0].clientY:e.clientY,s=this.state,u=s.direction,c=s.original,d=s.width,h=s.height,p=this.getParentSize(),f=Dt(p,this.window.innerWidth,this.window.innerHeight,n,o,r,i);n=f.maxWidth,o=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(l,a),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(n,o),b=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=b.newWidth,g=b.newHeight,this.props.grid){var w=Ot(v,this.props.grid[0]),S=Ot(g,this.props.grid[1]),C=this.props.snapGap||0;v=0===C||Math.abs(w-v)<=C?w:v,g=0===C||Math.abs(S-g)<=C?S:g}this.props.snap&&this.props.snap.x&&(v=It(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=It(g,this.props.snap.y,this.props.snapGap));var x={width:v-c.width,height:g-c.height};if(d&&"string"==typeof d)if(Pt(d,"%"))v=v/p.width*100+"%";else if(Pt(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Pt(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(Pt(h,"%"))g=g/p.height*100+"%";else if(Pt(h,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(Pt(h,"vh")){g=g/this.window.innerHeight*100+"vh"}var _={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?_.flexBasis=_.width:"column"===this.flexDir&&(_.flexBasis=_.height),this.setState(_),this.props.onResize&&this.props.onResize(e,u,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,o=t.direction,r=t.original;if(n&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,o,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Rt(Rt({},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,n=t.enable,o=t.handleStyles,i=t.handleClasses,l=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var u=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(Ct,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},s&&s[t]?s[t]:null):null}));return r.createElement("div",{className:a,style:l},u)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==Lt.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=Rt(Rt(Rt({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&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,Rt({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.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}(r.PureComponent);function Ht(e,t,n){return(e=e<=n?e:n)>=t?e:t}const Ft="bottom",Bt="left",Ut="right",jt="top",Zt={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Vt={min:0,max:1/0},$t=({height:e,heightConstraints:t,width:n,widthConstraints:o})=>({height:Ht(e,t.min,t.max),width:Ht(n,o.min,o.max)}),Yt=({enable:e,height:t,heightConstraints:n,resizeEdge:o,width:r=0,widthConstraints:i})=>({...$t({height:t,widthConstraints:i,heightConstraints:n,width:r}),enable:void 0===e||e,horizontal:o===Bt||o===Ut,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:o===jt||o===Ft});class qt extends i().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:Vt,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:Vt};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=Yt(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:n,resizing:o,width:r}=this.state,{onResizeFromPropChange:i}=e;if(o)return;const l=Yt(e);this.setState(l);const{height:a,width:s}=l,u=i||t;!u||a===n&&s===r||u({height:a,width:s,originalHeight:n,originalWidth:r})}_onResize=(e,t,n,{height:o,width:r})=>{const{onResize:i}=this.props,{height:l,horizontal:a,vertical:s,width:u}=this.state,{height:c,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:n,widthConstraints:o},{initialHeight:r,initialWidth:i})=>$t({height:r+t,heightConstraints:n,width:i+e,widthConstraints:o}))({deltaWidth:r,deltaHeight:o},this.props,this.state),h=a&&d!==u,p=s&&c!==l;(h||p)&&(this.setState({height:p?c:l,width:h?d:u,isMouseWheeling:!1}),i&&i({height:p?c:void 0,width:h?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:n,horizontal:o,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?n:void 0,width:o?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:n,vertical:o,width:r,initialWidth:i,initialHeight:l}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&l===t||e&&e({width:n?r:void 0,height:o?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:n,resizeContentClassName:o,resizeEdge:r,resizeHandleClassName:l,style:a,translate:s,heightConstraints:u,wrapChildrenInDivContainer:c,widthConstraints:d}=this.props,{enable:h,height:p,horizontal:f,resizing:m,vertical:g,width:v,isMouseWheeling:y}=this.state,{display:b,...w}=a,{min:S,max:C}=d,{min:x,max:_}=u,T={...this.props.wrapperStyle};f&&(T.width=v,T.minWidth=v),g&&(T.height=p,T.minHeight=p);const R=me()("resizable",t,{resizing:m}),E=me()("contents",o,`resize-edge-${r}`,{horizontal:f,vertical:g}),k=me()(r,l,"resizable-handle",{horizontal:f,vertical:g}),O=i().createElement("span",{title:s("ResizePanel")});return i().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...T,display:b}},i().createElement(Wt,{className:R,"data-testid":"resizable-core",enable:{...Zt,[r]:!y&&h},handleClasses:{[r]:k},handleComponent:{[r]:O},handleStyles:n,maxHeight:g?_:void 0,maxWidth:f?C:void 0,minHeight:g?x:void 0,minWidth:f?S:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?v:"100%"},style:w},c?i().createElement("div",{className:E,style:{userSelect:"none"}},e):e))}}const Kt="#199489",Xt=28,Qt=22,Jt=50*Xt,en=2,tn=28,nn=3,on=3,rn=Xt,ln=22,an=22,sn=3,un=Qt/2,cn=an-2*en,dn=5,hn=18,pn=1,fn=10,mn=12,gn=6,vn=3,yn=12,bn="timelineMessage",wn="ref",Sn="graph",Cn="message",xn="author",_n="datetime",Tn="sha",Rn={[xn]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:50},[_n]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:50},[Cn]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!1,listId:"commit-message-zone",minimumWidth:50},[Tn]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:50},[Sn]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!1,listId:"commit-zone",minimumWidth:28+tn},[wn]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!1,listId:"ref-zone",minimumWidth:100}},En={hour:23,day:6,week:4,month:11,year:6},kn={added:0,deleted:0,modified:0},On="pullRequest",Mn="upstream",zn=[On,Mn],In={HEAD:"head",REMOTE:"remote",TAG:"tag"},Pn=e=>{let t;return(...n)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...n)}))}};function Nn(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function An(e,t,n,o){const{id:r}=e;return!r||null===t||null===t?.[r]||o&&null===t?.[r]?.[o]?null:t&&r in t?o&&!t[r]?.[o]?(n(r,[o]),null):o?t?.[r]?.[o]:t?.[r]:(n(r,zn),null)}function Dn(e,t){if(t.id)return t.id;const n=t.owner||"";return e===In.REMOTE?`${e}/${n}/${t.name}`:`${e}/${t.name}`}function Ln(e){return Dn(e.refType,e)}function Gn(e,t=0){for(let n=e.length-1;n>=t;n-=1){const t=e[n];if(t.currentWidth>t.minimumWidth)return t}}function Wn(e,t=0){if(e.length){for(let n=t;n<e.length;n+=1){const t=e[n],o=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(o&&t.currentWidth<o)return t}return e[e.length-1]}}function Hn(e,t){let n=0;for(let o=0;o<e.length;o+=1){const r=e[o];t&&r.type===t||(n+=r.currentWidth)}return n}const Fn=(e,t)=>e===t[t.length-1].type;function Bn(e,t,n){return Ht(n,e.minimumWidth||0,e.maximumWidth&&!Fn(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function Un(e,t){return t.find((({type:t})=>t===e))}function jn(e,t){return t.findIndex((({type:t})=>t===e))}function Zn(e,t,n){let o=0,r=0;const i=jn(e,t);if(i>-1){const e=function(e,t=0){let n=0;for(let o=t;o<e.length;o+=1)n+=e[o].minimumWidth;return n}(t,i+1),l=function(e,t=e.length-1){let n=0;for(let o=0;o<=t;o+=1)n+=e[o].currentWidth;return n}(t,i-1),a=t[i].maximumWidth||Number.MAX_VALUE,s=Math.min(a,n-e-l);o=t[i].minimumWidth,r=s}return{min:o,max:r}}function Vn(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function $n(e){return!!e&&Object.values(e).some((e=>e>0))}function Yn(e){return 1===Object.keys(e).length}function qn(e,t){return!0===e[t]&&Yn(e)}function Kn(e,t){const{heads:n,tags:o,remotes:r}=e.hasRefs?e:e.childRefs,i=n?n.map((e=>({...e,refType:In.HEAD}))):[],l=o?o.map((e=>({...e,refType:In.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:In.REMOTE}))):[],...l]}function Xn(e){const t=[];let n;for(let o=0;o<e.length;o+=1){let r=!1;n=e[o].fullName||e[o].name;for(let i=0;i<t.length;i+=1)if(t[i].length>0&&t[i][0].name===n){e[o].refType===In.HEAD?t[i].unshift(e[o]):t[i].push(e[o]),r=!0;break}r||t.push([e[o]])}return t}class Qn{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=Un(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?Kn(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?Xn(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e){return function(e,t){return Un(e,t)?.currentWidth||Rn[e].minimumWidth}(e,this.props.graphZones)}isDateTimeZoneActive(){return!!this.getActiveGraphZone(_n)}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 Fn(e,this.props.graphZones)}getSelectedRefGroupByName(){if(Yn(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return Xn(Kn(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 n=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;n=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e||!e.length)return!1;n=e}const{name:o,refType:r}=n[0],i=r===In.TAG,l=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:a,tags:s,remotes:u}=!t.hasRefs||l&&!i?t.childRefs:t;if(!a.length&&!u.length&&!s.length)return!0;return!a.some((e=>e.name===o&&n.some((e=>e.refType===In.HEAD))))&&!u.some((e=>e.name===o&&n.some((t=>t.refType===In.REMOTE&&t.owner===e.owner))))&&!s.some((e=>e.name===o&&n.some((e=>e.refType===In.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return!!t&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return!!t&&qn(this.props.isSelectedBySha,t)}hasTimeline(e){return!!this.props.processedRows[e]?.timeLineEntry&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return Vn(e)}}function Jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var eo=n(8149),to=n.n(eo),no=n(1629),oo=n.n(no),ro=n(3935),io=n.n(ro);n(670);const lo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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 n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];e.apply(this,o),t.apply(this,o)}}),null)};function ao(e,t){return to()(t)?t.indexOf(e)>=0:e===t}var so=a().oneOf(["click","hover","focus"]),uo=He({},et.propTypes,{trigger:a().oneOfType([so,a().arrayOf(so)]),delay:a().number,delayShow:a().number,delayHide:a().number,defaultOverlayShown:a().bool,overlay:a().node.isRequired,onBlur:a().func,onClick:a().func,onFocus:a().func,onMouseOut:a().func,onMouseOver:a().func,target:a().oneOf([null]),onHide:a().oneOf([null]),show:a().oneOf([null])}),co=function(e){function t(t,n){var o;return(o=e.call(this,t,n)||this).handleToggle=o.handleToggle.bind(Jn(Jn(o))),o.handleDelayedShow=o.handleDelayedShow.bind(Jn(Jn(o))),o.handleDelayedHide=o.handleDelayedHide.bind(Jn(Jn(o))),o.handleHide=o.handleHide.bind(Jn(Jn(o))),o.handleMouseOver=function(e){return o.handleMouseOverOut(o.handleDelayedShow,e,"fromElement")},o.handleMouseOut=function(e){return o.handleMouseOverOut(o.handleDelayedHide,e,"toElement")},o._mountNode=null,o.state={show:t.defaultOverlayShown},o}Ge(t,e);var n=t.prototype;return n.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},n.componentDidUpdate=function(){this.renderOverlay()},n.componentWillUnmount=function(){io().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},n.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()}},n.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()}},n.handleHide=function(){this.hide()},n.handleMouseOverOut=function(e,t,n){var o=t.currentTarget,r=t.relatedTarget||t.nativeEvent[n];r&&r===o||oo()(o,r)||e(t)},n.handleToggle=function(){this.state.show?this.hide():this.show()},n.hide=function(){this.setState({show:!1})},n.makeOverlay=function(e,t){return i().createElement(et,He({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},n.show=function(){this.setState({show:!0})},n.renderOverlay=function(){io().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},n.render=function(){var e=this.props,t=e.trigger,n=e.overlay,o=e.children,l=e.onBlur,a=e.onClick,s=e.onFocus,u=e.onMouseOut,c=e.onMouseOver,d=Ne(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var h=i().Children.only(o),p=h.props,f={};return this.state.show&&(f["aria-describedby"]=n.props.id),f.onClick=lo(p.onClick,a),ao("click",t)&&(f.onClick=lo(f.onClick,this.handleToggle)),ao("hover",t)&&(f.onMouseOver=lo(p.onMouseOver,c,this.handleMouseOver),f.onMouseOut=lo(p.onMouseOut,u,this.handleMouseOut)),ao("focus",t)&&(f.onFocus=lo(p.onFocus,s,this.handleDelayedShow),f.onBlur=lo(p.onBlur,l,this.handleDelayedHide)),this._overlay=this.makeOverlay(n,d),(0,r.cloneElement)(h,f)},t}(i().Component);co.propTypes=uo,co.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const ho=co;var po={id:nt()(a().oneOfType([a().string,a().number])),placement:a().oneOf(["top","right","bottom","left"]),positionTop:a().oneOfType([a().number,a().string]),positionLeft:a().oneOfType([a().number,a().string]),arrowOffsetTop:a().oneOfType([a().number,a().string]),arrowOffsetLeft:a().oneOfType([a().number,a().string])},fo=function(e){function t(){return e.apply(this,arguments)||this}return Ge(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,o=t.positionTop,r=t.positionLeft,l=t.arrowOffsetTop,a=t.arrowOffsetLeft,s=t.className,u=t.style,c=t.children,d=ft(Ne(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),h=d[0],p=d[1],f=He({},dt(h),((e={})[n]=!0,e)),m=He({top:o,left:r},u),g={top:l,left:a};return i().createElement("div",He({},p,{role:"tooltip",className:me()(s,f),style:m}),i().createElement("div",{className:ut(h,"arrow"),style:g}),i().createElement("div",{className:ut(h,"inner")},c))},t}(i().Component);fo.propTypes=po,fo.defaultProps={placement:"right"};const mo=ct("tooltip",fo);const go=function({classes:e=[],context:t,divStyle:n,height:o,size:r,url:l,width:a}){const s={...n,background:`url(${l}) 0% 0% / ${r}px no-repeat`,height:o||r,width:a||r},u=["avatar","content-box",...e].join(" ").trim();return i().createElement("div",{className:u,"data-test-class":"avatar","data-vscode-context":Nn(t),style:s})};function vo(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}}const yo=(e,t,n)=>e?((e,t)=>i().createElement("span",{className:"ref-avatar mr1"},i().createElement(go,{context:t,size:14,url:e})))(e,n):t;function bo({icon:e,tooltipClassName:t="",tooltipId:n,tooltipText:o}){return o&&n?i().createElement(ho,{overlay:i().createElement(mo,{className:me()("bs-tooltip",t),id:n},o),placement:"top",trigger:["hover","focus"]},e):i().createElement(i().Fragment,null," ",e," ")}function wo({hostingServiceType:e,icon:t,id:n,title:o}){return i().createElement(bo,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${n}`,tooltipText:o&&""!==o.trim()?`#${n}: ${o}\nDouble-click to open pull request on ${vo(e)}`:""})}function So({icon:e,type:t,upstream:n,tooltipText:o}){return i().createElement(bo,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${n}`,tooltipText:o})}function Co({avatarUrl:e,context:t,icon:n,tooltipText:o}){return i().createElement(bo,{icon:yo(e,n,t),tooltipId:`remote-icon-${o||"tooltipText"}`,tooltipText:o})}const xo=function({name:e}){return i().createElement("span",{className:"ref-name truncate",style:{height:hn}},e)};function _o(e,t,n,o,r,l){const a=An(o,e,t,On);if(!a||0===a.length)return null;const s=a,u=[];for(let e=0;e<s.length;e+=1){const t=s[e],{context:a,hostingServiceType:c,id:d,title:h}=t,p={refId:o.id,type:On,data:t},f=i().createElement("span",{className:me()("mr1","ref-pull-request"),"data-vscode-context":Nn(a),onClick:e=>r(e,p),onDoubleClick:e=>l(e,p)},n("pull-request"));u.push(i().createElement(wo,{hostingServiceType:c,icon:f,id:d,title:h}))}return u}function To(e,t,n,o,r,l){const a=An(o,e,t,Mn);if(!a||0===a.ahead&&0===a.behind)return null;const s=a,u={refId:o.id,type:Mn,data:s},c=s.ahead>0,d=s.behind>0,h=s.context;if(c||d){const e=c?`${s.ahead>99?"99+":s.ahead}`:"",t=d?`${s.behind>99?"99+":s.behind}`:"",o=`${s.owner}/${s.name}`;let a,p;return d&&c?(a=`${t} ${s.behind>1?"commits":"commit"} behind and ${e} ${s.ahead>1?"commits":"commit"} ahead of ${o}\nDouble-click to pull changes`,p="ahead-behind"):d?(a=`${t} ${s.behind>1?"commits":"commit"} behind ${o}\nDouble-click to pull changes`,p="behind"):c&&(a=`${e} ${s.ahead>1?"commits":"commit"} ahead of ${o}\nDouble-click to push changes`,p="ahead"),i().createElement(So,{icon:i().createElement("div",{className:"ref-upstream","data-vscode-context":Nn(h),onClick:e=>r(e,u),onDoubleClick:e=>l(e,u)},d?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-behind"},t),n("upstream-behind")):null,c?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-ahead"},e),n("upstream-ahead")):null),tooltipText:a,type:p,upstream:o})}return null}function Ro(e,t,n,o=0){const{refType:r,name:l}=t;let a,s,u="";switch(r){case In.REMOTE:s=In.REMOTE,a=t.avatarUrl,u=t.owner||"";break;case In.TAG:s=In.TAG,u=l||"";break;case In.HEAD:default:s=In.HEAD,u=n("Ref-Local")}const c=t.context||void 0,d=i().createElement("span",{className:me()("mr1"),"data-vscode-context":Nn(c)},e(s));return i().createElement(Co,{avatarUrl:a||"",context:c,icon:d,key:`ref-icon-${o}-${r}-${l}`,tooltipText:u})}function Eo(e,t,n){let o,r=!1,i=!1,l=!1;for(const a of e){if(a.refType===In.HEAD)return n?a.contextGroup||t:a.context;a.refType===In.REMOTE&&("origin"===a.owner?(r=!0,o=n?a.contextGroup||t:a.context):r||"upstream"!==a.owner?r||i||(l=!0,o=n?a.contextGroup||t:a.context):(i=!0,o=n?a.contextGroup||t:a.context)),r||i||l||(o=n?a.contextGroup||t:a.context)}return o}class ko extends i().PureComponent{onContextMenu=e=>{const{onContextMenu:t,refGroup:n,sha:o}=this.props;t(e,n,o)};onClick=e=>{const{onClick:t,refGroup:n,sha:o}=this.props;t(e,n,o)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:n,refGroup:o,sha:r}=this.props;n(e,o,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:n,sha:o}=this.props;t(e,n,o)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:n,refGroup:o,sha:r}=this.props;n(e,o,r,t)};render(){const{hasActive:e,hasRefs:t,getExternalIcon:n,groupIsHovered:o,isInUnsupportedRebase:r,isRefGroupIncluded:l,onMissingRefMetadata:a,refGroup:s,refGroupContext:u,refMetadata:c,onHovered:d,onHideRefClick:h,sha:p,enabledRefMetadataTypes:f,translate:m}=this.props,g=me()("ref-node-wrapper","flex"),v=me()("ref-node","flex","items-center","p1",{"has-active":e,"dim-ref":!t&&o,"is-active":e}),y=s.length?s[0].fullName||s[0].name:"",b=i().createElement(xo,{name:y}),w=[],S=[];let C=null;for(let e=0;e<s.length;e+=1){if(w.push(Ro(n,s[e],m,e)),f.includes(On)&&s[e].refType===In.REMOTE){const t=_o(c,a,n,s[e],this.onClickMetadata,this.onDoubleClickMetadata);t&&S.push(...t)}f.includes(Mn)&&s[e].refType===In.HEAD&&(C=To(c,a,n,s[e],this.onClickMetadata,this.onDoubleClickMetadata))}const x=[...w,...S],_=s.some((e=>e.refType===In.HEAD&&e.isCurrentHead)),T=!e||o&&!_?null:i().createElement(bo,{icon:i().createElement("span",{className:me()("mr1")},n("check")),tooltipId:"ref-icon-current",tooltipText:m("Ref-Current")}),R=Eo(s,u),E=Eo(s,u,!0),k=!_&&o&&!l?i().createElement(bo,{icon:i().createElement("span",{className:me()("mr1","button"),onClick:e=>h(e,s,p)},n("hide")),tooltipId:`ref-node-toggle-visibility-btn-${y}`,tooltipText:m("Hide")}):null;return i().createElement("span",{className:g,"data-vscode-context":Nn(E),style:{minWidth:0,marginLeft:3,marginRight:3}},i().createElement("span",{className:v,"data-test-class":"ref-node-span","data-vscode-context":Nn(R),onClick:this.onClick,onContextMenu:r?void 0:this.onContextMenu,onDoubleClick:r?void 0:this.onDoubleClick,onMouseEnter:e=>d(e,s,p),style:{height:Qt,minWidth:"100%"}},T,i().createElement("span",{className:"flex items-center"},x),b,C,i().createElement("span",{className:"flex ml-auto"},k)))}}class Oo extends i().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,n)=>{this.props.onToggleRefNodesShown(e,t,n),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===In.REMOTE?-1:0}render(){const{enableResizer:e,getExternalIcon:t,graphWidth:n,graphZones:o,graphZoneType:r,excludeRefsById:l,includeOnlyRefsById:a,isDraggable:s,onHover:u,onResize:c,onResizeEnd:d,onResizeFromPropChange:h,onResizeStart:p,onUnhover:f,showRemoteNamesOnRefs:m,translate:g}=this.props,{showPopoverMenu:v,refPopoverMenuTarget:y}=this.state,b=Un(r,o);if(!b)return null;const w=Fn(r,o);let S=null,C=null;if(r===wn){const e=Object.entries(l),n=Object.values(a),o=n.length>0,r=o&&n.some((e=>e.type===In.TAG)),s=e.filter((e=>e[1].type===In.TAG&&(!o||!r)||!a[e[0]]));s.length>0&&(C=s.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,n)=>{const o=e[0],r=e[1];l[o].id=o;const a={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},s=!m&&"*"!==a.name||a.refType!==In.REMOTE?a.name:`${a.owner}/${a.name}`;return i().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[l[o]],!0)},Ro(t,a,g,n),i().createElement("span",{className:"text-ellipsis"},s))})),S=i().createElement("div",{className:me()("right","text-normal","button",v?"active":null)},i().createElement(bo,{icon:i().createElement("span",{onClick:this.onHiddenRefsClick},t("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:g("GraphHeader-HiddenRefs-btn")})))}const x=`${r}-header`,_=i().createElement("div",{onMouseEnter:u,onMouseLeave:f},S,i().createElement(et,{container:this,onHide:v?this.onHiddenRefsClick:void 0,placement:v?"bottom":void 0,rootClose:v,show:v,target:y},i().createElement(vt,{id:"opts-popover",style:{display:v?"block":"none"}},i().createElement("ul",null,C))),i().createElement("div",{className:"text-ellipsis font-monospace text-disabled"},i().createElement("span",{className:"ml1 fs-1"},g(b.headerLabelUntranslated)))),T=me()("panel-bg0","graph-header",{"is-draggable":s});return w?i().createElement("div",{className:T,id:x,key:x,style:{minWidth:b.currentWidth-4,transform:"translate3d(0, 0, 0)",zIndex:2}},_):i().createElement("div",{className:T,id:x,key:x,style:{display:"flex",minWidth:b.currentWidth,transform:"translate3d(0, 0, 0)",width:b.currentWidth,zIndex:2}},i().createElement(qt,{className:T,enable:e,handleStyles:{right:{right:0}},height:22,onResize:c?e=>c(b,e):void 0,onResizeEnd:d?e=>d(b,e):void 0,onResizeFromPropChange:h?e=>h(b,e):void 0,onResizeStart:p?e=>p(b,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:g,width:b.currentWidth,widthConstraints:Zn(r,o,n)},_))}}const Mo=Oo;var zo=n(977),Io=n.n(zo);const Po="dnd-container";class No extends i().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,n,o)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),n=o&&o.id?this.sanitizeId(o.id):null,r=this.childReactElementsById[t],i=n?this.childReactElementsById[n]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>!!e?.classList.contains(Po);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,n,o)=>!!e?.id&&this.isDroppable(e.id,o?.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=Io()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{i().isValidElement(e)&&this.addChildReactElement(e)})):i().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),n=this.childReactElementsById[t];return!!n&&this.props.isDraggable(n)}return!1}isDroppable(e,t){if(this.props.isDroppable){const n=this.sanitizeId(e),o=t?this.sanitizeId(t):null,r=this.childReactElementsById[n],i=o?this.childReactElementsById[o]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,n=me()(Po,t);return i().createElement("div",{className:n,ref:this.dndDecorator},e)}}const Ao=No;class Do extends i().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:n,excludeRefsById:o,includeOnlyRefsById:r,onPopupGraphHeaderContextMenu:l,onGraphZoneResize:a,onGraphZoneResizeEnd:s,onGraphZoneResizeFromPropChange:u,onToggleRefNodesShown:c,graphZones:d,repoPath:h,showRemoteNamesOnRefs:p,translate:f,width:m,height:g}=this.props,v=i().createElement("div",{className:"panel-bg0",style:{height:22,marginBottom:2,marginLeft:-7,minWidth:11}});return i().createElement("div",{className:"graph-header flex","data-vscode-context":Nn(e),onContextMenu:l?()=>l(m):void 0,style:{height:22,marginBottom:2}},v,i().createElement(Ao,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,onDrop:this.onDrop},d.map((e=>i().createElement(Mo,{enableResizer:t,excludeRefsById:o,getExternalIcon:n,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:a,onResizeEnd:s,onResizeFromPropChange:u,onToggleRefNodesShown:c,onUnhover:this.onZoneUnHover,repoPath:h,showRemoteNamesOnRefs:p,translate:f})))))}}const Lo=Do;function Go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wo(e){return Wo="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},Wo(e)}function Ho(e){var t=function(e,t){if("object"!==Wo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==Wo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wo(t)?t:String(t)}function Fo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ho(o.key),o)}}function Bo(e,t,n){return t&&Fo(e.prototype,t),n&&Fo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jo(e,t){if(t&&("object"===Wo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Uo(e)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zo(e)}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vo(e,t)}function $o(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&&Vo(e,t)}function Yo(e,t,n){return(t=Ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qo=n(6871);function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)}function Xo(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Xo(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const Qo=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Xo(e))&&(o&&(o+=" "),o+=t);return o};function Jo(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,l=e.nextCellSize,a=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof l||n===l)||(o(r),s>=0&&s===a&&u())}function er(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var tr=function(){function e(t){var n=t.cellCount,o=t.cellSizeGetter,r=t.estimatedCellSize;Go(this,e),Yo(this,"_cellSizeAndPositionData",{}),Yo(this,"_lastMeasuredIndex",-1),Yo(this,"_lastBatchedIndex",-1),Yo(this,"_cellCount",void 0),Yo(this,"_cellSizeGetter",void 0),Yo(this,"_estimatedCellSize",void 0),this._cellSizeGetter=o,this._cellCount=n,this._estimatedCellSize=r}return Bo(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,o=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=o}},{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(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(r));null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=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,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var l,a=this.getSizeAndPositionOfCell(i),s=a.offset,u=s-o+a.size;switch(n){case"start":l=s;break;case"end":l=u;break;case"center":l=s-(o-a.size)/2;break;default:l=Math.max(u,Math.min(s,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var l=r;n<o&&l<this._cellCount-1;)l++,n+=this.getSizeAndPositionOfCell(l).size;return{start:r,stop:l}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var o=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(o).offset;if(r===n)return o;r<n?t=o+1:r>n&&(e=o-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),nr=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},or=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?nr():n,r=er(t,["maxScrollSize"]);Go(this,e),Yo(this,"_cellSizeAndPositionManager",void 0),Yo(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new tr(r),this._maxScrollSize=o}return Bo(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();function rr(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,i=Object.keys(r),l=!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 n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o}));t=r,l&&a&&o(r)}}var ir=-1,lr=1;function ar(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,l=e.previousScrollToIndex,a=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,h=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=n.getCellCount(),m=c>=0&&c<f;m&&(d!==a||h||!r||"number"==typeof t&&t!==r||u!==i||c!==l)?p(c):!m&&f>0&&(d<a||f<o)&&s>n.getTotalSize()-d&&p(f-1)}const sr=!("undefined"==typeof window||!window.document||!window.document.createElement);var ur,cr;function dr(e){if((!ur&&0!==ur||e)&&sr){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),ur=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ur}var hr,pr,fr=(cr="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||cr.webkitRequestAnimationFrame||cr.mozRequestAnimationFrame||cr.oRequestAnimationFrame||cr.msRequestAnimationFrame||function(e){return cr.setTimeout(e,1e3/60)},mr=cr.cancelAnimationFrame||cr.webkitCancelAnimationFrame||cr.mozCancelAnimationFrame||cr.oCancelAnimationFrame||cr.msCancelAnimationFrame||function(e){cr.clearTimeout(e)},gr=fr,vr=mr,yr=function(e){return vr(e.id)},br=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var o={id:gr((function r(){Date.now()-n>=t?e.call():o.id=gr(r)}))};return o};function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cr="observed",xr="requested",_r=(pr=hr=function(e){function t(e){var n;Go(this,t),Yo(Uo(n=jo(this,Zo(t).call(this,e))),"_onGridRenderedMemoizer",rr()),Yo(Uo(n),"_onScrollMemoizer",rr(!1)),Yo(Uo(n),"_deferredInvalidateColumnIndex",null),Yo(Uo(n),"_deferredInvalidateRowIndex",null),Yo(Uo(n),"_recomputeScrollLeftFlag",!1),Yo(Uo(n),"_recomputeScrollTopFlag",!1),Yo(Uo(n),"_horizontalScrollBarSize",0),Yo(Uo(n),"_verticalScrollBarSize",0),Yo(Uo(n),"_scrollbarPresenceChanged",!1),Yo(Uo(n),"_scrollingContainer",void 0),Yo(Uo(n),"_childrenToDisplay",void 0),Yo(Uo(n),"_columnStartIndex",void 0),Yo(Uo(n),"_columnStopIndex",void 0),Yo(Uo(n),"_rowStartIndex",void 0),Yo(Uo(n),"_rowStopIndex",void 0),Yo(Uo(n),"_renderedColumnStartIndex",0),Yo(Uo(n),"_renderedColumnStopIndex",0),Yo(Uo(n),"_renderedRowStartIndex",0),Yo(Uo(n),"_renderedRowStopIndex",0),Yo(Uo(n),"_initialScrollTop",void 0),Yo(Uo(n),"_initialScrollLeft",void 0),Yo(Uo(n),"_disablePointerEventsTimeoutId",void 0),Yo(Uo(n),"_styleCache",{}),Yo(Uo(n),"_cellCache",{}),Yo(Uo(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),Yo(Uo(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),Yo(Uo(n),"_onWheel",(function(e){var t=e.deltaX,o=e.deltaY;n.handleWheelEvent({deltaX:t,deltaY:o})})),Yo(Uo(n),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",n.preventDefault),e.addEventListener("wheel",n.preventDefault,{passive:!1})),n._scrollingContainer=e})),Yo(Uo(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var o=new or({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new or({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:o,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:lr,scrollDirectionVertical:lr,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return $o(t,e),Bo(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,o=e.columnIndex,r=void 0===o?this.props.scrollToColumn:o,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,a=Sr({},this.props,{scrollToAlignment:n,scrollToColumn:r,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,o=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,l=i.autoHeight,a=i.autoWidth,s=i.height,u=i.width,c=this.state.instanceProps,d=c.scrollbarSize,h=c.rowSizeAndPositionManager.getTotalSize(),p=c.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-u+d),n),m=Math.min(Math.max(0,h-s+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?lr:ir:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?lr:ir:this.state.scrollDirectionVertical,scrollPositionChangeReason:Cr};l||(g.scrollTop=m),a||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:h})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,n=e.deltaY;this._debounceScrollEnded();var o=this.props,r=o.autoHeight,i=o.autoWidth,l=o.height,a=o.width,s=this.state.instanceProps.scrollbarSize,u=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),c=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,c-a+s),Math.max(0,this._scrollingContainer.scrollLeft+t)),h=Math.min(Math.max(0,u-l+s),Math.max(0,this._scrollingContainer.scrollTop+n));if(this.state.scrollLeft!==d||this.state.scrollTop!==h){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?lr:ir:this.state.scrollDirectionHorizontal,scrollDirectionVertical:h!==this.state.scrollTop?h>this.state.scrollTop?lr:ir:this.state.scrollDirectionVertical,scrollPositionChangeReason:xr};r||(p.scrollTop=h),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:h,totalColumnsWidth:c,totalRowsHeight:u})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,o=this.state.instanceProps;o.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),o.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,l=i.scrollToColumn,a=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(n),s.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=l>=0&&(this.state.scrollDirectionHorizontal===lr?n<=l:n>=l),this._recomputeScrollTopFlag=a>=0&&(this.state.scrollDirectionVertical===lr?r<=a:r>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props,r=o.columnCount,i=o.onScrollToTargetCausedUpdate,l=this.state,a=l.scrollLeft,s=l.scrollTop,u=this.props,c=this.state,d=void 0,h=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(Sr({},u,{scrollToColumn:t}),c,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==n){var f=this._updateScrollTopForScrollToRow(Sr({},u,{scrollToRow:n}),c,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(h=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof h)){var m="number"!=typeof d?d:a,g="number"!=typeof h?h:s;i({clientHeight:u.height,clientWidth:u.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,o=e.height,r=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,a=e.scrollToRow,s=e.width,u=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),u.scrollbarSizeMeasured||this.setState((function(e){var t=Sr({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof l&&l>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:l});c&&(c.needToResetStyleCache=!1,this.setState(c))}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=o>0&&s>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:l||0,totalColumnsWidth:u.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:u.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,o=this.props,r=o.autoHeight,i=o.autoWidth,l=o.columnCount,a=o.height,s=o.rowCount,u=o.scrollToAlignment,c=o.scrollToColumn,d=o.scrollToRow,h=o.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=l>0&&0===e.columnCount||s>0&&0===e.rowCount;m===xr&&(!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 b=(0===e.width||0===e.height)&&a>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):ar({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:u,scrollToIndex:c,size:h,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):ar({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:u,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var w=v.rowSizeAndPositionManager.getTotalSize(),S=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:S,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&yr(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.autoWidth,i=e.className,l=e.containerProps,a=e.containerRole,s=e.containerStyle,u=e.height,c=e.id,d=e.noContentRenderer,h=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,b=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:n?"auto":u,position:"relative",width:o?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var S=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),x=C>u?v.scrollbarSize:0,_=S>m?v.scrollbarSize:0;_===this._horizontalScrollBarSize&&x===this._verticalScrollBarSize||(this._horizontalScrollBarSize=_,this._verticalScrollBarSize=x,this._scrollbarPresenceChanged=!0),w.overflowX=S+x<=m?"hidden":"auto",w.overflowY=C+_<=u?"hidden":"auto";var T=this._childrenToDisplay,R=0===T.length&&u>0&&m>0;return r.createElement("div",Ko({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Qo("ReactVirtualized__Grid",i),id:c,onScroll:this._onScroll,onWheel:this._onWheel,role:h,style:Sr({},w,{},p),tabIndex:f}),T.length>0&&r.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:Sr({width:t?"auto":S,height:C,maxWidth:S,maxHeight:C,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},s)},T),R&&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,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,l=e.height,a=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,h=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=[],l>0&&d>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:g}),S=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var x=s({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),_=s({direction:"vertical",cellCount:c,overscanCellsCount:u,scrollDirection:f,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),T=x.overscanStartIndex,R=x.overscanStopIndex,E=_.overscanStartIndex,k=_.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var O=E;O<=k;O++)if(!i.has(O,0)){T=0,R=r-1;break}if(!i.hasFixedWidth())for(var M=T;M<=R;M++)if(!i.has(0,M)){E=0,k=c-1;break}}this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:R,deferredMeasurementCache:i,horizontalOffsetAdjustment:S,isScrolling:y,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:k,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:b,visibleRowIndices:w}),this._columnStartIndex=T,this._columnStopIndex=R,this._rowStartIndex=E,this._rowStopIndex=k}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&yr(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=br(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,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,o=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:o});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!o&&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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var o=this._rowStartIndex;o<=this._rowStopIndex;o++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(o,"-").concat(r);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,n);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!o&&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,n){var o={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(o.scrollLeft=0,o.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(o,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,l=n.instanceProps;return o.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(o.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(o,{isScrolling:!1}),Jo({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),Jo({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,o.instanceProps=l,Sr({},o,{},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,n=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:xr};return"number"==typeof n&&n>=0&&(r.scrollDirectionHorizontal=n>t.scrollLeft?lr:ir,r.scrollLeft=n),"number"==typeof o&&o>=0&&(r.scrollDirectionVertical=o>t.scrollTop?lr:ir,r.scrollTop=o),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof o&&o>=0&&o!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,l=e.width,a=t.scrollLeft,s=t.instanceProps;if(n>0){var u=n-1,c=i<0?u:Math.min(u,i),d=s.rowSizeAndPositionManager.getTotalSize(),h=s.scrollbarSizeMeasured&&d>o?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:l-h,currentOffset:a,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var o=n.scrollLeft,r=t._getCalculatedScrollLeft(e,n);return"number"==typeof r&&r>=0&&o!==r?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,l=e.width,a=t.scrollTop,s=t.instanceProps;if(o>0){var u=o-1,c=i<0?u:Math.min(u,i),d=s.columnSizeAndPositionManager.getTotalSize(),h=s.scrollbarSizeMeasured&&d>l?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-h,currentOffset:a,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var o=n.scrollTop,r=t._getCalculatedScrollTop(e,n);return"number"==typeof r&&r>=0&&o!==r?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:r}):{}}}]),t}(r.PureComponent),Yo(hr,"propTypes",null),pr);Yo(_r,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,l=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,h=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],b=o.areOffsetsAdjusted()||d.areOffsetsAdjusted(),w=!s&&!b,S=h;S<=p;S++)for(var C=d.getSizeAndPositionOfCell(S),x=r;x<=i;x++){var _=o.getSizeAndPositionOfCell(x),T=x>=g.start&&x<=g.stop&&S>=v.start&&S<=v.stop,R="".concat(S,"-").concat(x),E=void 0;w&&f[R]?E=f[R]:l&&!l.has(S,x)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:C.size,left:_.offset+a,position:"absolute",top:C.offset+m,width:_.size},f[R]=E);var k={columnIndex:x,isScrolling:s,isVisible:T,key:R,parent:c,rowIndex:S,style:E},O=void 0;!u&&!s||a||m?O=n(k):(t[R]||(t[R]=n(k)),O=t[R]),null!=O&&!1!==O&&y.push(O)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:dr,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o===lr?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,r-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,qo.polyfill)(_r);const Tr=_r;var Rr=1;function Er(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),o===Rr?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,r-n),overscanStopIndex:Math.min(t-1,i+1)}}var kr,Or;function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var zr=(Or=kr=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Yo(Uo(n),"_columnStartIndex",0),Yo(Uo(n),"_columnStopIndex",0),Yo(Uo(n),"_rowStartIndex",0),Yo(Uo(n),"_rowStopIndex",0),Yo(Uo(n),"_onKeyDown",(function(e){var t=n.props,o=t.columnCount,r=t.disabled,i=t.mode,l=t.rowCount;if(!r){var a=n._getScrollState(),s=a.scrollToColumn,u=a.scrollToRow,c=n._getScrollState(),d=c.scrollToColumn,h=c.scrollToRow;switch(e.key){case"ArrowDown":h="cells"===i?Math.min(h+1,l-1):Math.min(n._rowStopIndex+1,l-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,o-1):Math.min(n._columnStopIndex+1,o-1);break;case"ArrowUp":h="cells"===i?Math.max(h-1,0):Math.max(n._rowStartIndex-1,0)}d===s&&h===u||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:h}))}})),Yo(Uo(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,o=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=o,n._rowStartIndex=r,n._rowStopIndex=i})),n}return $o(t,e),Bo(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,o=this._getScrollState(),i=o.scrollToColumn,l=o.scrollToRow;return r.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:l}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,o=this.props,r=o.isControlled,i=o.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),r||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{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 n=null!=arguments[t]?arguments[t]:{};t%2?Mr(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(r.PureComponent),Yo(kr,"propTypes",null),Or);Yo(zr,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,qo.polyfill)(zr);function Ir(e,t){var o,r=void 0!==(o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g).document&&o.document.attachEvent;if(!r){var i=function(){var e=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(e){return o.setTimeout(e,20)};return function(t){return e(t)}}(),l=function(){var e=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=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__&&l(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(n){n.call(t,e)})))}))}},u=!1,c="",d="animationstart",h="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=o.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(u=!0),!1===u)for(var m=0;m<h.length;m++)if(void 0!==f.style[h[m]+"AnimationName"]){c="-"+h[m].toLowerCase()+"-",d=p[m],u=!0;break}var g="resizeanim",v="@"+c+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=c+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,n){if(r)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,l=o.getComputedStyle(t);l&&"static"==l.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(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%; }',o=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=n:r.appendChild(t.createTextNode(n)),o.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var u='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var c=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return u}});t.__resizeTriggers__.innerHTML=c.createHTML("")}else t.__resizeTriggers__.innerHTML=u;t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",s,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&a(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},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",s,!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 Pr,Nr;function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lr=(Nr=Pr=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),Yo(Uo(n),"_parentNode",void 0),Yo(Uo(n),"_autoSizer",void 0),Yo(Uo(n),"_window",void 0),Yo(Uo(n),"_detectElementResize",void 0),Yo(Uo(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,o=e.disableWidth,r=e.onResize;if(n._parentNode){var i=n._parentNode.offsetHeight||0,l=n._parentNode.offsetWidth||0,a=(n._window||window).getComputedStyle(n._parentNode)||{},s=parseInt(a.paddingLeft,10)||0,u=parseInt(a.paddingRight,10)||0,c=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,h=i-c-d,p=l-s-u;(!t&&n.state.height!==h||!o&&n.state.width!==p)&&(n.setState({height:i-c-d,width:l-s-u}),r({height:i,width:l}))}})),Yo(Uo(n),"_setRef",(function(e){n._autoSizer=e})),n}return $o(t,e),Bo(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=Ir(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,n=e.className,o=e.disableHeight,i=e.disableWidth,l=e.style,a=this.state,s=a.height,u=a.width,c={overflow:"visible"},d={};return o||(c.height=0,d.height=s),i||(c.width=0,d.width=u),r.createElement("div",{className:n,ref:this._setRef,style:Dr({},c,{},l)},t(d))}}]),t}(r.Component),Yo(Pr,"propTypes",null),Nr);Yo(Lr,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Gr,Wr,Hr=(Wr=Gr=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"_child",void 0),Yo(Uo(n),"_measure",(function(){var e=n.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,i=e.parent,l=e.rowIndex,a=void 0===l?n.props.index||0:l,s=n._getCellMeasurements(),u=s.height,c=s.width;u===t.getHeight(a,r)&&c===t.getWidth(a,r)||(t.set(a,r,c,u),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:a}))})),Yo(Uo(n),"_registerChild",(function(e){e&&Element,n._child=e,e&&n._maybeMeasureCell()})),n}return $o(t,e),Bo(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,ro.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,o=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 n&&(t.style.width=n),o&&(t.style.height=o),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,o=void 0===n?0:n,r=e.parent,i=e.rowIndex,l=void 0===i?this.props.index||0:i;if(!t.has(l,o)){var a=this._getCellMeasurements(),s=a.height,u=a.width;t.set(l,o,u,s),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:o,rowIndex:l})}}}]),t}(r.PureComponent),Yo(Gr,"propTypes",null),Wr);Yo(Hr,"__internalCellMeasurerFlag",!1);function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ur={OBSERVED:"observed",REQUESTED:"requested"},jr=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Yo(Uo(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),Yo(Uo(n),"_onSectionRenderedMemoizer",rr()),Yo(Uo(n),"_onScrollMemoizer",rr(!1)),Yo(Uo(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,o=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:o,indices:{indices:t.getLastRenderedIndices()}})})),Yo(Uo(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),Yo(Uo(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,o=e.height,r=e.scrollToAlignment,i=e.scrollToCell,l=e.width,a=n.state,s=a.scrollLeft,u=a.scrollTop;if(i>=0){var c=t.getScrollPositionForCell({align:r,cellIndex:i,height:o,scrollLeft:s,scrollTop:u,width:l});c.scrollLeft===s&&c.scrollTop===u||n._setScrollPosition(c)}})),Yo(Uo(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,o=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,l=t.width,a=n._scrollbarSize,s=o.getTotalSize(),u=s.height,c=s.width,d=Math.max(0,Math.min(c-l+a,e.target.scrollLeft)),h=Math.max(0,Math.min(u-r+a,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==h){var p=e.cancelable?Ur.OBSERVED:Ur.REQUESTED;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:h})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:h,totalWidth:c,totalHeight:u})}})),n._scrollbarSize=dr(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return $o(t,e),Bo(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,o=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=dr(),this._scrollbarSizeMeasured=!0,this.setState({})),o>=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:l,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,l=n.width,a=this.state,s=a.scrollLeft,u=a.scrollPositionChangeReason,c=a.scrollTop;u===Ur.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&l===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,n=e.cellCount,o=e.cellLayoutManager,i=e.className,l=e.height,a=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,h=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==o||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=o,this._calculateSizeAndPositionDataOnNextUpdate=!1,o.calculateSizeAndPositionData());var v=o.getTotalSize(),y=v.height,b=v.width,w=Math.max(0,m-a),S=Math.max(0,g-d),C=Math.min(b,m+h+a),x=Math.min(y,g+l+d),_=l>0&&h>0?o.cellRenderers({height:x-S,isScrolling:f,width:C-w,x:w,y:S}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},R=y>l?this._scrollbarSize:0,E=b>h?this._scrollbarSize:0;return T.overflowX=b+R<=h?"hidden":"auto",T.overflowY=y+E<=l?"hidden":"auto",r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Qo("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:Br({},T,{},c),tabIndex:0},n>0&&r.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:b,overflow:"hidden",pointerEvents:f?"none":"",width:b}},_),0===n&&u())}},{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,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:Ur.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}}],[{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:Ur.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Ur.REQUESTED}}}]),t}(r.PureComponent);Yo(jr,"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}),jr.propTypes={},(0,qo.polyfill)(jr);const Zr=jr;var Vr=function(){function e(t){var n=t.height,o=t.width,r=t.x,i=t.y;Go(this,e),this.height=n,this.width=o,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Bo(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}(),$r=100,Yr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$r;Go(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Bo(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,r=e.y,i={};return this.getSections({height:t,width:n,x:o,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,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),l=Math.floor((o+n-1)/this._sectionSize),a=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),u=[],c=i;c<=l;c++)for(var d=a;d<=s;d++){var h="".concat(c,".").concat(d);this._sections[h]||(this._sections[h]=new Vr({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),u.push(this._sections[h])}return u}},{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,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function qr(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,l=e.currentOffset,a=o,s=a-i+r;switch(n){case"start":return a;case"end":return s;case"center":return a-(i-r)/2;default:return Math.max(s,Math.min(a,l))}}var Kr=function(e){function t(e,n){var o;return Go(this,t),(o=jo(this,Zo(t).call(this,e,n)))._cellMetadata=[],o._lastRenderedCellIndices=[],o._cellCache=[],o._isScrollingChange=o._isScrollingChange.bind(Uo(o)),o._setCollectionViewRef=o._setCollectionViewRef.bind(Uo(o)),o}return $o(t,e),Bo(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=Ko({},this.props);return r.createElement(Zr,Ko({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,n=e.cellSizeAndPositionGetter,o=e.sectionSize,r=[],i=new Yr(o),l=0,a=0,s=0;s<t;s++){var u=n({index:s});if(null==u.height||isNaN(u.height)||null==u.width||isNaN(u.width)||null==u.x||isNaN(u.x)||null==u.y||isNaN(u.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(u.x,", y:").concat(u.y,", width:").concat(u.width,", height:").concat(u.height));l=Math.max(l,u.y+u.height),a=Math.max(a,u.x+u.width),r[s]=u,i.registerCell({cellMetadatum:u,index:s})}return{cellMetadata:r,height:l,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,n=e.cellIndex,o=e.height,r=e.scrollLeft,i=e.scrollTop,l=e.width,a=this.props.cellCount;if(n>=0&&n<a){var s=this._cellMetadata[n];r=qr({align:t,cellOffset:s.x,cellSize:s.width,containerSize:l,currentOffset:r,targetIndex:n}),i=qr({align:t,cellOffset:s.y,cellSize:s.height,containerSize:o,currentOffset:i,targetIndex:n})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,o=e.isScrolling,r=e.width,i=e.x,l=e.y,a=this.props,s=a.cellGroupRenderer,u=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:r,x:i,y:l}),s({cellCache:this._cellCache,cellRenderer:u,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:o})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(r.PureComponent);Yo(Kr,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,o=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=o({index:e}),l={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]=n(l)),t[e]):n(l)})).filter((function(e){return!!e}))}}),Kr.propTypes={};(function(e){function t(e,n){var o;return Go(this,t),(o=jo(this,Zo(t).call(this,e,n)))._registerChild=o._registerChild.bind(Uo(o)),o}return $o(t,e),Bo(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,o=t.columnMinWidth,r=t.columnCount,i=t.width;n===e.columnMaxWidth&&o===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,o=e.columnMinWidth,r=e.columnCount,i=e.width,l=o||1,a=n?Math.min(n,i):i,s=i/r;return s=Math.max(l,s),s=Math.min(a,s),s=Math.floor(s),t({adjustedWidth:Math.min(i,s*r),columnWidth:s,getColumnWidth:function(){return s},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}(r.PureComponent)).propTypes={};function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Qr(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}function Jr(e){return function(e){if(Array.isArray(e))return Xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qr(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 ei=function(e){function t(e,n){var o;return Go(this,t),(o=jo(this,Zo(t).call(this,e,n)))._loadMoreRowsMemoizer=rr(),o._onRowsRendered=o._onRowsRendered.bind(Uo(o)),o._registerChild=o._registerChild.bind(Uo(o)),o}return $o(t,e),Bo(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=rr(),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,n=this.props.loadMoreRows;e.forEach((function(e){var o=n(e);o&&o.then((function(){var n,o,r,i,l;n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},o=n.lastRenderedStartIndex,r=n.lastRenderedStopIndex,i=n.startIndex,l=n.stopIndex,i>r||l<o||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,o=this,r=this.props,i=r.isRowLoaded,l=r.minimumBatchSize,a=r.rowCount,s=r.threshold,u=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,o=e.rowCount,r=e.startIndex,i=e.stopIndex,l=[],a=null,s=null,u=r;u<=i;u++){t({index:u})?null!==s&&(l.push({startIndex:a,stopIndex:s}),a=s=null):(s=u,null===a&&(a=u))}if(null!==s){for(var c=Math.min(Math.max(s,a+n-1),o-1),d=s+1;d<=c&&!t({index:d});d++)s=d;l.push({startIndex:a,stopIndex:s})}if(l.length)for(var h=l[0];h.stopIndex-h.startIndex+1<n&&h.startIndex>0;){var p=h.startIndex-1;if(t({index:p}))break;h.startIndex=p}return l}({isRowLoaded:i,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(a-1,t+s)}),c=(n=[]).concat.apply(n,Jr(u.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){o._loadUnloadedRanges(u)},indices:{squashedUnloadedRanges:c}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(r.PureComponent);Yo(ei,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),ei.propTypes={};var ti,ni,oi=(ni=ti=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),Yo(Uo(n),"_cellRenderer",(function(e){var t=e.parent,o=e.rowIndex,r=e.style,i=e.isScrolling,l=e.isVisible,a=e.key,s=n.props.rowRenderer,u=Object.getOwnPropertyDescriptor(r,"width");return u&&u.writable&&(r.width="100%"),s({index:o,style:r,isScrolling:i,isVisible:l,key:a,parent:t})})),Yo(Uo(n),"_setRef",(function(e){n.Grid=e})),Yo(Uo(n),"_onScroll",(function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})})),Yo(Uo(n),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,n.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:o,scrollTop:r})})),Yo(Uo(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:i})})),n}return $o(t,e),Bo(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,i=e.width,l=Qo("ReactVirtualized__List",t);return r.createElement(Tr,Ko({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}}]),t}(r.PureComponent),Yo(ti,"propTypes",null),ni);function ri(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw r}}return a}}(e,t)||Qr(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.")}()}Yo(oi,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Er,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ii={ge:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=n+1;t<=n;){var l=t+n>>>1;r(e[l],o)>=0?(i=l,n=l-1):t=l+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=n+1;t<=n;){var i=t+n>>>1;e[i]>=o?(r=i,n=i-1):t=i+1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},gt:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=n+1;t<=n;){var l=t+n>>>1;r(e[l],o)>0?(i=l,n=l-1):t=l+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=n+1;t<=n;){var i=t+n>>>1;e[i]>o?(r=i,n=i-1):t=i+1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},lt:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=t-1;t<=n;){var l=t+n>>>1;r(e[l],o)<0?(i=l,t=l+1):n=l-1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=t-1;t<=n;){var i=t+n>>>1;e[i]<o?(r=i,t=i+1):n=i-1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},le:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=t-1;t<=n;){var l=t+n>>>1;r(e[l],o)<=0?(i=l,t=l+1):n=l-1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=t-1;t<=n;){var i=t+n>>>1;e[i]<=o?(r=i,t=i+1):n=i-1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},eq:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(;t<=n;){var i=t+n>>>1,l=r(e[i],o);if(0===l)return i;l<=0?t=i+1:n=i-1}return-1}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(;t<=n;){var r=t+n>>>1,i=e[r];if(i===o)return r;i<=o?t=r+1:n=r-1}return-1}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)}};var li=0,ai=1;function si(e,t,n,o,r){this.mid=e,this.left=t,this.right=n,this.leftPoints=o,this.rightPoints=r,this.count=(t?t.count:0)+(n?n.count:0)+o.length}var ui=si.prototype;function ci(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 di(e,t){var n=wi(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function hi(e,t){var n=e.intervals([]);n.push(t),di(e,n)}function pi(e,t){var n=e.intervals([]),o=n.indexOf(t);return o<0?li:(n.splice(o,1),di(e,n),ai)}function fi(e,t,n){for(var o=0;o<e.length&&e[o][0]<=t;++o){var r=n(e[o]);if(r)return r}}function mi(e,t,n){for(var o=e.length-1;o>=0&&e[o][1]>=t;--o){var r=n(e[o]);if(r)return r}}function gi(e,t){for(var n=0;n<e.length;++n){var o=t(e[n]);if(o)return o}}function vi(e,t){return e-t}function yi(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function bi(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function wi(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(vi);var o=t[t.length>>1],r=[],i=[],l=[];for(n=0;n<e.length;++n){var a=e[n];a[1]<o?r.push(a):o<a[0]?i.push(a):l.push(a)}var s=l,u=l.slice();return s.sort(yi),u.sort(bi),new si(o,wi(r),wi(i),s,u)}function Si(e){this.root=e}ui.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},ui.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)?hi(this,e):this.left.insert(e):this.left=wi([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?hi(this,e):this.right.insert(e):this.right=wi([e]);else{var n=ii.ge(this.leftPoints,e,yi),o=ii.ge(this.rightPoints,e,bi);this.leftPoints.splice(n,0,e),this.rightPoints.splice(o,0,e)}},ui.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)?pi(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,ai):(i===ai&&(this.count-=1),i):li;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?pi(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,ai):(i===ai&&(this.count-=1),i):li;if(1===this.count)return this.leftPoints[0]===e?2:li;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,o=this.left;o.right;)n=o,o=o.right;if(n===this)o.right=this.right;else{var r=this.left,i=this.right;n.count-=o.count,n.right=o.left,o.left=r,o.right=i}ci(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ci(this,this.left):ci(this,this.right);return ai}for(r=ii.ge(this.leftPoints,e,yi);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=ii.ge(this.rightPoints,e,bi);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),ai}return li},ui.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return fi(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return mi(this.rightPoints,e,t)}return gi(this.leftPoints,t)},ui.queryInterval=function(e,t,n){var o;if(e<this.mid&&this.left&&(o=this.left.queryInterval(e,t,n)))return o;if(t>this.mid&&this.right&&(o=this.right.queryInterval(e,t,n)))return o;return t<this.mid?fi(this.leftPoints,t,n):e>this.mid?mi(this.rightPoints,e,n):gi(this.leftPoints,n)};var Ci=Si.prototype;Ci.insert=function(e){this.root?this.root.insert(e):this.root=new si(e[0],null,null,[e],[e])},Ci.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==li}return!1},Ci.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ci.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Ci,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ci,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var xi,_i,Ti=function(){function e(){var t;Go(this,e),Yo(this,"_columnSizeMap",{}),Yo(this,"_intervalTree",t&&0!==t.length?new Si(wi(t)):new Si(null)),Yo(this,"_leftMap",{})}return Bo(e,[{key:"estimateTotalHeight",value:function(e,t,n){var o=e-this.count;return this.tallestColumnSize+Math.ceil(o/t)*n}},{key:"range",value:function(e,t,n){var o=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=ri(e,3),r=t[0],i=(t[1],t[2]);return n(i,o._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,n,o){this._intervalTree.insert([n,n+o,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?n+o:Math.max(i,n+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var o=e[n];t=0===t?o:Math.min(t,o)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var o=e[n];t=Math.max(t,o)}return t}}]),e}();function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ki=(_i=xi=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),Yo(Uo(n),"_debounceResetIsScrollingId",void 0),Yo(Uo(n),"_invalidateOnUpdateStartIndex",null),Yo(Uo(n),"_invalidateOnUpdateStopIndex",null),Yo(Uo(n),"_positionCache",new Ti),Yo(Uo(n),"_startIndex",null),Yo(Uo(n),"_startIndexMemoized",null),Yo(Uo(n),"_stopIndex",null),Yo(Uo(n),"_stopIndexMemoized",null),Yo(Uo(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),Yo(Uo(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),Yo(Uo(n),"_onScroll",(function(e){var t=n.props.height,o=e.currentTarget.scrollTop,r=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),o);o===r&&(n._debounceResetIsScrolling(),n.state.scrollTop!==r&&n.setState({isScrolling:!0,scrollTop:r}))})),n}return $o(t,e),Bo(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ti,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 Ti,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&&yr(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.autoHeight,i=n.cellCount,l=n.cellMeasurerCache,a=n.cellRenderer,s=n.className,u=n.height,c=n.id,d=n.keyMapper,h=n.overscanByPixels,p=n.role,f=n.style,m=n.tabIndex,g=n.width,v=n.rowDirection,y=this.state,b=y.isScrolling,w=y.scrollTop,S=[],C=this._getEstimatedTotalHeight(),x=this._positionCache.shortestColumnSize,_=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-h),u+2*h,(function(n,o,r){var i;void 0===e?(T=n,e=n):(T=Math.min(T,n),e=Math.max(e,n)),S.push(a({index:n,isScrolling:b,key:d(n),parent:t,style:(i={height:l.getHeight(n)},Yo(i,"ltr"===v?"left":"right",o),Yo(i,"position","absolute"),Yo(i,"top",r),Yo(i,"width",l.getWidth(n)),i)}))})),x<w+u+h&&_<i)for(var R=Math.min(i-_,Math.ceil((w+u+h-x)/l.defaultHeight*g/l.defaultWidth)),E=_;E<_+R;E++)e=E,S.push(a({index:E,isScrolling:b,key:d(E),parent:this,style:{width:l.getWidth(E)}}));return this._startIndex=T,this._stopIndex=e,r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Qo("ReactVirtualized__Masonry",s),id:c,onScroll:this._onScroll,role:p,style:Ei({boxSizing:"border-box",direction:"ltr",height:o?"auto":u,overflowX:"hidden",overflowY:C<u?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},r.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:C,maxWidth:"100%",maxHeight:C,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"}},S))}},{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&&yr(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=br(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,o=e.width,r=Math.max(1,Math.floor(o/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,o=this.state.scrollTop;this._onScrollMemoized!==o&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:o}),this._onScrollMemoized=o)}},{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 n=this.props,o=n.cellMeasurerCache,r=n.cellPositioner,i=e;i<=t;i++){var l=r(i),a=l.left,s=l.top;this._positionCache.setPosition(i,a,s,o.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(r.PureComponent),Yo(xi,"propTypes",null),_i);function Oi(){}Yo(ki,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Oi,onScroll:Oi,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,qo.polyfill)(ki);var Mi=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Go(this,e),Yo(this,"_cellMeasurerCache",void 0),Yo(this,"_columnIndexOffset",void 0),Yo(this,"_rowIndexOffset",void 0),Yo(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),Yo(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var o=n.cellMeasurerCache,r=n.columnIndexOffset,i=void 0===r?0:r,l=n.rowIndexOffset,a=void 0===l?0:l;this._cellMeasurerCache=o,this._columnIndexOffset=i,this._rowIndexOffset=a}return Bo(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,n,o){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,o)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pi=20,Ni=function(e){function t(e,n){var o;Go(this,t),Yo(Uo(o=jo(this,Zo(t).call(this,e,n))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Yo(Uo(o),"_deferredInvalidateColumnIndex",null),Yo(Uo(o),"_deferredInvalidateRowIndex",null),Yo(Uo(o),"_bottomLeftGridRef",(function(e){o._bottomLeftGrid=e})),Yo(Uo(o),"_bottomRightGridRef",(function(e){o._bottomRightGrid=e})),Yo(Uo(o),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=er(e,["rowIndex"]),i=o.props,l=i.cellRenderer,a=i.fixedRowCount;return t===i.rowCount-a?r.createElement("div",{key:n.key,style:Ii({},n.style,{height:Pi})}):l(Ii({},n,{parent:Uo(o),rowIndex:t+a}))})),Yo(Uo(o),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,r=er(e,["columnIndex","rowIndex"]),i=o.props,l=i.cellRenderer,a=i.fixedColumnCount,s=i.fixedRowCount;return l(Ii({},r,{columnIndex:t+a,parent:Uo(o),rowIndex:n+s}))})),Yo(Uo(o),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=er(e,["columnIndex"]),i=o.props,l=i.cellRenderer,a=i.columnCount,s=i.fixedColumnCount;return t===a-s?r.createElement("div",{key:n.key,style:Ii({},n.style,{width:Pi})}):l(Ii({},n,{columnIndex:t+s,parent:Uo(o)}))})),Yo(Uo(o),"_columnWidthRightGrid",(function(e){var t=e.index,n=o.props,r=n.columnCount,i=n.fixedColumnCount,l=n.columnWidth,a=o.state,s=a.scrollbarSize;return a.showHorizontalScrollbar&&t===r-i?s:"function"==typeof l?l({index:t+i}):l})),Yo(Uo(o),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;o.setState({scrollLeft:t,scrollTop:n});var r=o.props.onScroll;r&&r(e)})),Yo(Uo(o),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,r=e.vertical,i=o.state,l=i.showHorizontalScrollbar,a=i.showVerticalScrollbar;if(t!==l||r!==a){o.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:r});var s=o.props.onScrollbarPresenceChange;"function"==typeof s&&s({horizontal:t,size:n,vertical:r})}})),Yo(Uo(o),"_onScrollLeft",(function(e){var t=e.scrollLeft;o._onScroll({scrollLeft:t,scrollTop:o.state.scrollTop})})),Yo(Uo(o),"_onScrollTop",(function(e){var t=e.scrollTop;o._onScroll({scrollTop:t,scrollLeft:o.state.scrollLeft})})),Yo(Uo(o),"_rowHeightBottomGrid",(function(e){var t=e.index,n=o.props,r=n.fixedRowCount,i=n.rowCount,l=n.rowHeight,a=o.state,s=a.scrollbarSize;return a.showVerticalScrollbar&&t===i-r?s:"function"==typeof l?l({index:t+r}):l})),Yo(Uo(o),"_topLeftGridRef",(function(e){o._topLeftGrid=e})),Yo(Uo(o),"_topRightGridRef",(function(e){o._topRightGrid=e}));var i=e.deferredMeasurementCache,l=e.fixedColumnCount,a=e.fixedRowCount;return o._maybeCalculateCachedStyles(!0),i&&(o._deferredMeasurementCacheBottomLeftGrid=a>0?new Mi({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:a}):i,o._deferredMeasurementCacheBottomRightGrid=l>0||a>0?new Mi({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:a}):i,o._deferredMeasurementCacheTopRightGrid=l>0?new Mi({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:0}):i),o}return $o(t,e),Bo(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,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,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,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,l=i.fixedColumnCount,a=i.fixedRowCount,s=Math.max(0,n-l),u=Math.max(0,r-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var o={};t>0&&(o.scrollLeft=t),n>0&&(o.scrollTop=n),this.setState(o)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=er(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,u=a.scrollTop;return r.createElement("div",{style:this._containerOuterStyle},r.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(Ii({},l,{onScroll:t,scrollLeft:s}))),r.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Ii({},l,{onScroll:t,scrollTop:u})),this._renderBottomRightGrid(Ii({},l,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:o,scrollToRow:i,scrollTop:u}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r<t;r++)o+=n({index:r});this._leftGridWidth=o}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var o=0,r=0;r<t;r++)o+=n({index:r});this._topGridHeight=o}else this._topGridHeight=n*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,n=t.columnWidth,o=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,l=t.fixedColumnCount,a=t.fixedRowCount,s=t.rowHeight,u=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,h=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||n!==this._lastRenderedColumnWidth||l!==this._lastRenderedFixedColumnCount,v=e||a!==this._lastRenderedFixedRowCount||s!==this._lastRenderedRowHeight;(e||m||u!==this._lastRenderedStyle)&&(this._containerOuterStyle=Ii({height:i,overflow:"visible",width:f},u)),(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||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Ii({left:0,overflowX:"hidden",overflowY:o?"auto":"hidden",position:"absolute"},c)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Ii({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||h!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Ii({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Ii({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=l,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=i,this._lastRenderedRowHeight=s,this._lastRenderedStyle=u,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=h,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,n=e.fixedColumnCount,o=e.fixedRowCount,i=e.rowCount,l=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var s=a?1:0,u=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,h=l?c+d:c,p=r.createElement(Tr,Ko({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:u,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-o)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return l?r.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Ii({},this._bottomLeftGridStyle,{height:u,width:c,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,o=e.fixedRowCount,i=e.rowCount,l=e.scrollToColumn,a=e.scrollToRow;return r.createElement(Tr,Ko({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-o),rowHeight:this._rowHeightBottomGrid,scrollToColumn:l-n,scrollToRow:a-o,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?r.createElement(Tr,Ko({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,o=e.fixedColumnCount,i=e.fixedRowCount,l=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,u=s.showHorizontalScrollbar,c=s.scrollbarSize;if(!i)return null;var d=u?1:0,h=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=u?c:0,m=h,g=this._topRightGridStyle;a&&(m=h+f,g=Ii({},this._topRightGridStyle,{left:0}));var v=r.createElement(Tr,Ko({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-o)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:l,style:g,tabIndex:null,width:p}));return a?r.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Ii({},this._topRightGridStyle,{height:h,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}(r.PureComponent);Yo(Ni,"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}),Ni.propTypes={},(0,qo.polyfill)(Ni);(function(e){function t(e,n){var o;return Go(this,t),(o=jo(this,Zo(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Uo(o)),o}return $o(t,e),Bo(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,o=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,a=t.scrollWidth;return e({clientHeight:n,clientWidth:o,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:l,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,o=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:o,scrollLeft:r,scrollTop:i,scrollWidth:l})}}]),t}(r.PureComponent)).propTypes={};function Ai(e){var t=e.className,n=e.columns,o=e.style;return r.createElement("div",{className:t,role:"row",style:o},n)}Ai.propTypes=null;const Di={ASC:"ASC",DESC:"DESC"};function Li(e){var t=e.sortDirection,n=Qo("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Di.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Di.DESC});return r.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===Di.ASC?r.createElement("path",{d:"M7 14l5-5 5 5z"}):r.createElement("path",{d:"M7 10l5 5 5-5z"}),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Gi(e){var t=e.dataKey,n=e.label,o=e.sortBy,i=e.sortDirection,l=o===t,a=[r.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return l&&a.push(r.createElement(Li,{key:"SortIndicator",sortDirection:i})),a}function Wi(e){var t=e.className,n=e.columns,o=e.index,i=e.key,l=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,h=e.style,p={"aria-rowindex":o+1};return(l||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,l&&(p.onClick=function(e){return l({event:e,index:o,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(p.onMouseOut=function(e){return s({event:e,index:o,rowData:d})}),u&&(p.onMouseOver=function(e){return u({event:e,index:o,rowData:d})}),c&&(p.onContextMenu=function(e){return c({event:e,index:o,rowData:d})})),r.createElement("div",Ko({},p,{className:t,key:i,role:"row",style:h}),n)}Li.propTypes={},Gi.propTypes=null,Wi.propTypes=null;var Hi=function(e){function t(){return Go(this,t),jo(this,Zo(t).apply(this,arguments))}return $o(t,e),t}(r.Component);function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Yo(Hi,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Di.ASC,flexGrow:0,flexShrink:1,headerRenderer:Gi,style:{}}),Hi.propTypes={};var Ui=function(e){function t(e){var n;return Go(this,t),(n=jo(this,Zo(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(Uo(n)),n._createRow=n._createRow.bind(Uo(n)),n._onScroll=n._onScroll.bind(Uo(n)),n._onSectionRendered=n._onSectionRendered.bind(Uo(n)),n._setRef=n._setRef.bind(Uo(n)),n}return $o(t,e),Bo(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{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,ro.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,n=t.children,o=t.className,i=t.disableHeader,l=t.gridClassName,a=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,h=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof p?p({index:-1}):p,S="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],r.Children.toArray(n).forEach((function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=Bi({overflow:"hidden"},o)})),r.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":r.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:Qo("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:Qo("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Bi({height:s,overflow:"hidden",paddingRight:y,width:v},S)}),r.createElement(Tr,Ko({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Qo("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:b,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Bi({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,i=e.parent,l=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,u=t.props,c=u.cellDataGetter,d=u.cellRenderer,h=u.className,p=u.columnData,f=u.dataKey,m=u.id,g=d({cellData:c({columnData:p,dataKey:f,rowData:l}),columnData:p,columnIndex:n,dataKey:f,isScrolling:o,parent:i,rowData:l,rowIndex:a}),v=this._cachedColumnStyles[n],y="string"==typeof g?g:null;return r.createElement("div",{"aria-colindex":n+1,"aria-describedby":m,className:Qo("ReactVirtualized__Table__rowColumn",h),key:"Row"+a+"-Col"+n,onClick:function(e){s&&s({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,n,o,i,l,a=e.column,s=e.index,u=this.props,c=u.headerClassName,d=u.headerStyle,h=u.onHeaderClick,p=u.sort,f=u.sortBy,m=u.sortDirection,g=a.props,v=g.columnData,y=g.dataKey,b=g.defaultSortDirection,w=g.disableSort,S=g.headerRenderer,C=g.id,x=g.label,_=!w&&p,T=Qo("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:_}),R=this._getFlexStyleForColumn(a,Bi({},d,{},a.props.headerStyle)),E=S({columnData:v,dataKey:y,disableSort:w,label:x,sortBy:f,sortDirection:m});if(_||h){var k=f!==y?b:m===Di.DESC?Di.ASC:Di.DESC,O=function(e){_&&p({defaultSortDirection:b,event:e,sortBy:y,sortDirection:k}),h&&h({columnData:v,dataKey:y,event:e})};l=a.props["aria-label"]||x||y,i="none",o=0,t=O,n=function(e){"Enter"!==e.key&&" "!==e.key||O(e)}}return f===y&&(i=m===Di.ASC?"ascending":"descending"),r.createElement("div",{"aria-label":l,"aria-sort":i,className:T,id:C,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:R,tabIndex:o},E)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,l=e.parent,a=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,h=s.onRowRightClick,p=s.onRowMouseOver,f=s.onRowMouseOut,m=s.rowClassName,g=s.rowGetter,v=s.rowRenderer,y=s.rowStyle,b=this.state.scrollbarWidth,w="function"==typeof m?m({index:n}):m,S="function"==typeof y?y({index:n}):y,C=g({index:n}),x=r.Children.toArray(u).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:l,rowData:C,rowIndex:n,scrollbarWidth:b})})),_=Qo("ReactVirtualized__Table__row",w),T=Bi({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},S);return v({className:_,columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowRightClick:h,onRowMouseOver:p,onRowMouseOut:f,rowData:C,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),o=Bi({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:r.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{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,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(r.PureComponent);Yo(Ui,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Er,overscanRowCount:10,rowRenderer:Wi,headerRowRenderer:Ai,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Ui.propTypes={};var ji=[],Zi=null,Vi=null;function $i(){Vi&&(Vi=null,document.body&&null!=Zi&&(document.body.style.pointerEvents=Zi),Zi=null)}function Yi(){$i(),ji.forEach((function(e){return e.__resetIsScrolling()}))}function qi(e){e.currentTarget===window&&null==Zi&&document.body&&(Zi=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Vi&&yr(Vi);var e=0;ji.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Vi=br(Yi,e)}(),ji.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Ki(e,t){ji.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",qi),ji.push(e)}function Xi(e,t){(ji=ji.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",qi),Vi&&(yr(Vi),$i()))}var Qi,Ji,el=function(e){return e===window},tl=function(e){return e.getBoundingClientRect()};function nl(e,t){if(e){if(el(e)){var n=window,o=n.innerHeight,r=n.innerWidth;return{height:"number"==typeof o?o:0,width:"number"==typeof r?r:0}}return tl(e)}return{height:t.serverHeight,width:t.serverWidth}}function ol(e){return el(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 rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var il=function(){return"undefined"!=typeof window?window:void 0},ll=(Ji=Qi=function(e){function t(){var e,n;Go(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return Yo(Uo(n=jo(this,(e=Zo(t)).call.apply(e,[this].concat(r)))),"_window",il()),Yo(Uo(n),"_isMounted",!1),Yo(Uo(n),"_positionFromTop",0),Yo(Uo(n),"_positionFromLeft",0),Yo(Uo(n),"_detectElementResize",void 0),Yo(Uo(n),"_child",void 0),Yo(Uo(n),"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(n,!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},nl(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),Yo(Uo(n),"_registerChild",(function(e){e&&Element,n._child=e,n.updatePosition()})),Yo(Uo(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var o=n.props.scrollElement;o&&("function"==typeof o.scrollTo?o.scrollTo(0,t+n._positionFromTop):o.scrollTop=t+n._positionFromTop)}})),Yo(Uo(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),Yo(Uo(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),Yo(Uo(n),"_onResize",(function(){n.updatePosition()})),Yo(Uo(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var o=ol(t),r=Math.max(0,o.left-n._positionFromLeft),i=Math.max(0,o.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),Yo(Uo(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return $o(t,e),Bo(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,o=n.height,r=n.width,i=this._child||ro.findDOMNode(this);if(i instanceof Element&&e){var l=function(e,t){if(el(t)&&document.documentElement){var n=document.documentElement,o=tl(e),r=tl(n);return{top:o.top-r.top,left:o.left-r.left}}var i=ol(t),l=tl(e),a=tl(t);return{top:l.top+i.top-a.top,left:l.left+i.left-a.left}}(i,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var a=nl(e,this.props);o===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=Ir(),this.updatePosition(e),e&&(Ki(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,o=e.scrollElement;o!==n&&null!=o&&null!=n&&(this.updatePosition(n),Xi(this,o),Ki(this,n),this._unregisterResizeListener(o),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Xi(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop,r=t.scrollLeft,i=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:r,scrollTop:o,width:l})}}]),t}(r.PureComponent),Yo(Qi,"propTypes",null),Ji);Yo(ll,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:il(),serverHeight:0,serverWidth:0});const al=function({children:e,className:t,height:n,heightAdjustment:o,graphZoneType:r,scrollTop:l,style:a}){const s=Rn[r].listId,u=document.getElementById(s),c=u?.scrollHeight||0;let d=n-28;void 0!==l&&(d=Number(a.top)-l,u&&c-n-l<0&&(d=n-o-28));const h={top:d,zIndex:2},p=i().createElement("span",{className:"absolute",style:h},e);return i().createElement("div",{className:t,style:a},u?io().createPortal(p,document.getElementById("graph-container")):p)};function sl({inline:e,getExternalIcon:t,message:n,size:o=100,useSimpleSpinner:r}){const l=me()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),a=me()("spinner","mr1",{"inline-block":e}),s={height:o,width:o},u=me()("message",{"inline-block":e,mx2:e}),c=r?i().createElement("span",{className:a,style:s},t("loading")):i().createElement("div",{className:a,style:s},i().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:s}),i().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:s}),i().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:s}));return i().createElement("div",{className:l},c,n&&i().createElement("div",{className:u},n))}class ul extends i().Component{render(){const{cssVariables:e,currentCommits:t,graphZoneType:n,hasMoreCommits:o,height:r,getExternalIcon:l,isLoadingRows:a,scrollTop:s,style:u,translate:c,zoneContentWidth:d,zoneWidth:h}=this.props,p=parseInt(e["--scrollable-scrollbar-thickness"].trim(),10),f=Number.isNaN(p)?0:p,m=d>h?f:0,g=i().createElement(sl,{className:"loading-spinner",getExternalIcon:l,size:20,useSimpleSpinner:!0}),v=0!==(t>0?t:0)||o?null:i().createElement(i().Fragment,null,c("Graph-NoCommits")),y=i().createElement("div",{className:"graph-adjust-commit-count p1"},a?i().createElement("div",{className:"flex items-center"},i().createElement("span",{style:{paddingRight:"5px"}},g)):v);return i().createElement(al,{graphZoneType:n,height:r,heightAdjustment:m,scrollTop:s,style:u},y)}}const cl=ul;function dl({rowCount:e,cellRenderersByIds:t,columnIndex:n,cssVariables:o,enableResizer:r,getExternalIcon:l,getKeyForCell:a,graphHeight:s,graphWidth:u,graphZoneType:c,graphZones:d,hasMoreCommits:h,isLoadingRows:p,onResize:f,onResizeEnd:m,onResizeFromPropChange:g,onScroll:v,onScrollToRowCausedUpdate:y,onZoneEnter:b,scrollLeft:w,scrollToAlignment:S,scrollToIndex:C,scrollTop:x,smartCellRangeRenderer:_,translate:T}){const R=Un(c,d);if(!R)return null;const E=Fn(c,d),k=Un(Sn,d),O=k?k.contentWidth:0,M=k?k.currentWidth:0,z=c===Sn?me()("graph-panel","horizontal_scrollbar","react-virtualized-list"):me()("graph-panel","react-virtualized-list",c===wn?"z3":null,E?"vertical_scrollbar":null,{"pad-for-horizontal-scrollbar":!!O&&O>M}),I=c===Sn?{position:"static"}:void 0,P=e=>v(c,e,u,s,h),N=h||p||0===e,A=e+(N?1:0),D=(r,d,f,m,g,v,b)=>i().createElement(Tr,{autoContainerWidth:!0,cellRangeRenderer:_,cellRenderer:u=>((r,u)=>{if(u.rowIndex>e-1)return N&&0===n?i().createElement(cl,{cssVariables:o,currentCommits:e-1,getExternalIcon:l,graphZoneType:c,hasMoreCommits:h,height:s,isLoadingRows:p,key:a(u.rowIndex),scrollTop:x,style:u.style,translate:T,zoneContentWidth:O||0,zoneWidth:M}):void 0;const d={...u,style:{...u.style}};bn===r&&(d.style.top=Number(u.style.top)-x);const f=t[r];return f?f(d):void 0})(r,u),className:f,columnCount:1,columnWidth:b,containerStyle:m,height:s,id:d,isScrolling:!1,key:d,onScroll:P,onScrollToTargetCausedUpdate:y?e=>y(c,e,u,s,h):void 0,overscanRowCount:0,rowCount:A,rowHeight:Xt,scrollLeft:w,scrollToAlignment:S,scrollTop:x,scrollToRow:C,style:g,tabIndex:null,width:v}),L=D(R.type,R.listId,z,I,{position:"absolute"},R.currentWidth,R.type===Sn&&e>0?R.contentWidth||0:R.currentWidth),G=E?D(bn,"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=i().createElement("div",{onMouseEnter:b},L,G);return E?W:i().createElement(qt,{enable:r,height:s,id:`${c}Column`,key:`${c}Column`,onResize:f?e=>f(R,e):void 0,onResizeEnd:m?e=>m(R,e):void 0,onResizeFromPropChange:g?e=>g(R,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:R.currentWidth,widthConstraints:Zn(c,d,u)},W)}const hl={"Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","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"},pl=e=>!(e===Re||e===ke),fl=/^.*(:?\n){0,2}/m;const ml=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;const gl={};function vl(e){let t=gl[e];return t||(t=tn+e*ln+ln/2,gl[e]=t,t)}const yl={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 bl(e,t){let n="<"+e;const o=Object.entries(yl);for(let e=0;e<o.length;e+=1){const[r,i]=o[e],l=t[i];l&&(n=n+" "+r+'="'+l+'"')}return n+" />"}function wl(e){return bl("line",e)}function Sl(e,t){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:en,strokeDasharray:pl(e)?2:0,stroke:t}}function Cl(e,t,n){return e+"_"+t+"_"+(n||"+")}function xl(e,t){return e+"_"+(t||"+")}const _l={0:1,90:0,180:-1,270:0},Tl={0:0,90:1,180:0,270:-1},Rl=un-sn,El=" A "+Rl+" "+Rl+" 0 0 0 ";function kl(e,t,n){const o=_l[n],r=Tl[n];return{x:e-un*o,xOffset:-o*sn,y:t+un*r,yOffset:r*sn}}const Ol={};const Ml=function(e,t,n,o,r,i){const l=Sl(o,e);return l.d=function(e,t,n,o){const r=e+"_"+t+"_"+n+"_"+o;let i=Ol[r];if(i)return i;const l=kl(e,t,o),a=kl(e,t,n);return i="M "+l.x+" "+l.y+(a.xOffset?" H "+(l.x+a.xOffset):" V "+(l.y+a.yOffset))+El+(a.x+l.xOffset)+" "+(a.y+l.yOffset)+(l.xOffset?" H "+a.x:" V "+a.y),Ol[r]=i,i}(r,i,n,t),bl("path",l)};let zl={};function Il(e,t,n,o){const r=Cl(e,t,n);let i=zl[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,n){const o=Sl(n,e);return o.x1=vl(t),o.x2=vl(t),o.y1=rn/2,o.y2=rn,wl(o)}(o[e],t,n):function(e,t,n,o){const r=Sl(o,e),i={...r};i.x1=vl(n),i.x2=vl(n),i.y1=rn-nn,i.y2=rn;const l={...r};return l.x1=vl(n<t?n:n-1)+ln/2,l.x2=vl(t),l.y1=rn/2,l.y2=rn/2,"<g>"+Ml(e,t<n?180:270,t<n?270:0,o,vl(n)+(t<n?-ln/2:ln/2),rn-nn)+wl(i)+wl(l)+"</g>"}(o[e],t,e,n),zl[r]=i,i)}let Pl={};function Nl(e,t,n,o){const r=Cl(e,t,n);let i=Pl[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,n){const o=Sl(n,e);return o.x1=vl(t),o.x2=vl(t),o.y1=0,o.y2=rn/2,wl(o)}(o[e],t,n):function(e,t,n,o){const r=Sl(o,e),i={...r};i.x1=vl(n),i.x2=vl(n),i.y1=0,i.y2=on;const l={...r};return l.x1=vl(n<t?n:n-1)+ln/2,l.x2=vl(t),l.y1=rn/2,l.y2=rn/2,"<g>"+wl(i)+Ml(e,t>n?0:90,t>n?90:180,o,vl(n)+(t<n?-ln/2:ln/2),on)+wl(l)+"</g>"}(o[e],t,e,n),Pl[r]=i,i)}let Al={};function Dl(e,t,n){const o=xl(e,t);let r=Al[o];if(r)return r;const i=vl(e),l=Sl(t,n[e]);return l.x1=i,l.x2=i,l.y1=0,l.y2=rn,r=wl(l),Al[o]=r,r}let Ll={};function Gl(e,t,n,o){const r=function(e,t,n){let o="";for(let r=0;r<=t;r++){const{passThrough:t,starting:i,ending:l}=e[r]||{};o=o+"_"+Cl(r,n,i?.type),o=o+"_"+Cl(r,n,l?.type),o=o+"_"+xl(r,t?.type)}return o}(e,t,n);let i=Ll[r];if(i)return i;let l="";for(let r=0;r<=t;r+=1){const t=e[r];if(!t)continue;const{passThrough:i,starting:a,ending:s}=t;l+=a?Il(r,n,a.type,o):"",l+=i?Dl(r,i.type,o):"",l+=s?Nl(r,n,s.type,o):""}return i='url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>'+l+"</g></svg>')",Ll[r]=i,i}function Wl(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const n=t.split(" ");return 1===n.length?n[0][0]:n.length>1?n[0][0]+n[n.length-1][0]:"?"}function Hl(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}const Fl=me()("absolute","top-0","right-0","bottom-0","left-0","height-1","time-line"),Bl=me()(Fl,"z2");const Ul=function({z2:e}){return i().createElement("div",{className:e?Bl:Fl})},jl={ADDED:"added",DELETED:"deleted",MODIFIED:"modified"};class Zl extends i().Component{render(){const{fileDiffType:e,getExternalIcon:t}=this.props;if(!e)return null;const n=(e=>{switch(e){case jl.ADDED:return"added";case jl.MODIFIED:return"modified";case jl.DELETED:return"deleted";default:return""}})(e),o=(e=>{switch(e){case jl.ADDED:return"color-green";case jl.MODIFIED:return"color-orange";case jl.DELETED:return"color-red";default:return null}})(e),r=(e=>{switch(e){case jl.ADDED:return"added";case jl.MODIFIED:return"modified";case jl.DELETED:return"deleted";default:return null}})(e),l=me()("fs-1",o,"mr1");return i().createElement("span",{className:l,title:r},t(n))}}const Vl=Zl,{ADDED:$l,DELETED:Yl,MODIFIED:ql}=jl,Kl={[$l]:"CommitDiffSection-NFilesAdded",[Yl]:"CommitDiffSection-NFilesDeleted",[ql]:"CommitDiffSection-NFilesModified"};const Xl=function({count:e,diffType:t,getExternalIcon:n,fileNodeListStyle:o,translate:r}){const l=o?e:r(Kl[t],e);let a,s;return o&&(a={fontSize:mn,marginRight:gn},s={fontSize:yn,margin:`0px ${vn}px 0px 0px`}),i().createElement("span",{className:"tiny-files-readout",style:a},i().createElement(Vl,{fileDiffType:t,getExternalIcon:n,style:s}),i().createElement("span",{className:"tiny-files-readout-text"},l))};const Ql=function({diffStats:t,fileNodeListStyle:n,getExternalIcon:o,translate:r}){const{types:l}=e;if(!t)return i().createElement("span",null);if(!Object.values(t).some((e=>Boolean(e))))return i().createElement("span",null);const a=t.modified?i().createElement(Xl,{count:t.modified,diffType:l.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,s=t.added?i().createElement(Xl,{count:t.added,diffType:l.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,u=t.deleted?i().createElement(Xl,{count:t.deleted,diffType:l.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=n?{marginLeft:fn}:null;return i().createElement("span",{className:"summary",style:c},a,s,u)},Jl=i().createElement("div",{className:"color-strip height-100",style:{width:2}}),ea={};const ta={};class na extends i().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:n,context:o,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:l,getExternalIcon:a,graphZoneType:s,highlightRowsOnRefHover:u,isDimmedMergeCommitRow:c,isHighlighted:d,isHovering:h,isInUnsupportedRebase:p,isMissingHoveredRefGroup:f,isSelected:m,numGraphColumns:g,onContextMenu:v,onClickCommit:y,onDoubleClickCommit:b,rowContext:w,sha:S,showColorStrip:C,showConflictIcon:x,showTimeline:_,setAsCurrentlyHoveredGraphCommit:T,style:R,title:E,translate:k,type:O,workDirStats:M}=this.props,z=function(e,t){const n=e+t.toString();let o=ea[n];return o||(o=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),ea[n]=o,o)}(O,h),I=function(e,t,n,o,r,i=!1,l=!1,a=!1,s=!1){const u=e+t+o.toString()+n.toString()+i.toString()+l.toString()+a.toString()+s.toString()+r;let c=ta[u];return c||(c=me()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":o},{"is-highlighted":n},{"dimmed-row":s&&!n||i&&(l||a)}),ta[u]=c,c)}(O,n,d,m,g,f,u,l,c),P=_?i().createElement(Ul,null):null,N=O===ze&&void 0!==M&&Object.keys(M).length>0,A=N&&i().createElement(Ql,{diffStats:M,getExternalIcon:a,translate:k});return i().createElement("div",{className:z,"data-vscode-context":Nn(w),onContextMenu:p?void 0:e=>v(e,s,S),onDoubleClick:e=>b(e,s,S),onMouseDown:e=>y(e,s,S),onMouseEnter:e=>T(e,s,S,r),onMouseLeave:t=>e(t,s,S,r),style:R},P,i().createElement("div",{className:I,"data-vscode-context":Nn(o)},C?Jl:null,x?i().createElement("span",{className:me()("ml2")},a("warning")):null,i().createElement("span",{className:me()("graph-zone",N?"has-work-dir":"width-100","flex-1"),style:{lineHeight:`${Qt}px`},title:E},t),A))}}const oa=(e,t)=>{const{clearCurrentlyHoveredGraphCommit:n,currentlyHoveredCommitSha:o,dimMergeCommits:r,dimRowsOfSelectedCommit:l,getExternalIcon:a,highlightRowsOnRefHover:s,processedRows:u,isInUnsupportedRebase:c,onCommitContextMenu:d,onClickCommit:h,onDoubleClickCommit:p,numGraphColumns:f,setAsCurrentlyHoveredGraphCommit:m,translate:g}=e,v=new Qn(e);return({rowIndex:e,style:y})=>{const b=t(e),w=u[e],{author:S,email:C,sha:x,type:_,contexts:T}=w,R=_!==ze?S:void 0,E=_!==ze?Hl(S,C):void 0,k=T?.author||void 0,O=T?.row||void 0;return i().createElement(na,{clearCurrentlyHoveredGraphCommit:n,column:w.column,context:k,currentlyHoveredCommitSha:o,dimRowsOfSelectedCommit:l,getExternalIcon:a,graphZoneType:xn,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:_===ke&&r,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:c,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:b,numGraphColumns:f,onClickCommit:h,onContextMenu:d,onDoubleClickCommit:p,rowContext:O,setAsCurrentlyHoveredGraphCommit:m,sha:x,showTimeline:v.hasTimeline(e),style:y,title:E,translate:g,type:_},R)}},ra=(e,t)=>{const{processedRows:n,translate:o,getExternalIcon:r,highlightRowsOnRefHover:l,isInUnsupportedRebase:a,numGraphColumns:s,formatCommitDateTime:u,clearCurrentlyHoveredGraphCommit:c,dimMergeCommits:d,dimRowsOfSelectedCommit:h,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new Qn(e);return({rowIndex:e,style:b})=>{const w=t(e),S=n[e],{date:C,sha:x,type:_,contexts:T}=S,R=C&&_!==ze?u(C,Ie.RowEntry):void 0,E=C&&_!==ze?u(C,Ie.Tooltip):void 0,k=T?.date||void 0,O=T?.row||void 0;return i().createElement(na,{clearCurrentlyHoveredGraphCommit:c,column:S.column,context:k,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:h,getExternalIcon:r,graphZoneType:_n,highlightRowsOnRefHover:l,isDimmedMergeCommitRow:_===ke&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:a,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:s,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:x,showTimeline:!1,style:b,title:E,translate:o,type:_},R)}},ia=(e,t)=>{const{dimMergeCommits:n,dimRowsOfSelectedCommit:o,processedRows:r,translate:l,getExternalIcon:a,highlightRowsOnRefHover:s,isInUnsupportedRebase:u,numGraphColumns:c,workDirStats:d,clearCurrentlyHoveredGraphCommit:h,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new Qn(e);return({rowIndex:e,style:b})=>{const w=t(e),S=r[e],{sha:C,type:x,contexts:_}=S,T=x===ze?l("Graph-WorkInProgress"):S.message,R=x===ze?l("Graph-WorkInProgress"):S.messageInline,E=_?.message||void 0,k=_?.row||void 0;return i().createElement(na,{clearCurrentlyHoveredGraphCommit:h,column:S.column,context:E,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:o,getExternalIcon:a,graphZoneType:Cn,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:x===ke&&n,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:u,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:c,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:k,setAsCurrentlyHoveredGraphCommit:v,sha:C,showColorStrip:!0,showConflictIcon:x===Ee||x===Oe,showTimeline:y.hasTimeline(e),style:b,title:T,translate:l,type:x,workDirStats:d},R)}},la=(e,t)=>{const{processedRows:n,translate:o,getExternalIcon:r,highlightRowsOnRefHover:l,isInUnsupportedRebase:a,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:u,currentlyHoveredCommitSha:c,dimMergeCommits:d,dimRowsOfSelectedCommit:h,onCommitContextMenu:p,onClickCommit:f,onDoubleClickCommit:m,setAsCurrentlyHoveredGraphCommit:g,shaLength:v}=e,y=new Qn(e);return({rowIndex:e,style:b})=>{const w=t(e),S=n[e],{sha:C,type:x,contexts:_}=S,T=((e,t=6)=>e?e.substring(0,t):"")(C,v),R=_?.sha||void 0,E=_?.row||void 0;return i().createElement(na,{clearCurrentlyHoveredGraphCommit:u,column:S.column,context:R,currentlyHoveredCommitSha:c,dimRowsOfSelectedCommit:h,getExternalIcon:r,graphZoneType:Tn,highlightRowsOnRefHover:l,isDimmedMergeCommitRow:x===ke&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:a,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:w,numGraphColumns:s,onClickCommit:f,onContextMenu:p,onDoubleClickCommit:m,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showTimeline:y.hasTimeline(e),style:b,translate:o,type:x},x!==ze?i().createElement("span",{className:"font-monospace pointer",title:T},T):null)}};const aa=function({style:e,children:t,column:n,numGraphColumns:o,onMouseEnter:r,onMouseLeave:l}){const a=e?.top||0;return i().createElement("div",{className:me()("ref-zone","column-"+(n%o+1))},i().createElement("ul",{onMouseEnter:r,onMouseLeave:l,style:{...e,top:a-Qt/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};const sa=function({enabledRefMetadataTypes:e,column:t,context:n,getTargetRef:o,hasActive:r,hasRefs:l,getExternalIcon:a,includeOnlyRefsById:s,includeOnlyRemotesByName:u,isHovered:c,isInUnsupportedRebase:d,numGraphColumns:h,onMissingRefMetadata:p,refGroupContexts:f,refGroupsByName:m,refMetadata:g,refNodeHovered:v,sha:y,showContextMenuForGroupedRef:b,onClickRef:w,onDoubleClickRef:S,onToggleRefNodesShown:C,translate:x}){const _=(e,t,n)=>{const o=[];for(let e=0;e<t.length;e+=1){const n=t[e];o.push({id:Ln(n),name:n.name,type:n.refType,owner:n.owner,avatarUrl:n.avatarUrl})}C(e,o,!1,n)},T=c?m:[m[0]],R=Object.values(s),E=R.length>0&&R.some((e=>e.type===In.TAG)),k=T.map((t=>{const n=f?.[t[0].name]||void 0,o=t.some((e=>{const t=Ln(e);switch(e.refType){case In.TAG:return E&&Boolean(s[t]);case In.REMOTE:return Boolean(s[t])||e.owner&&u[e.owner];default:return Boolean(s[t])}})),h=i().createElement(ko,{enabledRefMetadataTypes:e,getExternalIcon:a,groupIsHovered:c,hasActive:r,hasRefs:l,isInUnsupportedRebase:d,isRefGroupIncluded:o,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:w,onContextMenu:b,onDoubleClick:S,onHideRefClick:_,onHovered:v,onMissingRefMetadata:p,refGroup:t,refGroupContext:n,refMetadata:g,sha:y,translate:x});return c?i().createElement("li",{key:h.key},h):h}));return c?i().createElement("div",{"data-vscode-context":Nn(n),style:{height:100,position:"relative"}},i().createElement(et,{placement:"right",show:c,target:o},i().createElement(aa,{column:t,numGraphColumns:h},k))):i().createElement("span",{"data-vscode-context":Nn(n),style:{minWidth:0}},k)};function ua({hasRefs:e,isActiveSha:t,left:n,type:o,width:r}){const l=me()("ref-line","z4",{"is-active":t});return e&&function(e){return[Re,ke,Ee].includes(e)}(o)?i().createElement("hr",{className:l,style:{left:n,width:r}}):null}const ca=ua;function da({hasRefs:e,isActiveSha:t,nodeOffset:n,type:o}){return i().createElement(ua,{hasRefs:e,isActiveSha:t,left:0,type:o,width:n+(o===ke?dn:0)})}const ha=function({hasActive:e,overflowCount:t}){return i().createElement("span",{className:me()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)},pa={};class fa extends i().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,n,o)=>{this.props.onToggleRefNodesShown(e,t,n,o),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:n,showGhostRefsOnRowHover:o,hasActive:r,hasRefs:l,hasTimeline:a,hoveredRefGroup:s,hoveredRefZoneSha:u,getExternalIcon:c,includeOnlyRefsById:d,includeOnlyRemotesByName:h,isContainerWindowFocused:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,refGroupContexts:b,refGroupsByName:w,refMetadata:S,refNodeHovered:C,refNodeUnhovered:x,refZoneHovered:_,refZoneUnhovered:T,sha:R,showContextMenuForGroupedRef:E,style:k,translate:O,type:M,width:z}=this.props,I=u===R&&p,P={minWidth:z,width:z},N={...k,...P},A=a?i().createElement(Ul,null):null,D=w.length,L=e=>{_(R),D?C(e,w[0],R):s&&x(e,s,R)},G=e=>{p&&this.isContextMenuShown?this.isContextMenuShown=!1:(T(),s&&x(e,s,R))},W=function(e,t,n,o,r,i){const l=e+t+n.toString()+o.toString()+r+i.toString();let a=pa[l];return a||(a=me()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":i,"has-active":o,z6:n,z1:!n}),pa[l]=a,a)}(M,t,I,r,m,D>0&&!l&&o);if(!D)return i().createElement("div",{className:W,onMouseEnter:L,onWheel:G,style:N},A);const H=P,F=D-1,B=F>0&&!I?i().createElement(ha,{hasActive:r,overflowCount:F}):null;return i().createElement("div",{className:W,onMouseEnter:L,onMouseLeave:G,onWheel:G,style:N},i().createElement("div",{ref:e=>this.refPopoverTarget=e}),A,i().createElement("div",{className:"flex",style:H},i().createElement(sa,{column:t,context:n,enabledRefMetadataTypes:e,getExternalIcon:c,getTargetRef:this.getRefPopoverTarget,hasActive:r,hasRefs:l,includeOnlyRefsById:d,includeOnlyRemotesByName:h,isHovered:I,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:b,refGroupsByName:w,refMetadata:S,refNodeHovered:C,sha:R,showContextMenuForGroupedRef:(e,t,n)=>{L(e),this.isContextMenuShown=!0,E(e,t,n)},translate:O}),B),l?i().createElement("div",{className:"absolute left-0 flex z1",style:P},i().createElement(ca,{hasRefs:!0,isActiveSha:r,left:2,type:M,width:"100%"})):null)}}const ma=(e,t)=>{const{enabledRefMetadataTypes:n,showGhostRefsOnRowHover:o,onDoubleClickRef:r,processedRows:l,includeOnlyRefsById:a,includeOnlyRemotesByName:s,isContainerWindowFocused:u,isInUnsupportedRebase:c,getExternalIcon:d,hoveredRefGroup:h,hoveredRefZoneSha:p,numGraphColumns:f,onClickRef:m,onMissingRefMetadata:g,onShowContextMenuForGroupedRef:v,onRefNodeHovered:y,onRefNodeUnhovered:b,onRefZoneHovered:w,onRefZoneUnhovered:S,onToggleRefNodesShown:C,refMetadataById:x,translate:_}=e,T=new Qn(e);return({rowIndex:e,style:R})=>{const E=t(e),k=l[e],O=T.getZoneWidth(wn),M=T.isHovering(e),{sha:z,type:I,hasRefs:P,contexts:N}=k,A=N?.ref||void 0,D=N?.refGroups||void 0,L=T.isSingleSelected(e),G=(o||P)&&(P||M||L)?T.getGraphRefGroupsByNameForRow(e):[];return i().createElement(fa,{column:k.column,context:A,enabledRefMetadataTypes:n,getExternalIcon:d,hasActive:T.rowContainsCurrentHeadRef(k),hasRefs:P||!1,hasTimeline:T.hasTimeline(e),hoveredRefGroup:h,hoveredRefZoneSha:p,includeOnlyRefsById:a,includeOnlyRemotesByName:s,isContainerWindowFocused:u,isInUnsupportedRebase:c,isSingleSelected:L,key:E,numGraphColumns:f,onClickRef:m,onDoubleClickRef:r,onMissingRefMetadata:g,onToggleRefNodesShown:C,refGroupContexts:D,refGroupsByName:G,refMetadata:x,refNodeHovered:y,refNodeUnhovered:b,refZoneHovered:w,refZoneUnhovered:S,sha:z,showContextMenuForGroupedRef:v,showGhostRefsOnRowHover:o,style:R,translate:_,type:I,width:O})}};function ga({className:e,marginLeft:t}){return i().createElement("div",{className:me()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},i().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const va=e=>tn+ln*e+11;function ya({column:e}){return i().createElement(ga,{className:"z1",marginLeft:va(e)})}function ba(){return i().createElement(ga,{marginLeft:0})}function wa(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 Sa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ca(e){const t=e.h/360,{s:n,l:o,a:r}=e;let i,l,a;if(0===n)i=l=a=o;else{const e=o<.5?o*(1+n):o+n-o*n,r=2*o-e;i=Sa(r,e,t+1/3),l=Sa(r,e,t),a=Sa(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*l),b:Math.round(255*a),a:r}}const xa=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function _a(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*wa(e.charCodeAt(1))+wa(e.charCodeAt(2)),g:16*wa(e.charCodeAt(3))+wa(e.charCodeAt(4)),b:16*wa(e.charCodeAt(5))+wa(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*wa(e.charCodeAt(1))+wa(e.charCodeAt(2)),g:16*wa(e.charCodeAt(3))+wa(e.charCodeAt(4)),b:16*wa(e.charCodeAt(5))+wa(e.charCodeAt(6)),a:(16*wa(e.charCodeAt(7))+wa(e.charCodeAt(8)))/255};if(4===t){const t=wa(e.charCodeAt(1)),n=wa(e.charCodeAt(2)),o=wa(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*n+n,b:16*o+o,a:1}}if(5===t){const t=wa(e.charCodeAt(1)),n=wa(e.charCodeAt(2)),o=wa(e.charCodeAt(3)),r=wa(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*n+n,b:16*o+o,a:(16*r+r)/255}}return null}(e);const t=xa.exec(e);if(null==t)return null;const n=t[1];let o;switch(n){case"rgb":case"hsl":o=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":o=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===n||"hsla"===n?Ca({h:o[0],s:o[1],l:o[2],a:o[3]}):{type:"rgba",r:o[0],g:o[1],b:o[2],a:o[3]}}const Ta=e=>{return"hsla"===(t=_a(e)).type&&(t=Ca(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};class Ra extends i().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:n,classes:o,column:r,context:l,cssVariables:a,divStyle:s,fontSize:u,minWidth:c,size:d,title:h=""}=this.props,p=void 0!==r&&a[_e(r)]||Kt,f=Ta(p.trim()),m={alignItems:"center",backgroundColor:p,backgroundSize:d,color:f,display:"flex",fontSize:u+"px",fontWeight:"bold",height:e,justifyContent:"center",minWidth:c,width:t,...s},g=["avatar","gravatar","rad2",...o||[]].join(" ").trim();return i().createElement("div",{className:g,"data-vscode-context":Nn(l),style:m,title:h},n?n.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};render(){const{tooltipText:e}=this.state,{avatarUrl:t,classes:n,context:o,divStyle:r,height:l,minWidth:a,size:s,title:u="",tooltip:c,useAuthorInitialsForAvatars:d,width:h}=this.props,p=l||s,f=h||s;let m;if(d||!t)m=this.getMaybeDefaultAvatar(p,f);else{const e={height:p,width:f,backgroundImage:`url('${t}')`,backgroundSize:s,minWidth:a,...r},l=["avatar","gravatar","rad2",...n||[]].join(" ").trim();m=i().createElement("div",{className:l,"data-test-class":"avatar","data-vscode-context":Nn(o),style:e,title:u})}return c?i().createElement(ho,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:i().createElement(mo,{id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},m):m}}const Ea=({authorEmail:e,authorInitials:t,authorName:n,avatarUrl:o,column:r,context:l,cssVariables:a,left:s,message:u,opacity:c,type:d,useAuthorInitialsForAvatars:h})=>i().createElement(Ra,{authorInitials:t,avatarUrl:o,classes:["node",`${d}`,"z6"],column:r,context:l,cssVariables:a,divStyle:{left:s,opacity:c},fontSize:10,height:an,size:cn,tooltip:()=>{const t=n&&""!==n.trim()&&"Unknown"!==n?Hl(n,e):e,o=function(e){const t=[];for(let n=ml.exec(e);null!==n;n=ml.exec(e)){const[,e,o]=n;t.push({name:e,email:o})}return t}(function(e,t="\n"){return e.replace("\n"===t?fl:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}(u||""));let r="";if(0===o.length)r=t;else{o.unshift({email:e,name:n});for(let e=0;e<o.length;e+=1){const t=o[e];r+=Hl(t.name,t.email),e<o.length-1&&(r+=", ")}}return r},useAuthorInitialsForAvatars:h,width:an});class ka extends i().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:n,left:o,opacity:r,type:l}=this.props;return(t||e)&&l===Re?Ea(this.props):l===ke||l===Ee||l===Oe?((e,t,n,o,r)=>{const l={height:12,left:n+5,opacity:o},a=me()("node",r,"z6"),s=i().createElement(mo,{id:"graph-merge-node-tooltip"},Hl(t,e));return i().createElement(ho,{delayShow:250,overlay:s,placement:"bottom",trigger:["hover","focus"]},i().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:l}))})(e,t,o,r,l):((e,t,n,o,r)=>{const l={height:an,left:n,opacity:o},a=me()("node",r,"z6");return i().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:l},r===Me?e("stash"):null)})(n,0,o,r,l)}}class Oa extends i().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:n,nodeColumn:o}=this.props,r=Gl(n,t,o,e);return i().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:r}})}}const Ma=Oa;function za({boxShadowAlpha:e,boxShadowLeft:t,children:n,className:o="",left:r,width:l}){return i().createElement("div",{className:me()("absolute","top-0","bottom-0","z3",o),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:l}},n)}function Ia({boxShadowAlpha:e,hasTimeline:t,scrollLeft:n,width:o}){return i().createElement(za,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:n,width:o},t?i().createElement(Ul,{z2:!0}):null)}function Pa({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:n,scrollLeft:o,width:r}){return i().createElement(za,{boxShadowAlpha:e,boxShadowLeft:-5,left:o+t-r,width:r},n?i().createElement(Ul,{z2:!0}):null,i().createElement(ba,null))}class Na extends i().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:n,avatarUrl:o,clearCurrentlyHoveredGraphCommit:r,column:l,columnColorByColumn:a,commitZoneWidth:s,cssVariables:u,currentlyHoveredCommitSha:c,edgeColumnMax:d,edges:h,hasRefs:p,hasTimeline:f,getExternalIcon:m,isActiveSha:g,isInUnsupportedRebase:v,isSelected:y,leftGutterBoxShadowAlpha:b,leftGutterWidth:w,message:S,nodeOffset:C,nodeOpacity:x,numGraphColumns:_,onContextMenu:T,onClickCommit:R,onDoubleClickCommit:E,rightGutterBoxShadowAlpha:k,rightGutterWidth:O,rowContext:M,scrollLeft:z,setAsCurrentlyHoveredGraphCommit:I,sha:P,style:N,type:A,useAuthorInitialsForAvatars:D,zoneContext:L}=this.props,G=l%_+1,W=me()("relative","commit-zone","height-100-percent","pt3",A,`column-${G}`,{"is-selected":y,"has-active":g}),H=f?i().createElement(Ul,{z2:!0}):null,F=i().createElement("div",{className:W,"data-vscode-context":Nn(L),onContextMenu:v?void 0:e=>T(e,Sn,P),onDoubleClick:e=>E(e,Sn,P),onMouseDown:e=>R(e,Sn,P),onMouseEnter:e=>I(e,Sn,P,c),onMouseLeave:e=>r(e,Sn,P,c),style:N},H,i().createElement(Ia,{boxShadowAlpha:b,hasTimeline:f,scrollLeft:z,width:w}),i().createElement(da,{hasRefs:p,isActiveSha:g,nodeOffset:C,type:A}),i().createElement(ka,{authorEmail:e,authorInitials:Wl(t),authorName:t,avatarUrl:o,column:l,context:n,cssVariables:u,getExternalIcon:m,left:C,message:S,opacity:x,type:A,useAuthorInitialsForAvatars:D}),i().createElement(ya,{column:l}),i().createElement(Ma,{columnColorByColumn:a,edgeColumnMax:d,edges:h,nodeColumn:l}),i().createElement(Pa,{boxShadowAlpha:k,commitZoneWidth:s,hasTimeline:f,scrollLeft:z,width:O}));return M?i().createElement("div",{"data-vscode-context":Nn(M)},F):F}}const Aa=function(e,t){const{avatarUrlByEmail:n,onMissingAvatar:o,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:l,cssVariables:a,currentlyHoveredCommitSha:s,processedRows:u,getExternalIcon:c,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:h,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:v,nodeOpacityByColumn:y,numGraphColumns:b,rightGutterBoxShadowAlpha:w,rightGutterWidth:S,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:x,useAuthorInitialsForAvatars:_}=e,T=new Qn(e);return({rowIndex:e,style:R})=>{const E=t(e),k=u[e],O=T.getZoneWidth(Sn),{email:M,author:z,contexts:I,message:P,sha:N,type:A}=k,D=k.column,L=I?.graph||void 0,G=I?.avatar||void 0,W=I?.row||void 0;let H;return _||(H=n[M],H||o(M,N)),i().createElement(Na,{authorEmail:M,authorName:z,avatarContext:G,avatarUrl:H,clearCurrentlyHoveredGraphCommit:r,column:D,columnColorByColumn:l,commitZoneWidth:O,cssVariables:a,currentlyHoveredCommitSha:s,edgeColumnMax:k.edgeColumnMaxes,edges:k.edges,getExternalIcon:c,hasRefs:k.hasRefs||!1,hasTimeline:T.hasTimeline(e),isActiveSha:T.rowContainsCurrentHeadRef(k),isInUnsupportedRebase:d,isSelected:T.isSelected(e),key:E,leftGutterBoxShadowAlpha:h,leftGutterWidth:p,message:P,nodeOffset:v[D],nodeOpacity:y[D],numGraphColumns:b,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:w,rightGutterWidth:S,rowContext:W,scrollLeft:x,setAsCurrentlyHoveredGraphCommit:C,sha:N,style:R,type:A,useAuthorInitialsForAvatars:_,zoneContext:L})}},Da=(e,t)=>{const{translate:n,processedRows:o}=e,r=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),l=new Qn(e);return({rowIndex:e,style:a})=>{const s=t(e),u=me()("graph-row","height-100-percent","flex"),c=l.hasTimeline(e),d=o[e],h=d.contexts?.row||void 0,p=d.timeLineEntry?.label||"",f=d.timeLineEntry?.value||0,m=c?i().createElement(Ul,null):null,g=c?i().createElement("span",{className:"time-line-message-container"},i().createElement("span",{className:"time-line-message"},n(p,f))):null;return i().createElement("div",{className:r,"data-vscode-context":Nn(h),key:s,style:a},m,i().createElement("div",{className:u,"data-vscode-context":Nn(h)},g))}};class La extends i().PureComponent{graphContainerRef=i().createRef();resizeObserver;isSelectedBySha={};processedGraphRowBySha={};childrenBySha={};scrollToSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};reserverInfoBySha={};columnsUsed={};workDirStats=kn;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZonesByType={};graphZoneOrdering=[wn,Sn,Cn,xn,_n,Tn];missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};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.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections();const t=Te(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||[],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||pn,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,n=!1;if(this.props.highlightedShas!==e.highlightedShas&&this.setState({highlightedShas:e.highlightedShas}),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&&(n=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(n=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(n=!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.isContainerWindowFocused!==e.isContainerWindowFocused&&this.setState({dimRowsOfSelectedCommit:!1,isContainerWindowFocused:void 0===e.isContainerWindowFocused||e.isContainerWindowFocused}),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||n){this.cleanEdgeCaches();const o=Te(e.cssVariables);this.processRows(e.graphRows),this.setState({columnColorByColumn:this.getColumnColorByColumn(o),cssVariablesWithDefaults:o,numGraphColumns:this.getNumGraphColumns(o),processedRows:[...this.orderedGraphRows]}),this.updateCommitZoneContentWidthFromGraphRowsChange(),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||n)&&(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||kn,!$n(this.props.workDirStats)&&$n(e.workDirStats)||$n(this.props.workDirStats)&&!$n(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,n)=>{let o,r,i=!1,l=t;return(...a)=>{void 0!==n&&(r=(new Date).getTime(),l=!o||r-o>l+n?n:t),i||(e(...a),o=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),l))}})((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,n,o)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[n],o)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onCurrentlyHoveredGraphCommit=(e,t,n,o)=>{o!==n&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[n]),this.setState({currentlyHoveredCommitSha:n}))};onClearCurrentlyHoveredGraphCommit=(e,t,n,o)=>{o&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[n]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const n=this.graphZoneOrdering.indexOf(e);let o=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&n<o&&(o-=1),this.graphZoneOrdering.splice(n,1),this.graphZoneOrdering.splice(o,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=Pn(((e,t)=>{if(t&&t.width){const n=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(n,e,t,!1),this.setState({graphZones:n})}}));onGraphZoneResizeEnd=Pn(((e,t)=>{if(t&&t.width){const n=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(n,e,t,!0),this.setState({graphZones:n})}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,n,o)=>{this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[n],o)};onClickCommit=(e,t,n)=>{if(0===e.button){const{enableMultiSelection:o}=this.props,r=this.isMacOSPlatform();if(o&&(!r&&e.ctrlKey||r&&e.metaKey)?this.selectCommits([n],!0,!1):o&&e.shiftKey||this.selectCommits([n],!1,!1),this.props.onClickGraphRow){const o=this.processedGraphRowBySha[n];this.props.onClickGraphRow(e,t,o)}}};onDoubleClickCommit=(e,t,n)=>{if(this.props.onDoubleClickGraphRow){const o=this.processedGraphRowBySha[n];this.props.onDoubleClickGraphRow(e,t,o)}};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)}};onRefNodeHovered=(e,t,n)=>{(!this.props.showGhostRefsOnRowHover||qn(this.isSelectedBySha,n)||this.processedGraphRowBySha[n]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[n]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,n)=>{this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[n]),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,n,o,r)=>{if(this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),!this.props.onShowMoreCommits||!r||!o||o<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const i=this.scrollTop+o,l=this.orderedGraphRows.length*Xt;i>l-Jt&&i>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(i,l-1),this.onShowMoreCommits())};onScrollToRowCausedUpdateForRefZone=(e,t)=>{this.setScroll(e,t),this.props.onScrollToRowCausedUpdateForRefZone&&this.props.onScrollToRowCausedUpdateForRefZone(e,t)};onCommitContextMenu=(e,t,n)=>{if(this.props.onRowContextMenu){const o=this.processedGraphRowBySha[n];this.props.onRowContextMenu(e,t,o)}};onRefContextMenu=(e,t,n)=>{if(this.props.onRefContextMenu){const o=this.processedGraphRowBySha[n];this.props.onRefContextMenu(e,t,o)}};onWipNodeInputWillUnmount=()=>{this.props.onWipNodeInputWillUnmount&&this.props.onWipNodeInputWillUnmount()};selectCommits(e,t,n){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const o=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{o.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,n))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(Sn)-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===In.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===In.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:n}=this,o=e||0;if(!o||!t||!t.length)return{top:-1,bottom:-1};const r=n/Xt,i=r+((o-26)/Xt-1);return{top:Math.max(Math.floor(r),0),bottom:Math.min(Math.ceil(i),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,n=this.props.scrollRowPadding||0;if(!n||!t)return e;let o=n;if(o<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,l=r.bottom;if(-1===i||-1===l)return e;const a=Math.floor((l-i)/2);if(a<1)return e;o=Math.min(o,a);const s=this.orderedGraphRows.length,u=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!u||!this.orderedGraphRows.length)return e;const c=l-o<u;return i+o>u?this.orderedGraphRows[Math.max(u-o,0)].sha||e:c&&this.orderedGraphRows[Math.min(u+o,s-1)].sha||e}selectSha(e,t=!1){const n=this.processedGraphRowBySha[e]?.column||0,o=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(Sn),l=this.getCommitZoneContentWidth(),a=n*ln,s=o-tn/3<=a,u=a<=o+r,c=Math.max(0,l-i),d=s&&u?o:Ht(a-r/2,0,c);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,n){const o=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=Bn(r,o,e);if(r.currentWidth=i,t===Sn){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}n&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromGraphRowsChange(){const e=this.graphZonesByType[Sn];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),n=this.getCommitZoneContentWidth();e.contentWidth=n,e.maximumWidth=n,e.currentWidth>n&&(e.currentWidth=Bn(e,t,n)),this.setState({graphZones:t})}}getCurrentWidthByZone(e){const t=this.graphZonesByType[e];return t&&!t.isHidden?t.currentWidth:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*ln+2*tn+6}getCommitZoneWidth(){if(this.graphZonesByType[Sn])return this.graphZonesByType[Sn].currentWidth;const{columnsSettings:e}=this.props;return e&&e[Sn]?e[Sn].width:Rn[Sn].minimumWidth}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(Sn);return 1===e?0:Ht(1-(t-2*tn-3)/ln,0,1)}setScroll(e,t){null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===Sn&&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"auto"}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+6)+t*(e+tn)}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(Sn),t=this.getScrollLeft(),n=this.getSingleColumnModeFactor();return(1-n)*(e+t+(3-tn))+n*(t+tn)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=tn+ln*t;return e}getNodeOffsetByColumn(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),n=this.getAbsoluteNodeLeftByColumn(),o={};return Object.keys(n).forEach((r=>{const i=n[r];o[r]=Ht(i,e,t)})),o}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(Sn)-ln-3)}getMinNodeLeft(){return this.getScrollLeft()+3+this.getSingleColumnModeFactor()*tn}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(Sn),t=this.getCommitZoneContentWidth(),n=this.getSingleColumnModeFactor();return Ht((e-(t-(tn+3)))/ln,0,1)+n/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),n=this.getAbsoluteNodeLeftByColumn(),o=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(n).forEach((l=>{const a=n[l],s=a-(e-r*tn),u=t+ln-(a+tn*(1-o)),c=Math.min(s,u);i[l]=.5+.5*Math.max(c/(tn/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return tn+e*(tn/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*tn}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),n=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(n,Ht(1-t/ln,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),n=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,n)}initializeGraphZones(e,t,n){this.graphZonesByType={};const o=[];let r=0;for(t.forEach(((t,n)=>{const i=e?e[t]:void 0,l=Rn[t],a=i&&i.width?i.width:l.minimumWidth,s={...l,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,order:l.isCustomizable&&void 0!==i?.order?i?.order:n};i?.isHidden||(r+=s.currentWidth),t===Sn&&(s.contentWidth=this.getCommitZoneContentWidth(),this.maxColumns>0&&(s.maximumWidth=s.contentWidth)),this.graphZonesByType[t]=s,s?.isHidden||o.push(s)})),o.forEach((e=>{const t=Bn(e,o,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>n;){const e=Gn(o);if(!e)break;const t=e.currentWidth,i=r-n,l=Math.max(e.minimumWidth,t-i),a=t-l;this.graphZonesByType[e.type].currentWidth=l,r-=a}if(r<n){const e=t[t.length-1],r=n-Hn(o,e);this.graphZonesByType[e].currentWidth=r}return o}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach(((n,o)=>{const r=this.graphZonesByType[n],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:o)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const n=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(n).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const n={};let o,r,i,l;return Object.keys(t).forEach((a=>{o=t[a],r=o.passThrough,i=o.starting,l=r&&!pl(r.type)?r:i&&!pl(i.type)?i:r||i||void 0,l&&(l.parentSha===e.sha?n[a]={ending:l}:n[a]={passThrough:l})})),n}getFinalEdgeStateForGraphAndRow(e,t){const n=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),o=this.getStartingEdgesByColumn(e);let r;return Object.keys(o).forEach((e=>{n[e]||(n[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=n[e],r.starting=o[e]})),n}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const n=this.orderedGraphRows[t-1],o=n&&this.processedGraphRowBySha[n.sha]?.edges?this.processedGraphRowBySha[n.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,o);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={},n=e.parents;if(n.length>0){const o=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:n[0],type:o});for(let e=1;e<n.length;e+=1){const r=n[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:o})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):Ce(e,"short+short");translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):hl[e]?function(e,t){if(0===t.length)return e;let n=e;return t.forEach(((e,t)=>{const o=new RegExp(`\\{${t}\\}`,"g");n=n.replace(o,e)})),n}(hl[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):i().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);for(let e=0;e<t.length;e+=1)this.requestedMissingAvatars[t[e]]=!0;t.length>0&&this.props.onEmailsMissingAvatarUrls&&this.props.onEmailsMissingAvatarUrls(e)}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const n=this.pendingMissingRefsMetadata[e]||[],o=t.filter((e=>!n.includes(e)));this.pendingMissingRefsMetadata[e]=[...n,...o],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);for(let e=0;e<t.length;e+=1)this.requestedMissingRefsMetadata[t[e]]=!0;t.length>0&&this.props.onRefsMissingMetadata&&this.props.onRefsMissingMetadata(e)}),100)};selectNext(e){const t=this.getSelectedShas(),n=t.length>0?t[t.length-1]:null;let o;if(e&&n){const e=this.processedGraphRowBySha[n];e?.parents?.length&&(o=e.parents[0])}else{const e=n?this.orderedGraphRows.findIndex((e=>e.sha===n)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);o=this.orderedGraphRows[t]?.sha}o&&this.selectCommits([o],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),n=t.length>0?t[0]:null;let o;if(e&&n){const e=this.childrenBySha[n];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)o=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==Me){o=e[t];break}}else{const e=n?this.orderedGraphRows.findIndex((e=>e.sha===n)):-1,t=Math.max(-1,e-1);o=this.orderedGraphRows[t]?.sha,t<0&&(o=this.orderedGraphRows[0]?.sha)}o&&this.selectCommits([o],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){const t=e.parents||[],n=this.columnsToFreeWhenFound[e.sha];if(void 0!==n)for(let e=0;e<n.length;e+=1)delete this.columnsUsed[n[e]];let o=0;const r=this.reserverInfoBySha[e.sha];let i,l;r&&void 0!==r?.column?(o=r.column,delete this.reserverInfoBySha[e.sha]):o=this.getAvailableColumnAndUseIt();for(let n=0;n<t.length;n+=1)if(i=t[n],l=this.reserverInfoBySha[i],0===n&&void 0!==l?.column&&l?.column!==o){const t=this.columnsToFreeWhenFound[i]||[];l?.type===Me&&e.type!==Me&&r?.newestDate>l?.newestDate?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:o},t.push(l.column)):t.push(o),this.columnsToFreeWhenFound[i]=t}else void 0===l?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===o?r?.newestDate:e.date,column:0===n?o:this.getAvailableColumnAndUseIt()});return o}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>t?void 0!==this.includeOnlyRefsById[Dn(In.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[Dn(In.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[Dn(In.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:!(this.excludeByType.remotes||void 0!==this.excludeRefsById[Dn(In.REMOTE,e)]||e.owner&&void 0!==this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,n){const o=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===In.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>o?void 0!==this.includeOnlyRefsById[Dn(In.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[Dn(In.TAG,e)]&&(!t||r||n)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,n={},o={};if($n(this.workDirStats)&&e.length>0&&e[0].type!==ze){const t=function(e){return e.find(Vn)?.sha||void 0}(e),n={sha:ze,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:ze,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(n.contexts={row:this.workDirStats.context}),e.unshift(n)}else!$n(this.workDirStats)&&e.length>0&&e[0].type===ze&&e.shift();const r=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,i)=>{const l=this.childrenBySha[e.sha]?.length>0,a=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,r):[],s=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,r):[],u=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,r,Boolean(o[e.sha]||l)):[],c=e.parents?.length>0?e.parents.filter((e=>!n[e])):[],d=a.length>0||s.length>0||u.length>0,h=a.length>0||s.length>0;if(e.type!==Re&&e.type!==ke||o[e.sha]){if(e.type===Me&&this.excludeByType.stashes&&(n[e.sha]=!0),!n[e.sha]&&c.length>0){let e;for(e of c)o[e]=!0}}else e.type!==Re&&e.type!==ke||o[e.sha]||d||l||(n[e.sha]=!0);const p=n[e.sha],f={...e,heads:a,remotes:s,tags:u,parents:c,column:p?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:d,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(this.processedGraphRowBySha[e.sha]=f,!p){let n;const o=t.get(e.sha);o?.length&&(o.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})),n=o[0],f.childRefs={heads:[...n?.heads||[]],remotes:[...n?.remotes||[]],tags:[...n?.tags||[]]},t.delete(e.sha));for(let o=0;o<c.length;o+=1){const r=c[o];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let l=t.get(r);(h||n)&&void 0===l&&(l=[],t.set(r,l)),h?l?.unshift({sha:e.sha,parentIndexScore:o,rowEntered:i,heads:a,remotes:s,tags:u}):n&&l?.unshift({...n,parentIndexScore:o,rowEntered:i})}this.orderedGraphRows.push(f)}})),clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},n=36e5,o=864e5;let r;for(r=1;r<=En.hour;r+=1)t.hour.push({date:e.getTime()-r*n,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=En.day;r+=1)t.day.push({date:e.getTime()-r*o,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=En.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<=En.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 l=new Date;for(l.setHours(0,0,0,0),r=1;r<=En.year;r+=1){let e;switch(l.setFullYear(l.getFullYear()-1),l.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case En.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:l.getTime(),label:e,timeUnit:"year",value:r})}return t}();Object.values(e).forEach((e=>{e.forEach((e=>{const{date:t}=e,n=this.orderedGraphRows.find((e=>e.date<t));n&&this.processedGraphRowBySha[n.sha]&&(this.processedGraphRowBySha[n.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 n=e[t];this.processedGraphRowBySha[n]||delete this.isSelectedBySha[n]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),n=this.maxColumns>t?this.maxColumns:t,o={};for(let i=0;i<=n;i+=1)if(i<t){const t=e[_e(i)];o[i]="rgba"===(r=_a(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=o[i%t];o[i]=e}var r;return o}getNumGraphColumns(e){const t=e["--num-columns-supported"],n=Number.parseInt(t,10);return Number.isNaN(n)?10:n}ensureZoneWidthsMatchGraphWidth(e,t){const n=Hn(e);n>t&&this.shrinkZoneWidthsToFitWidth(e,t),n<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,n){let o=Hn(e);for(;o>t;){const r=Gn(e,n);if(!r)break;const i=Hn(e,r.type);if(i+r.currentWidth>t){const n=Bn(r,e,t-i);this.updateWidthByZone(n,r.type)}o=Hn(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,n){let o=Hn(e);for(;o<t;){const r=Wn(e,n);if(!r)break;const i=Hn(e,r.type),l=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let n=t-i;!Fn(r.type,e)&&n>l&&(n=l),n=Bn(r,e,n),this.updateWidthByZone(n,r.type)}o=Hn(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,n,o)=>{t.forEach((e=>{n&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:n||(this.excludeRefsById[e.id]=e)})),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,n,o?this.processedGraphRowBySha[o]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){Ll={},zl={},Al={},Pl={}}onZoneEnter=(e,t,n,o)=>{t!==wn&&(n&&o&&this.onRefNodeUnhovered(e,n,o),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,n,o){if(n&&n.width){const r=t.currentWidth;this.updateWidthByZone(n.width,t.type,o);const i=jn(t.type,e),l=this.graphZonesByType[t.type];r>l.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<l.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,n)=>{t&&n&&this.onRefNodeUnhovered(e,t,n),this.onRefZoneUnhovered()};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=Pn(((e,t)=>{const n=Math.floor(t),o=Math.floor(e),r=n!==this.graphHeight,i=o!==this.graphWidth,l={};if(r&&(this.graphHeight=n,l.height=n),i){this.graphWidth=o;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),l.width=this.graphWidth,l.graphZones=e}(r||i)&&(this.setState(l),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,n)=>{const o=function(e){const t=e||xe;let n="";const o=Object.keys(t);n+="body {\n";for(const e of o)n+=`${e}: ${t[e]};\n`;return n+="}\n",n}(t);return i().createElement("div",{id:"graph-container-helmet"},i().createElement(pe,null,i().createElement("style",{nonce:n},o)),e)};render(){const{isInUnsupportedRebase:e,isCommitting:t,pendingCommitMessageSummary:n,repoPath:o,nonce:r}=this.props,{avatarUrlByEmail:l,columnColorByColumn:a,contexts:s,cssVariablesWithDefaults:u,currentlyHoveredCommitSha:c,dimMergeCommits:d,dimRowsOfSelectedCommit:h,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,graphZones:v,hasMoreCommits:y,height:b,highlightedShas:w,hoveredRefGroup:S,hoveredRefZoneSha:C,themeOpacityFactor:x,isContainerWindowFocused:_,isLoadingRows:T,numGraphColumns:R,processedRows:E,refMetadataById:k,useAuthorInitialsForAvatars:O,scrollToAlignment:M,scrollToIndex:z,scrollTop:I,scrollLeft:P,shaLength:N,width:A,workDirStats:D}=this.state,L=me()("flex","graph-container"),G=(W=E,e=>e===W.length?"SHOW_MORE_COMMITS":W[e].sha);var W;const H=(F=e=>G(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:n,columnStartIndex:o,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:l,isScrolling:a,parent:s,rowSizeAndPositionManager:u,rowStartIndex:c,rowStopIndex:d,styleCache:h,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=n.areOffsetsAdjusted()||u.areOffsetsAdjusted(),b=!a&&!y;for(let e=c;e<=d;e+=1){const c=u.getSizeAndPositionOfCell(e);for(let u=o;u<=r;u+=1){const o=n.getSizeAndPositionOfCell(u),r=u>=f.start&&u<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${u}`;let y;b&&h[d]?y=h[d]:i&&!i.has(e,u)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:c.size,left:o.offset+l,position:"absolute",top:c.offset+p,width:o.size},h[d]=y);const w={columnIndex:u,isScrolling:a,isVisible:r,key:d,parent:s,rowIndex:e,style:y};let S;if(!a||l||p)S=t(w);else{const n=F(e,u);v[d]&&v[d].realKeyForCell===n||(v[d]={realKeyForCell:n,cell:t(w)}),S=v[d].cell}null!=S&&g.push(S)}}return g});var F;const B=this.getLeftGutterWidth(),U=this.getRightGutterWidth(),j=this.getRightGutterBoxShadowAlpha(x),Z=this.getLeftGutterBoxShadowAlpha(x),V=this.getNodeOffsetByColumn(),$=this.getNodeOpacityByColumn(),Y=!S,q={avatarUrlByEmail:l,dimMergeCommits:d,dimRowsOfSelectedCommit:h,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,isInUnsupportedRebase:e,isCommitting:t,isContainerWindowFocused:_,pendingCommitMessageSummary:n,workDirStats:D,repoPath:o,columnColorByColumn:a,currentlyHoveredCommitSha:c,cssVariables:u,graphZones:v,height:b,highlightedShas:w,hoveredRefGroup:S,hoveredRefZoneSha:C,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:Z,leftGutterWidth:B,nodeOffsetByColumn:V,nodeOpacityByColumn:$,nonce:r,numGraphColumns:R,processedRows:E,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:k,rightGutterBoxShadowAlpha:j,rightGutterWidth:U,useAuthorInitialsForAvatars:O,scrollToAlignment:M,scrollLeft:P,scrollTop:I,shaLength:N,width:A,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},K={[wn]:ma(q,G),[Sn]:Aa(q,G),[Cn]:ia(q,G),[xn]:oa(q,G),[_n]:ra(q,G),[Tn]:la(q,G),[bn]:Da(q,G)},X=v.map(((e,t)=>i().createElement(dl,{cellRenderersByIds:K,columnIndex:t,cssVariables:u,enableResizer:Y,getExternalIcon:this.getIconCallback,getKeyForCell:G,graphHeight:b-26,graphWidth:A,graphZones:v,graphZoneType:e.type,hasMoreCommits:y,isLoadingRows:T,key:`${e.type}ColumnContainer`,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===wn?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,S,C),rowCount:E.length,scrollLeft:P,scrollToAlignment:e.type===wn?M:void 0,scrollToIndex:e.type===wn?z:void 0,scrollTop:I,smartCellRangeRenderer:H,translate:this.translateCallback}))),Q=i().createElement("div",{className:"graph-component","data-vscode-context":Nn(s?.graph),onBlur:e=>this.onGraphContainerBlurred(e,S,C),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},i().createElement(Lo,{context:s?.header,enableResizer:Y,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:v,height:b,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:o,showRemoteNamesOnRefs:m,translate:this.translateCallback,width:A}),i().createElement("div",{className:w?me()(L,"graph-highlighted"):L,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:b,width:A},tabIndex:-1},X));return this.decorateWithHelmet(Q,u,r)}}const Ga=La})(),module.exports=o})();
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 l in o)n.call(o,l)&&o[l]&&e.push(l)}}}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),l=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,l):n.apply(l,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 l,a=n(t),c=r(a.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((l=a[h++])!=l)return!0}else for(;c>h;h++)if((e||h in a)&&a[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),l=o(7069),a="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,w=f?r:r[t]||(r[t]={}),S=w[a],b=f?n:m?n[t]:(n[t]||{})[a];for(h in f&&(o=t),o)(d=!p&&b&&void 0!==b[h])&&l(w,h)||(u=d?b[h]:o[h],w[h]=f&&"function"!=typeof b[h]?o[h]:v&&d?i(u,n):y&&b[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[a]=e[a],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((w.virtual||(w.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),l=o(6530),a=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=l(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=a(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"),l=function(){},a="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[a][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(l[a]=n(e),o=new l,l[a]=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),l=s.length,a=0;l>a;)n.f(e,o=s[a++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),l=o(7069),a=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),a)try{return c(e,t)}catch(e){}if(l(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,l=r(e),a=0,c=[];for(o in l)o!=s&&n(l,o)&&c.push(o);for(;t.length>a;)n(l,o=t[a++])&&(~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,l=i(t),a=r(l),c=a.length,h=0,d=[];c>h;)o=a[h++],n&&!s.call(l,o)||d.push(e?[o,l[o]]:l[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)},l=function(e,t,o,n){return e.removeEventListener(t,o,n)},a=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<a.length;n++)if((r=a[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=a[n].wrapper;return a.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 a.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},l=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:l,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,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:l.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.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,l.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,a.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)),l=n(o(504)),a=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 l=o.left,a=e.runtimeStyle,c=a&&a.left;c&&(a.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=l,c&&(a.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,l.default)(e,(0,i.default)(t))})),h&&(n+=a.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),l=n(o(1760)),a=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,l,a,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=a,t.transitionProperty=l,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 l=r[s];if(l+"TransitionProperty"in o){i="-"+l.toLowerCase(),e=n[l]("TransitionEnd"),t=n[l]("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=l=r+"-transition-property",t.transitionDuration=a=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:l,timing:c,delay:h,duration:a};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,l=s.documentElement;function a(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]:l.clientHeight?l[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 w(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function S(e,t){var o=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,b,C,_,x,R,T,E,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var z,I=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 P=n({containers:k.containers,start:function(e){var t=B(e);t&&F(t)},end:j,cancel:Y,remove:$,destroy:function(){A(!0),Z({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===k.removeOnSpill&&P.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){P.dragging&&i.add(e,"gu-hide")})),A(),P;function G(e){return-1!==P.containers.indexOf(e)||k.isContainer(e)}function A(e){var t=e?"remove":"add";a(l,t,"mousedown",H),a(l,t,"mouseup",Z)}function L(e){a(l,e?"remove":"add","mousemove",W)}function D(e){var t=e?"remove":"add";r[t](l,"selectstart",N),r[t](l,"click",N)}function N(e){z&&e.preventDefault()}function H(e){if(x=e.clientX,R=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=B(t);o&&(z=o,L(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function W(e){if(z)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==x||void 0===e.clientY||e.clientY!==R){if(k.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=z;L(!0),D(),j(),F(r);var d,u={left:(d=b.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};C=S("pageX",e)-u.left,_=S("pageY",e)-u.top,i.add(O||b,"gu-transit"),function(){if(o)return;var e=b.getBoundingClientRect();(o=b.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),a(l,"add","mousemove",Q),i.add(k.mirrorContainer,"gu-unselectable"),P.emit("cloned",o,b,"mirror")}(),Q(e)}}else Z({})}function B(e){if(!(P.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,w(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),P.emit("cloned",O,e.item,"copy")),y=e.source,b=e.item,T=E=w(e.item),P.dragging=!0,P.emit("drag",b,y)}function j(){if(P.dragging){var e=O||b;V(e,g(e))}}function U(){z=!1,L(!0),D(!0)}function Z(e){if(U(),P.dragging){var t=O||b,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&k.copySortSource||!O||i!==y)?V(t,i):k.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);O&&k.copySortSource&&t===y&&o.removeChild(b),K(t)?P.emit("cancel",e,y,y):P.emit("drop",e,t,y,E),q()}function $(){if(P.dragging){var e=O||b,t=g(e);t&&t.removeChild(e),P.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(P.dragging){var t=arguments.length>0?e:k.revertOnSpill,o=O||b,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,T)),r||t?P.emit("cancel",o,y,y):P.emit("drop",o,n,y,E),q()}}function q(){var e=O||b;U(),o&&(i.rm(k.mirrorContainer,"gu-unselectable"),a(l,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),P.dragging=!1,I&&P.emit("out",e,I,y),P.emit("dragend",e),y=b=O=T=E=M=I=null}function K(e,t){var n;return n=void 0!==t?t:o?E:w(O||b),e===y&&n===T}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(b,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-C,i=n-_;o.style.left=r+"px",o.style.top=i+"px";var s=O||b,l=d(o,t,n),a=X(l,t,n),c=null!==a&&a!==I;(c||null===a)&&(I&&f("out"),I=a,c&&f("over"));var h=g(s);if(a!==y||!O||k.copySortSource){var u,p=J(a,l);if(null!==p)u=ee(a,p,t,n);else{if(!0!==k.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=T,a=y}(null===u&&c||u!==s&&u!==w(s))&&(E=u,a.insertBefore(s,u),P.emit("shadow",s,a,y))}else h&&h.removeChild(s)}function f(e){P.emit(e,s,I,y)}}function J(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===l?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,l=e.children.length;for(t=0;t<l;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?w(t):t}}}},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 l={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:l,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,l){if(!e){var a;if(void 0===t)a=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,l],h=0;(a=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},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,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var c in i=Object(arguments[a]))o.call(i,c)&&(l[c]=i[c]);if(t){s=t(i);for(var h=0;h<s.length;h++)n.call(i,s[h])&&(l[s[h]]=i[s[h]])}}return l}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var l=e[t],a=void 0===l?"undefined":n(l);return r.default.isValidElement(l)?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"===a&&"function"==typeof l.render||1===l.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+l+"` 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 l=e[t];return n.default.isValidElement(l)?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)(l)?null:new Error("Invalid "+i+" `"+s+"` of value `"+l+"` 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>>",l=i||o;if(null==t[o])return new Error("The "+r+" `"+l+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var a=arguments.length,c=Array(a>5?a-5:0),h=5;h<a;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 l=r||"<<anonymous>>",a=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+a+"` was not specified in `"+l+"`."):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,l,i,a].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 l=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 l.name="Invariant Violation",l}}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 l,a,c,h;if(Array.isArray(e)){if((l=e.length)!=s.length)return!1;for(a=l;0!=a--;)if(!i(e[a],s[a]))return!1;return!0}if(o&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(h=e.entries();!(a=h.next()).done;)if(!s.has(a.value[0]))return!1;for(h=e.entries();!(a=h.next()).done;)if(!i(a.value[1],s.get(a.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();!(a=h.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((l=e.length)!=s.length)return!1;for(a=l;0!=a--;)if(e[a]!==s[a])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((l=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(a=l;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,c[a]))return!1;if(t&&e instanceof Element)return!1;for(a=l;0!=a--;)if(("_owner"!==c[a]&&"__v"!==c[a]&&"__o"!==c[a]||!e.$$typeof)&&!i(e[c[a]],s[c[a]]))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,l=o?Symbol.for("react.profiler"):60114,a=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,w=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function b(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 l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case a:return e;default:return t}}case r:return t}}}function C(e){return b(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=a,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||b(e)===h},t.isConcurrentMode=C,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===u},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===w||e.$$typeof===S||e.$$typeof===v)},t.typeOf=b},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,l=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?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==l){var a=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"+a+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==l?"\n "+l:"")+"\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)),l=c(o(3464)),a=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,l.default)(n.props.container,(0,a.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,l.default)(e.container,(0,a.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)),l=h(o(5425)),a=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(a.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,w=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:w},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(l.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},l.default.propTypes,a.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)),l=h(o(3464)),a=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,l.default)(e.container,(0,a.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)),l=o(6689),a=p(l),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=a.default.Children.only(t);return(0,l.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}(a.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)),l=c(o(6616)),a=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,a.default)(i);i.documentMouseCaptureListener=(0,l.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,l.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,l.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 l="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=l.top+(l.height-h)/2,u="left"===e?l.left-d:l.left+l.width;var g=function(e,t,o,n){var r=a(o),i=r.scroll,s=r.height,l=e-n-i,c=e+n-i+t;return l<0?-l: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=l.left+(l.width-d)/2,p="top"===e?l.top-h:l.top+l.height;var v=function(e,t,o,n){var r=a(o),i=r.width,s=e-n,l=e+n+t;if(s<0)return-s;if(l>i)return i-l;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=l(o(2565)),r=l(o(7265)),i=l(o(504)),s=l(o(290));function l(e){return e&&e.__esModule?e:{default:e}}function a(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 l=(0,n.default)(e);t=l.width,o=l.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 l=!("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 a,c=[];function h(){a=e(c.map((function(e){return e.props}))),d.canUseDOM?t(a):o&&(a=o(a))}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 a},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=a;return a=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",l),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=l(o(6689)),i=l(o(6405)),s=o(6871);o(4726);function l(e){return e&&e.__esModule?e:{default:e}}var a="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?a: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===a?{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:a})},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===a)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,{commitNodeType:()=>Te,default:()=>Nl,mergeNodeType:()=>Oe,stashNodeType:()=>ze});var e={};o.r(e),o.d(e,{types:()=>Us});var t,r=o(6689),i=o.n(r),s=o(5697),l=o.n(s),a=o(3524),c=o.n(a),h=o(9590),d=o.n(h),u=o(7418),p=o.n(u),f="bodyAttributes",m="htmlAttributes",g="titleAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},y=(Object.keys(v).map((function(e){return v[e]})),"charset"),w="cssText",S="href",b="http-equiv",C="innerHTML",_="itemprop",x="name",R="property",T="rel",E="src",O="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},z="defaultTitle",I="defer",k="encodeSpecialCharacters",P="onChangeClientState",G="titleTemplate",A=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),L=[v.NOSCRIPT,v.SCRIPT,v.STYLE],D="data-react-helmet",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},H=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=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}}(),B=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},F=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},j=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},U=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;")},Z=function(e){var t=K(e,v.TITLE),o=K(e,G);if(o&&t)return o.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=K(e,z);return t||n||void 0},V=function(e){return K(e,P)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return B({},e,t)}),{})},Y=function(e,t){return t.filter((function(e){return void 0!==e[v.BASE]})).map((function(e){return e[v.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]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+N(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 l=i[s],a=l.toLowerCase();-1===t.indexOf(a)||o===T&&"canonical"===e[o].toLowerCase()||a===T&&"stylesheet"===e[a].toLowerCase()||(o=a),-1===t.indexOf(l)||l!==C&&l!==w&&l!==_||(o=l)}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 l=i[s],a=p()({},n[l],r[l]);n[l]=a}return e}),[]).reverse()},K=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},X=(t=Date.now(),function(e){var o=Date.now();o-t>16?(t=o,e(o)):setTimeout((function(){X(e)}),0)}),Q=function(e){return clearTimeout(e)},J="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:o.g.requestAnimationFrame||X,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:o.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"==typeof console.warn&&void 0},oe=null,ne=function(e,t){var o=e.baseTag,n=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,l=e.noscriptTags,a=e.onChangeClientState,c=e.scriptTags,h=e.styleTags,d=e.title,u=e.titleAttributes;se(v.BODY,n),se(v.HTML,r),ie(d,u);var p={baseTag:le(v.BASE,o),linkTags:le(v.LINK,i),metaTags:le(v.META,s),noscriptTags:le(v.NOSCRIPT,l),scriptTags:le(v.SCRIPT,c),styleTags:le(v.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(),a(e,f,m)},re=function(e){return Array.isArray(e)?e.join(""):e},ie=function(e,t){void 0!==e&&document.title!==e&&(document.title=re(e)),se(v.TITLE,t)},se=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(D),r=n?n.split(","):[],i=[].concat(r),s=Object.keys(t),l=0;l<s.length;l++){var a=s[l],c=t[a]||"";o.getAttribute(a)!==c&&o.setAttribute(a,c),-1===r.indexOf(a)&&r.push(a);var h=i.indexOf(a);-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(D):o.getAttribute(D)!==s.join(",")&&o.setAttribute(D,s.join(","))}},le=function(e,t){var o=document.head||document.querySelector(v.HEAD),n=o.querySelectorAll(e+"["+D+"]"),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===C)o.innerHTML=t.innerHTML;else if(n===w)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[n]?"":t[n];o.setAttribute(n,l)}o.setAttribute(D,"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}},ae=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}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[M[o]||o]=e[o],t}),t)},he=function(e,t,o){switch(e){case v.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(n={key:e})[D]=!0,r=ce(o,n),[i().createElement(v.TITLE,r,e)];var e,o,n,r},toString:function(){return function(e,t,o,n){var r=ae(o),i=re(t);return r?"<"+e+" "+D+'="true" '+r+">"+U(i,n)+"</"+e+">":"<"+e+" "+D+'="true">'+U(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case f:case m:return{toComponent:function(){return ce(t)},toString:function(){return ae(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var n,r=((n={key:o})[D]=!0,n);return Object.keys(t).forEach((function(e){var o=M[e]||e;if(o===C||o===w){var n=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:n}}else r[o]=t[e]})),i().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===C||e===w)})).reduce((function(e,t){var r=void 0===n[t]?t:t+'="'+U(n[t],o)+'"';return e?e+" "+r:r}),""),i=n.innerHTML||n.cssText||"",s=-1===L.indexOf(e);return t+"<"+e+" "+D+'="true" '+r+(s?"/>":">"+i+"</"+e+">")}),"")}(e,t,o)}}}},de=function(e){var t=e.baseTag,o=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,l=e.noscriptTags,a=e.scriptTags,c=e.styleTags,h=e.title,d=void 0===h?"":h,u=e.titleAttributes;return{base:he(v.BASE,t,n),bodyAttributes:he(f,o,n),htmlAttributes:he(m,r,n),link:he(v.LINK,i,n),meta:he(v.META,s,n),noscript:he(v.NOSCRIPT,l,n),script:he(v.SCRIPT,a,n),style:he(v.STYLE,c,n),title:he(v.TITLE,{title:d,titleAttributes:u},n)}},ue=function(e){var t,o;return o=t=function(t){function o(){return H(this,o),j(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!d()(this.props,e)},o.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.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 B({},n,((t={})[o.type]=[].concat(n[o.type]||[],[B({},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 v.TITLE:return B({},r,((t={})[n.type]=s,t.titleAttributes=B({},i),t));case v.BODY:return B({},r,{bodyAttributes:B({},i)});case v.HTML:return B({},r,{htmlAttributes:B({},i)})}return B({},r,((o={})[n.type]=B({},i),o))},o.prototype.mapArrayTypeChildrenToProps=function(e,t){var o=B({},t);return Object.keys(e).forEach((function(t){var n;o=B({},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 i().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[A[o]||o]=e[o],t}),t)}(F(r,["children"]));switch(o.warnOnInvalidChildren(e,i),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.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=F(t,["children"]),r=B({},n);return o&&(r=this.mapChildrenToProps(o,r)),i().createElement(e,r)},W(o,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),o}(i().Component),t.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o}(c()((function(e){return{baseTag:Y([S,O],e),bodyAttributes:$(f,e),defer:K(e,I),encode:K(e,k),htmlAttributes:$(m,e),linkTags:q(v.LINK,[T,S],e),metaTags:q(v.META,[x,y,b,R,_],e),noscriptTags:q(v.NOSCRIPT,[C],e),onChangeClientState:V(e),scriptTags:q(v.SCRIPT,[E,C],e),styleTags:q(v.STYLE,[w],e),title:Z(e),titleAttributes:$(g,e)}}),(function(e){oe&&ee(oe),e.defer?oe=J((function(){ne(e,(function(){oe=null}))})):(ne(e),oe=null)}),de)((function(){return null})));ue.renderStatic=ue.rewind;const pe=ue;var fe=o(4184),me=o.n(fe);const ge=/(?<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,ve=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,ye=new Map;let we;const Se=["th","st","nd","rd"];function be(e){const t=e%100;return`${e}${Se[(t-20)%10]??Se[t]??Se[0]}`}function Ce(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=ye.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=ve.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(ge))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?we:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&ye.set(r,i)}if(null==t||ve.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=ye.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?we:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&ye.set(t,r)}return r}const l=i.formatToParts(e);return t.replace(ge,((t,o,n,r,i,a,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=l.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return be(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){return` ${(s("short").formatToParts(e).find((e=>"dayPeriod"===e.type))??n)?.value??""}`}return n?.value??""}return""}))}const _e={"--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":"10px","--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 xe(e){return`--column-${e}-color`}function Re(e={}){const t={};return Object.keys(e).forEach((o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]})),function(e={}){return{..._e,...e}}(t)}const Te="commit-node",Ee="merge-conflict-node",Oe="merge-node",Me="unsupported-rebase-warning-node",ze="stash-node",Ie="work-dir-changes";var ke=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(ke||{}),Pe=o(6243);function Ge(e,t){if(null==e)return{};var o,n,r={},i=Pe(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var Ae=o(5940),Le=o(2863);function De(e,t){return De=Le?Le.bind():function(e,t){return e.__proto__=t,e},De(e,t)}function Ne(e,t){e.prototype=Ae(t.prototype),e.prototype.constructor=e,De(e,t)}var He=o(8428);function We(){return We=He?He.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},We.apply(this,arguments)}var Be,Fe=o(2856),je=o.n(Fe),Ue=o(8853),Ze=o.n(Ue),Ve=o(644),$e={in:l().bool,mountOnEnter:l().bool,unmountOnExit:l().bool,appear:l().bool,timeout:l().number,onEnter:l().func,onEntering:l().func,onEntered:l().func,onExit:l().func,onExiting:l().func,onExited:l().func},Ye=((Be={})[Ve.d0]="in",Be[Ve.cn]="in",Be),qe=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Ge(e,["className","children"]);return i().createElement(Ve.ZP,n,(function(e,n){return i().cloneElement(o,We({},n,{className:me()("fade",t,o.props.className,Ye[e])}))}))},t}(i().Component);qe.propTypes=$e,qe.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const Ke=qe;var Xe=We({},je().propTypes,{show:l().bool,rootClose:l().bool,onHide:l().func,animation:l().oneOfType([l().bool,Ze()]),onEnter:l().func,onEntering:l().func,onEntered:l().func,onExit:l().func,onExiting:l().func,onExited:l().func,placement:l().oneOf(["top","right","bottom","left"])}),Qe={animation:Ke,rootClose:!1,show:!1,placement:"right"},Je=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,s=Ge(t,["animation","children"]),l=!0===o?Ke:o||null;return e=l?n:(0,r.cloneElement)(n,{className:me()(n.props.className,"in")}),i().createElement(je(),We({},s,{transition:l}),e)},t}(i().Component);Je.propTypes=Xe,Je.defaultProps=Qe;const et=Je;var tt=o(5638),ot=o.n(tt),nt=o(3562),rt=o.n(nt),it=o(1143),st=o.n(it),lt={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function at(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 ct(e,t){var o=(e.bsClass||"").trim();return null==o&&st()(!1),o+(t?"-"+t:"")}var ht=at((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=l().string,n.bsClass=e,t}));at((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=l().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=We({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),at((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=lt[e];t&&t!==e&&i.push(t),i.push(e)}));var s=l().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=We({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o}));function dt(e){var t,o=((t={})[ct(e)]=!0,t);e.bsSize&&(o[ct(e,lt[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[ct(e,e.bsStyle)]=!0),o}function ut(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function pt(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function ft(e){var t={};return rt()(e).forEach((function(e){var o=e[0],n=e[1];pt(o)||(t[o]=n)})),[ut(e),t]}var mt={id:ot()(l().oneOfType([l().string,l().number])),placement:l().oneOf(["top","right","bottom","left"]),positionTop:l().oneOfType([l().number,l().string]),positionLeft:l().oneOfType([l().number,l().string]),arrowOffsetTop:l().oneOfType([l().number,l().string]),arrowOffsetLeft:l().oneOfType([l().number,l().string]),title:l().node},gt=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,a=t.title,c=t.className,h=t.style,d=t.children,u=ft(Ge(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),p=u[0],f=u[1],m=We({},dt(p),((e={})[o]=!0,e)),g=We({display:"block",top:n,left:r},h),v={top:s,left:l};return i().createElement("div",We({},f,{role:"tooltip",className:me()(c,m),style:g}),i().createElement("div",{className:"arrow",style:v}),a&&i().createElement("h3",{className:ct(p,"title")},a),i().createElement("div",{className:ct(p,"content")},d))},t}(i().Component);gt.propTypes=mt,gt.defaultProps={placement:"right"};const vt=ht("popover",gt);var yt,wt=(yt=function(e,t){return yt=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])},yt(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}yt(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),St=function(){return St=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},St.apply(this,arguments)},bt={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"}},Ct=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 wt(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:St(St({position:"absolute",userSelect:"none"},bt[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),_t=o(3316),xt=o.n(_t),Rt=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)}}(),Tt=function(){return Tt=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},Tt.apply(this,arguments)},Et={width:"auto",height:"auto"},Ot=xt()((function(e,t,o){return Math.max(Math.min(e,o),t)})),Mt=xt()((function(e,t){return Math.round(e/t)*t})),zt=xt()((function(e,t){return new RegExp(e,"i").test(t)})),It=function(e){return Boolean(e.touches&&e.touches.length)},kt=xt()((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})),Pt=xt()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Gt=xt()((function(e){return"auto"===(e=e.toString())||Pt(e,"px")||Pt(e,"%")||Pt(e,"vh")||Pt(e,"vw")||Pt(e,"vmax")||Pt(e,"vmin")?e:e+"px"})),At=function(e,t,o,n){if(e&&"string"==typeof e){if(Pt(e,"px"))return Number(e.replace("px",""));if(Pt(e,"%"))return t*(Number(e.replace("%",""))/100);if(Pt(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(Pt(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Lt=xt()((function(e,t,o,n,r,i,s){return n=At(n,e.width,t,o),r=At(r,e.height,t,o),i=At(i,e.width,t,o),s=At(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)}})),Dt=["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"],Nt="__resizable_base__",Ht=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(Nt):t.className+=Nt,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 Rt(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||Et},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]&&Pt(e.propsSize[t].toString(),"%")){if(Pt(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 Gt(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Gt(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Gt(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&&zt("left",i),l=r&&zt("top",i);if("parent"===this.props.bounds){var a=this.parentNode;a&&(o=s?this.resizableRight-this.parentLeft:a.offsetWidth+(this.parentLeft-this.resizableLeft),n=l?this.resizableBottom-this.parentTop:a.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=l?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=l?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,l=this.props,a=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,h=l.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return zt("right",i)&&(d=s.width+(e-s.x)*n/o,a&&(u=(d-f)/this.ratio+p)),zt("left",i)&&(d=s.width-(e-s.x)*n/o,a&&(u=(d-f)/this.ratio+p)),zt("bottom",i)&&(u=s.height+(t-s.y)*n/o,a&&(d=(u-p)*this.ratio+f)),zt("top",i)&&(u=s.height-(t-s.y)*n/o,a&&(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,l=r.lockAspectRatioExtraWidth,a=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=l||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(a-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(a,f),w=Math.min(c,m),S=Math.max(h,g),b=Math.min(d,v);e=Ot(e,y,w),t=Ot(t,S,b)}else e=Ot(e,a,c),t=Ot(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,l=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=l}},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&&It(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 l=this.window.getComputedStyle(s).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var a={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Tt(Tt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(a)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&It(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=It(e)?e.touches[0].clientX:e.clientX,l=It(e)?e.touches[0].clientY:e.clientY,a=this.state,c=a.direction,h=a.original,d=a.width,u=a.height,p=this.getParentSize(),f=Lt(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,l),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),w=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=w.newWidth,g=w.newHeight,this.props.grid){var S=Mt(v,this.props.grid[0]),b=Mt(g,this.props.grid[1]),C=this.props.snapGap||0;v=0===C||Math.abs(S-v)<=C?S:v,g=0===C||Math.abs(b-g)<=C?b:g}this.props.snap&&this.props.snap.x&&(v=kt(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=kt(g,this.props.snap.y,this.props.snapGap));var _={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(Pt(d,"%"))v=v/p.width*100+"%";else if(Pt(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Pt(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(Pt(u,"%"))g=g/p.height*100+"%";else if(Pt(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(Pt(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var x={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?x.flexBasis=x.width:"column"===this.flexDir&&(x.flexBasis=x.height),this.setState(x),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:Tt(Tt({},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,i=t.handleClasses,s=t.handleWrapperStyle,l=t.handleWrapperClass,a=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?r.createElement(Ct,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:i&&i[t]},a&&a[t]?a[t]:null):null}));return r.createElement("div",{className:l,style:s},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Dt.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=Tt(Tt(Tt({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 r.createElement(n,Tt({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&r.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}(r.PureComponent);function Wt(e,t,o){return(e=e<=o?e:o)>=t?e:t}const Bt="bottom",Ft="left",jt="right",Ut="top",Zt={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Vt={min:0,max:1/0},$t=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:Wt(e,t.min,t.max),width:Wt(o,n.min,n.max)}),Yt=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...$t({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Ft||n===jt,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Ut||n===Bt});class qt extends i().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:Vt,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:Vt};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=Yt(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=Yt(e);this.setState(s);const{height:l,width:a}=s,c=i||t;!c||l===o&&a===r||c({height:l,width:a,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:l,vertical:a,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>$t({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=l&&d!==c,p=a&&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:s,style:l,translate:a,heightConstraints:c,wrapChildrenInDivContainer:h,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:v,isMouseWheeling:y}=this.state,{display:w,...S}=l,{min:b,max:C}=d,{min:_,max:x}=c,R={...this.props.wrapperStyle};f&&(R.width=v,R.minWidth=v),g&&(R.height=p,R.minHeight=p);const T=me()("resizable",t,{resizing:m}),E=me()("contents",n,`resize-edge-${r}`,{horizontal:f,vertical:g}),O=me()(r,s,"resizable-handle",{horizontal:f,vertical:g}),M=i().createElement("span",{title:a("ResizePanel")});return i().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...R,display:w}},i().createElement(Ht,{className:T,"data-testid":"resizable-core",enable:{...Zt,[r]:!y&&u},handleClasses:{[r]:O},handleComponent:{[r]:M},handleStyles:o,maxHeight:g?x:void 0,maxWidth:f?C:void 0,minHeight:g?_:void 0,minWidth:f?b:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?v:"100%"},style:S},h?i().createElement("div",{className:E,style:{userSelect:"none"}},e):e))}}const Kt="#199489",Xt=28,Qt=22,Jt=50*Xt,eo=2,to=28,oo=3,no=3,ro=Xt,io=22,so=22,lo=3,ao=Qt/2,co=so-2*eo,ho=5,uo=18,po=1,fo=10,mo=12,go=6,vo=3,yo=12,wo="timelineMessage",So="ref",bo="graph",Co="message",_o="author",xo="datetime",Ro="sha",To={[_o]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:50},[xo]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:50},[Co]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!1,listId:"commit-message-zone",minimumWidth:50},[Ro]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:50},[bo]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!1,listId:"commit-zone",minimumWidth:28+to},[So]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!1,listId:"ref-zone",minimumWidth:100}},Eo={hour:23,day:6,week:4,month:11,year:6},Oo={added:0,deleted:0,modified:0},Mo="pullRequest",zo="upstream",Io=[Mo,zo],ko={HEAD:"head",REMOTE:"remote",TAG:"tag"},Po=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Go(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function Ao(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,Io),null)}function Lo(e,t){if(t.id)return t.id;const o=t.owner||"";return e===ko.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function Do(e){return Lo(e.refType,e)}function No(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 Ho(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 Wo(e,t){let o=0;for(let n=0;n<e.length;n+=1){const r=e[n];t&&r.type===t||(o+=r.currentWidth)}return o}const Bo=(e,t)=>e===t[t.length-1].type;function Fo(e,t,o){return Wt(o,e.minimumWidth||0,e.maximumWidth&&!Bo(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function jo(e,t){return t.find((({type:t})=>t===e))}function Uo(e,t){return t.findIndex((({type:t})=>t===e))}function Zo(e,t,o){let n=0,r=0;const i=Uo(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),l=t[i].maximumWidth||Number.MAX_VALUE,a=Math.min(l,o-e-s);n=t[i].minimumWidth,r=a}return{min:n,max:r}}function Vo(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function $o(e){return!!e&&Object.values(e).some((e=>e>0))}function Yo(e){return 1===Object.keys(e).length}function qo(e,t){return!0===e[t]&&Yo(e)}function Ko(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:ko.HEAD}))):[],s=n?n.map((e=>({...e,refType:ko.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:ko.REMOTE}))):[],...s]}function Xo(e){const t=[];let o;for(let n=0;n<e.length;n+=1){let r=!1;o=e[n].fullName||e[n].name;for(let i=0;i<t.length;i+=1)if(t[i].length>0&&t[i][0].name===o){e[n].refType===ko.HEAD?t[i].unshift(e[n]):t[i].push(e[n]),r=!0;break}r||t.push([e[n]])}return t}class Qo{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=jo(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?Ko(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?Xo(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e){return function(e,t){return jo(e,t)?.currentWidth||To[e].minimumWidth}(e,this.props.graphZones)}isDateTimeZoneActive(){return!!this.getActiveGraphZone(xo)}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 Bo(e,this.props.graphZones)}getSelectedRefGroupByName(){if(Yo(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return Xo(Ko(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||!e.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===ko.TAG,s=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:l,tags:a,remotes:c}=!t.hasRefs||s&&!i?t.childRefs:t;if(!l.length&&!c.length&&!a.length)return!0;return!l.some((e=>e.name===n&&o.some((e=>e.refType===ko.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===ko.REMOTE&&t.owner===e.owner))))&&!a.some((e=>e.name===n&&o.some((e=>e.refType===ko.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return!!t&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return!!t&&qo(this.props.isSelectedBySha,t)}hasTimeline(e){return!!this.props.processedRows[e]?.timeLineEntry&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return Vo(e)}}function Jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var en=o(8149),tn=o.n(en),on=o(1629),nn=o.n(on),rn=o(6405),sn=o.n(rn);o(670);const ln=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 an(e,t){return tn()(t)?t.indexOf(e)>=0:e===t}var cn=l().oneOf(["click","hover","focus"]),hn=We({},et.propTypes,{trigger:l().oneOfType([cn,l().arrayOf(cn)]),delay:l().number,delayShow:l().number,delayHide:l().number,defaultOverlayShown:l().bool,overlay:l().node.isRequired,onBlur:l().func,onClick:l().func,onFocus:l().func,onMouseOut:l().func,onMouseOver:l().func,target:l().oneOf([null]),onHide:l().oneOf([null]),show:l().oneOf([null])}),dn=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(Jo(Jo(n))),n.handleDelayedShow=n.handleDelayedShow.bind(Jo(Jo(n))),n.handleDelayedHide=n.handleDelayedHide.bind(Jo(Jo(n))),n.handleHide=n.handleHide.bind(Jo(Jo(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}Ne(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(){sn().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||nn()(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 i().createElement(et,We({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){sn().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,s=e.onBlur,l=e.onClick,a=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Ge(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=i().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=ln(p.onClick,l),an("click",t)&&(f.onClick=ln(f.onClick,this.handleToggle)),an("hover",t)&&(f.onMouseOver=ln(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=ln(p.onMouseOut,c,this.handleMouseOut)),an("focus",t)&&(f.onFocus=ln(p.onFocus,a,this.handleDelayedShow),f.onBlur=ln(p.onBlur,s,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,r.cloneElement)(u,f)},t}(i().Component);dn.propTypes=hn,dn.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const un=dn;var pn={id:ot()(l().oneOfType([l().string,l().number])),placement:l().oneOf(["top","right","bottom","left"]),positionTop:l().oneOfType([l().number,l().string]),positionLeft:l().oneOfType([l().number,l().string]),arrowOffsetTop:l().oneOfType([l().number,l().string]),arrowOffsetLeft:l().oneOfType([l().number,l().string])},fn=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,a=t.className,c=t.style,h=t.children,d=ft(Ge(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),u=d[0],p=d[1],f=We({},dt(u),((e={})[o]=!0,e)),m=We({top:n,left:r},c),g={top:s,left:l};return i().createElement("div",We({},p,{role:"tooltip",className:me()(a,f),style:m}),i().createElement("div",{className:ct(u,"arrow"),style:g}),i().createElement("div",{className:ct(u,"inner")},h))},t}(i().Component);fn.propTypes=pn,fn.defaultProps={placement:"right"};const mn=ht("tooltip",fn);var gn=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:s,width:l}){const a={...o,background:`url(${s}) 0% 0% / ${r}px no-repeat`,height:n||r,width:l||r},c=["avatar","content-box",...e].join(" ").trim();return i().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Go(t),style:a})};function vn(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}}const yn=(e,t,o)=>e?((e,t)=>i().createElement("span",{className:"ref-avatar mr1"},i().createElement(gn,{context:t,size:14,url:e})))(e,o):t;function wn({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?i().createElement(un,{overlay:i().createElement(mn,{className:me()("bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):i().createElement(i().Fragment,null," ",e," ")}function Sn({hostingServiceType:e,icon:t,id:o,title:n}){return i().createElement(wn,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n&&""!==n.trim()?`#${o}: ${n}\nDouble-click to open pull request on ${vn(e)}`:""})}function bn({icon:e,type:t,upstream:o,tooltipText:n}){return i().createElement(wn,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function Cn({avatarUrl:e,context:t,icon:o,tooltipText:n}){return i().createElement(wn,{icon:yn(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var _n=function({name:e}){return i().createElement("span",{className:"ref-name truncate",style:{height:uo}},e)};function xn(e,t,o,n,r,s){const l=Ao(n,e,t,Mo);if(!l||0===l.length)return null;const a=l,c=[];for(let e=0;e<a.length;e+=1){const t=a[e],{context:l,hostingServiceType:h,id:d,title:u}=t,p={refId:n.id,type:Mo,data:t},f=i().createElement("span",{className:me()("mr1","ref-pull-request"),"data-vscode-context":Go(l),onClick:e=>r(e,p),onDoubleClick:e=>s(e,p)},o("pull-request"));c.push(i().createElement(Sn,{hostingServiceType:h,icon:f,id:d,title:u}))}return c}function Rn(e,t,o,n,r,s){const l=Ao(n,e,t,zo);if(!l||0===l.ahead&&0===l.behind)return null;const a=l,c={refId:n.id,type:zo,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 l,p;return d&&h?(l=`${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?(l=`${t} ${a.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(l=`${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),i().createElement(bn,{icon:i().createElement("div",{className:"ref-upstream","data-vscode-context":Go(u),onClick:e=>r(e,c),onDoubleClick:e=>s(e,c)},d?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:l,type:p,upstream:n})}return null}function Tn(e,t,o,n=0){const{refType:r,name:s}=t;let l,a,c="";switch(r){case ko.REMOTE:a=ko.REMOTE,l=t.avatarUrl,c=t.owner||"";break;case ko.TAG:a=ko.TAG,c=s||"";break;case ko.HEAD:default:a=ko.HEAD,c=o("Ref-Local")}const h=t.context||void 0,d=i().createElement("span",{className:me()("mr1"),"data-vscode-context":Go(h)},e(a));return i().createElement(Cn,{avatarUrl:l||"",context:h,icon:d,key:`ref-icon-${n}-${r}-${s}`,tooltipText:c})}function En(e,t,o){let n,r=!1,i=!1,s=!1;for(const l of e){if(l.refType===ko.HEAD)return o?l.contextGroup||t:l.context;l.refType===ko.REMOTE&&("origin"===l.owner?(r=!0,n=o?l.contextGroup||t:l.context):r||"upstream"!==l.owner?r||i||(s=!0,n=o?l.contextGroup||t:l.context):(i=!0,n=o?l.contextGroup||t:l.context)),r||i||s||(n=o?l.contextGroup||t:l.context)}return n}class On extends i().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:s,onMissingRefMetadata:l,refGroup:a,refGroupContext:c,refMetadata:h,onHovered:d,onHideRefClick:u,sha:p,enabledRefMetadataTypes:f,translate:m}=this.props,g=me()("ref-node-wrapper","flex"),v=me()("ref-node","flex","items-center","p1",{"has-active":e,"dim-ref":!t&&n,"is-active":e}),y=a.length?a[0].fullName||a[0].name:"",w=i().createElement(_n,{name:y}),S=[],b=[];let C=null;for(let e=0;e<a.length;e+=1){if(S.push(Tn(o,a[e],m,e)),f.includes(Mo)&&a[e].refType===ko.REMOTE){const t=xn(h,l,o,a[e],this.onClickMetadata,this.onDoubleClickMetadata);t&&b.push(...t)}f.includes(zo)&&a[e].refType===ko.HEAD&&(C=Rn(h,l,o,a[e],this.onClickMetadata,this.onDoubleClickMetadata))}const _=[...S,...b],x=a.some((e=>e.refType===ko.HEAD&&e.isCurrentHead)),R=!e||n&&!x?null:i().createElement(wn,{icon:i().createElement("span",{className:me()("mr1")},o("check")),tooltipId:"ref-icon-current",tooltipText:m("Ref-Current")}),T=En(a,c),E=En(a,c,!0),O=!x&&n&&!s?i().createElement(wn,{icon:i().createElement("span",{className:me()("mr1","button"),onClick:e=>u(e,a,p)},o("hide")),tooltipId:`ref-node-toggle-visibility-btn-${y}`,tooltipText:m("Hide")}):null;return i().createElement("span",{className:g,"data-vscode-context":Go(E),style:{minWidth:0,marginLeft:3,marginRight:3}},i().createElement("span",{className:v,"data-test-class":"ref-node-span","data-vscode-context":Go(T),onClick:this.onClick,onContextMenu:r?void 0:this.onContextMenu,onDoubleClick:r?void 0:this.onDoubleClick,onMouseEnter:e=>d(e,a,p),style:{height:Qt,minWidth:"100%"}},R,i().createElement("span",{className:"flex items-center"},_),w,C,i().createElement("span",{className:"flex ml-auto"},O)))}}class Mn extends i().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===ko.REMOTE?-1:0}render(){const{enableResizer:e,getExternalIcon:t,graphWidth:o,graphZones:n,graphZoneType:r,excludeRefsById:s,includeOnlyRefsById:l,isDraggable:a,onHover:c,onResize:h,onResizeEnd:d,onResizeFromPropChange:u,onResizeStart:p,onUnhover:f,showRemoteNamesOnRefs:m,translate:g}=this.props,{showPopoverMenu:v,refPopoverMenuTarget:y}=this.state,w=jo(r,n);if(!w)return null;const S=Bo(r,n);let b=null,C=null;if(r===So){const e=Object.entries(s),o=Object.values(l),n=o.length>0,r=n&&o.some((e=>e.type===ko.TAG)),a=e.filter((e=>e[1].type===ko.TAG&&(!n||!r)||!l[e[0]]));a.length>0&&(C=a.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,o)=>{const n=e[0],r=e[1];s[n].id=n;const l={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},a=!m&&"*"!==l.name||l.refType!==ko.REMOTE?l.name:`${l.owner}/${l.name}`;return i().createElement("li",{id:n,key:n,onClick:e=>this.onShowRefNodes(e,[s[n]],!0)},Tn(t,l,g,o),i().createElement("span",{className:"text-ellipsis"},a))})),b=i().createElement("div",{className:me()("right","text-normal","button",v?"active":null)},i().createElement(wn,{icon:i().createElement("span",{onClick:this.onHiddenRefsClick},t("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:g("GraphHeader-HiddenRefs-btn")})))}const _=`${r}-header`,x=i().createElement("div",{onMouseEnter:c,onMouseLeave:f},b,i().createElement(et,{container:this,onHide:v?this.onHiddenRefsClick:void 0,placement:v?"bottom":void 0,rootClose:v,show:v,target:y},i().createElement(vt,{id:"opts-popover",style:{display:v?"block":"none"}},i().createElement("ul",null,C))),i().createElement("div",{className:"text-ellipsis font-monospace text-disabled"},i().createElement("span",{className:"ml1 fs-1"},g(w.headerLabelUntranslated)))),R=me()("panel-bg0","graph-header",{"is-draggable":a});return S?i().createElement("div",{className:R,id:_,key:_,style:{minWidth:w.currentWidth-4,transform:"translate3d(0, 0, 0)",zIndex:2}},x):i().createElement("div",{className:R,id:_,key:_,style:{display:"flex",minWidth:w.currentWidth,transform:"translate3d(0, 0, 0)",width:w.currentWidth,zIndex:2}},i().createElement(qt,{className:R,enable:e,handleStyles:{right:{right:0}},height:22,onResize:h?e=>h(w,e):void 0,onResizeEnd:d?e=>d(w,e):void 0,onResizeFromPropChange:u?e=>u(w,e):void 0,onResizeStart:p?e=>p(w,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:g,width:w.currentWidth,widthConstraints:Zo(r,n,o)},x))}}const zn=Mn;var In=o(977),kn=o.n(In);const Pn="dnd-container";class Gn extends i().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&&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=>!!e?.classList.contains(Pn);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>!!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=kn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{i().isValidElement(e)&&this.addChildReactElement(e)})):i().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!!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=me()(Pn,t);return i().createElement("div",{className:o,ref:this.dndDecorator},e)}}var An=Gn;class Ln extends i().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:s,onGraphZoneResize:l,onGraphZoneResizeEnd:a,onGraphZoneResizeFromPropChange:c,onToggleRefNodesShown:h,graphZones:d,repoPath:u,showRemoteNamesOnRefs:p,translate:f,width:m,height:g}=this.props,v=i().createElement("div",{className:"panel-bg0",style:{height:22,marginBottom:2,marginLeft:-7,minWidth:11}});return i().createElement("div",{className:"graph-header flex","data-vscode-context":Go(e),onContextMenu:s?()=>s(m):void 0,style:{height:22,marginBottom:2}},v,i().createElement(An,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,onDrop:this.onDrop},d.map((e=>i().createElement(zn,{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:l,onResizeEnd:a,onResizeFromPropChange:c,onToggleRefNodesShown:h,onUnhover:this.onZoneUnHover,repoPath:u,showRemoteNamesOnRefs:p,translate:f})))))}}var Dn=Ln;function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hn(e){return Hn="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},Hn(e)}function Wn(e){var t=function(e,t){if("object"!==Hn(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==Hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hn(t)?t:String(t)}function Bn(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,Wn(n.key),n)}}function Fn(e,t,o){return t&&Bn(e.prototype,t),o&&Bn(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Un(e,t){if(t&&("object"===Hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jn(e)}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zn(e)}function Vn(e,t){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vn(e,t)}function $n(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&&Vn(e,t)}function Yn(e,t,o){return(t=Wn(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var qn=o(6871);function Kn(){return Kn=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},Kn.apply(this,arguments)}function Xn(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=Xn(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const Qn=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=Xn(e))&&(n&&(n+=" "),n+=t);return n};function Jn(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,l=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),a>=0&&a===l&&c())}function er(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 tr=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;Nn(this,e),Yn(this,"_cellSizeAndPositionData",{}),Yn(this,"_lastMeasuredIndex",-1),Yn(this,"_lastBatchedIndex",-1),Yn(this,"_cellCount",void 0),Yn(this,"_cellSizeGetter",void 0),Yn(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return Fn(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,l=this.getSizeAndPositionOfCell(i),a=l.offset,c=a-n+l.size;switch(o){case"start":s=a;break;case"end":s=c;break;case"center":s=a-(n-l.size)/2;break;default:s=Math.max(c,Math.min(a,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}(),or=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},nr=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?or():o,r=er(t,["maxScrollSize"]);Nn(this,e),Yn(this,"_cellSizeAndPositionManager",void 0),Yn(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new tr(r),this._maxScrollSize=n}return Fn(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 rr(){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})),l=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&&l&&n(r)}}var ir=-1,sr=1;function lr(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,l=e.previousSize,a=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!==l||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<l||f<n)&&a>o.getTotalSize()-d&&p(f-1)}const ar=!("undefined"==typeof window||!window.document||!window.document.createElement);var cr,hr;function dr(e){if((!cr&&0!==cr||e)&&ar){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),cr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cr}var ur,pr,fr=(hr="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||hr.webkitRequestAnimationFrame||hr.mozRequestAnimationFrame||hr.oRequestAnimationFrame||hr.msRequestAnimationFrame||function(e){return hr.setTimeout(e,1e3/60)},mr=hr.cancelAnimationFrame||hr.webkitCancelAnimationFrame||hr.mozCancelAnimationFrame||hr.oCancelAnimationFrame||hr.msCancelAnimationFrame||function(e){hr.clearTimeout(e)},gr=fr,vr=mr,yr=function(e){return vr(e.id)},wr=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:gr((function r(){Date.now()-o>=t?e.call():n.id=gr(r)}))};return n};function Sr(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 br(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Sr(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Sr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Cr="observed",_r="requested",xr=(pr=ur=function(e){function t(e){var o;Nn(this,t),Yn(jn(o=Un(this,Zn(t).call(this,e))),"_onGridRenderedMemoizer",rr()),Yn(jn(o),"_onScrollMemoizer",rr(!1)),Yn(jn(o),"_deferredInvalidateColumnIndex",null),Yn(jn(o),"_deferredInvalidateRowIndex",null),Yn(jn(o),"_recomputeScrollLeftFlag",!1),Yn(jn(o),"_recomputeScrollTopFlag",!1),Yn(jn(o),"_horizontalScrollBarSize",0),Yn(jn(o),"_verticalScrollBarSize",0),Yn(jn(o),"_scrollbarPresenceChanged",!1),Yn(jn(o),"_scrollingContainer",void 0),Yn(jn(o),"_childrenToDisplay",void 0),Yn(jn(o),"_columnStartIndex",void 0),Yn(jn(o),"_columnStopIndex",void 0),Yn(jn(o),"_rowStartIndex",void 0),Yn(jn(o),"_rowStopIndex",void 0),Yn(jn(o),"_renderedColumnStartIndex",0),Yn(jn(o),"_renderedColumnStopIndex",0),Yn(jn(o),"_renderedRowStartIndex",0),Yn(jn(o),"_renderedRowStopIndex",0),Yn(jn(o),"_initialScrollTop",void 0),Yn(jn(o),"_initialScrollLeft",void 0),Yn(jn(o),"_disablePointerEventsTimeoutId",void 0),Yn(jn(o),"_styleCache",{}),Yn(jn(o),"_cellCache",{}),Yn(jn(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),Yn(jn(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}})})),Yn(jn(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),Yn(jn(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),Yn(jn(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new nr({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new nr({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:sr,scrollDirectionVertical:sr,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 $n(t,e),Fn(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,l=br({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{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,l=i.autoWidth,a=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-a+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?sr:ir:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?sr:ir:this.state.scrollDirectionVertical,scrollPositionChangeReason:Cr};s||(g.scrollTop=m),l||(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,l=n.width,a=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-l+a),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+a),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?sr:ir:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?sr:ir:this.state.scrollDirectionVertical,scrollPositionChangeReason:_r};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,l=i.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(this.state.scrollDirectionHorizontal===sr?o<=s:o>=s),this._recomputeScrollTopFlag=l>=0&&(this.state.scrollDirectionVertical===sr?r<=l:r>=l),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,l=s.scrollLeft,a=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(br({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(br({},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:l,g="number"!=typeof u?u:a;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,l=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=br({},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&&a>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=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,l=n.height,a=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||a>0&&0===e.rowCount;m===_r&&(!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 w=(0===e.width||0===e.height)&&l>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):lr({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:w,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):lr({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:l,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),b=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:b,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&yr(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,i=e.className,s=e.containerProps,l=e.containerRole,a=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,w=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var b=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),_=C>c?v.scrollbarSize:0,x=b>m?v.scrollbarSize:0;x===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=x,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),S.overflowX=b+_<=m?"hidden":"auto",S.overflowY=C+x<=c?"hidden":"auto";var R=this._childrenToDisplay,T=0===R.length&&c>0&&m>0;return r.createElement("div",Kn({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Qn("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:br({},S,{},p),tabIndex:f}),R.length>0&&r.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:br({width:t?"auto":b,height:C,maxWidth:b,maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},a)},R),T&&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,l=e.overscanColumnCount,a=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 w=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),b=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var _=a({direction:"horizontal",cellCount:r,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),x=a({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),R=_.overscanStartIndex,T=_.overscanStopIndex,E=x.overscanStartIndex,O=x.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=E;M<=O;M++)if(!i.has(M,0)){R=0,T=r-1;break}if(!i.hasFixedWidth())for(var z=R;z<=T;z++)if(!i.has(0,z)){E=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:R,columnStopIndex:T,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:w,visibleRowIndices:S}),this._columnStartIndex=R,this._columnStopIndex=T,this._rowStartIndex=E,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&yr(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=wr(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,l=s.height;(0,s.onScroll)({clientHeight:l,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}),Jn({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)}}),Jn({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,br({},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:_r};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?sr:ir,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?sr:ir,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,l=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=a.rowSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&d>n?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:l,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,l=t.scrollTop,a=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=a.columnSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&d>s?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:l,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}(r.PureComponent),Yn(ur,"propTypes",null),pr);Yn(xr,"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,l=e.horizontalOffsetAdjustment,a=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=[],w=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!a&&!w,b=u;b<=p;b++)for(var C=d.getSizeAndPositionOfCell(b),_=r;_<=i;_++){var x=n.getSizeAndPositionOfCell(_),R=_>=g.start&&_<=g.stop&&b>=v.start&&b<=v.stop,T="".concat(b,"-").concat(_),E=void 0;S&&f[T]?E=f[T]:s&&!s.has(b,_)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:C.size,left:x.offset+l,position:"absolute",top:C.offset+m,width:x.size},f[T]=E);var O={columnIndex:_,isScrolling:a,isVisible:R,key:T,parent:h,rowIndex:b,style:E},M=void 0;!c&&!a||l||m?M=o(O):(t[T]||(t[T]=o(O)),M=t[T]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:dr,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===sr?{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,qn.polyfill)(xr);const Rr=xr;var Tr=1;function Er(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),n===Tr?{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 Or,Mr;function zr(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 Ir=(Mr=Or=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Yn(jn(o),"_columnStartIndex",0),Yn(jn(o),"_columnStopIndex",0),Yn(jn(o),"_rowStartIndex",0),Yn(jn(o),"_rowStopIndex",0),Yn(jn(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var l=o._getScrollState(),a=l.scrollToColumn,c=l.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===a&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),Yn(jn(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 $n(t,e),Fn(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(),i=n.scrollToColumn,s=n.scrollToRow;return r.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:s}))}},{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?zr(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):zr(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}(r.PureComponent),Yn(Or,"propTypes",null),Mr);Yn(Ir,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,qn.polyfill)(Ir);function kr(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)}}(),l=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},a=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;l(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__),l(t),t.addEventListener("scroll",a,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&l(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",a,!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 Pr,Gr;function Ar(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 Lr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ar(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ar(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Dr=(Gr=Pr=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),Yn(jn(o),"_parentNode",void 0),Yn(jn(o),"_autoSizer",void 0),Yn(jn(o),"_window",void 0),Yn(jn(o),"_detectElementResize",void 0),Yn(jn(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,l=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,h=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,u=i-h-d,p=s-a-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-a-c}),r({height:i,width:s}))}})),Yn(jn(o),"_setRef",(function(e){o._autoSizer=e})),o}return $n(t,e),Fn(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=kr(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,i=e.disableWidth,s=e.style,l=this.state,a=l.height,c=l.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=a),i||(h.width=0,d.width=c),r.createElement("div",{className:o,ref:this._setRef,style:Lr({},h,{},s)},t(d))}}]),t}(r.Component),Yn(Pr,"propTypes",null),Gr);Yn(Dr,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Nr,Hr,Wr=(Hr=Nr=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"_child",void 0),Yn(jn(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,l=void 0===s?o.props.index||0:s,a=o._getCellMeasurements(),c=a.height,h=a.width;c===t.getHeight(l,r)&&h===t.getWidth(l,r)||(t.set(l,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:l}))})),Yn(jn(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return $n(t,e),Fn(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,rn.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 l=this._getCellMeasurements(),a=l.height,c=l.width;t.set(s,n,c,a),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(r.PureComponent),Yn(Nr,"propTypes",null),Hr);Yn(Wr,"__internalCellMeasurerFlag",!1);function Br(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 Fr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Br(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Br(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var jr={OBSERVED:"observed",REQUESTED:"requested"},Ur=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Yn(jn(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),Yn(jn(o),"_onSectionRenderedMemoizer",rr()),Yn(jn(o),"_onScrollMemoizer",rr(!1)),Yn(jn(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),Yn(jn(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Yn(jn(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,l=o.state,a=l.scrollLeft,c=l.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:a,scrollTop:c,width:s});h.scrollLeft===a&&h.scrollTop===c||o._setScrollPosition(h)}})),Yn(jn(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,l=o._scrollbarSize,a=n.getTotalSize(),c=a.height,h=a.width,d=Math.max(0,Math.min(h-s+l,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+l,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?jr.OBSERVED:jr.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=dr(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return $n(t,e),Fn(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=dr(),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,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,l=this.state,a=l.scrollLeft,c=l.scrollPositionChangeReason,h=l.scrollTop;c===jr.REQUESTED&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),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,i=e.className,s=e.height,l=e.horizontalOverscanSize,a=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,w=v.width,S=Math.max(0,m-l),b=Math.max(0,g-d),C=Math.min(w,m+u+l),_=Math.min(y,g+s+d),x=s>0&&u>0?n.cellRenderers({height:_-b,isScrolling:f,width:C-S,x:S,y:b}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":s,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},T=y>s?this._scrollbarSize:0,E=w>u?this._scrollbarSize:0;return R.overflowX=w+T<=u?"hidden":"auto",R.overflowY=y+E<=s?"hidden":"auto",r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Qn("ReactVirtualized__Collection",i),id:a,onScroll:this._onScroll,role:"grid",style:Fr({},R,{},h),tabIndex:0},o>0&&r.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:w,overflow:"hidden",pointerEvents:f?"none":"",width:w}},x),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,l=s.height;(0,s.onScroll)({clientHeight:l,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:jr.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:jr.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:jr.REQUESTED}}}]),t}(r.PureComponent);Yn(Ur,"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}),Ur.propTypes={},(0,qn.polyfill)(Ur);const Zr=Ur;var Vr=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;Nn(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Fn(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}(),$r=100,Yr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$r;Nn(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Fn(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),l=Math.floor(r/this._sectionSize),a=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=l;d<=a;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new Vr({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 qr(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,l=n,a=l-i+r;switch(o){case"start":return l;case"end":return a;case"center":return l-(i-r)/2;default:return Math.max(a,Math.min(l,s))}}var Kr=function(e){function t(e,o){var n;return Nn(this,t),(n=Un(this,Zn(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(jn(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(jn(n)),n}return $n(t,e),Fn(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=Kn({},this.props);return r.createElement(Zr,Kn({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 Yr(n),s=0,l=0,a=0;a<t;a++){var c=o({index:a});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(a,":\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),l=Math.max(l,c.x+c.width),r[a]=c,i.registerCell({cellMetadatum:c,index:a})}return{cellMetadata:r,height:s,sectionManager:i,width:l}}({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,l=this.props.cellCount;if(o>=0&&o<l){var a=this._cellMetadata[o];r=qr({align:t,cellOffset:a.x,cellSize:a.width,containerSize:s,currentOffset:r,targetIndex:o}),i=qr({align:t,cellOffset:a.y,cellSize:a.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,l=this.props,a=l.cellGroupRenderer,c=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),a({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}(r.PureComponent);Yn(Kr,"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}))}}),Kr.propTypes={};(function(e){function t(e,o){var n;return Nn(this,t),(n=Un(this,Zn(t).call(this,e,o)))._registerChild=n._registerChild.bind(jn(n)),n}return $n(t,e),Fn(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,l=o?Math.min(o,i):i,a=i/r;return a=Math.max(s,a),a=Math.min(l,a),a=Math.floor(a),t({adjustedWidth:Math.min(i,a*r),columnWidth:a,getColumnWidth:function(){return a},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}(r.PureComponent)).propTypes={};function Xr(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 Qr(e,t){if(e){if("string"==typeof e)return Xr(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)?Xr(e,t):void 0}}function Jr(e){return function(e){if(Array.isArray(e))return Xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qr(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 ei=function(e){function t(e,o){var n;return Nn(this,t),(n=Un(this,Zn(t).call(this,e,o)))._loadMoreRowsMemoizer=rr(),n._onRowsRendered=n._onRowsRendered.bind(jn(n)),n._registerChild=n._registerChild.bind(jn(n)),n}return $n(t,e),Fn(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=rr(),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,l=r.rowCount,a=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],l=null,a=null,c=r;c<=i;c++){t({index:c})?null!==a&&(s.push({startIndex:l,stopIndex:a}),l=a=null):(a=c,null===l&&(l=c))}if(null!==a){for(var h=Math.min(Math.max(a,l+o-1),n-1),d=a+1;d<=h&&!t({index:d});d++)a=d;s.push({startIndex:l,stopIndex:a})}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:l,startIndex:Math.max(0,e-a),stopIndex:Math.min(l-1,t+a)}),h=(o=[]).concat.apply(o,Jr(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}(r.PureComponent);Yn(ei,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),ei.propTypes={};var ti,oi,ni=(oi=ti=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),Yn(jn(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,l=e.key,a=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),a({index:n,style:r,isScrolling:i,isVisible:s,key:l,parent:t})})),Yn(jn(o),"_setRef",(function(e){o.Grid=e})),Yn(jn(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Yn(jn(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),Yn(jn(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 $n(t,e),Fn(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,i=e.width,s=Qn("ReactVirtualized__List",t);return r.createElement(Rr,Kn({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(r.PureComponent),Yn(ti,"propTypes",null),oi);function ri(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,l=[],a=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;a=!1}else for(;!(a=(n=i.call(o)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{if(!a&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return l}}(e,t)||Qr(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.")}()}Yn(ni,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Er,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ii={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 si=0,li=1;function ai(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 ci=ai.prototype;function hi(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 di(e,t){var o=Si(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 ui(e,t){var o=e.intervals([]);o.push(t),di(e,o)}function pi(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?si:(o.splice(n,1),di(e,o),li)}function fi(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 mi(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 gi(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function vi(e,t){return e-t}function yi(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function wi(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function Si(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(vi);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var l=e[o];l[1]<n?r.push(l):n<l[0]?i.push(l):s.push(l)}var a=s,c=s.slice();return a.sort(yi),c.sort(wi),new ai(n,Si(r),Si(i),a,c)}function bi(e){this.root=e}ci.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},ci.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)?ui(this,e):this.left.insert(e):this.left=Si([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?ui(this,e):this.right.insert(e):this.right=Si([e]);else{var o=ii.ge(this.leftPoints,e,yi),n=ii.ge(this.rightPoints,e,wi);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},ci.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)?pi(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,li):(i===li&&(this.count-=1),i):si;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?pi(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,li):(i===li&&(this.count-=1),i):si;if(1===this.count)return this.leftPoints[0]===e?2:si;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}hi(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?hi(this,this.left):hi(this,this.right);return li}for(r=ii.ge(this.leftPoints,e,yi);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=ii.ge(this.rightPoints,e,wi);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),li}return si},ci.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return fi(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return mi(this.rightPoints,e,t)}return gi(this.leftPoints,t)},ci.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?fi(this.leftPoints,t,o):e>this.mid?mi(this.rightPoints,e,o):gi(this.leftPoints,o)};var Ci=bi.prototype;Ci.insert=function(e){this.root?this.root.insert(e):this.root=new ai(e[0],null,null,[e],[e])},Ci.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==si}return!1},Ci.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ci.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ci,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ci,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var _i,xi,Ri=function(){function e(){var t;Nn(this,e),Yn(this,"_columnSizeMap",{}),Yn(this,"_intervalTree",t&&0!==t.length?new bi(Si(t)):new bi(null)),Yn(this,"_leftMap",{})}return Fn(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=ri(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 Ti(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 Ei(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ti(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ti(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Oi=(xi=_i=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),Yn(jn(o),"_debounceResetIsScrollingId",void 0),Yn(jn(o),"_invalidateOnUpdateStartIndex",null),Yn(jn(o),"_invalidateOnUpdateStopIndex",null),Yn(jn(o),"_positionCache",new Ri),Yn(jn(o),"_startIndex",null),Yn(jn(o),"_startIndexMemoized",null),Yn(jn(o),"_stopIndex",null),Yn(jn(o),"_stopIndexMemoized",null),Yn(jn(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),Yn(jn(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),Yn(jn(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 $n(t,e),Fn(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ri,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 Ri,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&&yr(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,i=o.cellCount,s=o.cellMeasurerCache,l=o.cellRenderer,a=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,w=y.isScrolling,S=y.scrollTop,b=[],C=this._getEstimatedTotalHeight(),_=this._positionCache.shortestColumnSize,x=this._positionCache.count,R=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var i;void 0===e?(R=o,e=o):(R=Math.min(R,o),e=Math.max(e,o)),b.push(l({index:o,isScrolling:w,key:d(o),parent:t,style:(i={height:s.getHeight(o)},Yn(i,"ltr"===v?"left":"right",n),Yn(i,"position","absolute"),Yn(i,"top",r),Yn(i,"width",s.getWidth(o)),i)}))})),_<S+c+u&&x<i)for(var T=Math.min(i-x,Math.ceil((S+c+u-_)/s.defaultHeight*g/s.defaultWidth)),E=x;E<x+T;E++)e=E,b.push(l({index:E,isScrolling:w,key:d(E),parent:this,style:{width:s.getWidth(E)}}));return this._startIndex=R,this._stopIndex=e,r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Qn("ReactVirtualized__Masonry",a),id:h,onScroll:this._onScroll,role:p,style:Ei({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:C<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},r.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:C,maxWidth:"100%",maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},b))}},{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&&yr(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=wr(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),l=s.left,a=s.top;this._positionCache.setPosition(i,l,a,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}(r.PureComponent),Yn(_i,"propTypes",null),xi);function Mi(){}Yn(Oi,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Mi,onScroll:Mi,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,qn.polyfill)(Oi);var zi=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Nn(this,e),Yn(this,"_cellMeasurerCache",void 0),Yn(this,"_columnIndexOffset",void 0),Yn(this,"_rowIndexOffset",void 0),Yn(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),Yn(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,l=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=l}return Fn(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 Ii(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 ki(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ii(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ii(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Pi=20,Gi=function(e){function t(e,o){var n;Nn(this,t),Yn(jn(n=Un(this,Zn(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Yn(jn(n),"_deferredInvalidateColumnIndex",null),Yn(jn(n),"_deferredInvalidateRowIndex",null),Yn(jn(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),Yn(jn(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),Yn(jn(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=er(e,["rowIndex"]),i=n.props,s=i.cellRenderer,l=i.fixedRowCount;return t===i.rowCount-l?r.createElement("div",{key:o.key,style:ki({},o.style,{height:Pi})}):s(ki({},o,{parent:jn(n),rowIndex:t+l}))})),Yn(jn(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=er(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,l=i.fixedColumnCount,a=i.fixedRowCount;return s(ki({},r,{columnIndex:t+l,parent:jn(n),rowIndex:o+a}))})),Yn(jn(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=er(e,["columnIndex"]),i=n.props,s=i.cellRenderer,l=i.columnCount,a=i.fixedColumnCount;return t===l-a?r.createElement("div",{key:o.key,style:ki({},o.style,{width:Pi})}):s(ki({},o,{columnIndex:t+a,parent:jn(n)}))})),Yn(jn(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,l=n.state,a=l.scrollbarSize;return l.showHorizontalScrollbar&&t===r-i?a:"function"==typeof s?s({index:t+i}):s})),Yn(jn(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)})),Yn(jn(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(t!==s||r!==l){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var a=n.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:r})}})),Yn(jn(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),Yn(jn(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),Yn(jn(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,l=n.state,a=l.scrollbarSize;return l.showVerticalScrollbar&&t===i-r?a:"function"==typeof s?s({index:t+r}):s})),Yn(jn(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),Yn(jn(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var i=e.deferredMeasurementCache,s=e.fixedColumnCount,l=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),i&&(n._deferredMeasurementCacheBottomLeftGrid=l>0?new zi({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,n._deferredMeasurementCacheBottomRightGrid=s>0||l>0?new zi({cellMeasurerCache:i,columnIndexOffset:s,rowIndexOffset:l}):i,n._deferredMeasurementCacheTopRightGrid=s>0?new zi({cellMeasurerCache:i,columnIndexOffset:s,rowIndexOffset:0}):i),n}return $n(t,e),Fn(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,l=i.fixedRowCount,a=Math.max(0,o-s),c=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,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),i=(e.scrollTop,e.scrollToRow),s=er(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,a=l.scrollLeft,c=l.scrollTop;return r.createElement("div",{style:this._containerOuterStyle},r.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(s),this._renderTopRightGrid(ki({},s,{onScroll:t,scrollLeft:a}))),r.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(ki({},s,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(ki({},s,{onScroll:t,onSectionRendered:o,scrollLeft:a,scrollToColumn:n,scrollToRow:i,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,l=t.fixedRowCount,a=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||l!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=ki({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=ki({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=ki({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=ki({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=ki({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=a,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,i=e.rowCount,s=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!o)return null;var a=l?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=s?h+d:h,p=r.createElement(Rr,Kn({},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,i-n)+a,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return s?r.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:ki({},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,i=e.rowCount,s=e.scrollToColumn,l=e.scrollToRow;return r.createElement(Rr,Kn({},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,i-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:s-o,scrollToRow:l-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?r.createElement(Rr,Kn({},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,i=e.fixedRowCount,s=e.scrollLeft,l=e.hideTopRightGridScrollbar,a=this.state,c=a.showHorizontalScrollbar,h=a.scrollbarSize;if(!i)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;l&&(m=u+f,g=ki({},this._topRightGridStyle,{left:0}));var v=r.createElement(Rr,Kn({},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:i,scrollLeft:s,style:g,tabIndex:null,width:p}));return l?r.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:ki({},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}(r.PureComponent);Yn(Gi,"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}),Gi.propTypes={},(0,qn.polyfill)(Gi);(function(e){function t(e,o){var n;return Nn(this,t),(n=Un(this,Zn(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(jn(n)),n}return $n(t,e),Fn(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,l=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:l})}},{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}(r.PureComponent)).propTypes={};function Ai(e){var t=e.className,o=e.columns,n=e.style;return r.createElement("div",{className:t,role:"row",style:n},o)}Ai.propTypes=null;const Li={ASC:"ASC",DESC:"DESC"};function Di(e){var t=e.sortDirection,o=Qn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Li.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Li.DESC});return r.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Li.ASC?r.createElement("path",{d:"M7 14l5-5 5 5z"}):r.createElement("path",{d:"M7 10l5 5 5-5z"}),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Ni(e){var t=e.dataKey,o=e.label,n=e.sortBy,i=e.sortDirection,s=n===t,l=[r.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return s&&l.push(r.createElement(Di,{key:"SortIndicator",sortDirection:i})),l}function Hi(e){var t=e.className,o=e.columns,n=e.index,i=e.key,s=e.onRowClick,l=e.onRowDoubleClick,a=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(s||l||a||c||h)&&(p["aria-label"]="row",p.tabIndex=0,s&&(p.onClick=function(e){return s({event:e,index:n,rowData:d})}),l&&(p.onDoubleClick=function(e){return l({event:e,index:n,rowData:d})}),a&&(p.onMouseOut=function(e){return a({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})})),r.createElement("div",Kn({},p,{className:t,key:i,role:"row",style:u}),o)}Di.propTypes={},Ni.propTypes=null,Hi.propTypes=null;var Wi=function(e){function t(){return Nn(this,t),Un(this,Zn(t).apply(this,arguments))}return $n(t,e),t}(r.Component);function Bi(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 Fi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Bi(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Bi(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Yn(Wi,"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:Li.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ni,style:{}}),Wi.propTypes={};var ji=function(e){function t(e){var o;return Nn(this,t),(o=Un(this,Zn(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(jn(o)),o._createRow=o._createRow.bind(jn(o)),o._onScroll=o._onScroll.bind(jn(o)),o._onSectionRendered=o._onSectionRendered.bind(jn(o)),o._setRef=o._setRef.bind(jn(o)),o}return $n(t,e),Fn(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,rn.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,i=t.disableHeader,s=t.gridClassName,l=t.gridStyle,a=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,w=i?h:h-a,S="function"==typeof p?p({index:-1}):p,b="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],r.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Fi({overflow:"hidden"},n)})),r.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":r.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:Qn("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!i&&c({className:Qn("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Fi({height:a,overflow:"hidden",paddingRight:y,width:v},b)}),r.createElement(Rr,Kn({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Qn("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:w,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Fi({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,i=e.parent,s=e.rowData,l=e.rowIndex,a=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:s}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:i,rowData:s,rowIndex:l}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return r.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:Qn("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){a&&a({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,i,s,l=e.column,a=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=l.props,v=g.columnData,y=g.dataKey,w=g.defaultSortDirection,S=g.disableSort,b=g.headerRenderer,C=g.id,_=g.label,x=!S&&p,R=Qn("ReactVirtualized__Table__headerColumn",h,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:x}),T=this._getFlexStyleForColumn(l,Fi({},d,{},l.props.headerStyle)),E=b({columnData:v,dataKey:y,disableSort:S,label:_,sortBy:f,sortDirection:m});if(x||u){var O=f!==y?w:m===Li.DESC?Li.ASC:Li.DESC,M=function(e){x&&p({defaultSortDirection:w,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};s=l.props["aria-label"]||_||y,i="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(i=m===Li.ASC?"ascending":"descending"),r.createElement("div",{"aria-label":s,"aria-sort":i,className:R,id:C,key:"Header-Col"+a,onClick:t,onKeyDown:o,role:"columnheader",style:T,tabIndex:n},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,i=e.key,s=e.parent,l=e.style,a=this.props,c=a.children,h=a.onRowClick,d=a.onRowDoubleClick,u=a.onRowRightClick,p=a.onRowMouseOver,f=a.onRowMouseOut,m=a.rowClassName,g=a.rowGetter,v=a.rowRenderer,y=a.rowStyle,w=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,b="function"==typeof y?y({index:o}):y,C=g({index:o}),_=r.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:s,rowData:C,rowIndex:o,scrollbarWidth:w})})),x=Qn("ReactVirtualized__Table__row",S),R=Fi({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:w},b);return v({className:x,columns:_,index:o,isScrolling:n,key:i,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:C,style:R})}},{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=Fi({},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?[]:r.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}(r.PureComponent);Yn(ji,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Er,overscanRowCount:10,rowRenderer:Hi,headerRowRenderer:Ai,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ji.propTypes={};var Ui=[],Zi=null,Vi=null;function $i(){Vi&&(Vi=null,document.body&&null!=Zi&&(document.body.style.pointerEvents=Zi),Zi=null)}function Yi(){$i(),Ui.forEach((function(e){return e.__resetIsScrolling()}))}function qi(e){e.currentTarget===window&&null==Zi&&document.body&&(Zi=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Vi&&yr(Vi);var e=0;Ui.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Vi=wr(Yi,e)}(),Ui.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Ki(e,t){Ui.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",qi),Ui.push(e)}function Xi(e,t){(Ui=Ui.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",qi),Vi&&(yr(Vi),$i()))}var Qi,Ji,es=function(e){return e===window},ts=function(e){return e.getBoundingClientRect()};function os(e,t){if(e){if(es(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return ts(e)}return{height:t.serverHeight,width:t.serverWidth}}function ns(e){return es(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 rs(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 is=function(){return"undefined"!=typeof window?window:void 0},ss=(Ji=Qi=function(e){function t(){var e,o;Nn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Yn(jn(o=Un(this,(e=Zn(t)).call.apply(e,[this].concat(r)))),"_window",is()),Yn(jn(o),"_isMounted",!1),Yn(jn(o),"_positionFromTop",0),Yn(jn(o),"_positionFromLeft",0),Yn(jn(o),"_detectElementResize",void 0),Yn(jn(o),"_child",void 0),Yn(jn(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?rs(o,!0).forEach((function(t){Yn(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rs(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},os(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),Yn(jn(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),Yn(jn(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)}})),Yn(jn(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),Yn(jn(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),Yn(jn(o),"_onResize",(function(){o.updatePosition()})),Yn(jn(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=ns(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})}}})),Yn(jn(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return $n(t,e),Fn(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||rn.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(es(t)&&document.documentElement){var o=document.documentElement,n=ts(e),r=ts(o);return{top:n.top-r.top,left:n.left-r.left}}var i=ns(t),s=ts(e),l=ts(t);return{top:s.top+i.top-l.top,left:s.left+i.left-l.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=os(e,this.props);n===l.height&&r===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=kr(),this.updatePosition(e),e&&(Ki(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),Xi(this,n),Ki(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Xi(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}(r.PureComponent),Yn(Qi,"propTypes",null),Ji);Yn(ss,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:is(),serverHeight:0,serverWidth:0});var ls=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:s,style:l}){const a=To[r].listId,c=document.getElementById(a),h=c?.scrollHeight||0;let d=o-28;void 0!==s&&(d=Number(l.top)-s,c&&h-o-s<0&&(d=o-n-28));const u={top:d,zIndex:2},p=i().createElement("span",{className:"absolute",style:u},e);return i().createElement("div",{className:t,style:l},c?sn().createPortal(p,document.getElementById("graph-container")):p)};function as({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=me()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=me()("spinner","mr1",{"inline-block":e}),a={height:n,width:n},c=me()("message",{"inline-block":e,mx2:e}),h=r?i().createElement("span",{className:l,style:a},t("loading")):i().createElement("div",{className:l,style:a},i().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:a}),i().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:a}),i().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:a}));return i().createElement("div",{className:s},h,o&&i().createElement("div",{className:c},o))}class cs extends i().Component{render(){const{cssVariables:e,currentCommits:t,graphZoneType:o,hasMoreCommits:n,height:r,getExternalIcon:s,isLoadingRows:l,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=i().createElement(as,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),v=0!==(t>0?t:0)||n?null:i().createElement(i().Fragment,null,h("Graph-NoCommits")),y=i().createElement("div",{className:"graph-adjust-commit-count p1"},l?i().createElement("div",{className:"flex items-center"},i().createElement("span",{style:{paddingRight:"5px"}},g)):v);return i().createElement(ls,{graphZoneType:o,height:r,heightAdjustment:m,scrollTop:a,style:c},y)}}var hs=cs;function ds({rowCount:e,cellRenderersByIds:t,columnIndex:o,cssVariables:n,enableResizer:r,getExternalIcon:s,getKeyForCell:l,graphHeight:a,graphWidth:c,graphZoneType:h,graphZones:d,hasMoreCommits:u,isLoadingRows:p,onResize:f,onResizeEnd:m,onResizeFromPropChange:g,onScroll:v,onScrollToRowCausedUpdate:y,onZoneEnter:w,scrollLeft:S,scrollToAlignment:b,scrollToIndex:C,scrollTop:_,smartCellRangeRenderer:x,translate:R}){const T=jo(h,d);if(!T)return null;const E=Bo(h,d),O=jo(bo,d),M=O?O.contentWidth:0,z=O?O.currentWidth:0,I=h===bo?me()("graph-panel","horizontal_scrollbar","react-virtualized-list"):me()("graph-panel","react-virtualized-list",h===So?"z3":null,E?"vertical_scrollbar":null,{"pad-for-horizontal-scrollbar":!!M&&M>z}),k=h===bo?{position:"static"}:void 0,P=e=>v(h,e,c,a,u),G=u||p||0===e,A=e+(G?1:0),L=(r,d,f,m,g,v,w)=>i().createElement(Rr,{autoContainerWidth:!0,cellRangeRenderer:x,cellRenderer:c=>((r,c)=>{if(c.rowIndex>e-1)return G&&0===o?i().createElement(hs,{cssVariables:n,currentCommits:e-1,getExternalIcon:s,graphZoneType:h,hasMoreCommits:u,height:a,isLoadingRows:p,key:l(c.rowIndex),scrollTop:_,style:c.style,translate:R,zoneContentWidth:M||0,zoneWidth:z}):void 0;const d={...c,style:{...c.style}};wo===r&&(d.style.top=Number(c.style.top)-_);const f=t[r];return f?f(d):void 0})(r,c),className:f,columnCount:1,columnWidth:w,containerStyle:m,height:a,id:d,isScrolling:!1,key:d,onScroll:P,onScrollToTargetCausedUpdate:y?e=>y(h,e,c,a,u):void 0,overscanRowCount:0,rowCount:A,rowHeight:Xt,scrollLeft:S,scrollToAlignment:b,scrollTop:_,scrollToRow:C,style:g,tabIndex:null,width:v}),D=L(T.type,T.listId,I,k,{position:"absolute"},T.currentWidth,T.type===bo&&e>0?T.contentWidth||0:T.currentWidth),N=E?L(wo,"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,H=i().createElement("div",{onMouseEnter:w},D,N);return E?H:i().createElement(qt,{enable:r,height:a,id:`${h}Column`,key:`${h}Column`,onResize:f?e=>f(T,e):void 0,onResizeEnd:m?e=>m(T,e):void 0,onResizeFromPropChange:g?e=>g(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:T.currentWidth,widthConstraints:Zo(h,d,c)},H)}const us={"Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","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"},ps=e=>!(e===Te||e===Oe),fs=/^.*(:?\n){0,2}/m;const ms=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;const gs={};function vs(e){let t=gs[e];return t||(t=to+e*io+io/2,gs[e]=t,t)}const ys={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 ws(e,t){let o="<"+e;const n=Object.entries(ys);for(let e=0;e<n.length;e+=1){const[r,i]=n[e],s=t[i];s&&(o=o+" "+r+'="'+s+'"')}return o+" />"}function Ss(e){return ws("line",e)}function bs(e,t){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:eo,strokeDasharray:ps(e)?2:0,stroke:t}}function Cs(e,t,o){return e+"_"+t+"_"+(o||"+")}function _s(e,t){return e+"_"+(t||"+")}const xs={0:1,90:0,180:-1,270:0},Rs={0:0,90:1,180:0,270:-1},Ts=ao-lo,Es=" A "+Ts+" "+Ts+" 0 0 0 ";function Os(e,t,o){const n=xs[o],r=Rs[o];return{x:e-ao*n,xOffset:-n*lo,y:t+ao*r,yOffset:r*lo}}const Ms={};var zs=function(e,t,o,n,r,i){const s=bs(n,e);return s.d=function(e,t,o,n){const r=e+"_"+t+"_"+o+"_"+n;let i=Ms[r];if(i)return i;const s=Os(e,t,n),l=Os(e,t,o);return i="M "+s.x+" "+s.y+(l.xOffset?" H "+(s.x+l.xOffset):" V "+(s.y+l.yOffset))+Es+(l.x+s.xOffset)+" "+(l.y+s.yOffset)+(s.xOffset?" H "+l.x:" V "+l.y),Ms[r]=i,i}(r,i,o,t),ws("path",s)};let Is={};function ks(e,t,o,n){const r=Cs(e,t,o);let i=Is[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=bs(o,e);return n.x1=vs(t),n.x2=vs(t),n.y1=ro/2,n.y2=ro,Ss(n)}(n[e],t,o):function(e,t,o,n){const r=bs(n,e),i={...r};i.x1=vs(o),i.x2=vs(o),i.y1=ro-oo,i.y2=ro;const s={...r};return s.x1=vs(o<t?o:o-1)+io/2,s.x2=vs(t),s.y1=ro/2,s.y2=ro/2,"<g>"+zs(e,t<o?180:270,t<o?270:0,n,vs(o)+(t<o?-io/2:io/2),ro-oo)+Ss(i)+Ss(s)+"</g>"}(n[e],t,e,o),Is[r]=i,i)}let Ps={};function Gs(e,t,o,n){const r=Cs(e,t,o);let i=Ps[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=bs(o,e);return n.x1=vs(t),n.x2=vs(t),n.y1=0,n.y2=ro/2,Ss(n)}(n[e],t,o):function(e,t,o,n){const r=bs(n,e),i={...r};i.x1=vs(o),i.x2=vs(o),i.y1=0,i.y2=no;const s={...r};return s.x1=vs(o<t?o:o-1)+io/2,s.x2=vs(t),s.y1=ro/2,s.y2=ro/2,"<g>"+Ss(i)+zs(e,t>o?0:90,t>o?90:180,n,vs(o)+(t<o?-io/2:io/2),no)+Ss(s)+"</g>"}(n[e],t,e,o),Ps[r]=i,i)}let As={};function Ls(e,t,o){const n=_s(e,t);let r=As[n];if(r)return r;const i=vs(e),s=bs(t,o[e]);return s.x1=i,s.x2=i,s.y1=0,s.y2=ro,r=Ss(s),As[n]=r,r}let Ds={};function Ns(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+"_"+Cs(r,o,i?.type),n=n+"_"+Cs(r,o,s?.type),n=n+"_"+_s(r,t?.type)}return n}(e,t,o);let i=Ds[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:l,ending:a}=t;s+=l?ks(r,o,l.type,n):"",s+=i?Ls(r,i.type,n):"",s+=a?Gs(r,o,a.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>')",Ds[r]=i,i}function Hs(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 Ws(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}const Bs=me()("absolute","top-0","right-0","bottom-0","left-0","height-1","time-line"),Fs=me()(Bs,"z2");var js=function({z2:e}){return i().createElement("div",{className:e?Fs:Bs})};const Us={ADDED:"added",DELETED:"deleted",MODIFIED:"modified"};class Zs extends i().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),s=me()("fs-1",n,"mr1");return i().createElement("span",{className:s,title:r},t(o))}}var Vs=Zs;const{ADDED:$s,DELETED:Ys,MODIFIED:qs}=Us,Ks={[$s]:"CommitDiffSection-NFilesAdded",[Ys]:"CommitDiffSection-NFilesDeleted",[qs]:"CommitDiffSection-NFilesModified"};var Xs=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const s=n?e:r(Ks[t],e);let l,a;return n&&(l={fontSize:mo,marginRight:go},a={fontSize:yo,margin:`0px ${vo}px 0px 0px`}),i().createElement("span",{className:"tiny-files-readout",style:l},i().createElement(Vs,{fileDiffType:t,getExternalIcon:o,style:a}),i().createElement("span",{className:"tiny-files-readout-text"},s))};var Qs=function({diffStats:t,fileNodeListStyle:o,getExternalIcon:n,translate:r}){const{types:s}=e;if(!t)return i().createElement("span",null);if(!Object.values(t).some((e=>Boolean(e))))return i().createElement("span",null);const l=t.modified?i().createElement(Xs,{count:t.modified,diffType:s.MODIFIED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,a=t.added?i().createElement(Xs,{count:t.added,diffType:s.ADDED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,c=t.deleted?i().createElement(Xs,{count:t.deleted,diffType:s.DELETED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,h=o?{marginLeft:fo}:null;return i().createElement("span",{className:"summary",style:h},l,a,c)};const Js=i().createElement("div",{className:"color-strip height-100",style:{width:2}}),el={};const tl={};class ol extends i().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:a,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:h,isHighlighted:d,isHovering:u,isInUnsupportedRebase:p,isMissingHoveredRefGroup:f,isSelected:m,numGraphColumns:g,onContextMenu:v,onClickCommit:y,onDoubleClickCommit:w,rowContext:S,sha:b,showColorStrip:C,showConflictIcon:_,showTimeline:x,setAsCurrentlyHoveredGraphCommit:R,style:T,title:E,translate:O,type:M,workDirStats:z}=this.props,I=function(e,t){const o=e+t.toString();let n=el[o];return n||(n=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),el[o]=n,n)}(M,u),k=function(e,t,o,n,r,i=!1,s=!1,l=!1,a=!1){const c=e+t+n.toString()+o.toString()+i.toString()+s.toString()+l.toString()+a.toString()+r;let h=tl[c];return h||(h=me()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":a&&!o||i&&(s||l)}),tl[c]=h,h)}(M,o,d,m,g,f,c,s,h),P=x?i().createElement(js,null):null,G=M===Ie&&void 0!==z&&Object.keys(z).length>0,A=G&&i().createElement(Qs,{diffStats:z,getExternalIcon:l,translate:O});return i().createElement("div",{className:I,"data-vscode-context":Go(S),onContextMenu:p?void 0:e=>v(e,a,b),onDoubleClick:e=>w(e,a,b),onMouseDown:e=>y(e,a,b),onMouseEnter:e=>R(e,a,b,r),onMouseLeave:t=>e(t,a,b,r),style:T},P,i().createElement("div",{className:k,"data-vscode-context":Go(n)},C?Js:null,_?i().createElement("span",{className:me()("ml2")},l("warning")):null,i().createElement("span",{className:me()("graph-zone",G?"has-work-dir":"width-100","flex-1"),style:{lineHeight:`${Qt}px`},title:E},t),A))}}var nl=(e,t)=>{const{clearCurrentlyHoveredGraphCommit:o,currentlyHoveredCommitSha:n,dimMergeCommits:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,highlightRowsOnRefHover:a,processedRows:c,isInUnsupportedRebase:h,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,numGraphColumns:f,setAsCurrentlyHoveredGraphCommit:m,translate:g}=e,v=new Qo(e);return({rowIndex:e,style:y})=>{const w=t(e),S=c[e],{author:b,email:C,sha:_,type:x,contexts:R}=S,T=x!==Ie?b:void 0,E=x!==Ie?Ws(b,C):void 0,O=R?.author||void 0,M=R?.row||void 0;return i().createElement(ol,{clearCurrentlyHoveredGraphCommit:o,column:S.column,context:O,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:_o,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:x===Oe&&r,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:h,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:w,numGraphColumns:f,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:M,setAsCurrentlyHoveredGraphCommit:m,sha:_,showTimeline:v.hasTimeline(e),style:y,title:E,translate:g,type:x},T)}};var rl=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:s,isInUnsupportedRebase:l,numGraphColumns:a,formatCommitDateTime:c,clearCurrentlyHoveredGraphCommit:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new Qo(e);return({rowIndex:e,style:w})=>{const S=t(e),b=o[e],{date:C,sha:_,type:x,contexts:R}=b,T=C&&x!==Ie?c(C,ke.RowEntry):void 0,E=C&&x!==Ie?c(C,ke.Tooltip):void 0,O=R?.date||void 0,M=R?.row||void 0;return i().createElement(ol,{clearCurrentlyHoveredGraphCommit:h,column:b.column,context:O,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:xo,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:x===Oe&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:l,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:a,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:_,showTimeline:!1,style:w,title:E,translate:n,type:x},T)}};var il=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:s,getExternalIcon:l,highlightRowsOnRefHover:a,isInUnsupportedRebase:c,numGraphColumns:h,workDirStats:d,clearCurrentlyHoveredGraphCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new Qo(e);return({rowIndex:e,style:w})=>{const S=t(e),b=r[e],{sha:C,type:_,contexts:x}=b,R=_===Ie?s("Graph-WorkInProgress"):b.message,T=_===Ie?s("Graph-WorkInProgress"):b.messageInline,E=x?.message||void 0,O=x?.row||void 0;return i().createElement(ol,{clearCurrentlyHoveredGraphCommit:u,column:b.column,context:E,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:n,getExternalIcon:l,graphZoneType:Co,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:_===Oe&&o,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:c,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:h,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:C,showColorStrip:!0,showConflictIcon:_===Ee||_===Me,showTimeline:y.hasTimeline(e),style:w,title:R,translate:s,type:_,workDirStats:d},T)}};var sl=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:s,isInUnsupportedRebase:l,numGraphColumns:a,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:f,onDoubleClickCommit:m,setAsCurrentlyHoveredGraphCommit:g,shaLength:v}=e,y=new Qo(e);return({rowIndex:e,style:w})=>{const S=t(e),b=o[e],{sha:C,type:_,contexts:x}=b,R=((e,t=6)=>e?e.substring(0,t):"")(C,v),T=x?.sha||void 0,E=x?.row||void 0;return i().createElement(ol,{clearCurrentlyHoveredGraphCommit:c,column:b.column,context:T,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Ro,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:_===Oe&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:l,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:a,onClickCommit:f,onContextMenu:p,onDoubleClickCommit:m,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showTimeline:y.hasTimeline(e),style:w,translate:n,type:_},_!==Ie?i().createElement("span",{className:"font-monospace pointer",title:R},R):null)}};var ll=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return i().createElement("div",{className:me()("ref-zone","column-"+(o%n+1))},i().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-Qt/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var al=function({enabledRefMetadataTypes:e,column:t,context:o,getTargetRef:n,hasActive:r,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:a,includeOnlyRemotesByName:c,isHovered:h,isInUnsupportedRebase:d,numGraphColumns:u,onMissingRefMetadata:p,refGroupContexts:f,refGroupsByName:m,refMetadata:g,refNodeHovered:v,sha:y,showContextMenuForGroupedRef:w,onClickRef:S,onDoubleClickRef:b,onToggleRefNodesShown:C,translate:_}){const x=(e,t,o)=>{const n=[];for(let e=0;e<t.length;e+=1){const o=t[e];n.push({id:Do(o),name:o.name,type:o.refType,owner:o.owner,avatarUrl:o.avatarUrl})}C(e,n,!1,o)},R=h?m:[m[0]],T=Object.values(a),E=T.length>0&&T.some((e=>e.type===ko.TAG)),O=R.map((t=>{const o=f?.[t[0].name]||void 0,n=t.some((e=>{const t=Do(e);switch(e.refType){case ko.TAG:return E&&Boolean(a[t]);case ko.REMOTE:return Boolean(a[t])||e.owner&&c[e.owner];default:return Boolean(a[t])}})),u=i().createElement(On,{enabledRefMetadataTypes:e,getExternalIcon:l,groupIsHovered:h,hasActive:r,hasRefs:s,isInUnsupportedRebase:d,isRefGroupIncluded:n,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:S,onContextMenu:w,onDoubleClick:b,onHideRefClick:x,onHovered:v,onMissingRefMetadata:p,refGroup:t,refGroupContext:o,refMetadata:g,sha:y,translate:_});return h?i().createElement("li",{key:u.key},u):u}));return h?i().createElement("div",{"data-vscode-context":Go(o),style:{height:100,position:"relative"}},i().createElement(et,{placement:"right",show:h,target:n},i().createElement(ll,{column:t,numGraphColumns:u},O))):i().createElement("span",{"data-vscode-context":Go(o),style:{minWidth:0}},O)};function cl({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=me()("ref-line","z4",{"is-active":t});return e&&function(e){return[Te,Oe,Ee].includes(e)}(n)?i().createElement("hr",{className:s,style:{left:o,width:r}}):null}var hl=cl;function dl({hasRefs:e,isActiveSha:t,nodeOffset:o,type:n}){return i().createElement(cl,{hasRefs:e,isActiveSha:t,left:0,type:n,width:o+(n===Oe?ho:0)})}var ul=function({hasActive:e,overflowCount:t}){return i().createElement("span",{className:me()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};const pl={};class fl extends i().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:s,hasTimeline:l,hoveredRefGroup:a,hoveredRefZoneSha:c,getExternalIcon:h,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,refGroupContexts:w,refGroupsByName:S,refMetadata:b,refNodeHovered:C,refNodeUnhovered:_,refZoneHovered:x,refZoneUnhovered:R,sha:T,showContextMenuForGroupedRef:E,style:O,translate:M,type:z,width:I}=this.props,k=c===T&&p,P={minWidth:I,width:I},G={...O,...P},A=l?i().createElement(js,null):null,L=S.length,D=e=>{x(T),L?C(e,S[0],T):a&&_(e,a,T)},N=e=>{p&&this.isContextMenuShown?this.isContextMenuShown=!1:(R(),a&&_(e,a,T))},H=function(e,t,o,n,r,i){const s=e+t+o.toString()+n.toString()+r+i.toString();let l=pl[s];return l||(l=me()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":i,"has-active":n,z6:o,z1:!o}),pl[s]=l,l)}(z,t,k,r,m,L>0&&!s&&n);if(!L)return i().createElement("div",{className:H,onMouseEnter:D,onWheel:N,style:G},A);const W=P,B=L-1,F=B>0&&!k?i().createElement(ul,{hasActive:r,overflowCount:B}):null;return i().createElement("div",{className:H,onMouseEnter:D,onMouseLeave:N,onWheel:N,style:G},i().createElement("div",{ref:e=>this.refPopoverTarget=e}),A,i().createElement("div",{className:"flex",style:W},i().createElement(al,{column:t,context:o,enabledRefMetadataTypes:e,getExternalIcon:h,getTargetRef:this.getRefPopoverTarget,hasActive:r,hasRefs:s,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isHovered:k,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:w,refGroupsByName:S,refMetadata:b,refNodeHovered:C,sha:T,showContextMenuForGroupedRef:(e,t,o)=>{D(e),this.isContextMenuShown=!0,E(e,t,o)},translate:M}),F),s?i().createElement("div",{className:"absolute left-0 flex z1",style:P},i().createElement(hl,{hasRefs:!0,isActiveSha:r,left:2,type:z,width:"100%"})):null)}}var ml=(e,t)=>{const{enabledRefMetadataTypes:o,showGhostRefsOnRowHover:n,onDoubleClickRef:r,processedRows:s,includeOnlyRefsById:l,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,getExternalIcon:d,hoveredRefGroup:u,hoveredRefZoneSha:p,numGraphColumns:f,onClickRef:m,onMissingRefMetadata:g,onShowContextMenuForGroupedRef:v,onRefNodeHovered:y,onRefNodeUnhovered:w,onRefZoneHovered:S,onRefZoneUnhovered:b,onToggleRefNodesShown:C,refMetadataById:_,translate:x}=e,R=new Qo(e);return({rowIndex:e,style:T})=>{const E=t(e),O=s[e],M=R.getZoneWidth(So),z=R.isHovering(e),{sha:I,type:k,hasRefs:P,contexts:G}=O,A=G?.ref||void 0,L=G?.refGroups||void 0,D=R.isSingleSelected(e),N=(n||P)&&(P||z||D)?R.getGraphRefGroupsByNameForRow(e):[];return i().createElement(fl,{column:O.column,context:A,enabledRefMetadataTypes:o,getExternalIcon:d,hasActive:R.rowContainsCurrentHeadRef(O),hasRefs:P||!1,hasTimeline:R.hasTimeline(e),hoveredRefGroup:u,hoveredRefZoneSha:p,includeOnlyRefsById:l,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,isSingleSelected:D,key:E,numGraphColumns:f,onClickRef:m,onDoubleClickRef:r,onMissingRefMetadata:g,onToggleRefNodesShown:C,refGroupContexts:L,refGroupsByName:N,refMetadata:_,refNodeHovered:y,refNodeUnhovered:w,refZoneHovered:S,refZoneUnhovered:b,sha:I,showContextMenuForGroupedRef:v,showGhostRefsOnRowHover:n,style:T,translate:x,type:k,width:M})}};function gl({className:e,marginLeft:t}){return i().createElement("div",{className:me()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},i().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const vl=e=>to+io*e+11;function yl({column:e}){return i().createElement(gl,{className:"z1",marginLeft:vl(e)})}function wl(){return i().createElement(gl,{marginLeft:0})}function Sl(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 bl(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 Cl(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,l;if(0===o)i=s=l=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=bl(r,e,t+1/3),s=bl(r,e,t),l=bl(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*l),a:r}}const _l=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function xl(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*Sl(e.charCodeAt(1))+Sl(e.charCodeAt(2)),g:16*Sl(e.charCodeAt(3))+Sl(e.charCodeAt(4)),b:16*Sl(e.charCodeAt(5))+Sl(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*Sl(e.charCodeAt(1))+Sl(e.charCodeAt(2)),g:16*Sl(e.charCodeAt(3))+Sl(e.charCodeAt(4)),b:16*Sl(e.charCodeAt(5))+Sl(e.charCodeAt(6)),a:(16*Sl(e.charCodeAt(7))+Sl(e.charCodeAt(8)))/255};if(4===t){const t=Sl(e.charCodeAt(1)),o=Sl(e.charCodeAt(2)),n=Sl(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=Sl(e.charCodeAt(1)),o=Sl(e.charCodeAt(2)),n=Sl(e.charCodeAt(3)),r=Sl(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=_l.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?Cl({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 Rl=e=>{return"hsla"===(t=xl(e)).type&&(t=Cl(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};class Tl extends i().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:s,cssVariables:l,divStyle:a,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,p=void 0!==r&&l[xe(r)]||Kt,f=Rl(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 i().createElement("div",{className:g,"data-vscode-context":Go(s),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:s,minWidth:l,size:a,title:c="",tooltip:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=s||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:l,...r},s=["avatar","gravatar","rad2",...o||[]].join(" ").trim();m=i().createElement("div",{className:s,"data-test-class":"avatar","data-vscode-context":Go(n),style:e,title:c})}return h?i().createElement(un,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:i().createElement(mn,{id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},m):m}}const El=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:s,cssVariables:l,left:a,message:c,opacity:h,type:d,useAuthorInitialsForAvatars:u})=>i().createElement(Tl,{authorInitials:t,avatarUrl:n,classes:["node",`${d}`,"z6"],column:r,context:s,cssVariables:l,divStyle:{left:a,opacity:h},fontSize:10,height:so,size:co,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Ws(o,e):e,n=function(e){const t=[];for(let o=ms.exec(e);null!==o;o=ms.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}(function(e,t="\n"){return e.replace("\n"===t?fs: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+=Ws(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},useAuthorInitialsForAvatars:u,width:so});class Ol extends i().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,left:n,opacity:r,type:s}=this.props;return(t||e)&&s===Te?El(this.props):s===Oe||s===Ee||s===Me?((e,t,o,n,r)=>{const s={height:12,left:o+5,opacity:n},l=me()("node",r,"z6"),a=i().createElement(mn,{id:"graph-merge-node-tooltip"},Ws(t,e));return i().createElement(un,{delayShow:250,overlay:a,placement:"bottom",trigger:["hover","focus"]},i().createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:s}))})(e,t,n,r,s):((e,t,o,n,r)=>{const s={height:so,left:o,opacity:n},l=me()("node",r,"z6");return i().createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:s},r===ze?e("stash"):null)})(o,0,n,r,s)}}class Ml extends i().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n}=this.props,r=Ns(o,t,n,e);return i().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:r}})}}var zl=Ml;function Il({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return i().createElement("div",{className:me()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function kl({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return i().createElement(Il,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?i().createElement(js,{z2:!0}):null)}function Pl({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return i().createElement(Il,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?i().createElement(js,{z2:!0}):null,i().createElement(wl,null))}class Gl extends i().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:a,cssVariables:c,currentlyHoveredCommitSha:h,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,isActiveSha:g,isInUnsupportedRebase:v,isSelected:y,leftGutterBoxShadowAlpha:w,leftGutterWidth:S,message:b,nodeOffset:C,nodeOpacity:_,numGraphColumns:x,onContextMenu:R,onClickCommit:T,onDoubleClickCommit:E,rightGutterBoxShadowAlpha:O,rightGutterWidth:M,rowContext:z,scrollLeft:I,setAsCurrentlyHoveredGraphCommit:k,sha:P,style:G,type:A,useAuthorInitialsForAvatars:L,zoneContext:D}=this.props,N=s%x+1,H=me()("relative","commit-zone","height-100-percent","pt3",A,`column-${N}`,{"is-selected":y,"has-active":g}),W=f?i().createElement(js,{z2:!0}):null,B=i().createElement("div",{className:H,"data-vscode-context":Go(D),onContextMenu:v?void 0:e=>R(e,bo,P),onDoubleClick:e=>E(e,bo,P),onMouseDown:e=>T(e,bo,P),onMouseEnter:e=>k(e,bo,P,h),onMouseLeave:e=>r(e,bo,P,h),style:G},W,i().createElement(kl,{boxShadowAlpha:w,hasTimeline:f,scrollLeft:I,width:S}),i().createElement(dl,{hasRefs:p,isActiveSha:g,nodeOffset:C,type:A}),i().createElement(Ol,{authorEmail:e,authorInitials:Hs(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:c,getExternalIcon:m,left:C,message:b,opacity:_,type:A,useAuthorInitialsForAvatars:L}),i().createElement(yl,{column:s}),i().createElement(zl,{columnColorByColumn:l,edgeColumnMax:d,edges:u,nodeColumn:s}),i().createElement(Pl,{boxShadowAlpha:O,commitZoneWidth:a,hasTimeline:f,scrollLeft:I,width:M}));return z?i().createElement("div",{"data-vscode-context":Go(z)},B):B}}var Al=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:s,cssVariables:l,currentlyHoveredCommitSha:a,processedRows:c,getExternalIcon:h,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:v,nodeOpacityByColumn:y,numGraphColumns:w,rightGutterBoxShadowAlpha:S,rightGutterWidth:b,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:_,useAuthorInitialsForAvatars:x}=e,R=new Qo(e);return({rowIndex:e,style:T})=>{const E=t(e),O=c[e],M=R.getZoneWidth(bo),{email:z,author:I,contexts:k,message:P,sha:G,type:A}=O,L=O.column,D=k?.graph||void 0,N=k?.avatar||void 0,H=k?.row||void 0;let W;return x||(W=o[z],W||n(z,G)),i().createElement(Gl,{authorEmail:z,authorName:I,avatarContext:N,avatarUrl:W,clearCurrentlyHoveredGraphCommit:r,column:L,columnColorByColumn:s,commitZoneWidth:M,cssVariables:l,currentlyHoveredCommitSha:a,edgeColumnMax:O.edgeColumnMaxes,edges:O.edges,getExternalIcon:h,hasRefs:O.hasRefs||!1,hasTimeline:R.hasTimeline(e),isActiveSha:R.rowContainsCurrentHeadRef(O),isInUnsupportedRebase:d,isSelected:R.isSelected(e),key:E,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:P,nodeOffset:v[L],nodeOpacity:y[L],numGraphColumns:w,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:S,rightGutterWidth:b,rowContext:H,scrollLeft:_,setAsCurrentlyHoveredGraphCommit:C,sha:G,style:T,type:A,useAuthorInitialsForAvatars:x,zoneContext:D})}};var Ll=(e,t)=>{const{translate:o,processedRows:n}=e,r=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new Qo(e);return({rowIndex:e,style:l})=>{const a=t(e),c=me()("graph-row","height-100-percent","flex"),h=s.hasTimeline(e),d=n[e],u=d.contexts?.row||void 0,p=d.timeLineEntry?.label||"",f=d.timeLineEntry?.value||0,m=h?i().createElement(js,null):null,g=h?i().createElement("span",{className:"time-line-message-container"},i().createElement("span",{className:"time-line-message"},o(p,f))):null;return i().createElement("div",{className:r,"data-vscode-context":Go(u),key:a,style:l},m,i().createElement("div",{className:c,"data-vscode-context":Go(u)},g))}};class Dl extends i().PureComponent{graphContainerRef=i().createRef();resizeObserver;isSelectedBySha={};processedGraphRowBySha={};childrenBySha={};scrollToSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};reserverInfoBySha={};columnsUsed={};workDirStats=Oo;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZonesByType={};graphZoneOrdering=[So,bo,Co,_o,xo,Ro];missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};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.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections();const t=Re(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||[],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||po,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}),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.isContainerWindowFocused!==e.isContainerWindowFocused&&this.setState({dimRowsOfSelectedCommit:!1,isContainerWindowFocused:void 0===e.isContainerWindowFocused||e.isContainerWindowFocused}),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();const n=Re(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||Oo,!$o(this.props.workDirStats)&&$o(e.workDirStats)||$o(this.props.workDirStats)&&!$o(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(...l)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...l),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=Po(((e,t)=>{if(t&&t.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=Po(((e,t)=>{if(t&&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)}};onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||qo(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*Xt;i>s-Jt&&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.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(bo)-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===ko.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===ko.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=o/Xt,i=r+((n-26)/Xt-1);return{top:Math.max(Math.floor(r),0),bottom:Math.min(Math.ceil(i),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 l=Math.floor((s-i)/2);if(l<1)return e;n=Math.min(n,l);const a=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,a-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(bo),s=this.getCommitZoneContentWidth(),l=o*io,a=n-to/3<=l,c=l<=n+r,h=Math.max(0,s-i),d=a&&c?n:Wt(l-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=Fo(r,n,e);if(r.currentWidth=i,t===bo){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromGraphRowsChange(){const e=this.graphZonesByType[bo];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=Fo(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)*io+2*to+6}getCommitZoneWidth(){if(this.graphZonesByType[bo])return this.graphZonesByType[bo].currentWidth;const{columnsSettings:e}=this.props;return e&&e[bo]?e[bo].width:To[bo].minimumWidth}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(bo);return 1===e?0:Wt(1-(t-2*to-3)/io,0,1)}setScroll(e,t){null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===bo&&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"auto"}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+6)+t*(e+to)}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(bo),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(3-to))+o*(t+to)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=to+io*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]=Wt(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(bo)-io-3)}getMinNodeLeft(){return this.getScrollLeft()+3+this.getSingleColumnModeFactor()*to}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(bo),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return Wt((e-(t-(to+3)))/io,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 l=o[s],a=l-(e-r*to),c=t+io-(l+to*(1-n)),h=Math.min(a,c);i[s]=.5+.5*Math.max(h/(to/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return to+e*(to/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*to}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,Wt(1-t/io,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;for(t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=To[t],l=i&&i.width?i.width:s.minimumWidth,a={...s,type:t,currentWidth:l,preferredWidth:l,isHidden:i?.isHidden||!1,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=a.currentWidth),t===bo&&(a.contentWidth=this.getCommitZoneContentWidth(),this.maxColumns>0&&(a.maximumWidth=a.contentWidth)),this.graphZonesByType[t]=a,a?.isHidden||n.push(a)})),n.forEach((e=>{const t=Fo(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=No(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),l=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=l}if(r<o){const e=t[t.length-1],r=o-Wo(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.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((l=>{n=t[l],r=n.passThrough,i=n.starting,s=r&&!ps(r.type)?r:i&&!ps(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[l]={ending:s}:o[l]={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):Ce(e,"short+short");translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):us[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}(us[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):i().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);for(let e=0;e<t.length;e+=1)this.requestedMissingAvatars[t[e]]=!0;t.length>0&&this.props.onEmailsMissingAvatarUrls&&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);for(let e=0;e<t.length;e+=1)this.requestedMissingRefsMetadata[t[e]]=!0;t.length>0&&this.props.onRefsMissingMetadata&&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!==ze){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)}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;r&&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===ze&&e.type!==ze&&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[Lo(ko.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[Lo(ko.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[Lo(ko.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:!(this.excludeByType.remotes||void 0!==this.excludeRefsById[Lo(ko.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===ko.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[Lo(ko.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[Lo(ko.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={};if($o(this.workDirStats)&&e.length>0&&e[0].type!==Ie){const t=function(e){return e.find(Vo)?.sha||void 0}(e),o={sha:Ie,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:Ie,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!$o(this.workDirStats)&&e.length>0&&e[0].type===Ie&&e.shift();const r=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,i)=>{const s=this.childrenBySha[e.sha]?.length>0,l=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,r):[],a=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,r):[],c=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,r,Boolean(n[e.sha]||s)):[],h=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],d=l.length>0||a.length>0||c.length>0,u=l.length>0||a.length>0;if(e.type!==Te&&e.type!==Oe||n[e.sha]){if(e.type===ze&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&h.length>0){let e;for(e of h)n[e]=!0}}else e.type!==Te&&e.type!==Oe||n[e.sha]||d||s||(o[e.sha]=!0);const p=o[e.sha],f={...e,heads:l,remotes:a,tags:c,parents:h,column:p?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:d,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(this.processedGraphRowBySha[e.sha]=f,!p){let o;const n=t.get(e.sha);n?.length&&(n.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=n[0],f.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<h.length;n+=1){const r=h[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let s=t.get(r);(u||o)&&void 0===s&&(s=[],t.set(r,s)),u?s?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:i,heads:l,remotes:a,tags:c}):o&&s?.unshift({...o,parentIndexScore:n,rowEntered:i})}this.orderedGraphRows.push(f)}})),clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=Eo.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<=Eo.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<=Eo.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<=Eo.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<=Eo.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 Eo.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[xe(i)];n[i]="rgba"===(r=xl(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,10);return Number.isNaN(o)?10:o}ensureZoneWidthsMatchGraphWidth(e,t){const o=Wo(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=Wo(e);for(;n>t;){const r=No(e,o);if(!r)break;const i=Wo(e,r.type);if(i+r.currentWidth>t){const o=Fo(r,e,t-i);this.updateWidthByZone(o,r.type)}n=Wo(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=Wo(e);for(;n<t;){const r=Ho(e,o);if(!r)break;const i=Wo(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;!Bo(r.type,e)&&o>s&&(o=s),o=Fo(r,e,o),this.updateWidthByZone(o,r.type)}n=Wo(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(){Ds={},Is={},As={},Ps={}}onZoneEnter=(e,t,o,n)=>{t!==So&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o&&o.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=Uo(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=Po(((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||_e;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 i().createElement("div",{id:"graph-container-helmet"},i().createElement(pe,null,i().createElement("style",{nonce:o},n)),e)};render(){const{isInUnsupportedRebase:e,isCommitting:t,pendingCommitMessageSummary:o,repoPath:n,nonce:r}=this.props,{avatarUrlByEmail:s,columnColorByColumn:l,contexts:a,cssVariablesWithDefaults:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,graphZones:v,hasMoreCommits:y,height:w,highlightedShas:S,hoveredRefGroup:b,hoveredRefZoneSha:C,themeOpacityFactor:_,isContainerWindowFocused:x,isLoadingRows:R,numGraphColumns:T,processedRows:E,refMetadataById:O,useAuthorInitialsForAvatars:M,scrollToAlignment:z,scrollToIndex:I,scrollTop:k,scrollLeft:P,shaLength:G,width:A,workDirStats:L}=this.state,D=me()("flex","graph-container"),N=(H=E,e=>e===H.length?"SHOW_MORE_COMMITS":H[e].sha);var H;const W=(B=e=>N(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:l,parent:a,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),w=!l&&!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;w&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:l,isVisible:r,key:d,parent:a,rowIndex:e,style:y};let b;if(!l||s||p)b=t(S);else{const o=B(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),b=v[d].cell}null!=b&&g.push(b)}}return g});var B;const F=this.getLeftGutterWidth(),j=this.getRightGutterWidth(),U=this.getRightGutterBoxShadowAlpha(_),Z=this.getLeftGutterBoxShadowAlpha(_),V=this.getNodeOffsetByColumn(),$=this.getNodeOpacityByColumn(),Y=!b,q={avatarUrlByEmail:s,dimMergeCommits:d,dimRowsOfSelectedCommit:u,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,isInUnsupportedRebase:e,isCommitting:t,isContainerWindowFocused:x,pendingCommitMessageSummary:o,workDirStats:L,repoPath:n,columnColorByColumn:l,currentlyHoveredCommitSha:h,cssVariables:c,graphZones:v,height:w,highlightedShas:S,hoveredRefGroup:b,hoveredRefZoneSha:C,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:Z,leftGutterWidth:F,nodeOffsetByColumn:V,nodeOpacityByColumn:$,nonce:r,numGraphColumns:T,processedRows:E,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:O,rightGutterBoxShadowAlpha:U,rightGutterWidth:j,useAuthorInitialsForAvatars:M,scrollToAlignment:z,scrollLeft:P,scrollTop:k,shaLength:G,width:A,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},K={[So]:ml(q,N),[bo]:Al(q,N),[Co]:il(q,N),[_o]:nl(q,N),[xo]:rl(q,N),[Ro]:sl(q,N),[wo]:Ll(q,N)},X=v.map(((e,t)=>i().createElement(ds,{cellRenderersByIds:K,columnIndex:t,cssVariables:c,enableResizer:Y,getExternalIcon:this.getIconCallback,getKeyForCell:N,graphHeight:w-26,graphWidth:A,graphZones:v,graphZoneType:e.type,hasMoreCommits:y,isLoadingRows:R,key:`${e.type}ColumnContainer`,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===So?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,b,C),rowCount:E.length,scrollLeft:P,scrollToAlignment:e.type===So?z:void 0,scrollToIndex:e.type===So?I:void 0,scrollTop:k,smartCellRangeRenderer:W,translate:this.translateCallback}))),Q=i().createElement("div",{className:"graph-component","data-vscode-context":Go(a?.graph),onBlur:e=>this.onGraphContainerBlurred(e,b,C),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},i().createElement(Dn,{context:a?.header,enableResizer:Y,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:v,height:w,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,showRemoteNamesOnRefs:m,translate:this.translateCallback,width:A}),i().createElement("div",{className:S?me()(D,"graph-highlighted"):D,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:w,width:A},tabIndex:-1},X));return this.decorateWithHelmet(Q,c,r)}}var Nl=Dl})(),module.exports=n})();