text: "use strict";var e=require("react"),t=require("react-dom");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=o(e),i=n(e),l=function(){function e(e,t){this.rows=e,this.columns=t,this.first={row:this.rows[0],column:this.columns[0]},this.last={row:this.rows[this.rows.length-1],column:this.columns[this.columns.length-1]},this.height=this.rows.reduce((function(e,t){return e+t.height}),0),this.width=this.columns.reduce((function(e,t){return e+t.width}),0)}return e.prototype.contains=function(e){return e.column.idx>=this.first.column.idx&&e.column.idx<=this.last.column.idx&&e.row.idx>=this.first.row.idx&&e.row.idx<=this.last.row.idx},e.prototype.slice=function(t,n){var o="rows"===n&&t?t.first.row:this.first.row,r="columns"===n&&t?t.first.column:this.first.column,i="rows"===n&&t?t.last.row:this.last.row,l="columns"===n&&t?t.last.column:this.last.column;return new e(this.rows.slice(o.idx-this.first.row.idx,i.idx-this.first.row.idx+1),this.columns.slice(r.idx-this.first.column.idx,l.idx-this.first.column.idx+1))},e}(),a=function(){function e(e){this.ranges=e,this.width=0,this.height=0,this.rowIndexLookup={},this.columnIndexLookup={},this.spanCellLookup={},this.rangesToRender={}}return e.prototype.getRange=function(e,t){var n=this.columns.slice(Math.min(e.column.idx,t.column.idx),Math.max(e.column.idx,t.column.idx)+1),o=this.rows.slice(Math.min(e.row.idx,t.row.idx),Math.max(e.row.idx,t.row.idx)+1);return new l(o,n)},e.prototype.getLocation=function(e,t){return{row:this.rows[e],column:this.columns[t]}},e.prototype.getLocationById=function(e,t){try{var n=this.rows[this.rowIndexLookup[e]],o=this.columns[this.columnIndexLookup[t]];return this.validateLocation({row:n,column:o})}catch(n){throw new RangeError("column: '".concat(t,"', row: '").concat(e,"'"))}},e.prototype.validateLocation=function(e){var t,n,o=null!==(t=this.columnIndexLookup[e.column.columnId])&&void 0!==t?t:Math.min(e.column.idx,this.last.column.idx),r=null!==(n=this.rowIndexLookup[e.row.rowId])&&void 0!==n?n:Math.min(e.row.idx,this.last.row.idx);return this.getLocation(r,o)},e.prototype.validateRange=function(e){return this.getRange(this.validateLocation(e.first),this.validateLocation(e.last))},e.prototype.getCell=function(e){return this.rows[e.row.idx].cells[e.column.idx]},e.DEFAULT_ROW_HEIGHT=25,e.DEFAULT_COLUMN_WIDTH=150,e.MIN_COLUMN_WIDTH=40,e}();function s(e,t){return"".concat(e,", ").concat(t)}function c(e,t){return e.column.columnId===(null==t?void 0:t.column.columnId)&&e.row.rowId===(null==t?void 0:t.row.rowId)}var u=function(){function e(e){this.updateState=e,this.eventTimestamps=[0,0],this.eventLocations=[void 0,void 0],this.currentIndex=0}return e.prototype.handlePointerDownInternal=function(e,t,n){this.pointerDownLocation=t;var o=this.eventLocations[this.currentIndex];this.currentIndex=1-this.currentIndex,this.eventTimestamps[this.currentIndex]=(new Date).valueOf(),this.eventLocations[this.currentIndex]=t;var r=0===t.row.idx||0===t.column.idx;return("mouse"===e.pointerType||r||c(t,o))&&(n=n.currentBehavior.handlePointerDown(e,t,n)),n},e.prototype.shouldHandleDoubleClick=function(e,t,n){return t-n<500&&c(e,this.eventLocations[0])&&c(e,this.eventLocations[1])},e.prototype.shouldHandleCellSelectionOnMobile=function(e,t,n){return"mouse"!==e.pointerType&&c(t,this.pointerDownLocation)&&void 0!==e.pointerType&&n-this.eventTimestamps[this.currentIndex]<500&&t.row.idx>0&&t.column.idx>0},e}();function d(e){return!(0!==e.button&&void 0!==e.button||"reactgrid-content"===e.target.className&&void 0!==e.pointerType)}function p(e,t){if(!t.reactGridElement)return!1;var n=t.reactGridElement.getBoundingClientRect().left;return!(e.clientX-n>t.cellMatrix.width)}var g=function(e,t){return g=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])},g(e,t)};function f(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}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var h=function(){return h=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},h.apply(this,arguments)};function m(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e}var v=function(e,t){return{row:e,column:t}};function b(e,t){return h(h({},e),{activeSelectedRangeIdx:0,selectedRanges:[e.cellMatrix.getRange(t,t)],selectedIndexes:[],selectedIds:[],selectionMode:"range"})}function y(e,t,n){return h(h({},e),{selectionMode:"range",selectedRanges:(n&&"range"===e.selectionMode?e.selectedRanges:[]).concat([t]),selectedIndexes:[],selectedIds:[],activeSelectedRangeIdx:n&&"range"===e.selectionMode?e.selectedRanges.length:0})}function x(e,t){var n;return h(h({},e),{selectionMode:"range",selectedRanges:Object.assign([],e.selectedRanges,(n={},n[e.activeSelectedRangeIdx]=t,n)),selectedIndexes:[],selectedIds:[]})}function w(e,t,n,o){var r=e.cellMatrix.first.row,i=e.cellMatrix.last.row,l=e.cellMatrix.getRange(v(r,t),v(i,n));return h(h({},e),{selectionMode:"column",selectedIndexes:o?e.selectedIndexes.concat(l.columns.map((function(e){return e.idx}))):l.columns.map((function(e){return e.idx})),selectedIds:o?e.selectedIds.concat(l.columns.map((function(e){return e.columnId}))):l.columns.map((function(e){return e.columnId}))})}function I(e,t,n,o){var r=e.cellMatrix.first.column,i=e.cellMatrix.last.column,l=e.cellMatrix.getRange(v(t,r),v(n,i));return h(h({},e),{selectionMode:"row",selectedIndexes:o?e.selectedIndexes.concat(l.rows.map((function(e){return e.idx}))):l.rows.map((function(e){return e.idx})),selectedIds:o?e.selectedIds.concat(l.rows.map((function(e){return e.rowId}))):l.rows.map((function(e){return e.rowId}))})}var C=function(){function e(){this.autoScrollDirection="both"}return e.prototype.handleKeyDown=function(e,t){return t},e.prototype.handlePointerUp=function(e,t,n){return n},e.prototype.handleKeyUp=function(e,t){return t},e.prototype.handleCopy=function(e,t){return t},e.prototype.handlePaste=function(e,t){return t},e.prototype.handleCut=function(e,t){return t},e.prototype.handlePointerDown=function(e,t,n){return n},e.prototype.handleDoubleClick=function(e,t,n){return n},e.prototype.handlePointerMove=function(e,t,n){return n},e.prototype.handlePointerEnter=function(e,t,n){return n},e.prototype.handleContextMenu=function(e,t){return t},e.prototype.renderPanePart=function(e,t){},e}();function R(e,t){try{var n=e.cellMatrix.getCell(t);if(!n)throw new TypeError("Cell doesn't exists at location");if(!n.type)throw new Error("Cell is missing type property");var o=e.cellTemplates[n.type];if(!o)throw new Error("CellTemplate missing for type '".concat(n.type,"'"));var r=o.getCompatibleCell(h(h({},n),{type:n.type}));if(!r)throw new Error("Cell validation failed");return{cell:r,cellTemplate:o}}catch(e){throw new Error("".concat(e.message," (rowId: '").concat(t.row.rowId,"', columnId: '").concat(t.column.columnId,"')"))}}function M(e,t,n){var o=R(e,t),r=o.cell,i=o.cellTemplate;if(r===n||JSON.stringify(r)===JSON.stringify(n)||void 0===i.update)return e;var l=i.update(r,n);return l===r&&JSON.stringify(l)===JSON.stringify(r)||l.nonEditable||e.queuedCellChanges.push({previousCell:r,newCell:l,type:l.type,rowId:t.row.rowId,columnId:t.column.columnId}),h({},e)}function A(e,t,n){if(void 0===n&&(n=!0),e.focusedLocation&&e.currentlyEditedCell&&(e=M(e,e.focusedLocation,e.currentlyEditedCell)),!e.props)throw new Error('"props" field on "state" object should be initiated before possible location focus');var o=e.props,r=o.onFocusLocationChanged,i=o.onFocusLocationChanging,l=o.focusLocation,a=R(e,t),s=a.cell,u=a.cellTemplate,d={rowId:t.row.rowId,columnId:t.column.columnId},p=!i||i(d),g=!u.isFocusable||u.isFocusable(s),f=l?e.cellMatrix.getLocationById(l.rowId,l.columnId):void 0,m=c(t,e.focusedLocation)||!f||c(t,f);if(!g||!p||!m)return e;r&&r(d);var v=e.cellMatrix.validateLocation(t);return n&&(e=b(e,v)),h(h({},e),{focusedLocation:v,contextMenuPosition:{top:-1,left:-1},currentlyEditedCell:void 0})}function E(e,t){var n=getComputedStyle(e),o="absolute"===n.position,r=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===n.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(n=getComputedStyle(i),(!o||"static"!==n.position)&&r.test(n.overflow+n.overflowY+n.overflowX))return i;return S()}function k(e){var t,n;return{scrollLeft:void 0!==e?(null!==(t=e.scrollLeft)&&void 0!==t?t:S().scrollX)-(e.clientLeft||0):0,scrollTop:void 0!==e?(null!==(n=e.scrollTop)&&void 0!==n?n:S().scrollY)-(e.clientTop||0):0}}function S(){return window}function T(){return"undefined"!=typeof window&&-1!==window.navigator.appVersion.indexOf("Mac")}function L(){return"undefined"!=typeof window&&(!!/iPad|iPhone|iPod/.test(window.navigator.platform)||G())}function G(){return"undefined"!=typeof window&&(window.navigator.maxTouchPoints>2&&/MacIntel/.test(window.navigator.platform))}function P(e){return e?{width:e instanceof HTMLElement?e.clientWidth:L()?window.innerWidth:document.documentElement.clientWidth,height:e instanceof HTMLElement?e.clientHeight:L()?window.innerHeight:document.documentElement.clientHeight}:{width:0,height:0}}function N(e){var t=k(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop;if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling "getBoundingClientRect()"');var r=e.reactGridElement.getBoundingClientRect(),i=r.left+n,l=r.top+o;if(void 0!==e.scrollableElement&&e.scrollableElement!==S()){var a=e.scrollableElement.getBoundingClientRect();i-=a.left,l-=a.top}return{left:i,top:l}}function O(e){var t=k(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop,r=P(e.scrollableElement),i=r.width,l=r.height,a=N(e),s=a.left,c=a.top,u=o+l,d=c+e.cellMatrix.height,p=c<o?o:c,g=d>u?u:d,f=n+i,h=s+e.cellMatrix.width,m=s<n?n:s,v=h>f?f:h;return{width:Math.max(v-m,0),height:Math.max(g-p,0),visibleOffsetRight:f-v,visibleOffsetBottom:u-g}}var B=function(e,t){return e>t?e-t:0};function D(e,t,n,o){if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var r=e.reactGridElement.getBoundingClientRect(),i=t-r.left,l=n-r.top,a=function(e,t,n){return V(e,t,n)||function(e,t,n){var o=e.cellMatrix,r=k(e.scrollableElement).scrollTop,i=N(e).top,l=P(e.scrollableElement).height,a=B(r,i),s=Math.max(o.height-l+i,0),c=O(e).height+a-o.ranges.stickyBottomRange.height;if(o.ranges.stickyBottomRange.rows.length>0&&t>=c&&!(n&&r+1<s)){var u=o.ranges.stickyBottomRange.rows.find((function(e){return e.bottom>t-c}))||o.last.row;return{cellY:t-c-u.top,row:u}}}(e,t,n)||function(e,t){if(e.cellMatrix.scrollableRange.rows.length<1){var n=t>=e.cellMatrix.height?e.cellMatrix.last:e.cellMatrix.first;return{cellY:n.row.height,row:n.row}}return W(e,t)}(e,t)}(e,l,"vertical"===o||"both"===o),s=a.cellY,c=a.row,u=function(e,t,n){return X(e,t,n)||F(e,t,n)||function(e,t){if(e.cellMatrix.scrollableRange.columns.length<1){var n=t>=e.cellMatrix.width?e.cellMatrix.last:e.cellMatrix.first;return{cellX:n.column.width,column:n.column}}return Z(e,t)}(e,t)}(e,i,"horizontal"===o||"both"===o),d=u.cellX;return{row:c,column:u.column,viewportX:i,viewportY:l,cellX:d,cellY:s}}function F(e,t,n){var o=e.cellMatrix,r=k(e.scrollableElement).scrollLeft,i=N(e).left,l=P(e.scrollableElement).width,a=B(r,i),s=Math.max(o.width-l+i,0),c=O(e).width+a-o.ranges.stickyRightRange.width;if(o.ranges.stickyRightRange.columns.length>0&&t>=c&&!(n&&r+1<s)){var u=o.ranges.stickyRightRange.columns.find((function(e){return e.right>t-c}))||o.last.column;return{cellX:t-c-u.left,column:u}}}function V(e,t,n){var o=e.cellMatrix,r=k(e.scrollableElement).scrollTop,i=N(e).top,l=B(r,i);if(o.ranges.stickyTopRange.rows.find((function(e){return e.bottom>t-l}))&&t<o.ranges.stickyTopRange.height+l&&!(n&&r>i)){var a=o.ranges.stickyTopRange.rows.find((function(e){return e.bottom>t-l}))||o.ranges.stickyTopRange.first.row;return{cellY:t-a.top,row:a}}}function X(e,t,n){var o=e.cellMatrix,r=k(e.scrollableElement).scrollLeft,i=N(e).left,l=B(r,i);if(o.ranges.stickyLeftRange.columns.find((function(e){return e.right>t-l}))&&t<o.ranges.stickyLeftRange.width+l&&!(n&&r>i)){var a=o.ranges.stickyLeftRange.columns.find((function(e){return e.right>t-l}))||o.ranges.stickyLeftRange.first.column;return{cellX:t-a.left,column:a}}}function W(e,t){var n=e.cellMatrix,o=t-n.ranges.stickyTopRange.height,r=n.scrollableRange.rows.find((function(e){return e.bottom>=o}))||n.scrollableRange.last.row;return{cellY:o-r.top,row:r}}function Z(e,t){var n=e.cellMatrix,o=t-n.ranges.stickyLeftRange.width,r=n.scrollableRange.columns.find((function(e){return e.right>=o}))||n.scrollableRange.last.column;return{cellX:o-r.left,column:r}}function H(e,t){e.preventDefault();var n=e.clientX,o=e.clientY,r=window.innerHeight-o>25,i=window.innerWidth-n>120,l=!r,a=!i,s=t.contextMenuPosition;r&&(s.top=o),i&&(s.left=n+5),l&&(s.top=o-25-5),a&&(s.left=n-120-5);var c=D(t,n,o);return t.selectedRanges.find((function(e){return e.contains(c)}))||(t=A(t,c)),h(h({},t),{contextMenuPosition:s})}var Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){if("reactgrid-content"===e.target.className)return n;if(n.enableRangeSelection&&e.shiftKey&&n.focusedLocation){var o=n.cellMatrix.getRange(n.focusedLocation,t);return _a(e)&&"range"===n.selectionMode?x(n,o):y(n,o,!1)}if(n.enableRangeSelection&&_a(e)){var r=n.selectedRanges.findIndex((function(e){return e.contains(t)})),i=n.selectedRanges[r],l=R(n,t).cellTemplate;if(i)n=A(n,t,!1),n=h(h({},n),{activeSelectedRangeIdx:r});else if(!l.isFocusable){o=n.cellMatrix.getRange(t,t);n=A(n=y(n,o,!0),t,!1)}}else n=A(n,t);return n},t.prototype.handlePointerEnter=function(e,t,n){if(!n.enableRangeSelection||!n.focusedLocation||"reactgrid-content"===e.target.className)return n;var o=n.cellMatrix.getRange(n.focusedLocation,t);return"range"===n.selectionMode&&p(e,n)?x(n,o):y(n,o,!1)},t.prototype.handleContextMenu=function(e,t){return H(e,t)},t}(C),z=function(e){var t=e.left,n=e.linePosition,o=e.offset;return r.createElement(r.Fragment,null,-1!==n&&r.createElement("div",{className:"rg-column-resize-hint",style:{left:n-o}},r.createElement("span",{style:{whiteSpace:"nowrap"}},"Width: ",Math.floor(n-t-o),"px")))},j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){var o=this;return this.initialLocation=t,this.resizedColumn=t.column,this.isInScrollableRange=n.cellMatrix.scrollableRange.columns.some((function(e){return e.idx===o.resizedColumn.idx})),n},t.prototype.handlePointerMove=function(e,t,n){var o=t.viewportX;if(!(t.column.idx===this.resizedColumn.idx&&t.cellX>a.MIN_COLUMN_WIDTH||t.column.idx>this.resizedColumn.idx)){var r=this.getLinePositionOffset(n);o=a.MIN_COLUMN_WIDTH+this.resizedColumn.left+r}return h(h({},n),{linePosition:o,lineOrientation:"vertical"})},t.prototype.handlePointerUp=function(e,t,n){var o,r=this.resizedColumn.width+t.viewportX-this.initialLocation.viewportX;if(null===(o=n.props)||void 0===o?void 0:o.onColumnResized){var i=r>=a.MIN_COLUMN_WIDTH?r:a.MIN_COLUMN_WIDTH;n.props.onColumnResized(this.resizedColumn.columnId,i,n.selectedIds)}var l=n.focusedLocation;if(void 0!==l&&this.resizedColumn.columnId===l.column.idx){var s=h(h({},l.column),{width:r});l=h(h({},l),{column:s})}return h(h({},n),{linePosition:-1,focusedLocation:l})},t.prototype.renderPanePart=function(e,t){var n=this.getLinePositionOffset(e);return t.contains(this.initialLocation)&&i.default.createElement(z,{left:this.resizedColumn.left,linePosition:e.linePosition,offset:n})},t.prototype.getLinePositionOffset=function(e){var t=this,n=k(e.scrollableElement).scrollLeft,o=N(e).left,r=B(n,o),i=O(e).width+r-e.cellMatrix.ranges.stickyRightRange.width;return e.cellMatrix.scrollableRange.columns.some((function(e){return e.idx===t.resizedColumn.idx}))?e.cellMatrix.ranges.stickyLeftRange.width:e.cellMatrix.ranges.stickyRightRange.columns.some((function(e){return e.idx===t.resizedColumn.idx}))?i:n},t}(C),U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){this.initialColumnIdx=t.column.idx,this.lastPossibleDropLocation=t,this.selectedIdxs=n.selectedIndexes.sort();var o=this.selectedIdxs.map((function(e){return n.cellMatrix.columns[e]})),r=this.selectedIdxs.filter((function(e){return e<t.column.idx})),i=r.map((function(e){return n.cellMatrix.columns[e]})),l=i.reduce((function(e,t){return e+t.width}),0);return this.pointerOffset=l+t.cellX,h(h({},n),{lineOrientation:"vertical",shadowSize:o.reduce((function(e,t){return e+t.width}),0),shadowPosition:this.getShadowPosition(t,n)})},t.prototype.handlePointerMove=function(e,t,n){return h(h({},n),{shadowPosition:this.getShadowPosition(t,n)})},t.prototype.getShadowPosition=function(e,t){var n=e.viewportX-this.pointerOffset,o=t.cellMatrix.width-t.shadowSize;return n<0?0:n>o?o:n},t.prototype.handlePointerEnter=function(e,t,n){var o,r=this.getLastPossibleDropLocation(t,n),i=k(n.scrollableElement).scrollLeft;if(!r)return n;var l=r.column.idx>this.initialColumnIdx,a=Math.min(r.viewportX-r.cellX+(l?r.column.width:0),((null===(o=n.visibleRange)||void 0===o?void 0:o.width)||0)+n.cellMatrix.ranges.stickyLeftRange.width+n.cellMatrix.ranges.stickyRightRange.width+i);return this.lastPossibleDropLocation=r,h(h({},n),{linePosition:a})},t.prototype.getLastPossibleDropLocation=function(e,t){var n,o=e.column.idx<=this.initialColumnIdx?"before":"after",r=this.selectedIdxs.map((function(e){return t.cellMatrix.columns[e].columnId}));return!(null===(n=t.props)||void 0===n?void 0:n.canReorderColumns)||t.props.canReorderColumns(e.column.columnId,r,o)?e:this.lastPossibleDropLocation},t.prototype.handlePointerUp=function(e,t,n){var o,r;if(t.column.idx!==this.initialColumnIdx&&this.lastPossibleDropLocation&&(null===(o=n.props)||void 0===o?void 0:o.onColumnsReordered)){var i=this.lastPossibleDropLocation.column.idx<=this.initialColumnIdx,l=this.selectedIdxs.map((function(e){return n.cellMatrix.columns[e].columnId}));null===(r=n.props)||void 0===r||r.onColumnsReordered(this.lastPossibleDropLocation.column.columnId,l,i?"before":"after")}return h(h({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return H(e,t)},t}(C);function _(e,t){if(!t.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var n=t.reactGridElement.getBoundingClientRect(),o=n.left,r=n.right,i=e.clientX-o,l=t.cellMatrix.ranges.stickyRightRange.width;return!(i>=t.cellMatrix.width-l)||e.clientX>=r-l}function J(e,t,n){var o=e.scrollableElement;void 0!==o.scrollTop?o.scrollTop=t:o.scrollTo({top:t}),void 0!==o.scrollLeft?o.scrollLeft=n:o.scrollTo({left:n})}function K(e,t){return O(e).height-t}function Q(e,t,n,o){return n+e.row.bottom-t-o}function $(e,t,n){return t-n+e.row.top-1}function q(e,t,n){var o=k(e.scrollableElement).scrollTop,r=N(e).top,i=B(o,r);return n<t.row.bottom-i}function ee(e,t){var n=k(e.scrollableElement).scrollTop,o=N(e).top,r=B(n,o);return t.row.top<r}function te(e,t){var n=e.cellMatrix.ranges.stickyTopRange,o=t.row;return n.rows.length>0&&o.idx<=n.last.row.idx}function ne(e,t){return O(e).width-t}function oe(e,t,n,o){return n+e.column.right-t-o}function re(e,t,n){return t-n+e.column.left-1}function ie(e,t,n){var o=k(e.scrollableElement).scrollLeft,r=N(e).left,i=B(o,r);return n<t.column.right-i}function le(e,t){var n=k(e.scrollableElement).scrollLeft,o=N(e).left,r=B(n,o);return t.column.left<r}function ae(e,t){var n=e.cellMatrix.ranges.stickyLeftRange,o=t.column;return n.columns.length>0&&o.idx<=n.last.column.idx}function se(e,t,n){var o=n.focusedLocation;if(o){var r=!(c(o,t.focusedLocation)||n.currentBehavior instanceof j),i=void 0!==n.currentlyEditedCell&&n.currentlyEditedCell!==t.currentlyEditedCell;if(r||i){var l=ce(n,o),a=l.left;J(n,l.top,a)}}}function ce(e,t,n){return void 0===n&&(n="both"),{top:ue(e,t,"horizontal"===n),left:de(e,t,"vertical"===n)}}function ue(e,t,n){var o=e.cellMatrix.ranges,r=o.stickyTopRange,i=o.stickyBottomRange,l=k(e.scrollableElement).scrollTop,a=K(e,r.height+i.height),s=N(e).top,c=B(l,s),u=t.row;if(n||!u)return l;var d=pe(e,t)?1:0;return te(e,t)||function(e,t){var n=e.cellMatrix.ranges.stickyBottomRange,o=t.row;return n.rows.length>0&&o.idx>=n.first.row.idx}(e,t)?l:q(e,t,a+d)?Q(t,a-1-d,l,c):ee(e,t)?$(t,l,c):l}function de(e,t,n){var o=e.cellMatrix.ranges,r=o.stickyLeftRange,i=o.stickyRightRange,l=k(e.scrollableElement).scrollLeft,a=ne(e,r.width+i.width),s=N(e).left,c=B(l,s),u=t.column;if(n||!u)return l;var d=pe(e,t)?1:0;return ae(e,t)||function(e,t){var n=e.cellMatrix.ranges.stickyRightRange,o=t.column;return n.columns.length>0&&o.idx>=n.first.column.idx}(e,t)?l:ie(e,t,a+d)?oe(t,a-1-d,l,c):le(e,t)?re(t,l,c):l}function pe(e,t){return e.cellMatrix.scrollableRange.contains(t)&&e.scrollableElement===S()}var ge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePointerDown=function(e,n){var o;t.isInLeftSticky=!1,t.isInRightSticky=!1,t.isInTopSticky=!1,t.isInBottomSticky=!1;var r=_(e,n);if((null===(o=n.props)||void 0===o?void 0:o.onContextMenu)&&r&&window.addEventListener("contextmenu",t.handleContextMenu),!r)return h(h({},n),{contextMenuPosition:{top:-1,left:-1}});if(!d(e))return n;window.addEventListener("pointermove",t.handlePointerMove),window.addEventListener("pointerup",t.handlePointerUp);var i=D(n,e.clientX,e.clientY);return t.handlePointerDownInternal(e,i,n)},t.handleHideContextMenu=function(e){window.removeEventListener("pointerdown",t.handleHideContextMenu),t.updateState((function(n){return e instanceof MouseEvent&&t.isContainElement(e,n)?n:h(h({},n),{contextMenuPosition:{top:-1,left:-1}})}))},t.isContainElement=function(e,t){var n;return null===(n=t.reactGridElement)||void 0===n?void 0:n.contains(e.target)},t.handleContextMenu=function(e){window.removeEventListener("pointerup",t.handlePointerUp),window.removeEventListener("pointermove",t.handlePointerMove),window.removeEventListener("contextmenu",t.handleContextMenu),window.addEventListener("pointerdown",t.handleHideContextMenu),t.updateState((function(n){var o;if(t.isContainElement(e,n)){var r=D(n,e.clientX,e.clientY);null===(o=(n=(n=n.currentBehavior.handlePointerUp(e,r,n)).currentBehavior.handleContextMenu(e,n)).hiddenFocusElement)||void 0===o||o.focus()}return n}))},t.handlePointerMove=function(e){t.updateState((function(n){var o,r=n.currentBehavior.autoScrollDirection,i=D(n,e.clientX,e.clientY,void 0),l=D(n,e.clientX,e.clientY,r);if(i.column.idx<l.column.idx&&!t.isFromLeftToRightScroll&&!t.isInLeftSticky?l=i:i.column.idx>l.column.idx&&!t.isFromRightToLeftScroll&&!t.isInRightSticky?(t.isFromRightToLeftScroll=!1,l=i):i.row.idx<l.row.idx&&!t.isFromTopToBottomScroll&&!t.isInTopSticky?(t.isFromTopToBottomScroll=!1,l=i):i.row.idx>l.row.idx&&!t.isFromBottomToTopScroll&&!t.isInBottomSticky?(t.isFromBottomToTopScroll=!1,l=i):(t.isInLeftSticky=!0,t.isInRightSticky=!0,t.isInTopSticky=!0,t.isInBottomSticky=!0),"reactgrid-content"!==e.target.className&&!(n.currentBehavior instanceof j)&&(null===(o=n.props)||void 0===o?void 0:o.enableRangeSelection)||n.currentBehavior instanceof U){var a=ce(n,l),s=a.left;J(n,a.top,s)}n=n.currentBehavior.handlePointerMove(e,l,n);var u=t.eventLocations[t.currentIndex];return t.eventLocations[t.currentIndex]=l,c(l,u)||(n=n.currentBehavior.handlePointerEnter(e,l,n)),n}))},t.handlePointerUp=function(e){0!==e.button&&void 0!==e.button||(window.removeEventListener("pointerup",t.handlePointerUp),window.removeEventListener("pointermove",t.handlePointerMove),window.removeEventListener("contextmenu",t.handleContextMenu),t.updateState((function(n){var o,r=D(n,e.clientX,e.clientY),i=(new Date).valueOf(),l=t.eventTimestamps[1-t.currentIndex];return n=n.currentBehavior.handlePointerUp(e,r,n),t.shouldHandleCellSelectionOnMobile(e,r,i)&&(n=n.currentBehavior.handlePointerDown(e,r,n)),n=h(h({},n),{currentBehavior:new ca}),t.shouldHandleDoubleClick(r,i,l)&&(n=n.currentBehavior.handleDoubleClick(e,r,n)),null===(o=n.hiddenFocusElement)||void 0===o||o.focus(),n})))},t}return f(t,e),t}(u);function fe(e){if(e.disableVirtualScrolling){var t=e.cellMatrix.scrollableRange,n=t.rows,o=t.columns,r=new l(n,o);return h(h({},e),{visibleRange:r})}var i=k(e.scrollableElement),a=i.scrollTop,s=i.scrollLeft,c=he(e,[-e.cellMatrix.ranges.stickyTopRange.height],[-e.cellMatrix.ranges.stickyLeftRange.width]),u=c.width,d=c.height,p=me(e,u),g=ve(e,d),f=new l(g,p);return h(h({},e),{leftScrollBoudary:f.columns.length>0?s-300:0,rightScrollBoudary:void 0===f.last.column?0:300+s,topScrollBoudary:f.columns.length>0?a-400:0,bottomScrollBoudary:void 0===f.last.row?0:400+a,visibleRange:f})}function he(e,t,n){var o=O(e),r=o.height,i=o.width,l=function(e,t){return e+t};return{height:Math.max(t.reduce(l,r),0),width:Math.max(n.reduce(l,i),0)}}function me(e,t){var n=e.cellMatrix.scrollableRange.columns,o=N(e).left,r=k(e.scrollableElement).scrollLeft,i=Math.max(ye(n,r-o-300)-1-1,0),l=ye(n,t+B(r,o)+300,i);return n.slice(i,l+1)}function ve(e,t){var n=e.cellMatrix.scrollableRange.rows,o=N(e).top,r=k(e.scrollableElement).scrollTop,i=Math.max(be(n,r-o-400)-1-1,0),l=be(n,t+B(r,o)+400,i);return n.slice(i,l+1)}function be(e,t,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length-1);var r=n+o>>1;return r<0?0:n>=o?r:t<e[r].top?be(e,t,n,r):be(e,t,r+1,o)}function ye(e,t,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length-1);var r=n+o>>1;return r<0?0:n>=o?r:t<e[r].left?ye(e,t,n,r):ye(e,t,r+1,o)}function xe(e,t){var n=e.horizontalStickyBreakpoint,o=void 0===n?50:n,r=e.verticalStickyBreakpoint,i=void 0===r?50:r,l=e.stickyLeftColumns||0,s=e.stickyTopRows||0,c=e.stickyRightColumns||0,u=e.stickyBottomRows||0;if(e.stickyTopRows||e.stickyLeftColumns||e.stickyRightColumns||e.stickyBottomRows){var d=P(t.scrollableElement),p=d.width,g=d.height;if(e.stickyLeftColumns||e.stickyRightColumns){var f=e.columns.slice(0,l).reduce((function(e,t){return e+(t.width||a.DEFAULT_COLUMN_WIDTH)}),0),m=0;c>0&&(m=e.columns.slice(-c).reduce((function(e,t){return e+(t.width||a.DEFAULT_COLUMN_WIDTH)}),0));var v=f+m>o*p/100;l=v?0:l,c=v?0:c}if(e.stickyTopRows||e.stickyBottomRows){var b=e.rows.slice(0,s).reduce((function(e,t){return e+(t.height||a.DEFAULT_ROW_HEIGHT)}),0),y=0;u>0&&(y=e.rows.slice(-u).reduce((function(e,t){return e+(t.height||a.DEFAULT_ROW_HEIGHT)}),0));var x=b+y>i*g/100;s=x?0:s,u=x?0:u}}return h(h({},t),{leftStickyColumns:l,topStickyRows:s,rightStickyColumns:c,bottomStickyRows:u})}var we,Ie=function(e,t){var n=this;this.updateState=e,this.pointerEventsController=t,this.pointerDownHandler=function(e){return n.updateState((function(t){return n.pointerEventsController.handlePointerDown(e,t)}))},this.keyDownHandler=function(e){return n.updateState((function(t){return t.currentBehavior.handleKeyDown(e,t)}))},this.keyUpHandler=function(e){return n.updateState((function(t){return t.currentBehavior.handleKeyUp(e,t)}))},this.copyHandler=function(e){return n.updateState((function(t){return t.currentBehavior.handleCopy(e,t)}))},this.pasteHandler=function(e){return n.updateState((function(t){return t.currentBehavior.handlePaste(e,t)}))},this.cutHandler=function(e){return n.updateState((function(t){return t.currentBehavior.handleCut(e,t)}))},this.blurHandler=function(e){return n.updateState((function(t){var n,o;return(null===(n=e.target)||void 0===n?void 0:n.id.startsWith("react-select-"))&&(null===(o=t.hiddenFocusElement)||void 0===o||o.focus({preventScroll:!0})),t}))},this.windowResizeHandler=function(){return n.updateState(fe)},this.reactgridRefHandler=function(e){return n.assignElementsRefs(e,fe)},this.hiddenElementRefHandler=function(e){return n.updateState((function(t){var n;return(null===(n=t.props)||void 0===n?void 0:n.initialFocusLocation)&&e&&e.focus({preventScroll:!0}),t.hiddenFocusElement=e,t}))},this.pasteCaptureHandler=function(e){var t,n=e.clipboardData.getData("text/html"),o=(new DOMParser).parseFromString(n,"text/html");n&&"reactgrid-content"===(null===(t=o.body.firstElementChild)||void 0===t?void 0:t.getAttribute("data-reactgrid"))&&(e.bubbles=!1)},this.scrollHandlerInternal=function(e){try{return n.updateOnScrollChange(e)}catch(e){console.error(e)}},this.scrollHandler=function(){return n.scrollHandlerInternal(fe)},this.assignElementsRefs=function(e,t){e&&n.updateState((function(n){var o=E(e,!0);return n.props&&(n=xe(n.props,n)),t(h(h({},n),{reactGridElement:e,scrollableElement:o}))}))},this.updateOnScrollChange=function(e){n.updateState((function(t){if(t.disableVirtualScrolling)return t;var n=200,o=k(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=O(t),a=l.width,s=l.height;return a>0&&s>0&&(r>=t.bottomScrollBoudary-n||r<=t.topScrollBoudary+n||i>=t.rightScrollBoudary-n||i<=t.leftScrollBoudary+n)?e(t):t}))}},Ce=function(){function e(){this.reset()}return e.prototype.reset=function(){return this.cellMatrix=new a({}),this},e.prototype.setProps=function(e){return this.cellMatrix.props=e,this},e.prototype.fillRowsAndCols=function(e){var t=this;void 0===e&&(e={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var n=e.leftStickyColumns,o=e.topStickyRows,r=e.rightStickyColumns,i=e.bottomStickyRows;if(!Array.isArray(this.cellMatrix.props.rows))throw new TypeError('Feeded ReactGrids "rows" property is not an array!');if(!Array.isArray(this.cellMatrix.props.columns))throw new TypeError('Feeded ReactGrids "columns" property is not an array!');return this.cellMatrix.rows=this.cellMatrix.props.rows.reduce((function(e,n,r){var l=t.getTop(r,o,i,e),s=n.height||a.DEFAULT_ROW_HEIGHT;return e.push(h(h({},n),{top:l,height:s,idx:r,bottom:l+s})),t.cellMatrix.height+=s,t.cellMatrix.rowIndexLookup[n.rowId]=r,e}),[]),this.cellMatrix.columns=this.cellMatrix.props.columns.reduce((function(e,o,i){var l=t.getLeft(i,n,r,e),s=o.width?o.width<a.MIN_COLUMN_WIDTH?a.MIN_COLUMN_WIDTH:o.width:a.DEFAULT_COLUMN_WIDTH;return e.push(h(h({},o),{idx:i,left:l,width:s,right:l+s})),t.cellMatrix.width+=s,t.cellMatrix.columnIndexLookup[o.columnId]=i,e}),[]),this},e.prototype.setRangesToRenderLookup=function(){var e=this,t=[];this.cellMatrix.rows.forEach((function(n,o){n.cells.forEach((function(n,r){var i="rowspan"in n&&n.rowspan||0,a="colspan"in n&&n.colspan||0,c=i?e.cellMatrix.rows.slice(o,o+i):[e.cellMatrix.rows[o]],u=a?e.cellMatrix.columns.slice(r,r+a):[e.cellMatrix.columns[r]],d=new l(c,u);t=m(m([],t),e.getRangesToRender(d)),e.cellMatrix.spanCellLookup[s(r,o)]={range:d}}))}));var n=t.map((function(e){return s(e.first.column.idx,e.first.row.idx)}));return Object.keys(this.cellMatrix.spanCellLookup).forEach((function(t){n.includes(t)||(e.cellMatrix.rangesToRender[t]=e.cellMatrix.spanCellLookup[t])})),this},e.prototype.getRangesToRender=function(e){var t=e.rows.flatMap((function(t){return e.columns.map((function(e){return new l([t],[e])}))}));return t.shift(),t},e.prototype.fillSticky=function(e){void 0===e&&(e={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var t=e.leftStickyColumns,n=e.topStickyRows,o=e.rightStickyColumns,r=e.bottomStickyRows;return this.cellMatrix.ranges.stickyLeftRange=new l(this.cellMatrix.rows,this.cellMatrix.columns.slice(0,t||0)),this.cellMatrix.ranges.stickyTopRange=new l(this.cellMatrix.rows.slice(0,n||0),this.cellMatrix.columns),this.cellMatrix.ranges.stickyRightRange=new l(this.cellMatrix.rows,this.cellMatrix.columns.slice(this.getStickyRightFirstIdx(t,o),this.cellMatrix.columns.length)),this.cellMatrix.ranges.stickyBottomRange=new l(this.cellMatrix.rows.slice(this.getStickyBottomFirstIdx(n,r),this.cellMatrix.rows.length),this.cellMatrix.columns),this},e.prototype.fillScrollableRange=function(e){void 0===e&&(e={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var t=e.leftStickyColumns,n=e.topStickyRows,o=e.rightStickyColumns,r=e.bottomStickyRows;return this.cellMatrix.scrollableRange=this.getScrollableRange(t,n,o,r),this},e.prototype.setEdgeLocations=function(){return this.cellMatrix.first=this.cellMatrix.getLocation(0,0),this.cellMatrix.last=this.cellMatrix.getLocation(this.cellMatrix.rows.length-1,this.cellMatrix.columns.length-1),this},e.prototype.getTop=function(e,t,n,o){return 0===e||e===t||e===this.getStickyBottomFirstIdx(t||0,n||0)?0:o[e-1].top+o[e-1].height},e.prototype.getLeft=function(e,t,n,o){return 0===e||e===t||e===this.getStickyRightFirstIdx(t||0,n||0)?0:o[e-1].left+o[e-1].width},e.prototype.getScrollableRange=function(e,t,n,o){return new l(this.cellMatrix.rows.slice(t||0,this.getStickyBottomFirstIdx(t,o)),this.cellMatrix.columns.slice(e||0,this.getStickyRightFirstIdx(e,n)))},e.prototype.getStickyBottomFirstIdx=function(e,t){var n=t||0,o=e||0,r=this.cellMatrix.props.rows.length;return r-(n+o>r?0:n)},e.prototype.getStickyRightFirstIdx=function(e,t){var n=t||0,o=e||0,r=this.cellMatrix.props.columns.length;return r-(n+o>r?0:n)},e.prototype.getCellMatrix=function(){var e=this.cellMatrix;return this.reset(),e},e}(),Re=function(e,t,n){var o=e[t];if(null==o)throw new Error("Cell is missing property '".concat(t,"'"));if(typeof o!==n)throw new Error("Property '".concat(t,"' expected to be of type '").concat(n,"' but is '").concat(typeof o,"'"));return o};exports.keyCodes=void 0,(we=exports.keyCodes||(exports.keyCodes={}))[we.POINTER=1]="POINTER",we[we.BACKSPACE=8]="BACKSPACE",we[we.TAB=9]="TAB",we[we.ENTER=13]="ENTER",we[we.SHIFT=16]="SHIFT",we[we.CTRL=17]="CTRL",we[we.ALT=18]="ALT",we[we.PAUSE=19]="PAUSE",we[we.CAPS_LOCK=20]="CAPS_LOCK",we[we.ESCAPE=27]="ESCAPE",we[we.SPACE=32]="SPACE",we[we.PAGE_UP=33]="PAGE_UP",we[we.PAGE_DOWN=34]="PAGE_DOWN",we[we.END=35]="END",we[we.HOME=36]="HOME",we[we.LEFT_ARROW=37]="LEFT_ARROW",we[we.UP_ARROW=38]="UP_ARROW",we[we.RIGHT_ARROW=39]="RIGHT_ARROW",we[we.DOWN_ARROW=40]="DOWN_ARROW",we[we.INSERT=45]="INSERT",we[we.DELETE=46]="DELETE",we[we.KEY_0=48]="KEY_0",we[we.KEY_1=49]="KEY_1",we[we.KEY_2=50]="KEY_2",we[we.KEY_3=51]="KEY_3",we[we.KEY_4=52]="KEY_4",we[we.KEY_5=53]="KEY_5",we[we.KEY_6=54]="KEY_6",we[we.KEY_7=55]="KEY_7",we[we.KEY_8=56]="KEY_8",we[we.KEY_9=57]="KEY_9",we[we.KEY_A=65]="KEY_A",we[we.KEY_B=66]="KEY_B",we[we.KEY_C=67]="KEY_C",we[we.KEY_D=68]="KEY_D",we[we.KEY_E=69]="KEY_E",we[we.KEY_F=70]="KEY_F",we[we.KEY_G=71]="KEY_G",we[we.KEY_H=72]="KEY_H",we[we.KEY_I=73]="KEY_I",we[we.KEY_J=74]="KEY_J",we[we.KEY_K=75]="KEY_K",we[we.KEY_L=76]="KEY_L",we[we.KEY_M=77]="KEY_M",we[we.KEY_N=78]="KEY_N",we[we.KEY_O=79]="KEY_O",we[we.KEY_P=80]="KEY_P",we[we.KEY_Q=81]="KEY_Q",we[we.KEY_R=82]="KEY_R",we[we.KEY_S=83]="KEY_S",we[we.KEY_T=84]="KEY_T",we[we.KEY_U=85]="KEY_U",we[we.KEY_V=86]="KEY_V",we[we.KEY_W=87]="KEY_W",we[we.KEY_X=88]="KEY_X",we[we.KEY_Y=89]="KEY_Y",we[we.KEY_Z=90]="KEY_Z",we[we.LEFT_META=91]="LEFT_META",we[we.RIGHT_META=92]="RIGHT_META",we[we.SELECT=93]="SELECT",we[we.NUMPAD_0=96]="NUMPAD_0",we[we.NUMPAD_1=97]="NUMPAD_1",we[we.NUMPAD_2=98]="NUMPAD_2",we[we.NUMPAD_3=99]="NUMPAD_3",we[we.NUMPAD_4=100]="NUMPAD_4",we[we.NUMPAD_5=101]="NUMPAD_5",we[we.NUMPAD_6=102]="NUMPAD_6",we[we.NUMPAD_7=103]="NUMPAD_7",we[we.NUMPAD_8=104]="NUMPAD_8",we[we.NUMPAD_9=105]="NUMPAD_9",we[we.MULTIPLY=106]="MULTIPLY",we[we.ADD=107]="ADD",we[we.SUBTRACT=109]="SUBTRACT",we[we.DECIMAL=110]="DECIMAL",we[we.DIVIDE=111]="DIVIDE",we[we.F1=112]="F1",we[we.F2=113]="F2",we[we.F3=114]="F3",we[we.F4=115]="F4",we[we.F5=116]="F5",we[we.F6=117]="F6",we[we.F7=118]="F7",we[we.F8=119]="F8",we[we.F9=120]="F9",we[we.F10=121]="F10",we[we.F11=122]="F11",we[we.F12=123]="F12",we[we.NUM_LOCK=144]="NUM_LOCK",we[we.SCROLL_LOCK=145]="SCROLL_LOCK",we[we.FIREFOX_DASH=173]="FIREFOX_DASH",we[we.SEMICOLON=186]="SEMICOLON",we[we.EQUALS=187]="EQUALS",we[we.COMMA=188]="COMMA",we[we.DASH=189]="DASH",we[we.PERIOD=190]="PERIOD",we[we.FORWARD_SLASH=191]="FORWARD_SLASH",we[we.GRAVE_ACCENT=192]="GRAVE_ACCENT",we[we.OPEN_BRACKET=219]="OPEN_BRACKET",we[we.BACK_SLASH=220]="BACK_SLASH",we[we.CLOSE_BRACKET=221]="CLOSE_BRACKET",we[we.SINGLE_QUOTE=222]="SINGLE_QUOTE";var Me=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t=Re(e,"checked","boolean"),n=t?e.checkedText?e.checkedText:"1":e.uncheckedText?e.uncheckedText:"";return h(h({},e),{checked:!!t,value:t?1:NaN,text:n})},e.prototype.handleKeyDown=function(e,t,n,o,r){return o||t!==exports.keyCodes.SPACE&&t!==exports.keyCodes.ENTER?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(this.toggleCheckboxCell(e)),enableEditMode:!1}},e.prototype.toggleCheckboxCell=function(e){return this.getCompatibleCell(h(h({},e),{checked:!e.checked}))},e.prototype.update=function(e,t){var n="checkbox"===t.type?t.checked:!!t.value;return this.getCompatibleCell(h(h({},e),{checked:n}))},e.prototype.getClassName=function(e){return e.className?e.className:""},e.prototype.render=function(e,t,n){var o=this;return r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:e.checked,onChange:function(t){return n(o.toggleCheckboxCell(e),!0)}}),r.createElement("span",null))},e}(),Ae=function(e){return e>=exports.keyCodes.KEY_0&&e<=exports.keyCodes.KEY_Z||ke(e)||e>=exports.keyCodes.MULTIPLY&&e<=exports.keyCodes.DIVIDE||e>=exports.keyCodes.SEMICOLON&&e<=exports.keyCodes.SINGLE_QUOTE||e===exports.keyCodes.SPACE},Ee=function(e){return e>=exports.keyCodes.KEY_0&&e<=exports.keyCodes.KEY_9||ke(e)},ke=function(e){return e>=exports.keyCodes.NUMPAD_0&&e<=exports.keyCodes.NUMPAD_9},Se=function(e){return e>=exports.keyCodes.COMMA&&e<=exports.keyCodes.PERIOD||e===exports.keyCodes.DECIMAL||e===exports.keyCodes.SUBTRACT||e===exports.keyCodes.FIREFOX_DASH},Te=function(e){return e===exports.keyCodes.LEFT_ARROW||e===exports.keyCodes.RIGHT_ARROW||e===exports.keyCodes.UP_ARROW||e===exports.keyCodes.DOWN_ARROW||e===exports.keyCodes.END||e===exports.keyCodes.HOME||e===exports.keyCodes.BACKSPACE||e===exports.keyCodes.DELETE},Le=function(e,t){""!==t&&(t=Pe());var n="".concat(t&&"".concat(t," ")).concat(e);return Date.parse(n)},Ge=function(e){return e.toString().padStart(2,"0")},Pe=function(){return L()||G()?"1970/01/01":"1970-01-01"},Ne=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t=e.date?Re(e,"date","object"):new Date(NaN),n=e.format||new Intl.DateTimeFormat(window.navigator.language),o=t.getTime(),r=Number.isNaN(o)?"":n.format(t);return h(h({},e),{date:t,value:o,text:r})},e.prototype.handleKeyDown=function(e,t,n,o,r){return n||r||o||!Ae(t)?{cell:e,enableEditMode:t===exports.keyCodes.POINTER||t===exports.keyCodes.ENTER}:{cell:this.getCompatibleCell(h({},e)),enableEditMode:!0}},e.prototype.update=function(e,t){return this.getCompatibleCell(h(h({},e),{date:new Date(t.value)}))},e.prototype.getClassName=function(e,t){return e.className?e.className:""},e.prototype.render=function(e,t,n){var o=this;if(!t)return e.text;if(!e.date)return'"cell.date" is not initialized with a date value';var i=Ge(e.date.getFullYear()),l=Ge(e.date.getMonth()+1),a=Ge(e.date.getDate());return r.createElement("input",{ref:function(e){e&&e.focus()},type:"date",defaultValue:"".concat(i,"-").concat(l,"-").concat(a),onChange:function(t){var r=Le(t.currentTarget.value,"");Number.isNaN(r)||n(o.getCompatibleCell(h(h({},e),{date:new Date(r)})),!1)},onBlur:function(t){var r=Le(t.currentTarget.value,"");Number.isNaN(r)||n(o.getCompatibleCell(h(h({},e),{date:new Date(r)})),!0)},onKeyDown:function(e){(Ee(e.keyCode)||Te(e.keyCode)||e.keyCode===exports.keyCodes.COMMA||e.keyCode===exports.keyCodes.PERIOD)&&e.stopPropagation(),Ee(e.keyCode)||Te(e.keyCode)||e.keyCode===exports.keyCodes.COMMA||e.keyCode===exports.keyCodes.PERIOD||e.preventDefault()},onCopy:function(e){return e.stopPropagation()},onCut:function(e){return e.stopPropagation()},onPaste:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()}})},e}(),Oe=[];Oe[8]="",Oe[9]="",Oe[13]="\n",Oe[16]="",Oe[17]="",Oe[18]="",Oe[19]="",Oe[20]="",Oe[27]="",Oe[32]=" ",Oe[33]="",Oe[34]="",Oe[35]="",Oe[36]="",Oe[37]="",Oe[38]="",Oe[39]="",Oe[40]="",Oe[45]="",Oe[46]="",Oe[48]=")",Oe[49]="!",Oe[50]="@",Oe[51]="#",Oe[52]="$",Oe[53]="%",Oe[54]="^",Oe[55]="&",Oe[56]="*",Oe[57]="(",Oe[59]=":",Oe[61]="+",Oe[65]="A",Oe[66]="B",Oe[67]="C",Oe[68]="D",Oe[69]="E",Oe[70]="F",Oe[71]="G",Oe[72]="H",Oe[73]="I",Oe[74]="J",Oe[75]="K",Oe[76]="L",Oe[77]="M",Oe[78]="N",Oe[79]="O",Oe[80]="P",Oe[81]="Q",Oe[82]="R",Oe[83]="S",Oe[84]="T",Oe[85]="U",Oe[86]="V",Oe[87]="W",Oe[88]="X",Oe[89]="Y",Oe[90]="Z",Oe[91]="",Oe[92]="",Oe[93]="",Oe[96]="0",Oe[97]="1",Oe[98]="2",Oe[99]="3",Oe[100]="4",Oe[101]="5",Oe[102]="6",Oe[103]="7",Oe[104]="8",Oe[105]="9",Oe[106]="*",Oe[107]="+",Oe[109]="_",Oe[107]="+",Oe[111]="/",Oe[112]="",Oe[113]="",Oe[114]="",Oe[115]="",Oe[116]="",Oe[117]="",Oe[118]="",Oe[119]="",Oe[120]="",Oe[121]="",Oe[122]="",Oe[123]="",Oe[144]="",Oe[145]="",Oe[186]=":",Oe[187]="+",Oe[188]="<",Oe[189]="_",Oe[190]=">",Oe[191]="?",Oe[192]="~",Oe[219]="{",Oe[220]="|",Oe[221]="}",Oe[222]='"';var Be=[];Be[8]="",Be[9]="",Be[13]="\n",Be[16]="",Be[17]="",Be[18]="",Be[19]="",Be[20]="",Be[27]="",Be[32]=" ",Be[33]="",Be[34]="",Be[35]="",Be[36]="",Be[37]="",Be[38]="",Be[39]="",Be[40]="",Be[45]="",Be[46]="",Be[48]="0",Be[49]="1",Be[50]="2",Be[51]="3",Be[52]="4",Be[53]="5",Be[54]="6",Be[55]="7",Be[56]="8",Be[57]="9",Be[59]=";",Be[61]="=",Be[65]="a",Be[66]="b",Be[67]="c",Be[68]="d",Be[69]="e",Be[70]="f",Be[71]="g",Be[72]="h",Be[73]="i",Be[74]="j",Be[75]="k",Be[76]="l",Be[77]="m",Be[78]="n",Be[79]="o",Be[80]="p",Be[81]="q",Be[82]="r",Be[83]="s",Be[84]="t",Be[85]="u",Be[86]="v",Be[87]="w",Be[88]="x",Be[89]="y",Be[90]="z",Be[91]="",Be[92]="",Be[93]="",Be[96]="0",Be[97]="1",Be[98]="2",Be[99]="3",Be[100]="4",Be[101]="5",Be[102]="6",Be[103]="7",Be[104]="8",Be[105]="9",Be[106]="*",Be[107]="+",Be[109]="_",Be[107]="+",Be[111]="/",Be[112]="",Be[113]="",Be[114]="",Be[115]="",Be[116]="",Be[117]="",Be[118]="",Be[119]="",Be[120]="",Be[121]="",Be[122]="",Be[123]="",Be[144]="",Be[145]="",Be[186]=";",Be[187]="=",Be[188]=",",Be[189]="-",Be[190]=".",Be[191]="/",Be[192]="`",Be[219]="[",Be[220]="\\",Be[221]="]",Be[222]="'";var De=function(e,t){return void 0===t&&(t=!1),t?Oe[e]:Be[e]},Fe=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t=Re(e,"text","string"),n=parseFloat(t);return h(h({},e),{text:t,value:n})},e.prototype.handleKeyDown=function(e,t,n,o,r){var i=De(t,o);return n||r||!Ae(t)||o&&t===exports.keyCodes.SPACE?{cell:e,enableEditMode:t===exports.keyCodes.POINTER||t===exports.keyCodes.ENTER}:{cell:h(h({},e),{text:o?i:i.toLowerCase()}),enableEditMode:!0}},e.prototype.update=function(e,t){return this.getCompatibleCell(h(h({},e),{text:t.text}))},e.prototype.getClassName=function(e,t){return!e.validator||e.validator(e.text)?"valid":"invalid"},e.prototype.render=function(e,t,n){var o=this;return t?r.createElement("input",{ref:function(e){e&&e.focus()},onChange:function(t){return n(o.getCompatibleCell(h(h({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){return n(o.getCompatibleCell(h(h({},e),{text:t.currentTarget.value})),!0)},onKeyDown:function(e){(Ae(e.keyCode)||Te(e.keyCode))&&e.stopPropagation()},defaultValue:e.text,onCopy:function(e){return e.stopPropagation()},onCut:function(e){return e.stopPropagation()},onPaste:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()}}):e.renderer?e.renderer(e.text):e.text},e}(),Ve=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t=Re(e,"text","string"),n=!1;try{n=Re(e,"isExpanded","boolean")}catch(e){n=!0}var o=-1;try{o=Re(e,"indent","number")}catch(e){o=0}var r=!1;try{r=Re(e,"hasChildren","boolean")}catch(e){r=!1}var i=parseFloat(t);return h(h({},e),{text:t,value:i,isExpanded:n,indent:o,hasChildren:r})},e.prototype.update=function(e,t){return this.getCompatibleCell(h(h({},e),{isExpanded:t.isExpanded,text:t.text}))},e.prototype.handleKeyDown=function(e,t,n,o,r){var i=t===exports.keyCodes.POINTER||t===exports.keyCodes.ENTER,l=h({},e),a=De(t,o);return t!==exports.keyCodes.SPACE||void 0===l.isExpanded||o?n||r||!Ae(t)||o&&t===exports.keyCodes.SPACE||(l.text=o?a:a.toLowerCase(),i=!0):l.isExpanded=!l.isExpanded,{cell:l,enableEditMode:i}},e.prototype.getClassName=function(e,t){var n,o=e.hasChildren?e.isExpanded?"expanded":"collapsed":"",r=null!==(n=e.className)&&void 0!==n?n:"";return"".concat(o," ").concat(r)},e.prototype.getStyle=function(e,t){var n,o=null!==(n=e.indent)&&void 0!==n?n:0;return{paddingLeft:"calc(".concat(1.4*o,"em + 2px)")}},e.prototype.render=function(e,t,n){var o=this;return t?r.createElement("input",{ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:e.text,onChange:function(t){return n(o.getCompatibleCell(h(h({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){return n(o.getCompatibleCell(h(h({},e),{text:t.currentTarget.value})),!0)},onCopy:function(e){return e.stopPropagation()},onCut:function(e){return e.stopPropagation()},onPaste:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},onKeyDown:function(e){(Ae(e.keyCode)||Te(e.keyCode))&&e.stopPropagation()}}):r.createElement(r.Fragment,null,e.hasChildren?r.createElement("div",{className:"chevron",onPointerDown:function(t){t.stopPropagation(),n(o.getCompatibleCell(h(h({},e),{isExpanded:!e.isExpanded})),!0)}},r.createElement("span",{className:"icon"},"❯")):r.createElement("div",{className:"no-child"}),e.text)},e}(),Xe=function(){function e(){this.isFocusable=function(e){return!1},this.getStyle=function(e){return{background:"rgba(128, 128, 128, 0.1)"}}}return e.prototype.getCompatibleCell=function(e){var t=Re(e,"text","string"),n=parseFloat(t);return h(h({},e),{text:t,value:n})},e.prototype.render=function(e,t,n){return e.text},e.prototype.getClassName=function(e,t){return e.className?e.className:""},e}(),We=function(){function e(){this.getTextFromCharCode=function(e){switch(e.charCodeAt(0)){case exports.keyCodes.DASH:case exports.keyCodes.FIREFOX_DASH:case exports.keyCodes.SUBTRACT:return"-";case exports.keyCodes.COMMA:return",";case exports.keyCodes.PERIOD:case exports.keyCodes.DECIMAL:return".";default:return e}}}return e.prototype.getCompatibleCell=function(e){var t;try{t=Re(e,"value","number")}catch(e){t=NaN}var n=e.format||new Intl.NumberFormat(window.navigator.language),o=e.nanToZero&&Number.isNaN(t)?0:t,r=Number.isNaN(o)||e.hideZero&&0===o?"":n.format(o);return h(h({},e),{value:o,text:r})},e.prototype.handleKeyDown=function(e,t,n,o,r){ke(t)&&(t-=48);var i=String.fromCharCode(t);if(!n&&!r&&!o&&(Ee(t)||Se(t))){var l=Number(i);return Number.isNaN(l)&&Se(t)?{cell:h(h({},this.getCompatibleCell(h(h({},e),{value:l}))),{text:i}),enableEditMode:!0}:{cell:this.getCompatibleCell(h(h({},e),{value:l})),enableEditMode:!0}}return{cell:e,enableEditMode:t===exports.keyCodes.POINTER||t===exports.keyCodes.ENTER}},e.prototype.update=function(e,t){return this.getCompatibleCell(h(h({},e),{value:t.value}))},e.prototype.getClassName=function(e,t){return e.className?e.className:""},e.prototype.render=function(e,t,n){var o=this;if(!t)return e.text;var i=e.format?e.format.resolvedOptions().locale:window.navigator.languages[0],l=new Intl.NumberFormat(i,{useGrouping:!1,maximumFractionDigits:20});return r.createElement("input",{inputMode:"decimal",ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:Number.isNaN(e.value)?this.getTextFromCharCode(e.text):l.format(e.value),onChange:function(t){return n(o.getCompatibleCell(h(h({},e),{value:parseFloat(t.currentTarget.value.replace(/,/g,"."))})),!1)},onBlur:function(t){return n(o.getCompatibleCell(h(h({},e),{value:parseFloat(t.currentTarget.value.replace(/,/g,"."))})),!0)},onKeyDown:function(e){(Ee(e.keyCode)||Te(e.keyCode)||Se(e.keyCode))&&e.stopPropagation(),(Ee(e.keyCode)||Te(e.keyCode)||Se(e.keyCode))&&!e.shiftKey||e.preventDefault()},onCopy:function(e){return e.stopPropagation()},onCut:function(e){return e.stopPropagation()},onPaste:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()}})},e}(),Ze=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t,n=Re(e,"text","string");try{t=Re(e,"placeholder","string")}catch(e){t=""}var o=parseFloat(n);return h(h({},e),{text:n,value:o,placeholder:t})},e.prototype.update=function(e,t){return this.getCompatibleCell(h(h({},e),{text:t.text,placeholder:t.placeholder}))},e.prototype.handleKeyDown=function(e,t,n,o,r){var i=De(t,o);return n||r||!Ae(t)||o&&t===exports.keyCodes.SPACE?{cell:e,enableEditMode:t===exports.keyCodes.POINTER||t===exports.keyCodes.ENTER}:{cell:this.getCompatibleCell(h(h({},e),{text:o?i:i.toLowerCase()})),enableEditMode:!0}},e.prototype.getClassName=function(e,t){var n=!e.validator||e.validator(e.text),o=e.className?e.className:"";return"".concat(n?"valid":"invalid"," ").concat(e.placeholder&&""===e.text?"placeholder":""," ").concat(o)},e.prototype.render=function(e,t,n){var o=this;if(!t){var i=""===e.text?e.placeholder||"":e.text;return e.renderer?e.renderer(i):i}return r.createElement("input",{ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:e.text,onChange:function(t){return n(o.getCompatibleCell(h(h({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){return n(o.getCompatibleCell(h(h({},e),{text:t.currentTarget.value})),!0)},onCopy:function(e){return e.stopPropagation()},onCut:function(e){return e.stopPropagation()},onPaste:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},placeholder:e.placeholder,onKeyDown:function(e){(Ae(e.keyCode)||Te(e.keyCode))&&e.stopPropagation()}})},e}(),He=function(){function e(){}return e.prototype.getCompatibleCell=function(t){var n=t.time?Re(t,"time","object"):new Date(NaN),o=t.format||new Intl.DateTimeFormat(window.navigator.language),r=n.getTime()%e.dayInMillis,i=Number.isNaN(r)?"":o.format(n);return h(h({},t),{time:n,value:r,text:i})},e.prototype.handleKeyDown=function(e,t,n,o,r){return n||r||o||!Ae(t)?{cell:e,enableEditMode:t===exports.keyCodes.POINTER||t===exports.keyCodes.ENTER}:{cell:this.getCompatibleCell(h({},e)),enableEditMode:!0}},e.prototype.update=function(e,t){var n=Le(t.text);return""===t.text||Number.isNaN(n)?this.getCompatibleCell(h(h({},e),{time:new Date(t.value)})):this.getCompatibleCell(h(h({},e),{time:new Date(n)}))},e.prototype.getClassName=function(e,t){return e.className?e.className:""},e.prototype.render=function(e,t,n){var o=this;if(!t)return e.text;if(!e.time)return'"cell.time" is not initialized with a time value';var i=Ge(e.time.getHours()),l=Ge(e.time.getMinutes());return r.createElement("input",{ref:function(e){e&&e.focus()},type:"time",defaultValue:"".concat(i,":").concat(l),onChange:function(t){var r=Le(t.currentTarget.value);Number.isNaN(r)||n(o.getCompatibleCell(h(h({},e),{time:new Date(r)})),!1)},onBlur:function(t){var r=Le(t.currentTarget.value);Number.isNaN(r)||n(o.getCompatibleCell(h(h({},e),{time:new Date(r)})),!0)},onKeyDown:function(e){(Ee(e.keyCode)||Te(e.keyCode)||e.keyCode===exports.keyCodes.COMMA||e.keyCode===exports.keyCodes.PERIOD)&&e.stopPropagation(),Ee(e.keyCode)||Te(e.keyCode)||e.keyCode===exports.keyCodes.COMMA||e.keyCode===exports.keyCodes.PERIOD||e.preventDefault()},onCopy:function(e){return e.stopPropagation()},onCut:function(e){return e.stopPropagation()},onPaste:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()}})},e.dayInMillis=864e5,e.defaultDate=Pe(),e}();function Ye(){return Ye=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},Ye.apply(this,arguments)}var ze=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),je="-ms-",Ue="-moz-",_e="-webkit-",Je=Math.abs,Ke=String.fromCharCode,Qe=Object.assign;function $e(e){return e.trim()}function qe(e,t,n){return e.replace(t,n)}function et(e,t){return e.indexOf(t)}function tt(e,t){return 0|e.charCodeAt(t)}function nt(e,t,n){return e.slice(t,n)}function ot(e){return e.length}function rt(e){return e.length}function it(e,t){return t.push(e),e}var lt=1,at=1,st=0,ct=0,ut=0,dt="";function pt(e,t,n,o,r,i,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:lt,column:at,length:l,return:""}}function gt(e,t){return Qe(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function ft(){return ut=ct>0?tt(dt,--ct):0,at--,10===ut&&(at=1,lt--),ut}function ht(){return ut=ct<st?tt(dt,ct++):0,at++,10===ut&&(at=1,lt++),ut}function mt(){return tt(dt,ct)}function vt(){return ct}function bt(e,t){return nt(dt,e,t)}function yt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xt(e){return lt=at=1,st=ot(dt=e),ct=0,[]}function wt(e){return dt="",e}function It(e){return $e(bt(ct-1,Mt(91===e?e+2:40===e?e+1:e)))}function Ct(e){for(;(ut=mt())&&ut<33;)ht();return yt(e)>2||yt(ut)>3?"":" "}function Rt(e,t){for(;--t&&ht()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return bt(e,vt()+(t<6&&32==mt()&&32==ht()))}function Mt(e){for(;ht();)switch(ut){case e:return ct;case 34:case 39:34!==e&&39!==e&&Mt(ut);break;case 40:41===e&&Mt(e);break;case 92:ht()}return ct}function At(e,t){for(;ht()&&e+ut!==57&&(e+ut!==84||47!==mt()););return"/*"+bt(t,ct-1)+"*"+Ke(47===e?e:ht())}function Et(e){for(;!yt(mt());)ht();return bt(e,ct)}function kt(e){return wt(St("",null,null,null,[""],e=xt(e),0,[0],e))}function St(e,t,n,o,r,i,l,a,s){for(var c=0,u=0,d=l,p=0,g=0,f=0,h=1,m=1,v=1,b=0,y="",x=r,w=i,I=o,C=y;m;)switch(f=b,b=ht()){case 40:if(108!=f&&58==C.charCodeAt(d-1)){-1!=et(C+=qe(It(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=It(b);break;case 9:case 10:case 13:case 32:C+=Ct(f);break;case 92:C+=Rt(vt()-1,7);continue;case 47:switch(mt()){case 42:case 47:it(Lt(At(ht(),vt()),t,n),s);break;default:C+="/"}break;case 123*h:a[c++]=ot(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:g>0&&ot(C)-d&&it(g>32?Gt(C+";",o,n,d-1):Gt(qe(C," ","")+";",o,n,d-2),s);break;case 59:C+=";";default:if(it(I=Tt(C,t,n,c,u,r,a,y,x=[],w=[],d),i),123===b)if(0===u)St(C,t,I,I,x,i,d,a,w);else switch(p){case 100:case 109:case 115:St(e,I,I,o&&it(Tt(e,I,I,0,0,r,a,y,r,x=[],d),w),r,w,d,a,o?x:w);break;default:St(C,I,I,I,[""],w,0,a,w)}}c=u=g=0,h=v=1,y=C="",d=l;break;case 58:d=1+ot(C),g=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==ft())continue;switch(C+=Ke(b),b*h){case 38:v=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(ot(C)-1)*v,v=1;break;case 64:45===mt()&&(C+=It(ht())),p=mt(),u=d=ot(y=C+=Et(vt())),b++;break;case 45:45===f&&2==ot(C)&&(h=0)}}return i}function Tt(e,t,n,o,r,i,l,a,s,c,u){for(var d=r-1,p=0===r?i:[""],g=rt(p),f=0,h=0,m=0;f<o;++f)for(var v=0,b=nt(e,d+1,d=Je(h=l[f])),y=e;v<g;++v)(y=$e(h>0?p[v]+" "+b:qe(b,/&\f/g,p[v])))&&(s[m++]=y);return pt(e,t,n,0===r?"rule":a,s,c,u)}function Lt(e,t,n){return pt(e,t,n,"comm",Ke(ut),nt(e,2,-2),0)}function Gt(e,t,n,o){return pt(e,t,n,"decl",nt(e,0,o),nt(e,o+1,-1),o)}function Pt(e,t){switch(function(e,t){return(((t<<2^tt(e,0))<<2^tt(e,1))<<2^tt(e,2))<<2^tt(e,3)}(e,t)){case 5103:return _e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+Ue+e+je+e+e;case 6828:case 4268:return _e+e+je+e+e;case 6165:return _e+e+je+"flex-"+e+e;case 5187:return _e+e+qe(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return _e+e+je+"flex-item-"+qe(e,/flex-|-self/,"")+e;case 4675:return _e+e+je+"flex-line-pack"+qe(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+je+qe(e,"shrink","negative")+e;case 5292:return _e+e+je+qe(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+qe(e,"-grow","")+_e+e+je+qe(e,"grow","positive")+e;case 4554:return _e+qe(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,_e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ot(e)-1-t>6)switch(tt(e,t+1)){case 109:if(45!==tt(e,t+4))break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Ue+(108==tt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~et(e,"stretch")?Pt(qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==tt(e,t+1))break;case 6444:switch(tt(e,ot(e)-3-(~et(e,"!important")&&10))){case 107:return qe(e,":",":"+_e)+e;case 101:return qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(45===tt(e,14)?"inline-":"")+"box$3$1"+_e+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(tt(e,t+11)){case 114:return _e+e+je+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+je+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+je+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+je+e+e}return e}function Nt(e,t){for(var n="",o=rt(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Ot(e,t,n,o){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Nt(e.children,o)+"}";case"rule":e.value=e.props.join(",")}return ot(n=Nt(e.children,o))?e.return=e.value+"{"+n+"}":""}function Bt(e){var t=rt(e);return function(n,o,r,i){for(var l="",a=0;a<t;a++)l+=e[a](n,o,r,i)||"";return l}}function Dt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ft,Vt,Xt=function(e,t,n){for(var o=0,r=0;o=r,r=mt(),38===o&&12===r&&(t[n]=1),!yt(r);)ht();return bt(e,ct)},Wt=function(e,t){return wt(function(e,t){var n=-1,o=44;do{switch(yt(o)){case 0:38===o&&12===mt()&&(t[n]=1),e[n]+=Xt(ct-1,t,n);break;case 2:e[n]+=It(o);break;case 4:if(44===o){e[++n]=58===mt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ke(o)}}while(o=ht());return e}(xt(e),t))},Zt=new WeakMap,Ht=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Zt.get(n))&&!o){Zt.set(e,!0);for(var r=[],i=Wt(t,r),l=n.props,a=0,s=0;a<i.length;a++)for(var c=0;c<l.length;c++,s++)e.props[s]=r[a]?i[a].replace(/&\f/g,l[c]):l[c]+" "+i[a]}}},Yt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},zt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},jt=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ut=function(e,t,n){zt(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),jt(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!zt(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),jt(e)))},_t="undefined"!=typeof document,Jt=_t?void 0:(Ft=function(){return Dt((function(){var e={};return function(t){return e[t]}}))},Vt=new WeakMap,function(e){if(Vt.has(e))return Vt.get(e);var t=Ft(e);return Vt.set(e,t),t}),Kt=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Pt(e.value,e.length);break;case"@keyframes":return Nt([gt(e,{value:qe(e.value,"@","@"+_e)})],o);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nt([gt(e,{props:[qe(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Nt([gt(e,{props:[qe(t,/:(plac\w+)/,":-webkit-input-$1")]}),gt(e,{props:[qe(t,/:(plac\w+)/,":-moz-$1")]}),gt(e,{props:[qe(t,/:(plac\w+)/,je+"input-$1")]})],o)}return""}))}}],Qt=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(_t&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||Kt;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r,i,l={},a=[];_t&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;a.push(e)})));var s=[Ht,Yt];if(s.push(function(e){return function(t,n,o){if("rule"===t.type){var r,i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i&&!0!==e.compat){var l=n>0?o[n-1]:null;if(l&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((r=l.children).length?r[r.length-1]:null))return;i.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return m.compat}}),Ut),_t){var c,u=[Ot,function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}],d=Bt(s.concat(o,u));i=function(e,t,n,o){c=n,void 0!==t.map&&(c={insert:function(e){n.insert(e+t.map)}}),Nt(kt(e?e+"{"+t.styles+"}":t.styles),d),o&&(m.inserted[t.name]=!0)}}else{var p=[Ot],g=Bt(s.concat(o,p)),f=Jt(o)(t),h=function(e,t){var n=t.name;return void 0===f[n]&&(f[n]=Nt(kt(e?e+"{"+t.styles+"}":t.styles),g)),f[n]};i=function(e,t,n,o){var r=t.name,i=h(e,t);return void 0===m.compat?(o&&(m.inserted[r]=!0),void 0!==t.map?i+t.map:i):o?void(m.inserted[r]=i):i}}var m={key:t,sheet:new ze({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return m.sheet.hydrate(a),m};function $t(e){var t={exports:{}};return e(t,t.exports),t.exports}var qt=$t((function(e,t){!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var g=e.type;switch(g){case c:case u:case r:case l:case i:case p:return g;default:var m=g&&g.$$typeof;switch(m){case s:case d:case h:case f:case a:return m;default:return t}}case o:return t}}}var w=c,I=u,C=s,R=a,M=n,A=d,E=r,k=h,S=f,T=o,L=l,G=i,P=p,N=!1;function O(e){return x(e)===u}t.AsyncMode=w,t.ConcurrentMode=I,t.ContextConsumer=C,t.ContextProvider=R,t.Element=M,t.ForwardRef=A,t.Fragment=E,t.Lazy=k,t.Memo=S,t.Portal=T,t.Profiler=L,t.StrictMode=G,t.Suspense=P,t.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||x(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===r},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===f},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===l||e===i||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y||e.$$typeof===m)},t.typeOf=x}()})),en=$t((function(e){e.exports=qt})),tn={};tn[en.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tn[en.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var nn="undefined"!=typeof document;function on(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}var rn=function(e,t,n){var o=e.key+"-"+t.name;if((!1===n||!1===nn&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles),void 0===e.inserted[t.name]){var r="",i=t;do{var l=e.insert(t===i?"."+o:"",i,e.sheet,!0);nn||void 0===l||(r+=l),i=i.next}while(void 0!==i);if(!nn&&0!==r.length)return r}};var ln={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},an="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",sn="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",cn=/[A-Z]|^ms/g,un=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dn=function(e){return 45===e.charCodeAt(1)},pn=function(e){return null!=e&&"boolean"!=typeof e},gn=Dt((function(e){return dn(e)?e:e.replace(cn,"-$&").toLowerCase()})),fn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(un,(function(e,t,n){return Cn={name:t,styles:n,next:Cn},t}))}return 1===ln[e]||dn(e)||"number"!=typeof t||0===t?t:t+"px"},hn=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,mn=["normal","none","initial","inherit","unset"],vn=fn,bn=/^-ms-/,yn=/-(.)/g,xn={};function wn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Cn={name:n.name,styles:n.styles,next:Cn},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Cn={name:o.name,styles:o.styles,next:Cn},o=o.next;var r=n.styles+";";return void 0!==n.map&&(r+=n.map),r}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=wn(e,t,n[r])+";";else for(var i in n){var l=n[i];if("object"!=typeof l)null!=t&&void 0!==t[l]?o+=i+"{"+t[l]+"}":pn(l)&&(o+=gn(i)+":"+fn(i,l)+";");else{if("NO_COMPONENT_SELECTOR"===i)throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var a=wn(e,t,l);switch(i){case"animation":case"animationName":o+=gn(i)+":"+a+";";break;default:"undefined"===i&&console.error(sn),o+=i+"{"+a+"}"}}else for(var s=0;s<l.length;s++)pn(l[s])&&(o+=gn(i)+":"+fn(i,l[s])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var i=Cn,l=n(e);return Cn=i,wn(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var a=[],s=n.replace(un,(function(e,t,n){var o="animation"+a.length;return a.push("const "+o+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+o+"}"}));a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}if(null==t)return n;var c=t[n];return void 0!==c?c:n}fn=function(e,t){if("content"===e&&("string"!=typeof t||-1===mn.indexOf(t)&&!hn.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=vn(e,t);return""===n||dn(e)||-1===e.indexOf("-")||void 0!==xn[e]||(xn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(bn,"ms-").replace(yn,(function(e,t){return t.toUpperCase()}))+"?")),n};var In,Cn,Rn=/label:\s*([^\s;\n{]+)\s*(;|$)/g;In=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Mn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Cn=void 0;var i,l=e[0];null==l||void 0===l.raw?(o=!1,r+=wn(n,t,l)):(void 0===l[0]&&console.error(an),r+=l[0]);for(var a=1;a<e.length;a++)r+=wn(n,t,e[a]),o&&(void 0===l[a]&&console.error(an),r+=l[a]);r=r.replace(In,(function(e){return i=e,""})),Rn.lastIndex=0;for(var s,c="";null!==(s=Rn.exec(r));)c+="-"+s[1];var u=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+c;return{name:u,styles:r,map:i,next:Cn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},An="undefined"!=typeof document,En={}.hasOwnProperty,kn=e.createContext("undefined"!=typeof HTMLElement?Qt({key:"css"}):null);kn.displayName="EmotionCacheContext",kn.Provider;var Sn=function(t){return e.forwardRef((function(n,o){var r=e.useContext(kn);return t(n,r,o)}))};An||(Sn=function(t){return function(n){var o=e.useContext(kn);return null===o?(o=Qt({key:"css"}),e.createElement(kn.Provider,{value:o},t(n,o))):t(n,o)}});var Tn=e.createContext({});Tn.displayName="EmotionThemeContext";var Ln=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t){var n=t[1].split(".");return n[n.length-1]}if(t=/^([A-Za-z0-9$.]+)@/.exec(e))return t[1]},Gn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Pn=function(e){return e.replace(/\$/g,"-")},Nn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Bn=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var o in t)En.call(t,o)&&(n[o]=t[o]);if(n[Nn]=e,t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var r=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var o=Ln(t[n]);if(o){if(Gn.has(o))break;if(/^[A-Z]/.test(o))return Pn(o)}}}((new Error).stack);r&&(n[On]=r)}return n},Dn=function(){return null},Fn=Sn((function(t,n,o){var r=t.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=t[Nn],l=[r],a="";"string"==typeof t.className?a=on(n.registered,l,t.className):null!=t.className&&(a=t.className+" ");var s=Mn(l,void 0,e.useContext(Tn));if(-1===s.name.indexOf("-")){var c=t[On];c&&(s=Mn([s,"label:"+c+";"]))}var u=rn(n,s,"string"==typeof i);a+=n.key+"-"+s.name;var d={};for(var p in t)En.call(t,p)&&"css"!==p&&p!==Nn&&p!==On&&(d[p]=t[p]);d.ref=o,d.className=a;var g=e.createElement(i,d),f=e.createElement(Dn,null);if(!An&&void 0!==u){for(var h,m=s.name,v=s.next;void 0!==v;)m+=" "+v.name,v=v.next;f=e.createElement("style",((h={})["data-emotion"]=n.key+" "+m,h.dangerouslySetInnerHTML={__html:u},h.nonce=n.sheet.nonce,h))}return e.createElement(e.Fragment,null,f,g)}));Fn.displayName="EmotionCssPropInternal";var Vn=function(t,n){var o=arguments;if(null==n||!En.call(n,"css"))return e.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=Fn,i[1]=Bn(t,n);for(var l=2;l<r;l++)i[l]=o[l];return e.createElement.apply(null,i)},Xn=!1,Wn=Sn((function(t,n){Xn||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Xn=!0);var o=t.styles,r=Mn([o],void 0,e.useContext(Tn));if(!An){for(var i,l=r.name,a=r.styles,s=r.next;void 0!==s;)l+=" "+s.name,a+=s.styles,s=s.next;var c=!0===n.compat,u=n.insert("",{name:l,styles:a},n.sheet,c);return c?null:e.createElement("style",((i={})["data-emotion"]=n.key+"-global "+l,i.dangerouslySetInnerHTML={__html:u},i.nonce=n.sheet.nonce,i))}var d=e.useRef();return e.useLayoutEffect((function(){var e=n.key+"-global",t=new ze({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),d.current=[t,o],function(){t.flush()}}),[n]),e.useLayoutEffect((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&rn(n,r.next,!0),t.tags.length){var o=t.tags[t.tags.length-1].nextElementSibling;t.before=o,t.flush()}n.insert("",r,t,!1)}}),[n,r.name]),null}));function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mn(t)}Wn.displayName="EmotionGlobal";var Hn=function e(t){for(var n=t.length,o=0,r="";o<n;o++){var i=t[o];if(null!=i){var l=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))l=e(i);else for(var a in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),l="",i)i[a]&&a&&(l&&(l+=" "),l+=a);break;default:l=i}l&&(r&&(r+=" "),r+=l)}}return r};function Yn(e,t,n){var o=[],r=on(e,o,n);return o.length<2?n:r+t(o)}var zn=function(){return null},jn=Sn((function(t,n){var o="",r="",i=!1,l=function(){if(i)throw new Error("css can only be used during render");for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];var a=Mn(t,n.registered);if(An)rn(n,a,!1);else{var s=rn(n,a,!1);void 0!==s&&(o+=s)}return An||(r+=" "+a.name),n.key+"-"+a.name},a={css:l,cx:function(){if(i)throw new Error("cx can only be used during render");for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Yn(n.registered,l,Hn(t))},theme:e.useContext(Tn)},s=t.children(a);i=!0;var c,u=e.createElement(zn,null);An||0===o.length||(u=e.createElement("style",((c={})["data-emotion"]=n.key+" "+r.substring(1),c.dangerouslySetInnerHTML={__html:o},c.nonce=n.sheet.nonce,c)));return e.createElement(e.Fragment,null,u,s)}));jn.displayName="EmotionClassNames";var Un="undefined"!=typeof document,_n="undefined"!=typeof jest;if(Un&&!_n){var Jn="undefined"!=typeof globalThis?globalThis:Un?window:global,Kn="__EMOTION_REACT_"+"11.7.1".split(".")[0]+"__";Jn[Kn]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Jn[Kn]=!0}function Qn(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}function $n(e){return $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},$n(e)}var qn=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable;function no(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var oo,ro=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,t){for(var n,o,r=no(e),i=1;i<arguments.length;i++){for(var l in n=Object(arguments[i]))eo.call(n,l)&&(r[l]=n[l]);if(qn){o=qn(n);for(var a=0;a<o.length;a++)to.call(n,o[a])&&(r[o[a]]=n[o[a]])}}return r},io=Function.call.bind(Object.prototype.hasOwnProperty),lo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ao=io,so={},co=ao;function uo(e,t,n,o,r){for(var i in e)if(co(e,i)){var l;try{if("function"!=typeof e[i]){var a=Error((o||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}l=e[i](t,i,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}if(!l||l instanceof Error||oo((o||"React class")+": type specification of "+n+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in so)){so[l.message]=!0;var s=r?r():"";oo("Failed "+n+" type: "+l.message+(null!=s?s:""))}}}oo=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},uo.resetWarningCache=function(){so={}};var po,go=uo;function fo(){return null}po=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}};var ho=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var o="<<anonymous>>",r={array:s("array"),bigint:s("bigint"),bool:s("boolean"),func:s("function"),number:s("number"),object:s("object"),string:s("string"),symbol:s("symbol"),any:a(fo),arrayOf:function(e){return a((function(t,n,o,r,i){if("function"!=typeof e)return new l("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new l("Invalid "+r+" `"+i+"` of type `"+d(a)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<a.length;s++){var c=e(a,s,o,r,i+"["+s+"]",lo);if(c instanceof Error)return c}return null}))},element:a((function(t,n,o,r,i){var a=t[n];return e(a)?null:new l("Invalid "+r+" `"+i+"` of type `"+d(a)+"` supplied to `"+o+"`, expected a single ReactElement.")})),elementType:a((function(e,t,n,o,r){var i=e[t];return en.isValidElementType(i)?null:new l("Invalid "+o+" `"+r+"` of type `"+d(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return a((function(t,n,r,i,a){if(!(t[n]instanceof e)){var s=e.name||o;return new l("Invalid "+i+" `"+a+"` of type `"+(((c=t[n]).constructor&&c.constructor.name?c.constructor.name:o)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var c;return null}))},node:a((function(e,t,n,o,r){return u(e[t])?null:new l("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return a((function(t,n,o,r,i){if("function"!=typeof e)return new l("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=t[n],s=d(a);if("object"!==s)return new l("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+o+"`, expected an object.");for(var c in a)if(ao(a,c)){var u=e(a,c,o,r,i+"."+c,lo);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return po(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),fo;function t(t,n,o,r,a){for(var s=t[n],c=0;c<e.length;c++)if(i(s,e[c]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===p(t)?String(t):t}));return new l("Invalid "+r+" `"+a+"` of value `"+String(s)+"` supplied to `"+o+"`, expected one of "+u+".")}return a(t)},oneOfType:function(e){if(!Array.isArray(e))return po("Invalid argument supplied to oneOfType, expected an instance of array."),fo;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return po("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+g(n)+" at index "+t+"."),fo}return a((function(t,n,o,r,i){for(var a=[],s=0;s<e.length;s++){var c=(0,e[s])(t,n,o,r,i,lo);if(null==c)return null;c.data&&ao(c.data,"expectedType")&&a.push(c.data.expectedType)}return new l("Invalid "+r+" `"+i+"` supplied to `"+o+"`"+(a.length>0?", expected one of type ["+a.join(", ")+"]":"")+".")}))},shape:function(e){return a((function(t,n,o,r,i){var a=t[n],s=d(a);if("object"!==s)return new l("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var g=e[u];if("function"!=typeof g)return c(o,r,i,u,p(g));var f=g(a,u,o,r,i+"."+u,lo);if(f)return f}return null}))},exact:function(e){return a((function(t,n,o,r,i){var a=t[n],s=d(a);if("object"!==s)return new l("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");var u=ro({},t[n],e);for(var g in u){var f=e[g];if(ao(e,g)&&"function"!=typeof f)return c(o,r,i,g,p(f));if(!f)return new l("Invalid "+r+" `"+i+"` key `"+g+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var h=f(a,g,o,r,i+"."+g,lo);if(h)return h}return null}))}};function i(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function l(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function a(e){var n={},r=0;function i(i,a,s,c,u,d,p){if(c=c||o,d=d||s,p!==lo){if(t){var g=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 g.name="Invariant Violation",g}if("undefined"!=typeof console){var f=c+":"+s;!n[f]&&r<3&&(po("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[f]=!0,r++)}}return null==a[s]?i?null===a[s]?new l("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new l("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,d)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function s(e){return a((function(t,n,o,r,i,a){var s=t[n];return d(s)!==e?new l("Invalid "+r+" `"+i+"` of type `"+p(s)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function c(e,t,n,o,r){return new l((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var o=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!o)return!1;var r,i=o.call(t);if(o!==t.entries){for(;!(r=i.next()).done;)if(!u(r.value))return!1}else for(;!(r=i.next()).done;){var l=r.value;if(l&&!u(l[1]))return!1}return!0;default:return!1}}function d(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function g(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return l.prototype=Error.prototype,r.checkPropTypes=go,r.resetWarningCache=go.resetWarningCache,r.PropTypes=r,r},mo=$t((function(e){var t=en;e.exports=ho(t.isElement,!0)})),vo=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},bo=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}}(),yo=wo(i.default),xo=wo(mo);function wo(e){return e&&e.__esModule?e:{default:e}}var Io={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},Co=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],Ro=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},Mo=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),Ao=function(){return Mo?"_"+Math.random().toString(36).substr(2,12):void 0},Eo=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||Ao(),prevId:e.id},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,i["default"].Component),bo(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||Ao(),prevId:n}:null}}]),bo(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(Ro(e,this.sizer),this.placeHolderSizer&&Ro(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return Mo&&e?yo.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=vo({},this.props.style);t.display||(t.display="inline-block");var n=vo({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=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}(this.props,[]);return function(e){Co.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,yo.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),yo.default.createElement("input",vo({},o,{ref:this.inputRef})),yo.default.createElement("div",{ref:this.sizerRef,style:Io},e),this.props.placeholder?yo.default.createElement("div",{ref:this.placeHolderSizerRef,style:Io},this.props.placeholder):null)}}]),t}();Eo.propTypes={className:xo.default.string,defaultValue:xo.default.any,extraWidth:xo.default.oneOfType([xo.default.number,xo.default.string]),id:xo.default.string,injectStyles:xo.default.bool,inputClassName:xo.default.string,inputRef:xo.default.func,inputStyle:xo.default.object,minWidth:xo.default.oneOfType([xo.default.number,xo.default.string]),onAutosize:xo.default.func,onChange:xo.default.func,placeholder:xo.default.string,placeholderIsMinWidth:xo.default.bool,style:xo.default.object,value:xo.default.any},Eo.defaultProps={minWidth:1,injectStyles:!0};var ko=Eo;function So(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function To(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)}}function Lo(e,t,n){return t&&To(e.prototype,t),n&&To(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Go(e,t){return Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Go(e,t)}function Po(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&&Go(e,t)}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bo(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 Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}function Vo(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Fo(e);if(t){var r=Fo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Vo(this,n)}}var Wo=function(){};function Zo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ho(e,t,n){var o=[n];if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&o.push("".concat(Zo(e,r)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Yo=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===$n(e)&&null!==e?[e]:[]},zo=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Do({},Qn(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function jo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Uo(e){return jo(e)?window.pageYOffset:e.scrollTop}function _o(e,t){jo(e)?window.scrollTo(0,t):e.scrollTop=t}function Jo(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function Ko(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Wo,r=Uo(e),i=t-r,l=10,a=0;function s(){var t=Jo(a+=l,r,i,n);_o(e,t),a<n?window.requestAnimationFrame(s):o(e)}s()}function Qo(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var $o=!1,qo={get passive(){return $o=!0}},er="undefined"!=typeof window?window:{};er.addEventListener&&er.removeEventListener&&(er.addEventListener("p",Wo,qo),er.removeEventListener("p",Wo,!1));var tr=$o;function nr(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,l=e.isFixedPosition,a=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/,r=document.documentElement;if("fixed"===t.position)return r;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return r}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,g=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,v=Uo(s),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=h-y,w=m-f,I=x+v,C=u-v-f,R=p-m+v+b,M=v+f-y,A=160;switch(r){case"auto":case"bottom":if(w>=g)return{placement:"bottom",maxHeight:t};if(C>=g&&!l)return i&&Ko(s,R,A),{placement:"bottom",maxHeight:t};if(!l&&C>=o||l&&w>=o)return i&&Ko(s,R,A),{placement:"bottom",maxHeight:l?w-b:C-b};if("auto"===r||l){var E=t,k=l?x:I;return k>=o&&(E=Math.min(k-b-a.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===r)return i&&_o(s,R),{placement:"bottom",maxHeight:t};break;case"top":if(x>=g)return{placement:"top",maxHeight:t};if(I>=g&&!l)return i&&Ko(s,M,A),{placement:"top",maxHeight:t};if(!l&&I>=o||l&&x>=o){var S=t;return(!l&&I>=o||l&&x>=o)&&(S=l?x-y:I-y),i&&Ko(s,M,A),{placement:"top",maxHeight:S}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}var or=function(e){return"auto"===e?"bottom":e},rr=e.createContext({getPortalPlacement:null}),ir=function(t){Po(o,e.Component);var n=Xo(o);function o(){var e;So(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,o=n.minMenuHeight,r=n.maxMenuHeight,i=n.menuPlacement,l=n.menuPosition,a=n.menuShouldScrollIntoView,s=n.theme;if(t){var c="fixed"===l,u=nr({maxHeight:r,menuEl:t,minHeight:o,placement:i,shouldScroll:a&&!c,isFixedPosition:c,theme:s}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||or(t);return Do(Do({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Lo(o,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),o}();ir.contextType=rr;var lr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},ar=lr,sr=lr,cr=function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Vn("div",Ye({css:r("noOptionsMessage",e),className:o({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};cr.defaultProps={children:"No options"};var ur=function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Vn("div",Ye({css:r("loadingMessage",e),className:o({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};ur.defaultProps={children:"Loading..."};var dr,pr=function(n){Po(r,e.Component);var o=Xo(r);function r(){var e;So(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==or(e.props.menuPlacement)&&e.setState({placement:n})},e}return Lo(r,[{key:"render",value:function(){var e=this.props,n=e.appendTo,o=e.children,r=e.className,i=e.controlElement,l=e.cx,a=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=e.getStyles,d="fixed"===c;if(!n&&!d||!i)return null;var p=this.state.placement||or(s),g=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),f=d?0:window.pageYOffset,h=g[p]+f,m=Vn("div",Ye({css:u("menuPortal",{offset:h,position:c,rect:g}),className:l({"menu-portal":!0},r)},a),o);return Vn(rr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},n?t.createPortal(m,n):m)}}]),r}();var gr,fr,hr={name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6I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4gICAgICBjbGFzc05hbWU9e2N4KFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGNsYXNzTmFtZVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5Mb2FkaW5nSW5kaWNhdG9yLmRlZmF1bHRQcm9wcyA9IHsgc2l6ZTogNCB9O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},mr=function(e){var t=e.size,n=Qn(e,["size"]);return Vn("svg",Ye({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hr},n))},vr=function(e){return Vn(mr,Ye({size:20},e),Vn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},br=function(e){return Vn(mr,Ye({size:20},e),Vn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},yr=function(e){var t=e.isFocused,n=e.theme,o=n.spacing.baseUnit,r=n.colors;return{label:"indicatorContainer",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*o,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},xr=yr,wr=yr,Ir=function(){var e=Zn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(dr||(gr=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],fr||(fr=gr.slice(0)),dr=Object.freeze(Object.defineProperties(gr,{raw:{value:Object.freeze(fr)}})))),Cr=function(e){var t=e.delay,n=e.offset;return Vn("span",{css:Zn({animation:"".concat(Ir," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},";label:LoadingDot;","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHR5cGUgeyBDb21tb25Qcm9wcywgVGhlbWUgfSBmcm9tICcuLi90eXBlcyc7XG5cbi8vID09PT09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VsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5Mb2FkaW5nSW5kaWNhdG9yLmRlZmF1bHRQcm9wcyA9IHsgc2l6ZTogNCB9O1xuIl19 */")})},Rr=function(e){var t=e.className,n=e.cx,o=e.getStyles,r=e.innerProps,i=e.isRtl;return Vn("div",Ye({css:o("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},r),Vn(Cr,{delay:0,offset:i}),Vn(Cr,{delay:160,offset:!0}),Vn(Cr,{delay:320,offset:!i}))};Rr.defaultProps={size:4};var Mr=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Ar=function(e){var t=e.children,n=e.innerProps;return Vn("div",n,t)},Er=Ar,kr=Ar;var Sr=function(e){var t=e.children,n=e.className,o=e.components,r=e.cx,i=e.data,l=e.getStyles,a=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,d=o.Container,p=o.Label,g=o.Remove;return Vn(jn,null,(function(o){var f=o.css,h=o.cx;return Vn(d,{data:i,innerProps:Do({className:h(f(l("multiValue",e)),r({"multi-value":!0,"multi-value--is-disabled":s},n))},a),selectProps:u},Vn(p,{data:i,innerProps:{className:h(f(l("multiValueLabel",e)),r({"multi-value__label":!0},n))},selectProps:u},t),Vn(g,{data:i,innerProps:Do({className:h(f(l("multiValueRemove",e)),r({"multi-value__remove":!0},n))},c),selectProps:u}))}))};Sr.defaultProps={cropWithEllipsis:!0};var Tr={ClearIndicator:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Vn("div",Ye({css:r("clearIndicator",e),className:o({indicator:!0,"clear-indicator":!0},n)},i),t||Vn(vr,null))},Control:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.className,i=e.isDisabled,l=e.isFocused,a=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return Vn("div",Ye({ref:a,css:o("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":l,"control--menu-is-open":c},r)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Vn("div",Ye({css:r("dropdownIndicator",e),className:o({indicator:!0,"dropdown-indicator":!0},n)},i),t||Vn(br,null))},DownChevron:br,CrossIcon:vr,Group:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.Heading,l=e.headingProps,a=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return Vn("div",Ye({css:r("group",e),className:o({group:!0},n)},a),Vn(i,Ye({},l,{selectProps:u,theme:c,getStyles:r,cx:o}),s),Vn("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,o=e.className,r=zo(e);r.data;var i=Qn(r,["data"]);return Vn("div",Ye({css:t("groupHeading",e),className:n({"group-heading":!0},o)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,o=e.cx,r=e.innerProps,i=e.getStyles;return Vn("div",Ye({css:i("indicatorsContainer",e),className:o({indicators:!0},n)},r),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,o=e.getStyles,r=e.innerProps;return Vn("span",Ye({},r,{css:o("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,o=e.getStyles,r=zo(e),i=r.innerRef,l=r.isDisabled,a=r.isHidden,s=Qn(r,["innerRef","isDisabled","isHidden"]);return Vn("div",{css:o("input",e)},Vn(ko,Ye({className:n({input:!0},t),inputRef:i,inputStyle:Mr(a),disabled:l},s)))},LoadingIndicator:Rr,Menu:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerRef,l=e.innerProps;return Vn("div",Ye({css:r("menu",e),className:o({menu:!0},n),ref:i},l),t)},MenuList:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps,l=e.innerRef,a=e.isMulti;return Vn("div",Ye({css:r("menuList",e),className:o({"menu-list":!0,"menu-list--is-multi":a},n),ref:l},i),t)},MenuPortal:pr,LoadingMessage:ur,NoOptionsMessage:cr,MultiValue:Sr,MultiValueContainer:Er,MultiValueLabel:kr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Vn("div",n,t||Vn(vr,{size:14}))},Option:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.isDisabled,l=e.isFocused,a=e.isSelected,s=e.innerRef,c=e.innerProps;return Vn("div",Ye({css:r("option",e),className:o({option:!0,"option--is-disabled":i,"option--is-focused":l,"option--is-selected":a},n),ref:s},c),t)},Placeholder:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Vn("div",Ye({css:r("placeholder",e),className:o({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps,l=e.isDisabled,a=e.isRtl;return Vn("div",Ye({css:r("container",e),className:o({"--is-disabled":l,"--is-rtl":a},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.isDisabled,l=e.innerProps;return Vn("div",Ye({css:r("singleValue",e),className:o({"single-value":!0,"single-value--is-disabled":i},n)},l),t)},ValueContainer:function(e){var t=e.children,n=e.className,o=e.cx,r=e.innerProps,i=e.isMulti,l=e.getStyles,a=e.hasValue;return Vn("div",Ye({css:l("valueContainer",e),className:o({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a},n)},r),t)}};function Lr(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 Gr(e){return function(e){if(Array.isArray(e))return Lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lr(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)?Lr(e,t):void 0}}(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 Pr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Nr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],r=t[n],!(o===r||Pr(o)&&Pr(r)))return!1;var o,r;return!0}for(var Or={name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFJIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG4vLyBBc3Npc3RpdmUgdGV4dCB0byBkZXNjcmliZSB2aXN1YWwgZWxlbWVudHMuIEhpZGRlbiBmb3Igc2lnaHRlZCB1c2Vycy5cbmNvbnN0IEExMXlUZXh0ID0gKHByb3BzOiBFbGVtZW50Q29uZmlnPCdzcGFuJz4pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Br=function(e){return Vn("span",Ye({css:Or},e))},Dr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"select-option":return"option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=void 0===n?{}:n,r=e.options,i=e.label,l=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(l," focused, ").concat(u(a,o),".");if("menu"===t){var d=s?" disabled":"",p="".concat(c?"selected":"focused").concat(d);return"option ".concat(l," ").concat(p,", ").concat(u(r,o),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Fr=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,l=t.focusableOptions,a=t.isFocused,s=t.selectValue,c=t.selectProps,u=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,g=c.isMulti,f=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,v=c.options,b=c.screenReaderStatus,y=c.tabSelectsValue,x=c["aria-label"],w=c["aria-live"],I=e.useMemo((function(){return Do(Do({},Dr),u||{})}),[u]),C=e.useMemo((function(){var e,t="";if(n&&I.onChange){var o=n.option,r=n.removedValue,i=n.value,l=r||o||(e=i,Array.isArray(e)?null:e),a=Do({isDisabled:l&&f(l),label:l?d(l):""},n);t=I.onChange(a)}return t}),[n,f,d,I]),R=e.useMemo((function(){var e="",t=o||r,n=!!(o&&s&&s.includes(o));if(t&&I.onFocus){var i={focused:t,label:d(t),isDisabled:f(t),isSelected:n,options:v,context:t===o?"menu":"value",selectValue:s};e=I.onFocus(i)}return e}),[o,r,d,f,I,v,s]),M=e.useMemo((function(){var e="";if(m&&v.length&&I.onFilter){var t=b({count:l.length});e=I.onFilter({inputValue:p,resultsMessage:t})}return e}),[l,p,m,I,v,b]),A=e.useMemo((function(){var e="";if(I.guidance){var t=r?"value":m?"menu":"input";e=I.guidance({"aria-label":x,context:t,isDisabled:o&&f(o),isMulti:g,isSearchable:h,tabSelectsValue:y})}return e}),[x,o,r,g,f,h,m,I,y]),E="".concat(R," ").concat(M," ").concat(A);return Vn(Br,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&Vn(i.default.Fragment,null,Vn("span",{id:"aria-selection"},C),Vn("span",{id:"aria-context"},E)))},Vr=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],Xr=new RegExp("["+Vr.map((function(e){return e.letters})).join("")+"]","g"),Wr={},Zr=0;Zr<Vr.length;Zr++)for(var Hr=Vr[Zr],Yr=0;Yr<Hr.letters.length;Yr++)Wr[Hr.letters[Yr]]=Hr.base;var zr=function(e){return e.replace(Xr,(function(e){return Wr[e]}))},jr=function(e,t){var n;void 0===t&&(t=Nr);var o,r=[],i=!1;return function(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return i&&n===this&&t(l,r)||(o=e.apply(this,l),i=!0,n=this,r=l),o}}(zr),Ur=function(e){return e.replace(/^\s+|\s+$/g,"")},_r=function(e){return"".concat(e.label," ").concat(e.value)};function Jr(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Qn(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Vn("input",Ye({ref:t},n,{css:Zn({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},";label:DummyInput;","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbjogaW5Qcm9wLFxuICBvdXQsXG4gIG9uRXhpdGVkLFxuICBhcHBlYXIsXG4gIGVudGVyLFxuICBleGl0LFxuICBpbm5lclJlZixcbiAgZW1vdGlvbixcbiAgLi4ucHJvcHNcbn06IGFueSkge1xuICByZXR1cm4gKFxuICAgIDxpbnB1dFxuICAgICAgcmVmPXtpbm5lclJlZn1cbiAgICAgIHsuLi5wcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgwKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var Kr=["boxSizing","height","overflow","paddingRight","position"],Qr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $r(e){e.preventDefault()}function qr(e){e.stopPropagation()}function ei(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ti(){return"ontouchstart"in window||navigator.maxTouchPoints}var ni=!("undefined"==typeof window||!window.document||!window.document.createElement),oi=0,ri={capture:!1,passive:!1};var ii=function(){return document.activeElement&&document.activeElement.blur()},li={name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0RVIiwiZmlsZSI6IlNjcm9sbE1hbmFnZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSB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JvdHRvbUFycml2ZSxcbiAgb25Cb3R0b21MZWF2ZSxcbiAgb25Ub3BBcnJpdmUsXG4gIG9uVG9wTGVhdmUsXG59OiBQcm9wcykge1xuICBjb25zdCBzZXRTY3JvbGxDYXB0dXJlVGFyZ2V0ID0gdXNlU2Nyb2xsQ2FwdHVyZSh7XG4gICAgaXNFbmFibGVkOiBjYXB0dXJlRW5hYmxlZCxcbiAgICBvbkJvdHRvbUFycml2ZSxcbiAgICBvbkJvdHRvbUxlYXZlLFxuICAgIG9uVG9wQXJyaXZlLFxuICAgIG9uVG9wTGVhdmUsXG4gIH0pO1xuICBjb25zdCBzZXRTY3JvbGxMb2NrVGFyZ2V0ID0gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmID0gZWxlbWVudCA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPFJlYWN0LkZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvUmVhY3QuRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function ai(t){var n=t.children,o=t.lockEnabled,r=t.captureEnabled,l=function(t){var n=t.isEnabled,o=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,l=t.onTopLeave,a=e.useRef(!1),s=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,g=u.current,f=t>0,h=d-p-c,m=!1;h>t&&a.current&&(r&&r(e),a.current=!1),f&&s.current&&(l&&l(e),s.current=!1),f&&t>h?(o&&!a.current&&o(e),g.scrollTop=d,m=!0,a.current=!0):!f&&-t>c&&(i&&!s.current&&i(e),g.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),p=e.useCallback((function(e){d(e,e.deltaY)}),[d]),g=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),f=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=e.useCallback((function(e){if(e){var t=!!tr&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",g,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",f,t)}}),[f,g,p]),m=e.useCallback((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",g,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",f,!1))}),[f,g,p]);return e.useEffect((function(){if(n){var e=u.current;return h(e),function(){m(e)}}}),[n,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,o=t.accountForScrollbars,r=void 0===o||o,i=e.useRef({}),l=e.useRef(null),a=e.useCallback((function(e){if(ni){var t=document.body,n=t&&t.style;if(r&&Kr.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&oi<1){var o=parseInt(i.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,a=window.innerWidth-l+o||0;Object.keys(Qr).forEach((function(e){var t=Qr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&ti()&&(t.addEventListener("touchmove",$r,ri),e&&(e.addEventListener("touchstart",ei,ri),e.addEventListener("touchmove",qr,ri))),oi+=1}}),[]),s=e.useCallback((function(e){if(ni){var t=document.body,n=t&&t.style;oi=Math.max(oi-1,0),r&&oi<1&&Kr.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&ti()&&(t.removeEventListener("touchmove",$r,ri),e&&(e.removeEventListener("touchstart",ei,ri),e.removeEventListener("touchmove",qr,ri)))}}),[]);return e.useEffect((function(){if(n){var e=l.current;return a(e),function(){s(e)}}}),[n,a,s]),function(e){l.current=e}}({isEnabled:o});return Vn(i.default.Fragment,null,o&&Vn("div",{onClick:ii,css:li}),n((function(e){l(e),a(e)})))}var si,ci={clearIndicator:wr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,o=e.theme,r=o.colors,i=o.borderRadius,l=o.spacing;return{label:"control",alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:n?r.primary:r.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(r.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?r.primary:r.neutral30}}},dropdownIndicator:xr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing.baseUnit,r=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*o,marginTop:2*o,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing,r=n.colors;return{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,o=e.theme,r=o.colors,i=o.spacing.baseUnit;return{label:"loadingIndicator",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:sr,menu:function(e){var t,n=e.placement,o=e.theme,r=o.borderRadius,i=o.spacing,l=o.colors;return No(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),No(t,"backgroundColor",l.neutral0),No(t,"borderRadius",r),No(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),No(t,"marginBottom",i.menuGutter),No(t,"marginTop",i.menuGutter),No(t,"position","absolute"),No(t,"width","100%"),No(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,o=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:o/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,o=t.colors,r=e.cropWithEllipsis;return{borderRadius:n/2,color:o.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,o=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:o/2,backgroundColor:e.isFocused&&r.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:ar,option:function(e){var t=e.isDisabled,n=e.isFocused,o=e.isSelected,r=e.theme,i=r.spacing,l=r.colors;return{label:"option",backgroundColor:o?l.primary:n?l.primary25:"transparent",color:t?l.neutral20:o?l.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(o?l.primary:l.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing,r=n.colors;return{label:"singleValue",color:t?r.neutral40:r.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2,maxWidth:"calc(100% - ".concat(2*o.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},ui={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},di={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Qo(),captureMenuScroll:!Qo(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Do({ignoreCase:!0,ignoreAccents:!0,stringify:_r,trim:!0,matchFrom:"any"},si),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,l=n.trim,a=n.matchFrom,s=l?Ur(t):t,c=l?Ur(i(e)):i(e);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),r&&(s=jr(s),c=zr(c)),"start"===a?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function pi(e,t,n,o){return{type:"option",data:t,isDisabled:bi(e,t,n),isSelected:yi(e,t,n),label:mi(e,t),value:vi(e,t),index:o}}function gi(e,t){return e.options.map((function(n,o){if(n.options){var r=n.options.map((function(n,o){return pi(e,n,t,o)})).filter((function(t){return hi(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=pi(e,n,t,o);return hi(e,i)?i:void 0})).filter((function(e){return!!e}))}function fi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Gr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function hi(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,l=t.label,a=t.value;return(!wi(e)||!i)&&xi(e,{label:l,value:a,data:r},o)}var mi=function(e,t){return e.getOptionLabel(t)},vi=function(e,t){return e.getOptionValue(t)};function bi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function yi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=vi(e,t);return n.some((function(t){return vi(e,t)===o}))}function xi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var wi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ii=1,Ci=function(t){Po(o,e.Component);var n=Xo(o);function o(e){var t;return So(this,o),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",o=arguments.length>2?arguments[2]:void 0,r=t.props,i=r.closeMenuOnSelect,l=r.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.setState({inputIsHiddenAfterUpdate:!l}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,l=t.state.selectValue,a=r&&t.isOptionSelected(e,l),s=t.isOptionDisabled(e,l);if(a){var c=t.getOptionValue(e);t.setValue(l.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",name:i});r?t.setValue([].concat(Gr(l),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),l=n?i:i[0]||null;t.onChange(l,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(t.props.isMulti?[]:null,{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=e?r:r[0]||null;t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Ho.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return mi(t.props,e)},t.getOptionValue=function(e){return vi(t.props,e)},t.getStyles=function(e,n){var o=ci[e](n);o.boxSizing="border-box";var r=t.props.styles[e];return r?r(o,n):o},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Do(Do({},Tr),e.components);var e},t.buildCategorizedOptions=function(){return gi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return fi(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Do({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,r=n.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&jo(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var r=Math.abs(o.clientX-t.initialTouchX),i=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=r>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return wi(t.props)},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,l=n.inputValue,a=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,g=t.state,f=g.focusedOption,h=g.focusedValue,m=g.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||l)return;t.focusValue("previous");break;case"ArrowRight":if(!o||l)return;t.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(h)t.removeValue(h);else{if(!r)return;o?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&t.isOptionSelected(f,m))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):a&&i&&t.clearValue();break;case" ":if(l)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Ii),t.state.selectValue=Yo(e.value),t}return Lo(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,o,r,i,l=this.props,a=l.isDisabled,s=l.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,o=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=n.offsetHeight/3,r.bottom+i>o.bottom?_o(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i<o.top&&_o(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),l="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(o[0]);a>-1&&(l=a)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[l]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,l=-1;if(n.length){switch(e){case"previous":l=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(l=r+1)}this.setState({inputIsHidden:-1!==l,focusedValue:n[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ui):Do(Do({},ui),this.props.theme):ui}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getValue,r=this.selectOption,i=this.setValue,l=this.props,a=l.isMulti,s=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:n,getValue:o,hasValue:this.hasValue(),isMulti:a,isRtl:s,options:c,selectOption:r,selectProps:l,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return bi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return yi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return xi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,l=e.tabIndex,a=e.form,s=this.getComponents().Input,c=this.state.inputIsHidden,u=this.commonProps,d=o||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?i.default.createElement(s,Ye({},u,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:d,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:a,type:"text",value:r},p)):i.default.createElement(Jr,Ye({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Wo,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:l,form:a,value:""},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,l=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,g=u.isMulti,f=u.inputValue,h=u.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!d)return f?null:i.default.createElement(s,Ye({},c,{key:"placeholder",isDisabled:p,isFocused:y}),h);if(g){var x=v.map((function(t,a){var s=t===b;return i.default.createElement(n,Ye({},c,{components:{Container:o,Label:r,Remove:l},isFocused:s,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));return x}if(f)return null;var w=v[0];return i.default.createElement(a,Ye({},c,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,l=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.default.createElement(e,Ye({},t,{innerProps:a,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,l=this.state.isFocused;if(!e||!r)return null;return i.default.createElement(e,Ye({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:l}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,l=this.state.isFocused;return i.default.createElement(n,Ye({},o,{isDisabled:r,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.default.createElement(e,Ye({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,l=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,g=this.props,f=g.captureMenuScroll,h=g.inputValue,m=g.isLoading,v=g.loadingMessage,b=g.minMenuHeight,y=g.maxMenuHeight,x=g.menuIsOpen,w=g.menuPlacement,I=g.menuPosition,C=g.menuPortalTarget,R=g.menuShouldBlockScroll,M=g.menuShouldScrollIntoView,A=g.noOptionsMessage,E=g.onMenuScrollToTop,k=g.onMenuScrollToBottom;if(!x)return null;var S,T=function(t,n){var o=t.type,r=t.data,l=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,g=p===r,f=l?void 0:function(){return e.onOptionHover(r)},h=l?void 0:function(){return e.selectOption(r)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1};return i.default.createElement(u,Ye({},d,{innerProps:v,data:r,isDisabled:l,isSelected:a,key:m,label:s,type:o,value:c,isFocused:g,innerRef:g?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())S=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,l=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return i.default.createElement(n,Ye({},d,{key:s,data:r,options:l,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(m){var L=v({inputValue:h});if(null===L)return null;S=i.default.createElement(s,d,L)}else{var G=A({inputValue:h});if(null===G)return null;S=i.default.createElement(c,d,G)}var P={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:I,menuShouldScrollIntoView:M},N=i.default.createElement(ir,Ye({},d,P),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return i.default.createElement(r,Ye({},d,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),i.default.createElement(ai,{captureEnabled:f,onTopArrive:E,onBottomArrive:k,lockEnabled:R},(function(t){return i.default.createElement(l,Ye({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:s,focusedOption:p}),S)})))}));return C||"fixed"===I?i.default.createElement(a,Ye({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:w,menuPosition:I}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,l=t.name,a=this.state.selectValue;if(l&&!o){if(r){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return i.default.createElement("input",{name:l,type:"hidden",value:s})}var c=a.length>0?a.map((function(t,n){return i.default.createElement("input",{key:"i-".concat(n),name:l,type:"hidden",value:e.getOptionValue(t)})})):i.default.createElement("input",{name:l,type:"hidden"});return i.default.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return i.default.createElement("input",{name:l,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,l=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return i.default.createElement(Fr,Ye({},e,{ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:l,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,l=this.props,a=l.className,s=l.id,c=l.isDisabled,u=l.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return i.default.createElement(o,Ye({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),i.default.createElement(t,Ye({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),i.default.createElement(r,Ye({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),i.default.createElement(n,Ye({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=e.options,l=e.value,a=e.menuIsOpen,s=e.inputValue,c={};if(n&&(l!==n.value||i!==n.options||a!==n.menuIsOpen||s!==n.inputValue)){var u=Yo(l),d=a?function(e,t){return fi(gi(e,t))}(e,u):[],p=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,u):null,g=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,d);c={selectValue:u,focusedOption:g,focusedValue:p,clearFocusValueOnUpdate:!1}}var f=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{};return Do(Do(Do({},c),f),{},{prevProps:e})}}]),o}();Ci.defaultProps=di;var Ri,Mi,Ai,Ei={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},ki=(Ri=Ci,Ai=Mi=function(t){Po(o,e.Component);var n=Xo(o);function o(){var e;So(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var o=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==o?o:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Lo(o,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this.props)[e].apply(t,o)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=Qn(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return i.default.createElement(Ri,Ye({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),o}(),Mi.defaultProps=Ei,Ai),Si=ki,Ti=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t;try{t=Re(e,"selectedValue","string")}catch(e){t=void 0}var n,o,r=Re(e,"values","object"),i=t?parseFloat(t):NaN,l=!0;try{l=Re(e,"isDisabled","boolean")}catch(e){l=!1}try{n=Re(e,"inputValue","string")}catch(e){n=void 0}try{o=Re(e,"isOpen","boolean")}catch(e){o=!1}var a=t||"";return h(h({},e),{selectedValue:t,text:a,value:i,values:r,isDisabled:l,isOpen:o,inputValue:n})},e.prototype.update=function(e,t){return this.getCompatibleCell(h(h({},e),{selectedValue:t.selectedValue,isOpen:t.isOpen,inputValue:t.inputValue}))},e.prototype.getClassName=function(e,t){var n=e.isOpen?"open":"closed";return"".concat(e.className?e.className:"").concat(n)},e.prototype.handleKeyDown=function(e,t,n,o,r){if((t===exports.keyCodes.SPACE||t===exports.keyCodes.ENTER)&&!o)return{cell:this.getCompatibleCell(h(h({},e),{isOpen:!e.isOpen})),enableEditMode:!1};var i=De(t,o);return n||r||!Ae(t)?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(h(h({},e),{inputValue:o?i:i.toLowerCase(),isOpen:!e.isOpen})),enableEditMode:!1}},e.prototype.render=function(e,t,n){var o=this;return r.createElement(Li,{onCellChanged:function(e){return n(o.getCompatibleCell(e),!0)},cell:e})},e}(),Li=function(e){var t=e.onCellChanged,n=e.cell,o=r.useRef(null),i=r.useState(n.inputValue),l=i[0],a=i[1];return r.useEffect((function(){n.isOpen&&o.current&&(o.current.focus(),a(n.inputValue))}),[n.isOpen,n.inputValue]),r.createElement("div",{style:{width:"100%"},onPointerDown:function(e){return t(h(h({},n),{isOpen:!0}))}},r.createElement(Si,h({},n.inputValue&&{inputValue:l,defaultInputValue:l,onInputChange:function(e){return a(e)}},{isSearchable:!0,ref:o},void 0!==n.isOpen&&{menuIsOpen:n.isOpen},{onMenuClose:function(){return t(h(h({},n),{isOpen:!n.isOpen,inputValue:void 0}))},onMenuOpen:function(){return t(h(h({},n),{isOpen:!0}))},onChange:function(e){return t(h(h({},n),{selectedValue:e.value,isOpen:!1,inputValue:void 0}))},blurInputOnSelect:!0,defaultValue:n.values.find((function(e){return e.value===n.selectedValue})),isDisabled:n.isDisabled,options:n.values,onKeyDown:function(e){return e.stopPropagation()},components:{Option:Gi,Menu:Pi},styles:{container:function(e){return h(h({},e),{width:"100%",height:"100%"})},control:function(e){return h(h({},e),{border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none"})},indicatorsContainer:function(e){return h(h({},e),{paddingTop:"0px"})},dropdownIndicator:function(e){return h(h({},e),{padding:"0px 4px"})},singleValue:function(e){return h(h({},e),{color:"inherit"})},indicatorSeparator:function(e){return h(h({},e),{marginTop:"4px",marginBottom:"4px"})},input:function(e){return h(h({},e),{padding:0})},valueContainer:function(e){return h(h({},e),{padding:"0 8px"})}}})))},Gi=function(e){var t=e.innerProps,n=e.label,o=e.isSelected,i=e.isFocused;return r.createElement("div",h({},t,{onPointerDown:function(e){return e.stopPropagation()},className:"rg-dropdown-option".concat(o?" selected":"").concat(i?" focused":"")}),n)},Pi=function(e){var t=e.innerProps,n=e.children;return r.createElement("div",h({},t,{className:"rg-dropdown-menu"}),n)},Ni={text:new Ze,number:new We,header:new Xe,checkbox:new Me,date:new Ne,email:new Fe,time:new He,chevron:new Ve,dropdown:new Ti};var Oi=function(e){var t=[],n=0;return e.forEach((function(o,r){if(e[r-1]){var i=e[r-1];o.idx-i.idx==1?t[n]?t[n].push(o):t.push([i,o]):(t.push([o]),n+=1)}else t.push([o])})),t},Bi=function(e){var t=[],n=0;return e.forEach((function(o,r){if(e[r-1]){var i=e[r-1];o.idx-i.idx==1?t[n]?t[n].push(o):t.push([i,o]):(t.push([o]),n+=1)}else t.push([o])})),t};function Di(e,t){var n=Wi(e);Hi(e,t)&&(t=n(t)(Qi)),t=n(t)(Yi),t=n(t)(_i),t=n(t)(Ji);var o=Zi(e,t);return t=n(t)(xe),t=n(t)(Ki),o&&(t=n(t)(zi)),t=n(t)(Fi),t=n(t)(ji),o&&(t=n(t)(Ui)),t=n(t)($i),Xi(e,t)&&(t=n(t)(qi)),t=n(t)(Vi)}function Fi(e,t){return t="row"===t.selectionMode&&t.selectedIds.length>0?function(e){var t=e.cellMatrix.first.column,n=e.cellMatrix.last.column,o=e.cellMatrix.rows.filter((function(t){return e.selectedIds.includes(t.rowId)})).sort((function(e,t){return e.idx-t.idx})),r=Oi(o).map((function(o){return e.cellMatrix.getRange(v(o[0],t),v(o[o.length-1],n))})),i=e.selectedRanges.length-1;return e.focusedLocation&&r.forEach((function(t,n){t.rows.forEach((function(t){var o;(null===(o=e.focusedLocation)||void 0===o?void 0:o.row.rowId)===t.rowId&&(i=n)}))})),h(h({},e),{selectionMode:"row",activeSelectedRangeIdx:i,selectedRanges:m([],r),selectedIndexes:o.map((function(e){return e.idx})),selectedIds:o.map((function(e){return e.rowId}))})}(t):"column"===t.selectionMode&&t.selectedIds.length>0?function(e){var t=e.cellMatrix.first.row,n=e.cellMatrix.last.row,o=e.cellMatrix.columns.filter((function(t){return e.selectedIds.includes(t.columnId)})).sort((function(e,t){return e.idx-t.idx})),r=Bi(o).map((function(o){return e.cellMatrix.getRange(v(t,o[0]),v(n,o[o.length-1]))})),i=e.selectedRanges.length-1;return e.focusedLocation&&r.forEach((function(t,n){t.columns.forEach((function(t){var o;(null===(o=e.focusedLocation)||void 0===o?void 0:o.column.columnId)===t.columnId&&(i=n)}))})),h(h({},e),{selectionMode:"column",activeSelectedRangeIdx:i,selectedRanges:m([],r),selectedIndexes:o.map((function(e){return e.idx})),selectedIds:o.map((function(e){return e.columnId}))})}(t):h(h({},t),{selectedRanges:m([],t.selectedRanges).map((function(e){return t.cellMatrix.validateRange(e)}))})}function Vi(e,t){return h(h({},t),{enableFillHandle:!!e.enableFillHandle,enableRangeSelection:!!e.enableRangeSelection,enableColumnSelection:!!e.enableColumnSelection,enableRowSelection:!!e.enableRowSelection})}var Xi=function(e,t){var n,o,r,i;return(null===(n=e.focusLocation)||void 0===n?void 0:n.columnId)!==(null===(o=t.focusedLocation)||void 0===o?void 0:o.column.columnId)||(null===(r=e.focusLocation)||void 0===r?void 0:r.rowId)!==(null===(i=t.focusedLocation)||void 0===i?void 0:i.row.rowId)||void 0!==e.stickyRightColumns&&e.stickyRightColumns!==t.rightStickyColumns||void 0!==e.stickyBottomRows&&e.stickyBottomRows!==t.bottomStickyRows},Wi=function(e){return function(t){return function(n){return n(e,t)}}},Zi=function(e,t){return!t.cellMatrix||e!==t.cellMatrix.props||void 0!==e.stickyLeftColumns&&e.stickyLeftColumns!==t.leftStickyColumns||void 0!==e.stickyTopRows&&e.stickyTopRows!==t.topStickyRows||void 0!==e.stickyBottomRows&&e.stickyBottomRows!==t.bottomStickyRows||void 0!==e.stickyRightColumns&&e.stickyRightColumns!==t.rightStickyColumns},Hi=function(e,t){var n;return e.highlights!==(null===(n=t.props)||void 0===n?void 0:n.highlights)};function Yi(e,t){return t.props!==e&&(t=h(h({},t),{props:e})),t}function zi(e,t){var n=new Ce;return h(h({},t),{cellMatrix:n.setProps(e).fillRowsAndCols({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).setRangesToRenderLookup().fillSticky({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).fillScrollableRange({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).setEdgeLocations().getCellMatrix()})}function ji(e,t){return t.cellMatrix.columns.length>0&&t.focusedLocation&&!t.currentlyEditedCell&&(t=h(h({},t),{focusedLocation:t.cellMatrix.validateLocation(t.focusedLocation)})),t}function Ui(e,t){return t.visibleRange&&(t=fe(t)),t}function _i(e,t){return h(h({},t),{cellTemplates:h(h({},Ni),e.customCellTemplates)})}function Ji(e,t){return h(h({},t),{enableGroupIdRender:!!e.enableGroupIdRender})}function Ki(e,t){return h(h({},t),{disableVirtualScrolling:!!e.disableVirtualScrolling})}function Qi(e,t){var n,o,r=null===(n=e.highlights)||void 0===n?void 0:n.filter((function(e){return void 0!==t.cellMatrix.rowIndexLookup[e.rowId]&&void 0!==t.cellMatrix.columnIndexLookup[e.columnId]}));return(null==r?void 0:r.length)!==(null===(o=e.highlights)||void 0===o?void 0:o.length)&&console.error('Data inconsistency in ReactGrid "highlights" prop'),h(h({},t),{highlightLocations:r||[]})}function $i(e,t){var n=e.initialFocusLocation,o=!!t.focusedLocation;if(n&&!t.focusedLocation)if(el(t,n))console.error('Data inconsistency in ReactGrid "initialFocusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=A(t,r)}var i=t.focusedLocation;return!o&&i&&(t=b(t,i)),t}function qi(e,t){var n=e.focusLocation,o=!!t.focusedLocation;if(n)if(el(t,n))console.error('Data inconsistency in ReactGrid "focusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=A(t,r)}var i=t.focusedLocation;return!o&&i&&e.focusLocation&&t.selectedRanges.length<=1&&(t=b(t,i)),t}function el(e,t){return!(void 0!==e.cellMatrix.columnIndexLookup[t.columnId]&&void 0!==e.cellMatrix.rowIndexLookup[t.rowId])}function tl(e){return e.cellMatrix.ranges.stickyTopRange.height>0}function nl(e){return e.cellMatrix.ranges.stickyLeftRange.width>0}function ol(e){return!!(e.visibleRange&&e.visibleRange.width>0)}function rl(e){return!!(e.cellMatrix.scrollableRange.height>0&&e.cellMatrix.scrollableRange.first.column&&e.cellMatrix.scrollableRange.first.row&&e.cellMatrix.scrollableRange.last.row&&e.visibleRange&&e.visibleRange.height>0)}function il(e){return!!(e.cellMatrix.ranges.stickyBottomRange.height>0&&e.cellMatrix.rows.length>0)}function ll(e){return!!(e.cellMatrix.ranges.stickyRightRange.width>0)}var al=e.createContext({}),sl=function(e){var t=e.children,n=e.state;return i.default.createElement(al.Provider,{value:n},t)},cl=function(){return i.default.useContext(al)},ul=function(e){var t,n,o=e.cellRenderer,i=cl(),l=i.cellMatrix,a=tl(i),s=rl(i),c=nl(i),u=ol(i),d=il(i),p=ll(i);if(!(a||s||c||u))return null;var g=void 0,f=i.visibleRange;s&&(g=l.scrollableRange.slice(f,"rows"));var m=l.ranges.stickyTopRange.height?-l.ranges.stickyBottomRange.height:0,v=l.ranges.stickyLeftRange.width?-l.ranges.stickyRightRange.width:0,b=l.ranges.stickyRightRange.width?-l.ranges.stickyLeftRange.width:0,y=l.ranges.stickyBottomRange.height?-l.ranges.stickyTopRange.height:0,x=0!==l.scrollableRange.rows.length?l.ranges.stickyTopRange.height:0,w=0!==l.scrollableRange.columns.length?l.ranges.stickyLeftRange.width:0,I=0!==l.scrollableRange.rows.length?l.ranges.stickyBottomRange.height:0,C=0!==l.scrollableRange.columns.length?l.ranges.stickyRightRange.width:0;return r.createElement(r.Fragment,null,r.createElement(Ha,{renderChildren:s&&u,className:"rg-pane-center-middle",style:{position:"relative",width:"calc(100% - ".concat(l.ranges.stickyLeftRange.width+l.ranges.stickyRightRange.width,"px)"),height:l.scrollableRange.height,marginLeft:v,marginRight:b,marginTop:m,marginBottom:y,order:4}},r.createElement(Ya,{state:i,range:qa(g)(f),borders:{bottom:!d,right:!p,left:!c,top:!a},cellRenderer:o})),r.createElement(Ua,{renderCondition:c,className:"shadow-left",zIndex:2,style:{width:l.ranges.stickyLeftRange.width,height:l.height,marginTop:-l.height,order:9}}),r.createElement(Ua,{renderCondition:p,className:"shadow-right",zIndex:2,style:{width:l.ranges.stickyRightRange.width,height:l.height,marginLeft:-l.ranges.stickyRightRange.width,marginTop:a||d?-l.height:0,order:a||d?12:8}}),r.createElement(Ua,{renderCondition:a,className:"shadow-top",zIndex:1,style:{width:(null===(t=i.props)||void 0===t?void 0:t.enableFullWidthHeader)?"calc(100%)":l.width,height:l.ranges.stickyTopRange.height,marginTop:-l.height,order:10}}),r.createElement(Ua,{renderCondition:d,className:"shadow-bottom",zIndex:1,style:{width:(null===(n=i.props)||void 0===n?void 0:n.enableFullWidthHeader)?"calc(100%)":l.width,height:l.ranges.stickyBottomRange.height,marginTop:-l.ranges.stickyBottomRange.height,order:11}}),r.createElement(Ha,{renderChildren:u&&d,className:"rg-pane-bottom",style:{width:"calc(100% - ".concat(l.ranges.stickyLeftRange.width+l.ranges.stickyRightRange.width,"px)"),height:l.ranges.stickyBottomRange.height,marginLeft:v,marginRight:b,marginTop:x,order:7}},r.createElement(Ya,{state:i,range:qa(l.ranges.stickyBottomRange)(f),borders:{top:!0,bottom:!0,right:!p,left:!c},cellRenderer:o})),r.createElement(Ha,{renderChildren:s&&p||!g,className:"rg-pane-right",style:{height:l.scrollableRange.height,width:l.width-l.ranges.stickyLeftRange.width-l.scrollableRange.width,marginTop:m,marginBottom:y,marginLeft:w,order:5}},r.createElement(Ya,{state:i,range:es(l.ranges.stickyRightRange)(g||l.ranges.stickyLeftRange),borders:{left:!0,top:!a,bottom:!d},cellRenderer:o})),r.createElement(Ha,{renderChildren:a&&u,className:"rg-pane-top",style:h({width:"calc(100% - ".concat(l.ranges.stickyLeftRange.width+l.ranges.stickyRightRange.width,"px)"),height:l.ranges.stickyTopRange.height,marginBottom:I,marginLeft:v,marginRight:b,order:1},ja()&&{zIndex:1})},r.createElement(Ya,{state:i,range:qa(l.ranges.stickyTopRange)(f),borders:{top:!0,right:!p,left:!c},cellRenderer:o})),r.createElement(Ha,{renderChildren:s&&c||!g,className:"rg-pane-left",style:h({height:l.scrollableRange.height,width:l.width-l.scrollableRange.width-l.ranges.stickyRightRange.width,marginRight:C,marginBottom:y,marginTop:m,order:3},ja()&&{zIndex:1})},r.createElement(Ya,{state:i,range:es(l.ranges.stickyLeftRange)(g||l.ranges.stickyLeftRange),borders:{bottom:!d,top:!a,left:!0},cellRenderer:o})),r.createElement(Ha,{renderChildren:d&&p,className:"rg-pane-bottom rg-pane-right rg-pane-shadow shadow-bottom-right-corner",style:h({height:l.ranges.stickyBottomRange.height,width:l.width-l.ranges.stickyLeftRange.width-l.scrollableRange.width,marginTop:x,marginLeft:w,order:8},ja()&&{zIndex:1})},r.createElement(Ya,{state:i,range:es(l.ranges.stickyRightRange)(l.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:o})),r.createElement(Ha,{renderChildren:d&&c,className:"rg-pane-bottom rg-pane-left rg-pane-shadow shadow-bottom-left-corner",style:h({height:l.ranges.stickyBottomRange.height,width:l.width-l.ranges.stickyRightRange.width-l.scrollableRange.width,marginRight:C,marginTop:x,order:6},ja()&&{zIndex:2})},r.createElement(Ya,{state:i,range:es(l.ranges.stickyLeftRange)(l.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:o})),r.createElement(Ha,{renderChildren:a&&p,className:"rg-pane-top rg-pane-right rg-pane-shadow shadow-top-right-corner",style:h({height:l.ranges.stickyTopRange.height,width:l.width-l.scrollableRange.width-l.ranges.stickyLeftRange.width,marginLeft:w,marginBottom:I,order:2},ja()&&{zIndex:2})},r.createElement(Ya,{state:i,range:es(l.ranges.stickyRightRange)(l.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:o})),r.createElement(Ha,{renderChildren:a&&c,className:"rg-pane-top rg-pane-left rg-pane-shadow shadow-top-left-corner",style:h({height:l.ranges.stickyTopRange.height,width:l.width-l.scrollableRange.width-l.ranges.stickyRightRange.width,marginRight:C,marginBottom:I,order:0},ja()&&{zIndex:3})},r.createElement(Ya,{state:i,range:es(l.ranges.stickyLeftRange)(l.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:o})))},dl=function(){var e=cl(),t=e.linePosition,n=e.lineOrientation,o=e.cellMatrix,i="vertical"===n,l=Object.assign({},i?{left:t,height:o.height}:{top:t,width:o.width});return-1===t?null:r.createElement("div",{className:"rg-line ".concat(i?"rg-line-vertical":"rg-line-horizontal"),style:l})},pl=function(){var e=cl(),t=e.lineOrientation,n=e.shadowSize,o=e.shadowPosition,r=e.shadowCursor,l=e.cellMatrix,a="vertical"===t;return-1===o?null:i.default.createElement("div",{className:"rg-shadow",style:{cursor:r,top:a?0:o,left:a?o:0,width:a?n:l.width,height:a?l.height:n}})};function gl(e){return e.selectedRanges[e.activeSelectedRangeIdx]}var fl={type:"",text:"",value:NaN};function hl(e,t,n){void 0===n&&(n=!1);var o=ml(t),r=o.div,i=o.table,l=(o.location,function(e,t,n,o,r){var i="",l="";return n.rows.forEach((function(t){var a=o.insertRow();n.columns.forEach((function(n){var o=a.insertCell(),s=R(e,{row:t,column:n}).cell,c=s.text||" ";o.textContent=c,i=""===l?s.text:i+(l===t.rowId?"\t":"\n")+c,l=t.rowId,o.setAttribute("data-reactgrid",JSON.stringify(s)),o.style.border="1px solid #D3D3D3",bl(e,{row:t,column:n},r)}))})),i}(e,0,t,i,n));return vl(r,i),{div:r,text:l}}function ml(e){var t=document.createElement("div"),n=document.createElement("table");return n.setAttribute("empty-cells","show"),n.setAttribute("data-reactgrid","reactgrid-content"),{div:t,table:n,location:{row:e.first.row,column:e.first.column}}}function vl(e,t){e.setAttribute("contenteditable","true"),e.style.position="fixed",e.style.top="50%",e.style.left="50%",e.appendChild(t)}function bl(e,t,n){n&&(e=M(e,t,fl))}function yl(e,t,n){return R(e,t).cell.groupId===n.groupId?M(e,t,n):(console.warn("New cells data can't be appended into location: ('".concat(t.column.columnId,"', '").concat(t.row.rowId,"'). Cell's 'groupId' field doesn't match!")),e)}function xl(e,t){var n=gl(e);if(1!==t.length||1!==t[0].length){var o,r=e.cellMatrix;return t.forEach((function(t,i){return t.forEach((function(t,l){var a=n.first.row.idx+i,s=n.first.column.idx+l;a<=r.last.row.idx&&s<=r.last.column.idx&&(o=r.getLocation(a,s),e=yl(e,o,t))}))})),o?h(h({},e),{selectedRanges:[r.getRange(n.first,o)],activeSelectedRangeIdx:0}):e}return n.rows.forEach((function(o){return n.columns.forEach((function(n){e=yl(e,v(o,n),t[0][0])}))})),e}function wl(e){return e.selectedRanges.map((function(e){return e.rows.flatMap((function(t){return e.columns.map((function(e){return{columnId:e.columnId,rowId:t.rowId}}))}))}))}var Il=function(){var e=cl();if(-1===e.contextMenuPosition.top&&-1===e.contextMenuPosition.left)return null;var t,n,o,i,l=e.contextMenuPosition,a=e.selectedIds,s=e.selectionMode,c=function(e){var t=Aa(e),n=t.copyLabel,o=t.cutLabel,r=t.pasteLabel;return[{id:"copy",label:n,handler:function(){return Cl(e,!1)}},{id:"cut",label:o,handler:function(){return Cl(e,!0)}},{id:"paste",label:r,handler:function(){return function(e){var t,n=L()||G();if(ja()||n){var o=Aa(e),r=o.appleMobileDeviceContextMenuPasteAlert,i=o.otherBrowsersContextMenuPasteAlert,l=o.actionNotSupported;alert("".concat(l," ").concat(n?r:i))}else null===(t=navigator.clipboard)||void 0===t||t.readText().then((function(t){return e.update((function(e){var n=e,o=n.copyRange,r=!1,i=T()?t.split("\n"):t.split("\r\n"),l=i.map((function(e){return e.split("\t")}));o&&o.rows&&o.columns&&(o.rows.length===i.length&&o.columns.length===l[0].length&&(r=o.rows.some((function(e,t){return o.columns.some((function(o,r){return l[t][r].trim()===R(n,{row:e,column:o}).cell.text.replaceAll(String.fromCharCode(160),String.fromCharCode(32)).trim()}))}))));return xl(n,i.map((function(e,t){return e.split("\t").map((function(e,i){if(!o)return{type:"text",text:e,value:parseFloat(e)};var l=R(n,{row:o.rows[t],column:o.columns[i]}).cell;return h({type:"text",text:r?l.text:e,value:r?l.value:parseFloat(e)},r&&{groupId:l.groupId})}))})))}))})).catch((function(e){var t=e.message;console.error("An error occurred while pasting data by context menu: '".concat(t,"'"))}))}(e)}}]}(e),u=(t=c,null!==(i=null===(o=null===(n=e.props)||void 0===n?void 0:n.onContextMenu)||void 0===o?void 0:o.call(n,"row"===e.selectionMode?e.selectedIds:[],"column"===e.selectionMode?e.selectedIds:[],e.selectionMode,t,wl(e)))&&void 0!==i?i:[]);return u.length>=0&&(c=u),r.createElement("div",{className:"rg-context-menu",style:{top:l.top+"px",left:l.left+"px"}},c.map((function(t,n){var o=t.handler,i=t.id,l=t.label;return r.createElement("div",{key:n,className:"rg-context-menu-option",onPointerDown:function(e){return e.stopPropagation()},onClick:function(){o("row"===s?a:[],"column"===s?a:[],s,wl(e)),e.update((function(e){return h(h(h({},e),{contextMenuPosition:{top:-1,left:-1}}),("copy"===i||"cut"===i)&&{copyRange:gl(e)})}))}},l)})))};function Cl(e,t){void 0===t&&(t=!1),function(e,t){var n;void 0===t&&(t=!1);var o=gl(e);if(o){var r=hl(e,o,t).div;document.body.appendChild(r),r.focus(),document.execCommand("selectAll",!1,void 0),document.execCommand("copy"),document.body.removeChild(r),null===(n=e.hiddenFocusElement)||void 0===n||n.focus()}}(e,t)}var Rl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.updateState=function(e){return t.setState(e)},t.stateUpdater=function(e){return ts(e(t.state),t.state,t.props,t.updateState)},t.pointerEventsController=new ge(t.stateUpdater),t.eventHandlers=new Ie(t.stateUpdater,t.pointerEventsController),t.cellMatrixBuilder=new Ce,t.state=h(h({update:t.stateUpdater},ua),{currentBehavior:new ca,cellMatrix:t.cellMatrixBuilder.setProps(t.props).fillRowsAndCols().setRangesToRenderLookup().fillSticky().fillScrollableRange().setEdgeLocations().getCellMatrix()}),t}return f(t,e),t.getDerivedStateFromProps=function(e,t){try{return Di(e,t)}catch(e){return console.error(e),null}},t.prototype.componentDidUpdate=function(e,t){var n;!t.reactGridElement&&this.state.reactGridElement&&(null===(n=this.state.scrollableElement)||void 0===n||n.addEventListener("scroll",this.eventHandlers.scrollHandler)),se(0,t,this.state)},t.prototype.componentDidMount=function(){window.addEventListener("resize",this.eventHandlers.windowResizeHandler)},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.eventHandlers.windowResizeHandler),null===(e=this.state.scrollableElement)||void 0===e||e.removeEventListener("scroll",this.eventHandlers.scrollHandler)},t.prototype.render=function(){var e=this.state,t=this.eventHandlers;return e.legacyBrowserMode?r.createElement(sl,{state:e},r.createElement(Ea,{eventHandlers:t})):r.createElement(sl,{state:e},r.createElement(Ra,{eventHandlers:t},r.createElement(ul,{cellRenderer:Pa}),r.createElement(dl,null),r.createElement(pl,null),r.createElement(Il,null),e.currentlyEditedCell&&r.createElement(fa,null)))},t}(r.Component);var Ml=Ol(A),Al=Dl(Ml),El=Bl(Ml),kl=Fl(Ml),Sl=Wl(Ml),Tl=Hl(Ml),Ll=zl(Ml),Gl=Ul(Ml),Pl=Gl((function(e,t){var n,o=_l(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),r=e.cellMatrix.ranges.stickyTopRange.rows.length>0,i=r&&te(e,t),l=e.cellMatrix.scrollableRange.rows.length>0,a=l&&t.row.idx>e.cellMatrix.scrollableRange.first.row.idx&&t.row.idx<=e.cellMatrix.scrollableRange.last.row.idx,s=l&&t.row.idx===e.cellMatrix.scrollableRange.first.row.idx,c=e.cellMatrix.ranges.stickyBottomRange.rows.length>0,u=c&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=c&&(null==t?void 0:t.row.idx)===(null===(n=e.cellMatrix.ranges)||void 0===n?void 0:n.stickyBottomRange.first.row.idx),p=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height<o})),g=0;u?g=u&&!d?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:l?e.cellMatrix.scrollableRange.last.row.idx:r?e.cellMatrix.ranges.stickyTopRange.last.row.idx:e.cellMatrix.ranges.stickyBottomRange.first.row.idx:a?g=t.row.idx-p.length<e.cellMatrix.scrollableRange.first.row.idx?e.cellMatrix.scrollableRange.first.row.idx:t.row.idx-p.length:s?g=r?e.cellMatrix.ranges.stickyTopRange.last.row.idx:e.cellMatrix.scrollableRange.first.row.idx:i&&(g=e.cellMatrix.ranges.stickyTopRange.first.row.idx);if(!Vl(e,g,t.column.idx)){var f=e.cellMatrix.getLocation(g,t.column.idx),h=jl(e,f);return h?h.row.idx:t.row.idx}return g})),Nl=Gl((function(e,t){var n,o=e.cellMatrix.ranges.stickyTopRange.rows.length>0,r=o&&te(e,t),i=o&&t.row.idx===(null===(n=e.cellMatrix.ranges)||void 0===n?void 0:n.stickyTopRange.last.row.idx),l=e.cellMatrix.scrollableRange.rows.length>0,a=l&&t.row.idx>=e.cellMatrix.scrollableRange.first.row.idx&&t.row.idx<e.cellMatrix.scrollableRange.last.row.idx,s=l&&t.row.idx===e.cellMatrix.scrollableRange.last.row.idx,c=e.cellMatrix.ranges.stickyBottomRange.rows.length>0,u=c&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=_l(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),p=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height<d})),g=0;r?g=r&&!i?e.cellMatrix.ranges.stickyTopRange.last.row.idx:l?e.cellMatrix.scrollableRange.first.row.idx:c?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:e.cellMatrix.ranges.stickyTopRange.last.row.idx:a?g=t.row.idx+p.length<e.cellMatrix.scrollableRange.rows.length?t.row.idx+p.length:e.cellMatrix.scrollableRange.last.row.idx:s?g=c?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:e.cellMatrix.scrollableRange.last.row.idx:u&&(g=e.cellMatrix.ranges.stickyBottomRange.last.row.idx);if(!Vl(e,g,t.column.idx)){var f=e.cellMatrix.getLocation(g,t.column.idx),h=Yl(e,f);return h?h.row.idx:t.row.idx}return g}));function Ol(e){return function(t,n,o){return e(o,o.cellMatrix.getLocation(n,t))}}function Bl(e){return function(t){if(t.focusedLocation){var n=Vl(t,t.focusedLocation.row.idx,t.cellMatrix.columns.length-1);if(!n){var o=t.cellMatrix.getLocation(t.focusedLocation.row.idx,t.cellMatrix.columns.length-1),r=Xl(t,o);return r?e(r.column.idx,r.row.idx,t):t}return e(n.column.idx,n.row.idx,t)}return t}}function Dl(e){return function(t){if(t.focusedLocation){var n=Vl(t,t.focusedLocation.row.idx,0);if(!n){var o=t.cellMatrix.getLocation(t.focusedLocation.row.idx,0),r=Zl(t,o);return r?e(r.column.idx,r.row.idx,t):t}return e(n.column.idx,n.row.idx,t)}return t}}function Fl(e){return function(t){var n=Xl(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function Vl(e,t,n){var o=e.cellMatrix.getLocation(t,n),r=R(e,o),i=r.cell,l=r.cellTemplate;if(!e.props)throw new Error('"props" field on "state" object should be initiated before possible location focus');var a=e.props.onFocusLocationChanging,s={rowId:o.row.rowId,columnId:o.column.columnId},c=!a||a(s);return(!l.isFocusable||l.isFocusable(i))&&c?o:void 0}function Xl(e,t){if(t)for(var n=t.column.idx-1;n>=e.cellMatrix.first.column.idx;--n){var o=Vl(e,t.row.idx,n);if(o)return o}}function Wl(e){return function(t){var n=Zl(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function Zl(e,t){if(t)for(var n=t.column.idx+1;n<=e.cellMatrix.last.column.idx;++n){var o=Vl(e,t.row.idx,n);if(o)return o}}function Hl(e){return function(t){var n=Yl(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function Yl(e,t){if(t)for(var n=t.row.idx-1;n>=e.cellMatrix.first.row.idx;--n){var o=Vl(e,n,t.column.idx);if(o)return o}}function zl(e){return function(t){var n=jl(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function jl(e,t){if(t)for(var n=t.row.idx+1;n<=e.cellMatrix.last.row.idx;++n){var o=Vl(e,n,t.column.idx);if(o)return o}}function Ul(e){return function(t){return function(n){var o=n.focusedLocation;if(!o)return n;var r=t(n,o);return e(o.column.idx,r,n)}}}function _l(e,t){return K(e,t)}function Jl(e,t){var n=function(e,t){var n,o,r,i,l,a,s,u,d,p,g,f,m,v,y=e.focusedLocation;if(!y)return e;var x=gl(e);if(t.ctrlKey&&T()&&t.keyCode===exports.keyCodes.SPACE)return $l(e,x.first.column.idx,x.last.column.idx,0,e.cellMatrix.last.row.idx);var w=1===e.selectedRanges.length&&c(x.first,x.last),I=Qa(e,t);if(I!==e){if(!w&&t.keyCode===exports.keyCodes.ENTER){var C=t.shiftKey?"up":"down";return null===(n=e.hiddenFocusElement)||void 0===n||n.focus(),Kl(e,C,x,y)}return I}if(t.altKey)return e;if(_a(t)&&t.shiftKey)switch(t.keyCode){case exports.keyCodes.HOME:return $l(e,x.first.column.idx,x.last.column.idx,0,x.last.row.idx);case exports.keyCodes.END:return $l(e,x.first.column.idx,x.last.column.idx,x.first.row.idx,e.cellMatrix.last.row.idx)}else if(_a(t)){var R=e.cellMatrix;switch(t.keyCode){case exports.keyCodes.KEY_A:return 1===e.selectedRanges.length&&c(e.selectedRanges[0].first,R.first)&&c(e.selectedRanges[0].last,R.last)?b(e,y):h(h({},e),{selectedRanges:[R.getRange(R.first,R.last)],selectionMode:"range",activeSelectedRangeIdx:0});case exports.keyCodes.HOME:return A(e,e.cellMatrix.first);case exports.keyCodes.END:return A(e,e.cellMatrix.last);case exports.keyCodes.SPACE:return $l(e,x.first.column.idx,x.last.column.idx,0,e.cellMatrix.last.row.idx)}}else if(t.shiftKey)switch(t.keyCode){case exports.keyCodes.UP_ARROW:return function(e,t,n){return t.first.row.idx>=0?t.last.row.idx>n.row.idx?$l(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,t.last.row.idx>0?t.last.row.idx-1:0,"vertical"):$l(e,t.last.column.idx,t.first.column.idx,t.last.row.idx,t.first.row.idx>0?t.first.row.idx-1:0,"vertical"):e}(e,x,y);case exports.keyCodes.DOWN_ARROW:return function(e,t,n){return t.last.row.idx<=e.cellMatrix.last.row.idx?t.first.row.idx<n.row.idx?$l(e,t.last.column.idx,t.first.column.idx,t.last.row.idx,t.first.row.idx>=e.cellMatrix.last.row.idx?e.cellMatrix.last.row.idx:t.first.row.idx+1,"vertical"):$l(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,t.last.row.idx>=e.cellMatrix.last.row.idx?e.cellMatrix.last.row.idx:t.last.row.idx+1,"vertical"):e}(e,x,y);case exports.keyCodes.LEFT_ARROW:return function(e,t,n){return t.first.column.idx>=0?t.last.column.idx>n.column.idx?$l(e,t.first.column.idx,t.last.column.idx>0?t.last.column.idx-1:0,t.first.row.idx,t.last.row.idx,"horizontal"):$l(e,t.last.column.idx,t.first.column.idx>0?t.first.column.idx-1:0,t.last.row.idx,t.first.row.idx,"horizontal"):e}(e,x,y);case exports.keyCodes.RIGHT_ARROW:return function(e,t,n){return t.last.column.idx<=e.cellMatrix.last.column.idx?t.first.column.idx<n.column.idx?$l(e,t.last.column.idx,t.first.column.idx>=e.cellMatrix.last.column.idx?e.cellMatrix.last.column.idx:t.first.column.idx+1,t.last.row.idx,t.first.row.idx,"horizontal"):$l(e,t.first.column.idx,t.last.column.idx>=e.cellMatrix.last.column.idx?e.cellMatrix.last.column.idx:t.last.column.idx+1,t.first.row.idx,t.last.row.idx,"horizontal"):e}(e,x,y);case exports.keyCodes.TAB:return t.preventDefault(),w?kl(e):Kl(e,"left",x,y);case exports.keyCodes.ENTER:return null===(o=e.hiddenFocusElement)||void 0===o||o.focus(),w?Tl(e):Kl(e,"up",x,y);case exports.keyCodes.SPACE:return $l(e,0,e.cellMatrix.last.column.idx,x.first.row.idx,x.last.row.idx);case exports.keyCodes.HOME:return $l(e,0,x.last.column.idx,x.first.row.idx,x.last.row.idx);case exports.keyCodes.END:return $l(e,x.first.column.idx,e.cellMatrix.last.column.idx,x.first.row.idx,x.last.row.idx);case exports.keyCodes.PAGE_UP:return function(e,t,n){var o=Ql(e),r=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx>e.cellMatrix.ranges.stickyBottomRange.first.row.idx,i=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyBottomRange.last.row.idx,l=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyBottomRange.first.row.idx,a=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx===e.cellMatrix.ranges.stickyBottomRange.first.row.idx,s=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,c=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx===e.cellMatrix.scrollableRange.first.row.idx,u=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx===e.cellMatrix.scrollableRange.first.row.idx,d=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx<=e.cellMatrix.ranges.stickyTopRange.last.row.idx,p=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height<o}));return t.first.row.idx>=0?t.last.row.idx>n.row.idx?$l(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,i?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:l?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.last.row.idx:e.cellMatrix.ranges.stickyTopRange.first.row.idx:u?e.cellMatrix.ranges.stickyTopRange.last.row.idx:s?e.cellMatrix.ranges.stickyTopRange.first.row.idx:t.last.row.idx-p.length>e.cellMatrix.scrollableRange.first.row.idx?t.last.row.idx-p.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):$l(e,t.last.column.idx,t.first.column.idx,t.last.row.idx,r?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:a?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.last.row.idx:e.cellMatrix.ranges.stickyTopRange.rows.length>0?e.cellMatrix.ranges.stickyTopRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.first.row.idx:c?e.cellMatrix.ranges.stickyTopRange.last.row.idx:d?e.cellMatrix.ranges.stickyTopRange.first.row.idx:r?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:t.first.row.idx-p.length>e.cellMatrix.scrollableRange.first.row.idx?t.first.row.idx-p.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):e}(e,x,y);case exports.keyCodes.PAGE_DOWN:return function(e,t,n){var o=Ql(e),r=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx<e.cellMatrix.ranges.stickyTopRange.last.row.idx,i=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx<e.cellMatrix.ranges.stickyTopRange.last.row.idx,l=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,a=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,s=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.scrollableRange.last.row.idx,c=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx===e.cellMatrix.scrollableRange.last.row.idx,u=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,p=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height<o}));return t.last.row.idx<=e.cellMatrix.last.row.idx?t.first.row.idx<n.row.idx?$l(e,t.last.column.idx,t.first.column.idx,t.last.row.idx,i?e.cellMatrix.ranges.stickyTopRange.last.row.idx:a?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.first.row.idx:c?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:d?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:t.first.row.idx+p.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:t.first.row.idx+p.length,"vertical"):$l(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,u?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:l?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.rows.length>0?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:e.cellMatrix.ranges.stickyTopRange.last.row.idx:s?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:r?e.cellMatrix.ranges.stickyTopRange.last.row.idx:t.last.row.idx+p.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:t.last.row.idx+p.length,"vertical"):e}(e,x,y)}else switch(t.keyCode){case exports.keyCodes.DELETE:case exports.keyCodes.BACKSPACE:return null===(r=e.hiddenFocusElement)||void 0===r||r.focus(),function(e){return e.selectedRanges.forEach((function(t){return t.rows.forEach((function(n){return t.columns.forEach((function(t){return e=M(e,{row:n,column:t},fl)}))}))})),e}(e);case exports.keyCodes.UP_ARROW:return null===(i=e.hiddenFocusElement)||void 0===i||i.focus(),Tl(e);case exports.keyCodes.DOWN_ARROW:return null===(l=e.hiddenFocusElement)||void 0===l||l.focus(),Ll(e);case exports.keyCodes.LEFT_ARROW:return null===(a=e.hiddenFocusElement)||void 0===a||a.focus(),kl(e);case exports.keyCodes.RIGHT_ARROW:return null===(s=e.hiddenFocusElement)||void 0===s||s.focus(),Sl(e);case exports.keyCodes.TAB:return null===(u=e.hiddenFocusElement)||void 0===u||u.focus(),t.preventDefault(),w?Sl(e):Kl(e,"right",x,y);case exports.keyCodes.HOME:return null===(d=e.hiddenFocusElement)||void 0===d||d.focus(),Al(e);case exports.keyCodes.END:return null===(p=e.hiddenFocusElement)||void 0===p||p.focus(),El(e);case exports.keyCodes.PAGE_UP:return null===(g=e.hiddenFocusElement)||void 0===g||g.focus(),Pl(e);case exports.keyCodes.PAGE_DOWN:return null===(f=e.hiddenFocusElement)||void 0===f||f.focus(),Nl(e);case exports.keyCodes.ENTER:return null===(m=e.hiddenFocusElement)||void 0===m||m.focus(),w?h(h({},Ll(e)),{currentlyEditedCell:void 0}):Kl(e,"down",x,y);case exports.keyCodes.ESCAPE:return t.preventDefault(),null===(v=e.hiddenFocusElement)||void 0===v||v.focus(),e.currentlyEditedCell?h(h({},e),{currentlyEditedCell:void 0}):e}return e}(e,t);return n!==e&&(t.stopPropagation(),t.preventDefault()),n}function Kl(e,t,n,o){var r=e.activeSelectedRangeIdx,i=n?n.columns.length:0,l=n?n.rows.length:0,a="up"===t||"left"===t?-1:1,s="up"===t||"down"===t?o.row.idx-n.first.row.idx+(o.column.idx-n.first.column.idx)*l:(o.row.idx-n.first.row.idx)*i+(o.column.idx-n.first.column.idx),c=(s+a)%(n.rows.length*n.columns.length),u=c<0&&0===s||1===l&&1===i&&-1===a,d=0===c&&s===n.rows.length*n.columns.length-1&&(l>=3&&i>=1||l>=1&&i>=3)||0===c&&s===n.rows.length*n.columns.length-1&&(2===l&&i>=1||l>=1&&2===i)&&1===a||c<0&&0===s||1===l&&1===i&&1===a;if(u){var p=0===r?e.selectedRanges.length-1:(r-1)%e.selectedRanges.length,g=e.selectedRanges[p];return e=A(e,v(g.last.row,g.last.column),!1),h(h({},e),{activeSelectedRangeIdx:p})}if(d){p=(r+1)%e.selectedRanges.length,g=e.selectedRanges[p];return e=A(e,v(g.first.row,g.first.column),!1),h(h({},e),{activeSelectedRangeIdx:p})}var f="up"===t||"down"===t?Math.floor(c/l):c%i,m="up"===t||"down"===t?c%l:Math.floor(c/i),b=n.first.column.idx+f,y=n.first.row.idx+m;return e=A(e,e.cellMatrix.getLocation(y,b),!n||!(n.columns.length>1||n.rows.length>1))}function Ql(e){var t=e.cellMatrix.ranges,n=t.stickyBottomRange,o=t.stickyTopRange;return K(e,n.height+o.height)}function $l(e,t,n,o,r,i){if(!e.enableRangeSelection)return e;var l=e.cellMatrix.getLocation(o,t),a=e.cellMatrix.getLocation(r,n),s=e.selectedRanges.slice();if(s[e.activeSelectedRangeIdx]=e.cellMatrix.getRange(l,a),i){var c=e.focusedLocation;if(!c)return e;var u=0,d=0;switch(i){case"horizontal":u=c.row.idx,d=c.column.idx!==t?t:n;break;case"vertical":u=c.row.idx!==o?o:r,d=c.column.idx}var p=ce(e,e.cellMatrix.getLocation(u,d),i),g=p.left;J(e,p.top,g)}return h(h({},e),{selectedRanges:s})}var ql=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){return this.initialColumn=t.column,n=_a(e)&&"column"===n.selectionMode&&n.selectedIds.some((function(e){return e===t.column.columnId}))?function(e,t){var n=e.selectedIndexes.filter((function(e){return e!==t.idx})),o=e.selectedIds.filter((function(e){return e!==t.columnId}));return h(h({},e),{selectionMode:"column",selectedIndexes:n,selectedIds:o})}(n,t.column):e.shiftKey&&n.focusedLocation?w(n,n.focusedLocation.column,t.column,_a(e)):function(e,t,n){return h(h({},e),{selectionMode:"column",selectedIndexes:(n&&"column"===e.selectionMode?e.selectedIndexes:[]).concat(t.idx),selectedIds:(n&&"column"===e.selectionMode?e.selectedIds:[]).concat(t.columnId)})}(n=A(n,t,!1),t.column,_a(e))},t.prototype.handlePointerEnter=function(e,t,n){return w(n,this.initialColumn,t.column,_a(e))},t.prototype.handleContextMenu=function(e,t){return H(e,t)},t}(C),ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){return this.initialRow=t.row,n=_a(e)&&"row"===n.selectionMode&&n.selectedIds.some((function(e){return e===t.row.rowId}))?function(e,t){var n=e.selectedIndexes.filter((function(e){return e!==t.idx})),o=e.selectedIds.filter((function(e){return e!==t.rowId}));return h(h({},e),{selectionMode:"row",selectedIndexes:n,selectedIds:o})}(n,t.row):e.shiftKey&&n.focusedLocation?I(n,n.focusedLocation.row,t.row,_a(e)):function(e,t,n){return h(h({},e),{selectionMode:"row",selectedIndexes:(n&&"row"===e.selectionMode?e.selectedIndexes:[]).concat(t.idx),selectedIds:(n&&"row"===e.selectionMode?e.selectedIds:[]).concat(t.rowId)})}(n=A(n,t,!1),t.row,_a(e))},t.prototype.handlePointerEnter=function(e,t,n){return I(n,this.initialRow,t.row,_a(e))},t.prototype.handleContextMenu=function(e,t){return H(e,t)},t}(C),ta=function(e){var t=e.range,n=e.pane,o=e.style,i=e.className,l=t.first.row.idx<=n.first.row.idx?n.first.row.top:t.first.row.top,a=t.first.column.idx<=n.first.column.idx?n.first.column.left:t.first.column.left,s=(t.last.column.idx>n.last.column.idx?n.last.column.right:t.last.column.right)-a,c=(t.last.row.idx>n.last.row.idx?n.last.row.bottom:t.last.row.bottom)-l,u=t.first.row.idx>=n.first.row.idx,d=t.last.row.idx<=n.last.row.idx,p=t.last.column.idx<=n.last.column.idx,g=t.first.column.idx>=n.first.column.idx;return r.createElement("div",{className:"rg-partial-area ".concat(i),key:t.first.column.idx+n.last.column.idx,style:h(h({},o),{top:l-(0===l?0:1),left:a-(0===a?0:1),width:s+(0===a?0:1),height:c+(0===l?0:1),borderTop:u?o.borderTop:"unset",borderBottom:d?o.borderBottom:"unset",borderRight:p?o.borderRight:"unset",borderLeft:g?o.borderLeft:"unset"})})};function na(e,t){return t.first.column.idx<=e.last.column.idx&&t.first.row.idx<=e.last.row.idx&&t.last.column.idx>=e.first.column.idx&&t.last.row.idx>=e.first.row.idx}var oa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fillDirection="",t}return f(t,e),t.prototype.handlePointerEnter=function(e,t,n){var o=gl(n);return this.fillDirection=this.getFillDirection(o,t),this.fillRange=this.getFillRange(n.cellMatrix,o,t,this.fillDirection),h({},n)},t.prototype.handlePointerUp=function(e,t,n){var o=this,r=gl(n),i=n.cellMatrix;if(!r||void 0===this.fillRange)return n;var l=T()?e.altKey:e.ctrlKey;this.fillRange=n.cellMatrix.validateRange(this.fillRange);var a=function(e){return R(n,e)},s=function(e,t){var n=e.map((function(e){return e.value})),r=o.findRegressionFunction(n,Array.from({length:n.length},(function(e,t){return t+1}))),i=isNaN(r.a)&&isNaN(r.b);return t.map((function(t,a){var s=o.calculateXForRegressionFunction(a+n.length+1,r.a,r.b),c=e[a%e.length];return h(h({},t),{text:i||l?c.text:s.toString(),groupId:c.groupId,value:i||l?c.value:s})}))},c=function(e,t,n){return t.columns.forEach((function(r){var i=t.rows.map((function(e){return a(v(e,r)).cell}));if(i="up"===n?i.reverse():i,o.fillRange){var l=o.fillRange.rows.map((function(e){return a(v(e,r)).cell}));l=s(i,l),l="up"===n?l.reverse():l,e=o.fillColumn(e,r,l)}})),e},u=function(e,t,n){return t.rows.forEach((function(r){var i=t.columns.map((function(e){return a(v(r,e)).cell}));if(i="left"===n?i.reverse():i,o.fillRange){var l=o.fillRange.columns.map((function(e){return a(v(r,e)).cell}));l=s(i,l),l="left"===n?l.reverse():l,e=o.fillRow(e,r,l)}})),e};switch(this.fillDirection){case"right":n=u(n,r,"right"),n=h(h({},n),{selectedRanges:[i.getRange(r.first,v(r.last.row,t.column))],selectedIds:m(m([],r.columns.map((function(e){return e.columnId}))),this.fillRange.columns.map((function(e){return e.columnId})))});break;case"left":n=u(n,r,"left"),n=h(h({},n),{selectedRanges:[i.getRange(r.last,v(r.first.row,t.column))],selectedIds:m(m([],r.columns.map((function(e){return e.columnId}))),this.fillRange.columns.map((function(e){return e.columnId})))});break;case"up":n=c(n,r,"up"),n=h(h({},n),{selectedRanges:[i.getRange(r.last,{row:t.row,column:r.first.column})],selectedIds:m(m([],r.rows.map((function(e){return e.rowId}))),this.fillRange.rows.map((function(e){return e.rowId})))});break;case"down":n=c(n,r,"down"),n=h(h({},n),{selectedRanges:[i.getRange(r.first,v(t.row,r.last.column))],selectedIds:m(m([],r.rows.map((function(e){return e.rowId}))),this.fillRange.rows.map((function(e){return e.rowId})))})}return n},t.prototype.calculateXForRegressionFunction=function(e,t,n){return Math.round((e-t)/n*1e5)/1e5},t.prototype.findRegressionFunction=function(e,t){var n=this.sumArray(e),o=this.sumArray(t),r=this.sumArray(this.multipleArrays(e,t)),i=this.sumArray(this.powerArray(e,2)),l=e.length,a=Math.fround(l*r-n*o)/Math.fround(l*i-Math.pow(n,2));return{a:o/l-a*(n/l),b:a}},t.prototype.sumArray=function(e){return e.reduce((function(e,t){return e+t}))},t.prototype.multipleArrays=function(e,t){for(var n=[],o=e.length<=t.length?e.length:t.length,r=0;r<o;++r)n.push(e[r]*t[r]);return n},t.prototype.powerArray=function(e,t){return e.map((function(e){return Math.pow(e,t)}))},t.prototype.renderPanePart=function(e,t){return this.fillDirection&&this.fillRange&&na(t,this.fillRange)&&i.default.createElement(ta,{range:e.cellMatrix.validateRange(this.fillRange),className:"rg-partial-area-part",pane:t,style:{backgroundColor:"",borderTop:"down"===this.fillDirection?"0px solid transparent":"",borderBottom:"up"===this.fillDirection?"0px solid transparent":"",borderLeft:"right"===this.fillDirection?"0px solid transparent":"",borderRight:"left"===this.fillDirection?"0px solid transparent":""}})},t.prototype.getFillDirection=function(e,t){var n=[];return n.push({direction:"",value:0}),n.push({direction:"up",value:t.row.idx<e.first.row.idx?e.first.row.idx-t.row.idx:0}),n.push({direction:"down",value:t.row.idx>e.last.row.idx?t.row.idx-e.last.row.idx:0}),n.push({direction:"left",value:t.column.idx<e.first.column.idx?e.first.column.idx-t.column.idx:0}),n.push({direction:"right",value:t.column.idx>e.last.column.idx?t.column.idx-e.last.column.idx:0}),n.reduce((function(e,t){return e.value>=t.value?e:t})).direction},t.prototype.getFillRange=function(e,t,n,o){switch(o){case"right":return e.getRange(e.getLocation(t.first.row.idx,e.last.column.idx<t.last.column.idx+1?e.last.column.idx:t.last.column.idx+1),v(t.last.row,n.column));case"left":return e.getRange(v(t.first.row,n.column),e.getLocation(t.last.row.idx,e.first.column.idx>t.first.column.idx-1?e.first.column.idx:t.first.column.idx-1));case"up":return e.getRange(v(n.row,t.first.column),e.getLocation(e.first.row.idx>t.first.row.idx-1?e.first.row.idx:t.first.row.idx-1,t.last.column.idx));case"down":return e.getRange(e.getLocation(e.last.row.idx<t.last.row.idx+1?e.last.row.idx:t.last.row.idx+1,t.first.column.idx),v(n.row,t.last.column))}},t.prototype.fillRow=function(e,t,n){var o;return null===(o=this.fillRange)||void 0===o||o.columns.forEach((function(o,r){e=yl(e,v(t,o),n[r])})),e},t.prototype.fillColumn=function(e,t,n){var o;return null===(o=this.fillRange)||void 0===o||o.rows.forEach((function(o,r){e=yl(e,v(o,t),n[r])})),e},t}(C),ra=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){this.initialRowIdx=t.row.idx,this.lastPossibleDropLocation=t;var o=n.selectedIndexes.sort(),r=o.map((function(e){return n.cellMatrix.rows[e]})),i=o.filter((function(e){return e<t.row.idx})),l=i.map((function(e){return n.cellMatrix.rows[e]})),a=l.reduce((function(e,t){return e+t.height}),0);return this.pointerOffset=a+t.cellY,this.selectedIds=r.map((function(e){return e.rowId})),h(h({},n),{lineOrientation:"horizontal",shadowSize:r.reduce((function(e,t){return e+t.height}),0),shadowPosition:this.getShadowPosition(t,n)})},t.prototype.handlePointerMove=function(e,t,n){var o,r,i=this.getShadowPosition(t,n),l="-webkit-grabbing",a=n.linePosition,s=k(n.scrollableElement).scrollTop,c=t.viewportY+0;if(this.lastPossibleDropLocation=this.getLastPossibleDropLocation(n,t),this.lastPossibleDropLocation&&this.lastPossibleDropLocation.row.idx!==this.initialRowIdx){var u=this.lastPossibleDropLocation.row.idx>this.initialRowIdx;a=Math.min(this.lastPossibleDropLocation.viewportY-this.lastPossibleDropLocation.cellY+(u?this.lastPossibleDropLocation.row.height:0),((null===(o=n.visibleRange)||void 0===o?void 0:o.height)||0)+n.cellMatrix.ranges.stickyTopRange.height+n.cellMatrix.ranges.stickyBottomRange.height+s),(null===(r=n.props)||void 0===r?void 0:r.canReorderRows)?n.props.canReorderRows&&n.props.canReorderRows(this.lastPossibleDropLocation.row.rowId,this.selectedIds,this.position)?u?c>t.row.top+n.cellMatrix.ranges.stickyTopRange.height&&c<t.row.top+n.cellMatrix.ranges.stickyTopRange.height+t.row.height/2?(this.position="on",l="move",a=-1):this.position="after":c>t.row.top+n.cellMatrix.ranges.stickyTopRange.height+t.row.height/2&&c<t.row.top+n.cellMatrix.ranges.stickyTopRange.height+t.row.height?(this.position="on",l="move",a=-1):this.position="before":a=-1:this.position=u?"after":"before"}return h(h({},n),{shadowPosition:i,linePosition:a,shadowCursor:l})},t.prototype.getShadowPosition=function(e,t){var n=e.viewportY-this.pointerOffset,o=t.cellMatrix.height-t.shadowSize;return n<0?0:n>o?o:n},t.prototype.getLastPossibleDropLocation=function(e,t){var n;return!(null===(n=e.props)||void 0===n?void 0:n.canReorderRows)||e.props.canReorderRows(t.row.rowId,this.selectedIds,this.position)?t:this.lastPossibleDropLocation},t.prototype.handlePointerUp=function(e,t,n){var o,r;return t.row.idx!==this.initialRowIdx&&this.lastPossibleDropLocation&&(null===(o=n.props)||void 0===o?void 0:o.onRowsReordered)&&(null===(r=n.props)||void 0===r||r.onRowsReordered(this.lastPossibleDropLocation.row.rowId,this.selectedIds,this.position)),h(h({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return H(e,t)},t}(C);function ia(){return"undefined"!=typeof window&&(-1!==window.navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"))}function la(e,t,n){void 0===n&&(n=!1);var o=gl(t);return o?(aa(e,t,hl(t,o,n).div),h(h({},t),{copyRange:o})):t}function aa(e,t,n){var o;ia()?e.clipboardData.setData("text/html",n.innerHTML):(document.body.appendChild(n),n.focus(),document.execCommand("selectAll",!1),document.execCommand("copy"),document.body.removeChild(n)),null===(o=t.hiddenFocusElement)||void 0===o||o.focus({preventScroll:!0}),e.preventDefault()}function sa(e,t){var n,o;if(!gl(t))return t;var r=[],i=e.clipboardData.getData("text/html"),l=(new DOMParser).parseFromString(i,"text/html");if("reactgrid-content"===(null===(n=l.body.firstElementChild)||void 0===n?void 0:n.getAttribute("data-reactgrid"))&&(null===(o=l.body.firstElementChild)||void 0===o?void 0:o.firstElementChild))for(var a=l.body.firstElementChild.firstElementChild.children,s=0;s<a.length;s++){for(var c=[],u=0;u<a[s].children.length;u++){var d=a[s].children[u].getAttribute("data-reactgrid"),p=d&&JSON.parse(d),g=a[s].children[u].innerHTML;c.push(p||{type:"text",text:g,value:parseFloat(g)})}r.push(c)}else r=e.clipboardData.getData("text/plain").split("\n").map((function(e){return e.split("\t").map((function(e){return{type:"text",text:e,value:parseFloat(e)}}))}));return e.preventDefault(),h({},xl(t,r))}var ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.handlePointerDown=function(e,t,n){return(n=h(h({},n),{currentBehavior:this.getNewBehavior(e,t,n),contextMenuPosition:{top:-1,left:-1}})).currentBehavior.handlePointerDown(e,t,n)},t.prototype.getNewBehavior=function(e,t,n){var o,r,i=e.target;return("mouse"===e.pointerType&&"rg-resize-handle"===i.className||"touch"===e.pointerType&&("rg-touch-resize-handle"===i.className||"rg-resize-handle"===i.className))&&0===t.row.idx&&t.column.resizable&&t.cellX>t.column.width-((null===(r=null===(o=n.reactGridElement)||void 0===o?void 0:o.querySelector(".rg-resize-handle"))||void 0===r?void 0:r.clientWidth)||0)-k(n.scrollableElement).scrollLeft?new j:n.enableColumnSelection&&0===t.row.idx&&n.selectedIds.includes(t.column.columnId)&&!_a(e)&&"column"===n.selectionMode&&t.column.reorderable?new U:n.enableColumnSelection&&0===t.row.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new ql:n.enableRowSelection&&0===t.column.idx&&n.selectedIds.includes(t.row.rowId)&&!_a(e)&&"row"===n.selectionMode&&t.row.reorderable?new ra:n.enableRowSelection&&0===t.column.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new ea:("mouse"===e.pointerType&&"rg-fill-handle"===i.className||"touch"===e.pointerType&&("rg-touch-fill-handle"===i.className||"rg-fill-handle"===i.className))&&n.enableFillHandle?new oa:new Y},t.prototype.handleContextMenu=function(e,t){return H(e,t)},t.prototype.handleDoubleClick=function(e,t,n){return Ja(e,t,n)},t.prototype.handleKeyDown=function(e,t){return Jl(t,e)},t.prototype.handleKeyUp=function(e,t){return Ka(e,t)},t.prototype.handleCopy=function(e,t){return la(e,t)},t.prototype.handlePaste=function(e,t){return sa(e,t)},t.prototype.handleCut=function(e,t){return la(e,t,!0)},t}(C),ua={legacyBrowserMode:"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>0||"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge/")>0,focusedLocation:void 0,currentBehavior:new ca,cellTemplates:Ni,hiddenFocusElement:void 0,reactGridElement:void 0,scrollableElement:void 0,queuedCellChanges:[],currentlyEditedCell:void 0,highlightLocations:[],visibleRange:void 0,topScrollBoudary:-1,bottomScrollBoudary:-1,leftScrollBoudary:-1,rightScrollBoudary:-1,enableGroupIdRender:!1,leftStickyColumns:void 0,topStickyRows:void 0,enableFillHandle:!1,enableRangeSelection:!0,enableColumnSelection:!1,enableRowSelection:!1,contextMenuPosition:{top:-1,left:-1},lineOrientation:"horizontal",linePosition:-1,shadowSize:0,shadowPosition:-1,shadowCursor:"default",selectionMode:"range",selectedRanges:[],selectedIndexes:[],selectedIds:[],activeSelectedRangeIdx:0,copyRange:void 0,rightStickyColumns:void 0,bottomStickyRows:void 0,disableVirtualScrolling:!1},da=function(e,t){var n=t.cellMatrix,o=function(e,t,n){if(e.ranges.stickyRightRange.first.column&&t.column.idx>=e.ranges.stickyRightRange.first.column.idx){var o=k(n.scrollableElement).scrollLeft,r=N(n).left,i=B(o,r);return O(n).width+i-e.ranges.stickyRightRange.width}}(n,e,t)||ba(n,e)||xa(n,e,t);return o||0};var pa=function(e,t){var n=t.cellMatrix,o=function(e,t,n){if(e.ranges.stickyBottomRange.first.row&&t.row.idx>=e.ranges.stickyBottomRange.first.row.idx){var o=k(n.scrollableElement).scrollTop,r=N(n).top,i=B(o,r);return O(n).height+i-e.ranges.stickyBottomRange.height}}(n,e,t)||ya(n,e)||wa(n,e,t);return o||0},ga=function(e){var t=e.state,n=e.location,o=k(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=N(t),a=l.top,s=l.left,c=0,u=0;if(t.scrollableElement!==S()){var d=t.scrollableElement.getBoundingClientRect();c=d.left,u=d.top}return{left:n.column.left+da(n,t)+c+s-i,top:n.row.top+pa(n,t)+u+a-r}},fa=function(){var e=cl(),t=e.currentlyEditedCell,n=e.focusedLocation,o=r.useRef(0),i=r.useReducer(ga,{state:e,location:n}),l=i[0],a=i[1];if(r.useEffect((function(){o.current+=1,a()}),[]),!t||!n||0===o.current)return null;var s=e.cellTemplates[t.type];return r.createElement(ha,{cellType:t.type,style:{top:l.top&&l.top-1,left:l.left&&l.left-1,height:n.row.height+1,width:n.column.width+1,position:"fixed"}},s.render(t,!0,(function(t,o){e.currentlyEditedCell=o?void 0:t,o&&e.update((function(e){return M(e,n,t)}))})))},ha=function(e){var t=e.style,n=e.cellType,o=e.children;return r.createElement("div",{className:"rg-celleditor rg-".concat(n,"-celleditor"),style:t},o)},ma=function(e,t){var n=t.cellMatrix,o=ba(n,e)||xa(n,e,t);return o||0},va=function(e,t){var n=t.cellMatrix,o=ya(n,e)||wa(n,e,t);return o||0};function ba(e,t){var n;if(t.column.idx>(e.ranges.stickyLeftRange.last.column?e.ranges.stickyLeftRange.last.column.idx:e.first.column.idx)||t.column.idx===e.last.column.idx&&t.column.idx!==(null===(n=e.ranges.stickyLeftRange.last.column)||void 0===n?void 0:n.idx))return e.ranges.stickyLeftRange.width}function ya(e,t){var n;if(t.row.idx>(e.ranges.stickyTopRange.last.row?e.ranges.stickyTopRange.last.row.idx:e.first.row.idx)||t.row.idx===e.last.row.idx&&t.row.idx!==(null===(n=e.ranges.stickyTopRange.last.row)||void 0===n?void 0:n.idx))return e.ranges.stickyTopRange.height}function xa(e,t,n){if(e.ranges.stickyLeftRange.first.column&&t.column.idx>=e.ranges.stickyLeftRange.first.column.idx&&t.column.idx<=e.ranges.stickyLeftRange.last.column.idx){var o=k(n.scrollableElement).scrollLeft,r=N(n).left;return B(o,r)}}function wa(e,t,n){if(e.ranges.stickyTopRange.first.row&&t.row.idx>=e.ranges.stickyTopRange.first.row.idx&&t.row.idx<=e.ranges.stickyTopRange.last.row.idx){var o=k(n.scrollableElement).scrollTop,r=N(n).top;return B(o,r)}}var Ia=function(e){var t=e.hiddenElementRefHandler,n=cl().hiddenFocusElement;return r.createElement("input",{className:"rg-hidden-element",ref:t,inputMode:"none",onBlur:function(e){e.relatedTarget||null==n||n.focus({preventScroll:!0})}})},Ca=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t}return f(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.prototype.componentDidCatch=function(e,t){this.setState({errorInfo:t})},t.prototype.render=function(){var e=this.state,t=e.hasError,n=e.errorInfo,o=e.error;return t?i.default.createElement(i.default.Fragment,null,i.default.createElement("h1",null,null==o?void 0:o.message)," ",i.default.createElement("br",null),i.default.createElement("br",null),i.default.createElement("details",null,null==o?void 0:o.stack,null==n?void 0:n.componentStack)):this.props.children},t}(e.Component),Ra=function(e){var t=e.eventHandlers,n=e.children,o=cl(),i=o.cellMatrix,l=o.props;return r.createElement(Ca,null,r.createElement("div",{className:"reactgrid",style:{position:"relative",width:(null==l?void 0:l.enableFullWidthHeader)?"100%":i.width,height:i.height},ref:t.reactgridRefHandler},r.createElement("div",{className:"reactgrid-content",onKeyDown:t.keyDownHandler,onKeyUp:t.keyUpHandler,onPointerDown:t.pointerDownHandler,onPasteCapture:t.pasteCaptureHandler,onPaste:t.pasteHandler,onCopy:t.copyHandler,onCut:t.cutHandler,onBlur:t.blurHandler,style:{width:(null==l?void 0:l.enableFullWidthHeader)?"100%":i.width,height:i.height}},n,r.createElement(Ia,{hiddenElementRefHandler:t.hiddenElementRefHandler}))))},Ma={legacyBrowserHeader:"Please update to a modern browser.",legacyBrowserText:"Your current browser cannot run our content, please make sure you browser is fully updated or try adifferent browser. We highly recommend using the most recent release of Google Chrome, Microsoft Edge, Firefox, Safari, and Opera browser",copyLabel:"Copy",cutLabel:"Cut",pasteLabel:"Paste",appleMobileDeviceContextMenuPasteAlert:"Use ⌘ + c for copy, ⌘ + x for cut and ⌘ + v for paste.",otherBrowsersContextMenuPasteAlert:" Use ctrl + c for copy, ctrl + x for cut and ctrl + v for paste.",actionNotSupported:"This action is not supported in this browser."};function Aa(e){var t;return h(h({},Ma),null===(t=e.props)||void 0===t?void 0:t.labels)}var Ea=function(){var e=cl();return r.createElement(r.Fragment,null,r.createElement("h3",null,Aa(e).legacyBrowserHeader),r.createElement("p",null,Aa(e).legacyBrowserText))},ka=function(e){e.border;var t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["border"]);return t};function Sa(){return"undefined"!=typeof window&&(void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile"))}var Ta=function(){return r.createElement("div",{className:"rg-touch-resize-handle","data-cy":"rg-touch-resize-handle"},r.createElement("div",{className:"rg-resize-handle","data-cy":"rg-resize-handle"}))},La="unset";function Ga(e){return{left:e("left"),right:e("right"),top:e("top"),bottom:e("bottom")}}var Pa=function(e){var t,n,o,i=e.state,l=e.location,a=e.range;e.children;var s=e.borders,u=e.update,d=e.currentlyEditedCell,p=R(i,l),g=p.cell,f=p.cellTemplate,m=void 0!==i.focusedLocation&&c(i.focusedLocation,l),v=null!==(t=f.getClassName&&f.getClassName(g,!1))&&void 0!==t?t:"",b=r.useRef(d),y=function(e,t){return function(n,o){return function(r){var i,l,a,s,c,u,d,p;return e[r]?(null===(a=null===(l=null===(i=t.style)||void 0===i?void 0:i.border)||void 0===l?void 0:l[r])||void 0===a?void 0:a[n])?null===(s=t.style.border[r])||void 0===s?void 0:s[n]:o:(null===(d=null===(u=null===(c=t.style)||void 0===c?void 0:c.border)||void 0===u?void 0:u[r])||void 0===d?void 0:d[n])?null===(p=t.style.border[r])||void 0===p?void 0:p[n]:La}}}(s,g),x=Ga(y("color","#E8E8E8")),w=Ga(y("width","1px")),I=Ga(y("style","solid")),C={borderLeft:w.left===La&&I.left===La&&x.left===La?La:"".concat(w.left," ").concat(I.left," ").concat(x.left),borderRight:w.right===La&&I.right===La&&x.right===La?La:"".concat(w.right," ").concat(I.right," ").concat(x.right),borderTop:w.top===La&&I.top===La&&x.top===La?La:"".concat(w.top," ").concat(I.top," ").concat(x.top),borderBottom:w.bottom===La&&I.bottom===La&&x.bottom===La?La:"".concat(w.bottom," ").concat(I.bottom," ").concat(x.bottom)},A=Sa(),E=(null===(n=i.props)||void 0===n?void 0:n.enableRowSelection)&&0===l.row.idx||(null===(o=i.props)||void 0===o?void 0:o.enableColumnSelection)&&0===l.column.idx,k=h(h(h(h(h({},f.getStyle&&(f.getStyle(g,!1)||{})),g.style&&ka(g.style)),{left:l.column.left,top:l.row.top,width:a.width,height:a.height}),!(m&&b.current)&&C),(m||"header"===g.type||E)&&{touchAction:"none"}),S=m&&!!b.current,T=g.groupId?" rg-groupId-".concat(g.groupId):"",L=g.nonEditable?" rg-cell-nonEditable":"",G=S&&A?" rg-celleditor rg-".concat(g.type,"-celleditor"):" rg-".concat(g.type,"-cell"),P="rg-cell".concat(G).concat(T).concat(L," ").concat(v),N=m&&b.current&&A?b.current:g,O=r.useCallback((function(e,t){if(S)b.current=t?void 0:e,t&&u((function(t){return M(t,l,e)}));else{if(!t)throw new Error("commit should be set to true in this case.");u((function(t){return M(t,l,e)}))}}),[S,l,u,b]);return r.createElement("div",h({className:P,style:k},{"data-cell-colidx":l.column.idx,"data-cell-rowidx":l.row.idx}),f.render(N,!!A&&S,O),0===l.row.idx&&l.column.resizable&&r.createElement(Ta,null),i.enableGroupIdRender&&void 0!==(null==g?void 0:g.groupId)&&!(S&&A)&&r.createElement("span",{className:"rg-groupId"},g.groupId))},Na=function(e){var t,n=e.borderColor,o=e.location,i=e.className,l=e.state,a=o.column.idx,c=o.row.idx,u=null===(t=null==l?void 0:l.cellMatrix.rangesToRender[s(a,c)])||void 0===t?void 0:t.range;return u?r.createElement(Ba,{location:o,className:"rg-cell-highlight ".concat(i||""),borderColor:n,width:u.width,height:u.height}):null},Oa=function(e){var t=e.borderColor,n=e.location,o=e.className;return r.createElement(Ba,{location:n,className:"rg-cell-focus ".concat(o||""),borderColor:t,width:n.column.width,height:n.row.height})},Ba=function(e){var t=e.className,n=e.location,o=e.borderColor,i=e.height,l=e.width;return r.createElement("div",{className:t,style:{top:n.row.top-(0===n.row.top?0:1),left:n.column.left-(0===n.column.left?0:1),width:l+(0===n.column.left?0:1),height:i+(0===n.row.top?0:1),borderColor:"".concat(o)}})};var Da=r.memo((function(e){var t=e.columns,n=e.row,o=e.cellRenderer,i=e.borders,l=e.state,a=t[t.length-1].idx,c=o;return r.createElement(r.Fragment,null,t.map((function(e){var t,o=null===(t=l.cellMatrix.rangesToRender[s(e.idx,n.idx)])||void 0===t?void 0:t.range;if(!o)return null;var u={row:n,column:e};return r.createElement(c,{key:n.idx+"-"+e.idx,borders:h(h({},i),{left:i.left&&0===e.left,right:i.right&&e.idx===a||!(l.cellMatrix.scrollableRange.last.column.idx===u.column.idx)}),state:l,location:u,range:o,currentlyEditedCell:l.currentlyEditedCell,update:l.update})})))}),(function(e,t){var n=e.columns,o=t.columns;return!(t.forceUpdate||o[0].idx!==n[0].idx||o.length!==n.length||o[o.length-1].idx!==n[n.length-1].idx)}));Da.displayName="RowRenderer";var Fa=function(e){var t=e.state,n=e.calculatedRange;return r.createElement(r.Fragment,null,t.currentBehavior.renderPanePart(t,n))},Va=function(t){var n=t.state,o=t.location,r=e.useRef(null),l=e.useState({width:0,height:0}),a=l[0],s=l[1];return e.useLayoutEffect((function(){r.current&&s({width:r.current.offsetWidth,height:r.current.offsetHeight})}),[]),i.default.createElement("div",{className:"rg-touch-fill-handle",ref:r,style:{top:o.row.bottom-a.width/2,left:o.column.right-a.height/2},onPointerDown:function(e){"mouse"!==e.pointerType&&n.update((function(e){return h(h({},e),{currentBehavior:new oa})}))}},i.default.createElement("div",{className:"rg-fill-handle"}))},Xa=function(e){var t=e.state,n=e.calculatedRange;return r.createElement(r.Fragment,null,t.selectedRanges[t.activeSelectedRangeIdx]&&n instanceof l&&n.contains(t.selectedRanges[t.activeSelectedRangeIdx].last)&&t.enableFillHandle&&!t.currentlyEditedCell&&!(t.currentBehavior instanceof Y)&&r.createElement(Va,{state:t,location:t.selectedRanges[t.activeSelectedRangeIdx].last}))},Wa=function(e){var t=e.state,n=e.calculatedRange;return r.createElement(r.Fragment,null,t.selectedRanges.map((function(e,o){return!(t.focusedLocation&&e.contains(t.focusedLocation)&&1===e.columns.length&&1===e.rows.length)&&n&&na(n,e)&&r.createElement(ta,{key:o,pane:n,range:e,className:"rg-partial-area-selected-range",style:{}})})))};var Za=r.memo((function(e){var t=e.range,n=e.state,o=e.borders,i=e.cellRenderer;return r.createElement(r.Fragment,null,t.rows.map((function(e){var l;return r.createElement(Da,{key:e.rowId,state:n,row:e,columns:t.columns,forceUpdate:!0,cellRenderer:i,borders:h(h({},o),{top:o.top&&0===e.top,bottom:o.bottom&&e.idx===t.last.row.idx||!((null===(l=n.cellMatrix.scrollableRange.last.row)||void 0===l?void 0:l.idx)===e.idx)})})})))}),(function(e,t){var n=e.state,o=t.state;return!(!n.focusedLocation||!o.focusedLocation||n.currentlyEditedCell!==o.currentlyEditedCell)&&(n.focusedLocation.column.columnId===o.focusedLocation.column.columnId&&n.focusedLocation.row.rowId===o.focusedLocation.row.rowId&&!(n.visibleRange!==o.visibleRange||n.cellMatrix.props!==o.cellMatrix.props))}));Za.displayName="PaneGridContent";var Ha=function(e){var t=e.className,n=e.style,o=e.renderChildren,i=e.children;return n.width&&n.height?r.createElement(za,{className:t,style:n}," ",o&&i," "):null},Ya=function(e){var t=e.state,n=e.range,o=e.borders,i=e.cellRenderer,l=n();return r.createElement(r.Fragment,null,r.createElement(Za,{state:t,range:l,borders:o,cellRenderer:i}),function(e,t){return e.highlightLocations.map((function(n,o){try{var i=e.cellMatrix.getLocationById(n.rowId,n.columnId);return i&&t.contains(i)&&r.createElement(Na,{key:o,location:i,state:e,borderColor:n.borderColor})}catch(e){return console.error("Cell location fot found while rendering highlights at: ".concat(e.message)),null}}))}(t,l),t.focusedLocation&&!(t.currentlyEditedCell&&Sa())&&l.contains(t.focusedLocation)&&r.createElement(Oa,{location:t.focusedLocation}),r.createElement(Wa,{state:t,calculatedRange:l}),r.createElement(Fa,{state:t,calculatedRange:l}),r.createElement(Xa,{state:t,calculatedRange:l}))},za=function(e){return r.createElement("div",{className:"rg-pane ".concat(e.className),style:e.style}," ",e.children," ")};function ja(){return"undefined"!=typeof window&&navigator.userAgent.includes("Firefox")}var Ua=function(e){var t=e.renderCondition,n=e.className,o=e.style,i=e.zIndex,l=e.children;return t?r.createElement("div",{className:"rg-pane-shadow ".concat(n),style:h(h({},o),ja()&&{zIndex:i})},l):null};function _a(e){return!T()&&e.ctrlKey||e.metaKey}function Ja(e,t,n){if(c(t,n.focusedLocation)){var o=R(n,t),r=o.cell,i=o.cellTemplate;if(i.handleKeyDown){var l=i.handleKeyDown(r,1,_a(e),e.shiftKey,e.altKey),a=l.cell;if(l.enableEditMode&&!r.nonEditable)return h(h({},n),{currentlyEditedCell:a})}}return n}function Ka(e,t){return e.keyCode!==exports.keyCodes.TAB&&e.keyCode!==exports.keyCodes.ENTER||(e.preventDefault(),e.stopPropagation()),t}function Qa(e,t){var n=e.focusedLocation;if(!n)return e;var o=R(e,n),r=o.cell,i=o.cellTemplate;if(i.handleKeyDown&&!e.currentlyEditedCell){var l=i.handleKeyDown(r,t.keyCode,_a(t),t.shiftKey,t.altKey),a=l.cell,s=l.enableEditMode;if(JSON.stringify(a)!==JSON.stringify(r)||s)return s&&!r.nonEditable?h(h({},e),{currentlyEditedCell:a}):M(e,n,a)}return e}var $a=function(e){return function(t){return function(n){return function(){return t.slice(n,e)}}}},qa=$a("columns"),es=$a("rows");function ts(e,t,n,o){var r=m([],e.queuedCellChanges);r.length>0&&(n.onCellsChanged&&n.onCellsChanged(m([],r)),r.forEach((function(){return e.queuedCellChanges.pop()}))),e!==t&&o(e)}exports.AbstractPointerEventsController=u,exports.Behavior=C,exports.CellEditorRenderer=fa,exports.CellMatrix=a,exports.CellMatrixBuilder=Ce,exports.CellRenderer=Pa,exports.CheckboxCellTemplate=Me,exports.ChevronCellTemplate=Ve,exports.DateCellTemplate=Ne,exports.DropdownCellTemplate=Ti,exports.EmailCellTemplate=Fe,exports.EventHandlers=Ie,exports.GridRenderer=Ra,exports.HeaderCellTemplate=Xe,exports.LegacyBrowserGridRenderer=Ea,exports.NumberCellTemplate=We,exports.Pane=Ha,exports.PaneContent=Ya,exports.PaneGridContent=Za,exports.PaneShadow=Ua,exports.PanesRenderer=ul,exports.Range=l,exports.ReactGrid=Rl,exports.TextCellTemplate=Ze,exports.TimeCellTemplate=He,exports.VS_PAGE_HEIGHT=400,exports.VS_PAGE_WIDTH=300,exports.appendCellTemplates=_i,exports.appendGroupIdRender=Ji,exports.appendHighlights=Qi,exports.areFocusesDiff=Xi,exports.areLocationsEqual=c,exports.cellEditorCalculator=function(e){var t=e.state,n=e.location,o=k(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=N(t),a=l.top,s=l.left,c=0,u=0;if(t.scrollableElement!==S()){var d=t.scrollableElement.getBoundingClientRect();c=d.left,u=d.top}return{left:n.column.left+ma(n,t)+c+s-i,top:n.row.top+va(n,t)+u+a-r}},exports.clearCell=bl,exports.columnsSlicer=qa,exports.componentDidUpdate=se,exports.copyDataCommands=aa,exports.createHTMLElements=ml,exports.dataHasChanged=Zi,exports.defaultStateFields=ua,exports.emptyCell=fl,exports.focusCell=Ml,exports.focusLocation=A,exports.getCalculatedScrollLeftValueToLeft=re,exports.getCalculatedScrollLeftValueToRight=oe,exports.getCalculatedScrollTopValueToBottom=Q,exports.getCalculatedScrollTopValueToTop=$,exports.getCellProperty=Re,exports.getCharFromKeyCode=De,exports.getCompatibleCellAndTemplate=R,exports.getDataToCopy=hl,exports.getDerivedStateFromProps=Di,exports.getFocusLocationToDown=jl,exports.getFocusLocationToLeft=Xl,exports.getFocusLocationToRight=Zl,exports.getFocusLocationToUp=Yl,exports.getLeftStickyColumn=X,exports.getLeftStickyOffset=xa,exports.getLocationFromClient=D,exports.getNextFocusableLocation=Vl,exports.getReactGridOffsets=N,exports.getRightStickyColumn=F,exports.getScrollLeft=de,exports.getScrollOfScrollableElement=k,exports.getScrollTop=ue,exports.getScrollableContentColumn=Z,exports.getScrollableContentRow=W,exports.getScrollableParent=E,exports.getSizeOfElement=P,exports.getStickyLeftRangeWidth=ba,exports.getStickyOffset=B,exports.getStickyTopRangeWidth=ya,exports.getStickyTopRow=V,exports.getTopScrollableElement=S,exports.getTopStickyOffset=wa,exports.getVisibleColumns=me,exports.getVisibleHeight=_l,exports.getVisibleRows=ve,exports.getVisibleScrollAreaHeight=K,exports.getVisibleScrollAreaWidth=ne,exports.getVisibleScrollableSize=he,exports.getVisibleSizeOfReactGrid=O,exports.handleCopy=la,exports.handleDoubleClick=Ja,exports.handleKeyDown=Jl,exports.handleKeyDownOnCellTemplate=Qa,exports.handleKeyUp=Ka,exports.handlePaste=sa,exports.handleStateUpdate=ts,exports.highlightsHasChanged=Hi,exports.i18n=Aa,exports.inNumericKey=Ee,exports.isAllowedOnNumberTypingKey=Se,exports.isAlphaNumericKey=Ae,exports.isBottomCellAllVisible=q,exports.isBrowserFirefox=ja,exports.isBrowserSafari=ia,exports.isFocusLocationOnLeftSticky=ae,exports.isFocusLocationOnTopSticky=te,exports.isIOS=L,exports.isIpadOS=G,exports.isLeftCellAllVisible=le,exports.isMacOs=T,exports.isMobileDevice=Sa,exports.isNavigationKey=Te,exports.isNumpadNumericKey=ke,exports.isOnClickableArea=p,exports.isReadyToHandleEvent=d,exports.isRightCellAllVisible=ie,exports.isSelectionKey=_a,exports.isTopCellAllVisible=ee,exports.moveFocusDown=Ll,exports.moveFocusEnd=El,exports.moveFocusHome=Al,exports.moveFocusLeft=kl,exports.moveFocusPage=Gl,exports.moveFocusPageDown=Nl,exports.moveFocusPageUp=Pl,exports.moveFocusRight=Sl,exports.moveFocusUp=Tl,exports.pasteData=xl,exports.processSingleCell=function(e,t,n){var o=e.insertCell(),r=R(t,n).cell;o.textContent=r.text?r.text:" ",o.setAttribute("data-reactgrid",JSON.stringify(r)),o.style.border="1px solid #D3D3D3"},exports.recalcVisibleRange=fe,exports.rowsSlicer=es,exports.scrollCalculator=ce,exports.scrollIntoView=J,exports.setFocusLocation=qi,exports.setInitialFocusLocation=$i,exports.setStyles=vl,exports.shouldRenderBottomSticky=il,exports.shouldRenderCenterRange=ol,exports.shouldRenderLeftSticky=nl,exports.shouldRenderMiddleRange=rl,exports.shouldRenderRightSticky=ll,exports.shouldRenderTopSticky=tl,exports.stateDeriver=Wi,exports.translateLocationIdxToLookupKey=s,exports.tryAppendChange=M,exports.tryAppendChangeHavingGroupId=yl,exports.updateFocusedLocation=ji,exports.updateStateProps=Yi,exports.withFocusLocation=Ol,exports.withMoveFocusDown=zl,exports.withMoveFocusEnd=Bl,exports.withMoveFocusHome=Dl,exports.withMoveFocusLeft=Fl,exports.withMoveFocusPage=Ul,exports.withMoveFocusRight=Wl,exports.withMoveFocusUp=Hl;
  //# sourceMappingURL=handleStateUpdate-ff210c74.js.map
  