diff --git a/dist/core/handleStateUpdate-13a9c5a8.js b/dist/core/handleStateUpdate-13a9c5a8.js new file mode 100644 index 00000000..adc7dbad --- /dev/null +++ b/dist/core/handleStateUpdate-13a9c5a8.js @@ -0,0 +1,2 @@ +import*as e from"react";import t,{useState as n,useCallback as o,forwardRef as r,useContext as i,useLayoutEffect as l,useEffect as a,useRef as c,createContext as s,useMemo as u,Component as d,Fragment as g}from"react";import{createPortal as p}from"react-dom";var f=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}(),h=function(){function e(e){this.ranges=e,this.width=0,this.height=0,this.rowIndexLookup={},this.columnIndexLookup={},this.spanCellLookup={},this.rangesToRender={}}return e.prototype.getRange=function(e,t){var n=this.columns.slice(Math.min(e.column.idx,t.column.idx),Math.max(e.column.idx,t.column.idx)+1),o=this.rows.slice(Math.min(e.row.idx,t.row.idx),Math.max(e.row.idx,t.row.idx)+1);return new f(o,n)},e.prototype.getLocation=function(e,t){return{row:this.rows[e],column:this.columns[t]}},e.prototype.getLocationById=function(e,t){try{var n=this.rows[this.rowIndexLookup[e]],o=this.columns[this.columnIndexLookup[t]];return this.validateLocation({row:n,column:o})}catch(n){throw new RangeError("column: '".concat(t,"', row: '").concat(e,"'"))}},e.prototype.validateLocation=function(e){var t,n,o=null!==(t=this.columnIndexLookup[e.column.columnId])&&void 0!==t?t:Math.min(e.column.idx,this.last.column.idx),r=null!==(n=this.rowIndexLookup[e.row.rowId])&&void 0!==n?n:Math.min(e.row.idx,this.last.row.idx);return this.getLocation(r,o)},e.prototype.validateRange=function(e){return this.getRange(this.validateLocation(e.first),this.validateLocation(e.last))},e.prototype.getCell=function(e){return this.rows[e.row.idx].cells[e.column.idx]},e.DEFAULT_ROW_HEIGHT=25,e.DEFAULT_COLUMN_WIDTH=150,e.MIN_COLUMN_WIDTH=40,e}();function m(e,t){return"".concat(e,", ").concat(t)}function b(e,t){return e.column.columnId===(null==t?void 0:t.column.columnId)&&e.row.rowId===(null==t?void 0:t.row.rowId)}var v=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||b(t,o))&&(n=n.currentBehavior.handlePointerDown(e,t,n)),n},e.prototype.shouldHandleDoubleClick=function(e,t,n){return t-n<500&&b(e,this.eventLocations[0])&&b(e,this.eventLocations[1])},e.prototype.shouldHandleCellSelectionOnMobile=function(e,t,n){return"mouse"!==e.pointerType&&b(t,this.pointerDownLocation)&&void 0!==e.pointerType&&n-this.eventTimestamps[this.currentIndex]<500&&t.row.idx>0&&t.column.idx>0},e}();function y(e){return!(0!==e.button&&void 0!==e.button||"reactgrid-content"===e.target.className&&void 0!==e.pointerType)}function x(e,t){if(!t.reactGridElement)return!1;var n=t.reactGridElement.getBoundingClientRect().left;return!(e.clientX-n>t.cellMatrix.width)}var I=function(e,t){return I=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])},I(e,t)};function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,o=arguments.length;n2&&/MacIntel/.test(window.navigator.platform))}function H(e){return e?{width:e instanceof HTMLElement?e.clientWidth:F()?window.innerWidth:document.documentElement.clientWidth,height:e instanceof HTMLElement?e.clientHeight:F()?window.innerHeight:document.documentElement.clientHeight}:{width:0,height:0}}function O(e){var t=W(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop;if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling "getBoundingClientRect()"');var r=e.reactGridElement.getBoundingClientRect(),i=r.left+n,l=r.top+o;if(void 0!==e.scrollableElement&&e.scrollableElement!==X()){var a=e.scrollableElement.getBoundingClientRect();i-=a.left,l-=a.top}return{left:i,top:l}}function D(e){var t=W(e.scrollableElement),n=t.scrollLeft,o=t.scrollTop,r=H(e.scrollableElement),i=r.width,l=r.height,a=O(e),c=a.left,s=a.top,u=o+l,d=s+e.cellMatrix.height,g=su?u:d,f=n+i,h=c+e.cellMatrix.width,m=cf?f:h;return{width:Math.max(b-m,0),height:Math.max(p-g,0),visibleOffsetRight:f-b,visibleOffsetBottom:u-p}}var Y=function(e,t){return e>t?e-t:0};function z(e,t,n,o){if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var r=e.reactGridElement.getBoundingClientRect(),i=t-r.left,l=n-r.top,a=function(e,t,n){return j(e,t,n)||function(e,t,n){var o=e.cellMatrix,r=W(e.scrollableElement).scrollTop,i=O(e).top,l=H(e.scrollableElement).height,a=Y(r,i),c=Math.max(o.height-l+i,0),s=D(e).height+a-o.ranges.stickyBottomRange.height;if(o.ranges.stickyBottomRange.rows.length>0&&t>=s&&!(n&&r+1t-s}))||o.last.row;return{cellY:t-s-u.top,row:u}}}(e,t,n)||function(e,t){if(e.cellMatrix.scrollableRange.rows.length<1){var n=t>=e.cellMatrix.height?e.cellMatrix.last:e.cellMatrix.first;return{cellY:n.row.height,row:n.row}}return _(e,t)}(e,t)}(e,l,"vertical"===o||"both"===o),c=a.cellY,s=a.row,u=function(e,t,n){return U(e,t,n)||J(e,t,n)||function(e,t){if(e.cellMatrix.scrollableRange.columns.length<1){var n=t>=e.cellMatrix.width?e.cellMatrix.last:e.cellMatrix.first;return{cellX:n.column.width,column:n.column}}return Q(e,t)}(e,t)}(e,i,"horizontal"===o||"both"===o),d=u.cellX;return{row:s,column:u.column,viewportX:i,viewportY:l,cellX:d,cellY:c}}function J(e,t,n){var o=e.cellMatrix,r=W(e.scrollableElement).scrollLeft,i=O(e).left,l=H(e.scrollableElement).width,a=Y(r,i),c=Math.max(o.width-l+i,0),s=D(e).width+a-o.ranges.stickyRightRange.width;if(o.ranges.stickyRightRange.columns.length>0&&t>=s&&!(n&&r+1t-s}))||o.last.column;return{cellX:t-s-u.left,column:u}}}function j(e,t,n){var o=e.cellMatrix,r=W(e.scrollableElement).scrollTop,i=O(e).top,l=Y(r,i);if(o.ranges.stickyTopRange.rows.find((function(e){return e.bottom>t-l}))&&ti)){var a=o.ranges.stickyTopRange.rows.find((function(e){return e.bottom>t-l}))||o.ranges.stickyTopRange.first.row;return{cellY:t-a.top,row:a}}}function U(e,t,n){var o=e.cellMatrix,r=W(e.scrollableElement).scrollLeft,i=O(e).left,l=Y(r,i);if(o.ranges.stickyLeftRange.columns.find((function(e){return e.right>t-l}))&&ti)){var a=o.ranges.stickyLeftRange.columns.find((function(e){return e.right>t-l}))||o.ranges.stickyLeftRange.first.column;return{cellX:t-a.left,column:a}}}function _(e,t){var n=e.cellMatrix,o=t-n.ranges.stickyTopRange.height,r=n.scrollableRange.rows.find((function(e){return e.bottom>=o}))||n.scrollableRange.last.row;return{cellY:o-r.top,row:r}}function Q(e,t){var n=e.cellMatrix,o=t-n.ranges.stickyLeftRange.width,r=n.scrollableRange.columns.find((function(e){return e.right>=o}))||n.scrollableRange.last.column;return{cellX:o-r.left,column:r}}function K(e,t){e.preventDefault();var n=e.clientX,o=e.clientY,r=window.innerHeight-o>25,i=window.innerWidth-n>120,l=!r,a=!i,c=t.contextMenuPosition;r&&(c.top=o),i&&(c.left=n+5),l&&(c.top=o-25-5),a&&(c.left=n-120-5);var s=z(t,n,o);return t.selectedRanges.find((function(e){return e.contains(s)}))||(t=S(t,s)),C(C({},t),{contextMenuPosition:c})}var $=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(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 Mc(e)&&"range"===n.selectionMode?G(n,o):M(n,o,!1)}if(n.enableRangeSelection&&Mc(e)){var r=n.selectedRanges.findIndex((function(e){return e.contains(t)})),i=n.selectedRanges[r],l=B(n,t).cellTemplate;if(i)n=S(n,t,!1),n=C(C({},n),{activeSelectedRangeIdx:r});else if(!l.isFocusable){o=n.cellMatrix.getRange(t,t);n=S(n=M(n,o,!0),t,!1)}}else n=S(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&&x(e,n)?G(n,o):M(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=R([],n.selectedRanges,!0).filter((function(e,t){return t!==n.activeSelectedRangeIdx}));return C(C({},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 K(e,t)},t}(T),q=function(t){var n=t.left,o=t.linePosition,r=t.offset;return e.createElement(e.Fragment,null,-1!==o&&e.createElement("div",{className:"rg-column-resize-hint",style:{left:o-r}},e.createElement("span",{style:{whiteSpace:"nowrap"}},"Width: ",Math.floor(o-n-r),"px")))},ee=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return w(n,e),n.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},n.prototype.handlePointerMove=function(e,t,n){var o,r,i,l,a=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:h.MIN_COLUMN_WIDTH)||t.column.idx>this.resizedColumn.idx)){var c=this.getLinePositionOffset(n);a=(null!==(l=null===(i=n.props)||void 0===i?void 0:i.minColumnWidth)&&void 0!==l?l:h.MIN_COLUMN_WIDTH)+this.resizedColumn.left+c}return C(C({},n),{linePosition:a,lineOrientation:"vertical"})},n.prototype.handlePointerUp=function(e,t,n){var o,r,i,l,a,c=this.resizedColumn.width+t.viewportX-this.initialLocation.viewportX;if(null===(o=n.props)||void 0===o?void 0:o.onColumnResized){var s=c>=(null!==(i=null===(r=n.props)||void 0===r?void 0:r.minColumnWidth)&&void 0!==i?i:h.MIN_COLUMN_WIDTH)?c:null!==(a=null===(l=n.props)||void 0===l?void 0:l.minColumnWidth)&&void 0!==a?a:h.MIN_COLUMN_WIDTH;n.props.onColumnResized(this.resizedColumn.columnId,s,n.selectedIds)}var u=n.focusedLocation;if(void 0!==u&&this.resizedColumn.columnId===u.column.idx){var d=C(C({},u.column),{width:c});u=C(C({},u),{column:d})}return C(C({},n),{linePosition:-1,focusedLocation:u})},n.prototype.renderPanePart=function(e,n){var o=this.getLinePositionOffset(e);return n.contains(this.initialLocation)&&t.createElement(q,{left:this.resizedColumn.left,linePosition:e.linePosition,offset:o})},n.prototype.getLinePositionOffset=function(e){var t=this,n=W(e.scrollableElement).scrollLeft,o=O(e).left,r=Y(n,o),i=D(e).width+r-e.cellMatrix.ranges.stickyRightRange.width;return e.cellMatrix.scrollableRange.columns.some((function(e){return e.idx===t.resizedColumn.idx}))?e.cellMatrix.ranges.stickyLeftRange.width:e.cellMatrix.ranges.stickyRightRange.columns.some((function(e){return e.idx===t.resizedColumn.idx}))?i:n},n}(T),te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return w(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 eo?o:n},t.prototype.handlePointerEnter=function(e,t,n){var o,r=this.getLastPossibleDropLocation(t,n),i=W(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,C(C({},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 C(C({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return K(e,t)},t}(T);function ne(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 oe(e,t){return D(e).height-t}function re(e,t,n,o){return n+e.row.bottom-t-o}function ie(e,t,n){return t-n+e.row.top-1}function le(e,t,n){var o=W(e.scrollableElement).scrollTop,r=O(e).top,i=Y(o,r);return n0&&o.idx<=n.last.row.idx}function se(e,t){return D(e).width-t}function ue(e,t,n,o){return n+e.column.right-t-o}function de(e,t,n){return t-n+e.column.left-1}function ge(e,t,n){var o=W(e.scrollableElement).scrollLeft,r=O(e).left,i=Y(o,r);return n0&&o.idx<=n.last.column.idx}function he(e,t,n){var o=n.focusedLocation;if(o){var r=!(b(o,t.focusedLocation)||n.currentBehavior instanceof ee),i=void 0!==n.currentlyEditedCell&&n.currentlyEditedCell!==t.currentlyEditedCell;if(r||i){var l=me(n,o),a=l.left;ne(n,l.top,a)}}}function me(e,t,n){return void 0===n&&(n="both"),{top:be(e,t,"horizontal"===n),left:ve(e,t,"vertical"===n)}}function be(e,t,n){var o=e.cellMatrix.ranges,r=o.stickyTopRange,i=o.stickyBottomRange,l=W(e.scrollableElement).scrollTop,a=oe(e,r.height+i.height),c=O(e).top,s=Y(l,c),u=t.row;if(n||!u)return l;var d=ye(e,t)?1:0;return ce(e,t)||function(e,t){var n=e.cellMatrix.ranges.stickyBottomRange,o=t.row;return n.rows.length>0&&o.idx>=n.first.row.idx}(e,t)?l:le(e,t,a+d)?re(t,a-1-d,l,s):ae(e,t)?ie(t,l,s):l}function ve(e,t,n){var o=e.cellMatrix.ranges,r=o.stickyLeftRange,i=o.stickyRightRange,l=W(e.scrollableElement).scrollLeft,a=se(e,r.width+i.width),c=O(e).left,s=Y(l,c),u=t.column;if(n||!u)return l;var d=ye(e,t)?1:0;return fe(e,t)||function(e,t){var n=e.cellMatrix.ranges.stickyRightRange,o=t.column;return n.columns.length>0&&o.idx>=n.first.column.idx}(e,t)?l:ge(e,t,a+d)?ue(t,a-1-d,l,s):pe(e,t)?de(t,l,s):l}function ye(e,t){return e.cellMatrix.scrollableRange.contains(t)&&e.scrollableElement===X()}var xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePointerDown=function(e,n){var o;t.isInLeftSticky=!1,t.isInRightSticky=!1,t.isInTopSticky=!1,t.isInBottomSticky=!1;var r=function(e,t){if(!t.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var n=t.reactGridElement.getBoundingClientRect(),o=n.left,r=n.right,i=e.clientX-o,l=t.cellMatrix.ranges.stickyRightRange.width;return!(i>=t.cellMatrix.width-l)||e.clientX>=r-l}(e,n);if((null===(o=n.props)||void 0===o?void 0:o.onContextMenu)&&r&&window.addEventListener("contextmenu",t.handleContextMenu),!r)return C(C({},n),{contextMenuPosition:{top:-1,left:-1}});if(!y(e))return n;window.addEventListener("pointermove",t.handlePointerMove),window.addEventListener("pointerup",t.handlePointerUp);var i=z(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:C(C({},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=z(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=z(n,e.clientX,e.clientY,void 0),l=z(n,e.clientX,e.clientY,r);if(i.column.idxl.column.idx&&!t.isFromRightToLeftScroll&&!t.isInRightSticky?(t.isFromRightToLeftScroll=!1,l=i):i.row.idxl.row.idx&&!t.isFromBottomToTopScroll&&!t.isInBottomSticky?(t.isFromBottomToTopScroll=!1,l=i):(t.isInLeftSticky=!0,t.isInRightSticky=!0,t.isInTopSticky=!0,t.isInBottomSticky=!0),"reactgrid-content"!==e.target.className&&!(n.currentBehavior instanceof ee)&&(null===(o=n.props)||void 0===o?void 0:o.enableRangeSelection)||n.currentBehavior instanceof te){var a=me(n,l),c=a.left;ne(n,a.top,c)}n=n.currentBehavior.handlePointerMove(e,l,n);var s=t.eventLocations[t.currentIndex];return t.eventLocations[t.currentIndex]=l,b(l,s)||(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=z(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=C(C({},n),{currentBehavior:new Oa}),t.shouldHandleDoubleClick(r,i,l)&&(n=n.currentBehavior.handleDoubleClick(e,r,n)),null===(o=n.hiddenFocusElement)||void 0===o||o.focus(),n})))},t}return w(t,e),t}(v),Ie=400,we=300,Ce=1;function Re(e){if(e.disableVirtualScrolling){var t=e.cellMatrix.scrollableRange,n=t.rows,o=t.columns,r=new f(n,o);return C(C({},e),{visibleRange:r})}var i=W(e.scrollableElement),l=i.scrollTop,a=i.scrollLeft,c=Ae(e,[-e.cellMatrix.ranges.stickyTopRange.height],[-e.cellMatrix.ranges.stickyLeftRange.width]),s=c.width,u=c.height,d=Ee(e,s),g=Me(e,u),p=new f(g,d);return C(C({},e),{leftScrollBoudary:p.columns.length>0?a-we:0,rightScrollBoudary:void 0===p.last.column?0:we+a,topScrollBoudary:p.columns.length>0?l-Ie:0,bottomScrollBoudary:void 0===p.last.row?0:Ie+l,visibleRange:p})}function Ae(e,t,n){var o=D(e),r=o.height,i=o.width,l=function(e,t){return e+t};return{height:Math.max(t.reduce(l,r),0),width:Math.max(n.reduce(l,i),0)}}function Ee(e,t){var n=e.cellMatrix.scrollableRange.columns,o=O(e).left,r=W(e.scrollableElement).scrollLeft,i=Math.max(Ne(n,r-o-we)-Ce-1,0),l=Ne(n,t+Y(r,o)+we,i);return n.slice(i,l+Ce)}function Me(e,t){var n=e.cellMatrix.scrollableRange.rows,o=O(e).top,r=W(e.scrollableElement).scrollTop,i=Math.max(Ge(n,r-o-Ie)-Ce-1,0),l=Ge(n,t+Y(r,o)+Ie,i);return n.slice(i,l+Ce)}function Ge(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>1;return r<0?0:n>=o?r:t0&&(f=e.columns.slice(-c).reduce((function(e,t){return e+(t.width||h.DEFAULT_COLUMN_WIDTH)}),0));var m=p+f>o*d/100;l=m?0:l,c=m?0:c}if(e.stickyTopRows||e.stickyBottomRows){var b=e.rows.slice(0,a).reduce((function(e,t){return e+(t.height||h.DEFAULT_ROW_HEIGHT)}),0),v=0;s>0&&(v=e.rows.slice(-s).reduce((function(e,t){return e+(t.height||h.DEFAULT_ROW_HEIGHT)}),0));var y=b+v>i*g/100;a=y?0:a,s=y?0:s}}return C(C({},t),{leftStickyColumns:l,topStickyRows:a,rightStickyColumns:c,bottomStickyRows:s})}var Be,Le=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(Re)},this.reactgridRefHandler=function(e){return n.assignElementsRefs(e,Re)},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(Re)},this.assignElementsRefs=function(e,t){e&&n.updateState((function(n){var o=P(e,!0);return n.props&&(n=Te(n.props,n)),t(C(C({},n),{reactGridElement:e,scrollableElement:o}))}))},this.updateOnScrollChange=function(e){n.updateState((function(t){if(t.disableVirtualScrolling)return t;var n=200,o=W(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=D(t),a=l.width,c=l.height;return a>0&&c>0&&(r>=t.bottomScrollBoudary-n||r<=t.topScrollBoudary+n||i>=t.rightScrollBoudary-n||i<=t.leftScrollBoudary+n)?e(t):t}))}},Se=function(){function e(){this.reset()}return e.prototype.reset=function(){return this.cellMatrix=new h({}),this},e.prototype.setProps=function(e){return this.cellMatrix.props=e,this},e.prototype.fillRowsAndCols=function(e){var t=this;void 0===e&&(e={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var n=e.leftStickyColumns,o=e.topStickyRows,r=e.rightStickyColumns,i=e.bottomStickyRows;if(!Array.isArray(this.cellMatrix.props.rows))throw new TypeError('Feeded ReactGrids "rows" property is not an array!');if(!Array.isArray(this.cellMatrix.props.columns))throw new TypeError('Feeded ReactGrids "columns" property is not an array!');return this.cellMatrix.rows=this.cellMatrix.props.rows.reduce((function(e,n,r){var l=t.getTop(r,o,i,e),a=n.height||h.DEFAULT_ROW_HEIGHT;return e.push(C(C({},n),{top:l,height:a,idx:r,bottom:l+a})),t.cellMatrix.height+=a,t.cellMatrix.rowIndexLookup[n.rowId]=r,e}),[]),this.cellMatrix.columns=this.cellMatrix.props.columns.reduce((function(e,o,i){var l,a,c,s,u=t.getLeft(i,n,r,e),d=o.width?o.width<(null!==(a=null===(l=t.cellMatrix.props)||void 0===l?void 0:l.minColumnWidth)&&void 0!==a?a:h.MIN_COLUMN_WIDTH)?null!==(s=null===(c=t.cellMatrix.props)||void 0===c?void 0:c.minColumnWidth)&&void 0!==s?s:h.MIN_COLUMN_WIDTH:o.width:h.DEFAULT_COLUMN_WIDTH;return e.push(C(C({},o),{idx:i,left:u,width:d,right:u+d})),t.cellMatrix.width+=d,t.cellMatrix.columnIndexLookup[o.columnId]=i,e}),[]),this},e.prototype.setRangesToRenderLookup=function(){var e=this,t=[];this.cellMatrix.rows.forEach((function(n,o){n.cells.forEach((function(n,r){var i="rowspan"in n&&n.rowspan||0,l="colspan"in n&&n.colspan||0,a=i?e.cellMatrix.rows.slice(o,o+i):[e.cellMatrix.rows[o]],c=l?e.cellMatrix.columns.slice(r,r+l):[e.cellMatrix.columns[r]],s=new f(a,c);t=R(R([],t,!0),e.getRangesToRender(s),!0),e.cellMatrix.spanCellLookup[m(r,o)]={range:s}}))}));var n=t.map((function(e){return m(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 f([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 f(this.cellMatrix.rows,this.cellMatrix.columns.slice(0,t||0)),this.cellMatrix.ranges.stickyTopRange=new f(this.cellMatrix.rows.slice(0,n||0),this.cellMatrix.columns),this.cellMatrix.ranges.stickyRightRange=new f(this.cellMatrix.rows,this.cellMatrix.columns.slice(this.getStickyRightFirstIdx(t,o),this.cellMatrix.columns.length)),this.cellMatrix.ranges.stickyBottomRange=new f(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 f(this.cellMatrix.rows.slice(t||0,this.getStickyBottomFirstIdx(t,o)),this.cellMatrix.columns.slice(e||0,this.getStickyRightFirstIdx(e,n)))},e.prototype.getStickyBottomFirstIdx=function(e,t){var n=t||0,o=e||0,r=this.cellMatrix.props.rows.length;return r-(n+o>r?0:n)},e.prototype.getStickyRightFirstIdx=function(e,t){var n=t||0,o=e||0,r=this.cellMatrix.props.columns.length;return r-(n+o>r?0:n)},e.prototype.getCellMatrix=function(){var e=this.cellMatrix;return this.reset(),e},e}(),Pe=function(e,t,n){var o=e[t];if(null==o)throw new Error("Cell is missing property '".concat(String(t),"'"));if(typeof o!==n)throw new Error("Property '".concat(String(t),"' expected to be of type '").concat(n,"' but is '").concat(typeof o,"'"));return o};!function(e){e[e.POINTER=1]="POINTER",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ALT=18]="ALT",e[e.PAUSE=19]="PAUSE",e[e.CAPS_LOCK=20]="CAPS_LOCK",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT_ARROW=37]="LEFT_ARROW",e[e.UP_ARROW=38]="UP_ARROW",e[e.RIGHT_ARROW=39]="RIGHT_ARROW",e[e.DOWN_ARROW=40]="DOWN_ARROW",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.KEY_0=48]="KEY_0",e[e.KEY_1=49]="KEY_1",e[e.KEY_2=50]="KEY_2",e[e.KEY_3=51]="KEY_3",e[e.KEY_4=52]="KEY_4",e[e.KEY_5=53]="KEY_5",e[e.KEY_6=54]="KEY_6",e[e.KEY_7=55]="KEY_7",e[e.KEY_8=56]="KEY_8",e[e.KEY_9=57]="KEY_9",e[e.KEY_A=65]="KEY_A",e[e.KEY_B=66]="KEY_B",e[e.KEY_C=67]="KEY_C",e[e.KEY_D=68]="KEY_D",e[e.KEY_E=69]="KEY_E",e[e.KEY_F=70]="KEY_F",e[e.KEY_G=71]="KEY_G",e[e.KEY_H=72]="KEY_H",e[e.KEY_I=73]="KEY_I",e[e.KEY_J=74]="KEY_J",e[e.KEY_K=75]="KEY_K",e[e.KEY_L=76]="KEY_L",e[e.KEY_M=77]="KEY_M",e[e.KEY_N=78]="KEY_N",e[e.KEY_O=79]="KEY_O",e[e.KEY_P=80]="KEY_P",e[e.KEY_Q=81]="KEY_Q",e[e.KEY_R=82]="KEY_R",e[e.KEY_S=83]="KEY_S",e[e.KEY_T=84]="KEY_T",e[e.KEY_U=85]="KEY_U",e[e.KEY_V=86]="KEY_V",e[e.KEY_W=87]="KEY_W",e[e.KEY_X=88]="KEY_X",e[e.KEY_Y=89]="KEY_Y",e[e.KEY_Z=90]="KEY_Z",e[e.LEFT_META=91]="LEFT_META",e[e.RIGHT_META=92]="RIGHT_META",e[e.SELECT=93]="SELECT",e[e.NUMPAD_0=96]="NUMPAD_0",e[e.NUMPAD_1=97]="NUMPAD_1",e[e.NUMPAD_2=98]="NUMPAD_2",e[e.NUMPAD_3=99]="NUMPAD_3",e[e.NUMPAD_4=100]="NUMPAD_4",e[e.NUMPAD_5=101]="NUMPAD_5",e[e.NUMPAD_6=102]="NUMPAD_6",e[e.NUMPAD_7=103]="NUMPAD_7",e[e.NUMPAD_8=104]="NUMPAD_8",e[e.NUMPAD_9=105]="NUMPAD_9",e[e.MULTIPLY=106]="MULTIPLY",e[e.ADD=107]="ADD",e[e.SUBTRACT=109]="SUBTRACT",e[e.DECIMAL=110]="DECIMAL",e[e.DIVIDE=111]="DIVIDE",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NUM_LOCK=144]="NUM_LOCK",e[e.SCROLL_LOCK=145]="SCROLL_LOCK",e[e.FIREFOX_DASH=173]="FIREFOX_DASH",e[e.SEMICOLON=186]="SEMICOLON",e[e.EQUALS=187]="EQUALS",e[e.COMMA=188]="COMMA",e[e.DASH=189]="DASH",e[e.PERIOD=190]="PERIOD",e[e.FORWARD_SLASH=191]="FORWARD_SLASH",e[e.GRAVE_ACCENT=192]="GRAVE_ACCENT",e[e.OPEN_BRACKET=219]="OPEN_BRACKET",e[e.BACK_SLASH=220]="BACK_SLASH",e[e.CLOSE_BRACKET=221]="CLOSE_BRACKET",e[e.SINGLE_QUOTE=222]="SINGLE_QUOTE"}(Be||(Be={}));var We=function(){function t(){}return t.prototype.getCompatibleCell=function(e){var t=Pe(e,"checked","boolean"),n=t?e.checkedText?e.checkedText:"1":e.uncheckedText?e.uncheckedText:"";return C(C({},e),{checked:!!t,value:t?1:NaN,text:n})},t.prototype.handleKeyDown=function(e,t,n,o,r){return o||t!==Be.SPACE&&t!==Be.ENTER?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(this.toggleCheckboxCell(e)),enableEditMode:!1}},t.prototype.toggleCheckboxCell=function(e){return this.getCompatibleCell(C(C({},e),{checked:!e.checked}))},t.prototype.update=function(e,t){var n="checkbox"===t.type?t.checked:!!t.value;return this.getCompatibleCell(C(C({},e),{checked:n}))},t.prototype.getClassName=function(e){return e.className?e.className:""},t.prototype.render=function(t,n,o){var r=this;return e.createElement("label",null,e.createElement("input",{type:"checkbox",checked:t.checked,onChange:function(e){return o(r.toggleCheckboxCell(t),!0)}}),e.createElement("span",null))},t}(),Xe=function(e){return e>=Be.KEY_0&&e<=Be.KEY_Z||He(e)||e>=Be.MULTIPLY&&e<=Be.DIVIDE||e>=Be.SEMICOLON&&e<=Be.SINGLE_QUOTE||e===Be.SPACE},Ze=function(e){return null!==e.match(/^[a-zA-Z0-9]$/)},Fe=function(e){return 1===e.length},Ve=function(e){return e>=Be.KEY_0&&e<=Be.KEY_9||He(e)},He=function(e){return e>=Be.NUMPAD_0&&e<=Be.NUMPAD_9},Oe=function(e){return e>=Be.COMMA&&e<=Be.PERIOD||e===Be.DECIMAL||e===Be.SUBTRACT||e===Be.FIREFOX_DASH},De=function(e){return null!==e.match(/[\d.,+-]/)},Ye=function(e){return e===Be.LEFT_ARROW||e===Be.RIGHT_ARROW||e===Be.UP_ARROW||e===Be.DOWN_ARROW||e===Be.END||e===Be.HOME||e===Be.BACKSPACE||e===Be.DELETE},ze=function(e,t){""!==t&&(t=je());var n="".concat(t&&"".concat(t," ")).concat(e);return Date.parse(n)},Je=function(e){return e.toString().padStart(2,"0")},je=function(){return F()||V()?"1970/01/01":"1970-01-01"},Ue=[];Ue[8]="",Ue[9]="",Ue[13]="\n",Ue[16]="",Ue[17]="",Ue[18]="",Ue[19]="",Ue[20]="",Ue[27]="",Ue[32]=" ",Ue[33]="",Ue[34]="",Ue[35]="",Ue[36]="",Ue[37]="",Ue[38]="",Ue[39]="",Ue[40]="",Ue[45]="",Ue[46]="",Ue[48]=")",Ue[49]="!",Ue[50]="@",Ue[51]="#",Ue[52]="$",Ue[53]="%",Ue[54]="^",Ue[55]="&",Ue[56]="*",Ue[57]="(",Ue[59]=":",Ue[61]="+",Ue[65]="A",Ue[66]="B",Ue[67]="C",Ue[68]="D",Ue[69]="E",Ue[70]="F",Ue[71]="G",Ue[72]="H",Ue[73]="I",Ue[74]="J",Ue[75]="K",Ue[76]="L",Ue[77]="M",Ue[78]="N",Ue[79]="O",Ue[80]="P",Ue[81]="Q",Ue[82]="R",Ue[83]="S",Ue[84]="T",Ue[85]="U",Ue[86]="V",Ue[87]="W",Ue[88]="X",Ue[89]="Y",Ue[90]="Z",Ue[91]="",Ue[92]="",Ue[93]="",Ue[96]="0",Ue[97]="1",Ue[98]="2",Ue[99]="3",Ue[100]="4",Ue[101]="5",Ue[102]="6",Ue[103]="7",Ue[104]="8",Ue[105]="9",Ue[106]="*",Ue[107]="+",Ue[109]="_",Ue[107]="+",Ue[111]="/",Ue[112]="",Ue[113]="",Ue[114]="",Ue[115]="",Ue[116]="",Ue[117]="",Ue[118]="",Ue[119]="",Ue[120]="",Ue[121]="",Ue[122]="",Ue[123]="",Ue[144]="",Ue[145]="",Ue[186]=":",Ue[187]="+",Ue[188]="<",Ue[189]="_",Ue[190]=">",Ue[191]="?",Ue[192]="~",Ue[219]="{",Ue[220]="|",Ue[221]="}",Ue[222]='"';var _e=[];_e[8]="",_e[9]="",_e[13]="\n",_e[16]="",_e[17]="",_e[18]="",_e[19]="",_e[20]="",_e[27]="",_e[32]=" ",_e[33]="",_e[34]="",_e[35]="",_e[36]="",_e[37]="",_e[38]="",_e[39]="",_e[40]="",_e[45]="",_e[46]="",_e[48]="0",_e[49]="1",_e[50]="2",_e[51]="3",_e[52]="4",_e[53]="5",_e[54]="6",_e[55]="7",_e[56]="8",_e[57]="9",_e[59]=";",_e[61]="=",_e[65]="a",_e[66]="b",_e[67]="c",_e[68]="d",_e[69]="e",_e[70]="f",_e[71]="g",_e[72]="h",_e[73]="i",_e[74]="j",_e[75]="k",_e[76]="l",_e[77]="m",_e[78]="n",_e[79]="o",_e[80]="p",_e[81]="q",_e[82]="r",_e[83]="s",_e[84]="t",_e[85]="u",_e[86]="v",_e[87]="w",_e[88]="x",_e[89]="y",_e[90]="z",_e[91]="",_e[92]="",_e[93]="",_e[96]="0",_e[97]="1",_e[98]="2",_e[99]="3",_e[100]="4",_e[101]="5",_e[102]="6",_e[103]="7",_e[104]="8",_e[105]="9",_e[106]="*",_e[107]="+",_e[109]="_",_e[107]="+",_e[111]="/",_e[112]="",_e[113]="",_e[114]="",_e[115]="",_e[116]="",_e[117]="",_e[118]="",_e[119]="",_e[120]="",_e[121]="",_e[122]="",_e[123]="",_e[144]="",_e[145]="",_e[186]=";",_e[187]="=",_e[188]=",",_e[189]="-",_e[190]=".",_e[191]="/",_e[192]="`",_e[219]="[",_e[220]="\\",_e[221]="]",_e[222]="'";var Qe=function(e,t){return void 0===t&&(t=!1),t?Ue[e]:_e[e]},Ke=function(e,t){return Fe(e)?e:""},$e=function(){function t(){this.wasEscKeyPressed=!1}return t.prototype.getCompatibleCell=function(e){var t=e.date?Pe(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 C(C({},e),{date:t,value:o,text:r})},t.prototype.handleKeyDown=function(e,t,n,o,r,i){return!n&&Ze(Ke(i))?{cell:this.getCompatibleCell(C({},e)),enableEditMode:!0}:{cell:e,enableEditMode:t===Be.POINTER||t===Be.ENTER}},t.prototype.update=function(e,t){return this.getCompatibleCell(C(C({},e),{date:new Date(t.value)}))},t.prototype.getClassName=function(e,t){return e.className?e.className:""},t.prototype.render=function(t,n,o){var r=this;if(!n)return t.text;if(!t.date)return'"cell.date" is not initialized with a date value';var i=Je(t.date.getFullYear()),l=Je(t.date.getMonth()+1),a=Je(t.date.getDate());return e.createElement("input",{ref:function(e){e&&e.focus()},type:"date",defaultValue:"".concat(i,"-").concat(l,"-").concat(a),onChange:function(e){var n=ze(e.currentTarget.value,"");Number.isNaN(n)||o(r.getCompatibleCell(C(C({},t),{date:new Date(n)})),!1)},onBlur:function(e){var n=ze(e.currentTarget.value,"");Number.isNaN(n)||(o(r.getCompatibleCell(C(C({},t),{date:new Date(n)})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1)},onKeyDown:function(e){(Ve(e.keyCode)||Ye(e.keyCode)||e.keyCode===Be.COMMA||e.keyCode===Be.PERIOD||(e.ctrlKey||e.metaKey)&&e.keyCode===Be.KEY_A)&&e.stopPropagation(),Ve(e.keyCode)||Ye(e.keyCode)||e.keyCode===Be.COMMA||e.keyCode===Be.PERIOD||e.preventDefault(),e.keyCode===Be.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()}})},t}(),qe=function(){function t(){this.wasEscKeyPressed=!1}return t.prototype.getCompatibleCell=function(e){var t=Pe(e,"text","string"),n=parseFloat(t);return C(C({},e),{text:t,value:n})},t.prototype.handleKeyDown=function(e,t,n,o,r,i){var l=Ke(i);return n||!Fe(i)||o&&t===Be.SPACE?{cell:e,enableEditMode:t===Be.POINTER||t===Be.ENTER}:{cell:C(C({},e),{text:l}),enableEditMode:!0}},t.prototype.handleCompositionEnd=function(e,t){return{cell:C(C({},e),{text:t}),enableEditMode:!0}},t.prototype.update=function(e,t){return this.getCompatibleCell(C(C({},e),{text:t.text}))},t.prototype.getClassName=function(e,t){return!e.validator||e.validator(e.text)?"valid":"rg-invalid"},t.prototype.render=function(t,n,o){var r=this;if(!n){var i=!(!t.validator||t.validator(t.text))&&t.errorMessage?t.errorMessage:t.text;return t.renderer?t.renderer(i):i}return e.createElement("input",{ref:function(e){e&&e.focus()},onChange:function(e){return o(r.getCompatibleCell(C(C({},t),{text:e.currentTarget.value})),!1)},onBlur:function(e){o(r.getCompatibleCell(C(C({},t),{text:e.currentTarget.value})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1},onKeyDown:function(e){(Xe(e.keyCode)||Ye(e.keyCode))&&e.stopPropagation(),e.keyCode===Be.ESCAPE&&(r.wasEscKeyPressed=!0)},defaultValue:t.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()}})},t}(),et=function(){function t(){this.wasEscKeyPressed=!1}return t.prototype.getCompatibleCell=function(e){var t=Pe(e,"text","string"),n=!1;try{n=Pe(e,"isExpanded","boolean")}catch(e){n=!0}var o=-1;try{o=Pe(e,"indent","number")}catch(e){o=0}var r=!1;try{r=Pe(e,"hasChildren","boolean")}catch(e){r=!1}var i=parseFloat(t);return C(C({},e),{text:t,value:i,isExpanded:n,indent:o,hasChildren:r})},t.prototype.update=function(e,t){return this.getCompatibleCell(C(C({},e),{isExpanded:t.isExpanded,text:t.text}))},t.prototype.handleKeyDown=function(e,t,n,o,r,i){var l=t===Be.POINTER||t===Be.ENTER,a=C({},e),c=Ke(i);return t!==Be.SPACE||void 0===a.isExpanded||o?n||!Fe(i)||o&&t===Be.SPACE||(a.text=c,l=!0):a.isExpanded=!a.isExpanded,{cell:a,enableEditMode:l}},t.prototype.handleCompositionEnd=function(e,t){return{cell:C(C({},e),{text:t}),enableEditMode:!0}},t.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)},t.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)")}},t.prototype.render=function(t,n,o){var r=this;return n?e.createElement("input",{ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:t.text,onChange:function(e){return o(r.getCompatibleCell(C(C({},t),{text:e.currentTarget.value})),!1)},onBlur:function(e){o(r.getCompatibleCell(C(C({},t),{text:e.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){(Xe(e.keyCode)||Ye(e.keyCode))&&e.stopPropagation(),e.keyCode===Be.ESCAPE&&(r.wasEscKeyPressed=!0)}}):e.createElement(e.Fragment,null,t.hasChildren?e.createElement("div",{className:"chevron",onPointerDown:function(e){e.stopPropagation(),o(r.getCompatibleCell(C(C({},t),{isExpanded:!t.isExpanded})),!0)}},e.createElement("span",{className:"icon"},"❯")):e.createElement("div",{className:"no-child"}),t.text)},t}(),tt=function(){function e(){this.isFocusable=function(e){return!1},this.getStyle=function(e){return{background:"rgba(128, 128, 128, 0.1)"}}}return e.prototype.getCompatibleCell=function(e){var t=Pe(e,"text","string"),n=parseFloat(t);return C(C({},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}(),nt=function(){function t(){this.wasEscKeyPressed=!1,this.getTextFromCharCode=function(e){switch(e.charCodeAt(0)){case Be.DASH:case Be.FIREFOX_DASH:case Be.SUBTRACT:return"-";case Be.COMMA:return",";case Be.PERIOD:case Be.DECIMAL:return".";default:return e}}}return t.prototype.getCompatibleCell=function(e){var t;try{t=Pe(e,"value","number")}catch(e){t=NaN}var n=e.format||new Intl.NumberFormat(window.navigator.language),o=e.nanToZero&&Number.isNaN(t)?0:t,r=Number.isNaN(o)||e.hideZero&&0===o?"":n.format(o);return C(C({},e),{value:o,text:r})},t.prototype.handleKeyDown=function(e,t,n,o,r,i){He(t)&&(t-=48);var l=Ke(i);if(!n&&De(l)){var a=Number(l);return Number.isNaN(a)&&De(l)?{cell:C(C({},this.getCompatibleCell(C(C({},e),{value:a}))),{text:l}),enableEditMode:!0}:{cell:this.getCompatibleCell(C(C({},e),{value:a})),enableEditMode:!0}}return{cell:e,enableEditMode:t===Be.POINTER||t===Be.ENTER}},t.prototype.update=function(e,t){return this.getCompatibleCell(C(C({},e),{value:t.value}))},t.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)},t.prototype.render=function(t,n,o){var r,i,l=this;if(!n)return!(null===(i=null===(r=t.validator)||void 0===r?void 0:r.call(t,t.value))||void 0===i||i)&&t.errorMessage?t.errorMessage:t.text;var a=t.format?t.format.resolvedOptions().locale:window.navigator.languages[0],c=new Intl.NumberFormat(a,{useGrouping:!1,maximumFractionDigits:20});return e.createElement("input",{inputMode:"decimal",ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:Number.isNaN(t.value)?this.getTextFromCharCode(t.text):c.format(t.value),onChange:function(e){return o(l.getCompatibleCell(C(C({},t),{value:parseFloat(e.currentTarget.value.replace(/,/g,"."))})),!1)},onBlur:function(e){o(l.getCompatibleCell(C(C({},t),{value:parseFloat(e.currentTarget.value.replace(/,/g,"."))})),!l.wasEscKeyPressed),l.wasEscKeyPressed=!1},onKeyDown:function(e){(Ve(e.keyCode)||Ye(e.keyCode)||Oe(e.keyCode)||(e.ctrlKey||e.metaKey)&&e.keyCode===Be.KEY_A)&&e.stopPropagation(),Ve(e.keyCode)||Ye(e.keyCode)||De(Ke(e.key))||e.preventDefault(),e.keyCode===Be.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()}})},t}(),ot=function(){function t(){this.wasEscKeyPressed=!1}return t.prototype.getCompatibleCell=function(e){var t,n=Pe(e,"text","string");try{t=Pe(e,"placeholder","string")}catch(e){t=""}var o=parseFloat(n);return C(C({},e),{text:n,value:o,placeholder:t})},t.prototype.update=function(e,t){return this.getCompatibleCell(C(C({},e),{text:t.text,placeholder:t.placeholder}))},t.prototype.handleKeyDown=function(e,t,n,o,r,i){var l=Ke(i);return n||!Fe(i)||o&&t===Be.SPACE?{cell:e,enableEditMode:t===Be.POINTER||t===Be.ENTER}:{cell:this.getCompatibleCell(C(C({},e),{text:l})),enableEditMode:!0}},t.prototype.handleCompositionEnd=function(e,t){return{cell:C(C({},e),{text:t}),enableEditMode:!0}},t.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)},t.prototype.render=function(t,n,o){var r=this;if(!n){var i=!t.validator||t.validator(t.text),l=t.text||t.placeholder||"",a=!i&&t.errorMessage?t.errorMessage:l;return t.renderer?t.renderer(a):a}return e.createElement("input",{ref:function(e){e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},defaultValue:t.text,onChange:function(e){return o(r.getCompatibleCell(C(C({},t),{text:e.currentTarget.value})),!1)},onBlur:function(e){o(r.getCompatibleCell(C(C({},t),{text:e.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:t.placeholder,onKeyDown:function(e){(Xe(e.keyCode)||Ye(e.keyCode))&&e.stopPropagation(),e.keyCode===Be.ESCAPE&&(r.wasEscKeyPressed=!0)}})},t}(),rt=function(){function t(){this.wasEscKeyPressed=!1}return t.prototype.getCompatibleCell=function(e){var n=e.time?Pe(e,"time","object"):new Date(NaN),o=e.format||new Intl.DateTimeFormat(window.navigator.language),r=n.getTime()%t.dayInMillis,i=Number.isNaN(r)?"":o.format(n);return C(C({},e),{time:n,value:r,text:i})},t.prototype.handleKeyDown=function(e,t,n,o,r,i){return!n&&De(Ke(i))?{cell:this.getCompatibleCell(C({},e)),enableEditMode:!0}:{cell:e,enableEditMode:t===Be.POINTER||t===Be.ENTER}},t.prototype.update=function(e,t){var n=ze(t.text);return""===t.text||Number.isNaN(n)?this.getCompatibleCell(C(C({},e),{time:new Date(t.value)})):this.getCompatibleCell(C(C({},e),{time:new Date(n)}))},t.prototype.getClassName=function(e,t){return e.className?e.className:""},t.prototype.render=function(t,n,o){var r=this;if(!n)return t.text;if(!t.time)return'"cell.time" is not initialized with a time value';var i=Je(t.time.getHours()),l=Je(t.time.getMinutes());return e.createElement("input",{ref:function(e){e&&e.focus()},type:"time",defaultValue:"".concat(i,":").concat(l),onChange:function(e){var n=ze(e.currentTarget.value);Number.isNaN(n)||o(r.getCompatibleCell(C(C({},t),{time:new Date(n)})),!1)},onBlur:function(e){var n=ze(e.currentTarget.value);Number.isNaN(n)||(o(r.getCompatibleCell(C(C({},t),{time:new Date(n)})),!r.wasEscKeyPressed),r.wasEscKeyPressed=!1)},onKeyDown:function(e){(Ve(e.keyCode)||Ye(e.keyCode)||e.keyCode===Be.COMMA||e.keyCode===Be.PERIOD||(e.ctrlKey||e.metaKey)&&e.keyCode===Be.KEY_A)&&e.stopPropagation(),Ve(e.keyCode)||Ye(e.keyCode)||e.keyCode===Be.COMMA||e.keyCode===Be.PERIOD||e.preventDefault(),e.keyCode===Be.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()}})},t.dayInMillis=864e5,t.defaultDate=je(),t}();function it(e){return it="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},it(e)}function lt(e){var t=function(e,t){if("object"!==it(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==it(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===it(t)?t:String(t)}function at(e,t,n){return(t=lt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(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 st(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ft=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Wt(Jt,--Yt):0,Ot--,10===zt&&(Ot=1,Ht--),zt}function Qt(){return zt=Yt2||en(zt)>3?"":" "}function ln(e,t){for(;--t&&Qt()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return qt(e,$t()+(t<6&&32==Kt()&&32==Qt()))}function an(e){for(;Qt();)switch(zt){case e:return Yt;case 34:case 39:34!==e&&39!==e&&an(zt);break;case 40:41===e&&an(e);break;case 92:Qt()}return Yt}function cn(e,t){for(;Qt()&&e+zt!==57&&(e+zt!==84||47!==Kt()););return"/*"+qt(t,Yt-1)+"*"+Tt(47===e?e:Qt())}function sn(e){for(;!en(Kt());)Qt();return qt(e,Yt)}function un(e){return nn(dn("",null,null,null,[""],e=tn(e),0,[0],e))}function dn(e,t,n,o,r,i,l,a,c){for(var s=0,u=0,d=l,g=0,p=0,f=0,h=1,m=1,b=1,v=0,y="",x=r,I=i,w=o,C=y;m;)switch(f=v,v=Qt()){case 40:if(108!=f&&58==Wt(C,d-1)){-1!=Pt(C+=St(on(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=on(v);break;case 9:case 10:case 13:case 32:C+=rn(f);break;case 92:C+=ln($t()-1,7);continue;case 47:switch(Kt()){case 42:case 47:Vt(pn(cn(Qt(),$t()),t,n),c);break;default:C+="/"}break;case 123*h:a[s++]=Zt(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(C=St(C,/\f/g,"")),p>0&&Zt(C)-d&&Vt(p>32?fn(C+";",o,n,d-1):fn(St(C," ","")+";",o,n,d-2),c);break;case 59:C+=";";default:if(Vt(w=gn(C,t,n,s,u,r,a,y,x=[],I=[],d),i),123===v)if(0===u)dn(C,t,w,w,x,i,d,a,I);else switch(99===g&&110===Wt(C,3)?100:g){case 100:case 108:case 109:case 115:dn(e,w,w,o&&Vt(gn(e,w,w,0,0,r,a,y,r,x=[],d),I),r,I,d,a,o?x:I);break;default:dn(C,w,w,w,[""],I,0,a,I)}}s=u=p=0,h=b=1,y=C="",d=l;break;case 58:d=1+Zt(C),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==_t())continue;switch(C+=Tt(v),v*h){case 38:b=u>0?1:(C+="\f",-1);break;case 44:a[s++]=(Zt(C)-1)*b,b=1;break;case 64:45===Kt()&&(C+=on(Qt())),g=Kt(),u=d=Zt(y=C+=sn($t())),v++;break;case 45:45===f&&2==Zt(C)&&(h=0)}}return i}function gn(e,t,n,o,r,i,l,a,c,s,u){for(var d=r-1,g=0===r?i:[""],p=Ft(g),f=0,h=0,m=0;f0?g[b]+" "+v:St(v,/&\f/g,g[b])))&&(c[m++]=y);return jt(e,t,n,0===r?Mt:a,c,s,u)}function pn(e,t,n){return jt(e,t,n,Et,Tt(zt),Xt(e,2,-2),0)}function fn(e,t,n,o){return jt(e,t,n,Gt,Xt(e,0,o),Xt(e,o+1,-1),o)}function hn(e,t){for(var n="",o=Ft(e),r=0;r-1},An=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},En=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Mn=function(e,t,n){An(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."),En(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!An(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),En(e)))};function Gn(e,t){switch(function(e,t){return 45^Wt(e,0)?(((t<<2^Wt(e,0))<<2^Wt(e,1))<<2^Wt(e,2))<<2^Wt(e,3):0}(e,t)){case 5103:return At+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return At+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return At+e+Rt+e+Ct+e+e;case 6828:case 4268:return At+e+Ct+e+e;case 6165:return At+e+Ct+"flex-"+e+e;case 5187:return At+e+St(e,/(\w+).+(:[^]+)/,At+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return At+e+Ct+"flex-item-"+St(e,/flex-|-self/,"")+e;case 4675:return At+e+Ct+"flex-line-pack"+St(e,/align-content|flex-|-self/,"")+e;case 5548:return At+e+Ct+St(e,"shrink","negative")+e;case 5292:return At+e+Ct+St(e,"basis","preferred-size")+e;case 6060:return At+"box-"+St(e,"-grow","")+At+e+Ct+St(e,"grow","positive")+e;case 4554:return At+St(e,/([^-])(transform)/g,"$1"+At+"$2")+e;case 6187:return St(St(St(e,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),e,"")+e;case 5495:case 3959:return St(e,/(image-set\([^]*)/,At+"$1$`$1");case 4968:return St(St(e,/(.+:)(flex-)?(.*)/,At+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+At+e+e;case 4095:case 3583:case 4068:case 2532:return St(e,/(.+)-inline(.+)/,At+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(e)-1-t>6)switch(Wt(e,t+1)){case 109:if(45!==Wt(e,t+4))break;case 102:return St(e,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+Rt+(108==Wt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pt(e,"stretch")?Gn(St(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wt(e,t+1))break;case 6444:switch(Wt(e,Zt(e)-3-(~Pt(e,"!important")&&10))){case 107:return St(e,":",":"+At)+e;case 101:return St(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+At+(45===Wt(e,14)?"inline-":"")+"box$3$1"+At+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(Wt(e,t+11)){case 114:return At+e+Ct+St(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return At+e+Ct+St(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return At+e+Ct+St(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return At+e+Ct+e+e}return e}var Nn,kn,Tn="undefined"!=typeof document,Bn=Tn?void 0:(Nn=function(){return vn((function(){var e={};return function(t){return e[t]}}))},kn=new WeakMap,function(e){if(kn.has(e))return kn.get(e);var t=Nn(e);return kn.set(e,t),t}),Ln=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=Gn(e.value,e.length);break;case Nt:return hn([Ut(e,{value:St(e.value,"@","@"+At)})],o);case Mt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([Ut(e,{props:[St(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return hn([Ut(e,{props:[St(t,/:(plac\w+)/,":"+At+"input-$1")]}),Ut(e,{props:[St(t,/:(plac\w+)/,":-moz-$1")]}),Ut(e,{props:[St(t,/:(plac\w+)/,Ct+"input-$1")]})],o)}return""}))}}],Sn=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(Tn&&"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||Ln;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r,i,l={},a=[];Tn&&(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=0;l--){var a=i[l];if(a.line 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(jn,(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 lo,ao,co=/label:\s*([^\s;\n{]+)\s*(;|$)/g;lo=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var so=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="";ao=void 0;var i,l=e[0];null==l||void 0===l.raw?(o=!1,r+=io(n,t,l)):(void 0===l[0]&&console.error(Yn),r+=l[0]);for(var a=1;a=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;return{name:u,styles:r,map:i,next:ao,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)."}}},uo="undefined"!=typeof document,go=function(e){return e()},po=!!e.useInsertionEffect&&e.useInsertionEffect,fo=uo&&po||go,ho=po||e.useLayoutEffect,mo="undefined"!=typeof document,bo={}.hasOwnProperty,vo=e.createContext("undefined"!=typeof HTMLElement?Sn({key:"css"}):null);vo.displayName="EmotionCacheContext",vo.Provider;var yo=function(e){return r((function(t,n){var o=i(vo);return e(t,o,n)}))};mo||(yo=function(t){return function(n){var o=i(vo);return null===o?(o=Sn({key:"css"}),e.createElement(vo.Provider,{value:o},t(n,o))):t(n,o)}});var xo=e.createContext({});xo.displayName="EmotionThemeContext";var Io=function(e){var t=e.split(".");return t[t.length-1]},wo=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Io(t[1]):void 0},Co=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Ro=function(e){return e.replace(/\$/g,"-")},Ao="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Eo="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Mo=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var o in t)bo.call(t,o)&&(n[o]=t[o]);if(n[Ao]=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 component."),l="",i)i[a]&&a&&(l&&(l+=" "),l+=a);break;default:l=i}l&&(r&&(r+=" "),r+=l)}}return r};var Wo=function(t){var n,o=t.cache,r=t.serializedArr,i=fo((function(){for(var e="",t=0;t({x:e,y:e});function jo(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function Uo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _o(e){var t;return null==(t=(Qo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qo(e){return e instanceof Node||e instanceof Uo(e).Node}function Ko(e){return e instanceof Element||e instanceof Uo(e).Element}function $o(e){return e instanceof HTMLElement||e instanceof Uo(e).HTMLElement}function qo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Uo(e).ShadowRoot)}function er(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function tr(e){return Uo(e).getComputedStyle(e)}function nr(e){const t=function(e){if("html"===jo(e))return e;const t=e.assignedSlot||e.parentNode||qo(e)&&e.host||_o(e);return qo(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(jo(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:$o(t)&&er(t)?t:nr(t)}function or(e,t){var n;void 0===t&&(t=[]);const o=nr(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Uo(o);return r?t.concat(i,i.visualViewport||[],er(o)?o:[]):t.concat(o,or(o))}function rr(e){return Ko(e)?e:e.contextElement}function ir(e){const t=rr(e);if(!$o(t))return Jo(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=tr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=$o(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,a=Yo(n)!==i||Yo(o)!==l;return a&&(n=i,o=l),{width:n,height:o,$:a}}(t);let l=(i?Yo(n.width):n.width)/o,a=(i?Yo(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const lr=Jo(0);function ar(e){const t=Uo(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:lr}function cr(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=rr(e);let l=Jo(1);t&&(o?Ko(o)&&(l=ir(o)):l=ir(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Uo(e))&&t}(i,n,o)?ar(i):Jo(0);let c=(r.left+a.x)/l.x,s=(r.top+a.y)/l.y,u=r.width/l.x,d=r.height/l.y;if(i){const e=Uo(i),t=o&&Ko(o)?Uo(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=ir(n),t=n.getBoundingClientRect(),o=tr(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=r,s+=i,n=Uo(n).frameElement}}return g={width:u,height:d,x:c,y:s},{...g,top:g.y,left:g.x,right:g.x+g.width,bottom:g.y+g.height};var g}function sr(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=rr(e),u=r||i?[...s?or(s):[],...or(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=s&&a?function(e,t){let n,o=null;const r=_o(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();const{left:s,top:u,width:d,height:g}=e.getBoundingClientRect();if(a||t(),!d||!g)return;const p={rootMargin:-zo(u)+"px "+-zo(r.clientWidth-(s+d))+"px "+-zo(r.clientHeight-(u+g))+"px "+-zo(s)+"px",threshold:Do(0,Oo(1,c))||1};let f=!0;function h(e){const t=e[0].intersectionRatio;if(t!==c){if(!f)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),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;let g,p=-1,f=null;l&&(f=new ResizeObserver((e=>{let[o]=e;o&&o.target===s&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{f&&f.observe(t)}))),n()})),s&&!c&&f.observe(s),f.observe(t));let h=c?cr(e):null;return c&&function t(){const o=cr(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)}}var ur="undefined"!=typeof document?l:a,dr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],gr=function(){};function pr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function fr(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r-1}function yr(e){return vr(e)?window.pageYOffset:e.scrollTop}function xr(e,t){vr(e)?window.scrollTo(0,t):e.scrollTop=t}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gr,r=yr(e),i=t-r,l=0;!function t(){var a,c=i*((a=(a=l+=10)/n-1)*a*a+1)+r;xr(e,c),ln.bottom?xr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r=f)return{placement:"bottom",maxHeight:t};if(R>=f&&!l)return i&&Ir(c,A,M),{placement:"bottom",maxHeight:t};if(!l&&R>=o||l&&w>=o)return i&&Ir(c,A,M),{placement:"bottom",maxHeight:l?w-y:R-y};if("auto"===r||l){var G=t,N=l?I:C;return N>=o&&(G=Math.min(N-y-a,t)),{placement:"top",maxHeight:G}}if("bottom"===r)return i&&xr(c,A),{placement:"bottom",maxHeight:t};break;case"top":if(I>=f)return{placement:"top",maxHeight:t};if(C>=f&&!l)return i&&Ir(c,E,M),{placement:"top",maxHeight:t};if(!l&&C>=o||l&&I>=o){var k=t;return(!l&&C>=o||l&&I>=o)&&(k=l?I-x:C-x),i&&Ir(c,E,M),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return s}var Lr,Sr=function(e){return"auto"===e?"bottom":e},Pr=s(null),Wr=function(e){var t=e.children,o=e.minMenuHeight,r=e.maxMenuHeight,l=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,u=e.theme,d=(i(Pr)||{}).setPortalPlacement,g=c(null),p=gt(n(r),2),f=p[0],h=p[1],m=gt(n(null),2),b=m[0],v=m[1],y=u.spacing.controlHeight;return ur((function(){var e=g.current;if(e){var t="fixed"===a,n=Br({maxHeight:r,menuEl:e,minHeight:o,placement:l,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});h(n.maxHeight),v(n.placement),null==d||d(n.placement)}}),[r,l,a,s,o,d,y]),t({ref:g,placerProps:st(st({},e),{},{placement:b||Sr(l),maxHeight:f})})},Xr=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return To("div",ht({},br(e,"menu",{menu:!0}),{ref:n},o),t)},Zr=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return st({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Fr=Zr,Vr=Zr,Hr=["size"],Or=["innerProps","isRtl","size"];var Dr,Yr,zr={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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdX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pemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+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)."}},Jr=function(e){var t=e.size,n=pt(e,Hr);return To("svg",ht({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zr},n))},jr=function(e){return To(Jr,ht({size:20},e),To("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"}))},Ur=function(e){return To(Jr,ht({size:20},e),To("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"}))},_r=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},Qr=_r,Kr=_r,$r=function(){var e=So.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_"}}}(Lr||(Dr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Yr||(Yr=Dr.slice(0)),Lr=Object.freeze(Object.defineProperties(Dr,{raw:{value:Object.freeze(Yr)}})))),qr=function(e){var t=e.delay,n=e.offset;return To("span",{css:So({animation:"".concat($r," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wc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NEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},ei=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return To("div",ht({ref:r},br(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),i),t)},ti=["data"],ni=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 To("div",ht({},br(e,"group",{group:!0}),a),To(i,ht({},l,{selectProps:u,theme:s,getStyles:o,getClassNames:r,cx:n}),c),To("div",null,t))},oi=["innerRef","isDisabled","isHidden","inputClassName"],ri={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ii={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ri)},li=function(e){return st({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ri)},ai=function(e){var t=e.children,n=e.innerProps;return To("div",n,t)};var ci=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 To(c,{data:o,innerProps:st(st({},br(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:a},To(s,{data:o,innerProps:st({},br(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),To(u,{data:o,innerProps:st(st({},br(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:a}))},si={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return To("div",ht({},br(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||To(jr,null))},Control:ei,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return To("div",ht({},br(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||To(Ur,null))},DownChevron:Ur,CrossIcon:jr,Group:ni,GroupHeading:function(e){var t=mr(e);t.data;var n=pt(t,ti);return To("div",ht({},br(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return To("div",ht({},br(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return To("span",ht({},t,br(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=mr(e),r=o.innerRef,i=o.isDisabled,l=o.isHidden,a=o.inputClassName,c=pt(o,oi);return To("div",ht({},br(e,"input",{"input-container":!0}),{"data-value":n||""}),To("input",ht({className:t({input:!0},a),ref:r,style:li(l),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=pt(e,Or);return To("div",ht({},br(st(st({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),To(qr,{delay:0,offset:n}),To(qr,{delay:160,offset:!0}),To(qr,{delay:320,offset:!n}))},Menu:Xr,MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return To("div",ht({},br(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,r=e.children,i=e.controlElement,l=e.innerProps,a=e.menuPlacement,s=e.menuPosition,d=c(null),g=c(null),f=gt(n(Sr(a)),2),h=f[0],m=f[1],b=u((function(){return{setPortalPlacement:m}}),[]),v=gt(n(null),2),y=v[0],x=v[1],I=o((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===s?0:window.pageYOffset,n=e[h]+t;n===(null==y?void 0:y.offset)&&e.left===(null==y?void 0:y.rect.left)&&e.width===(null==y?void 0:y.rect.width)||x({offset:n,rect:e})}}),[i,s,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);ur((function(){I()}),[I]);var w=o((function(){"function"==typeof g.current&&(g.current(),g.current=null),i&&d.current&&(g.current=sr(i,d.current,I,{elementResize:"ResizeObserver"in window}))}),[i,I]);ur((function(){w()}),[w]);var C=o((function(e){d.current=e,w()}),[w]);if(!t&&"fixed"!==s||!y)return null;var R=To("div",ht({ref:C},br(st(st({},e),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),l),r);return To(Pr.Provider,{value:b},t?p(R,t):R)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=pt(e,Tr);return To("div",ht({},br(st(st({},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=pt(e,kr);return To("div",ht({},br(st(st({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:ci,MultiValueContainer:ai,MultiValueLabel:ai,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return To("div",ht({role:"button"},n),t||To(jr,{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 To("div",ht({},br(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 To("div",ht({},br(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return To("div",ht({},br(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return To("div",ht({},br(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 To("div",ht({},br(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},ui=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function di(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"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=a?" disabled":"",d="".concat(c?"selected":"focused").concat(u);return"option ".concat(i," ").concat(d,", ").concat(s(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},hi=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,i=e.isFocused,l=e.selectValue,a=e.selectProps,c=e.id,s=a.ariaLiveMessages,d=a.getOptionLabel,p=a.inputValue,f=a.isMulti,h=a.isOptionDisabled,m=a.isSearchable,b=a.menuIsOpen,v=a.options,y=a.screenReaderStatus,x=a.tabSelectsValue,I=a["aria-label"],w=a["aria-live"],C=u((function(){return st(st({},fi),s||{})}),[s]),R=u((function(){var e,n="";if(t&&C.onChange){var o=t.option,r=t.options,i=t.removedValue,a=t.removedValues,c=t.value,s=i||o||(e=c,Array.isArray(e)?null:e),u=s?d(s):"",g=r||a||void 0,p=g?g.map(d):[],f=st({isDisabled:s&&h(s,l),label:u,labels:p},t);n=C.onChange(f)}return n}),[t,C,h,l,d]),A=u((function(){var e="",t=n||o,i=!!(n&&l&&l.includes(n));if(t&&C.onFocus){var a={focused:t,label:d(t),isDisabled:h(t,l),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:l};e=C.onFocus(a)}return e}),[n,o,d,h,C,r,l]),E=u((function(){var e="";if(b&&v.length&&C.onFilter){var t=y({count:r.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e}),[r,p,b,C,v,y]),M=u((function(){var e="";if(C.guidance){var t=o?"value":b?"menu":"input";e=C.guidance({"aria-label":I,context:t,isDisabled:n&&h(n,l),isMulti:f,isSearchable:m,tabSelectsValue:x})}return e}),[I,n,o,f,h,m,b,C,l,x]),G="".concat(A," ").concat(E," ").concat(M),N=To(g,null,To("span",{id:"aria-selection"},R),To("span",{id:"aria-context"},G)),k="initial-input-focus"===(null==t?void 0:t.action);return To(g,null,To(pi,{id:c},k&&N),To(pi,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!k&&N))},mi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],bi=new RegExp("["+mi.map((function(e){return e.letters})).join("")+"]","g"),yi={},xi=0;xi1?t-1:0),o=1;o0,h=c-d-a,m=!1;h>t&&s.current&&(r&&r(e),s.current=!1),f&&u.current&&(l&&l(e),u.current=!1),f&&t>h?(n&&!s.current&&n(e),p.scrollTop=c,m=!0,s.current=!0):!f&&-t>a&&(i&&!u.current&&i(e),p.scrollTop=0,m=!0,u.current=!0),m&&Ni(e)}}),[n,r,i,l]),f=o((function(e){p(e,e.deltaY)}),[p]),h=o((function(e){d.current=e.changedTouches[0].clientY}),[]),m=o((function(e){var t=d.current-e.changedTouches[0].clientY;p(e,t)}),[p]),b=o((function(e){if(e){var t=!!Mr&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}}),[m,h,f]),v=o((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))}),[m,h,f]);return a((function(){if(t){var e=g.current;return b(e),function(){v(e)}}}),[t,b,v]),function(e){g.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=c({}),l=c(null),s=o((function(e){if(Wi){var t=document.body,n=t&&t.style;if(r&&ki.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Xi<1){var o=parseInt(i.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,a=window.innerWidth-l+o||0;Object.keys(Ti).forEach((function(e){var t=Ti[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Pi()&&(t.addEventListener("touchmove",Bi,Zi),e&&(e.addEventListener("touchstart",Si,Zi),e.addEventListener("touchmove",Li,Zi))),Xi+=1}}),[r]),u=o((function(e){if(Wi){var t=document.body,n=t&&t.style;Xi=Math.max(Xi-1,0),r&&Xi<1&&ki.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Pi()&&(t.removeEventListener("touchmove",Bi,Zi),e&&(e.removeEventListener("touchstart",Si,Zi),e.removeEventListener("touchmove",Li,Zi)))}}),[r]);return a((function(){if(t){var e=l.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){l.current=e}}({isEnabled:n});return To(g,null,n&&To("div",{onClick:Fi,css:Vi}),t((function(e){i(e),l(e)})))}var Oi,Di={name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Yi=function(e){var t=e.name,n=e.onFocus;return To("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Di,value:"",onChange:function(){}})},zi={clearIndicator:Kr,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 st({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:Qr,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 st({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 st({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 st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ii),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 st({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:Vr,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,l=r.spacing,a=r.colors;return st((at(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),at(n,"position","absolute"),at(n,"width","100%"),at(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 st({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 st({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 st({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 st({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:Fr,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,l=i.spacing,a=i.colors;return st({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 st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return st({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 st({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")})}},Ji={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}},ji={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Cr(),captureMenuScroll:!Cr(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=st({ignoreCase:!0,ignoreAccents:!0,stringify:Ei,trim:!0,matchFrom:"any"},Oi),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,l=n.trim,a=n.matchFrom,c=l?Ai(t):t,s=l?Ai(i(e)):i(e);return o&&(c=c.toLowerCase(),s=s.toLowerCase()),r&&(c=Ri(c),s=Ci(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 Ui(e,t,n,o){return{type:"option",data:t,isDisabled:el(e,t,n),isSelected:tl(e,t,n),label:$i(e,t),value:qi(e,t),index:o}}function _i(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Ui(e,n,t,o)})).filter((function(t){return Ki(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Ui(e,n,t,o);return Ki(e,i)?i:void 0})).filter(Gr)}function Qi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,It(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ki(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,l=t.label,a=t.value;return(!ol(e)||!i)&&nl(e,{label:l,value:a,data:r},o)}var $i=function(e,t){return e.getOptionLabel(t)},qi=function(e,t){return e.getOptionValue(t)};function el(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=qi(e,t);return n.some((function(t){return qi(e,t)===o}))}function nl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ol=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},rl=1,il=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bt(e,t)}(l,d);var n,o,r,i=xt(l);function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new 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},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(It(l),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),l=Nr(n,i,i[0]||null);t.onChange(l,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Nr(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=Nr(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o5||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 ol(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,l=n.inputValue,a=n.isClearable,c=n.isDisabled,s=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,g=n.openMenuOnFocus,p=t.state,f=p.focusedOption,h=p.focusedValue,m=p.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||l)return;t.focusValue("previous");break;case"ArrowRight":if(!o||l)return;t.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(h)t.removeValue(h);else{if(!r)return;o?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!s||!d||!f||g&&t.isOptionSelected(f,m))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(s){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:l}),t.onMenuClose()):a&&i&&t.clearValue();break;case" ":if(l)return;if(!s){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++rl),t.state.selectValue=hr(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=l,o=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&wr(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&&(wr(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&&r0&&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(Ji):st(st({},Ji),this.props.theme):Ji}},{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 el(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return nl(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 t=this.props,n=t.isDisabled,o=t.isSearchable,r=t.inputId,i=t.inputValue,l=t.tabIndex,a=t.form,c=t.menuIsOpen,s=t.required,u=this.getComponents().Input,d=this.state,g=d.inputIsHidden,p=d.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),m=st(st(st({"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")}),!o&&{"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 o?e.createElement(u,ht({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:n,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:a,type:"text",value:i},m)):e.createElement(Gi,ht({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:gr,onFocus:this.onInputFocus,disabled:n,tabIndex:l,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),o=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,l=n.MultiValueRemove,a=n.SingleValue,c=n.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:e.createElement(c,ht({},s,{key:"placeholder",isDisabled:g,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return b.map((function(n,a){var c=n===v,u="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(o,ht({},s,{components:{Container:r,Label:i,Remove:l},isFocused:c,isDisabled:g,key:u,index:a,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(f)return null;var x=b[0];return e.createElement(a,ht({},s,{data:x,isDisabled:g}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,l=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ht({},n,{innerProps:a,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,l=this.state.isFocused;return t&&i?e.createElement(t,ht({},n,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:l})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,o=t.IndicatorSeparator;if(!n||!o)return null;var r=this.commonProps,i=this.props.isDisabled,l=this.state.isFocused;return e.createElement(o,ht({},r,{isDisabled:i,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ht({},n,{innerProps:i,isDisabled:o,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),o=n.Group,r=n.GroupHeading,i=n.Menu,l=n.MenuList,a=n.MenuPortal,c=n.LoadingMessage,s=n.NoOptionsMessage,u=n.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 N,k=function(n,o){var r=n.type,i=n.data,l=n.isDisabled,a=n.isSelected,c=n.label,s=n.value,p=g===i,f=l?void 0:function(){return t.onOptionHover(i)},h=l?void 0:function(){return t.selectOption(i)},m="".concat(t.getElementId("option"),"-").concat(o),b={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1};return e.createElement(u,ht({},d,{innerProps:b,data:i,isDisabled:l,isSelected:a,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,l=n.options,a=n.index,c="".concat(t.getElementId("group"),"-").concat(a),s="".concat(c,"-heading");return e.createElement(o,ht({},d,{key:c,data:i,options:l,Heading:r,headingProps:{id:s,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return k(e,"".concat(a,"-").concat(e.index))})))}if("option"===n.type)return k(n,"".concat(n.index))}));else if(m){var T=b({inputValue:h});if(null===T)return null;N=e.createElement(c,d,T)}else{var B=E({inputValue:h});if(null===B)return null;N=e.createElement(s,d,B)}var L={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:w,menuShouldScrollIntoView:A},S=e.createElement(Wr,ht({},d,L),(function(n){var o=n.ref,r=n.placerProps,a=r.placement,c=r.maxHeight;return e.createElement(i,ht({},d,L,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:m,placement:a}),e.createElement(Hi,{captureEnabled:f,onTopArrive:M,onBottomArrive:G,lockEnabled:R},(function(n){return e.createElement(l,ht({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:m,maxHeight:c,focusedOption:g}),N)})))}));return C||"fixed"===w?e.createElement(a,ht({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,menuPosition:w}),S):S}},{key:"renderFormField",value:function(){var t=this,n=this.props,o=n.delimiter,r=n.isDisabled,i=n.isMulti,l=n.name,a=n.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return e.createElement(Yi,{name:l,onFocus:this.onValueInputFocus});if(l&&!r){if(i){if(o){var s=c.map((function(e){return t.getOptionValue(e)})).join(o);return e.createElement("input",{name:l,type:"hidden",value:s})}var u=c.length>0?c.map((function(n,o){return e.createElement("input",{key:"i-".concat(o),name:l,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:l,type:"hidden",value:""});return e.createElement("div",null,u)}var d=c[0]?this.getOptionValue(c[0]):"";return e.createElement("input",{name:l,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,o=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,l=n.isFocused,a=n.selectValue,c=this.getFocusableOptions();return e.createElement(hi,ht({},t,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:r,focusedValue:i,isFocused:l,selectValue:a,focusableOptions:c}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,o=t.IndicatorsContainer,r=t.SelectContainer,i=t.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 e.createElement(r,ht({},g,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),e.createElement(n,ht({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:u}),e.createElement(i,ht({},g,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(o,ht({},g,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,l=t.isFocused,a=t.prevWasFocused,c=e.options,s=e.value,u=e.menuIsOpen,d=e.inputValue,g=e.isMulti,p=hr(s),f={};if(n&&(s!==n.value||c!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var h=u?function(e,t){return Qi(_i(e,t))}(e,p):[],m=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?n:t[0]}(t,h);f={selectValue:p,focusedOption:b,focusedValue:m,clearFocusValueOnUpdate:!1}}var v=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},y=i,x=l&&a;return l&&!x&&(y={value:Nr(g,p,p[0]||null),options:p,action:"initial-input-focus"},x=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),st(st(st({},f),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:x})}}],o&&mt(n.prototype,o),r&&mt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}();il.defaultProps=ji;var ll=r((function(t,r){var i=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,i=e.defaultMenuIsOpen,l=void 0!==i&&i,a=e.defaultValue,c=void 0===a?null:a,s=e.inputValue,u=e.menuIsOpen,d=e.onChange,g=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=pt(e,ft),b=gt(n(void 0!==s?s:r),2),v=b[0],y=b[1],x=gt(n(void 0!==u?u:l),2),I=x[0],w=x[1],C=gt(n(void 0!==h?h:c),2),R=C[0],A=C[1],E=o((function(e,t){"function"==typeof d&&d(e,t),A(e)}),[d]),M=o((function(e,t){var n;"function"==typeof g&&(n=g(e,t)),y(void 0!==n?n:e)}),[g]),G=o((function(){"function"==typeof f&&f(),w(!0)}),[f]),N=o((function(){"function"==typeof p&&p(),w(!1)}),[p]),k=void 0!==s?s:v,T=void 0!==u?u:I,B=void 0!==h?h:R;return st(st({},m),{},{inputValue:k,menuIsOpen:T,onChange:E,onInputChange:M,onMenuClose:N,onMenuOpen:G,value:B})}(t);return e.createElement(il,ht({ref:r},i))})),al=ll,cl=function(){function t(){}return t.prototype.getCompatibleCell=function(e){var t;try{t=Pe(e,"selectedValue","string")}catch(e){t=void 0}var n,o,r=Pe(e,"values","object"),i=t?parseFloat(t):NaN,l=!0;try{l=Pe(e,"isDisabled","boolean")}catch(e){l=!1}try{n=Pe(e,"inputValue","string")}catch(e){n=void 0}try{o=Pe(e,"isOpen","boolean")}catch(e){o=!1}var a=t||"";return C(C({},e),{selectedValue:t,text:a,value:i,values:r,isDisabled:l,isOpen:o,inputValue:n})},t.prototype.update=function(e,t){var n=e.values.some((function(e){return e.value===t.text}))?t.text:void 0;return this.getCompatibleCell(C(C({},e),{selectedValue:n,isOpen:t.isOpen,inputValue:t.inputValue}))},t.prototype.getClassName=function(e,t){var n=e.isOpen?"open":"closed";return"".concat(e.className?e.className:"").concat(n)},t.prototype.handleKeyDown=function(e,t,n,o,r,i){if((t===Be.SPACE||t===Be.ENTER)&&!o)return{cell:this.getCompatibleCell(C(C({},e),{isOpen:!e.isOpen})),enableEditMode:!1};var l=Ke(i);return n||!Fe(i)||o&&t===Be.SPACE?{cell:e,enableEditMode:!1}:{cell:this.getCompatibleCell(C(C({},e),{inputValue:l,isOpen:!e.isOpen})),enableEditMode:!1}},t.prototype.handleCompositionEnd=function(e,t){return{cell:C(C({},e),{inputValue:t,isOpen:!e.isOpen}),enableEditMode:!1}},t.prototype.render=function(t,n,o){var r=this;return e.createElement(sl,{onCellChanged:function(e){return o(r.getCompatibleCell(e),!0)},cell:t})},t}(),sl=function(t){var n=t.onCellChanged,o=t.cell,r=e.useRef(null),i=e.useState(o.inputValue),l=i[0],a=i[1],c=e.useMemo((function(){return o.values.find((function(e){return e.value===o.text}))}),[o.text,o.values]);return e.useEffect((function(){o.isOpen&&r.current&&(r.current.focus(),a(o.inputValue))}),[o.isOpen,o.inputValue]),e.createElement("div",{style:{width:"100%"},onPointerDown:function(e){return n(C(C({},o),{isOpen:!0}))}},e.createElement(al,C({},o.inputValue&&{inputValue:l,defaultInputValue:l,onInputChange:function(e){return a(e)}},{isSearchable:!0,ref:r},void 0!==o.isOpen&&{menuIsOpen:o.isOpen},{onMenuClose:function(){return n(C(C({},o),{isOpen:!o.isOpen,inputValue:void 0}))},onMenuOpen:function(){return n(C(C({},o),{isOpen:!0}))},onChange:function(e){return n(C(C({},o),{selectedValue:e.value,isOpen:!1,inputValue:void 0}))},blurInputOnSelect:!0,defaultValue:c,value:c,isDisabled:o.isDisabled,options:o.values,onKeyDown:function(e){if(e.stopPropagation(),"Escape"===e.key)return r.current.blur(),n(C(C({},o),{isOpen:!1,inputValue:void 0}))},components:{Option:ul,Menu:dl},styles:{container:function(e){return C(C({},e),{width:"100%",height:"100%"})},control:function(e){return C(C({},e),{border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none"})},indicatorsContainer:function(e){return C(C({},e),{paddingTop:"0px"})},dropdownIndicator:function(e){return C(C({},e),{padding:"0px 4px"})},singleValue:function(e){return C(C({},e),{color:"inherit"})},indicatorSeparator:function(e){return C(C({},e),{marginTop:"4px",marginBottom:"4px"})},input:function(e){return C(C({},e),{padding:0})},valueContainer:function(e){return C(C({},e),{padding:"0 8px"})}}})))},ul=function(t){var n=t.innerProps,o=t.label,r=t.isSelected,i=t.isFocused;return e.createElement("div",C({},n,{onPointerDown:function(e){return e.stopPropagation()},className:"rg-dropdown-option".concat(r?" selected":"").concat(i?" focused":"")}),o)},dl=function(t){var n=t.innerProps,o=t.children;return e.createElement("div",C({},n,{className:"rg-dropdown-menu"}),o)},gl={text:new ot,number:new nt,header:new tt,checkbox:new We,date:new $e,email:new qe,time:new rt,chevron:new et,dropdown:new cl};var pl=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},fl=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 hl(e,t){var n=yl(e);Il(e,t)&&(t=n(t)(Nl)),t=n(t)(wl),t=n(t)(El),t=n(t)(Ml);var o=xl(e,t);return t=n(t)(Te),t=n(t)(Gl),o&&(t=n(t)(Cl)),t=n(t)(ml),t=n(t)(Rl),o&&(t=n(t)(Al)),t=n(t)(kl),vl(e,t)&&(t=n(t)(Tl)),t=n(t)(bl)}function ml(e,t){return t="row"===t.selectionMode&&t.selectedIds.length>0?function(e){var t=e.cellMatrix.first.column,n=e.cellMatrix.last.column,o=e.cellMatrix.rows.filter((function(t){return e.selectedIds.includes(t.rowId)})).sort((function(e,t){return e.idx-t.idx})),r=pl(o).map((function(o){return e.cellMatrix.getRange(A(o[0],t),A(o[o.length-1],n))})),i=e.selectedRanges.length-1;return e.focusedLocation&&r.forEach((function(t,n){t.rows.forEach((function(t){var o;(null===(o=e.focusedLocation)||void 0===o?void 0:o.row.rowId)===t.rowId&&(i=n)}))})),C(C({},e),{selectionMode:"row",activeSelectedRangeIdx:i,selectedRanges:R([],r,!0),selectedIndexes:o.map((function(e){return e.idx})),selectedIds:o.map((function(e){return e.rowId}))})}(t):"column"===t.selectionMode&&t.selectedIds.length>0?function(e){var t=e.cellMatrix.first.row,n=e.cellMatrix.last.row,o=e.cellMatrix.columns.filter((function(t){return e.selectedIds.includes(t.columnId)})).sort((function(e,t){return e.idx-t.idx})),r=fl(o).map((function(o){return e.cellMatrix.getRange(A(t,o[0]),A(n,o[o.length-1]))})),i=e.selectedRanges.length-1;return e.focusedLocation&&r.forEach((function(t,n){t.columns.forEach((function(t){var o;(null===(o=e.focusedLocation)||void 0===o?void 0:o.column.columnId)===t.columnId&&(i=n)}))})),C(C({},e),{selectionMode:"column",activeSelectedRangeIdx:i,selectedRanges:R([],r,!0),selectedIndexes:o.map((function(e){return e.idx})),selectedIds:o.map((function(e){return e.columnId}))})}(t):C(C({},t),{selectedRanges:R([],t.selectedRanges,!0).map((function(e){return t.cellMatrix.validateRange(e)}))})}function bl(e,t){return C(C({},t),{enableFillHandle:!!e.enableFillHandle,enableRangeSelection:!!e.enableRangeSelection,enableColumnSelection:!!e.enableColumnSelection,enableRowSelection:!!e.enableRowSelection})}var vl=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},yl=function(e){return function(t){return function(n){return n(e,t)}}},xl=function(e,t){return!t.cellMatrix||e!==t.cellMatrix.props||void 0!==e.stickyLeftColumns&&e.stickyLeftColumns!==t.leftStickyColumns||void 0!==e.stickyTopRows&&e.stickyTopRows!==t.topStickyRows||void 0!==e.stickyBottomRows&&e.stickyBottomRows!==t.bottomStickyRows||void 0!==e.stickyRightColumns&&e.stickyRightColumns!==t.rightStickyColumns},Il=function(e,t){var n;return e.highlights!==(null===(n=t.props)||void 0===n?void 0:n.highlights)};function wl(e,t){return t.props!==e&&(t=C(C({},t),{props:e})),t}function Cl(e,t){var n=new Se;return C(C({},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 Rl(e,t){return t.cellMatrix.columns.length>0&&t.focusedLocation&&!t.currentlyEditedCell&&(t=C(C({},t),{focusedLocation:t.cellMatrix.validateLocation(t.focusedLocation)})),t}function Al(e,t){return t.visibleRange&&(t=Re(t)),t}function El(e,t){return C(C({},t),{cellTemplates:C(C({},gl),e.customCellTemplates)})}function Ml(e,t){return C(C({},t),{enableGroupIdRender:!!e.enableGroupIdRender})}function Gl(e,t){return C(C({},t),{disableVirtualScrolling:!!e.disableVirtualScrolling})}function Nl(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'),C(C({},t),{highlightLocations:r||[]})}function kl(e,t){var n=e.initialFocusLocation,o=!!t.focusedLocation;if(n&&!t.focusedLocation)if(Bl(t,n))console.error('Data inconsistency in ReactGrid "initialFocusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=S(t,r)}var i=t.focusedLocation;return!o&&i&&(t=E(t,i)),t}function Tl(e,t){var n=e.focusLocation,o=!!t.focusedLocation;if(n)if(Bl(t,n))console.error('Data inconsistency in ReactGrid "focusLocation" prop');else{var r=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=S(t,r)}var i=t.focusedLocation;return!o&&i&&e.focusLocation&&t.selectedRanges.length<=1&&(t=E(t,i)),t}function Bl(e,t){return!(void 0!==e.cellMatrix.columnIndexLookup[t.columnId]&&void 0!==e.cellMatrix.rowIndexLookup[t.rowId])}function Ll(e){return e.cellMatrix.ranges.stickyTopRange.height>0}function Sl(e){return e.cellMatrix.ranges.stickyLeftRange.width>0}function Pl(e){return!!(e.visibleRange&&e.visibleRange.width>0)}function Wl(e){return!!(e.cellMatrix.scrollableRange.height>0&&e.cellMatrix.scrollableRange.first.column&&e.cellMatrix.scrollableRange.first.row&&e.cellMatrix.scrollableRange.last.row&&e.visibleRange&&e.visibleRange.height>0)}function Xl(e){return!!(e.cellMatrix.ranges.stickyBottomRange.height>0&&e.cellMatrix.rows.length>0)}function Zl(e){return!!(e.cellMatrix.ranges.stickyRightRange.width>0)}var Fl=s({}),Vl=function(e){var n=e.children,o=e.state;return t.createElement(Fl.Provider,{value:o},n)},Hl=function(){return t.useContext(Fl)},Ol=function(t){var n,o,r=t.cellRenderer,i=Hl(),l=i.cellMatrix,a=Ll(i),c=Wl(i),s=Sl(i),u=Pl(i),d=Xl(i),g=Zl(i);if(!(a||c||s||u))return null;var p=void 0,f=i.visibleRange;c&&(p=l.scrollableRange.slice(f,"rows"));var h=l.ranges.stickyTopRange.height?-l.ranges.stickyBottomRange.height:0,m=l.ranges.stickyLeftRange.width?-l.ranges.stickyRightRange.width:0,b=l.ranges.stickyRightRange.width?-l.ranges.stickyLeftRange.width:0,v=l.ranges.stickyBottomRange.height?-l.ranges.stickyTopRange.height:0,y=0!==l.scrollableRange.rows.length?l.ranges.stickyTopRange.height:0,x=0!==l.scrollableRange.columns.length?l.ranges.stickyLeftRange.width:0,I=0!==l.scrollableRange.rows.length?l.ranges.stickyBottomRange.height:0,w=0!==l.scrollableRange.columns.length?l.ranges.stickyRightRange.width:0;return e.createElement(e.Fragment,null,e.createElement(wc,{renderChildren:c&&u,className:"rg-pane-center-middle",style:{position:"relative",width:"calc(100% - ".concat(l.ranges.stickyLeftRange.width+l.ranges.stickyRightRange.width,"px)"),height:l.scrollableRange.height,marginLeft:m,marginRight:b,marginTop:h,marginBottom:v,order:4}},e.createElement(Cc,{state:i,range:Lc(p)(f),borders:{bottom:!d,right:!g,left:!s,top:!a},cellRenderer:r})),e.createElement(Ec,{renderCondition:s,className:"shadow-left",zIndex:2,style:{width:l.ranges.stickyLeftRange.width,height:l.height,marginTop:-l.height,order:9}}),e.createElement(Ec,{renderCondition:g,className:"shadow-right",zIndex:2,style:{width:l.ranges.stickyRightRange.width,height:l.height,marginLeft:-l.ranges.stickyRightRange.width,marginTop:a||d?-l.height:0,order:a||d?12:8}}),e.createElement(Ec,{renderCondition:a,className:"shadow-top",zIndex:1,style:{width:(null===(n=i.props)||void 0===n?void 0:n.enableFullWidthHeader)?"calc(100%)":l.width,height:l.ranges.stickyTopRange.height,marginTop:-l.height,order:10}}),e.createElement(Ec,{renderCondition:d,className:"shadow-bottom",zIndex:1,style:{width:(null===(o=i.props)||void 0===o?void 0:o.enableFullWidthHeader)?"calc(100%)":l.width,height:l.ranges.stickyBottomRange.height,marginTop:-l.ranges.stickyBottomRange.height,order:11}}),e.createElement(wc,{renderChildren:u&&d,className:"rg-pane-bottom",style:{width:"calc(100% - ".concat(l.ranges.stickyLeftRange.width+l.ranges.stickyRightRange.width,"px)"),height:l.ranges.stickyBottomRange.height,marginLeft:m,marginRight:b,marginTop:y,order:7}},e.createElement(Cc,{state:i,range:Lc(l.ranges.stickyBottomRange)(f),borders:{top:!0,bottom:!0,right:!g,left:!s},cellRenderer:r})),e.createElement(wc,{renderChildren:c&&g||!p,className:"rg-pane-right",style:{height:l.scrollableRange.height,width:l.width-l.ranges.stickyLeftRange.width-l.scrollableRange.width,marginTop:h,marginBottom:v,marginLeft:x,order:5}},e.createElement(Cc,{state:i,range:Sc(l.ranges.stickyRightRange)(p||l.ranges.stickyLeftRange),borders:{left:!0,top:!a,bottom:!d},cellRenderer:r})),e.createElement(wc,{renderChildren:a&&u,className:"rg-pane-top",style:C({width:"calc(100% - ".concat(l.ranges.stickyLeftRange.width+l.ranges.stickyRightRange.width,"px)"),height:l.ranges.stickyTopRange.height,marginBottom:I,marginLeft:m,marginRight:b,order:1},Ac()&&{zIndex:1})},e.createElement(Cc,{state:i,range:Lc(l.ranges.stickyTopRange)(f),borders:{top:!0,right:!g,left:!s},cellRenderer:r})),e.createElement(wc,{renderChildren:c&&s||!p,className:"rg-pane-left",style:C({height:l.scrollableRange.height,width:l.width-l.scrollableRange.width-l.ranges.stickyRightRange.width,marginRight:w,marginBottom:v,marginTop:h,order:3},Ac()&&{zIndex:1})},e.createElement(Cc,{state:i,range:Sc(l.ranges.stickyLeftRange)(p||l.ranges.stickyLeftRange),borders:{bottom:!d,top:!a,left:!0},cellRenderer:r})),e.createElement(wc,{renderChildren:d&&g,className:"rg-pane-bottom rg-pane-right rg-pane-shadow shadow-bottom-right-corner",style:C({height:l.ranges.stickyBottomRange.height,width:l.width-l.ranges.stickyLeftRange.width-l.scrollableRange.width,marginTop:y,marginLeft:x,order:8},Ac()&&{zIndex:1})},e.createElement(Cc,{state:i,range:Sc(l.ranges.stickyRightRange)(l.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:r})),e.createElement(wc,{renderChildren:d&&s,className:"rg-pane-bottom rg-pane-left rg-pane-shadow shadow-bottom-left-corner",style:C({height:l.ranges.stickyBottomRange.height,width:l.width-l.ranges.stickyRightRange.width-l.scrollableRange.width,marginRight:w,marginTop:y,order:6},Ac()&&{zIndex:2})},e.createElement(Cc,{state:i,range:Sc(l.ranges.stickyLeftRange)(l.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:r})),e.createElement(wc,{renderChildren:a&&g,className:"rg-pane-top rg-pane-right rg-pane-shadow shadow-top-right-corner",style:C({height:l.ranges.stickyTopRange.height,width:l.width-l.scrollableRange.width-l.ranges.stickyLeftRange.width,marginLeft:x,marginBottom:I,order:2},Ac()&&{zIndex:2})},e.createElement(Cc,{state:i,range:Sc(l.ranges.stickyRightRange)(l.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:r})),e.createElement(wc,{renderChildren:a&&s,className:"rg-pane-top rg-pane-left rg-pane-shadow shadow-top-left-corner",style:C({height:l.ranges.stickyTopRange.height,width:l.width-l.scrollableRange.width-l.ranges.stickyRightRange.width,marginRight:w,marginBottom:I,order:0},Ac()&&{zIndex:3})},e.createElement(Cc,{state:i,range:Sc(l.ranges.stickyLeftRange)(l.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:r})))},Dl=function(){var t=Hl(),n=t.linePosition,o=t.lineOrientation,r=t.cellMatrix,i="vertical"===o,l=Object.assign({},i?{left:n,height:r.height}:{top:n,width:r.width});return-1===n?null:e.createElement("div",{className:"rg-line ".concat(i?"rg-line-vertical":"rg-line-horizontal"),style:l})},Yl=function(){var e=Hl(),n=e.lineOrientation,o=e.shadowSize,r=e.shadowPosition,i=e.shadowCursor,l=e.cellMatrix,a="vertical"===n;return-1===r?null:t.createElement("div",{className:"rg-shadow",style:{cursor:i,top:a?0:r,left:a?r:0,width:a?o:l.width,height:a?l.height:o}})};function zl(e){return e.selectedRanges[e.activeSelectedRangeIdx]}var Jl={type:"",text:"",value:NaN};function jl(e,t,n){void 0===n&&(n=!1);var o=_l(t),r=o.div,i=o.table,l=(o.location,function(e,t,n,o,r){var i="",l="";return n.rows.forEach((function(t){var a=o.insertRow();n.columns.forEach((function(n){var o=a.insertCell(),c=B(e,{row:t,column:n}).cell,s=c.text||" ";o.textContent=s,i=""===l?c.text:i+(l===t.rowId?"\t":"\n")+s,l=t.rowId,o.setAttribute("data-reactgrid",JSON.stringify(c)),o.style.border="1px solid #D3D3D3",Kl(e,{row:t,column:n},r)}))})),i}(e,0,t,i,n));return Ql(r,i),{div:r,text:l}}function Ul(e,t,n){var o=e.insertCell(),r=B(t,n).cell;o.textContent=r.text?r.text:" ",o.setAttribute("data-reactgrid",JSON.stringify(r)),o.style.border="1px solid #D3D3D3"}function _l(e){var t=document.createElement("div"),n=document.createElement("table");return n.setAttribute("empty-cells","show"),n.setAttribute("data-reactgrid","reactgrid-content"),{div:t,table:n,location:{row:e.first.row,column:e.first.column}}}function Ql(e,t){e.setAttribute("contenteditable","true"),e.style.position="fixed",e.style.top="50%",e.style.left="50%",e.appendChild(t)}function Kl(e,t,n){n&&(e=L(e,t,Jl))}function $l(e,t,n){return B(e,t).cell.groupId===n.groupId?L(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 ql(e,t){var n,o,r=zl(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=$l(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]),C(C({},e),{selectedRanges:[l.getRange(r.first,i)],activeSelectedRangeIdx:0}))}return r.rows.forEach((function(n){return r.columns.forEach((function(o){e=$l(e,A(n,o),t[0][0])}))})),e}function ea(e){return e.selectedRanges.map((function(e){return e.rows.flatMap((function(t){return e.columns.map((function(e){return{columnId:e.columnId,rowId:t.rowId}}))}))}))}var ta=function(){var t=Hl();if(-1===t.contextMenuPosition.top&&-1===t.contextMenuPosition.left)return null;var n,o,r,i,l=t.contextMenuPosition,a=t.selectedIds,c=t.selectionMode,s=function(e){var t=lc(e),n=t.copyLabel,o=t.cutLabel,r=t.pasteLabel;return[{id:"copy",label:n,handler:function(){return na(e,!1)}},{id:"cut",label:o,handler:function(){return na(e,!0)}},{id:"paste",label:r,handler:function(){return function(e){var t,n=F()||V();if(Ac()||n){var o=lc(e),r=o.appleMobileDeviceContextMenuPasteAlert,i=o.otherBrowsersContextMenuPasteAlert,l=o.actionNotSupported;alert("".concat(l," ").concat(n?r:i))}else null===(t=navigator.clipboard)||void 0===t||t.readText().then((function(t){return e.update((function(e){var n=e,o=n.copyRange,r=!1,i=Z()?t.split("\n"):t.split("\r\n"),l=i.map((function(e){return e.split("\t")}));o&&o.rows&&o.columns&&(o.rows.length===i.length&&o.columns.length===l[0].length&&(r=o.rows.some((function(e,t){return o.columns.some((function(o,r){return l[t][r].trim()===B(n,{row:e,column:o}).cell.text.replaceAll(String.fromCharCode(160),String.fromCharCode(32)).trim()}))}))));return ql(n,i.map((function(e,t){return e.split("\t").map((function(e,i){if(!o)return{type:"text",text:e,value:parseFloat(e)};var l=B(n,{row:o.rows[t],column:o.columns[i]}).cell;return C({type:"text",text:e,value:parseFloat(e)},r&&{groupId:l.groupId})}))})))}))})).catch((function(e){var t=e.message;console.error("An error occurred while pasting data by context menu: '".concat(t,"'"))}))}(e)}}]}(t),u=(n=s,null!==(i=null===(r=null===(o=t.props)||void 0===o?void 0:o.onContextMenu)||void 0===r?void 0:r.call(o,"row"===t.selectionMode?t.selectedIds:[],"column"===t.selectionMode?t.selectedIds:[],t.selectionMode,n,ea(t)))&&void 0!==i?i:[]);return u.length>=0&&(s=u),e.createElement("div",{className:"rg-context-menu",style:{top:l.top+"px",left:l.left+"px"}},s.map((function(n,o){var r=n.handler,i=n.id,l=n.label;return e.createElement("div",{key:o,className:"rg-context-menu-option",onPointerDown:function(e){return e.stopPropagation()},onClick:function(){r("row"===c?a:[],"column"===c?a:[],c,ea(t)),t.update((function(e){return C(C(C({},e),{contextMenuPosition:{top:-1,left:-1}}),("copy"===i||"cut"===i)&&{copyRange:zl(e)})}))}},l)})))};function na(e,t){void 0===t&&(t=!1),function(e,t){var n;void 0===t&&(t=!1);var o=zl(e);if(o){var r=jl(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 oa=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.updateState=function(t){return e.setState(t)},e.stateUpdater=function(t){return Pc(t(e.state),e.state,e.props,e.updateState)},e.pointerEventsController=new xe(e.stateUpdater),e.eventHandlers=new Le(e.stateUpdater,e.pointerEventsController),e.cellMatrixBuilder=new Se,e.state=C(C({update:e.stateUpdater},Da),{currentBehavior:new Oa,cellMatrix:e.cellMatrixBuilder.setProps(e.props).fillRowsAndCols().setRangesToRenderLookup().fillSticky().fillScrollableRange().setEdgeLocations().getCellMatrix()}),e}return w(n,t),n.getDerivedStateFromProps=function(e,t){try{return hl(e,t)}catch(e){return console.error(e),null}},n.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)),he(0,t,this.state)},n.prototype.componentDidMount=function(){window.addEventListener("resize",this.eventHandlers.windowResizeHandler)},n.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}})},n.prototype.render=function(){var t=this.state,n=this.eventHandlers;return t.legacyBrowserMode?e.createElement(Vl,{state:t},e.createElement(ac,{eventHandlers:n})):e.createElement(Vl,{state:t},e.createElement(rc,{eventHandlers:n},e.createElement(Ol,{cellRenderer:gc}),e.createElement(Dl,null),e.createElement(Yl,null),e.createElement(ta,null),t.currentlyEditedCell&&e.createElement(ja,null)))},n}(e.Component);var ra=fa(S),ia=ma(ra),la=ha(ra),aa=ba(ra),ca=xa(ra),sa=wa(ra),ua=Ra(ra),da=Ea(ra),ga=da((function(e,t){var n,o=Ma(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),r=e.cellMatrix.ranges.stickyTopRange.rows.length>0,i=r&&ce(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.height0,r=o&&ce(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.idx0,u=s&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=Ma(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),g=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height=e.cellMatrix.first.column.idx;--n){var o=va(e,t.row.idx,n);if(o)return o}}function xa(e){return function(t){var n=Ia(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function Ia(e,t){if(t)for(var n=t.column.idx+1;n<=e.cellMatrix.last.column.idx;++n){var o=va(e,t.row.idx,n);if(o)return o}}function wa(e){return function(t){var n=Ca(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function Ca(e,t){if(t)for(var n=t.row.idx-1;n>=e.cellMatrix.first.row.idx;--n){var o=va(e,n,t.column.idx);if(o)return o}}function Ra(e){return function(t){var n=Aa(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function Aa(e,t){if(t)for(var n=t.row.idx+1;n<=e.cellMatrix.last.row.idx;++n){var o=va(e,n,t.column.idx);if(o)return o}}function Ea(e){return function(t){return function(n){var o=n.focusedLocation;if(!o)return n;var r=t(n,o);return e(o.column.idx,r,n)}}}function Ma(e,t){return oe(e,t)}function Ga(e,t){var n=function(e,t){var n,o,r,i,l,a,c,s,u,d,g,p,f,h,m,v,y,x=e.focusedLocation;if(!x)return e;var I=zl(e);if(t.ctrlKey&&Z()&&t.keyCode===Be.SPACE)return Ta(e,I.first.column.idx,I.last.column.idx,0,e.cellMatrix.last.row.idx);var w=1===e.selectedRanges.length&&b(I.first,I.last),R=Tc(e,t);if(R!==e){if(!w&&t.keyCode===Be.ENTER){var A=t.shiftKey?"up":(null===(n=e.props)||void 0===n?void 0:n.moveRightOnEnter)?"right":"down";return null===(o=e.hiddenFocusElement)||void 0===o||o.focus(),Na(e,A,I,x)}return R}if(t.altKey)return e;if(Mc(t)&&t.shiftKey)switch(t.keyCode){case Be.HOME:return Ta(e,I.first.column.idx,I.last.column.idx,0,I.last.row.idx);case Be.END:return Ta(e,I.first.column.idx,I.last.column.idx,I.first.row.idx,e.cellMatrix.last.row.idx)}else if(Mc(t)){var M=e.cellMatrix;switch(t.keyCode){case Be.KEY_A:if(1===e.selectedRanges.length&&b(e.selectedRanges[0].first,M.first)&&b(e.selectedRanges[0].last,M.last))return E(e,x);var G=M.getRange(M.first,M.last);return(null===(r=e.props)||void 0===r?void 0:r.onSelectionChanging)&&!e.props.onSelectionChanging([G])?e:C(C({},e),{selectedRanges:[G],selectionMode:"range",activeSelectedRangeIdx:0});case Be.HOME:return S(e,e.cellMatrix.first);case Be.END:return S(e,e.cellMatrix.last);case Be.SPACE:return Ta(e,I.first.column.idx,I.last.column.idx,0,e.cellMatrix.last.row.idx)}}else if(t.shiftKey)switch(t.keyCode){case Be.UP_ARROW:return function(e,t,n){return t.first.row.idx>=0?t.last.row.idx>n.row.idx?Ta(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,t.last.row.idx>0?t.last.row.idx-1:0,"vertical"):Ta(e,t.last.column.idx,t.first.column.idx,t.last.row.idx,t.first.row.idx>0?t.first.row.idx-1:0,"vertical"):e}(e,I,x);case Be.DOWN_ARROW:return function(e,t,n){return t.last.row.idx<=e.cellMatrix.last.row.idx?t.first.row.idx=e.cellMatrix.last.row.idx?e.cellMatrix.last.row.idx:t.first.row.idx+1,"vertical"):Ta(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,t.last.row.idx>=e.cellMatrix.last.row.idx?e.cellMatrix.last.row.idx:t.last.row.idx+1,"vertical"):e}(e,I,x);case Be.LEFT_ARROW:return function(e,t,n){return t.first.column.idx>=0?t.last.column.idx>n.column.idx?Ta(e,t.first.column.idx,t.last.column.idx>0?t.last.column.idx-1:0,t.first.row.idx,t.last.row.idx,"horizontal"):Ta(e,t.last.column.idx,t.first.column.idx>0?t.first.column.idx-1:0,t.last.row.idx,t.first.row.idx,"horizontal"):e}(e,I,x);case Be.RIGHT_ARROW:return function(e,t,n){return t.last.column.idx<=e.cellMatrix.last.column.idx?t.first.column.idx=e.cellMatrix.last.column.idx?e.cellMatrix.last.column.idx:t.first.column.idx+1,t.last.row.idx,t.first.row.idx,"horizontal"):Ta(e,t.first.column.idx,t.last.column.idx>=e.cellMatrix.last.column.idx?e.cellMatrix.last.column.idx:t.last.column.idx+1,t.first.row.idx,t.last.row.idx,"horizontal"):e}(e,I,x);case Be.TAB:return t.preventDefault(),w?aa(e):Na(e,"left",I,x);case Be.ENTER:return null===(i=e.hiddenFocusElement)||void 0===i||i.focus(),w?sa(e):Na(e,"up",I,x);case Be.SPACE:return Ta(e,0,e.cellMatrix.last.column.idx,I.first.row.idx,I.last.row.idx);case Be.HOME:return Ta(e,0,I.last.column.idx,I.first.row.idx,I.last.row.idx);case Be.END:return Ta(e,I.first.column.idx,e.cellMatrix.last.column.idx,I.first.row.idx,I.last.row.idx);case Be.PAGE_UP:return function(e,t,n){var o=ka(e),r=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx>e.cellMatrix.ranges.stickyBottomRange.first.row.idx,i=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyBottomRange.last.row.idx,l=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyBottomRange.first.row.idx,a=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx===e.cellMatrix.ranges.stickyBottomRange.first.row.idx,c=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,s=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx===e.cellMatrix.scrollableRange.first.row.idx,u=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx===e.cellMatrix.scrollableRange.first.row.idx,d=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx<=e.cellMatrix.ranges.stickyTopRange.last.row.idx,g=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height=0?t.last.row.idx>n.row.idx?Ta(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,i?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:l?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.last.row.idx:e.cellMatrix.ranges.stickyTopRange.first.row.idx:u?e.cellMatrix.ranges.stickyTopRange.last.row.idx:c?e.cellMatrix.ranges.stickyTopRange.first.row.idx:t.last.row.idx-g.length>e.cellMatrix.scrollableRange.first.row.idx?t.last.row.idx-g.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):Ta(e,t.last.column.idx,t.first.column.idx,t.last.row.idx,r?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:a?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.last.row.idx:e.cellMatrix.ranges.stickyTopRange.rows.length>0?e.cellMatrix.ranges.stickyTopRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.first.row.idx:s?e.cellMatrix.ranges.stickyTopRange.last.row.idx:d?e.cellMatrix.ranges.stickyTopRange.first.row.idx:r?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:t.first.row.idx-g.length>e.cellMatrix.scrollableRange.first.row.idx?t.first.row.idx-g.length:e.cellMatrix.scrollableRange.first.row.idx,"vertical"):e}(e,I,x);case Be.PAGE_DOWN:return function(e,t,n){var o=ka(e),r=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.last.row.idx0&&t.first.row.idx0&&t.last.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,a=e.cellMatrix.ranges.stickyTopRange.rows.length>0&&t.first.row.idx===e.cellMatrix.ranges.stickyTopRange.last.row.idx,c=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx===e.cellMatrix.scrollableRange.last.row.idx,s=e.cellMatrix.scrollableRange.rows.length>0&&e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx===e.cellMatrix.scrollableRange.last.row.idx,u=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.last.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,d=e.cellMatrix.ranges.stickyBottomRange.rows.length>0&&t.first.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,g=e.cellMatrix.scrollableRange.rows.filter((function(e){return e.top+e.height0?e.cellMatrix.scrollableRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.first.row.idx:s?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:d?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:t.first.row.idx+g.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:t.first.row.idx+g.length,"vertical"):Ta(e,t.first.column.idx,t.last.column.idx,t.first.row.idx,u?e.cellMatrix.ranges.stickyBottomRange.last.row.idx:l?e.cellMatrix.scrollableRange.rows.length>0?e.cellMatrix.scrollableRange.first.row.idx:e.cellMatrix.ranges.stickyBottomRange.rows.length>0?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:e.cellMatrix.ranges.stickyTopRange.last.row.idx:c?e.cellMatrix.ranges.stickyBottomRange.first.row.idx:r?e.cellMatrix.ranges.stickyTopRange.last.row.idx:t.last.row.idx+g.length>=e.cellMatrix.scrollableRange.last.row.idx?e.cellMatrix.scrollableRange.last.row.idx:t.last.row.idx+g.length,"vertical"):e}(e,I,x)}else switch(t.keyCode){case Be.DELETE:case Be.BACKSPACE:return null===(l=e.hiddenFocusElement)||void 0===l||l.focus(),function(e){return e.selectedRanges.forEach((function(t){return t.rows.forEach((function(n){return t.columns.forEach((function(t){return e=L(e,{row:n,column:t},Jl)}))}))})),e}(e);case Be.UP_ARROW:return null===(a=e.hiddenFocusElement)||void 0===a||a.focus(),sa(e);case Be.DOWN_ARROW:return null===(c=e.hiddenFocusElement)||void 0===c||c.focus(),ua(e);case Be.LEFT_ARROW:return null===(s=e.hiddenFocusElement)||void 0===s||s.focus(),aa(e);case Be.RIGHT_ARROW:return null===(u=e.hiddenFocusElement)||void 0===u||u.focus(),ca(e);case Be.TAB:return null===(d=e.hiddenFocusElement)||void 0===d||d.focus(),t.preventDefault(),w?ca(e):Na(e,"right",I,x);case Be.HOME:return null===(g=e.hiddenFocusElement)||void 0===g||g.focus(),ia(e);case Be.END:return null===(p=e.hiddenFocusElement)||void 0===p||p.focus(),la(e);case Be.PAGE_UP:return null===(f=e.hiddenFocusElement)||void 0===f||f.focus(),ga(e);case Be.PAGE_DOWN:return null===(h=e.hiddenFocusElement)||void 0===h||h.focus(),pa(e);case Be.ENTER:var N=(null===(m=e.props)||void 0===m?void 0:m.moveRightOnEnter)?C(C({},ca(e)),{currentlyEditedCell:void 0}):C(C({},ua(e)),{currentlyEditedCell:void 0});return null===(v=e.hiddenFocusElement)||void 0===v||v.focus(),w?N:Na(e,"right",I,x);case Be.ESCAPE:return t.preventDefault(),null===(y=e.hiddenFocusElement)||void 0===y||y.focus(),e.currentlyEditedCell?C(C({},e),{currentlyEditedCell:void 0}):e}return e}(e,t);return n!==e&&(t.stopPropagation(),t.preventDefault()),n}function Na(e,t,n,o){var r=e.activeSelectedRangeIdx,i=n?n.columns.length:0,l=n?n.rows.length:0,a="up"===t||"left"===t?-1:1,c="up"===t||"down"===t?o.row.idx-n.first.row.idx+(o.column.idx-n.first.column.idx)*l:(o.row.idx-n.first.row.idx)*i+(o.column.idx-n.first.column.idx),s=(c+a)%(n.rows.length*n.columns.length),u=s<0&&0===c||1===l&&1===i&&-1===a,d=0===s&&c===n.rows.length*n.columns.length-1&&(l>=3&&i>=1||l>=1&&i>=3)||0===s&&c===n.rows.length*n.columns.length-1&&(2===l&&i>=1||l>=1&&2===i)&&1===a||s<0&&0===c||1===l&&1===i&&1===a;if(u){var g=0===r?e.selectedRanges.length-1:(r-1)%e.selectedRanges.length,p=e.selectedRanges[g];return e=S(e,A(p.last.row,p.last.column),!1),C(C({},e),{activeSelectedRangeIdx:g})}if(d){g=(r+1)%e.selectedRanges.length,p=e.selectedRanges[g];return e=S(e,A(p.first.row,p.first.column),!1),C(C({},e),{activeSelectedRangeIdx:g})}var f="up"===t||"down"===t?Math.floor(s/l):s%i,h="up"===t||"down"===t?s%l:Math.floor(s/i),m=n.first.column.idx+f,b=n.first.row.idx+h;return e=S(e,e.cellMatrix.getLocation(b,m),!n||!(n.columns.length>1||n.rows.length>1))}function ka(e){var t=e.cellMatrix.ranges,n=t.stickyBottomRange,o=t.stickyTopRange;return oe(e,n.height+o.height)}function Ta(e,t,n,o,r,i){var l,a,c;if(!e.enableRangeSelection)return e;var s=e.cellMatrix.getLocation(o,t),u=e.cellMatrix.getLocation(r,n),d=e.selectedRanges.slice();if(d[e.activeSelectedRangeIdx]=e.cellMatrix.getRange(s,u),i){var g=e.focusedLocation;if(!g)return e;var p=0,f=0;switch(i){case"horizontal":p=g.row.idx,f=g.column.idx!==t?t:n;break;case"vertical":p=g.row.idx!==o?o:r,f=g.column.idx}var h=me(e,e.cellMatrix.getLocation(p,f),i),m=h.left;ne(e,h.top,m)}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),C(C({},e),{selectedRanges:d}))}var Ba=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="horizontal",t}return w(t,e),t.prototype.handlePointerDown=function(e,t,n){return this.initialColumn=t.column,n=Mc(e)&&"column"===n.selectionMode&&n.selectedIds.some((function(e){return e===t.column.columnId}))?function(e,t){var n=e.selectedIndexes.filter((function(e){return e!==t.idx})),o=e.selectedIds.filter((function(e){return e!==t.columnId}));return C(C({},e),{selectionMode:"column",selectedIndexes:n,selectedIds:o})}(n,t.column):e.shiftKey&&n.focusedLocation?N(n,n.focusedLocation.column,t.column,Mc(e)):function(e,t,n){return C(C({},e),{selectionMode:"column",selectedIndexes:(n&&"column"===e.selectionMode?e.selectedIndexes:[]).concat(t.idx),selectedIds:(n&&"column"===e.selectionMode?e.selectedIds:[]).concat(t.columnId)})}(n=S(n,t,!1),t.column,Mc(e))},t.prototype.handlePointerEnter=function(e,t,n){return N(n,this.initialColumn,t.column,Mc(e))},t.prototype.handleContextMenu=function(e,t){return K(e,t)},t}(T),La=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoScrollDirection="vertical",t}return w(t,e),t.prototype.handlePointerDown=function(e,t,n){return this.initialRow=t.row,n=Mc(e)&&"row"===n.selectionMode&&n.selectedIds.some((function(e){return e===t.row.rowId}))?function(e,t){var n=e.selectedIndexes.filter((function(e){return e!==t.idx})),o=e.selectedIds.filter((function(e){return e!==t.rowId}));return C(C({},e),{selectionMode:"row",selectedIndexes:n,selectedIds:o})}(n,t.row):e.shiftKey&&n.focusedLocation?k(n,n.focusedLocation.row,t.row,Mc(e)):function(e,t,n){return C(C({},e),{selectionMode:"row",selectedIndexes:(n&&"row"===e.selectionMode?e.selectedIndexes:[]).concat(t.idx),selectedIds:(n&&"row"===e.selectionMode?e.selectedIds:[]).concat(t.rowId)})}(n=S(n,t,!1),t.row,Mc(e))},t.prototype.handlePointerEnter=function(e,t,n){return k(n,this.initialRow,t.row,Mc(e))},t.prototype.handleContextMenu=function(e,t){return K(e,t)},t}(T),Sa=function(t){var n=t.range,o=t.pane,r=t.style,i=t.className,l=n.first.row.idx<=o.first.row.idx?o.first.row.top:n.first.row.top,a=n.first.column.idx<=o.first.column.idx?o.first.column.left:n.first.column.left,c=(n.last.column.idx>o.last.column.idx?o.last.column.right:n.last.column.right)-a,s=(n.last.row.idx>o.last.row.idx?o.last.row.bottom:n.last.row.bottom)-l,u=n.first.row.idx>=o.first.row.idx,d=n.last.row.idx<=o.last.row.idx,g=n.last.column.idx<=o.last.column.idx,p=n.first.column.idx>=o.first.column.idx;return e.createElement("div",{className:"rg-partial-area ".concat(i),key:n.first.column.idx+o.last.column.idx,style:C(C({},r),{top:l-(0===l?0:1),left:a-(0===a?0:1),width:c+(0===a?0:1),height:s+(0===l?0:1),borderTop:u?r.borderTop:"unset",borderBottom:d?r.borderBottom:"unset",borderRight:g?r.borderRight:"unset",borderLeft:p?r.borderLeft:"unset"})})};function Pa(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 Wa=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.fillDirection="",t}return w(n,e),n.prototype.handlePointerEnter=function(e,t,n){var o=zl(n);return this.fillDirection=this.getFillDirection(o,t),this.fillRange=this.getFillRange(n.cellMatrix,o,t,this.fillDirection),C({},n)},n.prototype.handlePointerUp=function(e,t,n){var o,r,i,l,a,c,s,u,d=this,g=zl(n),p=n.cellMatrix;if(!g||void 0===this.fillRange)return n;var f=Z()?e.altKey:e.ctrlKey;this.fillRange=n.cellMatrix.validateRange(this.fillRange);var h=function(e){return B(n,e)},m=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 C(C({},t),{text:r||f?a.text:l.toString(),groupId:a.groupId,value:r||f?a.value:l})}))},b=function(e,t,n){return t.columns.forEach((function(o){var r=t.rows.map((function(e){return h(A(e,o)).cell}));if(r="up"===n?r.reverse():r,d.fillRange){var i=d.fillRange.rows.map((function(e){return h(A(e,o)).cell}));i=m(r,i),i="up"===n?i.reverse():i,e=d.fillColumn(e,o,i)}})),e},v=function(e,t,n){return t.rows.forEach((function(o){var r=t.columns.map((function(e){return h(A(o,e)).cell}));if(r="left"===n?r.reverse():r,d.fillRange){var i=d.fillRange.columns.map((function(e){return h(A(o,e)).cell}));i=m(r,i),i="left"===n?i.reverse():i,e=d.fillRow(e,o,i)}})),e};switch(this.fillDirection){case"right":var y=p.getRange(g.first,A(g.last.row,t.column));if((null===(o=null==(n=v(n,g,"right"))?void 0:n.props)||void 0===o?void 0:o.onSelectionChanging)&&!n.props.onSelectionChanging([y]))return n;(null===(r=(n=C(C({},n),{selectedRanges:[y],selectedIds:R(R([],g.columns.map((function(e){return e.columnId})),!0),this.fillRange.columns.map((function(e){return e.columnId})),!0)})).props)||void 0===r?void 0:r.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges);break;case"left":y=p.getRange(g.last,A(g.first.row,t.column));if((null===(i=null==(n=v(n,g,"left"))?void 0:n.props)||void 0===i?void 0:i.onSelectionChanging)&&!n.props.onSelectionChanging([y]))return n;(null===(l=(n=C(C({},n),{selectedRanges:[y],selectedIds:R(R([],g.columns.map((function(e){return e.columnId})),!0),this.fillRange.columns.map((function(e){return e.columnId})),!0)})).props)||void 0===l?void 0:l.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges);break;case"up":y=p.getRange(g.last,{row:t.row,column:g.first.column});if((null===(a=null==(n=b(n,g,"up"))?void 0:n.props)||void 0===a?void 0:a.onSelectionChanging)&&!n.props.onSelectionChanging([y]))return n;(null===(c=(n=C(C({},n),{selectedRanges:[y],selectedIds:R(R([],g.rows.map((function(e){return e.rowId})),!0),this.fillRange.rows.map((function(e){return e.rowId})),!0)})).props)||void 0===c?void 0:c.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges);break;case"down":y=p.getRange(g.first,A(t.row,g.last.column));if((null===(s=null==(n=b(n,g,"down"))?void 0:n.props)||void 0===s?void 0:s.onSelectionChanging)&&!n.props.onSelectionChanging([y]))return n;(null===(u=(n=C(C({},n),{selectedRanges:[y],selectedIds:R(R([],g.rows.map((function(e){return e.rowId})),!0),this.fillRange.rows.map((function(e){return e.rowId})),!0)})).props)||void 0===u?void 0:u.onSelectionChanged)&&n.props.onSelectionChanged(n.selectedRanges)}return n},n.prototype.calculateXForRegressionFunction=function(e,t,n){return Math.round((e-t)/n*1e5)/1e5},n.prototype.findRegressionFunction=function(e,t){var n=this.sumArray(e),o=this.sumArray(t),r=this.sumArray(this.multipleArrays(e,t)),i=this.sumArray(this.powerArray(e,2)),l=e.length,a=Math.fround(l*r-n*o)/Math.fround(l*i-Math.pow(n,2));return{a:o/l-a*(n/l),b:a}},n.prototype.sumArray=function(e){return e.reduce((function(e,t){return e+t}))},n.prototype.multipleArrays=function(e,t){for(var n=[],o=e.length<=t.length?e.length:t.length,r=0;re.last.row.idx?t.row.idx-e.last.row.idx:0}),n.push({direction:"left",value:t.column.idxe.last.column.idx?t.column.idx-e.last.column.idx:0}),n.reduce((function(e,t){return e.value>=t.value?e:t})).direction},n.prototype.getFillRange=function(e,t,n,o){switch(o){case"right":return e.getRange(e.getLocation(t.first.row.idx,e.last.column.idxt.first.column.idx-1?e.first.column.idx:t.first.column.idx-1));case"up":return e.getRange(A(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.idxthis.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&&st.row.top+n.cellMatrix.ranges.stickyTopRange.height+t.row.height/2&&so?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)),C(C({},n),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(e,t){return K(e,t)},t}(T);function Za(){return"undefined"!=typeof window&&(-1!==window.navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"))}function Fa(e,t,n){void 0===n&&(n=!1);var o=zl(t);return o?(Va(e,t,jl(t,o,n).div),C(C({},t),{copyRange:o})):t}function Va(e,t,n){var o;Za()?e.clipboardData.setData("text/html",n.innerHTML):(document.body.appendChild(n),n.focus(),document.execCommand("selectAll",!1),document.execCommand("copy"),document.body.removeChild(n)),null===(o=t.hiddenFocusElement)||void 0===o||o.focus({preventScroll:!0}),e.preventDefault()}function Ha(e,t){var n,o;if(!zl(t))return t;var r=[],i=e.clipboardData.getData("text/html"),l=(new DOMParser).parseFromString(i,"text/html");if("reactgrid-content"===(null===(n=l.body.firstElementChild)||void 0===n?void 0:n.getAttribute("data-reactgrid"))&&(null===(o=l.body.firstElementChild)||void 0===o?void 0:o.firstElementChild))for(var a=l.body.firstElementChild.firstElementChild.children,c=0;ct.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)-W(n.scrollableElement).scrollLeft?new ee:n.enableColumnSelection&&0===t.row.idx&&n.selectedIds.includes(t.column.columnId)&&!Mc(e)&&"column"===n.selectionMode&&t.column.reorderable?new te:n.enableColumnSelection&&0===t.row.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new Ba:n.enableRowSelection&&0===t.column.idx&&n.selectedIds.includes(t.row.rowId)&&!Mc(e)&&"row"===n.selectionMode&&t.row.reorderable?new Xa:n.enableRowSelection&&0===t.column.idx&&"rg-fill-handle"!==i.className&&"rg-touch-fill-handle"!==i.className?new La:("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 Wa:new $},t.prototype.handleContextMenu=function(e,t){return K(e,t)},t.prototype.handleDoubleClick=function(e,t,n){return Gc(e,t,n)},t.prototype.handleKeyDown=function(e,t){return Ga(t,e)},t.prototype.handleKeyUp=function(e,t){return Nc(e,t)},t.prototype.handleCompositionEnd=function(e,t){return kc(e,t)},t.prototype.handleCopy=function(e,t){return Fa(e,t)},t.prototype.handlePaste=function(e,t){return Ha(e,t)},t.prototype.handleCut=function(e,t){return Fa(e,t,!0)},t}(T),Da={legacyBrowserMode:"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>0||"undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge/")>0,focusedLocation:void 0,currentBehavior:new Oa,cellTemplates:gl,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},Ya=function(e,t){var n=t.cellMatrix,o=function(e,t,n){if(e.ranges.stickyRightRange.first.column&&t.column.idx>=e.ranges.stickyRightRange.first.column.idx){var o=W(n.scrollableElement).scrollLeft,r=O(n).left,i=Y(o,r);return D(n).width+i-e.ranges.stickyRightRange.width}}(n,e,t)||Ka(n,e)||qa(n,e,t);return o||0};var za=function(e,t){var n=t.cellMatrix,o=function(e,t,n){if(e.ranges.stickyBottomRange.first.row&&t.row.idx>=e.ranges.stickyBottomRange.first.row.idx){var o=W(n.scrollableElement).scrollTop,r=O(n).top,i=Y(o,r);return D(n).height+i-e.ranges.stickyBottomRange.height}}(n,e,t)||$a(n,e)||ec(n,e,t);return o||0},Ja=function(e){var t=e.state,n=e.location,o=W(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=O(t),a=l.top,c=l.left,s=0,u=0;if(t.scrollableElement!==X()){var d=t.scrollableElement.getBoundingClientRect();s=d.left,u=d.top}return{state:t,location:n,left:n.column.left+Ya(n,t)+s+c-i,top:n.row.top+za(n,t)+u+a-r}},ja=function(){var t=Hl(),n=t.currentlyEditedCell,o=t.focusedLocation,r=e.useRef(0),i=e.useReducer(Ja,{state:t,location:o}),l=i[0],a=i[1];if(e.useEffect((function(){r.current+=1,a()}),[]),!n||!o||0===r.current)return null;var c=t.cellTemplates[n.type];return e.createElement(Ua,{cellType:n.type,style:{top:l.top&&l.top-1,left:l.left&&l.left-1,height:o.row.height+1,width:o.column.width+1,position:"fixed"}},c.render(n,!0,(function(e,n){t.currentlyEditedCell=n?void 0:e,n&&t.update((function(t){return L(t,o,e)}))})))},Ua=function(t){var n=t.style,o=t.cellType,r=t.children;return e.createElement("div",{className:"rg-celleditor rg-".concat(o,"-celleditor"),style:n},r)},_a=function(e,t){var n=t.cellMatrix,o=Ka(n,e)||qa(n,e,t);return o||0},Qa=function(e,t){var n=t.cellMatrix,o=$a(n,e)||ec(n,e,t);return o||0};function Ka(e,t){var n;if(t.column.idx>(e.ranges.stickyLeftRange.last.column?e.ranges.stickyLeftRange.last.column.idx:e.first.column.idx)||t.column.idx===e.last.column.idx&&t.column.idx!==(null===(n=e.ranges.stickyLeftRange.last.column)||void 0===n?void 0:n.idx))return e.ranges.stickyLeftRange.width}function $a(e,t){var n;if(t.row.idx>(e.ranges.stickyTopRange.last.row?e.ranges.stickyTopRange.last.row.idx:e.first.row.idx)||t.row.idx===e.last.row.idx&&t.row.idx!==(null===(n=e.ranges.stickyTopRange.last.row)||void 0===n?void 0:n.idx))return e.ranges.stickyTopRange.height}function qa(e,t,n){if(e.ranges.stickyLeftRange.first.column&&t.column.idx>=e.ranges.stickyLeftRange.first.column.idx&&t.column.idx<=e.ranges.stickyLeftRange.last.column.idx){var o=W(n.scrollableElement).scrollLeft,r=O(n).left;return Y(o,r)}}function ec(e,t,n){if(e.ranges.stickyTopRange.first.row&&t.row.idx>=e.ranges.stickyTopRange.first.row.idx&&t.row.idx<=e.ranges.stickyTopRange.last.row.idx){var o=W(n.scrollableElement).scrollTop,r=O(n).top;return Y(o,r)}}var tc=function(e){var t=e.state,n=e.location,o=W(t.scrollableElement),r=o.scrollTop,i=o.scrollLeft,l=O(t),a=l.top,c=l.left,s=0,u=0;if(t.scrollableElement!==X()){var d=t.scrollableElement.getBoundingClientRect();s=d.left,u=d.top}return{state:t,location:n,left:n.column.left+_a(n,t)+s+c-i,top:n.row.top+Qa(n,t)+u+a-r}},nc=function(t){var n=t.hiddenElementRefHandler,o=Hl().hiddenFocusElement;return e.createElement("input",{className:"rg-hidden-element",ref:n,inputMode:"none",onBlur:function(e){e.relatedTarget||null==o||o.focus({preventScroll:!0})}})},oc=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t}return w(n,e),n.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},n.prototype.componentDidCatch=function(e,t){this.setState({errorInfo:t})},n.prototype.render=function(){var e=this.state,n=e.hasError,o=e.errorInfo,r=e.error;return n?t.createElement(t.Fragment,null,t.createElement("h1",null,null==r?void 0:r.message)," ",t.createElement("br",null),t.createElement("br",null),t.createElement("details",null,null==r?void 0:r.stack,null==o?void 0:o.componentStack)):this.props.children},n}(d),rc=function(t){var n=t.eventHandlers,o=t.children,r=Hl(),i=r.cellMatrix,l=r.props,a={width:(null==l?void 0:l.enableFullWidthHeader)?"100%":i.width,height:i.height};return e.createElement(oc,null,e.createElement("div",{className:"reactgrid",style:C({position:"relative"},a),ref:n.reactgridRefHandler},e.createElement("div",{className:"reactgrid-content",onKeyDown:n.keyDownHandler,onKeyUp:n.keyUpHandler,onCompositionEnd:n.compositionEndHandler,onPointerDown:n.pointerDownHandler,onPasteCapture:n.pasteCaptureHandler,onPaste:n.pasteHandler,onCopy:n.copyHandler,onCut:n.cutHandler,onBlur:n.blurHandler,style:a},o,e.createElement(nc,{hiddenElementRefHandler:n.hiddenElementRefHandler}))))},ic={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 lc(e){var t;return C(C({},ic),null===(t=e.props)||void 0===t?void 0:t.labels)}var ac=function(){var t=Hl();return e.createElement(e.Fragment,null,e.createElement("h3",null,lc(t).legacyBrowserHeader),e.createElement("p",null,lc(t).legacyBrowserText))},cc=function(e){e.border;var t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&(n.onCellsChanged&&n.onCellsChanged(R([],r,!0)),r.forEach((function(){return e.queuedCellChanges.pop()}))),e!==t&&o(e)}export{Ga as $,v as A,T as B,h as C,$e as D,Le as E,He as F,rc as G,tt as H,Oe as I,De as J,Ye as K,ac as L,Qe as M,nt as N,Ke as O,Ic as P,B as Q,f as R,Pe as S,ot as T,L as U,z as V,J as W,j as X,U as Y,_ as Z,Q as _,x as a,Ma as a$,he as a0,me as a1,be as a2,ve as a3,hl as a4,vl as a5,yl as a6,xl as a7,Il as a8,wl as a9,Mc as aA,Gc as aB,Nc as aC,kc as aD,ra as aE,ia as aF,la as aG,aa as aH,ca as aI,sa as aJ,ua as aK,da as aL,ga as aM,pa as aN,fa as aO,ha as aP,ma as aQ,ba as aR,va as aS,ya as aT,xa as aU,Ia as aV,wa as aW,Ca as aX,Ra as aY,Aa as aZ,Ea as a_,Rl as aa,El as ab,Ml as ac,Nl as ad,kl as ae,Tl as af,Ac as ag,Za as ah,Ll as ai,Sl as aj,Pl as ak,Wl as al,Xl as am,Zl as an,Z as ao,F as ap,V as aq,b as ar,P as as,W as at,X as au,H as av,O as aw,D as ax,Y as ay,S as az,Se as b,Tc as b0,ne as b1,oe as b2,re as b3,ie as b4,le as b5,ae as b6,ce as b7,se as b8,ue as b9,sc as bA,de as ba,ge as bb,pe as bc,fe as bd,Ie as be,we as bf,Re as bg,Ae as bh,Ee as bi,Me as bj,Jl as bk,Lc as bl,Sc as bm,Pc as bn,$l as bo,Fa as bp,Va as bq,Ha as br,jl as bs,Ul as bt,_l as bu,Ql as bv,Kl as bw,ql as bx,lc as by,Be as bz,ja as c,Da as d,$a as e,qa as f,Ka as g,ec as h,y as i,tc as j,gc as k,wc as l,Cc as m,Ol as n,Ec as o,oa as p,We as q,qe as r,et as s,m as t,rt as u,cl as v,Xe as w,Ze as x,Fe as y,Ve as z}; +//# sourceMappingURL=handleStateUpdate-13a9c5a8.js.map diff --git a/dist/core/handleStateUpdate-13a9c5a8.js.map b/dist/core/handleStateUpdate-13a9c5a8.js.map new file mode 100644 index 00000000..472325bf --- /dev/null +++ b/dist/core/handleStateUpdate-13a9c5a8.js.map @@ -0,0 +1 @@ +{"version":3,"file":"handleStateUpdate-13a9c5a8.js","sources":["../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../node_modules/react-select/dist/useStateManager-7e1e8489.esm.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/@babel/runtime/helpers/esm/createClass.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../node_modules/@babel/runtime/helpers/esm/createSuper.js","../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js","../../node_modules/stylis/src/Enum.js","../../node_modules/stylis/src/Utility.js","../../node_modules/stylis/src/Tokenizer.js","../../node_modules/stylis/src/Parser.js","../../node_modules/stylis/src/Serializer.js","../../node_modules/stylis/src/Middleware.js","../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../node_modules/@emotion/cache/dist/emotion-cache.esm.js","../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js","../../node_modules/react-is/cjs/react-is.development.js","../../node_modules/react-is/index.js","../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../node_modules/@emotion/utils/dist/emotion-utils.esm.js","../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","../../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js","../../node_modules/@emotion/react/dist/emotion-element-6bdfffb2.esm.js","../../node_modules/@emotion/react/dist/emotion-react.esm.js","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js","../../node_modules/react-select/dist/index-baa8dc4f.esm.js","../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","../../node_modules/memoize-one/dist/memoize-one.esm.js","../../node_modules/react-select/dist/Select-aecb2a80.esm.js","../../node_modules/@babel/runtime/helpers/esm/inherits.js","../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../../node_modules/react-select/dist/react-select.esm.js"],"sourcesContent":["export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport { useState, useCallback } from 'react';\n\nvar _excluded = [\"defaultInputValue\", \"defaultMenuIsOpen\", \"defaultValue\", \"inputValue\", \"menuIsOpen\", \"onChange\", \"onInputChange\", \"onMenuClose\", \"onMenuOpen\", \"value\"];\nfunction useStateManager(_ref) {\n var _ref$defaultInputValu = _ref.defaultInputValue,\n defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,\n _ref$defaultMenuIsOpe = _ref.defaultMenuIsOpen,\n defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe,\n _ref$defaultValue = _ref.defaultValue,\n defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue,\n propsInputValue = _ref.inputValue,\n propsMenuIsOpen = _ref.menuIsOpen,\n propsOnChange = _ref.onChange,\n propsOnInputChange = _ref.onInputChange,\n propsOnMenuClose = _ref.onMenuClose,\n propsOnMenuOpen = _ref.onMenuOpen,\n propsValue = _ref.value,\n restSelectProps = _objectWithoutProperties(_ref, _excluded);\n var _useState = useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),\n _useState2 = _slicedToArray(_useState, 2),\n stateInputValue = _useState2[0],\n setStateInputValue = _useState2[1];\n var _useState3 = useState(propsMenuIsOpen !== undefined ? propsMenuIsOpen : defaultMenuIsOpen),\n _useState4 = _slicedToArray(_useState3, 2),\n stateMenuIsOpen = _useState4[0],\n setStateMenuIsOpen = _useState4[1];\n var _useState5 = useState(propsValue !== undefined ? propsValue : defaultValue),\n _useState6 = _slicedToArray(_useState5, 2),\n stateValue = _useState6[0],\n setStateValue = _useState6[1];\n var onChange = useCallback(function (value, actionMeta) {\n if (typeof propsOnChange === 'function') {\n propsOnChange(value, actionMeta);\n }\n setStateValue(value);\n }, [propsOnChange]);\n var onInputChange = useCallback(function (value, actionMeta) {\n var newValue;\n if (typeof propsOnInputChange === 'function') {\n newValue = propsOnInputChange(value, actionMeta);\n }\n setStateInputValue(newValue !== undefined ? newValue : value);\n }, [propsOnInputChange]);\n var onMenuOpen = useCallback(function () {\n if (typeof propsOnMenuOpen === 'function') {\n propsOnMenuOpen();\n }\n setStateMenuIsOpen(true);\n }, [propsOnMenuOpen]);\n var onMenuClose = useCallback(function () {\n if (typeof propsOnMenuClose === 'function') {\n propsOnMenuClose();\n }\n setStateMenuIsOpen(false);\n }, [propsOnMenuClose]);\n var inputValue = propsInputValue !== undefined ? propsInputValue : stateInputValue;\n var menuIsOpen = propsMenuIsOpen !== undefined ? propsMenuIsOpen : stateMenuIsOpen;\n var value = propsValue !== undefined ? propsValue : stateValue;\n return _objectSpread(_objectSpread({}, restSelectProps), {}, {\n inputValue: inputValue,\n menuIsOpen: menuIsOpen,\n onChange: onChange,\n onInputChange: onInputChange,\n onMenuClose: onMenuClose,\n onMenuOpen: onMenuOpen,\n value: value\n });\n}\n\nexport { useStateManager as u };\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n// $FlowFixMe\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n // $FlowFixMe\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n // $FlowFixMe\n return document.styleSheets[i];\n }\n }\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n // Using Node instead of HTMLElement since container may be a ShadowRoot\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (process.env.NODE_ENV !== 'production') {\n var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;\n\n if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {\n // this would only cause problem in speedy mode\n // but we don't want enabling speedy to affect the observable behavior\n // so we report this error at all times\n console.error(\"You're attempting to insert the following rule:\\n\" + rule + '\\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.');\n }\n this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;\n }\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {\n console.error(\"There was a problem inserting the following rule: \\\"\" + rule + \"\\\"\", e);\n }\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n // $FlowFixMe\n this.tags.forEach(function (tag) {\n return tag.parentNode && tag.parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n\n if (process.env.NODE_ENV !== 'production') {\n this._alreadyInsertedOrderInsensitiveRule = false;\n }\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, COMMENT, rulesheet, middleware, compile } from 'stylis';\nimport weakMemoize from '@emotion/weak-memoize';\nimport memoize from '@emotion/memoize';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value,\n parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\nvar ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';\n\nvar isIgnoringComment = function isIgnoringComment(element) {\n return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;\n};\n\nvar createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {\n return function (element, index, children) {\n if (element.type !== 'rule' || cache.compat) return;\n var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);\n\n if (unsafePseudoClasses) {\n var isNested = !!element.parent; // in nested rules comments become children of the \"auto-inserted\" rule and that's always the `element.parent`\n //\n // considering this input:\n // .a {\n // .b /* comm */ {}\n // color: hotpink;\n // }\n // we get output corresponding to this:\n // .a {\n // & {\n // /* comm */\n // color: hotpink;\n // }\n // .b {}\n // }\n\n var commentContainer = isNested ? element.parent.children : // global rule at the root level\n children;\n\n for (var i = commentContainer.length - 1; i >= 0; i--) {\n var node = commentContainer[i];\n\n if (node.line < element.line) {\n break;\n } // it is quite weird but comments are *usually* put at `column: element.column - 1`\n // so we seek *from the end* for the node that is earlier than the rule's `element` and check that\n // this will also match inputs like this:\n // .a {\n // /* comm */\n // .b {}\n // }\n //\n // but that is fine\n //\n // it would be the easiest to change the placement of the comment to be the first child of the rule:\n // .a {\n // .b { /* comm */ }\n // }\n // with such inputs we wouldn't have to search for the comment at all\n // TODO: consider changing this comment placement in the next major version\n\n\n if (node.column < element.column) {\n if (isIgnoringComment(node)) {\n return;\n }\n\n break;\n }\n }\n\n unsafePseudoClasses.forEach(function (unsafePseudoClass) {\n console.error(\"The pseudo class \\\"\" + unsafePseudoClass + \"\\\" is potentially unsafe when doing server-side rendering. Try changing it to \\\"\" + unsafePseudoClass.split('-child')[0] + \"-of-type\\\".\");\n });\n }\n };\n};\n\nvar isImportRule = function isImportRule(element) {\n return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;\n};\n\nvar isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {\n for (var i = index - 1; i >= 0; i--) {\n if (!isImportRule(children[i])) {\n return true;\n }\n }\n\n return false;\n}; // use this to remove incorrect elements from further processing\n// so they don't get handed to the `sheet` (or anything else)\n// as that could potentially lead to additional logs which in turn could be overhelming to the user\n\n\nvar nullifyElement = function nullifyElement(element) {\n element.type = '';\n element.value = '';\n element[\"return\"] = '';\n element.children = '';\n element.props = '';\n};\n\nvar incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {\n if (!isImportRule(element)) {\n return;\n }\n\n if (element.parent) {\n 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.\");\n nullifyElement(element);\n } else if (isPrependedWithRegularRules(index, children)) {\n console.error(\"`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.\");\n nullifyElement(element);\n }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n switch (hash(value, length)) {\n // color-adjust\n case 5103:\n return WEBKIT + 'print-' + value + value;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return WEBKIT + value + value;\n // appearance, user-select, transform, hyphens, text-size-adjust\n\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return WEBKIT + value + MOZ + value + MS + value + value;\n // flex, flex-direction\n\n case 6828:\n case 4268:\n return WEBKIT + value + MS + value + value;\n // order\n\n case 6165:\n return WEBKIT + value + MS + 'flex-' + value + value;\n // align-items\n\n case 5187:\n return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n // align-self\n\n case 5443:\n return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n // align-content\n\n case 4675:\n return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n // flex-shrink\n\n case 5548:\n return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n // flex-basis\n\n case 5292:\n return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n // flex-grow\n\n case 6060:\n return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n // transition\n\n case 4554:\n return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n // cursor\n\n case 6187:\n return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n // background, background-image\n\n case 5495:\n case 3959:\n return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n // justify-content\n\n case 4968:\n return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n // (margin|padding)-inline-(start|end)\n\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n // (min|max)?(width|height|inline-size|block-size)\n\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n // stretch, max-content, min-content, fill-available\n if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n // -\n if (charat(value, length + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n\n case 102:\n return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n // (s)tretch\n\n case 115:\n return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n }\n break;\n // position: sticky\n\n case 4949:\n // (s)ticky?\n if (charat(value, length + 1) !== 115) break;\n // display: (flex|inline-flex)\n\n case 6444:\n switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n // stic(k)y\n case 107:\n return replace(value, ':', ':' + WEBKIT) + value;\n // (inline-)?fl(e)x\n\n case 101:\n return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n }\n\n break;\n // writing-mode\n\n case 5936:\n switch (charat(value, length + 11)) {\n // vertical-l(r)\n case 114:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n // vertical-r(l)\n\n case 108:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n // horizontal(-)tb\n\n case 45:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n }\n\n return WEBKIT + value + MS + value + value;\n }\n\n return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n case DECLARATION:\n element[\"return\"] = prefix(element.value, element.length);\n break;\n\n case KEYFRAMES:\n return serialize([copy(element, {\n value: replace(element.value, '@', '@' + WEBKIT)\n })], callback);\n\n case RULESET:\n if (element.length) return combine(element.props, function (value) {\n switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case ':read-only':\n case ':read-write':\n return serialize([copy(element, {\n props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n })], callback);\n // :placeholder\n\n case '::placeholder':\n return serialize([copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n })], callback);\n }\n\n return '';\n });\n }\n};\n\nvar isBrowser = typeof document !== 'undefined';\nvar getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {\n return memoize(function () {\n var cache = {};\n return function (name) {\n return cache[name];\n };\n });\n});\nvar defaultStylisPlugins = [prefixer];\n\nvar createCache = function createCache(options) {\n var key = options.key;\n\n if (process.env.NODE_ENV !== 'production' && !key) {\n throw new Error(\"You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\\n\" + \"If multiple caches share the same key they might \\\"fight\\\" for each other's style elements.\");\n }\n\n if (isBrowser && key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe\n if (/[^a-z-]/.test(key)) {\n throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n }\n }\n\n var inserted = {};\n var container;\n var nodesToHydrate = [];\n\n if (isBrowser) {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n var attrib = node.getAttribute(\"data-emotion\").split(' '); // $FlowFixMe\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n\n var omnipresentPlugins = [compat, removeLabel];\n\n if (process.env.NODE_ENV !== 'production') {\n omnipresentPlugins.push(createUnsafeSelectorsAlarm({\n get compat() {\n return cache.compat;\n }\n\n }), incorrectImportAlarm);\n }\n\n if (isBrowser) {\n var currentSheet;\n var finalizingPlugins = [stringify, process.env.NODE_ENV !== 'production' ? function (element) {\n if (!element.root) {\n if (element[\"return\"]) {\n currentSheet.insert(element[\"return\"]);\n } else if (element.value && element.type !== COMMENT) {\n // insert empty rule in non-production environments\n // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet\n currentSheet.insert(element.value + \"{}\");\n }\n }\n } : rulesheet(function (rule) {\n currentSheet.insert(rule);\n })];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n currentSheet = sheet;\n\n if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {\n currentSheet = {\n insert: function insert(rule) {\n sheet.insert(rule + serialized.map);\n }\n };\n }\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n } else {\n var _finalizingPlugins = [stringify];\n\n var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));\n\n var _stylis = function _stylis(styles) {\n return serialize(compile(styles), _serializer);\n }; // $FlowFixMe\n\n\n var serverStylisCache = getServerStylisCache(stylisPlugins)(key);\n\n var getRules = function getRules(selector, serialized) {\n var name = serialized.name;\n\n if (serverStylisCache[name] === undefined) {\n serverStylisCache[name] = _stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n }\n\n return serverStylisCache[name];\n };\n\n _insert = function _insert(selector, serialized, sheet, shouldCache) {\n var name = serialized.name;\n var rules = getRules(selector, serialized);\n\n if (cache.compat === undefined) {\n // in regular mode, we don't set the styles on the inserted cache\n // since we don't need to and that would be wasting memory\n // we return them so that they are rendered in a style tag\n if (shouldCache) {\n cache.inserted[name] = true;\n }\n\n if ( // using === development instead of !== production\n // because if people do ssr in tests, the source maps showing up would be annoying\n process.env.NODE_ENV === 'development' && serialized.map !== undefined) {\n return rules + serialized.map;\n }\n\n return rules;\n } else {\n // in compat mode, we put the styles on the inserted cache so\n // that emotion-server can pull out the styles\n // except when we don't want to cache it which was in Global but now\n // is nowhere but we don't want to do a major right now\n // and just in case we're going to leave the case here\n // it's also not affecting client side bundle size\n // so it's really not a big deal\n if (shouldCache) {\n cache.inserted[name] = rules;\n } else {\n return rules;\n }\n }\n };\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport { createCache as default };\n","var weakMemoize = function weakMemoize(func) {\n // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps\n var cache = new WeakMap();\n return function (arg) {\n if (cache.has(arg)) {\n // $FlowFixMe\n return cache.get(arg);\n }\n\n var ret = func(arg);\n cache.set(arg, ret);\n return ret;\n };\n};\n\nexport { weakMemoize as default };\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","var isBrowser = typeof document !== 'undefined';\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className] + \";\");\n } else {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\nvar registerStyles = function registerStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n};\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n registerStyles(cache, serialized, isStringTag);\n var className = cache.key + \"-\" + serialized.name;\n\n if (cache.inserted[serialized.name] === undefined) {\n var stylesForSSR = '';\n var current = serialized;\n\n do {\n var maybeStyles = cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n if (!isBrowser && maybeStyles !== undefined) {\n stylesForSSR += maybeStyles;\n }\n\n current = current.next;\n } while (current !== undefined);\n\n if (!isBrowser && stylesForSSR.length !== 0) {\n return stylesForSSR;\n }\n }\n};\n\nexport { getRegisteredStyles, insertStyles, registerStyles };\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"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\";\nvar UNDEFINED_AS_OBJECT_KEY_ERROR = \"You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\";\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nif (process.env.NODE_ENV !== 'production') {\n var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/;\n var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];\n var oldProcessStyleValue = processStyleValue;\n var msPattern = /^-ms-/;\n var hyphenPattern = /-(.)/g;\n var hyphenatedCache = {};\n\n processStyleValue = function processStyleValue(key, value) {\n if (key === 'content') {\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n throw new Error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n }\n }\n\n var processed = oldProcessStyleValue(key, value);\n\n if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {\n hyphenatedCache[key] = true;\n console.error(\"Using kebab-case for css properties in objects is not supported. Did you mean \" + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {\n return _char.toUpperCase();\n }) + \"?\");\n }\n\n return processed;\n };\n}\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n if (interpolation.__emotion_styles !== undefined) {\n if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {\n throw new Error(noComponentSelectorMessage);\n }\n\n return interpolation;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n if (interpolation.anim === 1) {\n cursor = {\n name: interpolation.name,\n styles: interpolation.styles,\n next: cursor\n };\n return interpolation.name;\n }\n\n if (interpolation.styles !== undefined) {\n var next = interpolation.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = interpolation.styles + \";\";\n\n if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {\n styles += interpolation.map;\n }\n\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Functions that are interpolated in css calls will be stringified.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n }\n\n break;\n }\n\n case 'string':\n if (process.env.NODE_ENV !== 'production') {\n var matched = [];\n var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {\n var fakeVarName = \"animation\" + matched.length;\n matched.push(\"const \" + fakeVarName + \" = keyframes`\" + p2.replace(/^@keyframes animation-\\w+/, '') + \"`\");\n return \"${\" + fakeVarName + \"}\";\n });\n\n if (matched.length) {\n console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\n' + 'Instead of doing this:\\n\\n' + [].concat(matched, [\"`\" + replaced + \"`\"]).join('\\n') + '\\n\\nYou should wrap it with `css` like this:\\n\\n' + (\"css`\" + replaced + \"`\"));\n }\n }\n\n break;\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n if (registered == null) {\n return interpolation;\n }\n\n var cached = registered[interpolation];\n return cached !== undefined ? cached : interpolation;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var _key in obj) {\n var value = obj[_key];\n\n if (typeof value !== 'object') {\n if (registered != null && registered[value] !== undefined) {\n string += _key + \"{\" + registered[value] + \"}\";\n } else if (isProcessableValue(value)) {\n string += processStyleName(_key) + \":\" + processStyleValue(_key, value) + \";\";\n }\n } else {\n if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(_key) + \":\" + processStyleValue(_key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (_key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(_key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {\n console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);\n }\n\n string += _key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;\\n{]+)\\s*(;|$)/g;\nvar sourceMapPattern;\n\nif (process.env.NODE_ENV !== 'production') {\n sourceMapPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\n} // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\n\nvar cursor;\nvar serializeStyles = function serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += strings[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += strings[i];\n }\n }\n\n var sourceMap;\n\n if (process.env.NODE_ENV !== 'production') {\n styles = styles.replace(sourceMapPattern, function (match) {\n sourceMap = match;\n return '';\n });\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + // $FlowFixMe we know it's not null\n match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)\n return {\n name: name,\n styles: styles,\n map: sourceMap,\n next: cursor,\n toString: function toString() {\n 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).\";\n }\n };\n }\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n};\n\nexport { serializeStyles };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","import * as React from 'react';\n\nvar isBrowser = typeof document !== 'undefined';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar isBrowser = typeof document !== 'undefined';\nvar hasOwnProperty = {}.hasOwnProperty;\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nif (process.env.NODE_ENV !== 'production') {\n EmotionCacheContext.displayName = 'EmotionCacheContext';\n}\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n // $FlowFixMe\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nif (!isBrowser) {\n withEmotionCache = function withEmotionCache(func) {\n return function (props) {\n var cache = useContext(EmotionCacheContext);\n\n if (cache === null) {\n // yes, we're potentially creating this on every render\n // it doesn't actually matter though since it's only on the server\n // so there will only every be a single render\n // that could change in the future because of suspense and etc. but for now,\n // this works and i don't want to optimise for a future thing that we aren't sure about\n cache = createCache({\n key: 'css'\n });\n return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {\n value: cache\n }, func(props, cache));\n } else {\n return func(props, cache);\n }\n };\n };\n}\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'EmotionThemeContext';\n}\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n if (process.env.NODE_ENV !== 'production' && (mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) {\n throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!');\n }\n\n return mergedTheme;\n }\n\n if (process.env.NODE_ENV !== 'production' && (theme == null || typeof theme !== 'object' || Array.isArray(theme))) {\n throw new Error('[ThemeProvider] Please make your theme prop a plain object');\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n\n var render = function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n }; // $FlowFixMe\n\n\n var WithTheme = /*#__PURE__*/React.forwardRef(render);\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar getLastPart = function getLastPart(functionName) {\n // The match may be something like 'Object.createEmotionProps' or\n // 'Loader.prototype.render'\n var parts = functionName.split('.');\n return parts[parts.length - 1];\n};\n\nvar getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {\n // V8\n var match = /^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(line);\n if (match) return getLastPart(match[1]); // Safari / Firefox\n\n match = /^([A-Za-z0-9$.]+)@/.exec(line);\n if (match) return getLastPart(match[1]);\n return undefined;\n};\n\nvar internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS\n// identifiers, thus we only need to replace what is a valid character for JS,\n// but not for CSS.\n\nvar sanitizeIdentifier = function sanitizeIdentifier(identifier) {\n return identifier.replace(/\\$/g, '-');\n};\n\nvar getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {\n if (!stackTrace) return undefined;\n var lines = stackTrace.split('\\n');\n\n for (var i = 0; i < lines.length; i++) {\n var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just \"Error\"\n\n if (!functionName) continue; // If we reach one of these, we have gone too far and should quit\n\n if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an\n // uppercase letter\n\n if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);\n }\n\n return undefined;\n};\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration\n props.css.indexOf(':') !== -1) {\n throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`\" + props.css + \"`\");\n }\n\n var newProps = {};\n\n for (var key in props) {\n if (hasOwnProperty.call(props, key)) {\n newProps[key] = props[key];\n }\n }\n\n newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when\n // the label hasn't already been computed\n\n if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {\n var label = getLabelFromStackTrace(new Error().stack);\n if (label) newProps[labelPropName] = label;\n }\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n var rules = useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n if (!isBrowser && rules !== undefined) {\n var _ref2;\n\n var serializedNames = serialized.name;\n var next = serialized.next;\n\n while (next !== undefined) {\n serializedNames += ' ' + next.name;\n next = next.next;\n }\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref2 = {}, _ref2[\"data-emotion\"] = cache.key + \" \" + serializedNames, _ref2.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref2.nonce = cache.sheet.nonce, _ref2));\n }\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {\n var labelFromStack = props[labelPropName];\n\n if (labelFromStack) {\n serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);\n }\n }\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var key in props) {\n if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {\n newProps[key] = props[key];\n }\n }\n\n newProps.ref = ref;\n newProps.className = className;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Emotion.displayName = 'EmotionCssPropInternal';\n}\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwnProperty as h, isBrowser as i, useTheme as u, withEmotionCache as w };\n","import { h as hasOwnProperty, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isBrowser$1 } from './emotion-element-6bdfffb2.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-6bdfffb2.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js';\nimport 'hoist-non-react-statics';\n\nvar pkg = {\n\tname: \"@emotion/react\",\n\tversion: \"11.11.1\",\n\tmain: \"dist/emotion-react.cjs.js\",\n\tmodule: \"dist/emotion-react.esm.js\",\n\tbrowser: {\n\t\t\"./dist/emotion-react.esm.js\": \"./dist/emotion-react.browser.esm.js\"\n\t},\n\texports: {\n\t\t\".\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./dist/emotion-react.worker.esm.js\",\n\t\t\t\tbrowser: \"./dist/emotion-react.browser.esm.js\",\n\t\t\t\t\"default\": \"./dist/emotion-react.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./dist/emotion-react.cjs.mjs\",\n\t\t\t\"default\": \"./dist/emotion-react.cjs.js\"\n\t\t},\n\t\t\"./jsx-runtime\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js\",\n\t\t\t\tbrowser: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n\t\t},\n\t\t\"./_isolated-hnrs\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js\",\n\t\t\t\tbrowser: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n\t\t},\n\t\t\"./jsx-dev-runtime\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js\",\n\t\t\t\tbrowser: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\"./macro\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t},\n\t\t\t\"default\": \"./macro.js\"\n\t\t}\n\t},\n\ttypes: \"types/index.d.ts\",\n\tfiles: [\n\t\t\"src\",\n\t\t\"dist\",\n\t\t\"jsx-runtime\",\n\t\t\"jsx-dev-runtime\",\n\t\t\"_isolated-hnrs\",\n\t\t\"types/*.d.ts\",\n\t\t\"macro.*\"\n\t],\n\tsideEffects: false,\n\tauthor: \"Emotion Contributors\",\n\tlicense: \"MIT\",\n\tscripts: {\n\t\t\"test:typescript\": \"dtslint types\"\n\t},\n\tdependencies: {\n\t\t\"@babel/runtime\": \"^7.18.3\",\n\t\t\"@emotion/babel-plugin\": \"^11.11.0\",\n\t\t\"@emotion/cache\": \"^11.11.0\",\n\t\t\"@emotion/serialize\": \"^1.1.2\",\n\t\t\"@emotion/use-insertion-effect-with-fallbacks\": \"^1.0.1\",\n\t\t\"@emotion/utils\": \"^1.2.1\",\n\t\t\"@emotion/weak-memoize\": \"^0.3.1\",\n\t\t\"hoist-non-react-statics\": \"^3.3.1\"\n\t},\n\tpeerDependencies: {\n\t\treact: \">=16.8.0\"\n\t},\n\tpeerDependenciesMeta: {\n\t\t\"@types/react\": {\n\t\t\toptional: true\n\t\t}\n\t},\n\tdevDependencies: {\n\t\t\"@definitelytyped/dtslint\": \"0.0.112\",\n\t\t\"@emotion/css\": \"11.11.0\",\n\t\t\"@emotion/css-prettifier\": \"1.1.3\",\n\t\t\"@emotion/server\": \"11.11.0\",\n\t\t\"@emotion/styled\": \"11.11.0\",\n\t\t\"html-tag-names\": \"^1.1.2\",\n\t\treact: \"16.14.0\",\n\t\t\"svg-tag-names\": \"^1.1.1\",\n\t\ttypescript: \"^4.5.5\"\n\t},\n\trepository: \"https://github.com/emotion-js/emotion/tree/main/packages/react\",\n\tpublishConfig: {\n\t\taccess: \"public\"\n\t},\n\t\"umd:main\": \"dist/emotion-react.umd.min.js\",\n\tpreconstruct: {\n\t\tentrypoints: [\n\t\t\t\"./index.js\",\n\t\t\t\"./jsx-runtime.js\",\n\t\t\t\"./jsx-dev-runtime.js\",\n\t\t\t\"./_isolated-hnrs.js\"\n\t\t],\n\t\tumdName: \"emotionReact\",\n\t\texports: {\n\t\t\tenvConditions: [\n\t\t\t\t\"browser\",\n\t\t\t\t\"worker\"\n\t\t\t],\n\t\t\textra: {\n\t\t\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\t\t\"./macro\": {\n\t\t\t\t\ttypes: {\n\t\t\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t\t\t},\n\t\t\t\t\t\"default\": \"./macro.js\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar jsx = function jsx(type, props) {\n var args = arguments;\n\n if (props == null || !hasOwnProperty.call(props, 'css')) {\n // $FlowFixMe\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n } // $FlowFixMe\n\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\nvar warnedAboutCssPropForGlobal = false; // maintain place over rerenders.\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is\n // probably using the custom createElement which\n // means it will be turned into a className prop\n // $FlowFixMe I don't really want to add it to the type since it shouldn't be used\n props.className || props.css)) {\n console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\");\n warnedAboutCssPropForGlobal = true;\n }\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n\n if (!isBrowser$1) {\n var _ref;\n\n var serializedNames = serialized.name;\n var serializedStyles = serialized.styles;\n var next = serialized.next;\n\n while (next !== undefined) {\n serializedNames += ' ' + next.name;\n serializedStyles += next.styles;\n next = next.next;\n }\n\n var shouldCache = cache.compat === true;\n var rules = cache.insert(\"\", {\n name: serializedNames,\n styles: serializedStyles\n }, cache.sheet, shouldCache);\n\n if (shouldCache) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref = {}, _ref[\"data-emotion\"] = cache.key + \"-global \" + serializedNames, _ref.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref.nonce = cache.sheet.nonce, _ref));\n } // yes, i know these hooks are used conditionally\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false; // $FlowFixMe\n\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Global.displayName = 'EmotionGlobal';\n}\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nvar keyframes = function keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name; // $FlowFixMe\n\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n};\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n if (process.env.NODE_ENV !== 'production' && arg.styles !== undefined && arg.name !== undefined) {\n 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 component.');\n }\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n var rules = useInsertionEffectAlwaysWithSyncFallback(function () {\n var rules = '';\n\n for (var i = 0; i < serializedArr.length; i++) {\n var res = insertStyles(cache, serializedArr[i], false);\n\n if (!isBrowser$1 && res !== undefined) {\n rules += res;\n }\n }\n\n if (!isBrowser$1) {\n return rules;\n }\n });\n\n if (!isBrowser$1 && rules.length !== 0) {\n var _ref2;\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref2 = {}, _ref2[\"data-emotion\"] = cache.key + \" \" + serializedArr.map(function (serialized) {\n return serialized.name;\n }).join(' '), _ref2.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref2.nonce = cache.sheet.nonce, _ref2));\n }\n\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\nif (process.env.NODE_ENV !== 'production') {\n ClassNames.displayName = 'EmotionClassNames';\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var isBrowser = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked\n\n var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';\n\n if (isBrowser && !isTestEnv) {\n // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later\n var globalContext = // $FlowIgnore\n typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef\n : isBrowser ? window : global;\n var globalKey = \"__EMOTION_REACT_\" + pkg.version.split('.')[0] + \"__\";\n\n if (globalContext[globalKey]) {\n 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.');\n }\n\n globalContext[globalKey] = true;\n }\n}\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","const sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n return {\n ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n","import { rectToClientRect, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { arrow, autoPlacement, detectOverflow, flip, hide, inline, limitShift, offset, shift, size } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getDocumentElement, getNodeName, isOverflowElement, getNodeScroll, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentIFrame = win.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== win) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentIFrame = getWindow(currentIFrame).frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n if (offsetParent === documentElement) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\nfunction getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n return getCssDimensions(element);\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const window = getWindow(element);\n if (!isHTMLElement(element)) {\n return window;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}\n\nconst getElementRects = async function (_ref) {\n let {\n reference,\n floating,\n strategy\n } = _ref;\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n return {\n reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n floating: {\n x: 0,\n y: 0,\n ...(await getDimensionsFn(floating))\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n clearTimeout(timeoutId);\n io && io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 100);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle