UNPKG

@pdftron/webviewer

Version:

[WebViewer](https://www.apryse.com/webviewer) is a powerful JavaScript Document SDK and UI Component Library that is a part of the [Apryse PDF SDK](https://www.apryse.com). It provides a slick, out-of-the-box responsive UI that interacts with the core lib

1 lines • 51.9 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1572:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,o){"use strict";var r=o(1572),n=o(1628);Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_VisibleCellRange=t.bpfrpt_proptype_Alignment=t.bpfrpt_proptype_OverscanIndicesGetter=t.bpfrpt_proptype_OverscanIndices=t.bpfrpt_proptype_OverscanIndicesGetterParams=t.bpfrpt_proptype_RenderedSection=t.bpfrpt_proptype_ScrollbarPresenceChange=t.bpfrpt_proptype_Scroll=t.bpfrpt_proptype_NoContentRenderer=t.bpfrpt_proptype_CellSize=t.bpfrpt_proptype_CellSizeGetter=t.bpfrpt_proptype_CellRangeRenderer=t.bpfrpt_proptype_CellRangeRendererParams=t.bpfrpt_proptype_StyleCache=t.bpfrpt_proptype_CellCache=t.bpfrpt_proptype_CellRenderer=t.bpfrpt_proptype_CellRendererParams=t.bpfrpt_proptype_CellPosition=void 0;n(o(0)),r(o(1708)),r(o(2));t.bpfrpt_proptype_CellPosition=null;t.bpfrpt_proptype_CellRendererParams=null;t.bpfrpt_proptype_CellRenderer=null;t.bpfrpt_proptype_CellCache=null;t.bpfrpt_proptype_StyleCache=null;t.bpfrpt_proptype_CellRangeRendererParams=null;t.bpfrpt_proptype_CellRangeRenderer=null;t.bpfrpt_proptype_CellSizeGetter=null;t.bpfrpt_proptype_CellSize=null;t.bpfrpt_proptype_NoContentRenderer=null;t.bpfrpt_proptype_Scroll=null;t.bpfrpt_proptype_ScrollbarPresenceChange=null;t.bpfrpt_proptype_RenderedSection=null;t.bpfrpt_proptype_OverscanIndicesGetterParams=null;t.bpfrpt_proptype_OverscanIndices=null;t.bpfrpt_proptype_OverscanIndicesGetter=null;t.bpfrpt_proptype_Alignment=null;t.bpfrpt_proptype_VisibleCellRange=null},1628:function(e,t,o){var r=o(473).default;function n(t,o){if("function"==typeof WeakMap)var l=new WeakMap,i=new WeakMap;return(e.exports=n=function(e,t){if(!t&&e&&e.__esModule)return e;var o,n,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(o=t?i:l){if(o.has(e))return o.get(e);o.set(e,a)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((n=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(n.get||n.set)?o(a,s,n):a[s]=e[s]);return a},e.exports.__esModule=!0,e.exports.default=e.exports)(t,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1708:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(469)),l=r(o(465)),i=r(o(466)),a=r(o(227)),s=r(o(1807)),c=o(1808),u=(o(1588),function(){function e(t){var o=t.maxScrollSize,r=void 0===o?(0,c.getMaxElementSize)():o,i=(0,n.default)(t,["maxScrollSize"]);(0,l.default)(this,e),(0,a.default)(this,"_cellSizeAndPositionManager",void 0),(0,a.default)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new s.default(i),this._maxScrollSize=r}return(0,i.default)(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(l*(n-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,r=e.containerSize,n=e.currentOffset,l=e.targetIndex;n=this._safeOffsetToOffset({containerSize:r,offset:n});var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:r,currentOffset:n,targetIndex:l});return this._offsetToSafeOffset({containerSize:r,offset:i})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,r=e.totalSize;return r<=t?0:o/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return o;var l=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(l*(n-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return o;var l=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(l*(r-t))}}]),e}());t.default=u},1758:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,n=e.startIndex,l=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(t-1,l+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,l)}},t.SCROLL_DIRECTION_VERTICAL=t.SCROLL_DIRECTION_HORIZONTAL=t.SCROLL_DIRECTION_FORWARD=t.SCROLL_DIRECTION_BACKWARD=void 0;o(1588);t.SCROLL_DIRECTION_BACKWARD=-1;t.SCROLL_DIRECTION_FORWARD=1;t.SCROLL_DIRECTION_HORIZONTAL="horizontal";t.SCROLL_DIRECTION_VERTICAL="vertical"},1759:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=e.cellCache,o=e.cellRenderer,r=e.columnSizeAndPositionManager,n=e.columnStartIndex,l=e.columnStopIndex,i=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,_=e.verticalOffsetAdjustment,S=e.visibleColumnIndices,v=e.visibleRowIndices,C=[],g=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),m=!s&&!g,y=f;y<=p;y++)for(var I=d.getSizeAndPositionOfCell(y),T=n;T<=l;T++){var z=r.getSizeAndPositionOfCell(T),b=T>=S.start&&T<=S.stop&&y>=v.start&&y<=v.stop,R="".concat(y,"-").concat(T),w=void 0;m&&h[R]?w=h[R]:i&&!i.has(y,T)?w={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(w={height:I.size,left:z.offset+a,position:"absolute",top:I.offset+_,width:z.size},h[R]=w);var x={columnIndex:T,isScrolling:s,isVisible:b,key:R,parent:u,rowIndex:y,style:w},O=void 0;!c&&!s||a||_?O=o(x):(t[R]||(t[R]=o(x)),O=t[R]),null!=O&&!1!==O&&C.push(O)}return C};o(1588)},1760:function(e,t,o){"use strict";var r=o(1572),n=o(1628);Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_Scroll=t.bpfrpt_proptype_RenderedRows=t.bpfrpt_proptype_RowRenderer=t.bpfrpt_proptype_RowRendererParams=void 0;n(o(0)),r(o(2));t.bpfrpt_proptype_RowRendererParams=null;t.bpfrpt_proptype_RowRenderer=null;t.bpfrpt_proptype_RenderedRows=null;t.bpfrpt_proptype_Scroll=null},1761:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_CellMeasureCache=void 0;r(o(2));t.bpfrpt_proptype_CellMeasureCache=null},1802:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"bpfrpt_proptype_RowRendererParams",{enumerable:!0,get:function(){return l.bpfrpt_proptype_RowRendererParams}});var n=r(o(1803)),l=o(1760)},1803:function(e,t,o){"use strict";var r=o(1572),n=o(1628);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,i,a=r(o(1569)),s=r(o(465)),c=r(o(466)),u=r(o(1564)),d=r(o(1563)),f=r(o(1566)),p=r(o(1562)),h=r(o(227)),_=n(o(1804)),S=n(o(0)),v=r(o(616)),C=(o(1760),r(o(2)),i=l=function(e){function t(){var e,o;(0,s.default)(this,t);for(var r=arguments.length,n=new Array(r),l=0;l<r;l++)n[l]=arguments[l];return o=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(n))),(0,h.default)((0,f.default)(o),"Grid",void 0),(0,h.default)((0,f.default)(o),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,n=e.style,l=e.isScrolling,i=e.isVisible,a=e.key,s=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(n,"width");return c&&c.writable&&(n.width="100%"),s({index:r,style:n,isScrolling:l,isVisible:i,key:a,parent:t})})),(0,h.default)((0,f.default)(o),"_setRef",(function(e){o.Grid=e})),(0,h.default)((0,f.default)(o),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})})),(0,h.default)((0,f.default)(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,l=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:l})})),o}return(0,p.default)(t,e),(0,c.default)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,r=e.scrollToIndex,n=e.width,l=(0,v.default)("ReactVirtualized__List",t);return S.createElement(_.default,(0,a.default)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:n,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(S.PureComponent),(0,h.default)(l,"propTypes",null),i);t.default=C,(0,h.default)(C,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:_.accessibilityOverscanIndicesGetter,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}})},1804:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Grid",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"accessibilityOverscanIndicesGetter",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"defaultCellRangeRenderer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"defaultOverscanIndicesGetter",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"bpfrpt_proptype_NoContentRenderer",{enumerable:!0,get:function(){return s.bpfrpt_proptype_NoContentRenderer}}),Object.defineProperty(t,"bpfrpt_proptype_Alignment",{enumerable:!0,get:function(){return s.bpfrpt_proptype_Alignment}}),Object.defineProperty(t,"bpfrpt_proptype_CellPosition",{enumerable:!0,get:function(){return s.bpfrpt_proptype_CellPosition}}),Object.defineProperty(t,"bpfrpt_proptype_CellSize",{enumerable:!0,get:function(){return s.bpfrpt_proptype_CellSize}}),Object.defineProperty(t,"bpfrpt_proptype_OverscanIndicesGetter",{enumerable:!0,get:function(){return s.bpfrpt_proptype_OverscanIndicesGetter}}),Object.defineProperty(t,"bpfrpt_proptype_RenderedSection",{enumerable:!0,get:function(){return s.bpfrpt_proptype_RenderedSection}}),Object.defineProperty(t,"bpfrpt_proptype_CellRendererParams",{enumerable:!0,get:function(){return s.bpfrpt_proptype_CellRendererParams}}),Object.defineProperty(t,"bpfrpt_proptype_Scroll",{enumerable:!0,get:function(){return s.bpfrpt_proptype_Scroll}});var n=r(o(1805)),l=r(o(1813)),i=r(o(1759)),a=r(o(1758)),s=o(1588)},1805:function(e,t,o){"use strict";var r=o(1572),n=o(1628);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DEFAULT_SCROLLING_RESET_TIME_INTERVAL=void 0;var l,i,a=r(o(1569)),s=r(o(465)),c=r(o(466)),u=r(o(1564)),d=r(o(1563)),f=r(o(1566)),p=r(o(1562)),h=r(o(227)),_=n(o(0)),S=r(o(616)),v=r(o(1806)),C=r(o(1708)),g=r(o(1809)),m=n(o(1758)),y=r(o(1810)),I=r(o(1759)),T=r(o(1609)),z=o(1576),b=o(1811);o(1588),r(o(2));function R(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function w(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?R(o,!0).forEach((function(t){(0,h.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):R(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}t.DEFAULT_SCROLLING_RESET_TIME_INTERVAL=150;var x="observed",O="requested",P=(i=l=function(e){function t(e){var o;(0,s.default)(this,t),o=(0,u.default)(this,(0,d.default)(t).call(this,e)),(0,h.default)((0,f.default)(o),"_onGridRenderedMemoizer",(0,g.default)()),(0,h.default)((0,f.default)(o),"_onScrollMemoizer",(0,g.default)(!1)),(0,h.default)((0,f.default)(o),"_deferredInvalidateColumnIndex",null),(0,h.default)((0,f.default)(o),"_deferredInvalidateRowIndex",null),(0,h.default)((0,f.default)(o),"_recomputeScrollLeftFlag",!1),(0,h.default)((0,f.default)(o),"_recomputeScrollTopFlag",!1),(0,h.default)((0,f.default)(o),"_horizontalScrollBarSize",0),(0,h.default)((0,f.default)(o),"_verticalScrollBarSize",0),(0,h.default)((0,f.default)(o),"_scrollbarPresenceChanged",!1),(0,h.default)((0,f.default)(o),"_scrollingContainer",void 0),(0,h.default)((0,f.default)(o),"_childrenToDisplay",void 0),(0,h.default)((0,f.default)(o),"_columnStartIndex",void 0),(0,h.default)((0,f.default)(o),"_columnStopIndex",void 0),(0,h.default)((0,f.default)(o),"_rowStartIndex",void 0),(0,h.default)((0,f.default)(o),"_rowStopIndex",void 0),(0,h.default)((0,f.default)(o),"_renderedColumnStartIndex",0),(0,h.default)((0,f.default)(o),"_renderedColumnStopIndex",0),(0,h.default)((0,f.default)(o),"_renderedRowStartIndex",0),(0,h.default)((0,f.default)(o),"_renderedRowStopIndex",0),(0,h.default)((0,f.default)(o),"_initialScrollTop",void 0),(0,h.default)((0,f.default)(o),"_initialScrollLeft",void 0),(0,h.default)((0,f.default)(o),"_disablePointerEventsTimeoutId",void 0),(0,h.default)((0,f.default)(o),"_styleCache",{}),(0,h.default)((0,f.default)(o),"_cellCache",{}),(0,h.default)((0,f.default)(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),(0,h.default)((0,f.default)(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),(0,h.default)((0,f.default)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,h.default)((0,f.default)(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var r=new C.default({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),n=new C.default({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:n,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:m.SCROLL_DIRECTION_FORWARD,scrollDirectionVertical:m.SCROLL_DIRECTION_FORWARD,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return(0,p.default)(t,e),(0,c.default)(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,n=void 0===r?this.props.scrollToColumn:r,l=e.rowIndex,i=void 0===l?this.props.scrollToRow:l,a=w({},this.props,{scrollToAlignment:o,scrollToColumn:n,scrollToRow:i});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,r=e.scrollTop,n=void 0===r?0:r;if(!(n<0)){this._debounceScrollEnded();var l=this.props,i=l.autoHeight,a=l.autoWidth,s=l.height,c=l.width,u=this.state.instanceProps,d=u.scrollbarSize,f=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+d),o),_=Math.min(Math.max(0,f-s+d),n);if(this.state.scrollLeft!==h||this.state.scrollTop!==_){var S={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?m.SCROLL_DIRECTION_FORWARD:m.SCROLL_DIRECTION_BACKWARD:this.state.scrollDirectionHorizontal,scrollDirectionVertical:_!==this.state.scrollTop?_>this.state.scrollTop?m.SCROLL_DIRECTION_FORWARD:m.SCROLL_DIRECTION_BACKWARD:this.state.scrollDirectionVertical,scrollPositionChangeReason:x};i||(S.scrollTop=_),a||(S.scrollLeft=h),S.needToResetStyleCache=!1,this.setState(S)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:_,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r,l=this.props,i=l.scrollToColumn,a=l.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(o),s.rowSizeAndPositionManager.resetCell(n),this._recomputeScrollLeftFlag=i>=0&&(this.state.scrollDirectionHorizontal===m.SCROLL_DIRECTION_FORWARD?o<=i:o>=i),this._recomputeScrollTopFlag=a>=0&&(this.state.scrollDirectionVertical===m.SCROLL_DIRECTION_FORWARD?n<=a:n>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props.columnCount,n=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(w({},n,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(w({},n,{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,r=e.height,n=e.scrollLeft,l=e.scrollToColumn,i=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=w({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof n&&n>=0||"number"==typeof i&&i>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:i});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&s>0;l>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,n=r.autoHeight,l=r.autoWidth,i=r.columnCount,a=r.height,s=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,d=r.scrollToRow,f=r.width,p=this.state,h=p.scrollLeft,_=p.scrollPositionChangeReason,S=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var C=i>0&&0===e.columnCount||s>0&&0===e.rowCount;_===O&&(!l&&h>=0&&(h!==this._scrollingContainer.scrollLeft||C)&&(this._scrollingContainer.scrollLeft=h),!n&&S>=0&&(S!==this._scrollingContainer.scrollTop||C)&&(this._scrollingContainer.scrollTop=S));var g=(0===e.width||0===e.height)&&a>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):(0,y.default)({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:f,sizeJustIncreasedFromZero:g,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):(0,y.default)({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:S,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:g,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||S!==t.scrollTop){var m=v.rowSizeAndPositionManager.getTotalSize(),I=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:S,totalColumnsWidth:I,totalRowsHeight:m})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&(0,b.cancelAnimationTimeout)(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,r=e.autoWidth,n=e.className,l=e.containerProps,i=e.containerRole,s=e.containerStyle,c=e.height,u=e.id,d=e.noContentRenderer,f=e.role,p=e.style,h=e.tabIndex,v=e.width,C=this.state,g=C.instanceProps,m=C.needToResetStyleCache,y=this._isScrolling(),I={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:r?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};m&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var T=g.columnSizeAndPositionManager.getTotalSize(),z=g.rowSizeAndPositionManager.getTotalSize(),b=z>c?g.scrollbarSize:0,R=T>v?g.scrollbarSize:0;R===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),I.overflowX=T+b<=v?"hidden":"auto",I.overflowY=z+R<=c?"hidden":"auto";var x=this._childrenToDisplay,O=0===x.length&&c>0&&v>0;return _.createElement("div",(0,a.default)({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,S.default)("ReactVirtualized__Grid",n),id:u,onScroll:this._onScroll,role:f,style:w({},I,{},p),tabIndex:h}),x.length>0&&_.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:i,style:w({width:t?"auto":T,height:z,maxWidth:T,maxHeight:z,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},x),O&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,r=e.cellRangeRenderer,n=e.columnCount,l=e.deferredMeasurementCache,i=e.height,a=e.overscanColumnCount,s=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,_=t.instanceProps,S=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,C=this._isScrolling(e,t);if(this._childrenToDisplay=[],i>0&&d>0){var g=_.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),m=_.rowSizeAndPositionManager.getVisibleCellRange({containerSize:i,offset:S}),y=_.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),I=_.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:i,offset:S});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=m.start,this._renderedRowStopIndex=m.stop;var T=s({direction:"horizontal",cellCount:n,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof g.start?g.start:0,stopIndex:"number"==typeof g.stop?g.stop:-1}),z=s({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"==typeof m.start?m.start:0,stopIndex:"number"==typeof m.stop?m.stop:-1}),b=T.overscanStartIndex,R=T.overscanStopIndex,w=z.overscanStartIndex,x=z.overscanStopIndex;if(l){if(!l.hasFixedHeight())for(var O=w;O<=x;O++)if(!l.has(O,0)){b=0,R=n-1;break}if(!l.hasFixedWidth())for(var P=b;P<=R;P++)if(!l.has(0,P)){w=0,x=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:_.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:R,deferredMeasurementCache:l,horizontalOffsetAdjustment:y,isScrolling:C,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:_.rowSizeAndPositionManager,rowStartIndex:w,rowStopIndex:x,scrollLeft:v,scrollTop:S,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:g,visibleRowIndices:m}),this._columnStartIndex=b,this._columnStopIndex=R,this._rowStartIndex=w,this._rowStopIndex=x}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&(0,b.cancelAnimationTimeout)(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=(0,b.requestAnimationTimeout)(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,n=e.totalColumnsWidth,l=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,i=t.props,a=i.height;(0,i.onScroll)({clientHeight:a,clientWidth:i.width,scrollHeight:l,scrollLeft:o,scrollTop:r,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,r=e.scrollTop,n=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:r});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var l="".concat(r,"-").concat(n);this._styleCache[l]=e[l],o&&(this._cellCache[l]=t[l])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,o);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var r={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,l,i=o.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(r.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==i.prevColumnCount&&0!==i.prevRowCount||(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===i.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),(0,v.default)({cellCount:i.prevColumnCount,cellSize:"number"==typeof i.prevColumnWidth?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),(0,v.default)({cellCount:i.prevRowCount,cellSize:"number"==typeof i.prevRowHeight?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=!0===e.isScrolling,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),void 0===i.scrollbarSize?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,r.instanceProps=i,w({},r,{},n,{},l)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:O};return"number"==typeof o&&o>=0&&(n.scrollDirectionHorizontal=o>t.scrollLeft?m.SCROLL_DIRECTION_FORWARD:m.SCROLL_DIRECTION_BACKWARD,n.scrollLeft=o),"number"==typeof r&&r>=0&&(n.scrollDirectionVertical=r>t.scrollTop?m.SCROLL_DIRECTION_FORWARD:m.SCROLL_DIRECTION_BACKWARD,n.scrollTop=r),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?n:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,n=e.scrollToAlignment,l=e.scrollToColumn,i=e.width,a=t.scrollLeft,s=t.instanceProps;if(o>0){var c=o-1,u=l<0?c:Math.min(c,l),d=s.rowSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>r?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:i-f,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var r=o.scrollLeft,n=t._getCalculatedScrollLeft(e,o);return"number"==typeof n&&n>=0&&r!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,n=e.scrollToAlignment,l=e.scrollToRow,i=e.width,a=t.scrollTop,s=t.instanceProps;if(r>0){var c=r-1,u=l<0?c:Math.min(c,l),d=s.columnSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>i?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-f,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var r=o.scrollTop,n=t._getCalculatedScrollTop(e,o);return"number"==typeof n&&n>=0&&r!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:n}):{}}}]),t}(_.PureComponent),(0,h.default)(l,"propTypes",null),i);(0,h.default)(P,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:I.default,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:T.default,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:m.default,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,z.polyfill)(P);var M=P;t.default=M},1806:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.cellCount,o=e.cellSize,r=e.computeMetadataCallback,n=e.computeMetadataCallbackProps,l=e.nextCellsCount,i=e.nextCellSize,a=e.nextScrollToIndex,s=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===l&&("number"!=typeof o&&"number"!=typeof i||o===i)||(r(n),s>=0&&s===a&&c())}},1807:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(465)),l=r(o(466)),i=r(o(227)),a=(o(1588),function(){function e(t){var o=t.cellCount,r=t.cellSizeGetter,l=t.estimatedCellSize;(0,n.default)(this,e),(0,i.default)(this,"_cellSizeAndPositionData",{}),(0,i.default)(this,"_lastMeasuredIndex",-1),(0,i.default)(this,"_lastBatchedIndex",-1),(0,i.default)(this,"_cellCount",void 0),(0,i.default)(this,"_cellSizeGetter",void 0),(0,i.default)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=l}return(0,l.default)(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var n=this._cellSizeGetter({index:r});if(void 0===n||isNaN(n))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(n));null===n?(this._cellSizeAndPositionData[r]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:o,size:n},o+=n,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,r=e.containerSize,n=e.currentOffset,l=e.targetIndex;if(r<=0)return 0;var i,a=this.getSizeAndPositionOfCell(l),s=a.offset,c=s-r+a.size;switch(o){case"start":i=s;break;case"end":i=c;break;case"center":i=s-(r-a.size)/2;break;default:i=Math.max(c,Math.min(s,n))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,i))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var r=o+t,n=this._findNearestCell(o),l=this.getSizeAndPositionOfCell(n);o=l.offset+l.size;for(var i=n;o<r&&i<this._cellCount-1;)i++,o+=this.getSizeAndPositionOfCell(i).size;return{start:n,stop:i}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var r=t+Math.floor((e-t)/2),n=this.getSizeAndPositionOfCell(r).offset;if(n===o)return r;n<o?t=r+1:n>o&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}());t.default=a},1808:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxElementSize=void 0;t.getMaxElementSize=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5}},1809:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var r=o.callback,n=o.indices,l=Object.keys(n),i=!e||l.every((function(e){var t=n[e];return Array.isArray(t)?t.length>0:t>=0})),a=l.length!==Object.keys(t).length||l.some((function(e){var o=t[e],r=n[e];return Array.isArray(r)?o.join(",")!==r.join(","):o!==r}));t=n,i&&a&&r(n)}}},1810:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,r=e.previousCellsCount,n=e.previousCellSize,l=e.previousScrollToAlignment,i=e.previousScrollToIndex,a=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=o.getCellCount(),_=u>=0&&u<h,S=d!==a||f||!n||"number"==typeof t&&t!==n;_&&(S||c!==l||u!==i)?p(u):!_&&h>0&&(d<a||h<r)&&s>o.getTotalSize()-d&&p(h-1)};r(o(1708)),o(1588)},1811:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_AnimationTimeoutId=t.requestAnimationTimeout=t.cancelAnimationTimeout=void 0;var n=o(1812);r(o(2));t.bpfrpt_proptype_AnimationTimeoutId=null;t.cancelAnimationTimeout=function(e){return(0,n.caf)(e.id)};t.requestAnimationTimeout=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var r={id:(0,n.raf)((function l(){Date.now()-o>=t?e.call():r.id=(0,n.raf)(l)}))};return r}},1812:function(e,t,o){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.caf=t.raf=void 0;var n=(r="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame||function(e){return r.setTimeout(e,1e3/60)},l=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||r.oCancelAnimationFrame||r.msCancelAnimationFrame||function(e){r.clearTimeout(e)},i=n;t.raf=i;var a=l;t.caf=a},1813:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,n=e.startIndex,l=e.stopIndex;return o=Math.max(1,o),1===r?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(t-1,l+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,l+1)}},t.SCROLL_DIRECTION_VERTICAL=t.SCROLL_DIRECTION_HORIZONTAL=t.SCROLL_DIRECTION_FORWARD=t.SCROLL_DIRECTION_BACKWARD=void 0;o(1588);t.SCROLL_DIRECTION_BACKWARD=-1;t.SCROLL_DIRECTION_FORWARD=1;t.SCROLL_DIRECTION_HORIZONTAL="horizontal";t.SCROLL_DIRECTION_VERTICAL="vertical"},1814:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CellMeasurer",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"CellMeasurerCache",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var n=r(o(1815)),l=r(o(1816)),i=n.default;t.default=i},1815:function(e,t,o){"use strict";var r=o(1572),n=o(1628);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,i,a=r(o(465)),s=r(o(466)),c=r(o(1564)),u=r(o(1563)),d=r(o(1566)),f=r(o(1562)),p=r(o(227)),h=n(o(0)),_=o(119),S=(o(1761),r(o(2)),i=l=function(e){function t(){var e,o;(0,a.default)(this,t);for(var r=arguments.length,n=new Array(r),l=0;l<r;l++)n[l]=arguments[l];return o=(0,c.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(n))),(0,p.default)((0,d.default)(o),"_child",void 0),(0,p.default)((0,d.default)(o),"_measure",(function(){var e=o.props,t=e.cache,r=e.columnIndex,n=void 0===r?0:r,l=e.parent,i=e.rowIndex,a=void 0===i?o.props.index||0:i,s=o._getCellMeasurements(),c=s.height,u=s.width;c===t.getHeight(a,n)&&u===t.getWidth(a,n)||(t.set(a,n,u,c),l&&"function"==typeof l.recomputeGridSize&&l.recomputeGridSize({columnIndex:n,rowIndex:a}))})),(0,p.default)((0,d.default)(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),o._child=e,e&&o._maybeMeasureCell()})),o}return(0,f.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,_.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var n=Math.ceil(t.offsetHeight),l=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),r&&(t.style.height=r),{height:n,width:l}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,n=e.parent,l=e.rowIndex,i=void 0===l?this.props.index||0:l;if(!t.has(i,r)){var a=this._getCellMeasurements(),s=a.height,c=a.width;t.set(i,r,c,s),n&&"function"==typeof n.invalidateCellSizeAfterRender&&n.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:i})}}}]),t}(h.PureComponent),(0,p.default)(l,"propTypes",null),i);t.default=S,(0,p.default)(S,"__internalCellMeasurerFlag",!1)},1816:function(e,t,o){"use strict";var r=o(1572);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DEFAULT_WIDTH=t.DEFAULT_HEIGHT=void 0;var n=r(o(465)),l=r(o(466)),i=r(o(227));o(1761);t.DEFAULT_HEIGHT=30;t.DEFAULT_WIDTH=100;var a=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.default)(this,e),(0,i.default)(this,"_cellHeightCache",{}),(0,i.default)(this,"_cellWidthCache",{}),(0,i.default)(this,"_columnWidthCache",{}),(0,i.default)(this,"_rowHeightCache",{}),(0,i.default)(this,"_defaultHeight",void 0),(0,i.default)(this,"_defaultWidth",void 0),(0,i.default)(this,"_minHeight",void 0),(0,i.default)(this,"_minWidth",void 0),(0,i.default)(this,"_keyMapper",void 0),(0,i.default)(this,"_hasFixedHeight",void 0),(0,i.default)(this,"_hasFixedWidth",void 0),(0,i.default)(this,"_columnCount",0),(0,i.default)(this,"_rowCount",0),(0,i.default)(this,"columnWidth",(function(e){var o=e.index,r=t._keyMapper(0,o);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),(0,i.default)(this,"rowHeight",(function(e){var o=e.index,r=t._keyMapper(o,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=o.defaultHeight,l=o.defaultWidth,a=o.fixedHeight,c=o.fixedWidth,u=o.keyMapper,d=o.minHeight,f=o.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===c,this._minHeight=d||0,this._minWidth=f||0,this._keyMapper=u||s,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof l?l:100)}return(0,l.default)(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(e,t);return void 0!==this._cellWidthCache[o]?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]}},{key:"set",value:function(e,t,o,r){var n=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[n]=r,this._cellWidthCache[n]=o,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var o=0,r=0;r<this._rowCount;r++)o=Math.max(o,this.getWidth(r,t));var n=this._keyMapper(0,t);this._columnWidthCache[n]=o}if(!this._hasFixedHeight){for(var l=0,i=0;i<this._columnCount;i++)l=Math.max(l,this.getHeight(e,i));var a=this._keyMapper(e,0);this._rowHeightCache[a]=l}}},{key:"defaultHeight