-
Notifications
You must be signed in to change notification settings - Fork 4
/
1398c2ec-5a03195d6803a2e72b26.js
2 lines (2 loc) · 251 KB
/
1398c2ec-5a03195d6803a2e72b26.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{kDPD:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return de})),n.d(t,"b",(function(){return Re})),n.d(t,"c",(function(){return ie})),n.d(t,"d",(function(){return R})),n.d(t,"e",(function(){return Ki})),n.d(t,"f",(function(){return ae}));var o=n("q1tI"),r=n.n(o),i=n("i8i4"),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){var t,n,o,r,i,l,a,c;return(null===(t=e.column)||void 0===t?void 0:t.idx)>=(null===(n=this.first.column)||void 0===n?void 0:n.idx)&&(null===(o=e.column)||void 0===o?void 0:o.idx)<=(null===(r=this.last.column)||void 0===r?void 0:r.idx)&&(null===(i=e.row)||void 0===i?void 0:i.idx)>=(null===(l=this.first.row)||void 0===l?void 0:l.idx)&&(null===(a=e.row)||void 0===a?void 0:a.idx)<=(null===(c=this.last.row)||void 0===c?void 0:c.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 c(e,t){return"".concat(e,", ").concat(t)}function s(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||s(t,o))&&(n=n.currentBehavior.handlePointerDown(e,t,n)),n},e.prototype.shouldHandleDoubleClick=function(e,t,n){return t-n<500&&s(e,this.eventLocations[0])&&s(e,this.eventLocations[1])},e.prototype.shouldHandleCellSelectionOnMobile=function(e,t,n){return"mouse"!==e.pointerType&&s(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)}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])})(e,t)};function p(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 f=function(){return(f=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}).apply(this,arguments)};function h(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}c((o=o.apply(e,t||[])).next())}))}function m(e,t){var n,o,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(l=0)),l;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,o=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){l.label=a[1];break}if(6===a[0]&&l.label<r[1]){l.label=r[1],r=a;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(a);break}r[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function b(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var v=function(e,t){return{row:e,column:t}};function y(e,t){var n,o=e.cellMatrix.getRange(t,t);return(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.onSelectionChanged)&&e.props.onSelectionChanged([o]),f(f({},e),{activeSelectedRangeIdx:0,selectedRanges:[o],selectedIndexes:[],selectedIds:[],selectionMode:"range"})}function I(e,t,n){return f(f({},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 f(f({},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 f(f({},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 C(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 f(f({},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 R,A,E=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.handleCompositionEnd=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 M(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(f(f({},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 G(e,t,n){var o=M(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}),f({},e)}function k(e,t,n,o){if(void 0===n&&(n=!0),e.focusedLocation&&e.currentlyEditedCell&&o!==R.ENTER&&(e=G(e,e.focusedLocation,e.currentlyEditedCell)),!e.props)throw new Error('"props" field on "state" object should be initiated before possible location focus');var r=e.props,i=r.onFocusLocationChanged,l=r.onFocusLocationChanging,a=r.focusLocation,c=M(e,t),u=c.cell,d=c.cellTemplate,g={rowId:t.row.rowId,columnId:t.column.columnId},p=!l||l(g),h=!d.isFocusable||d.isFocusable(u),m=a?e.cellMatrix.getLocationById(a.rowId,a.columnId):void 0,b=s(t,e.focusedLocation)||!m||s(t,m);if(!h||!p||!b)return e;i&&i(g);var v=e.cellMatrix.validateLocation(t);return n&&(e=y(e,v)),f(f({},e),{focusedLocation:v,contextMenuPosition:{top:-1,left:-1},currentlyEditedCell:void 0})}function N(e){var t,n;return{scrollLeft:void 0!==e?(null!==(t=e.scrollLeft)&&void 0!==t?t:T().scrollX)-(e.clientLeft||0):0,scrollTop:void 0!==e?(null!==(n=e.scrollTop)&&void 0!==n?n:T().scrollY)-(e.clientTop||0):0}}function T(){return window}function B(){return"undefined"!=typeof window&&-1!==window.navigator.appVersion.indexOf("Mac")}function S(){return"undefined"!=typeof window&&(!!/iPad|iPhone|iPod/.test(window.navigator.platform)||L())}function L(){return"undefined"!=typeof window&&window.navigator.maxTouchPoints>2&&/MacIntel/.test(window.navigator.platform)}function P(e){return e?{width:e instanceof HTMLElement?e.clientWidth:S()?window.innerWidth:document.documentElement.clientWidth,height:e instanceof HTMLElement?e.clientHeight:S()?window.innerHeight:document.documentElement.clientHeight}:{width:0,height:0}}function W(e){var t=N(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!==T()){var a=e.scrollableElement.getBoundingClientRect();i-=a.left,l-=a.top}return{left:i,top:l}}function X(e){var t=N(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop,r=P(e.scrollableElement),i=r.width,l=r.height,a=W(e),c=a.left,s=a.top,u=o+l,d=s+e.cellMatrix.height,g=s<o?o:s,p=d>u?u:d,f=n+i,h=c+e.cellMatrix.width,m=c<n?n:c,b=h>f?f:h;return{width:Math.max(b-m,0),height:Math.max(p-g,0),visibleOffsetRight:f-b,visibleOffsetBottom:u-p}}(A=R||(R={}))[A.POINTER=1]="POINTER",A[A.BACKSPACE=8]="BACKSPACE",A[A.TAB=9]="TAB",A[A.ENTER=13]="ENTER",A[A.SHIFT=16]="SHIFT",A[A.CTRL=17]="CTRL",A[A.ALT=18]="ALT",A[A.PAUSE=19]="PAUSE",A[A.CAPS_LOCK=20]="CAPS_LOCK",A[A.ESCAPE=27]="ESCAPE",A[A.SPACE=32]="SPACE",A[A.PAGE_UP=33]="PAGE_UP",A[A.PAGE_DOWN=34]="PAGE_DOWN",A[A.END=35]="END",A[A.HOME=36]="HOME",A[A.LEFT_ARROW=37]="LEFT_ARROW",A[A.UP_ARROW=38]="UP_ARROW",A[A.RIGHT_ARROW=39]="RIGHT_ARROW",A[A.DOWN_ARROW=40]="DOWN_ARROW",A[A.INSERT=45]="INSERT",A[A.DELETE=46]="DELETE",A[A.KEY_0=48]="KEY_0",A[A.KEY_1=49]="KEY_1",A[A.KEY_2=50]="KEY_2",A[A.KEY_3=51]="KEY_3",A[A.KEY_4=52]="KEY_4",A[A.KEY_5=53]="KEY_5",A[A.KEY_6=54]="KEY_6",A[A.KEY_7=55]="KEY_7",A[A.KEY_8=56]="KEY_8",A[A.KEY_9=57]="KEY_9",A[A.KEY_A=65]="KEY_A",A[A.KEY_B=66]="KEY_B",A[A.KEY_C=67]="KEY_C",A[A.KEY_D=68]="KEY_D",A[A.KEY_E=69]="KEY_E",A[A.KEY_F=70]="KEY_F",A[A.KEY_G=71]="KEY_G",A[A.KEY_H=72]="KEY_H",A[A.KEY_I=73]="KEY_I",A[A.KEY_J=74]="KEY_J",A[A.KEY_K=75]="KEY_K",A[A.KEY_L=76]="KEY_L",A[A.KEY_M=77]="KEY_M",A[A.KEY_N=78]="KEY_N",A[A.KEY_O=79]="KEY_O",A[A.KEY_P=80]="KEY_P",A[A.KEY_Q=81]="KEY_Q",A[A.KEY_R=82]="KEY_R",A[A.KEY_S=83]="KEY_S",A[A.KEY_T=84]="KEY_T",A[A.KEY_U=85]="KEY_U",A[A.KEY_V=86]="KEY_V",A[A.KEY_W=87]="KEY_W",A[A.KEY_X=88]="KEY_X",A[A.KEY_Y=89]="KEY_Y",A[A.KEY_Z=90]="KEY_Z",A[A.LEFT_META=91]="LEFT_META",A[A.RIGHT_META=92]="RIGHT_META",A[A.SELECT=93]="SELECT",A[A.NUMPAD_0=96]="NUMPAD_0",A[A.NUMPAD_1=97]="NUMPAD_1",A[A.NUMPAD_2=98]="NUMPAD_2",A[A.NUMPAD_3=99]="NUMPAD_3",A[A.NUMPAD_4=100]="NUMPAD_4",A[A.NUMPAD_5=101]="NUMPAD_5",A[A.NUMPAD_6=102]="NUMPAD_6",A[A.NUMPAD_7=103]="NUMPAD_7",A[A.NUMPAD_8=104]="NUMPAD_8",A[A.NUMPAD_9=105]="NUMPAD_9",A[A.MULTIPLY=106]="MULTIPLY",A[A.ADD=107]="ADD",A[A.SUBTRACT=109]="SUBTRACT",A[A.DECIMAL=110]="DECIMAL",A[A.DIVIDE=111]="DIVIDE",A[A.F1=112]="F1",A[A.F2=113]="F2",A[A.F3=114]="F3",A[A.F4=115]="F4",A[A.F5=116]="F5",A[A.F6=117]="F6",A[A.F7=118]="F7",A[A.F8=119]="F8",A[A.F9=120]="F9",A[A.F10=121]="F10",A[A.F11=122]="F11",A[A.F12=123]="F12",A[A.NUM_LOCK=144]="NUM_LOCK",A[A.SCROLL_LOCK=145]="SCROLL_LOCK",A[A.FIREFOX_DASH=173]="FIREFOX_DASH",A[A.SEMICOLON=186]="SEMICOLON",A[A.EQUALS=187]="EQUALS",A[A.COMMA=188]="COMMA",A[A.DASH=189]="DASH",A[A.PERIOD=190]="PERIOD",A[A.FORWARD_SLASH=191]="FORWARD_SLASH",A[A.GRAVE_ACCENT=192]="GRAVE_ACCENT",A[A.OPEN_BRACKET=219]="OPEN_BRACKET",A[A.BACK_SLASH=220]="BACK_SLASH",A[A.CLOSE_BRACKET=221]="CLOSE_BRACKET",A[A.SINGLE_QUOTE=222]="SINGLE_QUOTE";var O=function(e,t){return e>t?e-t:0};function F(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 function(e,t,n){var o=e.cellMatrix,r=N(e.scrollableElement).scrollTop,i=W(e).top,l=O(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}}}(e,t,n)||function(e,t,n){var o=e.cellMatrix,r=N(e.scrollableElement).scrollTop,i=W(e).top,l=P(e.scrollableElement).height,a=O(r,i),c=Math.max(o.height-l+i,0),s=X(e).height+a-o.ranges.stickyBottomRange.height;if(o.ranges.stickyBottomRange.rows.length>0&&t>=s&&!(n&&r+1<c)){var u=o.ranges.stickyBottomRange.rows.find((function(e){return e.bottom>t-s}))||o.last.row;return{cellY:t-s-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 function(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}}(e,t)}(e,t)}(e,l,"vertical"===o||"both"===o),c=a.cellY,s=a.row,u=function(e,t,n){return function(e,t,n){var o=e.cellMatrix,r=N(e.scrollableElement).scrollLeft,i=W(e).left,l=O(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}}}(e,t,n)||function(e,t,n){var o=e.cellMatrix,r=N(e.scrollableElement).scrollLeft,i=W(e).left,l=P(e.scrollableElement).width,a=O(r,i),c=Math.max(o.width-l+i,0),s=X(e).width+a-o.ranges.stickyRightRange.width;if(o.ranges.stickyRightRange.columns.length>0&&t>=s&&!(n&&r+1<c)){var u=o.ranges.stickyRightRange.columns.find((function(e){return e.right>t-s}))||o.last.column;return{cellX:t-s-u.left,column:u}}}(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 function(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}}(e,t)}(e,t)}(e,i,"horizontal"===o||"both"===o),d=u.cellX;return{row:s,column:u.column,viewportX:i,viewportY:l,cellX:d,cellY:c}}function V(e,t){e.preventDefault();var n=e.clientX,o=e.clientY,r=t.contextMenuPosition;r.top=o,r.left=n;var i=F(t,n,o);return t.selectedRanges.find((function(e){return e.contains(i)}))||(t=k(t,i)),f(f({},t),{contextMenuPosition:r})}var Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 la(e)&&"range"===n.selectionMode?x(n,o):I(n,o,!1)}if(n.enableRangeSelection&&la(e)){var r=n.selectedRanges.findIndex((function(e){return e.contains(t)})),i=n.selectedRanges[r],l=M(n,t).cellTemplate;i?(n=k(n,t,!1),n=f(f({},n),{activeSelectedRangeIdx:r})):l.isFocusable||(o=n.cellMatrix.getRange(t,t),n=k(n=I(n,o,!0),t,!1))}else n=k(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&&function(e,t){if(!t.reactGridElement)return!1;var n=t.reactGridElement.getBoundingClientRect().left;return!(e.clientX-n>t.cellMatrix.width)}(e,n)?x(n,o):I(n,o,!1)},t.prototype.handlePointerUp=function(e,t,n){var o,r;if((null===(o=n.props)||void 0===o?void 0:o.onSelectionChanging)&&!n.props.onSelectionChanging(n.selectedRanges)){var i=b([],n.selectedRanges,!0).filter((function(e,t){return t!==n.activeSelectedRangeIdx}));return f(f({},n),{selectedRanges:i,activeSelectedRangeIdx:i.length-1})}return(null===(r=n.props)||void 0===r?void 0:r.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges),n},t.prototype.handleContextMenu=function(e,t){return V(e,t)},t}(E),H=function(e){var t=e.left,n=e.linePosition,r=e.offset;return o.createElement(o.Fragment,null,-1!==n&&o.createElement("div",{className:"rg-column-resize-hint",style:{left:n-r}},o.createElement("span",{style:{whiteSpace:"nowrap"}},"Width: ",Math.floor(n-t-r),"px")))},D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return p(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,r,i,l,c=t.viewportX;if(!(t.column.idx===this.resizedColumn.idx&&t.cellX>(null!==(r=null===(o=n.props)||void 0===o?void 0:o.minColumnWidth)&&void 0!==r?r:a.MIN_COLUMN_WIDTH)||t.column.idx>this.resizedColumn.idx)){var s=this.getLinePositionOffset(n);c=(null!==(l=null===(i=n.props)||void 0===i?void 0:i.minColumnWidth)&&void 0!==l?l:a.MIN_COLUMN_WIDTH)+this.resizedColumn.left+s}return f(f({},n),{linePosition:c,lineOrientation:"vertical"})},t.prototype.handlePointerUp=function(e,t,n){var o,r,i,l,c,s=this.resizedColumn.width+t.viewportX-this.initialLocation.viewportX;if(null===(o=n.props)||void 0===o?void 0:o.onColumnResized){var u=s>=(null!==(i=null===(r=n.props)||void 0===r?void 0:r.minColumnWidth)&&void 0!==i?i:a.MIN_COLUMN_WIDTH)?s:null!==(c=null===(l=n.props)||void 0===l?void 0:l.minColumnWidth)&&void 0!==c?c:a.MIN_COLUMN_WIDTH;n.props.onColumnResized(this.resizedColumn.columnId,u,n.selectedIds)}var d=n.focusedLocation;if(void 0!==d&&this.resizedColumn.columnId===d.column.idx){var g=f(f({},d.column),{width:s});d=f(f({},d),{column:g})}return f(f({},n),{linePosition:-1,focusedLocation:d})},t.prototype.renderPanePart=function(e,t){var n=this.getLinePositionOffset(e);return t.contains(this.initialLocation)&&r.a.createElement(H,{left:this.resizedColumn.left,linePosition:e.linePosition,offset:n})},t.prototype.getLinePositionOffset=function(e){var t=this,n=N(e.scrollableElement).scrollLeft,o=W(e).left,r=O(n,o),i=X(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}(E),Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return p(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})).map((function(e){return n.cellMatrix.columns[e]})).reduce((function(e,t){return e+t.width}),0);return this.pointerOffset=r+t.cellX,f(f({},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 f(f({},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=N(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,f(f({},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 f(f({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return V(e,t)},t}(E);function z(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 J(e,t){return X(e).height-t}function j(e,t){var n=e.cellMatrix.ranges.stickyTopRange,o=t.row;return n.rows.length>0&&o.idx<=n.last.row.idx}function U(e,t,n){return void 0===n&&(n="both"),{top:_(e,t,"horizontal"===n),left:Q(e,t,"vertical"===n)}}function _(e,t,n){var o=e.cellMatrix.ranges,r=o.stickyTopRange,i=o.stickyBottomRange,l=N(e.scrollableElement).scrollTop,a=J(e,r.height+i.height),c=W(e).top,s=O(l,c),u=t.row;if(n||!u)return l;var d=K(e,t)?1:0;return j(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:function(e,t,n){var o=N(e.scrollableElement).scrollTop,r=W(e).top,i=O(o,r);return n<t.row.bottom-i}(e,t,a+d)?function(e,t,n,o){return n+e.row.bottom-t-o}(t,a-1-d,l,s):function(e,t){var n=N(e.scrollableElement).scrollTop,o=W(e).top,r=O(n,o);return t.row.top<r}(e,t)?function(e,t,n){return t-n+e.row.top-1}(t,l,s):l}function Q(e,t,n){var o=e.cellMatrix.ranges,r=o.stickyLeftRange,i=o.stickyRightRange,l=N(e.scrollableElement).scrollLeft,a=function(e,t){return X(e).width-t}(e,r.width+i.width),c=W(e).left,s=O(l,c),u=t.column;if(n||!u)return l;var d=K(e,t)?1:0;return function(e,t){var n=e.cellMatrix.ranges.stickyLeftRange,o=t.column;return n.columns.length>0&&o.idx<=n.last.column.idx}(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:function(e,t,n){var o=N(e.scrollableElement).scrollLeft,r=W(e).left,i=O(o,r);return n<t.column.right-i}(e,t,a+d)?function(e,t,n,o){return n+e.column.right-t-o}(t,a-1-d,l,s):function(e,t){var n=N(e.scrollableElement).scrollLeft,o=W(e).left,r=O(n,o);return t.column.left<r}(e,t)?function(e,t,n){return t-n+e.column.left-1}(t,l,s):l}function K(e,t){return e.cellMatrix.scrollableRange.contains(t)&&e.scrollableElement===T()}var $=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=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}(e,n);if((null===(o=n.props)||void 0===o?void 0:o.onContextMenu)&&r&&window.addEventListener("contextmenu",t.handleContextMenu,!0),!r)return f(f({},n),{contextMenuPosition:{top:-1,left:-1}});if(!d(e))return n;window.addEventListener("pointermove",t.handlePointerMove),window.addEventListener("pointerup",t.handlePointerUp);var i=F(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:f(f({},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,!0),window.addEventListener("pointerdown",t.handleHideContextMenu),t.updateState((function(n){var o;if(t.isContainElement(e,n)){var r=F(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=F(n,e.clientX,e.clientY,void 0),l=F(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 D)&&(null===(o=n.props)||void 0===o?void 0:o.enableRangeSelection)||n.currentBehavior instanceof Y){var a=U(n,l),c=a.left;z(n,a.top,c)}n=n.currentBehavior.handlePointerMove(e,l,n);var u=t.eventLocations[t.currentIndex];return t.eventLocations[t.currentIndex]=l,s(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,!0),t.updateState((function(n){var o,r=F(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=f(f({},n),{currentBehavior:new Al}),t.shouldHandleDoubleClick(r,i,l)&&(n=n.currentBehavior.handleDoubleClick(e,r,n)),null===(o=n.hiddenFocusElement)||void 0===o||o.focus(),n})))},t}return p(t,e),t}(u);function q(e){if(e.disableVirtualScrolling){var t=e.cellMatrix.scrollableRange,n=t.rows,o=t.columns,r=new l(n,o);return f(f({},e),{visibleRange:r})}var i=N(e.scrollableElement),a=i.scrollTop,c=i.scrollLeft,s=function(e,t,n){var o=X(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)}}(e,[-e.cellMatrix.ranges.stickyTopRange.height],[-e.cellMatrix.ranges.stickyLeftRange.width]),u=s.width,d=s.height,g=function(e,t){var n=e.cellMatrix.scrollableRange.columns,o=W(e).left,r=N(e.scrollableElement).scrollLeft,i=Math.max(te(n,r-o-300)-1-1,0),l=te(n,t+O(r,o)+300,i);return n.slice(i,l+1)}(e,u),p=function(e,t){var n=e.cellMatrix.scrollableRange.rows,o=W(e).top,r=N(e.scrollableElement).scrollTop,i=Math.max(ee(n,r-o-400)-1-1,0),l=ee(n,t+O(r,o)+400,i);return n.slice(i,l+1)}(e,d),h=new l(p,g);return f(f({},e),{leftScrollBoudary:h.columns.length>0?c-300:0,rightScrollBoudary:void 0===h.last.column?0:300+c,topScrollBoudary:h.columns.length>0?a-400:0,bottomScrollBoudary:void 0===h.last.row?0:400+a,visibleRange:h})}function ee(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?ee(e,t,n,r):ee(e,t,r+1,o)}function te(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?te(e,t,n,r):te(e,t,r+1,o)}function ne(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,c=e.stickyTopRows||0,s=e.stickyRightColumns||0,u=e.stickyBottomRows||0;if(e.stickyTopRows||e.stickyLeftColumns||e.stickyRightColumns||e.stickyBottomRows){var d=P(t.scrollableElement),g=d.width,p=d.height;if(e.stickyLeftColumns||e.stickyRightColumns){var h=e.columns.slice(0,l).reduce((function(e,t){return e+(t.width||a.DEFAULT_COLUMN_WIDTH)}),0),m=0;s>0&&(m=e.columns.slice(-s).reduce((function(e,t){return e+(t.width||a.DEFAULT_COLUMN_WIDTH)}),0));var b=h+m>o*g/100;l=b?0:l,s=b?0:s}if(e.stickyTopRows||e.stickyBottomRows){var v=e.rows.slice(0,c).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 I=v+y>i*p/100;c=I?0:c,u=I?0:u}}return f(f({},t),{leftStickyColumns:l,topStickyRows:c,rightStickyColumns:s,bottomStickyRows:u})}var oe=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.compositionEndHandler=function(e){return n.updateState((function(t){return t.currentBehavior.handleCompositionEnd(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,r;return(null===(o=null===(n=e.target)||void 0===n?void 0:n.id)||void 0===o?void 0:o.startsWith("react-select-"))&&(null===(r=t.hiddenFocusElement)||void 0===r||r.focus({preventScroll:!0})),t}))},this.windowResizeHandler=function(){return n.updateState(q)},this.reactgridRefHandler=function(e){return n.assignElementsRefs(e,q)},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(q)},this.assignElementsRefs=function(e,t){e&&n.updateState((function(n){var o=function(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 T()}(e,!0);return n.props&&(n=ne(n.props,n)),t(f(f({},n),{reactGridElement:e,scrollableElement:o}))}))},this.updateOnScrollChange=function(e){n.updateState((function(t){if(t.disableVirtualScrolling)return t;var n=200,o=N(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=X(t),a=l.width,c=l.height;return a>0&&c>0&&(r>=t.bottomScrollBoudary-n||r<=t.topScrollBoudary+n||i>=t.rightScrollBoudary-n||i<=t.leftScrollBoudary+n)?e(t):t}))}},re=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),c=n.height||a.DEFAULT_ROW_HEIGHT;return e.push(f(f({},n),{top:l,height:c,idx:r,bottom:l+c})),t.cellMatrix.height+=c,t.cellMatrix.rowIndexLookup[n.rowId]=r,e}),[]),this.cellMatrix.columns=this.cellMatrix.props.columns.reduce((function(e,o,i){var l,c,s,u,d=t.getLeft(i,n,r,e),g=o.width?o.width<(null!==(c=null===(l=t.cellMatrix.props)||void 0===l?void 0:l.minColumnWidth)&&void 0!==c?c:a.MIN_COLUMN_WIDTH)?null!==(u=null===(s=t.cellMatrix.props)||void 0===s?void 0:s.minColumnWidth)&&void 0!==u?u:a.MIN_COLUMN_WIDTH:o.width:a.DEFAULT_COLUMN_WIDTH;return e.push(f(f({},o),{idx:i,left:d,width:g,right:d+g})),t.cellMatrix.width+=g,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,s=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(s,u);t=b(b([],t,!0),e.getRangesToRender(d),!0),e.cellMatrix.spanCellLookup[c(r,o)]={range:d}}))}));var n=t.map((function(e){return c(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}(),ie=function(e,t,n){var o=e[t];if(null==o)throw new Error("Cell is missing property '".concat(String(t),"'"));if(typeof o!==n)throw new Error("Property '".concat(String(t),"' expected to be of type '").concat(n,"' but is '").concat(typeof o,"'"));return o},le=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t=ie(e,"checked","boolean"),n=t?e.checkedText?e.checkedText:"1":e.uncheckedText?e.uncheckedText:"";return f(f({},e),{checked:!!t,value:t?1:NaN,text:n})},e.prototype.handleKeyDown=function(e,t,n,o,r){return o||t!==R.SPACE&&t!==R.ENTER?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(this.toggleCheckboxCell(e)),enableEditMode:!1}},e.prototype.toggleCheckboxCell=function(e){return this.getCompatibleCell(f(f({},e),{checked:!e.checked}))},e.prototype.update=function(e,t){var n="checkbox"===t.type?t.checked:!!t.value;return this.getCompatibleCell(f(f({},e),{checked:n}))},e.prototype.getClassName=function(e){return e.className?e.className:""},e.prototype.render=function(e,t,n){var r=this;return o.createElement("label",null,o.createElement("input",{className:"rg-input",type:"checkbox",checked:e.checked,onChange:function(t){return n(r.toggleCheckboxCell(e),!0)}}),o.createElement("span",null))},e}(),ae=function(e){return e>=R.KEY_0&&e<=R.KEY_Z||se(e)||e>=R.MULTIPLY&&e<=R.DIVIDE||e>=R.SEMICOLON&&e<=R.SINGLE_QUOTE||e===R.SPACE},ce=function(e){return e>=R.KEY_0&&e<=R.KEY_9||se(e)},se=function(e){return e>=R.NUMPAD_0&&e<=R.NUMPAD_9},ue=function(e){return null!==e.match(/[\d.,+-]/)},de=function(e){return e===R.LEFT_ARROW||e===R.RIGHT_ARROW||e===R.UP_ARROW||e===R.DOWN_ARROW||e===R.END||e===R.HOME||e===R.BACKSPACE||e===R.DELETE},ge=function(e){return e>=R.F1&&e<=R.F12},pe=function(e,t){""!==t&&(t=he());var n="".concat(t&&"".concat(t," ")).concat(e);return Date.parse(n)},fe=function(e){return e.toString().padStart(2,"0")},he=function(){return S()||L()?"1970/01/01":"1970-01-01"},me=[];me[8]="",me[9]="",me[13]="\n",me[16]="",me[17]="",me[18]="",me[19]="",me[20]="",me[27]="",me[32]=" ",me[33]="",me[34]="",me[35]="",me[36]="",me[37]="",me[38]="",me[39]="",me[40]="",me[45]="",me[46]="",me[48]=")",me[49]="!",me[50]="@",me[51]="#",me[52]="$",me[53]="%",me[54]="^",me[55]="&",me[56]="*",me[57]="(",me[59]=":",me[61]="+",me[65]="A",me[66]="B",me[67]="C",me[68]="D",me[69]="E",me[70]="F",me[71]="G",me[72]="H",me[73]="I",me[74]="J",me[75]="K",me[76]="L",me[77]="M",me[78]="N",me[79]="O",me[80]="P",me[81]="Q",me[82]="R",me[83]="S",me[84]="T",me[85]="U",me[86]="V",me[87]="W",me[88]="X",me[89]="Y",me[90]="Z",me[91]="",me[92]="",me[93]="",me[96]="0",me[97]="1",me[98]="2",me[99]="3",me[100]="4",me[101]="5",me[102]="6",me[103]="7",me[104]="8",me[105]="9",me[106]="*",me[107]="+",me[109]="_",me[107]="+",me[111]="/",me[112]="",me[113]="",me[114]="",me[115]="",me[116]="",me[117]="",me[118]="",me[119]="",me[120]="",me[121]="",me[122]="",me[123]="",me[144]="",me[145]="",me[186]=":",me[187]="+",me[188]="<",me[189]="_",me[190]=">",me[191]="?",me[192]="~",me[219]="{",me[220]="|",me[221]="}",me[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 ve=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=navigator.language||"en-US";return t||n?e.toLocaleUpperCase(o):e.toLocaleLowerCase(o)},ye=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t=e.date?ie(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 f(f({},e),{date:t,value:o,text:r})},e.prototype.handleKeyDown=function(e,t,n,o,r,i,l){return ge(t)?t===R.F2?{cell:e,enableEditMode:!0}:{cell:e,enableEditMode:!1}:!n&&function(e){return null!==e.match(/^[a-zA-Z0-9]$/)}(ve(i))?{cell:this.getCompatibleCell(f({},e)),enableEditMode:!0}:{cell:e,enableEditMode:t===R.POINTER||t===R.ENTER}},e.prototype.update=function(e,t){return this.getCompatibleCell(f(f({},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 r=this;if(!t)return e.text;if(!e.date)return'"cell.date" is not initialized with a date value';var i=fe(e.date.getFullYear()),l=fe(e.date.getMonth()+1),a=fe(e.date.getDate());return o.createElement("input",{className:"rg-input",ref:function(e){e&&e.focus()},type:"date",defaultValue:"".concat(i,"-").concat(l,"-").concat(a),onChange:function(t){if(t.currentTarget.value){var o=t.currentTarget.value.split("-").map((function(e){return parseInt(e)})),i=o[0],l=o[1],a=o[2];n(r.getCompatibleCell(f(f({},e),{date:new Date(i,l-1,a)})),!1)}},onBlur:function(t){if(t.currentTarget.value){var o=t.currentTarget.value.split("-").map((function(e){return parseInt(e)})),i=o[0],l=o[1],a=o[2];n(r.getCompatibleCell(f(f({},e),{date:new Date(i,l-1,a)})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1}},onKeyDown:function(e){(ce(e.keyCode)||de(e.keyCode)||e.keyCode===R.COMMA||e.keyCode===R.PERIOD||(e.ctrlKey||e.metaKey)&&e.keyCode===R.KEY_A)&&e.stopPropagation(),ce(e.keyCode)||de(e.keyCode)||e.keyCode===R.COMMA||e.keyCode===R.PERIOD||e.preventDefault(),e.keyCode===R.ESCAPE&&(r.wasEscKeyPressed=!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()}})},e}(),Ie=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t=ie(e,"text","string"),n=parseFloat(t);return f(f({},e),{text:t,value:n})},e.prototype.handleKeyDown=function(e,t,n,o,r,i,l){if(ge(t))return t===R.F2?{cell:e,enableEditMode:!0}:{cell:e,enableEditMode:!1};var a=ve(i,o,l);return n||r||!ae(t)||o&&t===R.SPACE?{cell:e,enableEditMode:t===R.POINTER||t===R.ENTER}:{cell:f(f({},e),{text:a}),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(e,t){return{cell:f(f({},e),{text:t}),enableEditMode:!0}},e.prototype.update=function(e,t){return this.getCompatibleCell(f(f({},e),{text:t.text}))},e.prototype.getClassName=function(e,t){return!e.validator||e.validator(e.text)?"valid":"rg-invalid"},e.prototype.render=function(e,t,n){var r=this;if(!t){var i=e.validator&&!e.validator(e.text)&&e.errorMessage?e.errorMessage:e.text;return e.renderer?e.renderer(i):i}return o.createElement("input",{className:"rg-input",ref:function(e){e&&e.focus()},onChange:function(t){return n(r.getCompatibleCell(f(f({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){n(r.getCompatibleCell(f(f({},e),{text:t.currentTarget.value})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1},onKeyDown:function(e){(ae(e.keyCode)||de(e.keyCode))&&e.stopPropagation(),e.keyCode===R.ESCAPE&&(r.wasEscKeyPressed=!0)},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}(),xe=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t=ie(e,"text","string"),n=!1;try{n=ie(e,"isExpanded","boolean")}catch(e){n=!0}var o=-1;try{o=ie(e,"indent","number")}catch(e){o=0}var r=!1;try{r=ie(e,"hasChildren","boolean")}catch(e){r=!1}var i=parseFloat(t);return f(f({},e),{text:t,value:i,isExpanded:n,indent:o,hasChildren:r})},e.prototype.update=function(e,t){return this.getCompatibleCell(f(f({},e),{isExpanded:t.isExpanded,text:t.text}))},e.prototype.handleKeyDown=function(e,t,n,o,r,i,l){if(ge(t))return t===R.F2?{cell:e,enableEditMode:!0}:{cell:e,enableEditMode:!1};var a=t===R.POINTER||t===R.ENTER,c=f({},e),s=ve(i,o,l);return t!==R.SPACE||void 0===c.isExpanded||o?n||r||!ae(t)||o&&t===R.SPACE||(c.text=s,a=!0):c.isExpanded=!c.isExpanded,{cell:c,enableEditMode:a}},e.prototype.handleCompositionEnd=function(e,t){return{cell:f(f({},e),{text:t}),enableEditMode:!0}},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 r=this;return t?o.createElement("input",{className:"rg-input",ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:e.text,onChange:function(t){return n(r.getCompatibleCell(f(f({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){n(r.getCompatibleCell(f(f({},e),{text:t.currentTarget.value})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1},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)||de(e.keyCode))&&e.stopPropagation(),e.keyCode===R.ESCAPE&&(r.wasEscKeyPressed=!0)}}):o.createElement(o.Fragment,null,e.hasChildren?o.createElement("div",{className:"chevron",onPointerDown:function(t){t.stopPropagation(),n(r.getCompatibleCell(f(f({},e),{isExpanded:!e.isExpanded})),!0)}},o.createElement("span",{className:"icon"},"❯")):o.createElement("div",{className:"no-child"}),e.text)},e}(),we=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=ie(e,"text","string"),n=parseFloat(t);return f(f({},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}();function Ce(e,t){if(void 0===t&&(t=navigator.language||"en-US"),!e.trim())return NaN;var n=function(e){var t=Intl.NumberFormat(e).format(123456.789);return{thousandsSeparator:t.split("123")[1][0],decimalSeparator:t.split("123")[1][4]}}(t),o=n.thousandsSeparator,r=n.decimalSeparator,i=e.replace(/\u00A0/g," ").replace(new RegExp("[".concat(o,"\\s]"),"g"),"").replace(new RegExp("\\".concat(r),"g"),".").replace(/^(?!-)\D+|\D+$/g,"");return null===i||0===i.trim().length?NaN:Number(i)}var Re=function(){function e(){this.wasEscKeyPressed=!1,this.getTextFromCharCode=function(e){switch(e.charCodeAt(0)){case R.DASH:case R.FIREFOX_DASH:case R.SUBTRACT:return"-";case R.COMMA:return",";case R.PERIOD:case R.DECIMAL:return".";default:return e}}}return e.prototype.getCompatibleCell=function(e){var t;try{t=ie(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 f(f({},e),{value:o,text:r})},e.prototype.handleKeyDown=function(e,t,n,o,r,i,l){if(se(t)&&(t-=48),ge(t))return t===R.F2?{cell:e,enableEditMode:!0}:{cell:e,enableEditMode:!1};var a=ve(i);if(!n&&ue(a)){var c=Number(a);return Number.isNaN(c)&&ue(a)?{cell:f(f({},this.getCompatibleCell(f(f({},e),{value:c}))),{text:a}),enableEditMode:!0}:{cell:this.getCompatibleCell(f(f({},e),{value:c})),enableEditMode:!0}}return{cell:e,enableEditMode:t===R.POINTER||t===R.ENTER}},e.prototype.update=function(e,t){return this.getCompatibleCell(f(f({},e),{value:t.value}))},e.prototype.getClassName=function(e,t){var n,o,r=null===(o=null===(n=e.validator)||void 0===n?void 0:n.call(e,e.value))||void 0===o||o,i=e.className||"";return"".concat(r?"":"rg-invalid"," ").concat(i)},e.prototype.render=function(e,t,n){var r,i,l=this;if(!t)return null!==(i=null===(r=e.validator)||void 0===r?void 0:r.call(e,e.value))&&void 0!==i&&!i&&e.errorMessage?e.errorMessage:e.text;var a=e.format?e.format.resolvedOptions().locale:window.navigator.languages[0],c=new Intl.NumberFormat(a,{useGrouping:!1,maximumFractionDigits:20});return o.createElement("input",{className:"rg-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):c.format(e.value),onChange:function(t){return n(l.getCompatibleCell(f(f({},e),{value:Ce(t.currentTarget.value)})),!1)},onBlur:function(t){n(l.getCompatibleCell(f(f({},e),{value:Ce(t.currentTarget.value)})),!l.wasEscKeyPressed),l.wasEscKeyPressed=!1},onKeyDown:function(e){(ce(e.keyCode)||de(e.keyCode)||function(e){return e>=R.COMMA&&e<=R.PERIOD||e===R.DECIMAL||e===R.SUBTRACT||e===R.FIREFOX_DASH}(e.keyCode)||(e.ctrlKey||e.metaKey)&&e.keyCode===R.KEY_A)&&e.stopPropagation(),ce(e.keyCode)||de(e.keyCode)||ue(ve(e.key))||e.preventDefault(),e.keyCode===R.ESCAPE&&(l.wasEscKeyPressed=!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()}})},e}(),Ae=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t,n=ie(e,"text","string");try{t=ie(e,"placeholder","string")}catch(e){t=""}var o=parseFloat(n);return f(f({},e),{text:n,value:o,placeholder:t})},e.prototype.update=function(e,t){return this.getCompatibleCell(f(f({},e),{text:t.text,placeholder:t.placeholder}))},e.prototype.handleKeyDown=function(e,t,n,o,r,i,l){if(ge(t))return t===R.F2?{cell:e,enableEditMode:!0}:{cell:e,enableEditMode:!1};var a=ve(i,o,l);return n||r||!ae(t)||o&&t===R.SPACE?{cell:e,enableEditMode:t===R.POINTER||t===R.ENTER}:{cell:this.getCompatibleCell(f(f({},e),{text:a})),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(e,t){return{cell:f(f({},e),{text:t}),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":"rg-invalid"," ").concat(e.placeholder&&""===e.text?"placeholder":""," ").concat(o)},e.prototype.render=function(e,t,n){var r=this;if(!t){var i=!e.validator||e.validator(e.text),l=e.text||e.placeholder||"",a=!i&&e.errorMessage?e.errorMessage:l;return e.renderer?e.renderer(a):a}return o.createElement("input",{className:"rg-input",ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:e.text,onChange:function(t){return n(r.getCompatibleCell(f(f({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){n(r.getCompatibleCell(f(f({},e),{text:t.currentTarget.value})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1},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)||de(e.keyCode))&&e.stopPropagation(),e.keyCode===R.ESCAPE&&(r.wasEscKeyPressed=!0)}})},e}(),Ee=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=t.time?ie(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 f(f({},t),{time:n,value:r,text:i})},e.prototype.handleKeyDown=function(e,t,n,o,r,i){return ge(t)?t===R.F2?{cell:e,enableEditMode:!0}:{cell:e,enableEditMode:!1}:!n&&ue(ve(i))?{cell:this.getCompatibleCell(f({},e)),enableEditMode:!0}:{cell:e,enableEditMode:t===R.POINTER||t===R.ENTER}},e.prototype.update=function(e,t){var n=pe(t.text);return""===t.text||Number.isNaN(n)?this.getCompatibleCell(f(f({},e),{time:new Date(t.value)})):this.getCompatibleCell(f(f({},e),{time:new Date(n)}))},e.prototype.getClassName=function(e,t){return e.className?e.className:""},e.prototype.render=function(e,t,n){var r=this;if(!t)return e.text;if(!e.time)return'"cell.time" is not initialized with a time value';var i=fe(e.time.getHours()),l=fe(e.time.getMinutes());return o.createElement("input",{className:"rg-input",ref:function(e){e&&e.focus()},type:"time",defaultValue:"".concat(i,":").concat(l),onChange:function(t){var o=pe(t.currentTarget.value);Number.isNaN(o)||n(r.getCompatibleCell(f(f({},e),{time:new Date(o)})),!1)},onBlur:function(t){var o=pe(t.currentTarget.value);Number.isNaN(o)||(n(r.getCompatibleCell(f(f({},e),{time:new Date(o)})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1)},onKeyDown:function(e){(ce(e.keyCode)||de(e.keyCode)||e.keyCode===R.COMMA||e.keyCode===R.PERIOD||(e.ctrlKey||e.metaKey)&&e.keyCode===R.KEY_A)&&e.stopPropagation(),ce(e.keyCode)||de(e.keyCode)||e.keyCode===R.COMMA||e.keyCode===R.PERIOD||e.preventDefault(),e.keyCode===R.ESCAPE&&(r.wasEscKeyPressed=!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()}})},e.dayInMillis=864e5,e.defaultDate=he(),e}();function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Me(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Me(t)?t:t+""}function ke(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(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 Se(e,t){if(e){if("string"==typeof e)return Be(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)?Be(e,t):void 0}}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,l,a=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw r}}return a}}(e,t)||Se(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var We=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Xe(){return(Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Oe(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,Ge(o.key),o)}}function Fe(e,t){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ze(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ze=function(){return!!e})()}function He(e,t){if(t&&("object"===Me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Se(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 Ye=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|-ms-expand|-ms-reveal){/.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}(),ze="-ms-",Je="-webkit-",je="comm",Ue="rule",_e="decl",Qe="@keyframes",Ke=Math.abs,$e=String.fromCharCode,qe=Object.assign;function et(e){return e.trim()}function tt(e,t,n){return e.replace(t,n)}function nt(e,t){return e.indexOf(t)}function ot(e,t){return 0|e.charCodeAt(t)}function rt(e,t,n){return e.slice(t,n)}function it(e){return e.length}function lt(e){return e.length}function at(e,t){return t.push(e),e}var ct=1,st=1,ut=0,dt=0,gt=0,pt="";function ft(e,t,n,o,r,i,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:ct,column:st,length:l,return:""}}function ht(e,t){return qe(ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function mt(){return gt=dt<ut?ot(pt,dt++):0,st++,10===gt&&(st=1,ct++),gt}function bt(){return ot(pt,dt)}function vt(){return dt}function yt(e,t){return rt(pt,e,t)}function It(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 ct=st=1,ut=it(pt=e),dt=0,[]}function wt(e){return pt="",e}function Ct(e){return et(yt(dt-1,function e(t){for(;mt();)switch(gt){case t:return dt;case 34:case 39:34!==t&&39!==t&&e(gt);break;case 40:41===t&&e(t);break;case 92:mt()}return dt}(91===e?e+2:40===e?e+1:e)))}function Rt(e){for(;(gt=bt())&><33;)mt();return It(e)>2||It(gt)>3?"":" "}function At(e,t){for(;--t&&mt()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return yt(e,vt()+(t<6&&32==bt()&&32==mt()))}function Et(e,t){for(;mt()&&e+gt!==57&&(e+gt!==84||47!==bt()););return"/*"+yt(t,dt-1)+"*"+$e(47===e?e:mt())}function Mt(e){for(;!It(bt());)mt();return yt(e,dt)}function Gt(e){return wt(function e(t,n,o,r,i,l,a,c,s){for(var u=0,d=0,g=a,p=0,f=0,h=0,m=1,b=1,v=1,y=0,I="",x=i,w=l,C=r,R=I;b;)switch(h=y,y=mt()){case 40:if(108!=h&&58==ot(R,g-1)){-1!=nt(R+=tt(Ct(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:R+=Ct(y);break;case 9:case 10:case 13:case 32:R+=Rt(h);break;case 92:R+=At(vt()-1,7);continue;case 47:switch(bt()){case 42:case 47:at(Nt(Et(mt(),vt()),n,o),s);break;default:R+="/"}break;case 123*m:c[u++]=it(R)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+d:-1==v&&(R=tt(R,/\f/g,"")),f>0&&it(R)-g&&at(f>32?Tt(R+";",r,o,g-1):Tt(tt(R," ","")+";",r,o,g-2),s);break;case 59:R+=";";default:if(at(C=kt(R,n,o,u,d,i,c,I,x=[],w=[],g),l),123===y)if(0===d)e(R,n,C,C,x,l,g,c,w);else switch(99===p&&110===ot(R,3)?100:p){case 100:case 108:case 109:case 115:e(t,C,C,r&&at(kt(t,C,C,0,0,i,c,I,i,x=[],g),w),i,w,g,c,r?x:w);break;default:e(R,C,C,C,[""],w,0,c,w)}}u=d=f=0,m=v=1,I=R="",g=a;break;case 58:g=1+it(R),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(gt=dt>0?ot(pt,--dt):0,st--,10===gt&&(st=1,ct--),gt))continue;switch(R+=$e(y),y*m){case 38:v=d>0?1:(R+="\f",-1);break;case 44:c[u++]=(it(R)-1)*v,v=1;break;case 64:45===bt()&&(R+=Ct(mt())),p=bt(),d=g=it(I=R+=Mt(vt())),y++;break;case 45:45===h&&2==it(R)&&(m=0)}}return l}("",null,null,null,[""],e=xt(e),0,[0],e))}function kt(e,t,n,o,r,i,l,a,c,s,u){for(var d=r-1,g=0===r?i:[""],p=lt(g),f=0,h=0,m=0;f<o;++f)for(var b=0,v=rt(e,d+1,d=Ke(h=l[f])),y=e;b<p;++b)(y=et(h>0?g[b]+" "+v:tt(v,/&\f/g,g[b])))&&(c[m++]=y);return ft(e,t,n,0===r?Ue:a,c,s,u)}function Nt(e,t,n){return ft(e,t,n,je,$e(gt),rt(e,2,-2),0)}function Tt(e,t,n,o){return ft(e,t,n,_e,rt(e,0,o),rt(e,o+1,-1),o)}function Bt(e,t){for(var n="",o=lt(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function St(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _e:return e.return=e.return||e.value;case je:return"";case Qe:return e.return=e.value+"{"+Bt(e.children,o)+"}";case Ue:e.value=e.props.join(",")}return it(n=Bt(e.children,o))?e.return=e.value+"{"+n+"}":""}function Lt(e){var t=lt(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 Pt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Wt=function(e,t,n){for(var o=0,r=0;o=r,r=bt(),38===o&&12===r&&(t[n]=1),!It(r);)mt();return yt(e,dt)},Xt=new WeakMap,Ot=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)||Xt.get(n))&&!o){Xt.set(e,!0);for(var r=[],i=function(e,t){return wt(function(e,t){var n=-1,o=44;do{switch(It(o)){case 0:38===o&&12===bt()&&(t[n]=1),e[n]+=Wt(dt-1,t,n);break;case 2:e[n]+=Ct(o);break;case 4:if(44===o){e[++n]=58===bt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$e(o)}}while(o=mt());return e}(xt(e),t))}(t,r),l=n.props,a=0,c=0;a<i.length;a++)for(var s=0;s<l.length;s++,c++)e.props[c]=r[a]?i[a].replace(/&\f/g,l[s]):l[s]+" "+i[a]}}},Ft=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Vt=function(e){return"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},Zt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ht=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Dt=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."),Ht(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."),Ht(e)))};var Yt,zt,Jt="undefined"!=typeof document,jt=Jt?void 0:(Yt=function(){return Pt((function(){var e={};return function(t){return e[t]}}))},zt=new WeakMap,function(e){if(zt.has(e))return zt.get(e);var t=Yt();return zt.set(e,t),t}),Ut=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case _e:e.return=function e(t,n){switch(function(e,t){return 45^ot(e,0)?(((t<<2^ot(e,0))<<2^ot(e,1))<<2^ot(e,2))<<2^ot(e,3):0}(t,n)){case 5103:return Je+"print-"+t+t;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 Je+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+t+"-moz-"+t+ze+t+t;case 6828:case 4268:return Je+t+ze+t+t;case 6165:return Je+t+ze+"flex-"+t+t;case 5187:return Je+t+tt(t,/(\w+).+(:[^]+)/,Je+"box-$1$2"+ze+"flex-$1$2")+t;case 5443:return Je+t+ze+"flex-item-"+tt(t,/flex-|-self/,"")+t;case 4675:return Je+t+ze+"flex-line-pack"+tt(t,/align-content|flex-|-self/,"")+t;case 5548:return Je+t+ze+tt(t,"shrink","negative")+t;case 5292:return Je+t+ze+tt(t,"basis","preferred-size")+t;case 6060:return Je+"box-"+tt(t,"-grow","")+Je+t+ze+tt(t,"grow","positive")+t;case 4554:return Je+tt(t,/([^-])(transform)/g,"$1"+Je+"$2")+t;case 6187:return tt(tt(tt(t,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),t,"")+t;case 5495:case 3959:return tt(t,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return tt(tt(t,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+t+t;case 4095:case 3583:case 4068:case 2532:return tt(t,/(.+)-inline(.+)/,Je+"$1$2")+t;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(it(t)-1-n>6)switch(ot(t,n+1)){case 109:if(45!==ot(t,n+4))break;case 102:return tt(t,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1-moz-"+(108==ot(t,n+3)?"$3":"$2-$3"))+t;case 115:return~nt(t,"stretch")?e(tt(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==ot(t,n+1))break;case 6444:switch(ot(t,it(t)-3-(~nt(t,"!important")&&10))){case 107:return tt(t,":",":"+Je)+t;case 101:return tt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ot(t,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+ze+"$2box$3")+t}break;case 5936:switch(ot(t,n+11)){case 114:return Je+t+ze+tt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Je+t+ze+tt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Je+t+ze+tt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Je+t+ze+t+t}return t}(e.value,e.length);break;case Qe:return Bt([ht(e,{value:tt(e.value,"@","@"+Je)})],o);case Ue:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Bt([ht(e,{props:[tt(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Bt([ht(e,{props:[tt(t,/:(plac\w+)/,":"+Je+"input-$1")]}),ht(e,{props:[tt(t,/:(plac\w+)/,":-moz-$1")]}),ht(e,{props:[tt(t,/:(plac\w+)/,ze+"input-$1")]})],o)}return""}))}}],_t=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(Jt&&"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||Ut;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=[];Jt&&(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 c=[Ot,Ft];if(c.push(function(e){return function(t,n,o){if("rule"===t.type&&!e.compat){var r=t.value.match(/(:first|:nth|:nth-last)-child/g);if(r){for(var i=t.parent?t.parent.children:o,l=i.length-1;l>=0;l--){var a=i[l];if(a.line<t.line)break;if(a.column<t.column){if(Vt(a))return;break}}r.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 h.compat}}),Dt),Jt){var s,u=[St,function(e){e.root||(e.return?s.insert(e.return):e.value&&e.type!==je&&s.insert(e.value+"{}"))}],d=Lt(c.concat(o,u));i=function(e,t,n,o){s=n,void 0!==t.map&&(s={insert:function(e){n.insert(e+t.map)}}),Bt(Gt(e?e+"{"+t.styles+"}":t.styles),d),o&&(h.inserted[t.name]=!0)}}else{var g=[St],p=Lt(c.concat(o,g)),f=jt(o)(t);i=function(e,t,n,o){var r=t.name,i=function(e,t){var n=t.name;return void 0===f[n]&&(f[n]=Bt(Gt(e?e+"{"+t.styles+"}":t.styles),p)),f[n]}(e,t);return void 0===h.compat?(o&&(h.inserted[r]=!0),void 0!==t.map?i+t.map:i):o?void(h.inserted[r]=i):i}}var h={key:t,sheet:new Ye({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 h.sheet.hydrate(a),h};function Qt(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kt=Qt((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,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=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,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case s:case u:case r:case l:case i:case g:return p;default:var m=p&&p.$$typeof;switch(m){case c:case d:case h:case f:case a:return m;default:return t}}case o:return t}}}var x=s,w=u,C=c,R=a,A=n,E=d,M=r,G=h,k=f,N=o,T=l,B=i,S=g,L=!1;function P(e){return I(e)===u}t.AsyncMode=x,t.ConcurrentMode=w,t.ContextConsumer=C,t.ContextProvider=R,t.Element=A,t.ForwardRef=E,t.Fragment=M,t.Lazy=G,t.Memo=k,t.Portal=N,t.Profiler=T,t.StrictMode=B,t.Suspense=S,t.isAsyncMode=function(e){return L||(L=!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.")),P(e)||I(e)===s},t.isConcurrentMode=P,t.isContextConsumer=function(e){return I(e)===c},t.isContextProvider=function(e){return I(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return I(e)===d},t.isFragment=function(e){return I(e)===r},t.isLazy=function(e){return I(e)===h},t.isMemo=function(e){return I(e)===f},t.isPortal=function(e){return I(e)===o},t.isProfiler=function(e){return I(e)===l},t.isStrictMode=function(e){return I(e)===i},t.isSuspense=function(e){return I(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===l||e===i||e===g||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},t.typeOf=I}()})),$t=Qt((function(e){e.exports=Kt})),qt={};qt[$t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qt[$t.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var en="undefined"!=typeof document;function tn(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}var nn=function(e,t,n){var o=e.key+"-"+t.name;(!1===n||!1===en&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},on=function(e,t,n){nn(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r="",i=t;do{var l=e.insert(t===i?"."+o:"",i,e.sheet,!0);en||void 0===l||(r+=l),i=i.next}while(void 0!==i);if(!en&&0!==r.length)return r}},rn={animationIterationCount:1,aspectRatio: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},ln="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",an=/[A-Z]|^ms/g,cn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sn=function(e){return 45===e.charCodeAt(1)},un=function(e){return null!=e&&"boolean"!=typeof e},dn=Pt((function(e){return sn(e)?e:e.replace(an,"-$&").toLowerCase()})),gn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cn,(function(e,t,n){return wn={name:t,styles:n,next:wn},t}))}return 1===rn[e]||sn(e)||"number"!=typeof t||0===t?t:t+"px"},pn=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,fn=["normal","none","initial","inherit","unset"],hn=gn,mn=/^-ms-/,bn=/-(.)/g,vn={};gn=function(e,t){if("content"===e&&("string"!=typeof t||-1===fn.indexOf(t)&&!pn.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=hn(e,t);return""===n||sn(e)||-1===e.indexOf("-")||void 0!==vn[e]||(vn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(mn,"ms-").replace(bn,(function(e,t){return t.toUpperCase()}))+"?")),n};var yn="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function In(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===n.toString())throw new Error(yn);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return wn={name:n.name,styles:n.styles,next:wn},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)wn={name:o.name,styles:o.styles,next:wn},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+=In(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]+"}":un(l)&&(o+=dn(i)+":"+gn(i,l)+";");else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(yn);if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var a=In(e,t,l);switch(i){case"animation":case"animationName":o+=dn(i)+":"+a+";";break;default:"undefined"===i&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),o+=i+"{"+a+"}"}}else for(var c=0;c<l.length;c++)un(l[c])&&(o+=dn(i)+":"+gn(i,l[c])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var i=wn,l=n(e);return wn=i,In(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=[],c=n.replace(cn,(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,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var xn,wn,Cn=/label:\s*([^\s;\n{]+)\s*(;|$)/g;xn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Rn=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="";wn=void 0;var i,l=e[0];null==l||void 0===l.raw?(o=!1,r+=In(n,t,l)):(void 0===l[0]&&console.error(ln),r+=l[0]);for(var a=1;a<e.length;a++)r+=In(n,t,e[a]),o&&(void 0===l[a]&&console.error(ln),r+=l[a]);r=r.replace(xn,(function(e){return i=e,""})),Cn.lastIndex=0;for(var c,s="";null!==(c=Cn.exec(r));)s+="-"+c[1];return{name: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)+s,styles:r,map:i,next:wn,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=!!o.useInsertionEffect&&o.useInsertionEffect,Mn=An&&En||function(e){return e()},Gn=En||o.useLayoutEffect,kn="undefined"!=typeof document,Nn={}.hasOwnProperty,Tn=o.createContext("undefined"!=typeof HTMLElement?_t({key:"css"}):null);Tn.displayName="EmotionCacheContext",Tn.Provider;var Bn=function(e){return Object(o.forwardRef)((function(t,n){var r=Object(o.useContext)(Tn);return e(t,r,n)}))};kn||(Bn=function(e){return function(t){var n=Object(o.useContext)(Tn);return null===n?(n=_t({key:"css"}),o.createElement(Tn.Provider,{value:n},e(t,n))):e(t,n)}});var Sn=o.createContext({});Sn.displayName="EmotionThemeContext";var Ln=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?function(e){var t=e.split(".");return t[t.length-1]}(t[1]):void 0},Pn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Wn=function(e){return e.replace(/\$/g,"-")},Xn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Fn=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)Nn.call(t,o)&&(n[o]=t[o]);if(n[Xn]=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(Pn.has(o))break;if(/^[A-Z]/.test(o))return Wn(o)}}}((new Error).stack);r&&(n[On]=r)}return n},Vn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;nn(t,n,r);var i=Mn((function(){return on(t,n,r)}));if(!kn&&void 0!==i){for(var l,a=n.name,c=n.next;void 0!==c;)a+=" "+c.name,c=c.next;return o.createElement("style",((l={})["data-emotion"]=t.key+" "+a,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},Zn=Bn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Xn],l=[r],a="";"string"==typeof e.className?a=tn(t.registered,l,e.className):null!=e.className&&(a=e.className+" ");var c=Rn(l,void 0,o.useContext(Sn));if(-1===c.name.indexOf("-")){var s=e[On];s&&(c=Rn([c,"label:"+s+";"]))}a+=t.key+"-"+c.name;var u={};for(var d in e)Nn.call(e,d)&&"css"!==d&&d!==Xn&&d!==On&&(u[d]=e[d]);return u.ref=n,u.className=a,o.createElement(o.Fragment,null,o.createElement(Vn,{cache:t,serialized:c,isStringTag:"string"==typeof i}),o.createElement(i,u))}));Zn.displayName="EmotionCssPropInternal";var Hn=Zn,Dn=function(e,t){var n=arguments;if(null==t||!Nn.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Hn,i[1]=Fn(e,t);for(var l=2;l<r;l++)i[l]=n[l];return o.createElement.apply(null,i)},Yn=!1;function zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rn(t)}Bn((function(e,t){Yn||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Yn=!0);var n=e.styles,r=Rn([n],void 0,o.useContext(Sn));if(!kn){for(var i,l=r.name,a=r.styles,c=r.next;void 0!==c;)l+=" "+c.name,a+=c.styles,c=c.next;var s=!0===t.compat,u=t.insert("",{name:l,styles:a},t.sheet,s);return s?null:o.createElement("style",((i={})["data-emotion"]=t.key+"-global "+l,i.dangerouslySetInnerHTML={__html:u},i.nonce=t.sheet.nonce,i))}var d=o.useRef();return Gn((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),d.current=[n,o],function(){n.flush()}}),[t]),Gn((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&on(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null})).displayName="EmotionGlobal";var Jn=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},jn=function(e){var t,n=e.cache,r=e.serializedArr,i=Mn((function(){for(var e="",t=0;t<r.length;t++){var o=on(n,r[t],!1);kn||void 0===o||(e+=o)}if(!kn)return e}));return kn||0===i.length?null:o.createElement("style",((t={})["data-emotion"]=n.key+" "+r.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:i},t.nonce=n.sheet.nonce,t))};Bn((function(e,t){var n=!1,r=[],i=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var l=Rn(o,t.registered);return r.push(l),nn(t,l,!1),t.key+"-"+l.name},l={css:i,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(e,t,n){var o=[],r=tn(e,o,n);return o.length<2?n:r+t(o)}(t.registered,i,Jn(o))},theme:o.useContext(Sn)},a=e.children(l);return n=!0,o.createElement(o.Fragment,null,o.createElement(jn,{cache:t,serializedArr:r}),a)})).displayName="EmotionClassNames";var Un="undefined"!=typeof document,_n="undefined"!=typeof jest||"undefined"!=typeof vi;if(Un&&!_n){var Qn="undefined"!=typeof globalThis?globalThis:Un?window:e,Kn="__EMOTION_REACT_"+"11.11.4".split(".")[0]+"__";Qn[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."),Qn[Kn]=!0}const $n=Math.min,qn=Math.max,eo=Math.round,to=Math.floor,no=e=>({x:e,y:e});function oo(e){return lo(e)?(e.nodeName||"").toLowerCase():"#document"}function ro(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function io(e){var t;return null==(t=(lo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function lo(e){return e instanceof Node||e instanceof ro(e).Node}function ao(e){return e instanceof Element||e instanceof ro(e).Element}function co(e){return e instanceof HTMLElement||e instanceof ro(e).HTMLElement}function so(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ro(e).ShadowRoot)}function uo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=go(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function go(e){return ro(e).getComputedStyle(e)}function po(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=function e(t){const n=function(e){if("html"===oo(e))return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||io(e);return so(t)?t.host:t}(t);return function(e){return["html","body","#document"].includes(oo(e))}(n)?t.ownerDocument?t.ownerDocument.body:t.body:co(n)&&uo(n)?n:e(n)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),l=ro(r);return i?t.concat(l,l.visualViewport||[],uo(r)?r:[],l.frameElement&&n?po(l.frameElement):[]):t.concat(r,po(r,[],n))}function fo(e){return ao(e)?e:e.contextElement}function ho(e){const t=fo(e);if(!co(t))return no(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=go(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=co(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,a=eo(n)!==i||eo(o)!==l;return a&&(n=i,o=l),{width:n,height:o,$:a}}(t);let l=(i?eo(n.width):n.width)/o,a=(i?eo(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const mo=no(0);function bo(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=fo(e);let l=no(1);t&&(o?ao(o)&&(l=ho(o)):l=ho(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ro(e))&&t}(i,n,o)?function(e){const t=ro(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mo}(i):no(0);let c=(r.left+a.x)/l.x,s=(r.top+a.y)/l.y,u=r.width/l.x,d=r.height/l.y;if(i){const e=ro(i),t=o&&ao(o)?ro(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=ho(r),t=r.getBoundingClientRect(),o=go(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=i,s+=l,n=ro(r),r=n.frameElement}}return function(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}({width:u,height:d,x:c,y:s})}var vo="undefined"!=typeof document?o.useLayoutEffect:o.useEffect,yo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Io=function(){};function xo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function wo(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&i.push("".concat(xo(e,l)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Co=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Me(e)&&null!==e?[e]:[];var t},Ro=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Te({},Pe(e,yo))},Ao=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,l=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),l)}};function Eo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Mo(e){return Eo(e)?window.pageYOffset:e.scrollTop}function Go(e,t){Eo(e)?window.scrollTo(0,t):e.scrollTop=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]:Io,r=Mo(e),i=t-r,l=0;!function t(){var a,c=i*((a=(a=l+=10)/n-1)*a*a+1)+r;Go(e,c),l<n?window.requestAnimationFrame(t):o(e)}()}function No(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?Go(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&Go(e,Math.max(t.offsetTop-r,0))}function To(){try{return document.createEvent("TouchEvent"),!0}catch(A){return!1}}var Bo=!1,So={get passive(){return Bo=!0}},Lo="undefined"!=typeof window?window:{};Lo.addEventListener&&Lo.removeEventListener&&(Lo.addEventListener("p",Io,So),Lo.removeEventListener("p",Io,!1));var Po=Bo;function Wo(e){return null!=e}function Xo(e,t,n){return e?t:n}var Oo=["children","innerProps"],Fo=["children","innerProps"];var Vo,Zo,Ho,Do=function(e){return"auto"===e?"bottom":e},Yo=Object(o.createContext)(null),zo=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,l=e.menuPosition,a=e.menuShouldScrollIntoView,c=e.theme,s=(Object(o.useContext)(Yo)||{}).setPortalPlacement,u=Object(o.useRef)(null),d=Le(Object(o.useState)(r),2),g=d[0],p=d[1],f=Le(Object(o.useState)(null),2),h=f[0],m=f[1],b=c.spacing.controlHeight;return vo((function(){var e=u.current;if(e){var t="fixed"===l,o=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,l=e.isFixedPosition,a=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var u,d=c.getBoundingClientRect().height,g=n.getBoundingClientRect(),p=g.bottom,f=g.height,h=g.top,m=n.offsetParent.getBoundingClientRect().top,b=l||Eo(u=c)?window.innerHeight:u.clientHeight,v=Mo(c),y=parseInt(getComputedStyle(n).marginBottom,10),I=parseInt(getComputedStyle(n).marginTop,10),x=m-I,w=b-h,C=x+v,R=d-v-h,A=p-b+v+y,E=v+h-I,M=160;switch(r){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(R>=f&&!l)return i&&ko(c,A,M),{placement:"bottom",maxHeight:t};if(!l&&R>=o||l&&w>=o)return i&&ko(c,A,M),{placement:"bottom",maxHeight:l?w-y:R-y};if("auto"===r||l){var G=t,k=l?x:C;return k>=o&&(G=Math.min(k-y-a,t)),{placement:"top",maxHeight:G}}if("bottom"===r)return i&&Go(c,A),{placement:"bottom",maxHeight:t};break;case"top":if(x>=f)return{placement:"top",maxHeight:t};if(C>=f&&!l)return i&&ko(c,E,M),{placement:"top",maxHeight:t};if(!l&&C>=o||l&&x>=o){var N=t;return(!l&&C>=o||l&&x>=o)&&(N=l?x-I:C-I),i&&ko(c,E,M),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return s}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:b});p(o.maxHeight),m(o.placement),null==s||s(o.placement)}}),[r,i,l,a,n,s,b]),t({ref:u,placerProps:Te(Te({},e),{},{placement:h||Do(i),maxHeight:g})})},Jo=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return Te({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},jo=Jo,Uo=Jo,_o=["size"],Qo=["innerProps","isRtl","size"],Ko={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvb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gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",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)."}},$o=function(e){var t=e.size,n=Pe(e,_o);return Dn("svg",Xe({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ko},n))},qo=function(e){return Dn($o,Xe({size:20},e),Dn("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"}))},er=function(e){return Dn($o,Xe({size:20},e),Dn("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"}))},tr=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return Te({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},nr=tr,or=tr,rr=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_"}}}(Vo||(Zo=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ho||(Ho=Zo.slice(0)),Vo=Object.freeze(Object.defineProperties(Zo,{raw:{value:Object.freeze(Ho)}})))),ir=function(e){var t=e.delay,n=e.offset;return Dn("span",{css:zn({animation:"".concat(rr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},";label:LoadingDot;","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oa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VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},lr=["data"],ar=["innerRef","isDisabled","isHidden","inputClassName"],cr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sr={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Te({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cr)},ur=function(e){return Te({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},cr)},dr=function(e){var t=e.children,n=e.innerProps;return Dn("div",n,t)},gr={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Dn("div",Xe({},Ao(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Dn(qo,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return Dn("div",Xe({ref:r},Ao(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Dn("div",Xe({},Ao(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Dn(er,null))},DownChevron:er,CrossIcon:qo,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,l=e.headingProps,a=e.innerProps,c=e.label,s=e.theme,u=e.selectProps;return Dn("div",Xe({},Ao(e,"group",{group:!0}),a),Dn(i,Xe({},l,{selectProps:u,theme:s,getStyles:o,getClassNames:r,cx:n}),c),Dn("div",null,t))},GroupHeading:function(e){var t=Ro(e);t.data;var n=Pe(t,lr);return Dn("div",Xe({},Ao(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Dn("div",Xe({},Ao(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Dn("span",Xe({},t,Ao(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Ro(e),r=o.innerRef,i=o.isDisabled,l=o.isHidden,a=o.inputClassName,c=Pe(o,ar);return Dn("div",Xe({},Ao(e,"input",{"input-container":!0}),{"data-value":n||""}),Dn("input",Xe({className:t({input:!0},a),ref:r,style:ur(l),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=Pe(e,Qo);return Dn("div",Xe({},Ao(Te(Te({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Dn(ir,{delay:0,offset:n}),Dn(ir,{delay:160,offset:!0}),Dn(ir,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Dn("div",Xe({},Ao(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return Dn("div",Xe({},Ao(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,l=e.innerProps,a=e.menuPlacement,c=e.menuPosition,s=Object(o.useRef)(null),u=Object(o.useRef)(null),d=Le(Object(o.useState)(Do(a)),2),g=d[0],p=d[1],f=Object(o.useMemo)((function(){return{setPortalPlacement:p}}),[]),h=Le(Object(o.useState)(null),2),m=h[0],b=h[1],v=Object(o.useCallback)((function(){if(r){var e=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}}(r),t="fixed"===c?0:window.pageYOffset,n=e[g]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||b({offset:n,rect:e})}}),[r,c,g,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);vo((function(){v()}),[v]);var y=Object(o.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&s.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=fo(e),u=r||i?[...s?po(s):[],...po(t)]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=s&&a?function(e,t){let n,o=null;const r=io(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function l(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:s,top:u,width:d,height:g}=e.getBoundingClientRect();if(a||t(),!d||!g)return;const p={rootMargin:-to(u)+"px "+-to(r.clientWidth-(s+d))+"px "+-to(r.clientHeight-(u+g))+"px "+-to(s)+"px",threshold:qn(0,$n(1,c))||1};let f=!0;function h(e){const t=e[0].intersectionRatio;if(t!==c){if(!f)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}f=!1}try{o=new IntersectionObserver(h,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(h,p)}o.observe(e)}(!0),i}(s,n):null;let g,p=-1,f=null;l&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===s&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),s&&!c&&f.observe(s),f.observe(t));let h=c?bo(e):null;return c&&function t(){const o=bo(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n(),h=o,g=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(g)}}(r,s.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);vo((function(){y()}),[y]);var I=Object(o.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==c||!m)return null;var x=Dn("div",Xe({ref:I},Ao(Te(Te({},e),{},{offset:m.offset,position:c,rect:m.rect}),"menuPortal",{"menu-portal":!0}),l),n);return Dn(Yo.Provider,{value:f},t?Object(i.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=Pe(e,Fo);return Dn("div",Xe({},Ao(Te(Te({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=Pe(e,Oo);return Dn("div",Xe({},Ao(Te(Te({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,l=e.removeProps,a=e.selectProps,c=n.Container,s=n.Label,u=n.Remove;return Dn(c,{data:o,innerProps:Te(Te({},Ao(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:a},Dn(s,{data:o,innerProps:Te({},Ao(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Dn(u,{data:o,innerProps:Te(Te({},Ao(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:a}))},MultiValueContainer:dr,MultiValueLabel:dr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Dn("div",Xe({role:"button"},n),t||Dn(qo,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,l=e.innerProps;return Dn("div",Xe({},Ao(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Dn("div",Xe({},Ao(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Dn("div",Xe({},Ao(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Dn("div",Xe({},Ao(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return Dn("div",Xe({},Ao(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},pr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||pr(o)&&pr(r)))return!1;var o,r;return!0}for(var hr={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+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)."}},mr=function(e){return Dn("span",Xe({css:hr},e))},br={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".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.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,l=e.selectValue,a=e.isDisabled,c=e.isSelected,s=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(i," focused, ").concat(u(l,n),".");if("menu"===t&&s){var d=a?" disabled":"",g="".concat(c?" selected":"").concat(d);return"".concat(i).concat(g,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,l=e.isFocused,a=e.selectValue,c=e.selectProps,s=e.id,u=e.isAppleDevice,d=c.ariaLiveMessages,g=c.getOptionLabel,p=c.inputValue,f=c.isMulti,h=c.isOptionDisabled,m=c.isSearchable,b=c.menuIsOpen,v=c.options,y=c.screenReaderStatus,I=c.tabSelectsValue,x=c.isLoading,w=c["aria-label"],C=c["aria-live"],R=Object(o.useMemo)((function(){return Te(Te({},br),d||{})}),[d]),A=Object(o.useMemo)((function(){var e,n="";if(t&&R.onChange){var o=t.option,r=t.options,i=t.removedValue,l=t.removedValues,c=t.value,s=i||o||(e=c,Array.isArray(e)?null:e),u=s?g(s):"",d=r||l||void 0,p=d?d.map(g):[],f=Te({isDisabled:s&&h(s,a),label:u,labels:p},t);n=R.onChange(f)}return n}),[t,R,h,a,g]),E=Object(o.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&R.onFocus){var l={focused:t,label:g(t),isDisabled:h(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=R.onFocus(l)}return e}),[n,r,g,h,R,i,a,u]),M=Object(o.useMemo)((function(){var e="";if(b&&v.length&&!x&&R.onFilter){var t=y({count:i.length});e=R.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,b,R,v,y,x]),G="initial-input-focus"===(null==t?void 0:t.action),k=Object(o.useMemo)((function(){var e="";if(R.guidance){var t=r?"value":b?"menu":"input";e=R.guidance({"aria-label":w,context:t,isDisabled:n&&h(n,a),isMulti:f,isSearchable:m,tabSelectsValue:I,isInitialFocus:G})}return e}),[w,n,r,f,h,m,b,R,a,I,G]),N=Dn(o.Fragment,null,Dn("span",{id:"aria-selection"},A),Dn("span",{id:"aria-focused"},E),Dn("span",{id:"aria-results"},M),Dn("span",{id:"aria-guidance"},k));return Dn(o.Fragment,null,Dn(mr,{id:s},G&&N),Dn(mr,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!G&&N))},yr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ir=new RegExp("["+yr.map((function(e){return e.letters})).join("")+"]","g"),xr={},wr=0;wr<yr.length;wr++)for(var Cr=yr[wr],Rr=0;Rr<Cr.letters.length;Rr++)xr[Cr.letters[Rr]]=Cr.base;var Ar=function(e){return e.replace(Ir,(function(e){return xr[e]}))},Er=function(e,t){void 0===t&&(t=fr);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(Ar),Mr=function(e){return e.replace(/^\s+|\s+$/g,"")},Gr=function(e){return"".concat(e.label," ").concat(e.value)},kr=["innerRef"];function Nr(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=Le(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=Le(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(Pe(e,kr),"onExited","in","enter","exit","appear");return Dn("input",Xe({ref:t},n,{css:zn({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},";label:DummyInput;","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var Tr=["boxSizing","height","overflow","paddingRight","position"],Br={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Sr(e){e.preventDefault()}function Lr(e){e.stopPropagation()}function Pr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Wr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Xr=!("undefined"==typeof window||!window.document||!window.document.createElement),Or=0,Fr={capture:!1,passive:!1},Vr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Zr={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZ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xlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+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 Hr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,l=e.onTopLeave,a=Object(o.useRef)(!1),c=Object(o.useRef)(!1),s=Object(o.useRef)(0),u=Object(o.useRef)(null),d=Object(o.useCallback)((function(e,t){if(null!==u.current){var o=u.current,s=o.scrollTop,d=o.scrollHeight,g=o.clientHeight,p=u.current,f=t>0,h=d-g-s,m=!1;h>t&&a.current&&(r&&r(e),a.current=!1),f&&c.current&&(l&&l(e),c.current=!1),f&&t>h?(n&&!a.current&&n(e),p.scrollTop=d,m=!0,a.current=!0):!f&&-t>s&&(i&&!c.current&&i(e),p.scrollTop=0,m=!0,c.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,l]),g=Object(o.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=Object(o.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=Object(o.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=Object(o.useCallback)((function(e){if(e){var t=!!Po&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,g]),m=Object(o.useCallback)((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,g]);return Object(o.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=Object(o.useRef)({}),l=Object(o.useRef)(null),a=Object(o.useCallback)((function(e){if(Xr){var t=document.body,n=t&&t.style;if(r&&Tr.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Or<1){var o=parseInt(i.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,a=window.innerWidth-l+o||0;Object.keys(Br).forEach((function(e){var t=Br[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Wr()&&(t.addEventListener("touchmove",Sr,Fr),e&&(e.addEventListener("touchstart",Pr,Fr),e.addEventListener("touchmove",Lr,Fr))),Or+=1}}),[r]),c=Object(o.useCallback)((function(e){if(Xr){var t=document.body,n=t&&t.style;Or=Math.max(Or-1,0),r&&Or<1&&Tr.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Wr()&&(t.removeEventListener("touchmove",Sr,Fr),e&&(e.removeEventListener("touchstart",Pr,Fr),e.removeEventListener("touchmove",Lr,Fr)))}}),[r]);return Object(o.useEffect)((function(){if(t){var e=l.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){l.current=e}}({isEnabled:n});return Dn(o.Fragment,null,n&&Dn("div",{onClick:Vr,css:Zr}),t((function(e){i(e),l(e)})))}var Dr={name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",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)."}},Yr=function(e){var t=e.name,n=e.onFocus;return Dn("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Dr,value:"",onChange:function(){}})};function zr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Jr(){return zr(/^Mac/i)}var jr={clearIndicator:or,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,l=r.borderRadius;return Te({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:nr,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return Te({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return Te({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,l=r.colors;return Te(Te({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},sr),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,l=r.spacing.baseUnit;return Te({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*l})},loadingMessage:Uo,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,l=r.spacing,a=r.colors;return Te((ke(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),ke(n,"position","absolute"),ke(n,"width","100%"),ke(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return Te({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},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,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return Te({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return Te({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,l=e.isFocused;return Te({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:jo,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,l=i.spacing,a=i.colors;return Te({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?a.primary:o?a.primary25:"transparent",color:n?a.neutral20:r?a.neutral0:"inherit",padding:"".concat(2*l.baseUnit,"px ").concat(3*l.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return Te({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return Te({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Te({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Ur={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}},_r={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:To(),captureMenuScroll:!To(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Te({ignoreCase:!0,ignoreAccents:!0,stringify:Gr,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,l=n.trim,a=n.matchFrom,c=l?Mr(t):t,s=l?Mr(i(e)):i(e);return o&&(c=c.toLowerCase(),s=s.toLowerCase()),r&&(c=Er(c),s=Ar(s)),"start"===a?s.substr(0,c.length)===c:s.indexOf(c)>-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(A){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,unstyled:!1};function Qr(e,t,n,o){return{type:"option",data:t,isDisabled:ri(e,t,n),isSelected:ii(e,t,n),label:ni(e,t),value:oi(e,t),index:o}}function Kr(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Qr(e,n,t,o)})).filter((function(t){return ei(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Qr(e,n,t,o);return ei(e,i)?i:void 0})).filter(Wo)}function $r(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,De(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function qr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,De(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ei(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,l=t.label,a=t.value;return(!ai(e)||!i)&&li(e,{label:l,value:a,data:r},o)}var ti=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ni=function(e,t){return e.getOptionLabel(t)},oi=function(e,t){return e.getOptionValue(t)};function ri(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ii(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=oi(e,t);return n.some((function(t){return oi(e,t)===o}))}function li(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ai=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ci=1,si=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(c,o.Component);var t,n,r,i,l,a=(t=c,n=Ze(),function(){var e,o=Ve(t);if(n){var r=Ve(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return He(this,e)});function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Jr()||zr(/^iPhone/i)||zr(/^iPad/i)||Jr()&&navigator.maxTouchPoints>1,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,n,o){var r=t.props,i=r.closeMenuOnSelect,l=r.isMulti,a=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),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),c=t.isOptionDisabled(e,l);if(a){var s=t.getOptionValue(e);t.setValue(l.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(De(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=Xo(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(Xo(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=Xo(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return ti(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return qr(Kr(t.props,t.state.selectValue),t.getElementId("option"))},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 wo.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ni(t.props,e)},t.getOptionValue=function(e){return oi(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,r=jr[e](n,o);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getClassNames=function(e,n){var o,r;return null===(o=(r=t.props.classNames)[e])||void 0===o?void 0:o.call(r,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Te(Te({},gr),e.components);var e},t.buildCategorizedOptions=function(){return Kr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return $r(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Te({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){if(!e.defaultPrevented){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()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),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&&Eo(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=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),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){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ai(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,l=n.inputValue,a=n.isClearable,c=n.isDisabled,s=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,g=n.openMenuOnFocus,p=t.state,f=p.focusedOption,h=p.focusedValue,m=p.selectValue;if(!(c||"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||!s||!d||!f||g&&t.isOptionSelected(f,m))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(s){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:l}),t.onMenuClose()):a&&i&&t.clearValue();break;case" ":if(l)return;if(!s){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ci),t.state.selectValue=Co(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),r=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=o[r],t.state.focusedOptionId=ti(n,o[r])}return t}return r=c,i=[{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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&No(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(No(this.menuListRef,this.focusedOptionRef),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",prevInputValue:this.props.inputValue}),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],focusedOptionId:this.getFocusedOptionId(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,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ur):Te(Te({},Ur),this.props.theme):Ur}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,l=this.setValue,a=this.props,c=a.isMulti,s=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:c,isRtl:s,options:u,selectOption:i,selectProps:a,setValue:l,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 ri(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ii(this.props,e,t)}},{key:"filterOption",value:function(e,t){return li(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,r=e.inputId,i=e.inputValue,l=e.tabIndex,a=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,d=this.state,g=d.inputIsHidden,p=d.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),m=Te(Te(Te({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(u,Xe({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:a,type:"text",value:i},m)):o.createElement(Nr,Xe({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Io,onFocus:this.onInputFocus,disabled:t,tabIndex:l,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,l=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,d=u.controlShouldRenderValue,g=u.isDisabled,p=u.isMulti,f=u.inputValue,h=u.placeholder,m=this.state,b=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!d)return f?null:o.createElement(c,Xe({},s,{key:"placeholder",isDisabled:g,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return b.map((function(t,a){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,Xe({},s,{components:{Container:r,Label:i,Remove:l},isFocused:c,isDisabled:g,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var I=b[0];return o.createElement(a,Xe({},s,{data:I,isDisabled:g}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,l=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Xe({},t,{innerProps:a,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,l=this.state.isFocused;return e&&i?o.createElement(e,Xe({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:l})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,l=this.state.isFocused;return o.createElement(n,Xe({},r,{isDisabled:i,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Xe({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,l=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,d=this.commonProps,g=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,b=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,I=p.menuIsOpen,x=p.menuPlacement,w=p.menuPosition,C=p.menuPortalTarget,R=p.menuShouldBlockScroll,A=p.menuShouldScrollIntoView,E=p.noOptionsMessage,M=p.onMenuScrollToTop,G=p.onMenuScrollToBottom;if(!I)return null;var k,N=function(t,n){var r=t.type,i=t.data,l=t.isDisabled,a=t.isSelected,c=t.label,s=t.value,p=g===i,f=l?void 0:function(){return e.onOptionHover(i)},h=l?void 0:function(){return e.selectOption(i)},m="".concat(e.getElementId("option"),"-").concat(n),b={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return o.createElement(u,Xe({},d,{innerProps:b,data:i,isDisabled:l,isSelected:a,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,l=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),s="".concat(c,"-heading");return o.createElement(n,Xe({},d,{key:c,data:i,options:l,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return N(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return N(t,"".concat(t.index))}));else if(m){var T=b({inputValue:h});if(null===T)return null;k=o.createElement(c,d,T)}else{var B=E({inputValue:h});if(null===B)return null;k=o.createElement(s,d,B)}var S={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:w,menuShouldScrollIntoView:A},L=o.createElement(zo,Xe({},d,S),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return o.createElement(i,Xe({},d,S,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),o.createElement(Hr,{captureEnabled:f,onTopArrive:M,onBottomArrive:G,lockEnabled:R},(function(t){return o.createElement(l,Xe({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:c,focusedOption:g}),k)})))}));return C||"fixed"===w?o.createElement(a,Xe({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:w}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,l=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return o.createElement(Yr,{name:l,onFocus:this.onValueInputFocus});if(l&&!r){if(i){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:l,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:l,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:l,type:"hidden",value:""});return o.createElement("div",null,u)}var d=c[0]?this.getOptionValue(c[0]):"";return o.createElement("input",{name:l,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,l=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return o.createElement(vr,Xe({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:l,selectValue:a,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,l=this.props,a=l.className,c=l.id,s=l.isDisabled,u=l.menuIsOpen,d=this.state.isFocused,g=this.commonProps=this.getCommonProps();return o.createElement(r,Xe({},g,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),o.createElement(t,Xe({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:u}),o.createElement(i,Xe({},g,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,Xe({},g,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],l=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,l=t.isFocused,a=t.prevWasFocused,c=t.instancePrefix,s=e.options,u=e.value,d=e.menuIsOpen,g=e.inputValue,p=e.isMulti,f=Co(u),h={};if(n&&(u!==n.value||s!==n.options||d!==n.menuIsOpen||g!==n.inputValue)){var m=d?function(e,t){return $r(Kr(e,t))}(e,f):[],b=d?qr(Kr(e,f),"".concat(c,"-option")):[],v=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,f):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:f,focusedOption:y,focusedOptionId:ti(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var I=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},x=i,w=l&&a;return l&&!w&&(x={value:Xo(p,f,f[0]||null),options:f,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),Te(Te(Te({},h),I),{},{prevProps:e,ariaSelection:x,prevWasFocused:w})}}],i&&Oe(r.prototype,i),l&&Oe(r,l),Object.defineProperty(r,"prototype",{writable:!1}),c}();si.defaultProps=_r;var ui=Object(o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,l=e.defaultValue,a=void 0===l?null:l,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,d=e.onInputChange,g=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=Pe(e,We),m=Le(Object(o.useState)(void 0!==c?c:n),2),b=m[0],v=m[1],y=Le(Object(o.useState)(void 0!==s?s:i),2),I=y[0],x=y[1],w=Le(Object(o.useState)(void 0!==f?f:a),2),C=w[0],R=w[1],A=Object(o.useCallback)((function(e,t){"function"==typeof u&&u(e,t),R(e)}),[u]),E=Object(o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),M=Object(o.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),G=Object(o.useCallback)((function(){"function"==typeof g&&g(),x(!1)}),[g]),k=void 0!==c?c:b,N=void 0!==s?s:I,T=void 0!==f?f:C;return Te(Te({},h),{},{inputValue:k,menuIsOpen:N,onChange:A,onInputChange:E,onMenuClose:G,onMenuOpen:M,value:T})}(e);return o.createElement(si,Xe({ref:t},n))})),di=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t;try{t=ie(e,"selectedValue","string")}catch(e){t=void 0}var n,o,r=ie(e,"values","object"),i=t?parseFloat(t):NaN,l=!0;try{l=ie(e,"isDisabled","boolean")}catch(e){l=!1}try{n=ie(e,"inputValue","string")}catch(e){n=void 0}try{o=ie(e,"isOpen","boolean")}catch(e){o=!1}var a=t||"";return f(f({},e),{selectedValue:t,text:a,value:i,values:r,isDisabled:l,isOpen:o,inputValue:n})},e.prototype.update=function(e,t){var n=e.values.some((function(e){return e.value===t.text}))?t.text:void 0;return this.getCompatibleCell(f(f({},e),{selectedValue:n,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,i,l){if((t===R.SPACE||t===R.ENTER)&&!o)return{cell:this.getCompatibleCell(f(f({},e),{isOpen:!e.isOpen})),enableEditMode:!1};var a=ve(i,o,l);return n||r||!ae(t)||o&&t===R.SPACE?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(f(f({},e),{inputValue:a,isOpen:!e.isOpen})),enableEditMode:!1}},e.prototype.handleCompositionEnd=function(e,t){return{cell:f(f({},e),{inputValue:t,isOpen:!e.isOpen}),enableEditMode:!1}},e.prototype.render=function(e,t,n){var r=this;return o.createElement(gi,{onCellChanged:function(e){return n(r.getCompatibleCell(e),!0)},cell:e})},e}(),gi=function(e){var t=e.onCellChanged,n=e.cell,r=o.useRef(null),i=o.useState(n.inputValue),l=i[0],a=i[1],c=o.useMemo((function(){return n.values.find((function(e){return e.value===n.text}))}),[n.text,n.values]);return o.useEffect((function(){n.isOpen&&r.current&&(r.current.focus(),a(n.inputValue))}),[n.isOpen,n.inputValue]),o.createElement("div",{style:{width:"100%"},onPointerDown:function(e){return t(f(f({},n),{isOpen:!0}))}},o.createElement(ui,f({},n.inputValue&&{inputValue:l,defaultInputValue:l,onInputChange:function(e){return a(e)}},{isSearchable:!0,ref:r},void 0!==n.isOpen&&{menuIsOpen:n.isOpen},{onMenuClose:function(){return t(f(f({},n),{isOpen:!n.isOpen,inputValue:void 0}))},onMenuOpen:function(){return t(f(f({},n),{isOpen:!0}))},onChange:function(e){return t(f(f({},n),{selectedValue:e.value,isOpen:!1,inputValue:void 0}))},blurInputOnSelect:!0,defaultValue:c,value:void 0!==c?c:null,isDisabled:n.isDisabled,options:n.values,onKeyDown:function(e){if(e.stopPropagation(),"Escape"===e.key)return r.current.blur(),t(f(f({},n),{isOpen:!1,inputValue:void 0}))},components:{Option:pi,Menu:fi},styles:{container:function(e){var t;return f(f(f({},e),{width:"100%",height:"100%"}),null===(t=n.styles)||void 0===t?void 0:t.container)},control:function(e){var t;return f(f(f({},e),{border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none"}),null===(t=n.styles)||void 0===t?void 0:t.control)},indicatorsContainer:function(e){var t;return f(f(f({},e),{paddingTop:"0px"}),null===(t=n.styles)||void 0===t?void 0:t.indicatorsContainer)},dropdownIndicator:function(e){var t;return f(f(f({},e),{padding:"0px 4px"}),null===(t=n.styles)||void 0===t?void 0:t.dropdownIndicator)},singleValue:function(e){var t;return f(f(f({},e),{color:"inherit"}),null===(t=n.styles)||void 0===t?void 0:t.singleValue)},indicatorSeparator:function(e){var t;return f(f(f({},e),{marginTop:"4px",marginBottom:"4px"}),null===(t=n.styles)||void 0===t?void 0:t.indicatorSeparator)},input:function(e){var t;return f(f(f({},e),{padding:0}),null===(t=n.styles)||void 0===t?void 0:t.input)},valueContainer:function(e){var t;return f(f(f({},e),{padding:"0 8px"}),null===(t=n.styles)||void 0===t?void 0:t.valueContainer)}}})))},pi=function(e){var t=e.innerProps,n=e.label,r=e.isSelected,i=e.isFocused,l=e.isDisabled;return o.createElement("div",f({},t,{onPointerDown:function(e){return e.stopPropagation()},className:"rg-dropdown-option".concat(r?" selected":"").concat(i?" focused":"").concat(l?" disabled":"")}),n)},fi=function(e){var t=e.innerProps,n=e.children;return o.createElement("div",f({},t,{className:"rg-dropdown-menu",onPointerDown:function(e){return e.stopPropagation()}}),n)},hi={text:new Ae,number:new Re,header:new we,checkbox:new le,date:new ye,email:new Ie,time:new Ee,chevron:new xe,dropdown:new di};function mi(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=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}(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)}))})),f(f({},e),{selectionMode:"row",activeSelectedRangeIdx:i,selectedRanges:b([],r,!0),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=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}(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)}))})),f(f({},e),{selectionMode:"column",activeSelectedRangeIdx:i,selectedRanges:b([],r,!0),selectedIndexes:o.map((function(e){return e.idx})),selectedIds:o.map((function(e){return e.columnId}))})}(t):f(f({},t),{selectedRanges:b([],t.selectedRanges,!0).map((function(e){return t.cellMatrix.validateRange(e)}))})}function bi(e,t){return f(f({},t),{enableFillHandle:!!e.enableFillHandle,enableRangeSelection:!!e.enableRangeSelection,enableColumnSelection:!!e.enableColumnSelection,enableRowSelection:!!e.enableRowSelection})}var yi=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},Ii=function(e){return function(t){return function(n){return n(e,t)}}},xi=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},wi=function(e,t){var n;return e.highlights!==(null===(n=t.props)||void 0===n?void 0:n.highlights)};function Ci(e,t){return t.props!==e&&(t=f(f({},t),{props:e})),t}function Ri(e,t){var n=new re;return f(f({},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 Ai(e,t){return t.cellMatrix.columns.length>0&&t.focusedLocation&&!t.currentlyEditedCell&&(t=f(f({},t),{focusedLocation:t.cellMatrix.validateLocation(t.focusedLocation)})),t}function Ei(e,t){return t.visibleRange&&(t=q(t)),t}function Mi(e,t){return f(f({},t),{cellTemplates:f(f({},hi),e.customCellTemplates)})}function Gi(e,t){return f(f({},t),{enableGroupIdRender:!!e.enableGroupIdRender})}function ki(e,t){return f(f({},t),{disableVirtualScrolling:!!e.disableVirtualScrolling})}function Ni(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'),f(f({},t),{highlightLocations:r||[]})}function Ti(e,t){var n=e.initialFocusLocation,o=!!t.focusedLocation;if(n&&!t.focusedLocation)if(Si(t,n))console.error('Data inconsistency in ReactGrid "initialFocusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=k(t,r)}var i=t.focusedLocation;return!o&&i&&(t=y(t,i)),t}function Bi(e,t){var n=e.focusLocation,o=!!t.focusedLocation;if(n)if(Si(t,n))console.error('Data inconsistency in ReactGrid "focusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=k(t,r)}var i=t.focusedLocation;return!o&&i&&e.focusLocation&&t.selectedRanges.length<=1&&(t=y(t,i)),t}function Si(e,t){return!(void 0!==e.cellMatrix.columnIndexLookup[t.columnId]&&void 0!==e.cellMatrix.rowIndexLookup[t.rowId])}var Li=Object(o.createContext)({}),Pi=function(e){var t=e.children,n=e.state;return r.a.createElement(Li.Provider,{value:n},t)},Wi=function(){return r.a.useContext(Li)},Xi=function(e){var t,n,r,i,l,a,c,s,u,d,g,p,f,h,m=e.cellRenderer,b=Wi(),v=b.cellMatrix,y=function(e){return e.cellMatrix.ranges.stickyTopRange.height>0}(b),I=function(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)}(b),x=function(e){return e.cellMatrix.ranges.stickyLeftRange.width>0}(b),w=function(e){return!!(e.visibleRange&&e.visibleRange.width>0)}(b),C=function(e){return!!(e.cellMatrix.ranges.stickyBottomRange.height>0&&e.cellMatrix.rows.length>0)}(b),R=function(e){return!!(e.cellMatrix.ranges.stickyRightRange.width>0)}(b);if(!(y||I||x||w))return null;var A=void 0,E=b.visibleRange;I&&(A=v.scrollableRange.slice(E,"rows"));var M=v.ranges.stickyTopRange.height?-v.ranges.stickyBottomRange.height:0,G=v.ranges.stickyLeftRange.width?-v.ranges.stickyRightRange.width:0,k=v.ranges.stickyRightRange.width?-v.ranges.stickyLeftRange.width:0,N=v.ranges.stickyBottomRange.height?-v.ranges.stickyTopRange.height:0,T=0!==v.scrollableRange.rows.length?v.ranges.stickyTopRange.height:0,B=0!==v.scrollableRange.columns.length?v.ranges.stickyLeftRange.width:0,S=0!==v.scrollableRange.rows.length?v.ranges.stickyBottomRange.height:0,L=0!==v.scrollableRange.columns.length?v.ranges.stickyRightRange.width:0;return o.createElement(o.Fragment,null,o.createElement(na,{renderChildren:I&&w,className:"rg-pane-center-middle",style:{position:"relative",width:"calc(100% - ".concat(v.ranges.stickyLeftRange.width+v.ranges.stickyRightRange.width,"px)"),height:v.scrollableRange.height,marginLeft:G,marginRight:k,marginTop:M,marginBottom:N,order:4}},o.createElement(oa,{state:b,range:ca(A)(E),borders:{bottom:!C,right:!R,left:!x,top:!y},cellRenderer:m})),o.createElement(ia,{renderCondition:x,className:"shadow-left",zIndex:2,style:{width:v.ranges.stickyLeftRange.width,height:v.height,marginTop:-v.height,order:9}}),o.createElement(ia,{renderCondition:R,className:"shadow-right",zIndex:2,style:{width:v.ranges.stickyRightRange.width,height:v.height,marginLeft:-v.ranges.stickyRightRange.width,marginTop:y||C?-v.height:0,order:y||C?12:8}}),o.createElement(ia,{renderCondition:y,className:"shadow-top",zIndex:1,style:{width:(null===(t=b.props)||void 0===t?void 0:t.enableFullWidthHeader)?"calc(100%)":v.width,height:v.ranges.stickyTopRange.height,marginTop:-v.height,order:10}}),o.createElement(ia,{renderCondition:C,className:"shadow-bottom",zIndex:1,style:{width:(null===(n=b.props)||void 0===n?void 0:n.enableFullWidthHeader)?"calc(100%)":v.width,height:v.ranges.stickyBottomRange.height,marginTop:-v.ranges.stickyBottomRange.height,order:11}}),o.createElement(na,{renderChildren:w&&C,className:"rg-pane-bottom",style:{width:"calc(100% - ".concat(v.ranges.stickyLeftRange.width+v.ranges.stickyRightRange.width,"px)"),height:v.ranges.stickyBottomRange.height,marginLeft:G,marginRight:k,marginTop:T,order:7}},o.createElement(oa,{state:b,range:ca(v.ranges.stickyBottomRange)(E),borders:{top:!0,bottom:!0,right:!R,left:!x},cellRenderer:m})),o.createElement(na,{renderChildren:I&&R||!A,className:"rg-pane-right",style:{height:v.scrollableRange.height,width:v.width-v.ranges.stickyLeftRange.width-v.scrollableRange.width,marginTop:M,marginBottom:N,marginLeft:B,order:5}},o.createElement(oa,{state:b,range:sa(v.ranges.stickyRightRange)(A||v.ranges.stickyLeftRange),borders:{left:!0,top:!y,bottom:!C},cellRenderer:m})),o.createElement(na,{renderChildren:y&&w,className:"rg-pane-top",style:{width:"calc(100% - ".concat(v.ranges.stickyLeftRange.width+v.ranges.stickyRightRange.width,"px)"),height:v.ranges.stickyTopRange.height,marginBottom:S,marginLeft:G,marginRight:k,order:1,zIndex:(null!==(i=null===(r=b.props)||void 0===r?void 0:r.zIndexBase)&&void 0!==i?i:0)+1}},o.createElement(oa,{state:b,range:ca(v.ranges.stickyTopRange)(E),borders:{top:!0,right:!R,left:!x},cellRenderer:m})),o.createElement(na,{renderChildren:I&&x||!A,className:"rg-pane-left",style:{height:v.scrollableRange.height,width:v.width-v.scrollableRange.width-v.ranges.stickyRightRange.width,marginRight:L,marginBottom:N,marginTop:M,order:3,zIndex:(null!==(a=null===(l=b.props)||void 0===l?void 0:l.zIndexBase)&&void 0!==a?a:0)+1}},o.createElement(oa,{state:b,range:sa(v.ranges.stickyLeftRange)(A||v.ranges.stickyLeftRange),borders:{bottom:!C,top:!y,left:!0},cellRenderer:m})),o.createElement(na,{renderChildren:C&&R,className:"rg-pane-bottom rg-pane-right rg-pane-shadow shadow-bottom-right-corner",style:{height:v.ranges.stickyBottomRange.height,width:v.width-v.ranges.stickyLeftRange.width-v.scrollableRange.width,marginTop:T,marginLeft:B,order:8,zIndex:(null!==(s=null===(c=b.props)||void 0===c?void 0:c.zIndexBase)&&void 0!==s?s:0)+1}},o.createElement(oa,{state:b,range:sa(v.ranges.stickyRightRange)(v.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})),o.createElement(na,{renderChildren:C&&x,className:"rg-pane-bottom rg-pane-left rg-pane-shadow shadow-bottom-left-corner",style:{height:v.ranges.stickyBottomRange.height,width:v.width-v.ranges.stickyRightRange.width-v.scrollableRange.width,marginRight:L,marginTop:T,order:6,zIndex:(null!==(d=null===(u=b.props)||void 0===u?void 0:u.zIndexBase)&&void 0!==d?d:0)+2}},o.createElement(oa,{state:b,range:sa(v.ranges.stickyLeftRange)(v.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})),o.createElement(na,{renderChildren:y&&R,className:"rg-pane-top rg-pane-right rg-pane-shadow shadow-top-right-corner",style:{height:v.ranges.stickyTopRange.height,width:v.width-v.scrollableRange.width-v.ranges.stickyLeftRange.width,marginLeft:B,marginBottom:S,order:2,zIndex:(null!==(p=null===(g=b.props)||void 0===g?void 0:g.zIndexBase)&&void 0!==p?p:0)+2}},o.createElement(oa,{state:b,range:sa(v.ranges.stickyRightRange)(v.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})),o.createElement(na,{renderChildren:y&&x,className:"rg-pane-top rg-pane-left rg-pane-shadow shadow-top-left-corner",style:{height:v.ranges.stickyTopRange.height,width:v.width-v.scrollableRange.width-v.ranges.stickyRightRange.width,marginRight:L,marginBottom:S,order:0,zIndex:(null!==(h=null===(f=b.props)||void 0===f?void 0:f.zIndexBase)&&void 0!==h?h:0)+3}},o.createElement(oa,{state:b,range:sa(v.ranges.stickyLeftRange)(v.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})))},Oi=function(){var e=Wi(),t=e.linePosition,n=e.lineOrientation,r=e.cellMatrix,i="vertical"===n,l=Object.assign({},i?{left:t,height:r.height}:{top:t,width:r.width});return-1===t?null:o.createElement("div",{className:"rg-line ".concat(i?"rg-line-vertical":"rg-line-horizontal"),style:l})},Fi=function(){var e=Wi(),t=e.lineOrientation,n=e.shadowSize,o=e.shadowPosition,i=e.shadowCursor,l=e.cellMatrix,a="vertical"===t;return-1===o?null:r.a.createElement("div",{className:"rg-shadow",style:{cursor:i,top:a?0:o,left:a?o:0,width:a?n:l.width,height:a?l.height:n}})};function Vi(e){return e.selectedRanges[e.activeSelectedRangeIdx]}var Zi={type:"",text:"",value:NaN};function Hi(e,t,n){void 0===n&&(n=!1);var o=function(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}}}(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(),c=M(e,{row:t,column:n}).cell,s=c.text||" ";o.textContent=s,i=""===l?c.text:i+(l===t.rowId?"\t":"\n")+s,l=t.rowId,o.setAttribute("data-reactgrid",JSON.stringify(c)),o.style.color="initial",o.style.border="initial",o.style.fontSize="initial",o.style.backgroundColor="initial",function(e,t,n){n&&(e=G(e,t,Zi))}(e,{row:t,column:n},r)}))})),i}(e,0,t,i,n));return function(e,t){e.classList.add("rg-copy-container"),e.setAttribute("contenteditable","true"),e.style.position="fixed",e.style.top="50%",e.style.left="50%",e.appendChild(t)}(r,i),{div:r,text:l}}function Di(e,t,n){return M(e,t).cell.groupId===n.groupId?G(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 Yi(e,t){var n,o,r=Vi(e);if(1!==t.length||1!==t[0].length){var i,l=e.cellMatrix;if(t.forEach((function(t,n){return t.forEach((function(t,o){var a=r.first.row.idx+n,c=r.first.column.idx+o;a<=l.last.row.idx&&c<=l.last.column.idx&&(i=l.getLocation(a,c),e=Di(e,i,t))}))})),!i)return e;var a=l.getRange(r.first,i);return(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.onSelectionChanging)&&!e.props.onSelectionChanging([a])?e:((null===(o=null==e?void 0:e.props)||void 0===o?void 0:o.onSelectionChanged)&&e.props.onSelectionChanged([a]),f(f({},e),{selectedRanges:[l.getRange(r.first,i)],activeSelectedRangeIdx:0}))}return r.rows.forEach((function(n){return r.columns.forEach((function(o){e=Di(e,v(n,o),t[0][0])}))})),e}function zi(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}}))}))}))}function Ji(){return h(this,void 0,void 0,(function(){return m(this,(function(e){switch(e.label){case 0:return[4,navigator.clipboard.readText().catch((function(){throw new Error("Failed to read textual data from clipboard!")}))];case 1:return[2,e.sent().split("\n").map((function(e){return e.split("\t").map((function(e){return{type:"text",text:e,value:Ce(e)}}))}))]}}))}))}function ji(e){return h(this,void 0,void 0,(function(){var t;return m(this,(function(n){switch(n.label){case 0:return[4,e.getType("text/html").catch((function(){throw new Error("Failed to get HTML Blob data from clipboard!")}))];case 1:return[4,n.sent().text().catch((function(){throw new Error("Failed to parse HTML Blob to text!")}))];case 2:t=n.sent();try{return[2,(new DOMParser).parseFromString(t,"text/html")]}catch(e){throw new Error("Failed to parse HTML string to DOM!")}return[2]}}))}))}function Ui(e){var t,n;return h(this,void 0,void 0,(function(){var o,r,i,l,a,c,s,u;return m(this,(function(d){switch(d.label){case 0:return o=[],(null===(t=e.firstElementChild)||void 0===t?void 0:t.firstElementChild)?[3,2]:[4,Ji()];case 1:return[2,d.sent()];case 2:for(r=e.firstElementChild.firstElementChild.children,i=0;i<r.length;i++){for(l=[],a=0;a<r[i].children.length;a++)c=r[i].children[a].getAttribute("data-reactgrid"),s=c&&JSON.parse(c),u=null!==(n=r[i].children[a].textContent)&&void 0!==n?n:"",l.push(s||{type:"text",text:u,value:Ce(u)});o.push(l)}return[2,o]}}))}))}var _i=function(){var e=o.useRef(null),t=Wi(),n=t.contextMenuPosition,r=t.selectedIds,i=t.selectionMode,l=n.left,a=n.top;if(-1!==a&&-1!==l&&e.current){var c=window.innerWidth,s=window.innerHeight,u=e.current.offsetWidth,d=e.current.offsetHeight;n.top=s-a<d?s-d-20:a,n.left=c-l<u?c-u-20:l}var g,p,b,v,y=function(e){var t=Zl(e);return[{id:"copy",label:t.copyLabel,handler:function(){return Qi(e,!1)}},{id:"cut",label:t.cutLabel,handler:function(){return Qi(e,!0)}},{id:"paste",label:t.pasteLabel,handler:function(){return function(e){var t=S()||L();if(Ol()||t){var n=Zl(e),o=n.appleMobileDeviceContextMenuPasteAlert,r=n.otherBrowsersContextMenuPasteAlert,i=n.actionNotSupported;alert("".concat(i," ").concat(t?o:r))}else h(void 0,void 0,void 0,(function(){var e,t,n,o,r;return m(this,(function(i){switch(i.label){case 0:return[4,navigator.clipboard.read()];case 1:return e=i.sent(),(t=e.find((function(e){return e.types.includes("text/html")})))?[4,ji(t)]:[3,3];case 2:return o=i.sent(),[3,4];case 3:o=null,i.label=4;case 4:return"reactgrid-content"===(null===(r=null==(n=o)?void 0:n.body.firstElementChild)||void 0===r?void 0:r.getAttribute("data-reactgrid"))?[2,Ui(n.body)]:[4,Ji()];case 5:return[2,i.sent()]}}))})).then((function(t){e.update((function(e){return Yi(e,t)}))}))}(e)}}]}(t),I=(g=y,null!==(v=null===(b=null===(p=t.props)||void 0===p?void 0:p.onContextMenu)||void 0===b?void 0:b.call(p,"row"===t.selectionMode?t.selectedIds:[],"column"===t.selectionMode?t.selectedIds:[],t.selectionMode,g,zi(t)))&&void 0!==v?v:[]);return I.length>=0&&(y=I),o.createElement("div",{ref:e,className:"rg-context-menu",style:{visibility:-1===a&&-1===l?"hidden":"visible",top:n.top+"px",left:n.left+"px"}},y.map((function(e,n){var l=e.handler,a=e.id,c=e.label;return o.createElement("div",{key:n,className:"rg-context-menu-option",onPointerDown:function(e){return e.stopPropagation()},onClick:function(){l("row"===i?r:[],"column"===i?r:[],i,zi(t)),t.update((function(e){return f(f(f({},e),{contextMenuPosition:{top:-1,left:-1}}),("copy"===a||"cut"===a)&&{copyRange:Vi(e)})}))}},c)})))};function Qi(e,t){void 0===t&&(t=!1),function(e,t){var n;void 0===t&&(t=!1);var o=Vi(e);if(o){var r=Hi(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 Ki=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 ua(e(t.state),t.state,t.props,t.updateState)},t.pointerEventsController=new $(t.stateUpdater),t.eventHandlers=new oe(t.stateUpdater,t.pointerEventsController),t.cellMatrixBuilder=new re,t.state=f(f({update:t.stateUpdater},El),{currentBehavior:new Al,cellMatrix:t.cellMatrixBuilder.setProps(t.props).fillRowsAndCols().setRangesToRenderLookup().fillSticky().fillScrollableRange().setEdgeLocations().getCellMatrix()}),t.clearSelections=function(){t.setState((function(e){return 0===e.selectedIds.length&&0===e.selectedIndexes.length&&0===e.selectedRanges.length?null:{selectedIds:[],selectedIndexes:[],selectedRanges:[]}}))},t}return p(t,e),t.getDerivedStateFromProps=function(e,t){try{return function(e,t){var n=Ii(e);wi(e,t)&&(t=n(t)(Ni)),t=n(t)(Ci),t=n(t)(Mi),t=n(t)(Gi);var o=xi(e,t);return t=n(t)(ne),t=n(t)(ki),o&&(t=n(t)(Ri)),t=n(t)(mi),t=n(t)(Ai),o&&(t=n(t)(Ei)),t=n(t)(Ti),yi(e,t)&&(t=n(t)(Bi)),n(t)(bi)}(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)),function(e,t,n){var o=n.focusedLocation;if(o){var r=!(s(o,t.focusedLocation)||n.currentBehavior instanceof D),i=void 0!==n.currentlyEditedCell&&n.currentlyEditedCell!==t.currentlyEditedCell;if(r||i){var l=U(n,o),a=l.left;z(n,l.top,a)}}}(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),this.setState({contextMenuPosition:{top:-1,left:-1}})},t.prototype.render=function(){var e=this.state,t=this.eventHandlers;return e.legacyBrowserMode?o.createElement(Pi,{state:e},o.createElement(Hl,{eventHandlers:t})):o.createElement(Pi,{state:e},o.createElement(Fl,{eventHandlers:t},o.createElement(Xi,{cellRenderer:Jl}),o.createElement(Oi,null),o.createElement(Fi,null),o.createElement(_i,null),e.currentlyEditedCell&&o.createElement(Nl,null)))},t}(o.Component),$i=function(e){return function(t,n,o,r){return e(o,o.cellMatrix.getLocation(n,t),!0,r)}}(k),qi=function(e){return function(t){if(t.focusedLocation){var n=cl(t,t.focusedLocation.row.idx,0);if(!n){var o=t.cellMatrix.getLocation(t.focusedLocation.row.idx,0),r=ul(t,o);return r?e(r.column.idx,r.row.idx,t):t}return e(n.column.idx,n.row.idx,t)}return t}}($i),el=function(e){return function(t){if(t.focusedLocation){var n=cl(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=sl(t,o);return r?e(r.column.idx,r.row.idx,t):t}return e(n.column.idx,n.row.idx,t)}return t}}($i),tl=function(e){return function(t){var n=sl(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}($i),nl=function(e){return function(t,n){var o=ul(t,t.focusedLocation);return o?e(o.column.idx,o.row.idx,t,n):t}}($i),ol=function(e){return function(t){var n=dl(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}($i),rl=function(e){return function(t,n){var o=gl(t,t.focusedLocation);return o?e(o.column.idx,o.row.idx,t,n):t}}($i),il=function(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)}}}($i),ll=il((function(e,t){var n,o=pl(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),r=e.cellMatrix.ranges.stickyTopRange.rows.length>0,i=r&&j(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,c=l&&t.row.idx===e.cellMatrix.scrollableRange.first.row.idx,s=e.cellMatrix.ranges.stickyBottomRange.rows.length>0,u=s&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=s&&(null==t?void 0:t.row.idx)===(null===(n=e.cellMatrix.ranges)||void 0===n?void 0:n.stickyBottomRange.first.row.idx),g=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height<o})),p=0;if(u?p=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?p=t.row.idx-g.length<e.cellMatrix.scrollableRange.first.row.idx?e.cellMatrix.scrollableRange.first.row.idx:t.row.idx-g.length:c?p=r?e.cellMatrix.ranges.stickyTopRange.last.row.idx:e.cellMatrix.scrollableRange.first.row.idx:i&&(p=e.cellMatrix.ranges.stickyTopRange.first.row.idx),!cl(e,p,t.column.idx)){var f=e.cellMatrix.getLocation(p,t.column.idx),h=gl(e,f);return h?h.row.idx:t.row.idx}return p})),al=il((function(e,t){var n,o=e.cellMatrix.ranges.stickyTopRange.rows.length>0,r=o&&j(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,c=l&&t.row.idx===e.cellMatrix.scrollableRange.last.row.idx,s=e.cellMatrix.ranges.stickyBottomRange.rows.length>0,u=s&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=pl(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),g=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height<d})),p=0;if(r?p=r&&!i?e.cellMatrix.ranges.stickyTopRange.last.row.idx:l?e.cellMatrix.scrollableRange.first.row.idx:s?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:e.cellMatrix.ranges.stickyTopRange.last.row.idx:a?p=t.row.idx+g.length<e.cellMatrix.scrollableRange.rows.length?t.row.idx+g.length:e.cellMatrix.scrollableRange.last.row.idx:c?p=s?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:e.cellMatrix.scrollableRange.last.row.idx:u&&(p=e.cellMatrix.ranges.stickyBottomRange.last.row.idx),!cl(e,p,t.column.idx)){var f=e.cellMatrix.getLocation(p,t.column.idx),h=dl(e,f);return h?h.row.idx:t.row.idx}return p}));function cl(e,t,n){var o=e.cellMatrix.getLocation(t,n),r=M(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,c={rowId:o.row.rowId,columnId:o.column.columnId},s=!a||a(c);return l.isFocusable&&!l.isFocusable(i)||!s?void 0:o}function sl(e,t){if(t)for(var n=t.column.idx-1;n>=e.cellMatrix.first.column.idx;--n){var o=cl(e,t.row.idx,n);if(o)return o}}function ul(e,t){if(t)for(var n=t.column.idx+1;n<=e.cellMatrix.last.column.idx;++n){var o=cl(e,t.row.idx,n);if(o)return o}}function dl(e,t){if(t)for(var n=t.row.idx-1;n>=e.cellMatrix.first.row.idx;--n){var o=cl(e,n,t.column.idx);if(o)return o}}function gl(e,t){if(t)for(var n=t.row.idx+1;n<=e.cellMatrix.last.row.idx;++n){var o=cl(e,n,t.column.idx);if(o)return o}}function pl(e,t){return J(e,t)}function fl(e,t){var n=function(e,t){var n,o,r,i,l,a,c,u,d,g,p,h,m,b,v,I,x,w,C=e.focusedLocation;if(!C)return e;var A=null!==(n=Vi(e))&&void 0!==n?n:e.cellMatrix.getRange(C,C);if(t.ctrlKey&&B()&&t.keyCode===R.SPACE)return bl(e,A.first.column.idx,A.last.column.idx,0,e.cellMatrix.last.row.idx);var E=1===e.selectedRanges.length&&s(A.first,A.last),N=function(e,t){var n=e.focusedLocation;if(!n)return e;var o=M(e,n),r=o.cell,i=o.cellTemplate;if(i.handleKeyDown&&!e.currentlyEditedCell){var l=i.handleKeyDown(r,t.keyCode,la(t),t.shiftKey,t.altKey,t.key,t.getModifierState("CapsLock")),a=l.cell,c=l.enableEditMode;if(JSON.stringify(a)!==JSON.stringify(r)||c)return c&&!r.nonEditable?f(f({},e),{currentlyEditedCell:a}):G(e,n,a)}return e}(e,t);if(N!==e){if(!E&&t.keyCode===R.ENTER){var T=t.shiftKey?"up":(null===(o=e.props)||void 0===o?void 0:o.moveRightOnEnter)?"right":"down";return null===(r=e.hiddenFocusElement)||void 0===r||r.focus(),hl(e,T,A,C)}return N}if(t.altKey)return e;if(la(t)&&t.shiftKey)switch(t.keyCode){case R.HOME:return bl(e,A.first.column.idx,A.last.column.idx,0,A.last.row.idx);case R.END:return bl(e,A.first.column.idx,A.last.column.idx,A.first.row.idx,e.cellMatrix.last.row.idx)}else if(la(t)){var S=e.cellMatrix;switch(t.keyCode){case R.KEY_A:if(1===e.selectedRanges.length&&s(e.selectedRanges[0].first,S.first)&&s(e.selectedRanges[0].last,S.last))return y(e,C);var L=S.getRange(S.first,S.last);return(null===(i=e.props)||void 0===i?void 0:i.onSelectionChanging)&&!e.props.onSelectionChanging([L])?e:f(f({},e),{selectedRanges:[L],selectionMode:"range",activeSelectedRangeIdx:0});case R.HOME:return k(e,e.cellMatrix.first);case R.END:return k(e,e.cellMatrix.last);case R.SPACE:return bl(e,A.first.column.idx,A.last.column.idx,0,e.cellMatrix.last.row.idx)}}else if(t.shiftKey)switch(t.keyCode){case R.UP_ARROW:return function(e,t,n){return t.first.row.idx>=0?t.last.row.idx>n.row.idx?bl(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"):bl(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,A,C);case R.DOWN_ARROW:return function(e,t,n){return t.last.row.idx<=e.cellMatrix.last.row.idx?t.first.row.idx<n.row.idx?bl(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"):bl(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,A,C);case R.LEFT_ARROW:return function(e,t,n){return t.first.column.idx>=0?t.last.column.idx>n.column.idx?bl(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"):bl(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,A,C);case R.RIGHT_ARROW:return function(e,t,n){return t.last.column.idx<=e.cellMatrix.last.column.idx?t.first.column.idx<n.column.idx?bl(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"):bl(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,A,C);case R.TAB:return t.preventDefault(),E?tl(e):hl(e,"left",A,C);case R.ENTER:return null===(l=e.hiddenFocusElement)||void 0===l||l.focus(),E?ol(e):hl(e,"up",A,C);case R.SPACE:return bl(e,0,e.cellMatrix.last.column.idx,A.first.row.idx,A.last.row.idx);case R.HOME:return bl(e,0,A.last.column.idx,A.first.row.idx,A.last.row.idx);case R.END:return bl(e,A.first.column.idx,e.cellMatrix.last.column.idx,A.first.row.idx,A.last.row.idx);case R.PAGE_UP:return function(e,t,n){var o=ml(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,c=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,s=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,g=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?bl(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:c?e.cellMatrix.ranges.stickyTopRange.first.row.idx:t.last.row.idx-g.length>e.cellMatrix.scrollableRange.first.row.idx?t.last.row.idx-g.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):bl(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:s?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-g.length>e.cellMatrix.scrollableRange.first.row.idx?t.first.row.idx-g.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):e}(e,A,C);case R.PAGE_DOWN:return function(e,t,n){var o=ml(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,c=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.scrollableRange.last.row.idx,s=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,g=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?bl(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:s?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:d?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:t.first.row.idx+g.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:t.first.row.idx+g.length,"vertical"):bl(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:c?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:r?e.cellMatrix.ranges.stickyTopRange.last.row.idx:t.last.row.idx+g.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:t.last.row.idx+g.length,"vertical"):e}(e,A,C)}else switch(t.keyCode){case R.DELETE:case R.BACKSPACE:return null===(a=e.hiddenFocusElement)||void 0===a||a.focus(),function(e){return e.selectedRanges.forEach((function(t){return t.rows.forEach((function(n){return t.columns.forEach((function(t){return e=G(e,{row:n,column:t},Zi)}))}))})),e}(e);case R.UP_ARROW:return null===(c=e.hiddenFocusElement)||void 0===c||c.focus(),ol(e);case R.DOWN_ARROW:return null===(u=e.hiddenFocusElement)||void 0===u||u.focus(),rl(e);case R.LEFT_ARROW:return null===(d=e.hiddenFocusElement)||void 0===d||d.focus(),tl(e);case R.RIGHT_ARROW:return null===(g=e.hiddenFocusElement)||void 0===g||g.focus(),nl(e);case R.TAB:return null===(p=e.hiddenFocusElement)||void 0===p||p.focus(),t.preventDefault(),E?nl(e):hl(e,"right",A,C);case R.HOME:return null===(h=e.hiddenFocusElement)||void 0===h||h.focus(),qi(e);case R.END:return null===(m=e.hiddenFocusElement)||void 0===m||m.focus(),el(e);case R.PAGE_UP:return null===(b=e.hiddenFocusElement)||void 0===b||b.focus(),ll(e);case R.PAGE_DOWN:return null===(v=e.hiddenFocusElement)||void 0===v||v.focus(),al(e);case R.ENTER:var P=(null===(I=e.props)||void 0===I?void 0:I.moveRightOnEnter)?f(f({},nl(e,t.keyCode)),{currentlyEditedCell:void 0}):f(f({},rl(e,t.keyCode)),{currentlyEditedCell:void 0});return null===(x=e.hiddenFocusElement)||void 0===x||x.focus(),E?P:hl(e,"right",A,C);case R.ESCAPE:return t.preventDefault(),null===(w=e.hiddenFocusElement)||void 0===w||w.focus(),e.currentlyEditedCell?f(f({},e),{currentlyEditedCell:void 0}):e}return e}(e,t);return n!==e&&(t.stopPropagation(),t.preventDefault()),n}function hl(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,c="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),s=(c+a)%(n.rows.length*n.columns.length),u=s<0&&0===c||1===l&&1===i&&-1===a,d=0===s&&c===n.rows.length*n.columns.length-1&&(l>=3&&i>=1||l>=1&&i>=3)||0===s&&c===n.rows.length*n.columns.length-1&&(2===l&&i>=1||l>=1&&2===i)&&1===a||s<0&&0===c||1===l&&1===i&&1===a;if(u){var g=0===r?e.selectedRanges.length-1:(r-1)%e.selectedRanges.length,p=e.selectedRanges[g];return e=k(e,v(p.last.row,p.last.column),!1),f(f({},e),{activeSelectedRangeIdx:g})}if(d)return g=(r+1)%e.selectedRanges.length,p=e.selectedRanges[g],e=k(e,v(p.first.row,p.first.column),!1),f(f({},e),{activeSelectedRangeIdx:g});var h="up"===t||"down"===t?Math.floor(s/l):s%i,m="up"===t||"down"===t?s%l:Math.floor(s/i),b=n.first.column.idx+h,y=n.first.row.idx+m;return k(e,e.cellMatrix.getLocation(y,b),!n||!(n.columns.length>1||n.rows.length>1))}function ml(e){var t=e.cellMatrix.ranges,n=t.stickyBottomRange,o=t.stickyTopRange;return J(e,n.height+o.height)}function bl(e,t,n,o,r,i){var l,a,c;if(!e.enableRangeSelection)return e;var s=e.cellMatrix.getLocation(o,t),u=e.cellMatrix.getLocation(r,n),d=e.selectedRanges.slice();if(d[e.activeSelectedRangeIdx]=e.cellMatrix.getRange(s,u),i){var g=e.focusedLocation;if(!g)return e;var p=0,h=0;switch(i){case"horizontal":p=g.row.idx,h=g.column.idx!==t?t:n;break;case"vertical":p=g.row.idx!==o?o:r,h=g.column.idx}var m=U(e,e.cellMatrix.getLocation(p,h),i),b=m.left;z(e,m.top,b)}return(null===(l=e.props)||void 0===l?void 0:l.onSelectionChanging)&&!e.props.onSelectionChanging(d)?e:(null===(c=null===(a=e.props)||void 0===a?void 0:a.onSelectionChanged)||void 0===c||c.call(a,d),f(f({},e),{selectedRanges:d}))}var vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return p(t,e),t.prototype.handlePointerDown=function(e,t,n){return this.initialColumn=t.column,la(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 f(f({},e),{selectionMode:"column",selectedIndexes:n,selectedIds:o})}(n,t.column):e.shiftKey&&n.focusedLocation?w(n,n.focusedLocation.column,t.column,la(e)):function(e,t,n){return f(f({},e),{selectionMode:"column",selectedIndexes:(n&&"column"===e.selectionMode?e.selectedIndexes:[]).concat(t.idx),selectedIds:(n&&"column"===e.selectionMode?e.selectedIds:[]).concat(t.columnId)})}(n=k(n,t,!1),t.column,la(e))},t.prototype.handlePointerEnter=function(e,t,n){return w(n,this.initialColumn,t.column,la(e))},t.prototype.handlePointerUp=function(e,t,n){var o,r;if((null===(o=n.props)||void 0===o?void 0:o.onSelectionChanging)&&!n.props.onSelectionChanging(n.selectedRanges)){var i=b([],n.selectedRanges,!0).filter((function(e,t){return t!==n.activeSelectedRangeIdx}));return f(f({},n),{selectedRanges:i,activeSelectedRangeIdx:i.length-1})}return(null===(r=n.props)||void 0===r?void 0:r.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges),n},t.prototype.handleContextMenu=function(e,t){return V(e,t)},t}(E),yl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return p(t,e),t.prototype.handlePointerDown=function(e,t,n){return this.initialRow=t.row,la(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 f(f({},e),{selectionMode:"row",selectedIndexes:n,selectedIds:o})}(n,t.row):e.shiftKey&&n.focusedLocation?C(n,n.focusedLocation.row,t.row,la(e)):function(e,t,n){return f(f({},e),{selectionMode:"row",selectedIndexes:(n&&"row"===e.selectionMode?e.selectedIndexes:[]).concat(t.idx),selectedIds:(n&&"row"===e.selectionMode?e.selectedIds:[]).concat(t.rowId)})}(n=k(n,t,!1),t.row,la(e))},t.prototype.handlePointerEnter=function(e,t,n){return C(n,this.initialRow,t.row,la(e))},t.prototype.handlePointerUp=function(e,t,n){var o,r;if((null===(o=n.props)||void 0===o?void 0:o.onSelectionChanging)&&!n.props.onSelectionChanging(n.selectedRanges)){var i=b([],n.selectedRanges,!0).filter((function(e,t){return t!==n.activeSelectedRangeIdx}));return f(f({},n),{selectedRanges:i,activeSelectedRangeIdx:i.length-1})}return(null===(r=n.props)||void 0===r?void 0:r.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges),n},t.prototype.handleContextMenu=function(e,t){return V(e,t)},t}(E),Il=function(e){var t=e.range,n=e.pane,r=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,c=(t.last.column.idx>n.last.column.idx?n.last.column.right:t.last.column.right)-a,s=(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,g=t.last.column.idx<=n.last.column.idx,p=t.first.column.idx>=n.first.column.idx;return o.createElement("div",{className:"rg-partial-area ".concat(i),key:t.first.column.idx+n.last.column.idx,style:f(f({},r),{top:l-(0===l?0:1),left:a-(0===a?0:1),width:c+(0===a?0:1),height:s+(0===l?0:1),borderTop:u?r.borderTop:"unset",borderBottom:d?r.borderBottom:"unset",borderRight:g?r.borderRight:"unset",borderLeft:p?r.borderLeft:"unset"})})};function xl(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 wl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fillDirection="",t}return p(t,e),t.prototype.handlePointerEnter=function(e,t,n){var o=Vi(n);return this.fillDirection=this.getFillDirection(o,t),this.fillRange=this.getFillRange(n.cellMatrix,o,t,this.fillDirection),f({},n)},t.prototype.handlePointerUp=function(e,t,n){var o,r,i,l,a,c,s,u,d=this,g=Vi(n),p=n.cellMatrix;if(!g||void 0===this.fillRange)return n;var h=B()?e.altKey:e.ctrlKey;this.fillRange=n.cellMatrix.validateRange(this.fillRange);var m=function(e){return M(n,e)},y=function(e,t){var n=e.map((function(e){return e.value})),o=d.findRegressionFunction(n,Array.from({length:n.length},(function(e,t){return t+1}))),r=isNaN(o.a)&&isNaN(o.b);return t.map((function(t,i){var l=d.calculateXForRegressionFunction(i+n.length+1,o.a,o.b),a=e[i%e.length];return f(f(f({},t),"checkbox"===t.type&&{checked:"checked"in a?a.checked:!!a.value}),{text:r||h?a.text:l.toString(),groupId:a.groupId,value:r||h?a.value:l})}))},I=function(e,t,n){return t.columns.forEach((function(o){var r=t.rows.map((function(e){return m(v(e,o)).cell}));if(r="up"===n?r.reverse():r,d.fillRange){var i=d.fillRange.rows.map((function(e){return m(v(e,o)).cell}));i=y(r,i),i="up"===n?i.reverse():i,e=d.fillColumn(e,o,i)}})),e},x=function(e,t,n){return t.rows.forEach((function(o){var r=t.columns.map((function(e){return m(v(o,e)).cell}));if(r="left"===n?r.reverse():r,d.fillRange){var i=d.fillRange.columns.map((function(e){return m(v(o,e)).cell}));i=y(r,i),i="left"===n?i.reverse():i,e=d.fillRow(e,o,i)}})),e};switch(this.fillDirection){case"right":var w=p.getRange(g.first,v(g.last.row,t.column));if((null===(o=null==(n=x(n,g,"right"))?void 0:n.props)||void 0===o?void 0:o.onSelectionChanging)&&!n.props.onSelectionChanging([w]))return n;(null===(r=(n=f(f({},n),{selectedRanges:[w],selectedIds:b(b([],g.columns.map((function(e){return e.columnId})),!0),this.fillRange.columns.map((function(e){return e.columnId})),!0)})).props)||void 0===r?void 0:r.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges);break;case"left":if(w=p.getRange(g.last,v(g.first.row,t.column)),(null===(i=null==(n=x(n,g,"left"))?void 0:n.props)||void 0===i?void 0:i.onSelectionChanging)&&!n.props.onSelectionChanging([w]))return n;(null===(l=(n=f(f({},n),{selectedRanges:[w],selectedIds:b(b([],g.columns.map((function(e){return e.columnId})),!0),this.fillRange.columns.map((function(e){return e.columnId})),!0)})).props)||void 0===l?void 0:l.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges);break;case"up":if(w=p.getRange(g.last,{row:t.row,column:g.first.column}),(null===(a=null==(n=I(n,g,"up"))?void 0:n.props)||void 0===a?void 0:a.onSelectionChanging)&&!n.props.onSelectionChanging([w]))return n;(null===(c=(n=f(f({},n),{selectedRanges:[w],selectedIds:b(b([],g.rows.map((function(e){return e.rowId})),!0),this.fillRange.rows.map((function(e){return e.rowId})),!0)})).props)||void 0===c?void 0:c.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges);break;case"down":if(w=p.getRange(g.first,v(t.row,g.last.column)),(null===(s=null==(n=I(n,g,"down"))?void 0:n.props)||void 0===s?void 0:s.onSelectionChanging)&&!n.props.onSelectionChanging([w]))return n;(null===(u=(n=f(f({},n),{selectedRanges:[w],selectedIds:b(b([],g.rows.map((function(e){return e.rowId})),!0),this.fillRange.rows.map((function(e){return e.rowId})),!0)})).props)||void 0===u?void 0:u.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges)}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&&xl(t,this.fillRange)&&r.a.createElement(Il,{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=Di(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=Di(e,v(o,t),n[r])})),e},t}(E),Cl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return p(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})).map((function(e){return n.cellMatrix.rows[e]})).reduce((function(e,t){return e+t.height}),0);return this.pointerOffset=i+t.cellY,this.selectedIds=r.map((function(e){return e.rowId})),f(f({},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,c=N(n.scrollableElement).scrollTop,s=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+c),(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?s>t.row.top+n.cellMatrix.ranges.stickyTopRange.height&&s<t.row.top+n.cellMatrix.ranges.stickyTopRange.height+t.row.height/2?(this.position="on",l="move",a=-1):this.position="after":s>t.row.top+n.cellMatrix.ranges.stickyTopRange.height+t.row.height/2&&s<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 f(f({},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)),f(f({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return V(e,t)},t}(E);function Rl(e,t,n){void 0===n&&(n=!1);var o=Vi(t);return o?(function(e,t,n){var o;"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")?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()}(e,t,Hi(t,o,n).div),f(f({},t),{copyRange:o})):t}var Al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.handlePointerDown=function(e,t,n){return(n=f(f({},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)-N(n.scrollableElement).scrollLeft?new D:n.enableColumnSelection&&0===t.row.idx&&n.selectedIds.includes(t.column.columnId)&&!la(e)&&"column"===n.selectionMode&&t.column.reorderable?new Y:n.enableColumnSelection&&0===t.row.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new vl:n.enableRowSelection&&0===t.column.idx&&n.selectedIds.includes(t.row.rowId)&&!la(e)&&"row"===n.selectionMode&&t.row.reorderable?new Cl:n.enableRowSelection&&0===t.column.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new yl:("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 wl:new Z},t.prototype.handleContextMenu=function(e,t){return V(e,t)},t.prototype.handleDoubleClick=function(e,t,n){return function(e,t,n){if(s(t,n.focusedLocation)){var o=M(n,t),r=o.cell,i=o.cellTemplate;if(i.handleKeyDown){var l=i.handleKeyDown(r,1,la(e),e.shiftKey,e.altKey,"DoubleClick"),a=l.cell;if(l.enableEditMode&&!r.nonEditable)return f(f({},n),{currentlyEditedCell:a})}}return n}(e,t,n)},t.prototype.handleKeyDown=function(e,t){return fl(t,e)},t.prototype.handleKeyUp=function(e,t){return function(e,t){return e.keyCode!==R.TAB&&e.keyCode!==R.ENTER||(e.preventDefault(),e.stopPropagation()),t}(e,t)},t.prototype.handleCompositionEnd=function(e,t){return function(e,t){var n=function(e,t){var n=e.focusedLocation;if(!n)return e;var o=M(e,n),r=o.cell,i=o.cellTemplate;if(i.handleCompositionEnd&&!e.currentlyEditedCell){var l=i.handleCompositionEnd(r,t.data),a=l.cell,c=l.enableEditMode;if(JSON.stringify(a)!==JSON.stringify(r)||c)return c&&!r.nonEditable?f(f({},e),{currentlyEditedCell:a}):G(e,n,a)}return e}(t,e);return n!==t&&(e.stopPropagation(),e.preventDefault()),n}(e,t)},t.prototype.handleCopy=function(e,t){return Rl(e,t)},t.prototype.handlePaste=function(e,t){return function(e,t){var n,o;if(!Vi(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,c=0;c<a.length;c++){for(var s=[],u=0;u<a[c].children.length;u++){var d=a[c].children[u].getAttribute("data-reactgrid"),g=d&&JSON.parse(d),p=a[c].children[u].innerHTML;s.push(g||{type:"text",text:p,value:Ce(p)})}r.push(s)}else r=e.clipboardData.getData("text/plain").replace(/(\r\n)$/,"").split("\n").map((function(e){return e.split("\t").map((function(e){return{type:"text",text:e,value:Ce(e)}}))}));return e.preventDefault(),f({},Yi(t,r))}(e,t)},t.prototype.handleCut=function(e,t){return Rl(e,t,!0)},t}(E),El={legacyBrowserMode:"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>0||"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge/")>0,focusedLocation:void 0,currentBehavior:new Al,cellTemplates:hi,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},Ml=function(e,t){var n=t.cellMatrix;return function(e,t,n){if(e.ranges.stickyRightRange.first.column&&t.column.idx>=e.ranges.stickyRightRange.first.column.idx){var o=N(n.scrollableElement).scrollLeft,r=W(n).left,i=O(o,r);return X(n).width+i-e.ranges.stickyRightRange.width}}(n,e,t)||Bl(n,e)||Ll(n,e,t)||0},Gl=function(e,t){var n=t.cellMatrix;return function(e,t,n){if(e.ranges.stickyBottomRange.first.row&&t.row.idx>=e.ranges.stickyBottomRange.first.row.idx){var o=N(n.scrollableElement).scrollTop,r=W(n).top,i=O(o,r);return X(n).height+i-e.ranges.stickyBottomRange.height}}(n,e,t)||Sl(n,e)||Pl(n,e,t)||0},kl=function(e){var t=e.state,n=e.location,o=N(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=W(t),a=l.top,c=l.left,s=0,u=0;if(t.scrollableElement!==T()){var d=t.scrollableElement.getBoundingClientRect();s=d.left,u=d.top}return{state:t,location:n,left:n.column.left+Ml(n,t)+s+c-i,top:n.row.top+Gl(n,t)+u+a-r}},Nl=function(){var e=Wi(),t=e.currentlyEditedCell,n=e.focusedLocation,r=o.useRef(0),i=o.useReducer(kl,{state:e,location:n}),l=i[0],a=i[1];if(o.useEffect((function(){r.current+=1,a()}),[]),!t||!n||0===r.current)return null;var c=e.cellTemplates[t.type];return o.createElement(Tl,{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"}},c.render(t,!0,(function(t,o){e.currentlyEditedCell=o?void 0:t,o&&e.update((function(e){return G(e,n,t)}))})))},Tl=function(e){var t=e.style,n=e.cellType,r=e.children;return o.createElement("div",{className:"rg-celleditor rg-".concat(n,"-celleditor"),style:t},r)};function Bl(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 Sl(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 Ll(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=N(n.scrollableElement).scrollLeft,r=W(n).left;return O(o,r)}}function Pl(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=N(n.scrollableElement).scrollTop,r=W(n).top;return O(o,r)}}var Wl=function(e){var t=e.hiddenElementRefHandler,n=Wi().hiddenFocusElement;return o.createElement("input",{className:"rg-hidden-element",ref:t,inputMode:"none",onBlur:function(e){e.relatedTarget||null==n||n.focus({preventScroll:!0})}})},Xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t}return p(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?r.a.createElement(r.a.Fragment,null,r.a.createElement("h1",null,null==o?void 0:o.message)," ",r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("details",null,null==o?void 0:o.stack,null==n?void 0:n.componentStack)):this.props.children},t}(o.Component);function Ol(){return"undefined"!=typeof window&&navigator.userAgent.includes("Firefox")}var Fl=function(e){var t=e.eventHandlers,n=e.children,r=Wi(),i=r.cellMatrix,l=r.props,a={width:(null==l?void 0:l.enableFullWidthHeader)?"100%":i.width,height:i.height};return o.createElement(Xl,null,o.createElement("div",{className:"reactgrid",style:f({position:"relative",paddingRight:Ol()?"10px":""},a),ref:t.reactgridRefHandler},o.createElement("div",{className:"reactgrid-content",onKeyDown:t.keyDownHandler,onKeyUp:t.keyUpHandler,onCompositionEnd:t.compositionEndHandler,onPointerDown:t.pointerDownHandler,onPasteCapture:t.pasteCaptureHandler,onPaste:t.pasteHandler,onCopy:t.copyHandler,onCut:t.cutHandler,onBlur:t.blurHandler,style:a},n,o.createElement(Wl,{hiddenElementRefHandler:t.hiddenElementRefHandler}))))},Vl={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 Zl(e){var t;return f(f({},Vl),null===(t=e.props)||void 0===t?void 0:t.labels)}var Hl=function(){var e=Wi();return o.createElement(o.Fragment,null,o.createElement("h3",null,Zl(e).legacyBrowserHeader),o.createElement("p",null,Zl(e).legacyBrowserText))};function Dl(){return"undefined"!=typeof window&&(void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile"))}var Yl=function(){return o.createElement("div",{className:"rg-touch-resize-handle","data-cy":"rg-touch-resize-handle"},o.createElement("div",{className:"rg-resize-handle","data-cy":"rg-resize-handle"}))};function zl(e){return{left:e("left"),right:e("right"),top:e("top"),bottom:e("bottom")}}var Jl=function(e){var t,n,r,i=e.state,l=e.location,a=e.range,c=e.borders,u=e.update,d=e.currentlyEditedCell,g=M(i,l),p=g.cell,h=g.cellTemplate,m=void 0!==i.focusedLocation&&s(i.focusedLocation,l),b=null!==(t=h.getClassName&&h.getClassName(p,!1))&&void 0!==t?t:"",v=o.useRef(d),y=function(e,t){return function(n,o){return function(r){var i,l,a,c,s,u,d,g;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===(c=t.style.border[r])||void 0===c?void 0:c[n]:o:(null===(d=null===(u=null===(s=t.style)||void 0===s?void 0:s.border)||void 0===u?void 0:u[r])||void 0===d?void 0:d[n])?null===(g=t.style.border[r])||void 0===g?void 0:g[n]:"unset"}}}(c,p),I=zl(y("width","1px")),x=zl(y("style","solid")),w=zl(y("color","#e8e8e8")),C={borderLeftWidth:I.left,borderLeftStyle:x.left,borderLeftColor:w.left,borderRightWidth:I.right,borderRightStyle:x.right,borderRightColor:w.right,borderTopWidth:I.top,borderTopStyle:x.top,borderTopColor:w.top,borderBottomWidth:I.bottom,borderBottomStyle:x.bottom,borderBottomColor:w.bottom},R=Dl(),A=(null===(n=i.props)||void 0===n?void 0:n.enableRowSelection)&&0===l.row.idx||(null===(r=i.props)||void 0===r?void 0:r.enableColumnSelection)&&0===l.column.idx,E=f(f(f(f(f({},h.getStyle&&(h.getStyle(p,!1)||{})),p.style&&function(e){return e.border,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"])}(p.style)),{left:l.column.left,top:l.row.top,width:a.width,height:a.height}),!(m&&v.current)&&C),(m||"header"===p.type||A)&&{touchAction:"none"}),k=m&&!!v.current,N=p.groupId?" rg-groupId-".concat(p.groupId):"",T=p.nonEditable?" rg-cell-nonEditable":"",B=k&&R?" rg-celleditor rg-".concat(p.type,"-celleditor"):" rg-".concat(p.type,"-cell"),S="rg-cell".concat(B).concat(N).concat(T," ").concat(b),L=m&&v.current&&R?v.current:p,P=o.useCallback((function(e,t){if(k)v.current=t?void 0:e,t&&u((function(t){return G(t,l,e)}));else{if(!t)throw new Error("commit should be set to true in this case.");u((function(t){return G(t,l,e)}))}}),[k,l,u,v]);return o.createElement("div",f({className:S,style:E},{"data-cell-colidx":l.column.idx,"data-cell-rowidx":l.row.idx}),h.render(L,!!R&&k,P),0===l.row.idx&&l.column.resizable&&o.createElement(Yl,null),i.enableGroupIdRender&&void 0!==(null==p?void 0:p.groupId)&&!(k&&R)&&o.createElement("span",{className:"rg-groupId"},p.groupId))},jl=function(e){var t,n=e.borderColor,r=e.location,i=e.className,l=e.state,a=r.column.idx,s=r.row.idx,u=null===(t=null==l?void 0:l.cellMatrix.rangesToRender[c(a,s)])||void 0===t?void 0:t.range;return u?o.createElement(_l,{location:r,className:"rg-cell-highlight ".concat(i||""),borderColor:n,width:u.width,height:u.height}):null},Ul=function(e){var t=e.borderColor,n=e.location,r=e.className;return o.createElement(_l,{location:n,className:"rg-cell-focus ".concat(r||""),borderColor:t,width:n.column.width,height:n.row.height})},_l=function(e){var t=e.className,n=e.location,r=e.borderColor,i=e.height,l=e.width;return o.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(r)}})},Ql=o.memo((function(e){var t=e.columns,n=e.row,r=e.cellRenderer,i=e.borders,l=e.state,a=t[t.length-1].idx,s=r;return o.createElement(o.Fragment,null,t.map((function(e){var t,r=null===(t=l.cellMatrix.rangesToRender[c(e.idx,n.idx)])||void 0===t?void 0:t.range;if(!r)return null;var u={row:n,column:e};return o.createElement(s,{key:n.idx+"-"+e.idx,borders:f(f({},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:r,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)}));Ql.displayName="RowRenderer";var Kl=function(e){var t=e.state,n=e.calculatedRange;return o.createElement(o.Fragment,null,t.currentBehavior.renderPanePart(t,n))},$l=function(e){var t=e.state,n=e.location,i=Object(o.useRef)(null),l=Object(o.useState)({width:0,height:0}),a=l[0],c=l[1];return Object(o.useLayoutEffect)((function(){i.current&&c({width:i.current.offsetWidth,height:i.current.offsetHeight})}),[]),r.a.createElement("div",{className:"rg-touch-fill-handle",ref:i,style:{top:n.row.bottom-a.width/2,left:n.column.right-a.height/2},onPointerDown:function(e){"mouse"!==e.pointerType&&t.update((function(e){return f(f({},e),{currentBehavior:new wl})}))}},r.a.createElement("div",{className:"rg-fill-handle"}))},ql=function(e){var t=e.state,n=e.calculatedRange;return o.createElement(o.Fragment,null,t.selectedRanges[t.activeSelectedRangeIdx]&&n instanceof l&&n.contains(t.selectedRanges[t.activeSelectedRangeIdx].last)&&t.enableFillHandle&&!t.currentlyEditedCell&&!(t.currentBehavior instanceof Z)&&o.createElement($l,{state:t,location:t.selectedRanges[t.activeSelectedRangeIdx].last}))},ea=function(e){var t=e.state,n=e.calculatedRange;return o.createElement(o.Fragment,null,t.selectedRanges.map((function(e,r){return!(t.focusedLocation&&e.contains(t.focusedLocation)&&1===e.columns.length&&1===e.rows.length)&&n&&xl(n,e)&&o.createElement(Il,{key:r,pane:n,range:e,className:"rg-partial-area-selected-range",style:{}})})))},ta=o.memo((function(e){var t=e.range,n=e.state,r=e.borders,i=e.cellRenderer;return o.createElement(o.Fragment,null,t.rows.map((function(e){var l;return o.createElement(Ql,{key:e.rowId,state:n,row:e,columns:t.columns,forceUpdate:!0,cellRenderer:i,borders:f(f({},r),{top:r.top&&0===e.top,bottom:r.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)}));ta.displayName="PaneGridContent";var na=function(e){var t=e.className,n=e.style,r=e.renderChildren,i=e.children;return n.width&&n.height?o.createElement(ra,{className:t,style:n}," ",r&&i," "):null},oa=function(e){var t=e.state,n=e.range,r=e.borders,i=e.cellRenderer,l=n();return o.createElement(o.Fragment,null,o.createElement(ta,{state:t,range:l,borders:r,cellRenderer:i}),function(e,t){return e.highlightLocations.map((function(n,r){try{var i=e.cellMatrix.getLocationById(n.rowId,n.columnId);return i&&t.contains(i)&&o.createElement(jl,{key:r,location:i,state:e,borderColor:n.borderColor,className:n.className})}catch(A){return console.error("Cell location fot found while rendering highlights at: ".concat(A.message)),null}}))}(t,l),t.focusedLocation&&!(t.currentlyEditedCell&&Dl())&&l.contains(t.focusedLocation)&&o.createElement(Ul,{location:t.focusedLocation}),o.createElement(ea,{state:t,calculatedRange:l}),o.createElement(Kl,{state:t,calculatedRange:l}),o.createElement(ql,{state:t,calculatedRange:l}))},ra=function(e){return o.createElement("div",{className:"rg-pane ".concat(e.className),style:e.style}," ",e.children," ")},ia=function(e){var t=e.renderCondition,n=e.className,r=e.style,i=e.zIndex,l=e.children;return t?o.createElement("div",{className:"rg-pane-shadow ".concat(n),style:f(f({},r),Ol()&&{zIndex:i})},l):null};function la(e){return!B()&&e.ctrlKey||e.metaKey}var aa=function(e){return function(t){return function(n){return function(){return t.slice(n,e)}}}},ca=aa("columns"),sa=aa("rows");function ua(e,t,n,o){var r=b([],e.queuedCellChanges,!0);r.length>0&&(n.onCellsChanged&&n.onCellsChanged(b([],r,!0)),r.forEach((function(){return e.queuedCellChanges.pop()}))),e!==t&&o(e)}}).call(this,n("yLpj"))}}]);
//# sourceMappingURL=1398c2ec-5a03195d6803a2e72b26.js.map