1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[411],{40474:function(e,t,n){n.d(t,{K:function(){return el},O:function(){return eg},bz:function(){return w},p:function(){return rS},w:function(){return en}});var o=n(2784),r=n(28316),i=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}(),l=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);return new i(this.rows.slice(Math.min(e.row.idx,t.row.idx),Math.max(e.row.idx,t.row.idx)+1),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 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 a(e,t){return"".concat(e,", ").concat(t)}function c(e,t){return e.column.columnId===(null==t?void 0:t.column.columnId)&&e.row.rowId===(null==t?void 0:t.row.rowId)}var s=function(){function e(e){this.updateState=e,this.eventTimestamps=[0,0],this.eventLocations=[void 0,void 0],this.currentIndex=0}return e.prototype.handlePointerDownInternal=function(e,t,n){this.pointerDownLocation=t;var o=this.eventLocations[this.currentIndex];this.currentIndex=1-this.currentIndex,this.eventTimestamps[this.currentIndex]=(new Date).valueOf(),this.eventLocations[this.currentIndex]=t;var r=0===t.row.idx||0===t.column.idx;return("mouse"===e.pointerType||r||c(t,o))&&(n=n.currentBehavior.handlePointerDown(e,t,n)),n},e.prototype.shouldHandleDoubleClick=function(e,t,n){return t-n<500&&c(e,this.eventLocations[0])&&c(e,this.eventLocations[1])},e.prototype.shouldHandleCellSelectionOnMobile=function(e,t,n){return"mouse"!==e.pointerType&&c(t,this.pointerDownLocation)&&void 0!==e.pointerType&&n-this.eventTimestamps[this.currentIndex]<500&&t.row.idx>0&&t.column.idx>0},e}(),u=function(e,t){return(u=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 d(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return(g=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)};
1function p(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)instanceof n?t:new n(function(e){e(t)})).then(l,a)}c((o=o.apply(e,t||[])).next())})}function f(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 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 h(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 m=function(e,t){return{row:e,column:t}};function b(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]),g(g({},e),{activeSelectedRangeIdx:0,selectedRanges:[o],selectedIndexes:[],selectedIds:[],selectionMode:"range"})}function v(e,t,n){return g(g({},e),{selectionMode:"range",selectedRanges:(n&&"range"===e.selectionMode?e.selectedRanges:[]).concat([t]),selectedIndexes:[],selectedIds:[],activeSelectedRangeIdx:n&&"range"===e.selectionMode?e.selectedRanges.length:0})}function y(e,t){var n;return g(g({},e),{selectionMode:"range",selectedRanges:Object.assign([],e.selectedRanges,((n={})[e.activeSelectedRangeIdx]=t,n)),selectedIndexes:[],selectedIds:[]})}function x(e,t,n,o){var r=e.cellMatrix.first.row,i=e.cellMatrix.last.row,l=e.cellMatrix.getRange(m(r,t),m(i,n));return g(g({},e),{selectionMode:"column",selectedIndexes:o?e.selectedIndexes.concat(l.columns.map(function(e){return e.idx})):l.columns.map(function(e){return e.idx}),selectedIds:o?e.selectedIds.concat(l.columns.map(function(e){return e.columnId})):l.columns.map(function(e){return e.columnId})})}function I(e,t,n,o){var r=e.cellMatrix.first.column,i=e.cellMatrix.last.column,l=e.cellMatrix.getRange(m(t,r),m(n,i));return g(g({},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 w,C=function(){function e(){this.autoScrollDirection="both"}return e.prototype.handleKeyDown=function(e,t){return t},e.prototype.handlePointerUp=function(e,t,n){return n},e.prototype.handleKeyUp=function(e,t){return t},e.prototype.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 R(e,t){try{var n=e.cellMatrix.getCell(t);if(!n)throw TypeError("Cell doesn't exists at location");if(!n.type)throw Error("Cell is missing type property");var o=e.cellTemplates[n.type];if(!o)throw Error("CellTemplate missing for type '".concat(n.type,"'"));var r=o.getCompatibleCell(g(g({},n),{type:n.type}));if(!r)throw Error("Cell validation failed");return{cell:r,cellTemplate:o}}catch(e){throw Error("".concat(e.message," (rowId: '").concat(t.row.rowId,"', columnId: '").concat(t.column.columnId,"')"))}}function A(e,t,n){var o=R(e,t),r=o.cell,i=o.cellTemplate;if(r===n||JSON.stringify(r)===JSON.stringify(n)||void 0===i.update)return e;var l=i.update(r,n);return l===r&&JSON.stringify(l)===JSON.stringify(r)||l.nonEditable||e.queuedCellChanges.push({previousCell:r,newCell:l,type:l.type,rowId:t.row.rowId,c
1olumnId:t.column.columnId}),g({},e)}function E(e,t,n,o){if(void 0===n&&(n=!0),e.focusedLocation&&e.currentlyEditedCell&&o!==w.ENTER&&(e=A(e,e.focusedLocation,e.currentlyEditedCell)),!e.props)throw 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,s=R(e,t),u=s.cell,d=s.cellTemplate,p={rowId:t.row.rowId,columnId:t.column.columnId},f=!l||l(p),h=!d.isFocusable||d.isFocusable(u),m=a?e.cellMatrix.getLocationById(a.rowId,a.columnId):void 0,v=c(t,e.focusedLocation)||!m||c(t,m);if(!h||!f||!v)return e;i&&i(p);var y=e.cellMatrix.validateLocation(t);return n&&(e=b(e,y)),g(g({},e),{focusedLocation:y,contextMenuPosition:{top:-1,left:-1},currentlyEditedCell:void 0})}function M(e){var t,n;return{scrollLeft:void 0!==e?(null!==(t=e.scrollLeft)&&void 0!==t?t:G().scrollX)-(e.clientLeft||0):0,scrollTop:void 0!==e?(null!==(n=e.scrollTop)&&void 0!==n?n:G().scrollY)-(e.clientTop||0):0}}function G(){return window}function k(){return"undefined"!=typeof window&&-1!==window.navigator.appVersion.indexOf("Mac")}function N(){return"undefined"!=typeof window&&(!!/iPad|iPhone|iPod/.test(window.navigator.platform)||T())}function T(){return"undefined"!=typeof window&&window.navigator.maxTouchPoints>2&&/MacIntel/.test(window.navigator.platform)}function B(e){return e?{width:e instanceof HTMLElement?e.clientWidth:N()?window.innerWidth:document.documentElement.clientWidth,height:e instanceof HTMLElement?e.clientHeight:N()?window.innerHeight:document.documentElement.clientHeight}:{width:0,height:0}}function S(e){var t=M(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop;if(!e.reactGridElement)throw 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!==G()){var a=e.scrollableElement.getBoundingClientRect();i-=a.left,l-=a.top}return{left:i,top:l}}function L(e){var t=M(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop,r=B(e.scrollableElement),i=r.width,l=r.height,a=S(e),c=a.left,s=a.top,u=o+l,d=s+e.cellMatrix.height,g=d>u?u:d,p=n+i,f=c+e.cellMatrix.width,h=f>p?p:f;return{width:Math.max(h-(c<n?n:c),0),height:Math.max(g-(s<o?o:s),0),visibleOffsetRight:p-h,visibleOffsetBottom:u-g}}(tc=w||(w={}))[tc.POINTER=1]="POINTER",tc[tc.BACKSPACE=8]="BACKSPACE",tc[tc.TAB=9]="TAB",tc[tc.ENTER=13]="ENTER",tc[tc.SHIFT=16]="SHIFT",tc[tc.CTRL=17]="CTRL",tc[tc.ALT=18]="ALT",tc[tc.PAUSE=19]="PAUSE",tc[tc.CAPS_LOCK=20]="CAPS_LOCK",tc[tc.ESCAPE=27]="ESCAPE",tc[tc.SPACE=32]="SPACE",tc[tc.PAGE_UP=33]="PAGE_UP",tc[tc.PAGE_DOWN=34]="PAGE_DOWN",tc[tc.END=35]="END",tc[tc.HOME=36]="HOME",tc[tc.LEFT_ARROW=37]="LEFT_ARROW",tc[tc.UP_ARROW=38]="UP_ARROW",tc[tc.RIGHT_ARROW=39]="RIGHT_ARROW",tc[tc.DOWN_ARROW=40]="DOWN_ARROW",tc[tc.INSERT=45]="INSERT",tc[tc.DELETE=46]="DELETE",tc[tc.KEY_0=48]="KEY_0",tc[tc.KEY_1=49]="KEY_1",tc[tc.KEY_2=50]="KEY_2",tc[tc.KEY_3=51]="KEY_3",tc[tc.KEY_4=52]="KEY_4",tc[tc.KEY_5=53]="KEY_5",tc[tc.KEY_6=54]="KEY_6",tc[tc.KEY_7=55]="KEY_7",tc[tc.KEY_8=56]="KEY_8",tc[tc.KEY_9=57]="KEY_9",tc[tc.KEY_A=65]="KEY_A",tc[tc.KEY_B=66]="KEY_B",tc[tc.KEY_C=67]="KEY_C",tc[tc.KEY_D=68]="KEY_D",tc[tc.KEY_E=69]="KEY_E",tc[tc.KEY_F=70]="KEY_F",tc[tc.KEY_G=71]="KEY_G",tc[tc.KEY_H=72]="KEY_H",tc[tc.KEY_I=73]="KEY_I",tc[tc.KEY_J=74]="KEY_J",tc[tc.KEY_K=75]="KEY_K",tc[tc.KEY_L=76]="KEY_L",tc[tc.KEY_M=77]="KEY_M",tc[tc.KEY_N=78]="KEY_N",tc[tc.KEY_O=79]="KEY_O",tc[tc.KEY_P=80]="KEY_P",tc[tc.KEY_Q=81]="KEY_Q",tc[tc.KEY_R=82]="KEY_R",tc[tc.KEY_S=83]="KEY_S",tc[tc.KEY_T=84]="KEY_T",tc[tc.KEY_U=85]="KEY_U",tc[tc.KEY_V=86]="KEY_V",tc[tc.KEY_W=87]="KEY_W",tc[tc.KEY_X=88]="KEY_X",tc[tc.KEY_Y=89]="KEY_Y",tc[tc.KEY_Z=90]="KEY_Z",tc[tc.LEFT_META=91]="LEFT_META",tc[tc.RIGHT_META=92]="RIGHT_META",tc[tc.SELECT=93]="SELECT",tc[tc.NUMPAD_0=96]="NUMPAD_0",tc[tc.NUMPAD_1=97]="NUMPAD_1",tc[tc.NUMPAD_2=98]="NUMPAD_2",tc[tc.NUMPAD_3=99]="NUMPAD_3",tc[tc.NUMPAD_4=100]="NUMPAD_4",tc[tc.NUMPAD_5=101]="NUMPAD_5",tc[tc.NUMPAD_6=102]="NUMPAD_6",tc[tc.NUMPAD_7=103]="NUMPAD_7",tc[tc.NUMPAD_8=104]="NUMPAD_8",tc[tc.NUMPAD_9=105]="NUMPAD_9",tc[tc.MULTIPLY=106]="MULTIPLY",tc[tc.ADD=107]="ADD",tc[tc.SUBTRACT=109]="SUBTRACT",tc[tc.DECIMAL=110]="DECIMAL",tc[tc.DIVIDE=111]="DIVIDE",tc[tc.F1=112]="F1",tc[tc.F2=113]="F2",tc[tc.F3=114]="F3",tc[tc.F4=115]="F4",tc[tc.F5=116]="F5",tc[tc.F6=117]="F6",tc[tc.F7=118]="F7",tc[tc.F8=119]="F8",tc[tc.F9=120]="F9",tc[tc.F10=121]="F10",tc[tc.F11=122]="F11",tc[tc.F12=123]="F12",tc[tc.NUM_LOCK=144]="NUM_LOCK",tc[tc.SCROLL_LOCK=145]="SCROLL_LOCK",tc[tc.FIREFOX_DASH=173]="FIREFOX_DASH",tc[tc.SEMICOLON=186]="SEMICOLON",tc[tc.EQUALS=187]="EQUALS",tc[tc.COMMA=188]="COMMA",tc[tc.DASH=189]="DASH",tc[tc.PERIOD=190]="PERIOD",tc[tc.FORWARD_SLASH=191]="FORWARD_SLASH",tc[tc.GRAVE_ACCENT=192]="GRAVE_ACCENT",tc[tc.OPEN_BRACKET=219]="OPEN_BRACKET",tc[tc.BACK_SLASH=220]="BACK_SLASH",tc[tc.CLOSE_BRACKET=221]="CLOSE_BRACKET",tc[tc.SINGLE_QUOTE=222]="SINGLE_QUOTE";var P=function(e,t){return e>t?e-t:0};function W(e,t,n,o){if(!e.reactGridElement)throw Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var r,i,l=e.reactGridElement.getBoundingClientRect(),a=t-l.left,c=n-l.top,s=function(e,t,n){var o=e.cellMatrix,r=M(e.scrollableElement).scrollTop,i=S(e).top,l=P(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,c,r="vertical"===o||"both"===o)||function(e,t,n){var o=e.cellMatrix,r=M(e.scrollableElement).scrollTop,i=S(e).top,l=B(e.scrollableElement).height,a=P(r,i),c=Math.max(o.height-l+i,0),s=L(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,c,r)||function(e,t){if(e.cellMatrix.scrollableRange.rows.length<1){var n,o,r,i=t>=e.cellMatrix.height?e.cellMatrix.last:e.cellMatrix.first;return{cellY:i.row.height,row:i.row}}return o=t-(n=e.cellMatrix).ranges.stickyTopRange.height,r=n.scrollableRange.rows.find(function(e){return e.bottom>=o})||n.scrollableRange.last.row,{cellY:o-r.top,row:r}}(e,c),u=s.cellY,d=s.row,g=function(e,t,n){var o=e.cellMatrix,r=M(e.scrollableElement).scrollLeft,i=S(e).left,l=P(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,a,i="horizontal"===o||"both"===o)||function(e,t,n){var o=e.cellMatrix,r=M(e.scrollableElement).scrollLeft,i=S(e).left,l=B(e.scrollableElement).width,a=P(r,i),c=Math.max(o.width-l+i,0),s=L(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,a,i)||function(e,t){if(e.cellMatrix.scrollableRange.columns.length<1){var n,o,r,i=t>=e.cellMatrix.width?e.cellMatrix.last:e.cellMatrix.first;return{cellX:i.column.width,column:i.column}}return o=t-(n=e.cellMatrix).ranges.stickyLeftRange.width,r=n.scrollableRange.columns.find(function(e){return e.right>=o})||n.scrollableRange.last.column,{cellX:o-r.left,column:r}}(e,a),p=g.cellX;return{row:d,column:g.column,viewportX:a,viewportY:c,cellX:p,cellY:u}}function X(e,t){e.preventDefault();var n=e.clientX,o=e.clientY,r=t.contextMenuPosition;r.top=o,r.left=n;var i=W(t,n,o);return t.selectedRanges.find(function(e){return e.contains(i)}
1)||(t=E(t,i)),g(g({},t),{contextMenuPosition:r})}var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(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 iG(e)&&"range"===n.selectionMode?y(n,o):v(n,o,!1)}if(n.enableRangeSelection&&iG(e)){var r=n.selectedRanges.findIndex(function(e){return e.contains(t)}),i=n.selectedRanges[r],l=R(n,t).cellTemplate;i?(n=E(n,t,!1),n=g(g({},n),{activeSelectedRangeIdx:r})):l.isFocusable||(o=n.cellMatrix.getRange(t,t),n=E(n=v(n,o,!0),t,!1))}else n=E(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)?y(n,o):v(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=h([],n.selectedRanges,!0).filter(function(e,t){return t!==n.activeSelectedRangeIdx});return g(g({},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 X(e,t)},t}(C),Z=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")))},V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return d(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,a,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:l.MIN_COLUMN_WIDTH)||t.column.idx>this.resizedColumn.idx)){var s=this.getLinePositionOffset(n);c=(null!==(a=null===(i=n.props)||void 0===i?void 0:i.minColumnWidth)&&void 0!==a?a:l.MIN_COLUMN_WIDTH)+this.resizedColumn.left+s}return g(g({},n),{linePosition:c,lineOrientation:"vertical"})},t.prototype.handlePointerUp=function(e,t,n){var o,r,i,a,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:l.MIN_COLUMN_WIDTH)?s:null!==(c=null===(a=n.props)||void 0===a?void 0:a.minColumnWidth)&&void 0!==c?c:l.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 p=g(g({},d.column),{width:s});d=g(g({},d),{column:p})}return g(g({},n),{linePosition:-1,focusedLocation:d})},t.prototype.renderPanePart=function(e,t){var n=this.getLinePositionOffset(e);return t.contains(this.initialLocation)&&o.createElement(Z,{left:this.resizedColumn.left,linePosition:e.linePosition,offset:n})},t.prototype.getLinePositionOffset=function(e){var t=this,n=M(e.scrollableElement).scrollLeft,o=P(n,S(e).left),r=L(e).width+o-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})?r:n},t}(C),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return d(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,g(g({},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 g(g({},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=M(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,g(g({},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 g(g({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return X(e,t)},t}(C);function O(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 D(e,t){return L(e).height-t}function Y(e,t){var n=e.cellMatrix.ranges.stickyTopRange,o=t.row;return n.rows.length>0&&o.idx<=n.last.row.idx}function z(e,t,n){return void 0===n&&(n="both"),{top:function(e,t,n){var o,r,i,l,a,c,s=e.cellMatrix.ranges,u=s.stickyTopRange,d=s.stickyBottomRange,g=M(e.scrollableElement).scrollTop,p=D(e,u.height+d.height),f=P(g,S(e).top),h=t.row;if(n||!h)return g;var m=J(e,t)?1:0;return Y(e,t)||(o=e.cellMatrix.ranges.stickyBottomRange,r=t.row,o.rows.length>0&&r.idx>=o.first.row.idx)?g:(i=p+m,l=P(M(e.scrollableElement).scrollTop,S(e).top),i<t.row.bottom-l)?(a=p-1-m,g+t.row.bottom-a-f):(c=P(M(e.scrollableElement).scrollTop,S(e).top),t.row.top<c)?g-f+t.row.top-1:g}(e,t,"horizontal"===n),left:function(e,t,n){var o,r,i,l,a,c,s,u,d,g=e.cellMatrix.ranges,p=g.stickyLeftRange,f=g.stickyRightRange,h=M(e.scrollableElement).scrollLeft,m=(o=p.width+f.width,L(e).width-o),b=P(h,S(e).left),v=t.column;if(n||!v)return h;var y=J(e,t)?1:0;return(r=e.cellMatrix.ranges.stickyLeftRange,i=t.column,r.columns.length>0&&i.idx<=r.last.column.idx||(l=e.cellMatrix.ranges.stickyRightRange,a=t.column,l.columns.length>0&&a.idx>=l.first.column.idx))?h:(c=m+y,s=P(M(e.scrollableElement).scrollLeft,S(e).left),c<t.column.right-s)?(u=m-1-y,h+t.column.right-u-b):(d=P(M(e.scrollableElement).scrollLeft,S(e).left),t.column.left<d)?h-b+t.column.left-1:h}(e,t,"vertical"===n)}}function J(e,t){return e.cellMatrix.scrollableRange.contains(t)&&e.scrollableElement===G()}var j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePointerDown=function(e,n){t.isInLeftSticky=!1,t.isInRightSticky=!1,t.isInTopSticky=!1,t.isInBottomSticky=!1;var o,r=function(e,t){if(!t.reactGridElement)throw 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),!r)return g(g({},n),{contextMenuPosition:{top:-1,left:-1}
1});if(!((0===e.button||void 0===e.button)&&("reactgrid-content"!==e.target.className||void 0===e.pointerType)))return n;window.addEventListener("pointermove",t.handlePointerMove),window.addEventListener("pointerup",t.handlePointerUp);var i=W(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:g(g({},n),{contextMenuPosition:{top:-1,left:-1}})})},t.isContainElement=function(e,t){var n;return null===(n=t.reactGridElement)||void 0===n?void 0:n.contains(e.target)},t.handleContextMenu=function(e){window.removeEventListener("pointerup",t.handlePointerUp),window.removeEventListener("pointermove",t.handlePointerMove),window.removeEventListener("contextmenu",t.handleContextMenu),window.addEventListener("pointerdown",t.handleHideContextMenu),t.updateState(function(n){var o;if(t.isContainElement(e,n)){var r=W(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=W(n,e.clientX,e.clientY,void 0),l=W(n,e.clientX,e.clientY,r);if(!(i.column.idx<l.column.idx)||t.isFromLeftToRightScroll||t.isInLeftSticky?!(i.column.idx>l.column.idx)||t.isFromRightToLeftScroll||t.isInRightSticky?!(i.row.idx<l.row.idx)||t.isFromTopToBottomScroll||t.isInTopSticky?!(i.row.idx>l.row.idx)||t.isFromBottomToTopScroll||t.isInBottomSticky?(t.isInLeftSticky=!0,t.isInRightSticky=!0,t.isInTopSticky=!0,t.isInBottomSticky=!0):(t.isFromBottomToTopScroll=!1,l=i):(t.isFromTopToBottomScroll=!1,l=i):(t.isFromRightToLeftScroll=!1,l=i):l=i,"reactgrid-content"!==e.target.className&&!(n.currentBehavior instanceof V)&&(null===(o=n.props)||void 0===o?void 0:o.enableRangeSelection)||n.currentBehavior instanceof H){var a=z(n,l),s=a.left;O(n,a.top,s)}n=n.currentBehavior.handlePointerMove(e,l,n);var u=t.eventLocations[t.currentIndex];return t.eventLocations[t.currentIndex]=l,c(l,u)||(n=n.currentBehavior.handlePointerEnter(e,l,n)),n})},t.handlePointerUp=function(e){0!==e.button&&void 0!==e.button||(window.removeEventListener("pointerup",t.handlePointerUp),window.removeEventListener("pointermove",t.handlePointerMove),window.removeEventListener("contextmenu",t.handleContextMenu),t.updateState(function(n){var o,r=W(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=g(g({},n),{currentBehavior:new r5}),t.shouldHandleDoubleClick(r,i,l)&&(n=n.currentBehavior.handleDoubleClick(e,r,n)),null===(o=n.hiddenFocusElement)||void 0===o||o.focus(),n}))},t}return d(t,e),t}(s);function U(e){if(e.disableVirtualScrolling){var t,n,o,r,l,a,c,s,u,d,p,f,h,m,b,v,y=e.cellMatrix.scrollableRange,x=new i(y.rows,y.columns);return g(g({},e),{visibleRange:x})}var I=M(e.scrollableElement),w=I.scrollTop,C=I.scrollLeft,R=(t=[-e.cellMatrix.ranges.stickyTopRange.height],n=[-e.cellMatrix.ranges.stickyLeftRange.width],r=(o=L(e)).height,l=o.width,{height:Math.max(t.reduce(a=function(e,t){return e+t},r),0),width:Math.max(n.reduce(a,l),0)}),A=R.width,E=R.height,G=(c=e.cellMatrix.scrollableRange.columns,s=S(e).left,d=Math.max(Q(c,(u=M(e.scrollableElement).scrollLeft)-s-300)-1-1,0),p=Q(c,A+P(u,s)+300,d),c.slice(d,p+1)),k=new i((f=e.cellMatrix.scrollableRange.rows,h=S(e).top,b=Math.max(_(f,(m=M(e.scrollableElement).scrollTop)-h-400)-1-1,0),v=_(f,E+P(m,h)+400,b),f.slice(b,v+1)),G);return g(g({},e),{leftScrollBoudary:k.columns.length>0?C-300:0,rightScrollBoudary:void 0===k.last.column?0:300+C,topScrollBoudary:k.columns.length>0?w-400:0,bottomScrollBoudary:void 0===k.last.row?0:400+w,visibleRange:k})}function _(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?_(e,t,n,r):_(e,t,r+1,o)}function Q(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?Q(e,t,n,r):Q(e,t,r+1,o)}function K(e,t){var n=e.horizontalStickyBreakpoint,o=e.verticalStickyBreakpoint,r=e.stickyLeftColumns||0,i=e.stickyTopRows||0,a=e.stickyRightColumns||0,c=e.stickyBottomRows||0;if(e.stickyTopRows||e.stickyLeftColumns||e.stickyRightColumns||e.stickyBottomRows){var s=B(t.scrollableElement),u=s.width,d=s.height;if(e.stickyLeftColumns||e.stickyRightColumns){var p=e.columns.slice(0,r).reduce(function(e,t){return e+(t.width||l.DEFAULT_COLUMN_WIDTH)},0),f=0;a>0&&(f=e.columns.slice(-a).reduce(function(e,t){return e+(t.width||l.DEFAULT_COLUMN_WIDTH)},0));var h=p+f>(void 0===n?50:n)*u/100;r=h?0:r,a=h?0:a}if(e.stickyTopRows||e.stickyBottomRows){var m=e.rows.slice(0,i).reduce(function(e,t){return e+(t.height||l.DEFAULT_ROW_HEIGHT)},0),b=0;c>0&&(b=e.rows.slice(-c).reduce(function(e,t){return e+(t.height||l.DEFAULT_ROW_HEIGHT)},0));var v=m+b>(void 0===o?50:o)*d/100;i=v?0:i,c=v?0:c}}return g(g({},t),{leftStickyColumns:r,topStickyRows:i,rightStickyColumns:a,bottomStickyRows:c})}var $=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;return(null===(n=e.target)||void 0===n?void 0:n.id.startsWith("react-select-"))&&(null===(o=t.hiddenFocusElement)||void 0===o||o.focus({preventScroll:!0})),t})},this.windowResizeHandler=function(){return n.updateState(U)},this.reactgridRefHandler=function(e){return n.assignElementsRefs(e,U)},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(U)},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 G()}(e,!0);return n.props&&(n=K(n.props,n)),t(g(g({},n),{reactGridElement:e,scrollableElement:o}))})},this.updateOnScrollChange=function(e){n.updateState(function(t){if(t.disableVirtualScrolling)return t;
1var n=M(t.scrollableElement),o=n.scrollTop,r=n.scrollLeft,i=L(t),l=i.width,a=i.height;return l>0&&a>0&&(o>=t.bottomScrollBoudary-200||o<=t.topScrollBoudary+200||r>=t.rightScrollBoudary-200||r<=t.leftScrollBoudary+200)?e(t):t})}},q=function(){function e(){this.reset()}return e.prototype.reset=function(){return this.cellMatrix=new l({}),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 TypeError('Feeded ReactGrids "rows" property is not an array!');if(!Array.isArray(this.cellMatrix.props.columns))throw TypeError('Feeded ReactGrids "columns" property is not an array!');return this.cellMatrix.rows=this.cellMatrix.props.rows.reduce(function(e,n,r){var a=t.getTop(r,o,i,e),c=n.height||l.DEFAULT_ROW_HEIGHT;return e.push(g(g({},n),{top:a,height:c,idx:r,bottom:a+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 a,c,s,u,d=t.getLeft(i,n,r,e),p=o.width?o.width<(null!==(c=null===(a=t.cellMatrix.props)||void 0===a?void 0:a.minColumnWidth)&&void 0!==c?c:l.MIN_COLUMN_WIDTH)?null!==(u=null===(s=t.cellMatrix.props)||void 0===s?void 0:s.minColumnWidth)&&void 0!==u?u:l.MIN_COLUMN_WIDTH:o.width:l.DEFAULT_COLUMN_WIDTH;return e.push(g(g({},o),{idx:i,left:d,width:p,right:d+p})),t.cellMatrix.width+=p,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 l="rowspan"in n&&n.rowspan||0,c="colspan"in n&&n.colspan||0,s=new i(l?e.cellMatrix.rows.slice(o,o+l):[e.cellMatrix.rows[o]],c?e.cellMatrix.columns.slice(r,r+c):[e.cellMatrix.columns[r]]);t=h(h([],t,!0),e.getRangesToRender(s),!0),e.cellMatrix.spanCellLookup[a(r,o)]={range:s}})});var n=t.map(function(e){return a(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 i([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 i(this.cellMatrix.rows,this.cellMatrix.columns.slice(0,t||0)),this.cellMatrix.ranges.stickyTopRange=new i(this.cellMatrix.rows.slice(0,n||0),this.cellMatrix.columns),this.cellMatrix.ranges.stickyRightRange=new i(this.cellMatrix.rows,this.cellMatrix.columns.slice(this.getStickyRightFirstIdx(t,o),this.cellMatrix.columns.length)),this.cellMatrix.ranges.stickyBottomRange=new i(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 i(this.cellMatrix.rows.slice(t||0,this.get
1StickyBottomFirstIdx(t,o)),this.cellMatrix.columns.slice(e||0,this.getStickyRightFirstIdx(e,n)))},e.prototype.getStickyBottomFirstIdx=function(e,t){var n=t||0,o=this.cellMatrix.props.rows.length;return o-(n+(e||0)>o?0:n)},e.prototype.getStickyRightFirstIdx=function(e,t){var n=t||0,o=this.cellMatrix.props.columns.length;return o-(n+(e||0)>o?0:n)},e.prototype.getCellMatrix=function(){var e=this.cellMatrix;return this.reset(),e},e}(),ee=function(e,t,n){var o=e[t];if(null==o)throw Error("Cell is missing property '".concat(String(t),"'"));if(typeof o!==n)throw Error("Property '".concat(String(t),"' expected to be of type '").concat(n,"' but is '").concat(typeof o,"'"));return o},et=function(){function e(){}return e.prototype.getCompatibleCell=function(e){var t=ee(e,"checked","boolean"),n=t?e.checkedText?e.checkedText:"1":e.uncheckedText?e.uncheckedText:"";return g(g({},e),{checked:!!t,value:t?1:NaN,text:n})},e.prototype.handleKeyDown=function(e,t,n,o,r){return o||t!==w.SPACE&&t!==w.ENTER?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(this.toggleCheckboxCell(e)),enableEditMode:!1}},e.prototype.toggleCheckboxCell=function(e){return this.getCompatibleCell(g(g({},e),{checked:!e.checked}))},e.prototype.update=function(e,t){var n="checkbox"===t.type?t.checked:!!t.value;return this.getCompatibleCell(g(g({},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",{type:"checkbox",checked:e.checked,onChange:function(t){return n(r.toggleCheckboxCell(e),!0)}}),o.createElement("span",null))},e}(),en=function(e){return e>=w.KEY_0&&e<=w.KEY_Z||er(e)||e>=w.MULTIPLY&&e<=w.DIVIDE||e>=w.SEMICOLON&&e<=w.SINGLE_QUOTE||e===w.SPACE},eo=function(e){return e>=w.KEY_0&&e<=w.KEY_9||er(e)},er=function(e){return e>=w.NUMPAD_0&&e<=w.NUMPAD_9},ei=function(e){return null!==e.match(/[\d.,+-]/)},el=function(e){return e===w.LEFT_ARROW||e===w.RIGHT_ARROW||e===w.UP_ARROW||e===w.DOWN_ARROW||e===w.END||e===w.HOME||e===w.BACKSPACE||e===w.DELETE},ea=function(e,t){return""!==t&&(t=es()),Date.parse("".concat(t&&"".concat(t," ")).concat(e))},ec=function(e){return e.toString().padStart(2,"0")},es=function(){return N()||T()?"1970/01/01":"1970-01-01"},eu=[];eu[8]="",eu[9]="",eu[13]="\n",eu[16]="",eu[17]="",eu[18]="",eu[19]="",eu[20]="",eu[27]="",eu[32]=" ",eu[33]="",eu[34]="",eu[35]="",eu[36]="",eu[37]="",eu[38]="",eu[39]="",eu[40]="",eu[45]="",eu[46]="",eu[48]=")",eu[49]="!",eu[50]="@",eu[51]="#",eu[52]="$",eu[53]="%",eu[54]="^",eu[55]="&",eu[56]="*",eu[57]="(",eu[59]=":",eu[61]="+",eu[65]="A",eu[66]="B",eu[67]="C",eu[68]="D",eu[69]="E",eu[70]="F",eu[71]="G",eu[72]="H",eu[73]="I",eu[74]="J",eu[75]="K",eu[76]="L",eu[77]="M",eu[78]="N",eu[79]="O",eu[80]="P",eu[81]="Q",eu[82]="R",eu[83]="S",eu[84]="T",eu[85]="U",eu[86]="V",eu[87]="W",eu[88]="X",eu[89]="Y",eu[90]="Z",eu[91]="",eu[92]="",eu[93]="",eu[96]="0",eu[97]="1",eu[98]="2",eu[99]="3",eu[100]="4",eu[101]="5",eu[102]="6",eu[103]="7",eu[104]="8",eu[105]="9",eu[106]="*",eu[107]="+",eu[109]="_",eu[107]="+",eu[111]="/",eu[112]="",eu[113]="",eu[114]="",eu[115]="",eu[116]="",eu[117]="",eu[118]="",eu[119]="",eu[120]="",eu[121]="",eu[122]="",eu[123]="",eu[144]="",eu[145]="",eu[186]=":",eu[187]="+",eu[188]="<",eu[189]="_",eu[190]=">",eu[191]="?",eu[192]="~",eu[219]="{",eu[220]="|",eu[221]="}",eu[222]='"';var ed=[];ed[8]="",ed[9]="",ed[13]="\n",ed[16]="",ed[17]="",ed[18]="",ed[19]="",ed[20]="",ed[27]="",ed[32]=" ",ed[33]="",ed[34]="",ed[35]="",ed[36]="",ed[37]="",ed[38]="",ed[39]="",ed[40]="",ed[45]="",ed[46]="",ed[48]="0",ed[49]="1",ed[50]="2",ed[51]="3",ed[52]="4",ed[53]="5",ed[54]="6",ed[55]="7",ed[56]="8",ed[57]="9",ed[59]=";",ed[61]="=",ed[65]="a",ed[66]="b",ed[67]="c",ed[68]="d",ed[69]="e",ed[70]="f",ed[71]="g",ed[72]="h",ed[73]="i",ed[74]="j",ed[75]="k",ed[76]="l",ed[77]="m",ed[78]="n",ed[79]="o",ed[80]="p",ed[81]="q",ed[82]="r",ed[83]="s",ed[84]="t",ed[85]="u",ed[86]="v",ed[87]="w",ed[88]="x",ed[89]="y",ed[90]="z",ed[91]="",ed[92]="",ed[93]="",ed[96]="0",ed[97]="1",ed[98]="2",ed[99]="3",ed[100]="4",ed[101]="5",ed[102]="6",ed[103]="7",ed[104]="8",ed[105]="9",ed[106]="*",ed[107]="+",ed[109]="_",ed[107]="+",ed[111]="/",ed[112]="",ed[113]="",ed[114]="",ed[115]="",ed[116]="",ed[117]="",ed[118]="",ed[119]="",ed[120]="",ed[121]="",ed[122]="",ed[123]="",ed[144]="",ed[145]="",ed[186]=";",ed[187]="=",ed[188]=",",ed[189]="-",ed[190]=".",ed[191]="/",ed[192]="`",ed[219]="[",ed[220]="\\",ed[221]="]",ed[222]="'";var eg=function(e,t){void 0===t&&(t=!1);var n=navigator.language||"en-US";return t?e.toLocaleUpperCase(n):e.toLocaleLowerCase(n)},ep=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t=e.date?ee(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 g(g({},e),{date:t,value:o,text:r})},e.prototype.handleKeyDown=function(e,t,n,o,r,i){return n||null===eg(i).match(/^[a-zA-Z0-9]$/)?{cell:e,enableEditMode:t===w.POINTER||t===w.ENTER}:{cell:this.getCompatibleCell(g({},e)),enableEditMode:!0}},e.prototype.update=function(e,t){return this.getCompatibleCell(g(g({},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=ec(e.date.getFullYear()),l=ec(e.date.getMonth()+1),a=ec(e.date.getDate());return o.createElement("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(g(g({},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(g(g({},e),{date:new Date(i,l-1,a)})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1}},onKeyDown:function(e){(eo(e.keyCode)||el(e.keyCode)||e.keyCode===w.COMMA||e.keyCode===w.PERIOD||(e.ctrlKey||e.metaKey)&&e.keyCode===w.KEY_A)&&e.stopPropagation(),eo(e.keyCode)||el(e.keyCode)||e.keyCode===w.COMMA||e.keyCode===w.PERIOD||e.preventDefault(),e.keyCode===w.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}(),ef=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t=ee(e,"text","string"),n=parseFloat(t);return g(g({},e),{text:t,value:n})},e.prototype.handleKeyDown=function(e,t,n,o,r,i){var l=eg(i,o);return n||r||!en(t)||o&&t===w.SPACE?{cell:e,enableEditMode:t===w.POINTER||t===w.ENTER}:{cell:g(g({},e),{text:l}),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(e,t){return{cell:g(g({},e),{text:t}),enableEditMode:!0}},e.prototype.update=function(e,t){return this.getCompatibleCell(g(g({},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",{ref:function(e){e&&e.focus()},onChange:function(t){return n(r.getCompatibleCell(g(g({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){n(r.getCompatibleCell(g(g({},e),{text:t.currentTarget.value})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1},onKeyDown:function(e){(en(e.keyCode)||el(e.keyCode))&&e.stopPropagation(),e.keyCode===w.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}(),eh=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t=ee(e,"text","string"),n=!1;try{n=ee(e,"isExpanded","boolean")}catch(e){n=!0}var o=-1;try{o=ee(e,"indent","number")}catch(e){o=0}var r=!1;try{r=ee(e,"hasChildren","boolean")}catch(e){r=!1}var i=parseFloat(t);return g(g({},e),{text:t,value:i,isExpanded:n,indent:o,hasChildren:r})},e.prototype.update=function(e,t){return this.getCompatibleCell(g(g({},e),{isExpanded:t.isExpanded,text:t.text}))},e.prototype.handleKeyDown=function(e,t,n,o,r,i){var l=t===w.POINTER||t===w.ENTER,a=g({},e),c=eg(i,o);return t!==w.SPACE||void 0===a.isExpanded||o?n||r||!en(t)||o&&t===w.SPACE||(a.text=c,l=!0):a.isExpanded=!a.isExpanded,{cell:a,enableEditMode:l}},e.prototype.handleCompositionEnd=function(e,t){return{cell:g(g({},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",{ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:e.text,onChange:function(t){return n(r.getCompatibleCell(g(g({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){n(r.getCompatibleCell(g(g({},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){(en(e.keyCode)||el(e.keyCode))&&e.stopPropagation(),e.keyCode===w.ESCAPE&&(r.wasEscKeyPressed=!0)}}):o.createElement(o.Fragment,null,e.hasChildren?o.createElement("div",{className:"chevron",onPointerDown:function(t){t.stopPropagation(),n(r.getCompatibleCell(g(g({},e),{isExpanded:!e.isExpanded})),!0)}},o.createElement("span",{className:"icon"},"â¯")):o.createElement("div",{className:"no-child"}),e.text)},e}(),em=function(){function e(){this.isFocusable=function(e){return!1}
1,this.getStyle=function(e){return{background:"rgba(128, 128, 128, 0.1)"}}}return e.prototype.getCompatibleCell=function(e){var t=ee(e,"text","string"),n=parseFloat(t);return g(g({},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}(),eb=function(){function e(){this.wasEscKeyPressed=!1,this.getTextFromCharCode=function(e){switch(e.charCodeAt(0)){case w.DASH:case w.FIREFOX_DASH:case w.SUBTRACT:return"-";case w.COMMA:return",";case w.PERIOD:case w.DECIMAL:return".";default:return e}}}return e.prototype.getCompatibleCell=function(e){try{t=ee(e,"value","number")}catch(e){t=NaN}var t,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 g(g({},e),{value:o,text:r})},e.prototype.handleKeyDown=function(e,t,n,o,r,i){er(t)&&(t-=48);var l=eg(i);if(!n&&ei(l)){var a=Number(l);return Number.isNaN(a)&&ei(l)?{cell:g(g({},this.getCompatibleCell(g(g({},e),{value:a}))),{text:l}),enableEditMode:!0}:{cell:this.getCompatibleCell(g(g({},e),{value:a})),enableEditMode:!0}}return{cell:e,enableEditMode:t===w.POINTER||t===w.ENTER}},e.prototype.update=function(e,t){return this.getCompatibleCell(g(g({},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",{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(g(g({},e),{value:parseFloat(t.currentTarget.value.replace(/,/g,"."))})),!1)},onBlur:function(t){n(l.getCompatibleCell(g(g({},e),{value:parseFloat(t.currentTarget.value.replace(/,/g,"."))})),!l.wasEscKeyPressed),l.wasEscKeyPressed=!1},onKeyDown:function(e){var t;(eo(e.keyCode)||el(e.keyCode)||(t=e.keyCode)>=w.COMMA&&t<=w.PERIOD||t===w.DECIMAL||t===w.SUBTRACT||t===w.FIREFOX_DASH||(e.ctrlKey||e.metaKey)&&e.keyCode===w.KEY_A)&&e.stopPropagation(),eo(e.keyCode)||el(e.keyCode)||ei(eg(e.key))||e.preventDefault(),e.keyCode===w.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}(),ev=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(e){var t,n=ee(e,"text","string");try{t=ee(e,"placeholder","string")}catch(e){t=""}var o=parseFloat(n);return g(g({},e),{text:n,value:o,placeholder:t})},e.prototype.update=function(e,t){return this.getCompatibleCell(g(g({},e),{text:t.text,placeholder:t.placeholder}))},e.prototype.handleKeyDown=function(e,t,n,o,r,i){var l=eg(i,o);return n||r||!en(t)||o&&t===w.SPACE?{cell:e,enableEditMode:t===w.POINTER||t===w.ENTER}:{cell:this.getCompatibleCell(g(g({},e),{text:l})),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(e,t){return{cell:g(g({},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",{ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:e.text,onChange:function(t){return n(r.getCompatibleCell(g(g({},e),{text:t.currentTarget.value})),!1)},onBlur:function(t){n(r.getCompatibleCell(g(g({},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){(en(e.keyCode)||el(e.keyCode))&&e.stopPropagation(),e.keyCode===w.ESCAPE&&(r.wasEscKeyPressed=!0)}})},e}(),ey=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=t.time?ee(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 g(g({},t),{time:n,value:r,text:i})},e.prototype.handleKeyDown=function(e,t,n,o,r,i){return!n&&ei(eg(i))?{cell:this.getCompatibleCell(g({},e)),enableEditMode:!0}:{cell:e,enableEditMode:t===w.POINTER||t===w.ENTER}},e.prototype.update=function(e,t){var n=ea(t.text);return""===t.text||Number.isNaN(n)?this.getCompatibleCell(g(g({},e),{time:new Date(t.value)})):this.getCompatibleCell(g(g({},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=ec(e.time.getHours()),l=ec(e.time.getMinutes());return o.createElement("input",{ref:function(e){e&&e.focus()},type:"time",defaultValue:"".concat(i,":").concat(l),onChange:function(t){var o=ea(t.currentTarget.value);Number.isNaN(o)||n(r.getCompatibleCell(g(g({},e),{time:new Date(o)})),!1)},onBlur:function(t){var o=ea(t.currentTarget.value);Number.isNaN(o)||(n(r.getCompatibleCell(g(g({},e),{time:new Date(o)})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1)},onKeyDown:function(e){(eo(e.keyCode)||el(e.keyCode)||e.keyCode===w.COMMA||e.keyCode===w.PERIOD||(e.ctrlKey||e.metaKey)&&e.keyCode===w.KEY_A)&&e.stopPropagation(),eo(e.keyCode)||el(e.keyCode)||e.keyCode===w.COMMA||e.keyCode===w.PERIOD||e.preventDefault(),e.keyCode===w.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=es(),e}();function ex(e){return(ex="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 eI(e){var t=function(e,t){if("object"!==ex(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==ex(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ex(t)?t:String(t)}
1function ew(e,t,n){return(t=eI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eC(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 eR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(n),!0).forEach(function(t){ew(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function eE(e,t){if(e){if("string"==typeof e)return eA(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)?eA(e,t):void 0}}function eM(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)||eE(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eG(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ek=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function eN(){return(eN=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 eT(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,eI(o.key),o)}}function eB(e,t){return(eB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}
1function eS(e){return(eS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eL(e){return function(e){if(Array.isArray(e))return eA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eE(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eP=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(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1],o=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(o&&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||!o,this.isSpeedy){var r=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]}(n);try{r.insertRule(e,r.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 n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,436 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),eW="-ms-",eX="-moz-",eF="-webkit-",eZ="comm",eV="rule",eH="decl",eO="@keyframes",eD=Math.abs,eY=String.fromCharCode,ez=Object.assign;function eJ(e,t,n){return e.replace(t,n)}function ej(e,t){return e.indexOf(t)}function eU(e,t){return 0|e.charCodeAt(t)}function e_(e,t,n){return e.slice(t,n)}function eQ(e){return e.length}function eK(e,t){return t.push(e),e}var e$=1,eq=1,e0=0,e1=0,e9=0,e2="";function e4(e,t,n,o,r,i,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:e$,column:eq,length:l,return:""}}function e5(e,t){return ez(e4("",null,null,"",null,null,0),e,{length:-e.length},t)}function e3(){return e9=e1<e0?eU(e2,e1++):0,eq++,10===e9&&(eq=1,e$++),e9}function e6(){return eU(e2,e1)}function e8(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 e7(e){return e$=eq=1,e0=eQ(e2=e),e1=0,[]}function te(e){var t,n;return(t=e1-1,n=function e(t){for(;e3();)switch(e9){case t:return e1;case 34:case 39:34!==t&&39!==t&&e(e9);break;case 40:41===t&&e(t);break;case 92:e3()}return e1}(91===e?e+2:40===e?e+1:e),e_(e2,t,n)).trim()}function tt(e){var t;return t=function e(t,n,o,r,i,l,a,c,s){for(var u,d=0,g=0,p=a,f=0,h=0,m=0,b=1,v=1,y=1,x=0,I="",w=i,C=l,R=r,A=I;v;)switch(m=x,x=e3()){case 40:if(108!=m&&58==eU(A,p-1)){-1!=ej(A+=eJ(te(x),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:A+=te(x);break;case 9:case 10:case 13:case 32:A+=function(e){for(;(e9=e6())&&e9<33;)e3();return e8(e)>2||e8(e9)>3?"":" "}(m);break;case 92:A+=function(e,t){for(var n;--t&&e3()&&!(e9<48||e9>102||e9>57&&e9<65||e9>70&&e9<97););return n=e1+(t<6&&32==e6()&&32==e3()),e_(e2,e,n)}(e1-1,7);continue;case 47:switch(e6()){case 42:case 47:eK(e4(u=function(e,t){for(;e3()&&e+e9!==57&&(e+e9!==84||47!==e6()););return"/*"+e_(e2,t,e1-1)+"*"+eY(47===e?e:e3())}(e3(),e1),n,o,eZ,eY(e9),e_(u,2,-2),0),s);break;default:A+="/"}break;case 123*b:c[d++]=eQ(A)*y;case 125*b:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+g:-1==y&&(A=eJ(A,/\f/g,"")),h>0&&eQ(A)-p&&eK(h>32?to(A+";",r,o,p-1):to(eJ(A," ","")+";",r,o,p-2),s);break;case 59:A+=";";default:if(eK(R=tn(A,n,o,d,g,i,c,I,w=[],C=[],p),l),123===x){if(0===g)e(A,n,R,R,w,l,p,c,C);else switch(99===f&&110===eU(A,3)?100:f){case 100:case 108:case 109:case 115:e(t,R,R,r&&eK(tn(t,R,R,0,0,i,c,I,i,w=[],p),C),i,C,p,c,r?w:C);break;default:e(A,R,R,R,[""],C,0,c,C)}}}d=g=h=0,b=y=1,I=A="",p=a;break;case 58:p=1+eQ(A),h=m;default:if(b<1){if(123==x)--b;else if(125==x&&0==b++&&125==(e9=e1>0?eU(e2,--e1):0,eq--,10===e9&&(eq=1,e$--),e9))continue}switch(A+=eY(x),x*b){case 38:y=g>0?1:(A+="\f",-1);break;case 44:c[d++]=(eQ(A)-1)*y,y=1;break;case 64:45===e6()&&(A+=te(e3())),f=e6(),g=p=eQ(I=A+=function(e){for(;!e8(e6());)e3();return e_(e2,e,e1)}(e1)),x++;break;case 45:45===m&&2==eQ(A)&&(b=0)}}return l}("",null,null,null,[""],e=e7(e),0,[0],e),e2="",t}function tn(e,t,n,o,r,i,l,a,c,s,u){for(var d=r-1,g=0===r?i:[""],p=g.length,f=0,h=0,m=0;f<o;++f)for(var b=0,v=e_(e,d+1,d=eD(h=l[f])),y=e;b<p;++b)(y=(h>0?g[b]+" "+v:eJ(v,/&\f/g,g[b])).trim())&&(c[m++]=y);return e4(e,t,n,0===r?eV:a,c,s,u)}function to(e,t,n,o){return e4(e,t,n,eH,e_(e,0,o),e_(e,o+1,-1),o)}function tr(e,t){for(var n="",o=e.length,r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function ti(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case eH:return e.return=e.return||e.value;case eZ:return"";case eO:return e.return=e.value+"{"+tr(e.children,o)+"}";case eV:e.value=e.props.join(",")}return eQ(n=tr(e.children,o))?e.return=e.value+"{"+n+"}":""}function tl(e){var t=e.length;return function(n,o,r,i){for(var l="",a=0;a<t;a++)l+=e[a](n,o,r,i)||"";return l}}function ta(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var tc,ts,tu,td=function(e,t,n){for(var o=0,r=0;o=r,r=e6(),38===o&&12===r&&(t[n]=1),!e8(r);)e3();return e_(e2,e,e1)},tg=function(e,t){var n;return n=function(e,t){var n=-1,o=44;do switch(e8(o)){case 0:38===o&&12===e6()&&(t[n]=1),e[n]+=td(e1-1,t,n);break;case 2:e[n]+=te(o);break;case 4:if(44===o){e[++n]=58===e6()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=eY(o)}while(o=e3());return e}(e7(e),t),e2="",n},tp=new WeakMap,tf=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)||tp.get(n))&&!o){tp.set(e,!0);for(var r=[],i=tg(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]}}},th=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},tm=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},tb=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},tv=function(e,t,n){tm(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."),tb(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!tm(t[n]))return!0;return!1}
1(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),tb(e)))},ty="undefined"!=typeof document,tx=ty?void 0:(ts=function(){return ta(function(){var e={};return function(t){return e[t]}})},tu=new WeakMap,function(e){if(tu.has(e))return tu.get(e);var t=ts(e);return tu.set(e,t),t}),tI=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case eH:e.return=function e(t,n){switch(45^eU(t,0)?(((n<<2^eU(t,0))<<2^eU(t,1))<<2^eU(t,2))<<2^eU(t,3):0){case 5103:return eF+"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 eF+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return eF+t+eX+t+eW+t+t;case 6828:case 4268:return eF+t+eW+t+t;case 6165:return eF+t+eW+"flex-"+t+t;case 5187:return eF+t+eJ(t,/(\w+).+(:[^]+)/,eF+"box-$1$2"+eW+"flex-$1$2")+t;case 5443:return eF+t+eW+"flex-item-"+eJ(t,/flex-|-self/,"")+t;case 4675:return eF+t+eW+"flex-line-pack"+eJ(t,/align-content|flex-|-self/,"")+t;case 5548:return eF+t+eW+eJ(t,"shrink","negative")+t;case 5292:return eF+t+eW+eJ(t,"basis","preferred-size")+t;case 6060:return eF+"box-"+eJ(t,"-grow","")+eF+t+eW+eJ(t,"grow","positive")+t;case 4554:return eF+eJ(t,/([^-])(transform)/g,"$1"+eF+"$2")+t;case 6187:return eJ(eJ(eJ(t,/(zoom-|grab)/,eF+"$1"),/(image-set)/,eF+"$1"),t,"")+t;case 5495:case 3959:return eJ(t,/(image-set\([^]*)/,eF+"$1$`$1");case 4968:return eJ(eJ(t,/(.+:)(flex-)?(.*)/,eF+"box-pack:$3"+eW+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+eF+t+t;case 4095:case 3583:case 4068:case 2532:return eJ(t,/(.+)-inline(.+)/,eF+"$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(eQ(t)-1-n>6)switch(eU(t,n+1)){case 109:if(45!==eU(t,n+4))break;case 102:return eJ(t,/(.+:)(.+)-([^]+)/,"$1"+eF+"$2-$3$1"+eX+(108==eU(t,n+3)?"$3":"$2-$3"))+t;case 115:return~ej(t,"stretch")?e(eJ(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==eU(t,n+1))break;case 6444:switch(eU(t,eQ(t)-3-(~ej(t,"!important")&&10))){case 107:return eJ(t,":",":"+eF)+t;case 101:return eJ(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+eF+(45===eU(t,14)?"inline-":"")+"box$3$1"+eF+"$2$3$1"+eW+"$2box$3")+t}break;case 5936:switch(eU(t,n+11)){case 114:return eF+t+eW+eJ(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
1case 108:return eF+t+eW+eJ(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return eF+t+eW+eJ(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return eF+t+eW+t+t}return t}(e.value,e.length);break;case eO:return tr([e5(e,{value:eJ(e.value,"@","@"+eF)})],o);case eV:if(e.length){var r,i;return r=e.props,i=function(t){var n;switch((n=/(::plac\w+|:read-\w+)/.exec(n=t))?n[0]:n){case":read-only":case":read-write":return tr([e5(e,{props:[eJ(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return tr([e5(e,{props:[eJ(t,/:(plac\w+)/,":"+eF+"input-$1")]}),e5(e,{props:[eJ(t,/:(plac\w+)/,":-moz-$1")]}),e5(e,{props:[eJ(t,/:(plac\w+)/,eW+"input-$1")]})],o)}return""},r.map(i).join("")}}}],tw=function(e){var t=e.key;if(!t)throw 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(ty&&"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||tI;if(/[^a-z-]/.test(t))throw Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r,i,l={},a=[];ty&&(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=[tf,th];if(c.push((s={get compat(){return m.compat}},function(e,t,n){if("rule"===e.type&&!s.compat){var o=e.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var r=e.parent?e.parent.children:n,i=r.length-1;i>=0;i--){var l=r[i];if(l.line<e.line)break;if(l.column<e.column){if("comm"===l.type&&l.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1)return;break}}o.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".')})}}}),tv),ty){var s,u,d=[ti,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==eZ&&u.insert(e.value+"{}"))}],g=tl(c.concat(o,d));i=function(e,t,n,o){u=n,void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),tr(tt(e?e+"{"+t.styles+"}":t.styles),g),o&&(m.inserted[t.name]=!0)}}else{var p=tl(c.concat(o,[ti])),f=tx(o)(t),h=function(e,t){var n=t.name;return void 0===f[n]&&(f[n]=tr(tt(e?e+"{"+t.styles+"}":t.styles),p)),f[n]};i=function(e,t,n,o){var r=t.name,i=h(e,t);return void 0===m.compat?(o&&(m.inserted[r]=!0),void 0!==t.map?i+t.map:i):o?void(m.inserted[r]=i):i}}var m={key:t,sheet:new eP({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return m.sheet.hydrate(a),m};function tC(e){var t={exports:{}};return e(t,t.exports),t.exports}var tR=tC(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 x(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 I=!1;function w(e){return x(e)===u}t.AsyncMode=s,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=a,t.Element=n,t.ForwardRef=d,t.Fragment=r,t.Lazy=h,t.Memo=f,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=g,t.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your co
1de to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),w(e)||x(e)===s},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===r},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===f},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===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=x}()}),tA=tC(function(e){e.exports=tR}),tE={};tE[tA.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tE[tA.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var tM="undefined"!=typeof document;function tG(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "}),o}var tk=function(e,t,n){var o=e.key+"-"+t.name;(!1===n||!1===tM&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},tN=function(e,t,n){tk(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);tM||void 0===l||(r+=l),i=i.next}while(void 0!==i);if(!tM&&0!==r.length)return r}},tT={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},tB="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",tS=/[A-Z]|^ms/g,tL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tP=function(e){return 45===e.charCodeAt(1)},tW=function(e){return null!=e&&"boolean"!=typeof e},tX=ta(function(e){return tP(e)?e:e.replace(tS,"-$&").toLowerCase()}),tF=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(tL,function(e,t,n){return tU={name:t,styles:n,next:tU},t})}return 1===tT[e]||tP(e)||"number"!=typeof t||0===t?t:t+"px"},tZ=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,tV=["normal","none","initial","inherit","unset"],tH=tF,tO=/^-ms-/,tD=/-(.)/g,tY={};tF=function(e,t){if("content"===e&&("string"!=typeof t||-1===tV.indexOf(t)&&!tZ.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=tH(e,t);return""===n||tP(e)||-1===e.indexOf("-")||void 0!==tY[e]||(tY[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(tO,"ms-").replace(tD,function(e,t){return t.toUpperCase()})+"?")),n};var tz="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tJ(e,t,n){if(null==n)return"";
1if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===n.toString())throw Error(tz);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return tU={name:n.name,styles:n.styles,next:tU},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)tU={name:o.name,styles:o.styles,next:tU},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+=tJ(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]+"}":tW(l)&&(o+=tX(i)+":"+tF(i,l)+";");else{if("NO_COMPONENT_SELECTOR"===i)throw Error(tz);if(Array.isArray(l)&&"string"==typeof l[0]&&(null==t||void 0===t[l[0]]))for(var a=0;a<l.length;a++)tW(l[a])&&(o+=tX(i)+":"+tF(i,l[a])+";");else{var c=tJ(e,t,l);switch(i){case"animation":case"animationName":o+=tX(i)+":"+c+";";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+"{"+c+"}"}}}}return o}(e,t,n);case"function":if(void 0!==e){var i=tU,l=n(e);return tU=i,tJ(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(tL,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 tj,tU,t_=/label:\s*([^\s;\n{]+)\s*(;|$)/g;tj=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var tQ=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="";tU=void 0;var i,l=e[0];null==l||void 0===l.raw?(o=!1,r+=tJ(n,t,l)):(void 0===l[0]&&console.error(tB),r+=l[0]);for(var a=1;a<e.length;a++)r+=tJ(n,t,e[a]),o&&(void 0===l[a]&&console.error(tB),r+=l[a]);r=r.replace(tj,function(e){return i=e,""}),t_.lastIndex=0;for(var c,s="";null!==(c=t_.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:tU,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)."}}},tK="undefined"!=typeof document,t$=!!o.useInsertionEffect&&o.useInsertionEffect,tq=tK&&t$||function(e){return e()},t0=t$||o.useLayoutEffect,t1="undefined"!=typeof document,t9={}.hasOwnProperty,t2=o.createContext("undefined"!=typeof HTMLElement?tw({key:"css"}):null);t2.displayName="EmotionCacheContext",t2.Provider;var t4=function(e){return(0,o.forwardRef)(function(t,n){return e(t,(0,o.useContext)(t2),n)})};t1||(t4=function(e){return function(t){var n=(0,o.useContext)(t2);return null===n?(n=tw({key:"css"}),o.createElement(t2.Provider,{value:n},e(t,n))):e(t,n)}});var t5=o.createContext({});t5.displayName="EmotionThemeContext";var t3=function(e){var t=e.split(".");return t[t.length-1]},t6=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?t3(t[1]):void 0},t8=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),t7="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ne="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",nt=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw 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={};
1for(var o in t)t9.call(t,o)&&(n[o]=t[o]);if(n[t7]=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=t6(t[n]);if(o){if(t8.has(o))break;if(/^[A-Z]/.test(o))return o.replace(/\$/g,"-")}}}(Error().stack);r&&(n[ne]=r)}return n},nn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;tk(t,n,r);var i=tq(function(){return tN(t,n,r)});if(!t1&&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},no=t4(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[t7],l=[r],a="";"string"==typeof e.className?a=tG(t.registered,l,e.className):null!=e.className&&(a=e.className+" ");var c=tQ(l,void 0,o.useContext(t5));if(-1===c.name.indexOf("-")){var s=e[ne];s&&(c=tQ([c,"label:"+s+";"]))}a+=t.key+"-"+c.name;var u={};for(var d in e)t9.call(e,d)&&"css"!==d&&d!==t7&&d!==ne&&(u[d]=e[d]);return u.ref=n,u.className=a,o.createElement(o.Fragment,null,o.createElement(nn,{cache:t,serialized:c,isStringTag:"string"==typeof i}),o.createElement(i,u))});no.displayName="EmotionCssPropInternal";var nr=function(e,t){var n=arguments;if(null==t||!t9.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=no,i[1]=nt(e,t);for(var l=2;l<r;l++)i[l]=n[l];return o.createElement.apply(null,i)},ni=!1;function nl(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return tQ(t)}t4(function(e,t){!ni&&(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?"),ni=!0);var n=tQ([e.styles],void 0,o.useContext(t5));if(!t1){for(var r,i=n.name,l=n.styles,a=n.next;void 0!==a;)i+=" "+a.name,l+=a.styles,a=a.next;var c=!0===t.compat,s=t.insert("",{name:i,styles:l},t.sheet,c);return c?null:o.createElement("style",((r={})["data-emotion"]=t.key+"-global "+i,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var u=o.useRef();return t0(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),u.current=[o,r],function(){o.flush()}},[t]),t0(function(){var e=u.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&tN(t,n.next,!0),o.tags.length){var r=o.tags[o.tags.length-1].nextElementSibling;o.before=r,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null}).displayName="EmotionGlobal";var na=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},nc=function(e){var t,n=e.cache,r=e.serializedArr,i=tq(function(){for(var e="",t=0;t<r.length;t++){var o=tN(n,r[t],!1);t1||void 0===o||(e+=o)}if(!t1)return e});return t1||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))};t4(function(e,t){var n=!1,r=[],i=function(){if(n)throw Error("css can only be used during render");for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];var l=tQ(o,t.registered);return r.push(l),tk(t,l,!1),t.key+"-"+l.name},l={css:i,cx:function(){if(n)throw Error("cx can only be used during render");for(var e,o,r,l=arguments.length,a=Array(l),c=0;c<l;c++)a[c]=arguments[c];return r=tG(t.registered,o=[],e=na(a)),o.length<2?e:r+i(o)},theme:o.useContext(t5)},a=e.children(l);return n=!0,o.createElement(o.Fragment,null,o.createElement(nc,{cache:t,serializedArr:r}),a)}).displayName="EmotionClassNames";var ns="undefined"!=typeof document,nu="undefined"!=typeof jest||"undefined"!=typeof vi;if(ns&&!nu){var nd="undefined"!=typeof globalThis?globalThis:ns?window:n.g,ng="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";nd[ng]&&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."),nd[ng]=!0}let np=Math.min,nf=Math.max,nh=Math.round,nm=Math.floor,nb=e=>({x:e,y:e});function nv(e){return nI(e)?(e.nodeName||"").toLowerCase():"#document"}function ny(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nx(e){var t;return null==(t=(nI(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nI(e){return e instanceof Node||e instanceof ny(e).Node}function nw(e){return e instanceof Element||e instanceof ny(e).Element}function nC(e){return e instanceof HTMLElement||e instanceof ny(e).HTMLElement}function nR(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ny(e).ShadowRoot)}function nA(e){let{overflow:t,overflowX:n,overflowY:o,display:r}=nE(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function nE(e){return ny(e).getComputedStyle(e)}function nM(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=function(e){if("html"===nv(e))return e;let t=e.assignedSlot||e.parentNode||nR(e)&&e.host||nx(e);return nR(t)?t.host:t}(t);return["html","body","#document"].includes(nv(n))?t.ownerDocument?t.ownerDocument.body:t.body:nC(n)&&nA(n)?n:e(n)}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ny(o);
1return r?t.concat(i,i.visualViewport||[],nA(o)?o:[]):t.concat(o,nM(o))}function nG(e){return nw(e)?e:e.contextElement}function nk(e){let t=nG(e);if(!nC(t))return nb(1);let n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){let t=nE(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=nC(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,a=nh(n)!==i||nh(o)!==l;return a&&(n=i,o=l),{width:n,height:o,$:a}}(t),l=(i?nh(n.width):n.width)/o,a=(i?nh(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let nN=nb(0);function nT(e,t,n,o){var r,i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=nG(e),c=nb(1);t&&(o?nw(o)&&(c=nk(o)):c=nk(e));let s=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==ny(a))&&i)?function(e){let t=ny(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nN}(a):nb(0),u=(l.left+s.x)/c.x,d=(l.top+s.y)/c.y,g=l.width/c.x,p=l.height/c.y;if(a){let e=ny(a),t=o&&nw(o)?ny(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=nk(n),t=n.getBoundingClientRect(),o=nE(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,d*=e.y,g*=e.x,p*=e.y,u+=r,d+=i,n=ny(n).frameElement}}return{...r={width:g,height:p,x:u,y:d},top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}var nB="undefined"!=typeof document?o.useLayoutEffect:o.useEffect,nS=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],nL=function(){};function nP(e,t){for(var n=arguments.length,o=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(l?"-"===l[0]?e+l:e+"__"+l:e));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var nW=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===ex(e)&&null!==e?[e]:[]},nX=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,eR({},eG(e,nS))},nF=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 nZ(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function nV(e){return nZ(e)?window.pageYOffset:e.scrollTop}function nH(e,t){nZ(e)?window.scrollTo(0,t):e.scrollTop=t}function nO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nL,r=nV(e),i=t-r,l=0;!function t(){var a;nH(e,i*((a=(a=l+=10)/n-1)*a*a+1)+r),l<n?window.requestAnimationFrame(t):o(e)}()}function nD(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?nH(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&nH(e,Math.max(t.offsetTop-r,0))}function nY(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var nz=!1,nJ="undefined"!=typeof window?window:{};nJ.addEventListener&&nJ.removeEventListener&&(nJ.addEventListener("p",nL,{get passive(){return nz=!0}}),nJ.removeEventListener("p",nL,!1));var nj=nz;function nU(e){return null!=e}var n_,nQ,nK,n$=["children","innerProps"],nq=["children","innerProps"],n0=function(e){return"auto"===e?"bottom":e},n1=(0,o.createContext)(null),n9=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=((0,o.useContext)(n1)||{}).setPortalPlacement,u=(0,o.useRef)(null),d=eM((0,o.useState)(r),2),g=d[0],p=d[1],f=eM((0,o.useState)(null),2),h=f[0],m=f[1],b=c.spacing.controlHeight;return nB(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=c.getBoundingClientRect().height,d=n.getBoundingClientRect(),g=d.bottom,p=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,m=l?window.innerHeight:nZ(c)?window.innerHeight:c.
1clientHeight,b=nV(c),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=h-y,I=m-f,w=x+b,C=u-b-f,R=g-m+b+v,A=b+f-y;switch(r){case"auto":case"bottom":if(I>=p)return{placement:"bottom",maxHeight:t};if(C>=p&&!l)return i&&nO(c,R,160),{placement:"bottom",maxHeight:t};if(!l&&C>=o||l&&I>=o)return i&&nO(c,R,160),{placement:"bottom",maxHeight:l?I-v:C-v};if("auto"===r||l){var E=t,M=l?x:w;return M>=o&&(E=Math.min(M-v-a,t)),{placement:"top",maxHeight:E}}if("bottom"===r)return i&&nH(c,R),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(w>=p&&!l)return i&&nO(c,A,160),{placement:"top",maxHeight:t};if(!l&&w>=o||l&&x>=o){var G=t;return(!l&&w>=o||l&&x>=o)&&(G=l?x-y:w-y),i&&nO(c,A,160),{placement:"top",maxHeight:G}}return{placement:"bottom",maxHeight:t};default:throw 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:eR(eR({},e),{},{placement:h||n0(i),maxHeight:g})})},n2=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return eR({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},n4=["size"],n5=["innerProps","isRtl","size"],n3={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3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HRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+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)."}},n6=function(e){var t=e.size,n=eG(e,n4);return nr("svg",eN({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:n3},n))},n8=function(e){return nr(n6,eN({size:20},e),nr("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"}))},n7=function(e){return nr(n6,eN({size:20},e),nr("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"}))},oe=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.c
1olors;return eR({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},ot=function(){var e=nl.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_"}}}(n_||(nQ=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],nK||(nK=nQ.slice(0)),n_=Object.freeze(Object.defineProperties(nQ,{raw:{value:Object.freeze(nK)}})))),on=function(e){var t=e.delay,n=e.offset;return nr("span",{css:nl({animation:"".concat(ot," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiO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9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},oo=["data"],or=["innerRef","isDisabled","isHidden","inputClassName"],oi={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ol={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":eR({content:'attr(data-value) " "',visibility:"hidden",
1whiteSpace:"pre"},oi)},oa=function(e){var t=e.children;return nr("div",e.innerProps,t)},oc={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return nr("div",eN({},nF(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||nr(n8,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return nr("div",eN({ref:r},nF(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return nr("div",eN({},nF(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||nr(n7,null))},DownChevron:n7,CrossIcon:n8,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 nr("div",eN({},nF(e,"group",{group:!0}),a),nr(i,eN({},l,{selectProps:u,theme:s,getStyles:o,getClassNames:r,cx:n}),c),nr("div",null,t))},GroupHeading:function(e){var t=nX(e);t.data;var n=eG(t,oo);return nr("div",eN({},nF(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return nr("div",eN({},nF(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return nr("span",eN({},t,nF(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=nX(e),r=o.innerRef,i=o.isDisabled,l=o.isHidden,a=o.inputClassName,c=eG(o,or);return nr("div",eN({},nF(e,"input",{"input-container":!0}),{"data-value":n||""}),nr("input",eN({className:t({input:!0}
1,a),ref:r,style:eR({label:"input",color:"inherit",background:0,opacity:l?0:1,width:"100%"},oi),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=eG(e,n5);return nr("div",eN({},nF(eR(eR({},r),{},{innerProps:t,isRtl:n,size:void 0===o?4:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),nr(on,{delay:0,offset:n}),nr(on,{delay:160,offset:!0}),nr(on,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return nr("div",eN({},nF(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 nr("div",eN({},nF(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,l=e.innerProps,a=e.menuPlacement,c=e.menuPosition,s=(0,o.useRef)(null),u=(0,o.useRef)(null),d=eM((0,o.useState)(n0(a)),2),g=d[0],p=d[1],f=(0,o.useMemo)(function(){return{setPortalPlacement:p}},[]),h=eM((0,o.useState)(null),2),m=h[0],b=h[1],v=(0,o.useCallback)(function(){if(i){var e,t={bottom:(e=i.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===c?0:window.pageYOffset,o=t[g]+n;o===(null==m?void 0:m.offset)&&t.left===(null==m?void 0:m.rect.left)&&t.width===(null==m?void 0:m.rect.width)||b({offset:o,rect:t})}},[i,c,g,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);nB(function(){v()},[v]);var y=(0,o.useCallback)(function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&s.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=nG(e),u=r||i?[...s?nM(s):[],...nM(t)]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let d=s&&a?function(e,t){let n,o=null,r=nx(e);function i(){clearTimeout(n),o&&o.disconnect(),o=null}return function l(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();let{left:s,top:u,width:d,height:g}=e.getBoundingClientRect();if(a||t(),!d||!g)return;let p={rootMargin:-nm(u)+"px "+-nm(r.clientWidth-(s+d))+"px "+-nm(r.clientHeight-(u+g))+"px "+-nm(s)+"px",threshold:nf(0,np(1,c))||1},f=!0;function h(e){let t=e[0].intersectionRatio;if(t!==c){if(!f)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},100)}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,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(()=>{f&&f.observe(t)})),n()}),s&&!c&&f.observe(s),f.observe(t));let h=c?nT(e):null;return c&&function t(){let o=nT(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(),()=>{u.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),d&&d(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(g)}}(i,s.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);nB(function(){y()},[y]);var x=(0,o.useCallback)(function(e){s.current=e,y()},[y]);if(!t&&"fixed"!==c||!m)return null;var I=nr("div",eN({ref:x},nF(eR(eR({},e),{},{offset:m.offset,position:c,rect:m.rect}),"menuPortal",{"menu-portal":!0}),l),n);return nr(n1.Provider,{value:f},t?(0,r.createPortal)(I,t):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=eG(e,nq);return nr("div",eN({},nF(eR(eR({},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=eG(e,n$);return nr("div",eN({},nF(eR(eR({},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 nr(c,{data:o,innerProps:eR(eR({},nF(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:a},nr(s,{data:o,innerProps:eR({},nF(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),nr(u,{data:o,innerProps:eR(eR({},nF(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:a}))},MultiValueContainer:oa,MultiValueLabel:oa,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return nr("div",eN({role:"button"},n),t||nr(n8,{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 nr("div",eN({},nF(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 nr("div",eN({},nF(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return nr("div",eN({},nF(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return nr("div",eN({},nF(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 nr("div",eN({},nF(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},os=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ou(e,t){if(e.length!==t.length)return!1;for(var n,o,r=0;r<e.length;r++)if(!((n=e[r])===(o=t[r])||os(n)&&os(o)))return!1;return!0}for(var od={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7
1IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+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)."}},og=function(e){return nr("span",eN({css:od},e))},op={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.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=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(s(l,n),".");if("menu"===t){var u="".concat(c?"selected":"focused").concat(a?" disabled":"");return"option ".concat(i," ").concat(u,", ").concat(s(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},of=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=c.ariaLiveMessages,d=c.getOptionLabel,g=c.inputValue,p=c.isMulti,f=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,b=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,x=c["aria-label"],I=c["aria-live"],w=(0,o.useMemo)(function(){return eR(eR({},op),u||{})},[u]),C=(0,o.useMemo)(function(){var e="";if(t&&w.onChange){var n=t.option,o=t.options,r=t.removedValue,i=t.removedValues,l=t.value,c=r||n||(Array.isArray(l)?null:l),s=c?d(c):"",u=o||i||void 0,g=u?u.map(d):[],p=eR({isDisabled:c&&f(c,a),label:s,labels:g},t);e=w.onChange(p)}return e},[t,w,f,a,d]),R=(0,o.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&w.onFocus){var l={focused:t,label:d(t),isDisabled:f(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a};e=w.onFocus(l)}return e},[n,r,d,f,w,i,a]),A=(0,o.useMemo)(function(){var e="";if(m&&b.length&&w.onFilter){var t=v({count:i.length});e=w.onFilter({inputValue:g,resultsMessage:t})}return e},[i,g,m,w,b,v]),E=(0,o.useMemo)(function(){var e="";if(w.guidance){var t=r?"value":m?"menu":"input";e=w.guidance({"aria-label":x,context:t,isDisabled:n&&f(n,a),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e},[x,n,r,p,f,h,m,w,a,y]),M="".concat(R," ").concat(A," ").concat(E),G=nr(o.Fragment,null,nr("span",{id:"aria-selection"},C),nr("span",{id:"aria-context"},M)),k="initial-input-focus"===(null==t?void 0:t.action);return nr(o.Fragment,null,nr(og,{id:s},k&&G),nr(og,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text"},l&&!k&&G))},oh=[{base:"A",letters:"Aâ¶ï¼¡\xc0\xc1\xc2ẦẤẪẨ\xc3ÄÄáº°áº®áº´áº²È¦Ç \xc4ÇẢ\xc5ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄ\xc7á¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥\xc8\xc9\xcaá»áº¾á»á»áº¼Äá¸á¸ÄÄ\xcbẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©\xcc\xcd\xceĨĪĬİ\xcfḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅ\xd1á¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâO\xd2\xd3\xd4á»á»á»á»\xd5á¹È¬á¹Åá¹á¹ÅȮȰ\xd6Ȫá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬\xd8Ç¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"}
vendor: 4,240 bytes, line 1
1,{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µ\xd9\xda\xdbŨṸŪṺŬ\xdcÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲ\xddŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áº\xe0\xe1\xe2ầấẫẩ\xe3ÄÄằắẵẳȧǡ\xe4Çả\xe5Ç»ÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"},{base:"c",letters:"câï½ÄÄÄÄ\xe7á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
\xe8\xe9\xeaá»áº¿á»
á»áº½Äá¸á¸ÄÄ\xebẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½\xec\xed\xeeĩīÄ\xefḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Å\xf1á¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½\xf2\xf3\xf4á»á»á»á»\xf5á¹Èá¹Åá¹á¹Åȯȱ\xf6È«á»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«Ç\xf8Ç¿Éêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½\xdfÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½\xf9\xfa\xfbũṹūṻÅ\xfcÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³\xfdŷỹȳáº\xffá»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],om=RegExp("["+oh.map(function(e){return e.letters}).join("")+"]","g"),ob={},ov=0;ov<oh.length;ov++)for(var oy=oh[ov],ox=0;ox<oy.letters.length;ox++)ob[oy.letters[ox]]=oy.base;var oI=function(e){return e.replace(om,function(e){return ob[e]})},ow=function(e,t){void 0===t&&(t=ou);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}(oI),oC=function(e){return e.replace(/^\s+|\s+$/g,"")},oR=function(e){return"".concat(e.label," ").concat(e.value)},oA=["innerRef"];function oE(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter(function(e){var t=eM(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=eM(t,2),o=n[0],r=n[1];return e[o]=r,e},{})}(eG(e,oA),"onExited","in","enter","exit","appear");return nr("input",eN({ref:t},n,{css:nl({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQG
1Vtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var oM=function(e){e.preventDefault(),e.stopPropagation()},oG=["boxSizing","height","overflow","paddingRight","position"],ok={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function oN(e){e.preventDefault()}function oT(e){e.stopPropagation()}function oB(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function oS(){return"ontouchstart"in window||navigator.maxTouchPoints}var oL=!("undefined"==typeof window||!window.document||!window.document.createElement),oP=0,oW={capture:!1,passive:!1},oX=function(){return document.activeElement&&document.activeElement.blur()},oF={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86I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bkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */",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 oZ(e){var t,n,r,i,l,a,c,s,u,d,g,p,f,h,m,b,v,y,x,I,w,C,R,A,E=e.children,M=e.lockEnabled,G=e.captureEnabled,k=(n=(t={isEnabled:void 0===G||G,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,l=t.onTopArrive,a=t.onTopLeave,c=(0,o.useRef)(!1),s=(0,o.useRef)(!1),u=(0,o.useRef)(0),d=(0,o.useRef)(null),g=(0,o.useCallback)(function(e,t){if(null!==d.current){var n=d.current,o=n.scrollTop,u=n.scrollHeight,g=n.clientHeight,p=d.current,f=t>0,h=u-g-o,m=!1;h>t&&c.current&&(i&&i(e),c.current=!1),f&&s.current&&(a&&a(e),s.current=!1),f&&t>h?(r&&!c.current&&r(e),p.scrollTop=u,m=!0,c.current=!0):!f&&-t>o&&(l&&!s.current&&l(e),p.scrollTop=0,m=!0,s.current=!0),m&&oM(e)}},[r,i,l,a]),p=(0,o.useCallback)(function(e){g(e,e.deltaY)},[g]),f=(0,o.useCallback)(function(e){u.current=e.changedTouches[0].clientY},[]),h=(0,o.useCallback)(function(e){var t=u.current-e.changedTouches[0].clientY;g(e,t)},[g]),m=(0,o.useCallback)(function(e){if(e){var t=!!nj&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}},[h,f,p]),b=(0,o.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))},[h,f,p]),(0,o.useEffect)(function(){if(n){var e=d.current;return m(e),function(){b(e)}}},[n,m,b]),function(e){d.current=e}),N=(y=(v={isEnabled:M}).isEnabled,I=void 0===(x=v.accountForScrollbars)||x,w=(0,o.useRef)({}),C=(0,o.useRef)(null),R=(0,o.useCallback)(function(e){if(oL){var t=document.body,n=t&&t.style;if(I&&oG.forEach(function(e){var t=n&&n[e];w.current[e]=t}),I&&oP<1){var o=parseInt(w.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,i=window.innerWidth-r+o||0;
1Object.keys(ok).forEach(function(e){var t=ok[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(i,"px"))}t&&oS()&&(t.addEventListener("touchmove",oN,oW),e&&(e.addEventListener("touchstart",oB,oW),e.addEventListener("touchmove",oT,oW))),oP+=1}},[I]),A=(0,o.useCallback)(function(e){if(oL){var t=document.body,n=t&&t.style;oP=Math.max(oP-1,0),I&&oP<1&&oG.forEach(function(e){var t=w.current[e];n&&(n[e]=t)}),t&&oS()&&(t.removeEventListener("touchmove",oN,oW),e&&(e.removeEventListener("touchstart",oB,oW),e.removeEventListener("touchmove",oT,oW)))}},[I]),(0,o.useEffect)(function(){if(y){var e=C.current;return R(e),function(){A(e)}}},[y,R,A]),function(e){C.current=e});return nr(o.Fragment,null,M&&nr("div",{onClick:oX,css:oF}),E(function(e){k(e),N(e)}))}var oV,oH={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjp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Q7XG4iXX0= */",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)."}},oO=function(e){return nr("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:oH,value:"",onChange:function(){}})},oD={clearIndicator:oe,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 eR({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:oe,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 eR({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 eR({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 eR(eR({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ol),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 eR({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:n2,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,l=r.spacing,a=r.colors;return eR((ew(n={label:"menu"},o?({bottom:"top",top:"bottom"})[o]:"bottom","100%"),ew(n,"position","absolute"),ew(n,"width","100%"),ew(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 eR({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 eR({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 eR({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 eR({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:n2,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,l=i.spacing,a=i.colors;return eR({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 eR({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.c
1olors;return eR({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 eR({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")})}},oY={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}},oz={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nY(),captureMenuScroll:!nY(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=eR({ignoreCase:!0,ignoreAccents:!0,stringify:oR,trim:!0,matchFrom:"any"},oV),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,l=n.trim,a=n.matchFrom,c=l?oC(t):t,s=l?oC(i(e)):i(e);return o&&(c=c.toLowerCase(),s=s.toLowerCase()),r&&(c=ow(c),s=oI(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(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oJ(e,t,n,o){return{type:"option",data:t,isDisabled:o$(e,t,n),isSelected:oq(e,t,n),label:oQ(e,t),value:oK(e,t),index:o}}function oj(e,t){return e.options.map(function(n,o){if("options"in n){var r=n.options.map(function(n,o){return oJ(e,n,t,o)}).filter(function(t){return o_(e,t)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=oJ(e,n,t,o);return o_(e,i)?i:void 0}).filter(nU)}function oU(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,eL(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function o_(e,t){var n=e.inputValue,o=t.data,r=t.isSelected,i=t.label,l=t.value;return(!o1(e)||!r)&&o0(e,{label:i,value:l,data:o},void 0===n?"":n)}var oQ=function(e,t){return e.getOptionLabel(t)},oK=function(e,t){return e.getOptionValue(t)};function o$(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function oq(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=oK(e,t);return n.some(function(t){return oK(e,t)===o})}function o0(e,t,n){return!e.filterOption||e.filterOption(t,n)}var o1=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},o9=1,o2=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw 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&&eB(e,t)}(l,o.Component);var t,n,r,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=eS(l);return e=t?Reflect.construct(n,arguments,eS(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ex(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){var t;if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e}
1,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(eL(l),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n,o=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),l=r.filter(function(e){return t.getOptionValue(e)!==i}),a=(n=l[0]||null,o?l:n);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,o=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:o})},t.popValue=function(){var e,n=t.props.isMulti,o=t.state.selectValue,r=o[o.length-1],i=o.slice(0,o.length-1),l=(e=i[0]||null,n?i:e);t.onChange(l,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return nP.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return oQ(t.props,e)},t.getOptionValue=function(e){return oK(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,r=oD[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.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,eR(eR({},oc),e.components)},t.buildCategorizedOptions=function(){return oj(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return oU(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:eR({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.focu
vendor: 15,183 bytes, line 1
1sInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&nZ(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){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return o1(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||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||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.instancePrefix="react-select-"+(t.props.instanceId||++o9),t.state.selectValue=nW(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),o=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[o]}return t}return n=[{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&&nD(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&&(nD(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]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,l=-1;if(n.length){switch(e){case"previous":l=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(l=r+1)}this.setState({inputIsHidden:-1!==l,focusedValue:n[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(oY):eR(eR({},oY),this.props.theme):oY}},{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 o$(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return oq(this.props,e,t)}},{key:"filterOption",value:function(e,t){return o0(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=eR(eR(eR({"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"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":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,eN({},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(oE,eN({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:nL,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,eN({},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,eN({},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 x=b[0];return o.createElement(a,eN({},s,{data:x,isDisabled:g}),this.formatOptionLabel(x,"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,eN({},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,eN({},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,eN({},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,eN({},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,x=p.menuIsOpen,I=p.menuPlacement,w=p.menuPosition,C=p.menuPortalTarget,R=p.menuShouldBlockScroll,A=p.menuShouldScrollIntoView,E=p.noOptionsMessage,M=p.onMenuScrollToTop,G=p.onMenuScrollToBottom;if(!x)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);return o.createElement(u,eN({},d,{innerProps:{id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1},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,eN({},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:I,menuPosition:w,menuShouldScrollIntoView:A},L=o.createElement(n9,eN({},d,S),function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return o.createElement(i,eN({},d,S,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:a}),o.createElement(oZ,{captureEnabled:f,onTopArrive:M,onBottomArrive:G,lockEnabled:R},function(t){return o.createElement(l,eN({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:g}),k)}))});return C||"fixed"===w?o.createElement(a,eN({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,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,
1c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return o.createElement(oO,{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(of,eN({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:l,selectValue:a,focusableOptions:c}))}},{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,eN({},g,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),o.createElement(t,eN({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:u}),o.createElement(i,eN({},g,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,eN({},g,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,l=t.ariaSelection,a=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,d=e.menuIsOpen,g=e.inputValue,p=e.isMulti,f=nW(u),h={};if(o&&(u!==o.value||s!==o.options||d!==o.menuIsOpen||g!==o.inputValue)){var m,b=d?oU(oj(e,f)):[],v=r?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;h={selectValue:f,focusedOption:(m=t.focusedOption)&&b.indexOf(m)>-1?m:b[0],focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==o?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=l,I=a&&c;return a&&!I&&(x={value:(n=f[0]||null,p?f:n),options:f,action:"initial-input-focus"},I=!c),"initial-input-focus"===(null==l?void 0:l.action)&&(x=null),eR(eR(eR({},h),y),{},{prevProps:e,ariaSelection:x,prevWasFocused:I})}}],n&&eT(l.prototype,n),r&&eT(l,r),Object.defineProperty(l,"prototype",{writable:!1}),l}();o2.defaultProps=oz;var o4=(0,o.forwardRef)(function(e,t){var n,r,i,l,a,c,s,u,d,g,p,f,h,m,b,v,y,x,I,w,C,R,A,E,M,G,k,N=(n=e.defaultInputValue,r=e.defaultMenuIsOpen,i=e.defaultValue,l=e.inputValue,a=e.menuIsOpen,c=e.onChange,s=e.onInputChange,u=e.onMenuClose,d=e.onMenuOpen,g=e.value,p=eG(e,ek),h=(f=eM((0,o.useState)(void 0!==l?l:void 0===n?"":n),2))[0],m=f[1],v=(b=eM((0,o.useState)(void 0!==a?a:void 0!==r&&r),2))[0],y=b[1],I=(x=eM((0,o.useState)(void 0!==g?g:void 0===i?null:i),2))[0],w=x[1],C=(0,o.useCallback)(function(e,t){"function"==typeof c&&c(e,t),w(e)},[c]),R=(0,o.useCallback)(function(e,t){var n;"function"==typeof s&&(n=s(e,t)),m(void 0!==n?n:e)},[s]),A=(0,o.useCallback)(function(){"function"==typeof d&&d(),y(!0)},[d]),E=(0,o.useCallback)(function(){"function"==typeof u&&u(),y(!1)},[u]),M=void 0!==l?l:h,G=void 0!==a?a:v,k=void 0!==g?g:I,eR(eR({},p),{},{inputValue:M,menuIsOpen:G,onChange:C,onInputChange:R,onMenuClose:E,onMenuOpen:A,value:k}));return o.createElement(o2,eN({ref:t},N))}),o5=function(){function e(){}return e.prototype.getCompatibleCell=function(e){try{t=ee(e,"selectedValue","string")}catch(e){t=void 0}var t,n,o,r=ee(e,"values","object"),i=t?parseFloat(t):NaN,l=!0;try{l=ee(e,"isDisabled","boolean")}catch(e){l=!1}try{n=ee(e,"inputValue","string")}catch(e){n=void 0}try{o=ee(e,"isOpen","boolean")}catch(e){o=!1}var a=t||"";return g(g({},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(g(g({}
1,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){if((t===w.SPACE||t===w.ENTER)&&!o)return{cell:this.getCompatibleCell(g(g({},e),{isOpen:!e.isOpen})),enableEditMode:!1};var l=eg(i,o);return n||r||!en(t)||o&&t===w.SPACE?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(g(g({},e),{inputValue:l,isOpen:!e.isOpen})),enableEditMode:!1}},e.prototype.handleCompositionEnd=function(e,t){return{cell:g(g({},e),{inputValue:t,isOpen:!e.isOpen}),enableEditMode:!1}},e.prototype.render=function(e,t,n){var r=this;return o.createElement(o3,{onCellChanged:function(e){return n(r.getCompatibleCell(e),!0)},cell:e})},e}(),o3=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(g(g({},n),{isOpen:!0}))}},o.createElement(o4,g({},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(g(g({},n),{isOpen:!n.isOpen,inputValue:void 0}))},onMenuOpen:function(){return t(g(g({},n),{isOpen:!0}))},onChange:function(e){return t(g(g({},n),{selectedValue:e.value,isOpen:!1,inputValue:void 0}))},blurInputOnSelect:!0,defaultValue:c,value:c,isDisabled:n.isDisabled,options:n.values,onKeyDown:function(e){if(e.stopPropagation(),"Escape"===e.key)return r.current.blur(),t(g(g({},n),{isOpen:!1,inputValue:void 0}))},components:{Option:o6,Menu:o8},styles:{container:function(e){return g(g({},e),{width:"100%",height:"100%"})},control:function(e){return g(g({},e),{border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none"})},indicatorsContainer:function(e){return g(g({},e),{paddingTop:"0px"})},dropdownIndicator:function(e){return g(g({},e),{padding:"0px 4px"})},singleValue:function(e){return g(g({},e),{color:"inherit"})},indicatorSeparator:function(e){return g(g({},e),{marginTop:"4px",marginBottom:"4px"})},input:function(e){return g(g({},e),{padding:0})},valueContainer:function(e){return g(g({},e),{padding:"0 8px"})}}})))},o6=function(e){var t=e.innerProps,n=e.label,r=e.isSelected,i=e.isFocused,l=e.isDisabled;return o.createElement("div",g({},t,{onPointerDown:function(e){return e.stopPropagation()},className:"rg-dropdown-option".concat(r?" selected":"").concat(i?" focused":"").concat(l?" disabled":"")}),n)},o8=function(e){var t=e.innerProps,n=e.children;return o.createElement("div",g({},t,{className:"rg-dropdown-menu"}),n)},o7={text:new ev,number:new eb,header:new em,checkbox:new et,date:new ep,email:new ef,time:new ey,chevron:new eh,dropdown:new o5},re=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},rt=function(e){var t=[],n=0;return e.forEach(function(o,r){if(e[r-1]){var i=e[r-1];o.idx-i.idx==1?t[n]?t[n].push(o):t.push([i,o]):(t.push([o]),n+=1)}else t.push([o])}),t};function rn(e,t){var n,o,r,i,l,a,c,s,u,d,p,f;return t="row"===t.selectionMode&&t.selectedIds.length>0?(o=(n=t).cellMatrix.first.column,r=n.cellMatrix.last.column,l=re(i=n.cellMatrix.rows.filter(function(e){return n.selectedIds.includes(e.rowId)}).sort(function(e,t){return e.idx-t.idx})).map(function(e){return n.cellMatrix.getRange(m(e[0],o),m(e[e.length-1],r))}),a=n.selectedRanges.length-1,n.focusedLocation&&l.forEach(function(e,t){e.rows.forEach(function(e){var o;(null===(o=n.focusedLocation)||void 0===o?void 0:o.row.rowId)===e.rowId&&(a=t)})}),g(g({},n),{selectionMode:"row",activeSelectedRangeIdx:a,selectedRanges:h([],l,!0),selectedIndexes:i.map(function(e){return e.idx}),selectedIds:i.map(function(e){return e.rowId})})):"column"===t.selectionMode&&t.selectedIds.length>0?(s=(c=t).cellMatrix.first.row,u=c.cellMatrix.last.row,p=rt(d=c.cellMatrix.columns.filter(function(e){return c.selectedIds.includes(e.columnId)}).sort(function(e,t){return e.idx-t.idx})).map(function(e){return c.cellMatrix.getRange(m(s,e[0]),m(u,e[e.length-1]))}),f=c.selectedRanges.length-1,c.focusedLocation&&p.forEach(function(e,t){e.columns.forEach(function(e){var n;(null===(n=c.focusedLocation)||void 0===n?void 0:n.column.columnId)===e.columnId&&(f=t)})}),g(g({},c),{selectionMode:"column",activeSelectedRangeIdx:f,selectedRanges:h([],p,!0),selectedIndexes:d.map(function(e){return e.idx}),selectedIds:d.map(function(e){return e.columnId})})):g(g({},t),{selectedRanges:h([],t.selectedRanges,!0).map(function(e){return t.cellMatrix.validateRange(e)}
1)})}function ro(e,t){return g(g({},t),{enableFillHandle:!!e.enableFillHandle,enableRangeSelection:!!e.enableRangeSelection,enableColumnSelection:!!e.enableColumnSelection,enableRowSelection:!!e.enableRowSelection})}var rr=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},ri=function(e,t){var n;return e.highlights!==(null===(n=t.props)||void 0===n?void 0:n.highlights)};function rl(e,t){return t.props!==e&&(t=g(g({},t),{props:e})),t}function ra(e,t){var n=new q;return g(g({},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 rc(e,t){return t.cellMatrix.columns.length>0&&t.focusedLocation&&!t.currentlyEditedCell&&(t=g(g({},t),{focusedLocation:t.cellMatrix.validateLocation(t.focusedLocation)})),t}function rs(e,t){return t.visibleRange&&(t=U(t)),t}function ru(e,t){return g(g({},t),{cellTemplates:g(g({},o7),e.customCellTemplates)})}function rd(e,t){return g(g({},t),{enableGroupIdRender:!!e.enableGroupIdRender})}function rg(e,t){return g(g({},t),{disableVirtualScrolling:!!e.disableVirtualScrolling})}function rp(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'),g(g({},t),{highlightLocations:r||[]})}function rf(e,t){var n=e.initialFocusLocation,o=!!t.focusedLocation;if(n&&!t.focusedLocation){if(rm(t,n))console.error('Data inconsistency in ReactGrid "initialFocusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=E(t,r)}}var i=t.focusedLocation;return!o&&i&&(t=b(t,i)),t}function rh(e,t){var n=e.focusLocation,o=!!t.focusedLocation;if(n){if(rm(t,n))console.error('Data inconsistency in ReactGrid "focusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=E(t,r)}}var i=t.focusedLocation;return!o&&i&&e.focusLocation&&t.selectedRanges.length<=1&&(t=b(t,i)),t}function rm(e,t){return!(void 0!==e.cellMatrix.columnIndexLookup[t.columnId]&&void 0!==e.cellMatrix.rowIndexLookup[t.rowId])}var rb=(0,o.createContext)({}),rv=function(e){var t=e.children,n=e.state;return o.createElement(rb.Provider,{value:n},t)},ry=function(){return o.useContext(rb)},rx=function(e){var t,n,r,i,l,a,c,s,u,d,g,p,f,h,m=e.cellRenderer,b=ry(),v=b.cellMatrix,y=b.cellMatrix.ranges.stickyTopRange.height>0,x=!!(b.cellMatrix.scrollableRange.height>0&&b.cellMatrix.scrollableRange.first.column&&b.cellMatrix.scrollableRange.first.row&&b.cellMatrix.scrollableRange.last.row&&b.visibleRange&&b.visibleRange.height>0),I=b.cellMatrix.ranges.stickyLeftRange.width>0,w=!!(b.visibleRange&&b.visibleRange.width>0),C=!!(b.cellMatrix.ranges.stickyBottomRange.height>0&&b.cellMatrix.rows.length>0),R=b.cellMatrix.ranges.stickyRightRange.width>0;if(!(y||x||I||w))return null;var A=void 0,E=b.visibleRange;x&&(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(iR,{renderChildren:x&&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(iA,{state:b,range:iN(A)(E),borders:{bottom:!C,right:!R,left:!I,top:!y},cellRenderer:m})),o.createElement(iM,{renderCondition:I,className:"shadow-left",zIndex:2,style:{width:v.ranges.stickyLeftRange.width,height:v.height,marginTop:-v.height,order:9}}),o.createElement(iM,{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(iM,{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(iM,{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(iR,{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(iA,{state:b,range:iN(v.ranges.stickyBottomRange)(E),borders:{top:!0,bottom:!0,right:!R,left:!I},cellRenderer:m})),o.createElement(iR,{renderChildren:x&&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(iA,{state:b,range:iT(v.ranges.stickyRightRange)(A||v.ranges.stickyLeftRange),borders:{left:!0,top:!y,bottom:!C},cellRenderer:m})),o.createElement(iR,{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(iA,{state:b,range:iN(v.ranges.stickyTopRange)(E),borders:{top:!0,right:!R,left:!I},cellRenderer:m})),o.createElement(iR,{renderChildren:x&&I||!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(iA,{state:b,range:iT(v.ranges.stickyLeftRange)(A||v.ranges.stickyLeftRange),borders:{bottom:!C,top:!y,left:!0},cellRenderer:m})),o.createElement(iR,{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(iA,{state:b,range:iT(v.ranges.stickyRightRange)(v.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})),o.createElement(iR,{renderChildren:C&&I,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(iA,{state:b,range:iT(v.ranges.stickyLeftRange)(v.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})),o.createElement(iR,{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(iA,{state:b,range:iT(v.ranges.stickyRightRange)(v.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})),o.createElement(iR,{renderChildren:y&&I,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(iA,{state:b,range:iT(v.ranges.stickyLeftRange)(v.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:m})))},rI=function(){var e=ry(),t=e.linePosition,n=e.lineOrientation,r=e.cellMatrix,i="vertical"===n,l=Object.assign({}
1,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})},rw=function(){var e=ry(),t=e.lineOrientation,n=e.shadowSize,r=e.shadowPosition,i=e.shadowCursor,l=e.cellMatrix,a="vertical"===t;return -1===r?null:o.createElement("div",{className:"rg-shadow",style:{cursor:i,top:a?0:r,left:a?r:0,width:a?n:l.width,height:a?l.height:n}})};function rC(e){return e.selectedRanges[e.activeSelectedRangeIdx]}var rR={type:"",text:"",value:NaN};function rA(e,t,n){void 0===n&&(n=!1);var o,r,i,l,a,c=(o=document.createElement("div"),(r=document.createElement("table")).setAttribute("empty-cells","show"),r.setAttribute("data-reactgrid","reactgrid-content"),{div:o,table:r,location:{row:t.first.row,column:t.first.column}}),s=c.div,u=c.table,d=(c.location,i=n,l="",a="",t.rows.forEach(function(n){var o=u.insertRow();t.columns.forEach(function(t){var r,c,s=o.insertCell(),u=R(e,{row:n,column:t}).cell,d=u.text||" ";s.textContent=d,l=""===a?u.text:l+(a===n.rowId?" ":"\n")+d,a=n.rowId,s.setAttribute("data-reactgrid",JSON.stringify(u)),s.style.border="1px solid #D3D3D3",r=e,c={row:n,column:t},i&&(r=A(r,c,rR))})}),l);return s.setAttribute("contenteditable","true"),s.style.position="fixed",s.style.top="50%",s.style.left="50%",s.appendChild(u),{div:s,text:d}}function rE(e,t,n){return R(e,t).cell.groupId===n.groupId?A(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 rM(e,t){var n,o,r=rC(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=rE(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]),g(g({},e),{selectedRanges:[l.getRange(r.first,i)],activeSelectedRangeIdx:0}))}return r.rows.forEach(function(n){return r.columns.forEach(function(o){e=rE(e,m(n,o),t[0][0])})}),e}function rG(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 rk(e,t){void 0===t&&(t=navigator.language||"en-US");var n,o,r=(n=t,{thousandsSeparator:(o=Intl.NumberFormat(n).format(123456.789)).split("123")[1][0],decimalSeparator:o.split("123")[1][4]}),i=r.thousandsSeparator,l=r.decimalSeparator;return Number(e.replace(/\u00A0/g," ").replace(RegExp("[".concat(i,"\\s]"),"g"),"").replace(RegExp("\\".concat(l),"g"),".").replace(/^[^\d]+|[^\d]+$/g,""))}function rN(){return p(this,void 0,void 0,function(){return f(this,function(e){switch(e.label){case 0:return[4,navigator.clipboard.readText().catch(function(){throw Error("Failed to read textual data from clipboard!")})];case 1:return[2,e.sent().split("\n").map(function(e){return e.split(" ").map(function(e){return{type:"text",text:e,value:rk(e)}})})]}})})}var rT=function(){var e=o.useRef(null),t=ry(),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 h,m,b,v,y,x=[{id:"copy",label:(h=ic(t)).copyLabel,handler:function(){return rB(t,!1)}},{id:"cut",label:h.cutLabel,handler:function(){return rB(t,!0)}},{id:"paste",label:h.pasteLabel,handler:function(){return function(e){var t=N()||T();if(ii()||t){var n=ic(e),o=n.appleMobileDeviceContextMenuPasteAlert,r=n.otherBrowsersContextMenuPasteAlert,i=n.actionNotSupported;alert("".concat(i," ").concat(t?o:r))}else p(void 0,void 0,void 0,function(){var e,t,n,o;return f(this,function(r){switch(r.label){case 0:return[4,navigator.clipboard.read()];case 1:return(e=r.sent().find(function(e){return e.types.includes("text/html")}))?[4,function(e){return p(this,void 0,void 0,function(){var t;return f(this,function(n){switch(n.label){case 0:return[4,e.getType("text/html").catch(function(){throw Error("Failed to get HTML Blob data from clipboard!")})];case 1:return[4,n.sent().text().catch(function(){throw Error("Failed to parse HTML Blob to text!")})];case 2:t=n.sent();try{return[2,(new DOMParser).parseFromString(t,"text/html")]}
1catch(e){throw Error("Failed to parse HTML string to DOM!")}return[2]}})})}(e)]:[3,3];case 2:return n=r.sent(),[3,4];case 3:n=null,r.label=4;case 4:return"reactgrid-content"===(null===(o=null==(t=n)?void 0:t.body.firstElementChild)||void 0===o?void 0:o.getAttribute("data-reactgrid"))?[2,function(e){var t,n;return p(this,void 0,void 0,function(){var o,r,i,l,a,c,s,u;return f(this,function(d){switch(d.label){case 0:return o=[],(null===(t=e.firstElementChild)||void 0===t?void 0:t.firstElementChild)?[3,2]:[4,rN()];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++)s=(c=r[i].children[a].getAttribute("data-reactgrid"))&&JSON.parse(c),u=null!==(n=r[i].children[a].textContent)&&void 0!==n?n:"",l.push(s||{type:"text",text:u,value:rk(u)});o.push(l)}return[2,o]}})})}(t.body)]:[4,rN()];case 5:return[2,r.sent()]}})}).then(function(t){e.update(function(e){return rM(e,t)})})}(t)}}],I=(m=x,null!==(y=null===(v=null===(b=t.props)||void 0===b?void 0:b.onContextMenu)||void 0===v?void 0:v.call(b,"row"===t.selectionMode?t.selectedIds:[],"column"===t.selectionMode?t.selectedIds:[],t.selectionMode,m,rG(t)))&&void 0!==y?y:[]);return I.length>=0&&(x=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"}},x.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,rG(t)),t.update(function(e){return g(g(g({},e),{contextMenuPosition:{top:-1,left:-1}}),("copy"===a||"cut"===a)&&{copyRange:rC(e)})})}},c)}))};function rB(e,t){void 0===t&&(t=!1),function(e,t){void 0===t&&(t=!1);var n,o=rC(e);if(o){var r=rA(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 rS=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){var n,o,r,i,l;return n=e(t.state),o=t.state,r=t.props,i=t.updateState,void((l=h([],n.queuedCellChanges,!0)).length>0&&(r.onCellsChanged&&r.onCellsChanged(h([],l,!0)),l.forEach(function(){return n.queuedCellChanges.pop()})),n!==o&&i(n))},t.pointerEventsController=new j(t.stateUpdater),t.eventHandlers=new $(t.stateUpdater,t.pointerEventsController),t.cellMatrixBuilder=new q,t.state=g(g({update:t.stateUpdater},r3),{currentBehavior:new r5,cellMatrix:t.cellMatrixBuilder.setProps(t.props).fillRowsAndCols().setRangesToRenderLookup().fillSticky().fillScrollableRange().setEdgeLocations().getCellMatrix()}),t}return d(t,e),t.getDerivedStateFromProps=function(e,t){try{var n,o,r,i;return n=t,o=function(t){return function(n){return n(e,t)}},ri(e,n)&&(n=o(n)(rp)),n=o(n)(rl),n=o(n)(ru),r=!(i=n=o(n)(rd)).cellMatrix||e!==i.cellMatrix.props||void 0!==e.stickyLeftColumns&&e.stickyLeftColumns!==i.leftStickyColumns||void 0!==e.stickyTopRows&&e.stickyTopRows!==i.topStickyRows||void 0!==e.stickyBottomRows&&e.stickyBottomRows!==i.bottomStickyRows||void 0!==e.stickyRightColumns&&e.stickyRightColumns!==i.rightStickyColumns,n=o(n)(K),n=o(n)(rg),r&&(n=o(n)(ra)),n=o(n)(rn),n=o(n)(rc),r&&(n=o(n)(rs)),rr(e,n=o(n)(rf))&&(n=o(n)(rh)),n=o(n)(ro)}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=!(c(o,t.focusedLocation)||n.currentBehavior instanceof V),i=void 0!==n.currentlyEditedCell&&n.currentlyEditedCell!==t.currentlyEditedCell;if(r||i){var l=z(n,o),a=l.left;O(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}
1})},t.prototype.render=function(){var e=this.state,t=this.eventHandlers;return e.legacyBrowserMode?o.createElement(rv,{state:e},o.createElement(is,{eventHandlers:t})):o.createElement(rv,{state:e},o.createElement(il,{eventHandlers:t},o.createElement(rx,{cellRenderer:ip}),o.createElement(rI,null),o.createElement(rw,null),o.createElement(rT,null),e.currentlyEditedCell&&o.createElement(ie,null)))},t}(o.Component),rL=function(e,t,n,o){return E(n,n.cellMatrix.getLocation(t,e),!0,o)},rP=function(e){if(e.focusedLocation){var t=rY(e,e.focusedLocation.row.idx,0);if(!t){var n=e.cellMatrix.getLocation(e.focusedLocation.row.idx,0),o=rJ(e,n);return o?rL(o.column.idx,o.row.idx,e):e}return rL(t.column.idx,t.row.idx,e)}return e},rW=function(e){if(e.focusedLocation){var t=rY(e,e.focusedLocation.row.idx,e.cellMatrix.columns.length-1);if(!t){var n=e.cellMatrix.getLocation(e.focusedLocation.row.idx,e.cellMatrix.columns.length-1),o=rz(e,n);return o?rL(o.column.idx,o.row.idx,e):e}return rL(t.column.idx,t.row.idx,e)}return e},rX=function(e){var t=rz(e,e.focusedLocation);return t?rL(t.column.idx,t.row.idx,e):e},rF=function(e,t){var n=rJ(e,e.focusedLocation);return n?rL(n.column.idx,n.row.idx,e,t):e},rZ=function(e){var t=rj(e,e.focusedLocation);return t?rL(t.column.idx,t.row.idx,e):e},rV=function(e){var t=rU(e,e.focusedLocation);return t?rL(t.column.idx,t.row.idx,e):e},rH=function(e){return function(t){var n=t.focusedLocation;if(!n)return t;var o=e(t,n);return rL(n.column.idx,o,t)}},rO=rH(function(e,t){var n,o=D(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),r=e.cellMatrix.ranges.stickyTopRange.rows.length>0,i=r&&Y(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),!rY(e,p,t.column.idx)){var f=e.cellMatrix.getLocation(p,t.column.idx),h=rU(e,f);return h?h.row.idx:t.row.idx}return p}),rD=rH(function(e,t){var n,o=e.cellMatrix.ranges.stickyTopRange.rows.length>0,r=o&&Y(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=D(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),!rY(e,p,t.column.idx)){var f=e.cellMatrix.getLocation(p,t.column.idx),h=rj(e,f);return h?h.row.idx:t.row.idx}return p});function rY(e,t,n){var o=e.cellMatrix.getLocation(t,n),r=R(e,o),i=r.cell,l=r.cellTemplate;if(!e.props)throw Error('"props" field on "state" object should be initiated before possible location focus');
1var a=e.props.onFocusLocationChanging,c={rowId:o.row.rowId,columnId:o.column.columnId},s=!a||a(c);return(!l.isFocusable||l.isFocusable(i))&&s?o:void 0}function rz(e,t){if(t)for(var n=t.column.idx-1;n>=e.cellMatrix.first.column.idx;--n){var o=rY(e,t.row.idx,n);if(o)return o}}function rJ(e,t){if(t)for(var n=t.column.idx+1;n<=e.cellMatrix.last.column.idx;++n){var o=rY(e,t.row.idx,n);if(o)return o}}function rj(e,t){if(t)for(var n=t.row.idx-1;n>=e.cellMatrix.first.row.idx;--n){var o=rY(e,n,t.column.idx);if(o)return o}}function rU(e,t){if(t)for(var n=t.row.idx+1;n<=e.cellMatrix.last.row.idx;++n){var o=rY(e,n,t.column.idx);if(o)return o}}function r_(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=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(s<0&&0===c||1===l&&1===i&&-1===a){var d=0===r?e.selectedRanges.length-1:(r-1)%e.selectedRanges.length,p=e.selectedRanges[d];return e=E(e,m(p.last.row,p.last.column),!1),g(g({},e),{activeSelectedRangeIdx:d})}if(u)return d=(r+1)%e.selectedRanges.length,p=e.selectedRanges[d],e=E(e,m(p.first.row,p.first.column),!1),g(g({},e),{activeSelectedRangeIdx:d});var f=n.first.column.idx+("up"===t||"down"===t?Math.floor(s/l):s%i),h=n.first.row.idx+("up"===t||"down"===t?s%l:Math.floor(s/i));return e=E(e,e.cellMatrix.getLocation(h,f),!n||!(n.columns.length>1||n.rows.length>1))}function rQ(e){var t=e.cellMatrix.ranges,n=t.stickyBottomRange,o=t.stickyTopRange;return D(e,n.height+o.height)}function rK(e,t,n,o,r,i){if(!e.enableRangeSelection)return e;var l,a,c,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 p=e.focusedLocation;if(!p)return e;var f=0,h=0;switch(i){case"horizontal":f=p.row.idx,h=p.column.idx!==t?t:n;break;case"vertical":f=p.row.idx!==o?o:r,h=p.column.idx}var m=z(e,e.cellMatrix.getLocation(f,h),i),b=m.left;O(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),g(g({},e),{selectedRanges:d}))}var r$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return d(t,e),t.prototype.handlePointerDown=function(e,t,n){var o,r,i,l,a,c,s;return this.initialColumn=t.column,n=iG(e)&&"column"===n.selectionMode&&n.selectedIds.some(function(e){return e===t.column.columnId})?(o=n,r=t.column,i=o.selectedIndexes.filter(function(e){return e!==r.idx}),l=o.selectedIds.filter(function(e){return e!==r.columnId}),g(g({},o),{selectionMode:"column",selectedIndexes:i,selectedIds:l})):e.shiftKey&&n.focusedLocation?x(n,n.focusedLocation.column,t.column,iG(e)):(a=n=E(n,t,!1),c=t.column,s=iG(e),g(g({},a),{selectionMode:"column",selectedIndexes:(s&&"column"===a.selectionMode?a.selectedIndexes:[]).concat(c.idx),selectedIds:(s&&"column"===a.selectionMode?a.selectedIds:[]).concat(c.columnId)}))},t.prototype.handlePointerEnter=function(e,t,n){return x(n,this.initialColumn,t.column,iG(e))},t.prototype.handleContextMenu=function(e,t){return X(e,t)},t}(C),rq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return d(t,e),t.prototype.handlePointerDown=function(e,t,n){var o,r,i,l,a,c,s;return this.initialRow=t.row,n=iG(e)&&"row"===n.selectionMode&&n.selectedIds.some(function(e){return e===t.row.rowId})?(o=n,r=t.row,i=o.selectedIndexes.filter(function(e){return e!==r.idx}),l=o.selectedIds.filter(function(e){return e!==r.rowId}),g(g({},o),{selectionMode:"row",selectedIndexes:i,selectedIds:l})):e.shiftKey&&n.focusedLocation?I(n,n.focusedLocation.row,t.row,iG(e)):(a=n=E(n,t,!1),c=t.row,s=iG(e),g(g({},a),{selectionMode:"row",selectedIndexes:(s&&"row"===a.selectionMode?a.selectedIndexes:[]).concat(c.idx),selectedIds:(s&&"row"===a.selectionMode?a.selectedIds:[]).concat(c.rowId)}))},t.prototype.handlePointerEnter=function(e,t,n){return I(n,this.initialRow,t.row,iG(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=h([],n.selectedRanges,!0).filter(function(e,t){return t!==n.activeSelectedRangeIdx});return g(g({},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 X(e,t)},t}(C),r0=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
1: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,p=t.last.column.idx<=n.last.column.idx,f=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:g(g({},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:p?r.borderRight:"unset",borderLeft:f?r.borderLeft:"unset"})})};function r1(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 r9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fillDirection="",t}return d(t,e),t.prototype.handlePointerEnter=function(e,t,n){var o=rC(n);return this.fillDirection=this.getFillDirection(o,t),this.fillRange=this.getFillRange(n.cellMatrix,o,t,this.fillDirection),g({},n)},t.prototype.handlePointerUp=function(e,t,n){var o,r,i,l,a,c,s,u,d=this,p=rC(n),f=n.cellMatrix;if(!p||void 0===this.fillRange)return n;var b=k()?e.altKey:e.ctrlKey;this.fillRange=n.cellMatrix.validateRange(this.fillRange);var v=function(e){return R(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 g(g(g({},t),"checkbox"===t.type&&{checked:"checked"in a?a.checked:!!a.value}),{text:r||b?a.text:l.toString(),groupId:a.groupId,value:r||b?a.value:l})})},x=function(e,t,n){return t.columns.forEach(function(o){var r=t.rows.map(function(e){return v(m(e,o)).cell});if(r="up"===n?r.reverse():r,d.fillRange){var i=d.fillRange.rows.map(function(e){return v(m(e,o)).cell});i=y(r,i),i="up"===n?i.reverse():i,e=d.fillColumn(e,o,i)}}),e},I=function(e,t,n){return t.rows.forEach(function(o){var r=t.columns.map(function(e){return v(m(o,e)).cell});if(r="left"===n?r.reverse():r,d.fillRange){var i=d.fillRange.columns.map(function(e){return v(m(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=f.getRange(p.first,m(p.last.row,t.column));if((null===(o=null==(n=I(n,p,"right"))?void 0:n.props)||void 0===o?void 0:o.onSelectionChanging)&&!n.props.onSelectionChanging([w]))break;(null===(r=(n=g(g({},n),{selectedRanges:[w],selectedIds:h(h([],p.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=f.getRange(p.last,m(p.first.row,t.column)),(null===(i=null==(n=I(n,p,"left"))?void 0:n.props)||void 0===i?void 0:i.onSelectionChanging)&&!n.props.onSelectionChanging([w]))break;(null===(l=(n=g(g({},n),{selectedRanges:[w],selectedIds:h(h([],p.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=f.getRange(p.last,{row:t.row,column:p.first.column}),(null===(a=null==(n=x(n,p,"up"))?void 0:n.props)||void 0===a?void 0:a.onSelectionChanging)&&!n.props.onSelectionChanging([w]))break;(null===(c=(n=g(g({},n),{selectedRanges:[w],selectedIds:h(h([],p.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=f.getRange(p.first,m(t.row,p.last.column)),(null===(s=null==(n=x(n,p,"down"))?void 0:n.props)||void 0===s?void 0:s.onSelectionChanging)&&!n.props.onSelectionChanging([w]))break;(null===(u=(n=g(g({},n),{selectedRanges:[w],selectedIds:h(h([],p.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-n/l*a,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&&r1(t,this.fillRange)&&o.createElement(r0,{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"
1===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),m(t.last.row,n.column));case"left":return e.getRange(m(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(m(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),m(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=rE(e,m(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=rE(e,m(o,t),n[r])}),e},t}(C),r2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return d(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}),g(g({},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=M(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 g(g({},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)),g(g({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return X(e,t)},t}(C);function r4(e,t,n){void 0===n&&(n=!1);var o,r,i=rC(t);return i?(o=rA(t,i,n).div,"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")?e.clipboardData.setData("text/html",o.innerHTML):(document.body.appendChild(o),o.focus(),document.execCommand("selectAll",!1),document.execCommand("copy"),document.body.removeChild(o)),null===(r=t.hiddenFocusElement)||void 0===r||r.focus({preventScroll:!0}),e.preventDefault(),g(g({},t),{copyRange:i})):t}var r5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.handlePointerDown=function(e,t,n){return(n=g(g({},n),{currentBehavior:this.getNewBehavior(e,t,n),contextMenuPosition:{top:-1,left:-1}
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)-M(n.scrollableElement).scrollLeft?new V:n.enableColumnSelection&&0===t.row.idx&&n.selectedIds.includes(t.column.columnId)&&!iG(e)&&"column"===n.selectionMode&&t.column.reorderable?new H:n.enableColumnSelection&&0===t.row.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new r$:n.enableRowSelection&&0===t.column.idx&&n.selectedIds.includes(t.row.rowId)&&!iG(e)&&"row"===n.selectionMode&&t.row.reorderable?new r2:n.enableRowSelection&&0===t.column.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new rq:("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 r9:new F},t.prototype.handleContextMenu=function(e,t){return X(e,t)},t.prototype.handleDoubleClick=function(e,t,n){return function(e,t,n){if(c(t,n.focusedLocation)){var o=R(n,t),r=o.cell,i=o.cellTemplate;if(i.handleKeyDown){var l=i.handleKeyDown(r,1,iG(e),e.shiftKey,e.altKey,"DoubleClick"),a=l.cell;if(l.enableEditMode&&!r.nonEditable)return g(g({},n),{currentlyEditedCell:a})}}return n}(e,t,n)},t.prototype.handleKeyDown=function(e,t){var n;return(n=function(e,t){var n,o,r,i,l,a,s,u,d,p,f,h,m,v,y,x,I,C,M,G,N,T,B,S,L,P,W,X,F,Z,V,H,O,D,Y,z,J,j,U,_=e.focusedLocation;if(!_)return e;var Q=null!==(T=rC(e))&&void 0!==T?T:e.cellMatrix.getRange(_,_);if(t.ctrlKey&&k()&&t.keyCode===w.SPACE)return rK(e,Q.first.column.idx,Q.last.column.idx,0,e.cellMatrix.last.row.idx);var K=1===e.selectedRanges.length&&c(Q.first,Q.last),$=function(e,t){var n=e.focusedLocation;if(!n)return e;var o=R(e,n),r=o.cell,i=o.cellTemplate;if(i.handleKeyDown&&!e.currentlyEditedCell){var l=i.handleKeyDown(r,t.keyCode,iG(t),t.shiftKey,t.altKey,t.key),a=l.cell,c=l.enableEditMode;if(JSON.stringify(a)!==JSON.stringify(r)||c)return c&&!r.nonEditable?g(g({},e),{currentlyEditedCell:a}):A(e,n,a)}return e}(e,t);if($!==e){if(!K&&t.keyCode===w.ENTER){var q=t.shiftKey?"up":(null===(B=e.props)||void 0===B?void 0:B.moveRightOnEnter)?"right":"down";return null===(S=e.hiddenFocusElement)||void 0===S||S.focus(),r_(e,q,Q,_)}return $}if(t.altKey)return e;if(iG(t)&&t.shiftKey)switch(t.keyCode){case w.HOME:return rK(e,Q.first.column.idx,Q.last.column.idx,0,Q.last.row.idx);case w.END:return rK(e,Q.first.column.idx,Q.last.column.idx,Q.first.row.idx,e.cellMatrix.last.row.idx)}else if(iG(t)){var ee=e.cellMatrix;switch(t.keyCode){case w.KEY_A:if(1===e.selectedRanges.length&&c(e.selectedRanges[0].first,ee.first)&&c(e.selectedRanges[0].last,ee.last))return b(e,_);var et=ee.getRange(ee.first,ee.last);return(null===(L=e.props)||void 0===L?void 0:L.onSelectionChanging)&&!e.props.onSelectionChanging([et])?e:g(g({},e),{selectedRanges:[et],selectionMode:"range",activeSelectedRangeIdx:0});case w.HOME:return E(e,e.cellMatrix.first);case w.END:return E(e,e.cellMatrix.last);case w.SPACE:return rK(e,Q.first.column.idx,Q.last.column.idx,0,e.cellMatrix.last.row.idx)}}else if(t.shiftKey)switch(t.keyCode){case w.UP_ARROW:return Q.first.row.idx>=0?Q.last.row.idx>_.row.idx?rK(e,Q.first.column.idx,Q.last.column.idx,Q.first.row.idx,Q.last.row.idx>0?Q.last.row.idx-1:0,"vertical"):rK(e,Q.last.column.idx,Q.first.column.idx,Q.last.row.idx,Q.first.row.idx>0?Q.first.row.idx-1:0,"vertical"):e;case w.DOWN_ARROW:return Q.last.row.idx<=e.cellMatrix.last.row.idx?Q.first.row.idx<_.row.idx?rK(e,Q.last.column.idx,Q.first.column.idx,Q.last.row.idx,Q.first.row.idx>=e.cellMatrix.last.row.idx?e.cellMatrix.last.row.idx:Q.first.row.idx+1,"vertical"):rK(e,Q.first.column.idx,Q.last.column.idx,Q.first.row.idx,Q.last.row.idx>=e.cellMatrix.last.row.idx?e.cellMatrix.last.row.idx:Q.last.row.idx+1,"vertical"):e;case w.LEFT_ARROW:return Q.first.column.idx>=0?Q.last.column.idx>_.column.idx?rK(e,Q.first.column.idx,Q.last.column.idx>0?Q.last.column.idx-1:0,Q.first.row.idx,Q.last.row.idx,"horizontal"):rK(e,Q.last.column.idx,Q.first.column.idx>0?Q.first.column.idx-1:0,Q.last.row.idx,Q.first.row.idx,"horizontal"):e;case w.RIGHT_ARROW:return Q.last.column.idx<=e.cellMatrix.last.column.idx?Q.first.column.idx<_.column.idx?rK(e,Q.last.column.idx,Q.first.column.idx>=e.cellMatrix.last.column.idx?e.cellMatrix.last.column.idx:Q.first.column.idx+1,Q.last.row.idx,Q.first.row.idx,"horizontal"):rK(e,Q.first.column.idx,Q.last.column.idx>=e.cellMatrix.last.column.idx?e.cellMatrix.last.column.idx:Q.last.column.idx+1,Q.first.row.idx,Q.last.row.idx,"horizontal"):e;case w.TAB:return t.preventDefault(),K?rX(e):r_(e,"left",Q,_);case w.ENTER:return null===(P=e.hiddenFocusElement)||void 0===P||P.focus(),K?rZ(e):r_(e,"up",Q,_);case w.SPACE:return rK(e,0,e.cellMatrix.last.column.idx,Q.first.row.idx,Q.last.row.idx);case w.HOME:return rK(e,0,Q.last.column.idx,Q.first.row.idx,Q.last.row.idx);case w.END:return rK(e,Q.first.column.idx,e.cellMatrix.last.column.idx,Q.first.row.idx,Q.last.row.idx);case w.PAGE_UP:return n=rQ(e),o=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.first.row.idx>
1e.cellMatrix.ranges.stickyBottomRange.first.row.idx,r=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.last.row.idx===e.cellMatrix.ranges.stickyBottomRange.last.row.idx,i=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.last.row.idx===e.cellMatrix.ranges.stickyBottomRange.first.row.idx,l=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.first.row.idx===e.cellMatrix.ranges.stickyBottomRange.first.row.idx,a=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,s=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.first.row.idx===e.cellMatrix.scrollableRange.first.row.idx,u=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.last.row.idx===e.cellMatrix.scrollableRange.first.row.idx,d=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.first.row.idx<=e.cellMatrix.ranges.stickyTopRange.last.row.idx,p=e.cellMatrix.scrollableRange.rows.filter(function(e){return e.top+e.height<n}),Q.first.row.idx>=0?Q.last.row.idx>_.row.idx?rK(e,Q.first.column.idx,Q.last.column.idx,Q.first.row.idx,r?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:i?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:a?e.cellMatrix.ranges.stickyTopRange.first.row.idx:Q.last.row.idx-p.length>e.cellMatrix.scrollableRange.first.row.idx?Q.last.row.idx-p.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):rK(e,Q.last.column.idx,Q.first.column.idx,Q.last.row.idx,o?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:l?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:o?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:Q.first.row.idx-p.length>e.cellMatrix.scrollableRange.first.row.idx?Q.first.row.idx-p.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):e;case w.PAGE_DOWN:return f=rQ(e),h=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.last.row.idx<e.cellMatrix.ranges.stickyTopRange.last.row.idx,m=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.first.row.idx<e.cellMatrix.ranges.stickyTopRange.last.row.idx,v=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,y=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&Q.first.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,x=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.last.row.idx===e.cellMatrix.scrollableRange.last.row.idx,I=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.first.row.idx===e.cellMatrix.scrollableRange.last.row.idx,C=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.last.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,M=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&Q.first.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,G=e.cellMatrix.scrollableRange.rows.filter(function(e){return e.top+e.height<f}),Q.last.row.idx<=e.cellMatrix.last.row.idx?Q.first.row.idx<_.row.idx?rK(e,Q.last.column.idx,Q.first.column.idx,Q.last.row.idx,m?e.cellMatrix.ranges.stickyTopRange.last.row.idx:y?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.first.row.idx:I?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:M?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:Q.first.row.idx+G.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:Q.first.row.idx+G.length,"vertical"):rK(e,Q.first.column.idx,Q.last.column.idx,Q.first.row.idx,C?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:v?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:x?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:h?e.cellMatrix.ranges.stickyTopRange.last.row.idx:Q.last.row.idx+G.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:Q.last.row.idx+G.length,"vertical"):e}else switch(t.keyCode){case w.DELETE:case w.BACKSPACE:return null===(W=e.hiddenFocusElement)||void 0===W||W.focu
1s(),(N=e).selectedRanges.forEach(function(e){return e.rows.forEach(function(t){return e.columns.forEach(function(e){return N=A(N,{row:t,column:e},rR)})})}),N;case w.UP_ARROW:return null===(X=e.hiddenFocusElement)||void 0===X||X.focus(),rZ(e);case w.DOWN_ARROW:return null===(F=e.hiddenFocusElement)||void 0===F||F.focus(),rV(e);case w.LEFT_ARROW:return null===(Z=e.hiddenFocusElement)||void 0===Z||Z.focus(),rX(e);case w.RIGHT_ARROW:return null===(V=e.hiddenFocusElement)||void 0===V||V.focus(),rF(e);case w.TAB:return null===(H=e.hiddenFocusElement)||void 0===H||H.focus(),t.preventDefault(),K?rF(e):r_(e,"right",Q,_);case w.HOME:return null===(O=e.hiddenFocusElement)||void 0===O||O.focus(),rP(e);case w.END:return null===(D=e.hiddenFocusElement)||void 0===D||D.focus(),rW(e);case w.PAGE_UP:return null===(Y=e.hiddenFocusElement)||void 0===Y||Y.focus(),rO(e);case w.PAGE_DOWN:return null===(z=e.hiddenFocusElement)||void 0===z||z.focus(),rD(e);case w.ENTER:var en=(null===(J=e.props)||void 0===J?void 0:J.moveRightOnEnter)?g(g({},rF(e,t.keyCode)),{currentlyEditedCell:void 0}):g(g({},rV(e)),{currentlyEditedCell:void 0});return null===(j=e.hiddenFocusElement)||void 0===j||j.focus(),K?en:r_(e,"right",Q,_);case w.ESCAPE:return t.preventDefault(),null===(U=e.hiddenFocusElement)||void 0===U||U.focus(),e.currentlyEditedCell?g(g({},e),{currentlyEditedCell:void 0}):e}return e}(t,e))!==t&&(e.stopPropagation(),e.preventDefault()),n},t.prototype.handleKeyUp=function(e,t){return e.keyCode!==w.TAB&&e.keyCode!==w.ENTER||(e.preventDefault(),e.stopPropagation()),t},t.prototype.handleCompositionEnd=function(e,t){var n;return(n=function(e,t){var n=e.focusedLocation;if(!n)return e;var o=R(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?g(g({},e),{currentlyEditedCell:a}):A(e,n,a)}return e}(t,e))!==t&&(e.stopPropagation(),e.preventDefault()),n},t.prototype.handleCopy=function(e,t){return r4(e,t)},t.prototype.handlePaste=function(e,t){return function(e,t){if(!rC(t))return t;var n,o,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"),p=d&&JSON.parse(d),f=a[c].children[u].innerHTML;s.push(p||{type:"text",text:f,value:rk(f)})}r.push(s)}else r=e.clipboardData.getData("text/plain").split("\n").map(function(e){return e.split(" ").map(function(e){return{type:"text",text:e,value:rk(e)}})});return e.preventDefault(),g({},rM(t,r))}(e,t)},t.prototype.handleCut=function(e,t){return r4(e,t,!0)},t}(C),r3={legacyBrowserMode:"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>0||"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge/")>0,focusedLocation:void 0,currentBehavior:new r5,cellTemplates:o7,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},r6=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=P(M(n.scrollableElement).scrollLeft,S(n).left);return L(n).width+o-e.ranges.stickyRightRange.width}}(n,e,t)||function(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}(n,e)||function(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)return P(M(n.scrollableElement).scrollLeft,S(n).left)}(n,e,t)||0},r8=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=P(M(n.scrollableElement).scrollTop,S(n).top);return L(n).height+o-e.ranges.stickyBottomRange.height}}(n,e,t)||function(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}(n,e)||function(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)return P(M(n.scrollableElement).scrollTop,S(n).top)}(n,e,t)||0},r7=function(e){var t=e.state,n=e.location,o=M(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=S(t),a=l.top,c=l.left,s=0,u=0;if(t.scrollableElement!==G()){var d=t.scrollableElement.getBoundingClientRect();s=d.left,u=d.top}return{state:t,location:n,left:n.column.left+r6(n,t)+s+c-i,top:n.row.top+r8(n,t)+u+a-r}},ie=function(){var e=ry(),t=e.currentlyEditedCell,n=e.focusedLocation,r=o.useRef(0),i=o.useReducer(r7,{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];
1return o.createElement(it,{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 A(e,n,t)})}))},it=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)},io=function(e){var t=e.hiddenElementRefHandler,n=ry().hiddenFocusElement;return o.createElement("input",{className:"rg-hidden-element",ref:t,inputMode:"none",onBlur:function(e){e.relatedTarget||null==n||n.focus({preventScroll:!0})}})},ir=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t}return d(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,r=e.error;return t?o.createElement(o.Fragment,null,o.createElement("h1",null,null==r?void 0:r.message)," ",o.createElement("br",null),o.createElement("br",null),o.createElement("details",null,null==r?void 0:r.stack,null==n?void 0:n.componentStack)):this.props.children},t}(o.Component);function ii(){return"undefined"!=typeof window&&navigator.userAgent.includes("Firefox")}var il=function(e){var t=e.eventHandlers,n=e.children,r=ry(),i=r.cellMatrix,l=r.props,a={width:(null==l?void 0:l.enableFullWidthHeader)?"100%":i.width,height:i.height};return o.createElement(ir,null,o.createElement("div",{className:"reactgrid",style:g({position:"relative",paddingRight:ii()?"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(io,{hiddenElementRefHandler:t.hiddenElementRefHandler}))))},ia={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 ic(e){var t;return g(g({},ia),null===(t=e.props)||void 0===t?void 0:t.labels)}var is=function(){var e=ry();return o.createElement(o.Fragment,null,o.createElement("h3",null,ic(e).legacyBrowserHeader),o.createElement("p",null,ic(e).legacyBrowserText))};function iu(){return"undefined"!=typeof window&&(void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile"))}var id=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 ig(e){return{left:e("left"),right:e("right"),top:e("top"),bottom:e("bottom")}}var ip=function(e){var t,n,r,i,l=e.state,a=e.location,s=e.range,u=e.borders,d=e.update,p=e.currentlyEditedCell,f=R(l,a),h=f.cell,m=f.cellTemplate,b=void 0!==l.focusedLocation&&c(l.focusedLocation,a),v=null!==(n=m.getClassName&&m.getClassName(h,!1))&&void 0!==n?n:"",y=o.useRef(p),x=function(e,t){return function(n){var o,r,i,l,a,c,s,d;return u[n]?(null===(i=null===(r=null===(o=h.style)||void 0===o?void 0:o.border)||void 0===r?void 0:r[n])||void 0===i?void 0:i[e])?null===(l=h.style.border[n])||void 0===l?void 0:l[e]:t:(null===(s=null===(c=null===(a=h.style)||void 0===a?void 0:a.border)||void 0===c?void 0:c[n])||void 0===s?void 0:s[e])?null===(d=h.style.border[n])||void 0===d?void 0:d[e]:"unset"}},I=ig(x("width","1px")),w=ig(x("style","solid")),C=ig(x("color","#e8e8e8")),E={borderLeftWidth:I.left,borderLeftStyle:w.left,borderLeftColor:C.left,borderRightWidth:I.right,borderRightStyle:w.right,borderRightColor:C.right,borderTopWidth:I.top,borderTopStyle:w.top,borderTopColor:C.top,borderBottomWidth:I.bottom,borderBottomStyle:w.bottom,borderBottomColor:C.bottom},M=iu(),G=(null===(r=l.props)||void 0===r?void 0:r.enableRowSelection)&&0===a.row.idx||(null===(i=l.props)||void 0===i?void 0:i.enableColumnSelection)&&0===a.column.idx,k=g(g(g(g(g({},m.getStyle&&(m.getStyle(h,!1)||{})),h.style&&((t=h.style).border,function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["border"]))),{left:a.column.left,top:a.row.top,width:s.width,height:s.height}),!(b&&y.current)&&E),(b||"header"===h.type||G)&&{touchAction:"none"}),N=b&&!!y.current,T=h.groupId?" rg-groupId-".concat(h.groupId):"",B=h.nonEditable?" rg-cell-nonEditable":"",S=N&&M?" rg-celleditor rg-".concat(h.type,"-celleditor"):" rg-".concat(h.type,"-cell"),L="rg-cell".concat(S).concat(T).
1concat(B," ").concat(v),P=b&&y.current&&M?y.current:h,W=o.useCallback(function(e,t){if(N)y.current=t?void 0:e,t&&d(function(t){return A(t,a,e)});else{if(!t)throw Error("commit should be set to true in this case.");d(function(t){return A(t,a,e)})}},[N,a,d,y]);return o.createElement("div",g({className:L,style:k},{"data-cell-colidx":a.column.idx,"data-cell-rowidx":a.row.idx}),m.render(P,!!M&&N,W),0===a.row.idx&&a.column.resizable&&o.createElement(id,null),l.enableGroupIdRender&&void 0!==(null==h?void 0:h.groupId)&&!(N&&M)&&o.createElement("span",{className:"rg-groupId"},h.groupId))},ih=function(e){var t,n=e.borderColor,r=e.location,i=e.className,l=e.state,c=r.column.idx,s=r.row.idx,u=null===(t=null==l?void 0:l.cellMatrix.rangesToRender[a(c,s)])||void 0===t?void 0:t.range;return u?o.createElement(ib,{location:r,className:"rg-cell-highlight ".concat(i||""),borderColor:n,width:u.width,height:u.height}):null},im=function(e){var t=e.borderColor,n=e.location,r=e.className;return o.createElement(ib,{location:n,className:"rg-cell-focus ".concat(r||""),borderColor:t,width:n.column.width,height:n.row.height})},ib=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)}})},iv=o.memo(function(e){var t=e.columns,n=e.row,r=e.cellRenderer,i=e.borders,l=e.state,c=t[t.length-1].idx;return o.createElement(o.Fragment,null,t.map(function(e){var t,s=null===(t=l.cellMatrix.rangesToRender[a(e.idx,n.idx)])||void 0===t?void 0:t.range;if(!s)return null;var u={row:n,column:e};return o.createElement(r,{key:n.idx+"-"+e.idx,borders:g(g({},i),{left:i.left&&0===e.left,right:i.right&&e.idx===c||l.cellMatrix.scrollableRange.last.column.idx!==u.column.idx}),state:l,location:u,range:s,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)});iv.displayName="RowRenderer";var iy=function(e){var t=e.state,n=e.calculatedRange;return o.createElement(o.Fragment,null,t.currentBehavior.renderPanePart(t,n))},ix=function(e){var t=e.state,n=e.location,r=(0,o.useRef)(null),i=(0,o.useState)({width:0,height:0}),l=i[0],a=i[1];return(0,o.useLayoutEffect)(function(){r.current&&a({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]),o.createElement("div",{className:"rg-touch-fill-handle",ref:r,style:{to
1p:n.row.bottom-l.width/2,left:n.column.right-l.height/2},onPointerDown:function(e){"mouse"!==e.pointerType&&t.update(function(e){return g(g({},e),{currentBehavior:new r9})})}},o.createElement("div",{className:"rg-fill-handle"}))},iI=function(e){var t=e.state,n=e.calculatedRange;return o.createElement(o.Fragment,null,t.selectedRanges[t.activeSelectedRangeIdx]&&n instanceof i&&n.contains(t.selectedRanges[t.activeSelectedRangeIdx].last)&&t.enableFillHandle&&!t.currentlyEditedCell&&!(t.currentBehavior instanceof F)&&o.createElement(ix,{state:t,location:t.selectedRanges[t.activeSelectedRangeIdx].last}))},iw=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&&r1(n,e)&&o.createElement(r0,{key:r,pane:n,range:e,className:"rg-partial-area-selected-range",style:{}})}))},iC=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(iv,{key:e.rowId,state:n,row:e,columns:t.columns,forceUpdate:!0,cellRenderer:i,borders:g(g({},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)});iC.displayName="PaneGridContent";var iR=function(e){var t=e.className,n=e.style,r=e.renderChildren,i=e.children;return n.width&&n.height?o.createElement(iE,{className:t,style:n}," ",r&&i," "):null},iA=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(iC,{state:t,range:l,borders:r,cellRenderer:i}),t.highlightLocations.map(function(e,n){try{var r=t.cellMatrix.getLocationById(e.rowId,e.columnId);return r&&l.contains(r)&&o.createElement(ih,{key:n,location:r,state:t,borderColor:e.borderColor})}catch(e){return console.error("Cell location fot found while rendering highlights at: ".concat(e.message)),null}}),t.focusedLocation&&!(t.currentlyEditedCell&&iu())&&l.contains(t.focusedLocation)&&o.createElement(im,{location:t.focusedLocation}),o.createElement(iw,{state:t,calculatedRange:l}),o.createElement(iy,{state:t,calculatedRange:l}),o.createElement(iI,{state:t,calculatedRange:l}))},iE=function(e){return o.createElement("div",{className:"rg-pane ".concat(e.className),style:e.style}," ",e.children," ")},iM=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:g(g({},r),ii()&&{zIndex:i})},l):null};function iG(e){return!k()&&e.ctrlKey||e.metaKey}var ik=function(e){return function(t){return function(n){return function(){return t.slice(n,e)}}}},iN=ik("columns"),iT=ik("rows")}}]); 2//# sourceMappingURL=1fe4175e.4bbe894a6c753a12.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.