@sap-ux/ui-components 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Icons.js +1 -1
- package/dist/components/Icons.js.map +1 -1
- package/dist/components/UITreeDropdown/UITreeDropdown.js +2 -2
- package/dist/components/UITreeDropdown/UITreeDropdown.js.map +1 -1
- package/package.json +3 -3
- package/storybook/360.01a2fadf.iframe.bundle.js +10 -0
- package/storybook/482.ad357daf.iframe.bundle.js +1 -0
- package/storybook/630.56ecdf11.iframe.bundle.js +2 -0
- package/storybook/{421.82fb543c.iframe.bundle.js → 693.6315357e.iframe.bundle.js} +27 -28
- package/storybook/UIButton-story.b4af0230.iframe.bundle.js +1 -0
- package/storybook/UIContextualMenu-story.43b45fa0.iframe.bundle.js +1 -0
- package/storybook/UITooltip-story.e088dd3c.iframe.bundle.js +2 -0
- package/storybook/UITreedropdown-story.1df59995.iframe.bundle.js +1 -0
- package/storybook/iframe.html +2 -2
- package/storybook/{main.e2aa1653.iframe.bundle.js → main.0a27e16a.iframe.bundle.js} +1 -1
- package/storybook/project.json +1 -1
- package/storybook/runtime~main.735b9f72.iframe.bundle.js +2 -0
- package/storybook/472.4283b7a6.iframe.bundle.js +0 -10
- package/storybook/482.f9e43363.iframe.bundle.js +0 -1
- package/storybook/UIButton-story.e7b86ff9.iframe.bundle.js +0 -2
- package/storybook/UIContextualMenu-story.7f29a165.iframe.bundle.js +0 -2
- package/storybook/UITooltip-story.1aaaa662.iframe.bundle.js +0 -1
- package/storybook/UITreedropdown-story.ee2c3a17.iframe.bundle.js +0 -2
- package/storybook/runtime~main.0ec101e6.iframe.bundle.js +0 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";(()=>{(self.webpackChunk_sap_ux_ui_components=self.webpackChunk_sap_ux_ui_components||[]).push([[360],{"../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/List.js"(Ee,W,X){var V=this&&this.__extends||(function(){var b=function(k,T){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},b(k,T)};return function(k,T){b(k,T);function c(){this.constructor=k}k.prototype=T===null?Object.create(T):(c.prototype=T.prototype,new c)}})(),N=this&&this.__assign||function(){return N=Object.assign||function(b){for(var k,T=1,c=arguments.length;T<c;T++){k=arguments[T];for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(b[v]=k[v])}return b},N.apply(this,arguments)},q=this&&this.__createBinding||(Object.create?(function(b,k,T,c){c===void 0&&(c=T),Object.defineProperty(b,c,{enumerable:!0,get:function(){return k[T]}})}):(function(b,k,T,c){c===void 0&&(c=T),b[c]=k[T]})),D=this&&this.__setModuleDefault||(Object.create?(function(b,k){Object.defineProperty(b,"default",{enumerable:!0,value:k})}):function(b,k){b.default=k}),Z=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var k={};if(b!=null)for(var T in b)T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)&&q(k,b,T);return D(k,b),k};Object.defineProperty(W,"__esModule",{value:!0});var f=Z(X("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),R=Z(X("../../node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js")),F=X("../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/utils.js"),re=200,I=10,B=(function(b){V(k,b);function k(T){var c=b.call(this,T)||this;return c.listRef=f.createRef(),c.ghostRef=f.createRef(),c.topOffsets=[],c.itemTranslateOffsets=[],c.initialYOffset=0,c.lastScroll=0,c.lastYOffset=0,c.lastListYOffset=0,c.needle=-1,c.afterIndex=-2,c.state={itemDragged:-1,itemDraggedOutOfBounds:-1,selectedItem:-1,initialX:0,initialY:0,targetX:0,targetY:0,targetHeight:0,targetWidth:0,liveText:"",scrollingSpeed:0,scrollWindow:!1},c.doScrolling=function(){var v=c.state,y=v.scrollingSpeed,E=v.scrollWindow,j=c.listRef.current;window.requestAnimationFrame(function(){E?window.scrollTo(window.pageXOffset,window.pageYOffset+y*1.5):j.scrollTop+=y,y!==0&&c.doScrolling()})},c.getChildren=function(){return c.listRef&&c.listRef.current?Array.from(c.listRef.current.children):(console.warn("No items found in the List container. Did you forget to pass & spread the `props` param in renderList?"),[])},c.calculateOffsets=function(){c.topOffsets=c.getChildren().map(function(v){return v.getBoundingClientRect().top}),c.itemTranslateOffsets=c.getChildren().map(function(v){return F.getTranslateOffset(v)})},c.getTargetIndex=function(v){return c.getChildren().findIndex(function(y){return y===v.target||y.contains(v.target)})},c.onMouseOrTouchStart=function(v){c.dropTimeout&&c.state.itemDragged>-1&&(window.clearTimeout(c.dropTimeout),c.finishDrop());var y=F.isTouchEvent(v);if(!(!y&&v.button!==0)){var E=c.getTargetIndex(v);if(E===-1||c.props.values[E]&&c.props.values[E].disabled){c.state.selectedItem!==-1&&(c.setState({selectedItem:-1}),c.finishDrop());return}var j=c.getChildren()[E],U=j.querySelector("[data-movable-handle]");if(!(U&&!U.contains(v.target))&&!F.checkIfInteractive(v.target,j)){if(v.preventDefault(),c.props.beforeDrag&&c.props.beforeDrag({elements:c.getChildren(),index:E}),y){var Q={passive:!1};j.style.touchAction="none",document.addEventListener("touchend",c.schdOnEnd,Q),document.addEventListener("touchmove",c.schdOnTouchMove,Q),document.addEventListener("touchcancel",c.schdOnEnd,Q)}else{document.addEventListener("mousemove",c.schdOnMouseMove),document.addEventListener("mouseup",c.schdOnEnd);var J=c.getChildren()[c.state.itemDragged];J&&J.style&&(J.style.touchAction="")}c.onStart(j,y?v.touches[0].clientX:v.clientX,y?v.touches[0].clientY:v.clientY,E)}}},c.getYOffset=function(){var v=c.listRef.current?c.listRef.current.scrollTop:0;return window.pageYOffset+v},c.onStart=function(v,y,E,j){c.state.selectedItem>-1&&(c.setState({selectedItem:-1}),c.needle=-1);var U=v.getBoundingClientRect(),Q=window.getComputedStyle(v);c.calculateOffsets(),c.initialYOffset=c.getYOffset(),c.lastYOffset=window.pageYOffset,c.lastListYOffset=c.listRef.current.scrollTop,c.setState({itemDragged:j,targetX:U.left-parseInt(Q["margin-left"],10),targetY:U.top-parseInt(Q["margin-top"],10),targetHeight:U.height,targetWidth:U.width,initialX:y,initialY:E})},c.onMouseMove=function(v){v.cancelable&&v.preventDefault(),c.onMove(v.clientX,v.clientY)},c.onTouchMove=function(v){v.cancelable&&v.preventDefault(),c.onMove(v.touches[0].clientX,v.touches[0].clientY)},c.onWheel=function(v){c.state.itemDragged<0||(c.lastScroll=c.listRef.current.scrollTop+=v.deltaY,c.moveOtherItems())},c.onMove=function(v,y){if(c.state.itemDragged===-1)return null;F.transformItem(c.ghostRef.current,y-c.state.initialY,c.props.lockVertically?0:v-c.state.initialX),c.autoScrolling(y),c.moveOtherItems()},c.moveOtherItems=function(){var v=c.ghostRef.current.getBoundingClientRect(),y=v.top+v.height/2,E=F.getTranslateOffset(c.getChildren()[c.state.itemDragged]),j=c.getYOffset();c.initialYOffset!==j&&(c.topOffsets=c.topOffsets.map(function(U){return U-(j-c.initialYOffset)}),c.initialYOffset=j),c.isDraggedItemOutOfBounds()&&c.props.removableByMove?c.afterIndex=c.topOffsets.length+1:c.afterIndex=F.binarySearch(c.topOffsets,y),c.animateItems(c.afterIndex===-1?0:c.afterIndex,c.state.itemDragged,E)},c.autoScrolling=function(v){var y=c.listRef.current.getBoundingClientRect(),E=y.top,j=y.bottom,U=y.height,Q=window.innerHeight||document.documentElement.clientHeight;if(j>Q&&Q-v<re)c.setState({scrollingSpeed:Math.round((re-(Q-v))/I),scrollWindow:!0});else if(E<0&&v<re)c.setState({scrollingSpeed:Math.round((re-v)/-I),scrollWindow:!0});else if(c.state.scrollWindow&&c.state.scrollingSpeed!==0&&c.setState({scrollingSpeed:0,scrollWindow:!1}),U+20<c.listRef.current.scrollHeight){var J=0;v-E<re?J=Math.round((re-(v-E))/-I):j-v<re&&(J=Math.round((re-(j-v))/I)),c.state.scrollingSpeed!==J&&c.setState({scrollingSpeed:J})}},c.animateItems=function(v,y,E,j){j===void 0&&(j=!1),c.getChildren().forEach(function(U,Q){if(F.setItemTransition(U,c.props.transitionDuration),y===Q&&j){if(y===v)return F.transformItem(U,null);F.transformItem(U,y<v?c.itemTranslateOffsets.slice(y+1,v+1).reduce(function(J,ge){return J+ge},0):c.itemTranslateOffsets.slice(v,y).reduce(function(J,ge){return J+ge},0)*-1)}else y<v&&Q>y&&Q<=v?F.transformItem(U,-E):Q<y&&y>v&&Q>=v?F.transformItem(U,E):F.transformItem(U,null)})},c.isDraggedItemOutOfBounds=function(){var v=c.getChildren()[c.state.itemDragged].getBoundingClientRect(),y=c.ghostRef.current.getBoundingClientRect();return Math.abs(v.left-y.left)>y.width?(c.state.itemDraggedOutOfBounds===-1&&c.setState({itemDraggedOutOfBounds:c.state.itemDragged}),!0):(c.state.itemDraggedOutOfBounds>-1&&c.setState({itemDraggedOutOfBounds:-1}),!1)},c.onEnd=function(v){v.cancelable&&v.preventDefault(),document.removeEventListener("mousemove",c.schdOnMouseMove),document.removeEventListener("touchmove",c.schdOnTouchMove),document.removeEventListener("mouseup",c.schdOnEnd),document.removeEventListener("touchup",c.schdOnEnd),document.removeEventListener("touchcancel",c.schdOnEnd);var y=c.props.removableByMove&&c.isDraggedItemOutOfBounds();!y&&c.props.transitionDuration>0&&c.afterIndex!==-2&&F.schd(function(){F.setItemTransition(c.ghostRef.current,c.props.transitionDuration,"cubic-bezier(.2,1,.1,1)"),c.afterIndex<1&&c.state.itemDragged===0?F.transformItem(c.ghostRef.current,0,0):F.transformItem(c.ghostRef.current,-(window.pageYOffset-c.lastYOffset)+-(c.listRef.current.scrollTop-c.lastListYOffset)+(c.state.itemDragged<c.afterIndex?c.itemTranslateOffsets.slice(c.state.itemDragged+1,c.afterIndex+1).reduce(function(E,j){return E+j},0):c.itemTranslateOffsets.slice(c.afterIndex<0?0:c.afterIndex,c.state.itemDragged).reduce(function(E,j){return E+j},0)*-1),0)})(),c.dropTimeout=window.setTimeout(c.finishDrop,y||c.afterIndex===-2?0:c.props.transitionDuration)},c.finishDrop=function(){var v=c.props.removableByMove&&c.isDraggedItemOutOfBounds();(v||c.afterIndex>-2&&c.state.itemDragged!==c.afterIndex)&&c.props.onChange({oldIndex:c.state.itemDragged,newIndex:v?-1:Math.max(c.afterIndex,0),targetRect:c.ghostRef.current.getBoundingClientRect()}),c.getChildren().forEach(function(y){F.setItemTransition(y,0),F.transformItem(y,null),y.style.touchAction=""}),c.setState({itemDragged:-1,scrollingSpeed:0}),c.afterIndex=-2,c.lastScroll>0&&(c.listRef.current.scrollTop=c.lastScroll,c.lastScroll=0)},c.onKeyDown=function(v){var y=c.state.selectedItem,E=c.getTargetIndex(v);if(!F.checkIfInteractive(v.target,v.currentTarget)&&E!==-1){if(v.key===" "&&(v.preventDefault(),y===E?(y!==c.needle&&(c.getChildren().forEach(function(U){F.setItemTransition(U,0),F.transformItem(U,null)}),c.props.onChange({oldIndex:y,newIndex:c.needle,targetRect:c.getChildren()[c.needle].getBoundingClientRect()}),c.getChildren()[c.needle].focus()),c.setState({selectedItem:-1,liveText:c.props.voiceover.dropped(y+1,c.needle+1)}),c.needle=-1):(c.setState({selectedItem:E,liveText:c.props.voiceover.lifted(E+1)}),c.needle=E,c.calculateOffsets())),(v.key==="ArrowDown"||v.key==="j")&&y>-1&&c.needle<c.props.values.length-1){v.preventDefault();var j=F.getTranslateOffset(c.getChildren()[y]);c.needle++,c.animateItems(c.needle,y,j,!0),c.setState({liveText:c.props.voiceover.moved(c.needle+1,!1)})}if((v.key==="ArrowUp"||v.key==="k")&&y>-1&&c.needle>0){v.preventDefault();var j=F.getTranslateOffset(c.getChildren()[y]);c.needle--,c.animateItems(c.needle,y,j,!0),c.setState({liveText:c.props.voiceover.moved(c.needle+1,!0)})}v.key==="Escape"&&y>-1&&(c.getChildren().forEach(function(U){F.setItemTransition(U,0),F.transformItem(U,null)}),c.setState({selectedItem:-1,liveText:c.props.voiceover.canceled(y+1)}),c.needle=-1),(v.key==="Tab"||v.key==="Enter")&&y>-1&&v.preventDefault()}},c.schdOnMouseMove=F.schd(c.onMouseMove),c.schdOnTouchMove=F.schd(c.onTouchMove),c.schdOnEnd=F.schd(c.onEnd),c}return k.prototype.componentDidMount=function(){this.calculateOffsets(),document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1,capture:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart)},k.prototype.componentDidUpdate=function(T,c){c.scrollingSpeed!==this.state.scrollingSpeed&&c.scrollingSpeed===0&&this.doScrolling()},k.prototype.componentWillUnmount=function(){document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mousedown",this.onMouseOrTouchStart)},k.prototype.render=function(){var T=this,c={userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",boxSizing:"border-box",position:"relative"},v=N(N({},c),{top:this.state.targetY,left:this.state.targetX,width:this.state.targetWidth,height:this.state.targetHeight,position:"fixed",marginTop:0});return f.createElement(f.Fragment,null,this.props.renderList({children:this.props.values.map(function(y,E){var j=E===T.state.itemDragged,U=E===T.state.selectedItem,Q=T.props.values[E]&&T.props.values[E].disabled,J={key:E,tabIndex:Q?-1:0,"aria-roledescription":T.props.voiceover.item(E+1),onKeyDown:T.onKeyDown,style:N(N({},c),{visibility:j?"hidden":void 0,zIndex:U?5e3:0})};return T.props.renderItem({value:y,props:J,index:E,isDragged:!1,isSelected:U,isOutOfBounds:!1})}),isDragged:this.state.itemDragged>-1,props:{ref:this.listRef}}),this.state.itemDragged>-1&&R.createPortal(this.props.renderItem({value:this.props.values[this.state.itemDragged],props:{ref:this.ghostRef,style:v,onWheel:this.onWheel},index:this.state.itemDragged,isDragged:!0,isSelected:!1,isOutOfBounds:this.state.itemDraggedOutOfBounds>-1}),this.props.container||document.body),f.createElement("div",{"aria-live":"assertive",role:"log","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0px",padding:"0px",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"}},this.state.liveText))},k.defaultProps={transitionDuration:300,lockVertically:!1,removableByMove:!1,voiceover:{item:function(T){return"You are currently at a draggable item at position "+T+". Press space bar to lift."},lifted:function(T){return"You have lifted item at position "+T+". Press j to move down, k to move up, space bar to drop and escape to cancel."},moved:function(T,c){return"You have moved the lifted item "+(c?"up":"down")+" to position "+T+". Press j to move down, k to move up, space bar to drop and escape to cancel."},dropped:function(T,c){return"You have dropped the item. It has moved from position "+T+" to "+c+"."},canceled:function(T){return"You have cancelled the movement. The item has returned to its starting position of "+T+"."}}},k})(f.Component);W.default=B},"../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/index.js"(Ee,W,X){var V=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(W,"__esModule",{value:!0}),W.arrayRemove=W.arrayMove=W.List=void 0;var N=V(X("../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/List.js"));W.List=N.default;var q=X("../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/utils.js");Object.defineProperty(W,"arrayMove",{enumerable:!0,get:function(){return q.arrayMove}}),Object.defineProperty(W,"arrayRemove",{enumerable:!0,get:function(){return q.arrayRemove}})},"../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/utils.js"(Ee,W){Object.defineProperty(W,"__esModule",{value:!0}),W.checkIfInteractive=W.schd=W.binarySearch=W.setItemTransition=W.isItemTransformed=W.transformItem=W.isTouchEvent=W.getTranslateOffset=W.arrayRemove=W.arrayMove=void 0;function X(I,B,b){return I=I.slice(),I.splice(b<0?I.length+b:b,0,I.splice(B,1)[0]),I}W.arrayMove=X;function V(I,B){return I=I.slice(),I.splice(B,1),I}W.arrayRemove=V;function N(I){var B=window.getComputedStyle(I);return Math.max(parseInt(B["margin-top"],10),parseInt(B["margin-bottom"],10))+I.getBoundingClientRect().height}W.getTranslateOffset=N;function q(I){return I.touches&&I.touches.length||I.changedTouches&&I.changedTouches.length}W.isTouchEvent=q;function D(I,B,b){if(B===void 0&&(B=0),b===void 0&&(b=0),!!I){if(B===null||b===null){I.style.removeProperty("transform");return}I.style.transform="translate("+b+"px, "+B+"px)"}}W.transformItem=D;function Z(I){return!!I.style.transform}W.isItemTransformed=Z;function f(I,B,b){I&&(I.style.transition="transform "+B+"ms"+(b?" "+b:""))}W.setItemTransition=f;function R(I,B){for(var b=0,k=I.length-1,T;b<=k;){if(T=Math.floor((k+b)/2),!I[T+1]||I[T]<=B&&I[T+1]>=B)return T;I[T]<B&&I[T+1]<B?b=T+1:k=T-1}return-1}W.binarySearch=R;var F=function(I){var B=[],b=null,k=function(){for(var T=[],c=0;c<arguments.length;c++)T[c]=arguments[c];B=T,!b&&(b=requestAnimationFrame(function(){b=null,I.apply(void 0,B)}))};return k};W.schd=F;function re(I,B){for(var b=["input","textarea","select","option","optgroup","video","audio","button","a"],k=["button","link","checkbox","tab"];I!==B;){if(I.getAttribute("data-movable-handle"))return!1;if(b.includes(I.tagName.toLowerCase()))return!0;var T=I.getAttribute("role");if(T&&k.includes(T.toLowerCase())||I.tagName.toLowerCase()==="label"&&I.hasAttribute("for"))return!0;I.tagName&&(I=I.parentElement)}return!1}W.checkIfInteractive=re},"../../node_modules/.pnpm/react-virtualized@9.22.6_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-virtualized/dist/es/index.js"(Ee,W,X){X.r(W),X.d(W,{ArrowKeyStepper:()=>y,AutoSizer:()=>ge,CellMeasurer:()=>tt,CellMeasurerCache:()=>ro,Collection:()=>De,Column:()=>ke,ColumnSizer:()=>ct,Grid:()=>he,InfiniteLoader:()=>je,List:()=>Ct,Masonry:()=>ur,MultiGrid:()=>mr,ScrollSync:()=>kt,SortDirection:()=>ce,SortIndicator:()=>Ze,Table:()=>Qe,WindowScroller:()=>Jt,accessibilityOverscanIndicesGetter:()=>Fe,createMasonryCellPositioner:()=>No,createTableMultiSort:()=>Sr,defaultCellRangeRenderer:()=>pt,defaultOverscanIndicesGetter:()=>ht,defaultTableCellDataGetter:()=>Et,defaultTableCellRenderer:()=>Gt,defaultTableHeaderRenderer:()=>Wt,defaultTableHeaderRowRenderer:()=>Dt,defaultTableRowRenderer:()=>Ht});var V=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),N=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/createClass.js"),q=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),D=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),Z=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inherits.js"),f=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),R=X("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js");function F(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function re(n){function r(t){var e=this.constructor.getDerivedStateFromProps(n,t);return e!=null?e:null}this.setState(r.bind(this))}function I(n,r){try{var t=this.props,e=this.state;this.props=n,this.state=r,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,e)}finally{this.props=t,this.state=e}}F.__suppressDeprecationWarning=!0,re.__suppressDeprecationWarning=!0,I.__suppressDeprecationWarning=!0;function B(n){var r=n.prototype;if(!r||!r.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function")return n;var t=null,e=null,o=null;if(typeof r.componentWillMount=="function"?t="componentWillMount":typeof r.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate=="function"?o="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),t!==null||e!==null||o!==null){var l=n.displayName||n.name,i=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
2
|
+
|
|
3
|
+
`+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
|
|
4
|
+
`+t:"")+(e!==null?`
|
|
5
|
+
`+e:"")+(o!==null?`
|
|
6
|
+
`+o:"")+`
|
|
7
|
+
|
|
8
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
9
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof n.getDerivedStateFromProps=="function"&&(r.componentWillMount=F,r.componentWillReceiveProps=re),typeof r.getSnapshotBeforeUpdate=="function"){if(typeof r.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");r.componentWillUpdate=I;var s=r.componentDidUpdate;r.componentDidUpdate=function(u,d,h){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;s.call(this,u,d,p)}}return n}function b(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function k(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?b(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function T(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,c()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function c(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(c=function(){return!!n})()}var v=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=T(this,r,[].concat(o)),(0,f.A)(t,"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),(0,f.A)(t,"_columnStartIndex",0),(0,f.A)(t,"_columnStopIndex",0),(0,f.A)(t,"_rowStartIndex",0),(0,f.A)(t,"_rowStopIndex",0),(0,f.A)(t,"_onKeyDown",function(i){var s=t.props,a=s.columnCount,u=s.disabled,d=s.mode,h=s.rowCount;if(!u){var p=t._getScrollState(),g=p.scrollToColumn,m=p.scrollToRow,S=t._getScrollState(),C=S.scrollToColumn,w=S.scrollToRow;switch(i.key){case"ArrowDown":w=Math.min(d==="cells"?w+1:t._rowStopIndex+1,h-1);break;case"ArrowLeft":C=Math.max(d==="cells"?C-1:t._columnStartIndex-1,0);break;case"ArrowRight":C=Math.min(d==="cells"?C+1:t._columnStopIndex+1,a-1);break;case"ArrowUp":w=Math.max(d==="cells"?w-1:t._rowStartIndex-1,0);break}(C!==g||w!==m)&&(i.preventDefault(),t._updateScrollState({scrollToColumn:C,scrollToRow:w}))}}),(0,f.A)(t,"_onSectionRendered",function(i){var s=i.columnStartIndex,a=i.columnStopIndex,u=i.rowStartIndex,d=i.rowStopIndex;t._columnStartIndex=s,t._columnStopIndex=a,t._rowStartIndex=u,t._rowStopIndex=d}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"setScrollIndexes",value:function(e){var o=e.scrollToColumn,l=e.scrollToRow;this.setState({scrollToRow:l,scrollToColumn:o})}},{key:"render",value:function(){var e=this.props,o=e.className,l=e.children,i=this._getScrollState(),s=i.scrollToColumn,a=i.scrollToRow;return R.createElement("div",{className:o,onKeyDown:this._onKeyDown},l({onSectionRendered:this._onSectionRendered,scrollToColumn:s,scrollToRow:a}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var o=e.scrollToColumn,l=e.scrollToRow,i=this.props,s=i.isControlled,a=i.onScrollToChange;typeof a=="function"&&a({scrollToColumn:o,scrollToRow:l}),s||this.setState({scrollToColumn:o,scrollToRow:l})}}],[{key:"getDerivedStateFromProps",value:function(e,o){return e.isControlled?{}:e.scrollToColumn!==o.instanceProps.prevScrollToColumn||e.scrollToRow!==o.instanceProps.prevScrollToRow?k(k({},o),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])})(R.PureComponent);(0,f.A)(v,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),B(v);const y=v;function E(n,r){var t;typeof r!="undefined"?t=r:typeof window!="undefined"?t=window:typeof self!="undefined"?t=self:t=X.g;var e=typeof t.document!="undefined"&&t.document.attachEvent;if(!e){var o=(function(){var z=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(_){return t.setTimeout(_,20)};return function(_){return z(_)}})(),l=(function(){var z=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(_){return z(_)}})(),i=function(_){var P=_.__resizeTriggers__,A=P.firstElementChild,M=P.lastElementChild,Y=A.firstElementChild;M.scrollLeft=M.scrollWidth,M.scrollTop=M.scrollHeight,Y.style.width=A.offsetWidth+1+"px",Y.style.height=A.offsetHeight+1+"px",A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight},s=function(_){return _.offsetWidth!=_.__resizeLast__.width||_.offsetHeight!=_.__resizeLast__.height},a=function(_){if(!(_.target.className&&typeof _.target.className.indexOf=="function"&&_.target.className.indexOf("contract-trigger")<0&&_.target.className.indexOf("expand-trigger")<0)){var P=this;i(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=o(function(){s(P)&&(P.__resizeLast__.width=P.offsetWidth,P.__resizeLast__.height=P.offsetHeight,P.__resizeListeners__.forEach(function(A){A.call(P,_)}))})}},u=!1,d="",h="animationstart",p="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m="";{var S=t.document.createElement("fakeelement");if(S.style.animationName!==void 0&&(u=!0),u===!1){for(var C=0;C<p.length;C++)if(S.style[p[C]+"AnimationName"]!==void 0){m=p[C],d="-"+m.toLowerCase()+"-",h=g[C],u=!0;break}}}var w="resizeanim",O="@"+d+"keyframes "+w+" { from { opacity: 0; } to { opacity: 0; } } ",x=d+"animation: 1ms "+w+"; "}var G=function(_){if(!_.getElementById("detectElementResize")){var P=(O||"")+".resize-triggers { "+(x||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',A=_.head||_.getElementsByTagName("head")[0],M=_.createElement("style");M.id="detectElementResize",M.type="text/css",n!=null&&M.setAttribute("nonce",n),M.styleSheet?M.styleSheet.cssText=P:M.appendChild(_.createTextNode(P)),A.appendChild(M)}},L=function(_,P){if(e)_.attachEvent("onresize",P);else{if(!_.__resizeTriggers__){var A=_.ownerDocument,M=t.getComputedStyle(_);M&&M.position=="static"&&(_.style.position="relative"),G(A),_.__resizeLast__={},_.__resizeListeners__=[],(_.__resizeTriggers__=A.createElement("div")).className="resize-triggers";var Y=A.createElement("div");Y.className="expand-trigger",Y.appendChild(A.createElement("div"));var $=A.createElement("div");$.className="contract-trigger",_.__resizeTriggers__.appendChild(Y),_.__resizeTriggers__.appendChild($),_.appendChild(_.__resizeTriggers__),i(_),_.addEventListener("scroll",a,!0),h&&(_.__resizeTriggers__.__animationListener__=function(se){se.animationName==w&&i(_)},_.__resizeTriggers__.addEventListener(h,_.__resizeTriggers__.__animationListener__))}_.__resizeListeners__.push(P)}},H=function(_,P){if(e)_.detachEvent("onresize",P);else if(_.__resizeListeners__.splice(_.__resizeListeners__.indexOf(P),1),!_.__resizeListeners__.length){_.removeEventListener("scroll",a,!0),_.__resizeTriggers__.__animationListener__&&(_.__resizeTriggers__.removeEventListener(h,_.__resizeTriggers__.__animationListener__),_.__resizeTriggers__.__animationListener__=null);try{_.__resizeTriggers__=!_.removeChild(_.__resizeTriggers__)}catch(A){}}};return{addResizeListener:L,removeResizeListener:H}}function j(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function U(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?j(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function Q(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,J()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function J(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(J=function(){return!!n})()}var ge=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=Q(this,r,[].concat(o)),(0,f.A)(t,"state",{height:t.props.defaultHeight||0,width:t.props.defaultWidth||0}),(0,f.A)(t,"_parentNode",void 0),(0,f.A)(t,"_autoSizer",void 0),(0,f.A)(t,"_window",void 0),(0,f.A)(t,"_detectElementResize",void 0),(0,f.A)(t,"_onResize",function(){var i=t.props,s=i.disableHeight,a=i.disableWidth,u=i.onResize;if(t._parentNode){var d=t._parentNode.offsetHeight||0,h=t._parentNode.offsetWidth||0,p=t._window||window,g=p.getComputedStyle(t._parentNode)||{},m=parseInt(g.paddingLeft,10)||0,S=parseInt(g.paddingRight,10)||0,C=parseInt(g.paddingTop,10)||0,w=parseInt(g.paddingBottom,10)||0,O=d-C-w,x=h-m-S;(!s&&t.state.height!==O||!a&&t.state.width!==x)&&(t.setState({height:d-C-w,width:h-m-S}),u({height:d,width:h}))}}),(0,f.A)(t,"_setRef",function(i){t._autoSizer=i}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=E(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,o=e.children,l=e.className,i=e.disableHeight,s=e.disableWidth,a=e.style,u=this.state,d=u.height,h=u.width,p={overflow:"visible"},g={};return i||(p.height=0,g.height=d),s||(p.width=0,g.width=h),R.createElement("div",{className:l,ref:this._setRef,style:U(U({},p),a)},o(g))}}])})(R.Component);(0,f.A)(ge,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});function eo(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,et()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function et(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(et=function(){return!!n})()}var tt=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=eo(this,r,[].concat(o)),(0,f.A)(t,"_child",R.createRef()),(0,f.A)(t,"_measure",function(){var i=t.props,s=i.cache,a=i.columnIndex,u=a===void 0?0:a,d=i.parent,h=i.rowIndex,p=h===void 0?t.props.index||0:h,g=t._getCellMeasurements(),m=g.height,S=g.width;(m!==s.getHeight(p,u)||S!==s.getWidth(p,u))&&(s.set(p,u,S,m),d&&typeof d.recomputeGridSize=="function"&&d.recomputeGridSize({columnIndex:u,rowIndex:p}))}),(0,f.A)(t,"_registerChild",function(i){i&&!(i instanceof Element)&&console.warn("CellMeasurer registerChild expects to be passed Element or null"),t._child.current=i,i&&t._maybeMeasureCell()}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,o=this.props.children,l=typeof o=="function"?o({measure:this._measure,registerChild:this._registerChild}):o;return l===null?l:(0,R.cloneElement)(l,{ref:function(s){typeof l.ref=="function"?l.ref(s):l.ref&&(l.ref.current=s),e._child.current=s}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,o=this._child.current;if(o&&o.ownerDocument&&o.ownerDocument.defaultView&&o instanceof o.ownerDocument.defaultView.HTMLElement){var l=o.style.width,i=o.style.height;e.hasFixedWidth()||(o.style.width="auto"),e.hasFixedHeight()||(o.style.height="auto");var s=Math.ceil(o.offsetHeight),a=Math.ceil(o.offsetWidth);return l&&(o.style.width=l),i&&(o.style.height=i),{height:s,width:a}}else return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,o=e.cache,l=e.columnIndex,i=l===void 0?0:l,s=e.parent,a=e.rowIndex,u=a===void 0?this.props.index||0:a;if(!o.has(u,i)){var d=this._getCellMeasurements(),h=d.height,p=d.width;o.set(u,i,p,h),s&&typeof s.invalidateCellSizeAfterRender=="function"&&s.invalidateCellSizeAfterRender({columnIndex:i,rowIndex:u})}}}])})(R.PureComponent);(0,f.A)(tt,"__internalCellMeasurerFlag",!1);var to=30,oo=100,ro=(function(){function n(){var r=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,V.A)(this,n),(0,f.A)(this,"_cellHeightCache",{}),(0,f.A)(this,"_cellWidthCache",{}),(0,f.A)(this,"_columnWidthCache",{}),(0,f.A)(this,"_rowHeightCache",{}),(0,f.A)(this,"_defaultHeight",void 0),(0,f.A)(this,"_defaultWidth",void 0),(0,f.A)(this,"_minHeight",void 0),(0,f.A)(this,"_minWidth",void 0),(0,f.A)(this,"_keyMapper",void 0),(0,f.A)(this,"_hasFixedHeight",void 0),(0,f.A)(this,"_hasFixedWidth",void 0),(0,f.A)(this,"_columnCount",0),(0,f.A)(this,"_rowCount",0),(0,f.A)(this,"columnWidth",function(d){var h=d.index,p=r._keyMapper(0,h);return r._columnWidthCache[p]!==void 0?r._columnWidthCache[p]:r._defaultWidth}),(0,f.A)(this,"rowHeight",function(d){var h=d.index,p=r._keyMapper(h,0);return r._rowHeightCache[p]!==void 0?r._rowHeightCache[p]:r._defaultHeight});var e=t.defaultHeight,o=t.defaultWidth,l=t.fixedHeight,i=t.fixedWidth,s=t.keyMapper,a=t.minHeight,u=t.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=i===!0,this._minHeight=a||0,this._minWidth=u||0,this._keyMapper=s||no,this._defaultHeight=Math.max(this._minHeight,typeof e=="number"?e:to),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:oo)}return(0,N.A)(n,[{key:"clear",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(t,e);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(t,e)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(t,e);return this._cellHeightCache[o]!==void 0?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(t,e);return this._cellWidthCache[o]!==void 0?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(t,e);return this._cellHeightCache[o]!==void 0}},{key:"set",value:function(t,e,o,l){var i=this._keyMapper(t,e);e>=this._columnCount&&(this._columnCount=e+1),t>=this._rowCount&&(this._rowCount=t+1),this._cellHeightCache[i]=l,this._cellWidthCache[i]=o,this._updateCachedColumnAndRowSizes(t,e)}},{key:"_updateCachedColumnAndRowSizes",value:function(t,e){if(!this._hasFixedWidth){for(var o=0,l=0;l<this._rowCount;l++)o=Math.max(o,this.getWidth(l,e));var i=this._keyMapper(0,e);this._columnWidthCache[i]=o}if(!this._hasFixedHeight){for(var s=0,a=0;a<this._columnCount;a++)s=Math.max(s,this.getHeight(t,a));var u=this._keyMapper(t,0);this._rowHeightCache[u]=s}}}])})();function no(n,r){return"".concat(n,"-").concat(r)}var zr;const Ar=null;function io(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var ie=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js");function ot(n){var r,t,e="";if(typeof n=="string"||typeof n=="number")e+=n;else if(typeof n=="object")if(Array.isArray(n))for(r=0;r<n.length;r++)n[r]&&(t=ot(n[r]))&&(e&&(e+=" "),e+=t);else for(r in n)n[r]&&(e&&(e+=" "),e+=r);return e}function lo(){for(var n,r,t=0,e="";t<arguments.length;)(n=arguments[t++])&&(r=ot(n))&&(e&&(e+=" "),e+=r);return e}const ne=lo;function me(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r={};return function(t){var e=t.callback,o=t.indices,l=Object.keys(o),i=!n||l.every(function(a){var u=o[a];return Array.isArray(u)?u.length>0:u>=0}),s=l.length!==Object.keys(r).length||l.some(function(a){var u=r[a],d=o[a];return Array.isArray(d)?u.join(",")!==d.join(","):u!==d});r=o,i&&s&&e(o)}}const so=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ze;function Ge(n){if((!ze&&ze!==0||n)&&so){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),ze=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return ze}function rt(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function nt(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?rt(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function ao(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,it()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function it(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(it=function(){return!!n})()}var co=150,ve={OBSERVED:"observed",REQUESTED:"requested"},Ae=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=ao(this,r,[].concat(o)),(0,f.A)(t,"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),(0,f.A)(t,"_calculateSizeAndPositionDataOnNextUpdate",!1),(0,f.A)(t,"_onSectionRenderedMemoizer",me()),(0,f.A)(t,"_onScrollMemoizer",me(!1)),(0,f.A)(t,"_invokeOnSectionRenderedHelper",function(){var i=t.props,s=i.cellLayoutManager,a=i.onSectionRendered;t._onSectionRenderedMemoizer({callback:a,indices:{indices:s.getLastRenderedIndices()}})}),(0,f.A)(t,"_setScrollingContainerRef",function(i){t._scrollingContainer=i}),(0,f.A)(t,"_updateScrollPositionForScrollToCell",function(){var i=t.props,s=i.cellLayoutManager,a=i.height,u=i.scrollToAlignment,d=i.scrollToCell,h=i.width,p=t.state,g=p.scrollLeft,m=p.scrollTop;if(d>=0){var S=s.getScrollPositionForCell({align:u,cellIndex:d,height:a,scrollLeft:g,scrollTop:m,width:h});(S.scrollLeft!==g||S.scrollTop!==m)&&t._setScrollPosition(S)}}),(0,f.A)(t,"_onScroll",function(i){if(i.target===t._scrollingContainer){t._enablePointerEventsAfterDelay();var s=t.props,a=s.cellLayoutManager,u=s.height,d=s.isScrollingChange,h=s.width,p=t._scrollbarSize,g=a.getTotalSize(),m=g.height,S=g.width,C=Math.max(0,Math.min(S-h+p,i.target.scrollLeft)),w=Math.max(0,Math.min(m-u+p,i.target.scrollTop));if(t.state.scrollLeft!==C||t.state.scrollTop!==w){var O=i.cancelable?ve.OBSERVED:ve.REQUESTED;t.state.isScrolling||d(!0),t.setState({isScrolling:!0,scrollLeft:C,scrollPositionChangeReason:O,scrollTop:w})}t._invokeOnScrollMemoizer({scrollLeft:C,scrollTop:w,totalWidth:S,totalHeight:m})}}),t._scrollbarSize=Ge(),t._scrollbarSize===void 0?(t._scrollbarSizeMeasured=!1,t._scrollbarSize=0):t._scrollbarSizeMeasured=!0,t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,o=e.cellLayoutManager,l=e.scrollLeft,i=e.scrollToCell,s=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Ge(),this._scrollbarSizeMeasured=!0,this.setState({})),i>=0?this._updateScrollPositionForScrollToCell():(l>=0||s>=0)&&this._setScrollPosition({scrollLeft:l,scrollTop:s}),this._invokeOnSectionRenderedHelper();var a=o.getTotalSize(),u=a.height,d=a.width;this._invokeOnScrollMemoizer({scrollLeft:l||0,scrollTop:s||0,totalHeight:u,totalWidth:d})}},{key:"componentDidUpdate",value:function(e,o){var l=this.props,i=l.height,s=l.scrollToAlignment,a=l.scrollToCell,u=l.width,d=this.state,h=d.scrollLeft,p=d.scrollPositionChangeReason,g=d.scrollTop;p===ve.REQUESTED&&(h>=0&&h!==o.scrollLeft&&h!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=h),g>=0&&g!==o.scrollTop&&g!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=g)),(i!==e.height||s!==e.scrollToAlignment||a!==e.scrollToCell||u!==e.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,o=e.autoHeight,l=e.cellCount,i=e.cellLayoutManager,s=e.className,a=e.height,u=e.horizontalOverscanSize,d=e.id,h=e.noContentRenderer,p=e.style,g=e.verticalOverscanSize,m=e.width,S=this.state,C=S.isScrolling,w=S.scrollLeft,O=S.scrollTop;(this._lastRenderedCellCount!==l||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=l,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var x=i.getTotalSize(),G=x.height,L=x.width,H=Math.max(0,w-u),z=Math.max(0,O-g),_=Math.min(L,w+m+u),P=Math.min(G,O+a+g),A=a>0&&m>0?i.cellRenderers({height:P-z,isScrolling:C,width:_-H,x:H,y:z}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:m,willChange:"transform"},Y=G>a?this._scrollbarSize:0,$=L>m?this._scrollbarSize:0;return M.overflowX=L+Y<=m?"hidden":"auto",M.overflowY=G+$<=a?"hidden":"auto",R.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ne("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:nt(nt({},M),p),tabIndex:0},l>0&&R.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:G,maxHeight:G,maxWidth:L,overflow:"hidden",pointerEvents:C?"none":"",width:L}},A),l===0&&h())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var o=e.props.isScrollingChange;o(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},co)}},{key:"_invokeOnScrollMemoizer",value:function(e){var o=this,l=e.scrollLeft,i=e.scrollTop,s=e.totalHeight,a=e.totalWidth;this._onScrollMemoizer({callback:function(d){var h=d.scrollLeft,p=d.scrollTop,g=o.props,m=g.height,S=g.onScroll,C=g.width;S({clientHeight:m,clientWidth:C,scrollHeight:s,scrollLeft:h,scrollTop:p,scrollWidth:a})},indices:{scrollLeft:l,scrollTop:i}})}},{key:"_setScrollPosition",value:function(e){var o=e.scrollLeft,l=e.scrollTop,i={scrollPositionChangeReason:ve.REQUESTED};o>=0&&(i.scrollLeft=o),l>=0&&(i.scrollTop=l),(o>=0&&o!==this.state.scrollLeft||l>=0&&l!==this.state.scrollTop)&&this.setState(i)}}],[{key:"getDerivedStateFromProps",value:function(e,o){return e.cellCount===0&&(o.scrollLeft!==0||o.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ve.REQUESTED}:e.scrollLeft!==o.scrollLeft||e.scrollTop!==o.scrollTop?{scrollLeft:e.scrollLeft!=null?e.scrollLeft:o.scrollLeft,scrollTop:e.scrollTop!=null?e.scrollTop:o.scrollTop,scrollPositionChangeReason:ve.REQUESTED}:null}}])})(R.PureComponent);(0,f.A)(Ae,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),Ae.propTypes={},B(Ae);const uo=Ae;var ho=(function(){function n(r){var t=r.height,e=r.width,o=r.x,l=r.y;(0,V.A)(this,n),this.height=t,this.width=e,this.x=o,this.y=l,this._indexMap={},this._indices=[]}return(0,N.A)(n,[{key:"addCellIndex",value:function(t){var e=t.index;this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}])})(),fo=100,po=(function(){function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fo;(0,V.A)(this,n),this._sectionSize=r,this._cellMetadata=[],this._sections={}}return(0,N.A)(n,[{key:"getCellIndices",value:function(t){var e=t.height,o=t.width,l=t.x,i=t.y,s={};return this.getSections({height:e,width:o,x:l,y:i}).forEach(function(a){return a.getCellIndices().forEach(function(u){s[u]=u})}),Object.keys(s).map(function(a){return s[a]})}},{key:"getCellMetadata",value:function(t){var e=t.index;return this._cellMetadata[e]}},{key:"getSections",value:function(t){for(var e=t.height,o=t.width,l=t.x,i=t.y,s=Math.floor(l/this._sectionSize),a=Math.floor((l+o-1)/this._sectionSize),u=Math.floor(i/this._sectionSize),d=Math.floor((i+e-1)/this._sectionSize),h=[],p=s;p<=a;p++)for(var g=u;g<=d;g++){var m="".concat(p,".").concat(g);this._sections[m]||(this._sections[m]=new ho({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:g*this._sectionSize})),h.push(this._sections[m])}return h}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var t=this;return Object.keys(this._sections).map(function(e){return t._sections[e].toString()})}},{key:"registerCell",value:function(t){var e=t.cellMetadatum,o=t.index;this._cellMetadata[o]=e,this.getSections(e).forEach(function(l){return l.addCellIndex({index:o})})}}])})();function go(n){for(var r=n.cellCount,t=n.cellSizeAndPositionGetter,e=n.sectionSize,o=[],l=new po(e),i=0,s=0,a=0;a<r;a++){var u=t({index:a});if(u.height==null||isNaN(u.height)||u.width==null||isNaN(u.width)||u.x==null||isNaN(u.x)||u.y==null||isNaN(u.y))throw Error("Invalid metadata returned for cell ".concat(a,`:
|
|
10
|
+
x:`).concat(u.x,", y:").concat(u.y,", width:").concat(u.width,", height:").concat(u.height));i=Math.max(i,u.y+u.height),s=Math.max(s,u.x+u.width),o[a]=u,l.registerCell({cellMetadatum:u,index:a})}return{cellMetadata:o,height:i,sectionManager:l,width:s}}function lt(n){var r=n.align,t=r===void 0?"auto":r,e=n.cellOffset,o=n.cellSize,l=n.containerSize,i=n.currentOffset,s=e,a=s-l+o;switch(t){case"start":return s;case"end":return a;case"center":return s-(l-o)/2;default:return Math.max(a,Math.min(s,i))}}function mo(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,st()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function st(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(st=function(){return!!n})()}var De=(function(n){function r(t,e){var o;return(0,V.A)(this,r),o=mo(this,r,[t,e]),o._cellMetadata=[],o._lastRenderedCellIndices=[],o._cellCache=[],o._isScrollingChange=o._isScrollingChange.bind(o),o._setCollectionViewRef=o._setCollectionViewRef.bind(o),o}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,ie.A)({},(io(this.props),this.props));return R.createElement(uo,(0,ie.A)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,o=e.cellCount,l=e.cellSizeAndPositionGetter,i=e.sectionSize,s=go({cellCount:o,cellSizeAndPositionGetter:l,sectionSize:i});this._cellMetadata=s.cellMetadata,this._sectionManager=s.sectionManager,this._height=s.height,this._width=s.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var o=e.align,l=e.cellIndex,i=e.height,s=e.scrollLeft,a=e.scrollTop,u=e.width,d=this.props.cellCount;if(l>=0&&l<d){var h=this._cellMetadata[l];s=lt({align:o,cellOffset:h.x,cellSize:h.width,containerSize:u,currentOffset:s,targetIndex:l}),a=lt({align:o,cellOffset:h.y,cellSize:h.height,containerSize:i,currentOffset:a,targetIndex:l})}return{scrollLeft:s,scrollTop:a}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var o=this,l=e.height,i=e.isScrolling,s=e.width,a=e.x,u=e.y,d=this.props,h=d.cellGroupRenderer,p=d.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:l,width:s,x:a,y:u}),h({cellCache:this._cellCache,cellRenderer:p,cellSizeAndPositionGetter:function(m){var S=m.index;return o._sectionManager.getCellMetadata({index:S})},indices:this._lastRenderedCellIndices,isScrolling:i})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])})(R.PureComponent);(0,f.A)(De,"defaultProps",{"aria-label":"grid",cellGroupRenderer:vo}),De.propTypes={};function vo(n){var r=n.cellCache,t=n.cellRenderer,e=n.cellSizeAndPositionGetter,o=n.indices,l=n.isScrolling;return o.map(function(i){var s=e({index:i}),a={index:i,isScrolling:l,key:i,style:{height:s.height,left:s.x,position:"absolute",top:s.y,width:s.width}};return l?(i in r||(r[i]=t(a)),r[i]):t(a)}).filter(function(i){return!!i})}var Or;const Mr=null;function So(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,at()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function at(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(at=function(){return!!n})()}var ct=(function(n){function r(t,e){var o;return(0,V.A)(this,r),o=So(this,r,[t,e]),o._registerChild=o._registerChild.bind(o),o}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"componentDidUpdate",value:function(e){var o=this.props,l=o.columnMaxWidth,i=o.columnMinWidth,s=o.columnCount,a=o.width;(l!==e.columnMaxWidth||i!==e.columnMinWidth||s!==e.columnCount||a!==e.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,o=e.children,l=e.columnMaxWidth,i=e.columnMinWidth,s=e.columnCount,a=e.width,u=i||1,d=l?Math.min(l,a):a,h=a/s;h=Math.max(u,h),h=Math.min(d,h),h=Math.floor(h);var p=Math.min(a,h*s);return o({adjustedWidth:p,columnWidth:h,getColumnWidth:function(){return h},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&typeof e.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])})(R.PureComponent);ct.propTypes={};var Lr;const Pr=null;var _o=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/typeof.js");function ut(n){var r=n.cellCount,t=n.cellSize,e=n.computeMetadataCallback,o=n.computeMetadataCallbackProps,l=n.nextCellsCount,i=n.nextCellSize,s=n.nextScrollToIndex,a=n.scrollToIndex,u=n.updateScrollOffsetForScrollToIndex;(r!==l||(typeof t=="number"||typeof i=="number")&&t!==i)&&(e(o),a>=0&&a===s&&u())}var Re=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),Co=(function(){function n(r){var t=r.cellCount,e=r.cellSizeGetter,o=r.estimatedCellSize;(0,V.A)(this,n),(0,f.A)(this,"_cellSizeAndPositionData",{}),(0,f.A)(this,"_lastMeasuredIndex",-1),(0,f.A)(this,"_lastBatchedIndex",-1),(0,f.A)(this,"_cellCount",void 0),(0,f.A)(this,"_cellSizeGetter",void 0),(0,f.A)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=e,this._cellCount=t,this._estimatedCellSize=o}return(0,N.A)(n,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(t){var e=t.cellCount,o=t.estimatedCellSize,l=t.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=o,this._cellSizeGetter=l}},{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(t){if(t<0||t>=this._cellCount)throw Error("Requested index ".concat(t," is outside of range 0..").concat(this._cellCount));if(t>this._lastMeasuredIndex)for(var e=this.getSizeAndPositionOfLastMeasuredCell(),o=e.offset+e.size,l=this._lastMeasuredIndex+1;l<=t;l++){var i=this._cellSizeGetter({index:l});if(i===void 0||isNaN(i))throw Error("Invalid size returned for cell ".concat(l," of value ").concat(i));i===null?(this._cellSizeAndPositionData[l]={offset:o,size:0},this._lastBatchedIndex=t):(this._cellSizeAndPositionData[l]={offset:o,size:i},o+=i,this._lastMeasuredIndex=t)}return this._cellSizeAndPositionData[t]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var t=this.getSizeAndPositionOfLastMeasuredCell(),e=t.offset+t.size,o=this._cellCount-this._lastMeasuredIndex-1,l=o*this._estimatedCellSize;return e+l}},{key:"getUpdatedOffsetForIndex",value:function(t){var e=t.align,o=e===void 0?"auto":e,l=t.containerSize,i=t.currentOffset,s=t.targetIndex;if(l<=0)return 0;var a=this.getSizeAndPositionOfCell(s),u=a.offset,d=u-l+a.size,h;switch(o){case"start":h=u;break;case"end":h=d;break;case"center":h=u-(l-a.size)/2;break;default:h=Math.max(d,Math.min(u,i));break}var p=this.getTotalSize();return Math.max(0,Math.min(p-l,h))}},{key:"getVisibleCellRange",value:function(t){var e=t.containerSize,o=t.offset,l=this.getTotalSize();if(l===0)return{};var i=o+e,s=this._findNearestCell(o),a=this.getSizeAndPositionOfCell(s);o=a.offset+a.size;for(var u=s;o<i&&u<this._cellCount-1;)u++,o+=this.getSizeAndPositionOfCell(u).size;return{start:s,stop:u}}},{key:"resetCell",value:function(t){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,t-1)}},{key:"_binarySearch",value:function(t,e,o){for(;e<=t;){var l=e+Math.floor((t-e)/2),i=this.getSizeAndPositionOfCell(l).offset;if(i===o)return l;i<o?e=l+1:i>o&&(t=l-1)}return e>0?e-1:0}},{key:"_exponentialSearch",value:function(t,e){for(var o=1;t<this._cellCount&&this.getSizeAndPositionOfCell(t).offset<e;)t+=o,o*=2;return this._binarySearch(Math.min(t,this._cellCount-1),Math.floor(t/2),e)}},{key:"_findNearestCell",value:function(t){if(isNaN(t))throw Error("Invalid offset ".concat(t," specified"));t=Math.max(0,t);var e=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return e.offset>=t?this._binarySearch(o,0,t):this._exponentialSearch(o,t)}}])})(),wo=15e5,yo=16777100,Ro=function(){return typeof window!="undefined"},To=function(){return!!window.chrome},Io=function(){return Ro()&&To()?yo:wo},bo=["maxScrollSize"],dt=(function(){function n(r){var t=r.maxScrollSize,e=t===void 0?Io():t,o=(0,Re.A)(r,bo);(0,V.A)(this,n),(0,f.A)(this,"_cellSizeAndPositionManager",void 0),(0,f.A)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Co(o),this._maxScrollSize=e}return(0,N.A)(n,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(t){this._cellSizeAndPositionManager.configure(t)}},{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(t){var e=t.containerSize,o=t.offset,l=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:e,offset:o,totalSize:i});return Math.round(s*(i-l))}},{key:"getSizeAndPositionOfCell",value:function(t){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(t)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(t){var e=t.align,o=e===void 0?"auto":e,l=t.containerSize,i=t.currentOffset,s=t.targetIndex;i=this._safeOffsetToOffset({containerSize:l,offset:i});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:l,currentOffset:i,targetIndex:s});return this._offsetToSafeOffset({containerSize:l,offset:a})}},{key:"getVisibleCellRange",value:function(t){var e=t.containerSize,o=t.offset;return o=this._safeOffsetToOffset({containerSize:e,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:e,offset:o})}},{key:"resetCell",value:function(t){this._cellSizeAndPositionManager.resetCell(t)}},{key:"_getOffsetPercentage",value:function(t){var e=t.containerSize,o=t.offset,l=t.totalSize;return l<=e?0:o/(l-e)}},{key:"_offsetToSafeOffset",value:function(t){var e=t.containerSize,o=t.offset,l=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(l===i)return o;var s=this._getOffsetPercentage({containerSize:e,offset:o,totalSize:l});return Math.round(s*(i-e))}},{key:"_safeOffsetToOffset",value:function(t){var e=t.containerSize,o=t.offset,l=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(l===i)return o;var s=this._getOffsetPercentage({containerSize:e,offset:o,totalSize:i});return Math.round(s*(l-e))}}])})(),Oe=-1,ae=1,kr="horizontal",Er="vertical";function ht(n){var r=n.cellCount,t=n.overscanCellsCount,e=n.scrollDirection,o=n.startIndex,l=n.stopIndex;return e===ae?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(r-1,l+t)}:{overscanStartIndex:Math.max(0,o-t),overscanStopIndex:Math.min(r-1,l)}}function ft(n){var r=n.cellSize,t=n.cellSizeAndPositionManager,e=n.previousCellsCount,o=n.previousCellSize,l=n.previousScrollToAlignment,i=n.previousScrollToIndex,s=n.previousSize,a=n.scrollOffset,u=n.scrollToAlignment,d=n.scrollToIndex,h=n.size,p=n.sizeJustIncreasedFromZero,g=n.updateScrollIndexCallback,m=t.getCellCount(),S=d>=0&&d<m,C=h!==s||p||!o||typeof r=="number"&&r!==o;S&&(C||u!==l||d!==i)?g(d):!S&&m>0&&(h<s||m<e)&&a>t.getTotalSize()-h&&g(m-1)}function pt(n){for(var r=n.cellCache,t=n.cellRenderer,e=n.columnSizeAndPositionManager,o=n.columnStartIndex,l=n.columnStopIndex,i=n.deferredMeasurementCache,s=n.horizontalOffsetAdjustment,a=n.isScrolling,u=n.isScrollingOptOut,d=n.parent,h=n.rowSizeAndPositionManager,p=n.rowStartIndex,g=n.rowStopIndex,m=n.styleCache,S=n.verticalOffsetAdjustment,C=n.visibleColumnIndices,w=n.visibleRowIndices,O=[],x=e.areOffsetsAdjusted()||h.areOffsetsAdjusted(),G=!a&&!x,L=p;L<=g;L++)for(var H=h.getSizeAndPositionOfCell(L),z=o;z<=l;z++){var _=e.getSizeAndPositionOfCell(z),P=z>=C.start&&z<=C.stop&&L>=w.start&&L<=w.stop,A="".concat(L,"-").concat(z),M=void 0;G&&m[A]?M=m[A]:i&&!i.has(L,z)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:H.size,left:_.offset+s,position:"absolute",top:H.offset+S,width:_.size},m[A]=M);var Y={columnIndex:z,isScrolling:a,isVisible:P,key:A,parent:d,rowIndex:L,style:M},$=void 0;(u||a)&&!s&&!S?(r[A]||(r[A]=t(Y)),$=r[A]):$=t(Y),!($==null||$===!1)&&($.props.role||($=R.cloneElement($,{role:"gridcell"})),O.push($))}return O}function Gr(n,r){}var te;typeof window!="undefined"?te=window:typeof self!="undefined"?te=self:te={};var xo=te.requestAnimationFrame||te.webkitRequestAnimationFrame||te.mozRequestAnimationFrame||te.oRequestAnimationFrame||te.msRequestAnimationFrame||function(n){return te.setTimeout(n,1e3/60)},zo=te.cancelAnimationFrame||te.webkitCancelAnimationFrame||te.mozCancelAnimationFrame||te.oCancelAnimationFrame||te.msCancelAnimationFrame||function(n){te.clearTimeout(n)},gt=xo,Ao=zo,Se=function(r){return Ao(r.id)},We=function(r,t){var e;Promise.resolve().then(function(){e=Date.now()});var o=function(){Date.now()-e>=t?r.call():l.id=gt(o)},l={id:gt(o)};return l};function mt(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function oe(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?mt(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):mt(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function Oo(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,vt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function vt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(vt=function(){return!!n})()}var Mo=150,He={OBSERVED:"observed",REQUESTED:"requested"},Lo=function(){return null},Ne=(function(n){function r(t){var e;(0,V.A)(this,r),e=Oo(this,r,[t]),(0,f.A)(e,"_onGridRenderedMemoizer",me()),(0,f.A)(e,"_onScrollMemoizer",me(!1)),(0,f.A)(e,"_deferredInvalidateColumnIndex",null),(0,f.A)(e,"_deferredInvalidateRowIndex",null),(0,f.A)(e,"_recomputeScrollLeftFlag",!1),(0,f.A)(e,"_recomputeScrollTopFlag",!1),(0,f.A)(e,"_horizontalScrollBarSize",0),(0,f.A)(e,"_verticalScrollBarSize",0),(0,f.A)(e,"_scrollbarPresenceChanged",!1),(0,f.A)(e,"_scrollingContainer",void 0),(0,f.A)(e,"_childrenToDisplay",void 0),(0,f.A)(e,"_columnStartIndex",void 0),(0,f.A)(e,"_columnStopIndex",void 0),(0,f.A)(e,"_rowStartIndex",void 0),(0,f.A)(e,"_rowStopIndex",void 0),(0,f.A)(e,"_renderedColumnStartIndex",0),(0,f.A)(e,"_renderedColumnStopIndex",0),(0,f.A)(e,"_renderedRowStartIndex",0),(0,f.A)(e,"_renderedRowStopIndex",0),(0,f.A)(e,"_initialScrollTop",void 0),(0,f.A)(e,"_initialScrollLeft",void 0),(0,f.A)(e,"_disablePointerEventsTimeoutId",void 0),(0,f.A)(e,"_styleCache",{}),(0,f.A)(e,"_cellCache",{}),(0,f.A)(e,"_debounceScrollEndedCallback",function(){e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1,needToResetStyleCache:!1})}),(0,f.A)(e,"_invokeOnGridRenderedHelper",function(){var i=e.props.onSectionRendered;e._onGridRenderedMemoizer({callback:i,indices:{columnOverscanStartIndex:e._columnStartIndex,columnOverscanStopIndex:e._columnStopIndex,columnStartIndex:e._renderedColumnStartIndex,columnStopIndex:e._renderedColumnStopIndex,rowOverscanStartIndex:e._rowStartIndex,rowOverscanStopIndex:e._rowStopIndex,rowStartIndex:e._renderedRowStartIndex,rowStopIndex:e._renderedRowStopIndex}})}),(0,f.A)(e,"_setScrollingContainerRef",function(i){e._scrollingContainer=i,typeof e.props.elementRef=="function"?e.props.elementRef(i):(0,_o.A)(e.props.elementRef)==="object"&&(e.props.elementRef.current=i)}),(0,f.A)(e,"_onScroll",function(i){i.target===e._scrollingContainer&&e.handleScrollEvent(i.target)});var o=new dt({cellCount:t.columnCount,cellSizeGetter:function(s){return r._wrapSizeGetter(t.columnWidth)(s)},estimatedCellSize:r._getEstimatedColumnSize(t)}),l=new dt({cellCount:t.rowCount,cellSizeGetter:function(s){return r._wrapSizeGetter(t.rowHeight)(s)},estimatedCellSize:r._getEstimatedRowSize(t)});return e.state={instanceProps:{columnSizeAndPositionManager:o,rowSizeAndPositionManager:l,prevColumnWidth:t.columnWidth,prevRowHeight:t.rowHeight,prevColumnCount:t.columnCount,prevRowCount:t.rowCount,prevIsScrolling:t.isScrolling===!0,prevScrollToColumn:t.scrollToColumn,prevScrollToRow:t.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:ae,scrollDirectionVertical:ae,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},t.scrollToRow>0&&(e._initialScrollTop=e._getCalculatedScrollTop(t,e.state)),t.scrollToColumn>0&&(e._initialScrollLeft=e._getCalculatedScrollLeft(t,e.state)),e}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.alignment,l=o===void 0?this.props.scrollToAlignment:o,i=e.columnIndex,s=i===void 0?this.props.scrollToColumn:i,a=e.rowIndex,u=a===void 0?this.props.scrollToRow:a,d=oe(oe({},this.props),{},{scrollToAlignment:l,scrollToColumn:s,scrollToRow:u});return{scrollLeft:this._getCalculatedScrollLeft(d),scrollTop:this._getCalculatedScrollTop(d)}}},{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 o=e.scrollLeft,l=o===void 0?0:o,i=e.scrollTop,s=i===void 0?0:i;if(!(s<0)){this._debounceScrollEnded();var a=this.props,u=a.autoHeight,d=a.autoWidth,h=a.height,p=a.width,g=this.state.instanceProps,m=g.scrollbarSize,S=g.rowSizeAndPositionManager.getTotalSize(),C=g.columnSizeAndPositionManager.getTotalSize(),w=Math.min(Math.max(0,C-p+m),l),O=Math.min(Math.max(0,S-h+m),s);if(this.state.scrollLeft!==w||this.state.scrollTop!==O){var x=w!==this.state.scrollLeft?w>this.state.scrollLeft?ae:Oe:this.state.scrollDirectionHorizontal,G=O!==this.state.scrollTop?O>this.state.scrollTop?ae:Oe:this.state.scrollDirectionVertical,L={isScrolling:!0,scrollDirectionHorizontal:x,scrollDirectionVertical:G,scrollPositionChangeReason:He.OBSERVED};u||(L.scrollTop=O),d||(L.scrollLeft=w),L.needToResetStyleCache=!1,this.setState(L)}this._invokeOnScrollMemoizer({scrollLeft:w,scrollTop:O,totalColumnsWidth:C,totalRowsHeight:S})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var o=e.columnIndex,l=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){var e=this.props,o=e.columnCount,l=e.rowCount,i=this.state.instanceProps;i.columnSizeAndPositionManager.getSizeAndPositionOfCell(o-1),i.rowSizeAndPositionManager.getSizeAndPositionOfCell(l-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.columnIndex,l=o===void 0?0:o,i=e.rowIndex,s=i===void 0?0:i,a=this.props,u=a.scrollToColumn,d=a.scrollToRow,h=this.state.instanceProps;h.columnSizeAndPositionManager.resetCell(l),h.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=u>=0&&(this.state.scrollDirectionHorizontal===ae?l<=u:l>=u),this._recomputeScrollTopFlag=d>=0&&(this.state.scrollDirectionVertical===ae?s<=d:s>=d),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var o=e.columnIndex,l=e.rowIndex,i=this.props.columnCount,s=this.props;i>1&&o!==void 0&&this._updateScrollLeftForScrollToColumn(oe(oe({},s),{},{scrollToColumn:o})),l!==void 0&&this._updateScrollTopForScrollToRow(oe(oe({},s),{},{scrollToRow:l}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,l=e.height,i=e.scrollLeft,s=e.scrollToColumn,a=e.scrollTop,u=e.scrollToRow,d=e.width,h=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),h.scrollbarSizeMeasured||this.setState(function(m){var S=oe(oe({},m),{},{needToResetStyleCache:!1});return S.instanceProps.scrollbarSize=o(),S.instanceProps.scrollbarSizeMeasured=!0,S}),typeof i=="number"&&i>=0||typeof a=="number"&&a>=0){var p=r._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:a});p&&(p.needToResetStyleCache=!1,this.setState(p))}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 g=l>0&&d>0;s>=0&&g&&this._updateScrollLeftForScrollToColumn(),u>=0&&g&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:a||0,totalColumnsWidth:h.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:h.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,o){var l=this,i=this.props,s=i.autoHeight,a=i.autoWidth,u=i.columnCount,d=i.height,h=i.rowCount,p=i.scrollToAlignment,g=i.scrollToColumn,m=i.scrollToRow,S=i.width,C=this.state,w=C.scrollLeft,O=C.scrollPositionChangeReason,x=C.scrollTop,G=C.instanceProps;this._handleInvalidatedGridSize();var L=u>0&&e.columnCount===0||h>0&&e.rowCount===0;O===He.REQUESTED&&(!a&&w>=0&&(w!==this._scrollingContainer.scrollLeft||L)&&(this._scrollingContainer.scrollLeft=w),!s&&x>=0&&(x!==this._scrollingContainer.scrollTop||L)&&(this._scrollingContainer.scrollTop=x));var H=(e.width===0||e.height===0)&&d>0&&S>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):ft({cellSizeAndPositionManager:G.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:w,scrollToAlignment:p,scrollToIndex:g,size:S,sizeJustIncreasedFromZero:H,updateScrollIndexCallback:function(){return l._updateScrollLeftForScrollToColumn(l.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):ft({cellSizeAndPositionManager:G.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:x,scrollToAlignment:p,scrollToIndex:m,size:d,sizeJustIncreasedFromZero:H,updateScrollIndexCallback:function(){return l._updateScrollTopForScrollToRow(l.props)}}),this._invokeOnGridRenderedHelper(),w!==o.scrollLeft||x!==o.scrollTop){var z=G.rowSizeAndPositionManager.getTotalSize(),_=G.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:w,scrollTop:x,totalColumnsWidth:_,totalRowsHeight:z})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Se(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,o=e.autoContainerWidth,l=e.autoHeight,i=e.autoWidth,s=e.className,a=e.containerProps,u=e.containerRole,d=e.containerStyle,h=e.height,p=e.id,g=e.noContentRenderer,m=e.role,S=e.style,C=e.tabIndex,w=e.width,O=this.state,x=O.instanceProps,G=O.needToResetStyleCache,L=this._isScrolling(),H={boxSizing:"border-box",direction:"ltr",height:l?"auto":h,position:"relative",width:i?"auto":w,WebkitOverflowScrolling:"touch",willChange:"transform"};G&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var z=x.columnSizeAndPositionManager.getTotalSize(),_=x.rowSizeAndPositionManager.getTotalSize(),P=_>h?x.scrollbarSize:0,A=z>w?x.scrollbarSize:0;(A!==this._horizontalScrollBarSize||P!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=A,this._verticalScrollBarSize=P,this._scrollbarPresenceChanged=!0),H.overflowX=z+P<=w?"hidden":"auto",H.overflowY=_+A<=h?"hidden":"auto";var M=this._childrenToDisplay,Y=M.length===0&&h>0&&w>0;return R.createElement("div",(0,ie.A)({ref:this._setScrollingContainerRef},a,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:ne("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:m,style:oe(oe({},H),S),tabIndex:C}),M.length>0&&R.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:u,style:oe({width:o?"auto":z,height:_,maxWidth:z,maxHeight:_,overflow:"hidden",pointerEvents:L?"none":"",position:"relative"},d)},M),Y&&g())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,l=e.cellRenderer,i=e.cellRangeRenderer,s=e.columnCount,a=e.deferredMeasurementCache,u=e.height,d=e.overscanColumnCount,h=e.overscanIndicesGetter,p=e.overscanRowCount,g=e.rowCount,m=e.width,S=e.isScrollingOptOut,C=o.scrollDirectionHorizontal,w=o.scrollDirectionVertical,O=o.instanceProps,x=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,G=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,L=this._isScrolling(e,o);if(this._childrenToDisplay=[],u>0&&m>0){var H=O.columnSizeAndPositionManager.getVisibleCellRange({containerSize:m,offset:G}),z=O.rowSizeAndPositionManager.getVisibleCellRange({containerSize:u,offset:x}),_=O.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:m,offset:G}),P=O.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:u,offset:x});this._renderedColumnStartIndex=H.start,this._renderedColumnStopIndex=H.stop,this._renderedRowStartIndex=z.start,this._renderedRowStopIndex=z.stop;var A=h({direction:"horizontal",cellCount:s,overscanCellsCount:d,scrollDirection:C,startIndex:typeof H.start=="number"?H.start:0,stopIndex:typeof H.stop=="number"?H.stop:-1}),M=h({direction:"vertical",cellCount:g,overscanCellsCount:p,scrollDirection:w,startIndex:typeof z.start=="number"?z.start:0,stopIndex:typeof z.stop=="number"?z.stop:-1}),Y=A.overscanStartIndex,$=A.overscanStopIndex,ee=M.overscanStartIndex,se=M.overscanStopIndex;if(a){if(!a.hasFixedHeight()){for(var de=ee;de<=se;de++)if(!a.has(de,0)){Y=0,$=s-1;break}}if(!a.hasFixedWidth()){for(var xe=Y;xe<=$;xe++)if(!a.has(0,xe)){ee=0,se=g-1;break}}}this._childrenToDisplay=i({cellCache:this._cellCache,cellRenderer:l,columnSizeAndPositionManager:O.columnSizeAndPositionManager,columnStartIndex:Y,columnStopIndex:$,deferredMeasurementCache:a,horizontalOffsetAdjustment:_,isScrolling:L,isScrollingOptOut:S,parent:this,rowSizeAndPositionManager:O.rowSizeAndPositionManager,rowStartIndex:ee,rowStopIndex:se,scrollLeft:G,scrollTop:x,styleCache:this._styleCache,verticalOffsetAdjustment:P,visibleColumnIndices:H,visibleRowIndices:z}),this._columnStartIndex=Y,this._columnStopIndex=$,this._rowStartIndex=ee,this._rowStopIndex=se}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Se(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=We(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var e=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var o=this,l=e.scrollLeft,i=e.scrollTop,s=e.totalColumnsWidth,a=e.totalRowsHeight;this._onScrollMemoizer({callback:function(d){var h=d.scrollLeft,p=d.scrollTop,g=o.props,m=g.height,S=g.onScroll,C=g.width;S({clientHeight:m,clientWidth:C,scrollHeight:a,scrollLeft:h,scrollTop:p,scrollWidth:s})},indices:{scrollLeft:l,scrollTop:i}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!o.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,l=e.scrollTop,i=r._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:l});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return r._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,l=r._getScrollLeftForScrollToColumnStateUpdate(e,o);l&&(l.needToResetStyleCache=!1,this.setState(l))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return r._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,o=this._cellCache,l=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var i=this._rowStartIndex;i<=this._rowStopIndex;i++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var a="".concat(i,"-").concat(s);this._styleCache[a]=e[a],l&&(this._cellCache[a]=o[a])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,l=r._getScrollTopForScrollToRowStateUpdate(e,o);l&&(l.needToResetStyleCache=!1,this.setState(l))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var l={};e.columnCount===0&&o.scrollLeft!==0||e.rowCount===0&&o.scrollTop!==0?(l.scrollLeft=0,l.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(l,r._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i=o.instanceProps;l.needToResetStyleCache=!1,(e.columnWidth!==i.prevColumnWidth||e.rowHeight!==i.prevRowHeight)&&(l.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:r._getEstimatedColumnSize(e),cellSizeGetter:r._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:r._getEstimatedRowSize(e),cellSizeGetter:r._wrapSizeGetter(e.rowHeight)}),(i.prevColumnCount===0||i.prevRowCount===0)&&(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&e.isScrolling===!1&&i.prevIsScrolling===!0&&Object.assign(l,{isScrolling:!1});var s,a;return ut({cellCount:i.prevColumnCount,cellSize:typeof i.prevColumnWidth=="number"?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=r._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),ut({cellCount:i.prevRowCount,cellSize:typeof i.prevRowHeight=="number"?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){a=r._getScrollTopForScrollToRowStateUpdate(e,o)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=e.isScrolling===!0,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),i.scrollbarSize===void 0?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,l.instanceProps=i,oe(oe(oe({},l),s),a)}},{key:"_getEstimatedColumnSize",value:function(e){return typeof e.columnWidth=="number"?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return typeof e.rowHeight=="number"?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var o=e.prevState,l=e.scrollLeft,i=e.scrollTop,s={scrollPositionChangeReason:He.REQUESTED};return typeof l=="number"&&l>=0&&(s.scrollDirectionHorizontal=l>o.scrollLeft?ae:Oe,s.scrollLeft=l),typeof i=="number"&&i>=0&&(s.scrollDirectionVertical=i>o.scrollTop?ae:Oe,s.scrollTop=i),typeof l=="number"&&l>=0&&l!==o.scrollLeft||typeof i=="number"&&i>=0&&i!==o.scrollTop?s:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,o){var l=e.columnCount,i=e.height,s=e.scrollToAlignment,a=e.scrollToColumn,u=e.width,d=o.scrollLeft,h=o.instanceProps;if(l>0){var p=l-1,g=a<0?p:Math.min(p,a),m=h.rowSizeAndPositionManager.getTotalSize(),S=h.scrollbarSizeMeasured&&m>i?h.scrollbarSize:0;return h.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:u-S,currentOffset:d,targetIndex:g})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var l=o.scrollLeft,i=r._getCalculatedScrollLeft(e,o);return typeof i=="number"&&i>=0&&l!==i?r._getScrollToPositionStateUpdate({prevState:o,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,o){var l=e.height,i=e.rowCount,s=e.scrollToAlignment,a=e.scrollToRow,u=e.width,d=o.scrollTop,h=o.instanceProps;if(i>0){var p=i-1,g=a<0?p:Math.min(p,a),m=h.columnSizeAndPositionManager.getTotalSize(),S=h.scrollbarSizeMeasured&&m>u?h.scrollbarSize:0;return h.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:l-S,currentOffset:d,targetIndex:g})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var l=o.scrollTop,i=r._getCalculatedScrollTop(e,o);return typeof i=="number"&&i>=0&&l!==i?r._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:i}):{}}}])})(R.PureComponent);(0,f.A)(Ne,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:pt,containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Ge,noContentRenderer:Lo,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:ht,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:Mo,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),B(Ne);const he=Ne;var Dr=null,Po=1,Wr="horizontal",Hr="vertical";function Fe(n){var r=n.cellCount,t=n.overscanCellsCount,e=n.scrollDirection,o=n.startIndex,l=n.stopIndex;return t=Math.max(1,t),e===Po?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(r-1,l+t)}:{overscanStartIndex:Math.max(0,o-t),overscanStopIndex:Math.min(r-1,l+1)}}var ko=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");function Eo(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,St()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function St(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(St=function(){return!!n})()}var je=(function(n){function r(t,e){var o;return(0,V.A)(this,r),o=Eo(this,r,[t,e]),o._loadMoreRowsMemoizer=me(),o._onRowsRendered=o._onRowsRendered.bind(o),o._registerChild=o._registerChild.bind(o),o}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=me(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){var e=this.props.children;return e({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var o=this,l=this.props.loadMoreRows;e.forEach(function(i){var s=l(i);s&&s.then(function(){Go({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:i.startIndex,stopIndex:i.stopIndex})&&o._registeredChild&&Wo(o._registeredChild,o._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var o=e.startIndex,l=e.stopIndex;this._lastRenderedStartIndex=o,this._lastRenderedStopIndex=l,this._doStuff(o,l)}},{key:"_doStuff",value:function(e,o){var l,i=this,s=this.props,a=s.isRowLoaded,u=s.minimumBatchSize,d=s.rowCount,h=s.threshold,p=Do({isRowLoaded:a,minimumBatchSize:u,rowCount:d,startIndex:Math.max(0,e-h),stopIndex:Math.min(d-1,o+h)}),g=(l=[]).concat.apply(l,(0,ko.A)(p.map(function(m){var S=m.startIndex,C=m.stopIndex;return[S,C]})));this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(p)},indices:{squashedUnloadedRanges:g}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])})(R.PureComponent);(0,f.A)(je,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),je.propTypes={};function Go(n){var r=n.lastRenderedStartIndex,t=n.lastRenderedStopIndex,e=n.startIndex,o=n.stopIndex;return!(e>t||o<r)}function Do(n){for(var r=n.isRowLoaded,t=n.minimumBatchSize,e=n.rowCount,o=n.startIndex,l=n.stopIndex,i=[],s=null,a=null,u=o;u<=l;u++){var d=r({index:u});d?a!==null&&(i.push({startIndex:s,stopIndex:a}),s=a=null):(a=u,s===null&&(s=u))}if(a!==null){for(var h=Math.min(Math.max(a,s+t-1),e-1),p=a+1;p<=h&&!r({index:p});p++)a=p;i.push({startIndex:s,stopIndex:a})}if(i.length)for(var g=i[0];g.stopIndex-g.startIndex+1<t&&g.startIndex>0;){var m=g.startIndex-1;if(!r({index:m}))g.startIndex=m;else break}return i}function Wo(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=typeof n.recomputeGridSize=="function"?n.recomputeGridSize:n.recomputeRowHeights;t?t.call(n,r):n.forceUpdate()}var Nr;const Fr=null;function Ho(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,_t()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function _t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_t=function(){return!!n})()}var Ct=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=Ho(this,r,[].concat(o)),(0,f.A)(t,"Grid",void 0),(0,f.A)(t,"_cellRenderer",function(i){var s=i.parent,a=i.rowIndex,u=i.style,d=i.isScrolling,h=i.isVisible,p=i.key,g=t.props.rowRenderer,m=Object.getOwnPropertyDescriptor(u,"width");return m&&m.writable&&(u.width="100%"),g({index:a,style:u,isScrolling:d,isVisible:h,key:p,parent:s})}),(0,f.A)(t,"_setRef",function(i){t.Grid=i}),(0,f.A)(t,"_onScroll",function(i){var s=i.clientHeight,a=i.scrollHeight,u=i.scrollTop,d=t.props.onScroll;d({clientHeight:s,scrollHeight:a,scrollTop:u})}),(0,f.A)(t,"_onSectionRendered",function(i){var s=i.rowOverscanStartIndex,a=i.rowOverscanStopIndex,u=i.rowStartIndex,d=i.rowStopIndex,h=t.props.onRowsRendered;h({overscanStartIndex:s,overscanStopIndex:a,startIndex:u,stopIndex:d})}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var o=e.alignment,l=e.index;if(this.Grid){var i=this.Grid.getOffsetForCell({alignment:o,rowIndex:l,columnIndex:0}),s=i.scrollTop;return s}return 0}},{key:"invalidateCellSizeAfterRender",value:function(e){var o=e.columnIndex,l=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:l,columnIndex:o})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.columnIndex,l=o===void 0?0:o,i=e.rowIndex,s=i===void 0?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:l})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,o=e.className,l=e.noRowsRenderer,i=e.scrollToIndex,s=e.width,a=ne("ReactVirtualized__List",o);return R.createElement(he,(0,ie.A)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:a,columnWidth:s,columnCount:1,noContentRenderer:l,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:i}))}}])})(R.PureComponent);(0,f.A)(Ct,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Fe,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function No(n){var r=n.cellMeasurerCache,t=n.columnCount,e=n.columnWidth,o=n.spacer,l=o===void 0?0:o,i;a();function s(d){for(var h=0,p=1;p<i.length;p++)i[p]<i[h]&&(h=p);var g=h*(e+l),m=i[h]||0;return i[h]=m+r.getHeight(d)+l,{left:g,top:m}}function a(){i=[];for(var d=0;d<t;d++)i[d]=0}function u(d){t=d.columnCount,e=d.columnWidth,l=d.spacer,a()}return s.reset=u,s}var Fo=X("../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js");function jo(n,r,t,e){for(var o=t+1;r<=t;){var l=r+t>>>1,i=n[l];i>=e?(o=l,t=l-1):r=l+1}return o}function Bo(n,r,t,e,o){for(var l=t+1;r<=t;){var i=r+t>>>1,s=n[i];o(s,e)>=0?(l=i,t=i-1):r=i+1}return l}function Uo(n,r,t,e,o){return typeof t=="function"?Bo(n,e===void 0?0:e|0,o===void 0?n.length-1:o|0,r,t):jo(n,t===void 0?0:t|0,e===void 0?n.length-1:e|0,r)}function $o(n,r,t,e){for(var o=t+1;r<=t;){var l=r+t>>>1,i=n[l];i>e?(o=l,t=l-1):r=l+1}return o}function Vo(n,r,t,e,o){for(var l=t+1;r<=t;){var i=r+t>>>1,s=n[i];o(s,e)>0?(l=i,t=i-1):r=i+1}return l}function Ko(n,r,t,e,o){return typeof t=="function"?Vo(n,e===void 0?0:e|0,o===void 0?n.length-1:o|0,r,t):$o(n,t===void 0?0:t|0,e===void 0?n.length-1:e|0,r)}function Yo(n,r,t,e){for(var o=r-1;r<=t;){var l=r+t>>>1,i=n[l];i<e?(o=l,r=l+1):t=l-1}return o}function Xo(n,r,t,e,o){for(var l=r-1;r<=t;){var i=r+t>>>1,s=n[i];o(s,e)<0?(l=i,r=i+1):t=i-1}return l}function qo(n,r,t,e,o){return typeof t=="function"?Xo(n,e===void 0?0:e|0,o===void 0?n.length-1:o|0,r,t):Yo(n,t===void 0?0:t|0,e===void 0?n.length-1:e|0,r)}function Zo(n,r,t,e){for(var o=r-1;r<=t;){var l=r+t>>>1,i=n[l];i<=e?(o=l,r=l+1):t=l-1}return o}function Qo(n,r,t,e,o){for(var l=r-1;r<=t;){var i=r+t>>>1,s=n[i];o(s,e)<=0?(l=i,r=i+1):t=i-1}return l}function Jo(n,r,t,e,o){return typeof t=="function"?Qo(n,e===void 0?0:e|0,o===void 0?n.length-1:o|0,r,t):Zo(n,t===void 0?0:t|0,e===void 0?n.length-1:e|0,r)}function er(n,r,t,e){for(r-1;r<=t;){var o=r+t>>>1,l=n[o];if(l===e)return o;l<=e?r=o+1:t=o-1}return-1}function tr(n,r,t,e,o){for(r-1;r<=t;){var l=r+t>>>1,i=n[l],s=o(i,e);if(s===0)return l;s<=0?r=l+1:t=l-1}return-1}function or(n,r,t,e,o){return typeof t=="function"?tr(n,e===void 0?0:e|0,o===void 0?n.length-1:o|0,r,t):er(n,t===void 0?0:t|0,e===void 0?n.length-1:e|0,r)}const Me={ge:Uo,gt:Ko,lt:qo,le:Jo,eq:or};var _e=0,fe=1,Le=2;function Be(n,r,t,e,o){this.mid=n,this.left=r,this.right=t,this.leftPoints=e,this.rightPoints=o,this.count=(r?r.count:0)+(t?t.count:0)+e.length}var Te=Be.prototype;function Ue(n,r){n.mid=r.mid,n.left=r.left,n.right=r.right,n.leftPoints=r.leftPoints,n.rightPoints=r.rightPoints,n.count=r.count}function wt(n,r){var t=Ce(r);n.mid=t.mid,n.left=t.left,n.right=t.right,n.leftPoints=t.leftPoints,n.rightPoints=t.rightPoints,n.count=t.count}function yt(n,r){var t=n.intervals([]);t.push(r),wt(n,t)}function Rt(n,r){var t=n.intervals([]),e=t.indexOf(r);return e<0?_e:(t.splice(e,1),wt(n,t),fe)}Te.intervals=function(n){return n.push.apply(n,this.leftPoints),this.left&&this.left.intervals(n),this.right&&this.right.intervals(n),n},Te.insert=function(n){var r=this.count-this.leftPoints.length;if(this.count+=1,n[1]<this.mid)this.left?4*(this.left.count+1)>3*(r+1)?yt(this,n):this.left.insert(n):this.left=Ce([n]);else if(n[0]>this.mid)this.right?4*(this.right.count+1)>3*(r+1)?yt(this,n):this.right.insert(n):this.right=Ce([n]);else{var t=Me.ge(this.leftPoints,n,$e),e=Me.ge(this.rightPoints,n,Ve);this.leftPoints.splice(t,0,n),this.rightPoints.splice(e,0,n)}},Te.remove=function(n){var r=this.count-this.leftPoints;if(n[1]<this.mid){if(!this.left)return _e;var t=this.right?this.right.count:0;if(4*t>3*(r-1))return Rt(this,n);var e=this.left.remove(n);return e===Le?(this.left=null,this.count-=1,fe):(e===fe&&(this.count-=1),e)}else if(n[0]>this.mid){if(!this.right)return _e;var o=this.left?this.left.count:0;if(4*o>3*(r-1))return Rt(this,n);var e=this.right.remove(n);return e===Le?(this.right=null,this.count-=1,fe):(e===fe&&(this.count-=1),e)}else{if(this.count===1)return this.leftPoints[0]===n?Le:_e;if(this.leftPoints.length===1&&this.leftPoints[0]===n){if(this.left&&this.right){for(var l=this,i=this.left;i.right;)l=i,i=i.right;if(l===this)i.right=this.right;else{var s=this.left,e=this.right;l.count-=i.count,l.right=i.left,i.left=s,i.right=e}Ue(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Ue(this,this.left):Ue(this,this.right);return fe}for(var s=Me.ge(this.leftPoints,n,$e);s<this.leftPoints.length&&this.leftPoints[s][0]===n[0];++s)if(this.leftPoints[s]===n){this.count-=1,this.leftPoints.splice(s,1);for(var e=Me.ge(this.rightPoints,n,Ve);e<this.rightPoints.length&&this.rightPoints[e][1]===n[1];++e)if(this.rightPoints[e]===n)return this.rightPoints.splice(e,1),fe}return _e}};function Tt(n,r,t){for(var e=0;e<n.length&&n[e][0]<=r;++e){var o=t(n[e]);if(o)return o}}function It(n,r,t){for(var e=n.length-1;e>=0&&n[e][1]>=r;--e){var o=t(n[e]);if(o)return o}}function bt(n,r){for(var t=0;t<n.length;++t){var e=r(n[t]);if(e)return e}}Te.queryPoint=function(n,r){if(n<this.mid){if(this.left){var t=this.left.queryPoint(n,r);if(t)return t}return Tt(this.leftPoints,n,r)}else if(n>this.mid){if(this.right){var t=this.right.queryPoint(n,r);if(t)return t}return It(this.rightPoints,n,r)}else return bt(this.leftPoints,r)},Te.queryInterval=function(n,r,t){if(n<this.mid&&this.left){var e=this.left.queryInterval(n,r,t);if(e)return e}if(r>this.mid&&this.right){var e=this.right.queryInterval(n,r,t);if(e)return e}return r<this.mid?Tt(this.leftPoints,r,t):n>this.mid?It(this.rightPoints,n,t):bt(this.leftPoints,t)};function rr(n,r){return n-r}function $e(n,r){var t=n[0]-r[0];return t||n[1]-r[1]}function Ve(n,r){var t=n[1]-r[1];return t||n[0]-r[0]}function Ce(n){if(n.length===0)return null;for(var r=[],t=0;t<n.length;++t)r.push(n[t][0],n[t][1]);r.sort(rr);for(var e=r[r.length>>1],o=[],l=[],i=[],t=0;t<n.length;++t){var s=n[t];s[1]<e?o.push(s):e<s[0]?l.push(s):i.push(s)}var a=i,u=i.slice();return a.sort($e),u.sort(Ve),new Be(e,Ce(o),Ce(l),a,u)}function Ke(n){this.root=n}var we=Ke.prototype;we.insert=function(n){this.root?this.root.insert(n):this.root=new Be(n[0],null,null,[n],[n])},we.remove=function(n){if(this.root){var r=this.root.remove(n);return r===Le&&(this.root=null),r!==_e}return!1},we.queryPoint=function(n,r){if(this.root)return this.root.queryPoint(n,r)},we.queryInterval=function(n,r,t){if(n<=r&&this.root)return this.root.queryInterval(n,r,t)},Object.defineProperty(we,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(we,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function nr(n){return!n||n.length===0?new Ke(null):new Ke(Ce(n))}var Ye=(function(){function n(){(0,V.A)(this,n),(0,f.A)(this,"_columnSizeMap",{}),(0,f.A)(this,"_intervalTree",nr()),(0,f.A)(this,"_leftMap",{})}return(0,N.A)(n,[{key:"estimateTotalHeight",value:function(t,e,o){var l=t-this.count;return this.tallestColumnSize+Math.ceil(l/e)*o}},{key:"range",value:function(t,e,o){var l=this;this._intervalTree.queryInterval(t,t+e,function(i){var s=(0,Fo.A)(i,3),a=s[0],u=s[1],d=s[2];return o(d,l._leftMap[d],a)})}},{key:"setPosition",value:function(t,e,o,l){this._intervalTree.insert([o,o+l,t]),this._leftMap[t]=e;var i=this._columnSizeMap,s=i[e];s===void 0?i[e]=o+l:i[e]=Math.max(s,o+l)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var t=this._columnSizeMap,e=0;for(var o in t){var l=t[o];e=e===0?l:Math.min(e,l)}return e}},{key:"tallestColumnSize",get:function(){var t=this._columnSizeMap,e=0;for(var o in t){var l=t[o];e=Math.max(e,l)}return e}}])})();function xt(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function ir(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?xt(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xt(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function lr(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,zt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function zt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(zt=function(){return!!n})()}var sr={},ar=150,Xe=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=lr(this,r,[].concat(o)),(0,f.A)(t,"state",{isScrolling:!1,scrollTop:0}),(0,f.A)(t,"_debounceResetIsScrollingId",void 0),(0,f.A)(t,"_invalidateOnUpdateStartIndex",null),(0,f.A)(t,"_invalidateOnUpdateStopIndex",null),(0,f.A)(t,"_positionCache",new Ye),(0,f.A)(t,"_startIndex",null),(0,f.A)(t,"_startIndexMemoized",null),(0,f.A)(t,"_stopIndex",null),(0,f.A)(t,"_stopIndexMemoized",null),(0,f.A)(t,"_debounceResetIsScrollingCallback",function(){t.setState({isScrolling:!1})}),(0,f.A)(t,"_setScrollingContainerRef",function(i){t._scrollingContainer=i}),(0,f.A)(t,"_onScroll",function(i){var s=t.props.height,a=i.currentTarget.scrollTop,u=Math.min(Math.max(0,t._getEstimatedTotalHeight()-s),a);a===u&&(t._debounceResetIsScrolling(),t.state.scrollTop!==u&&t.setState({isScrolling:!0,scrollTop:u}))}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"clearCellPositions",value:function(){this._positionCache=new Ye,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var o=e.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=o,this._invalidateOnUpdateStopIndex=o):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,o),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,o))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Ye,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,o){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Se(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e=this,o=this.props,l=o.autoHeight,i=o.cellCount,s=o.cellMeasurerCache,a=o.cellRenderer,u=o.className,d=o.height,h=o.id,p=o.keyMapper,g=o.overscanByPixels,m=o.role,S=o.style,C=o.tabIndex,w=o.width,O=o.rowDirection,x=this.state,G=x.isScrolling,L=x.scrollTop,H=[],z=this._getEstimatedTotalHeight(),_=this._positionCache.shortestColumnSize,P=this._positionCache.count,A=0,M;if(this._positionCache.range(Math.max(0,L-g),d+g*2,function(ee,se,de){typeof M=="undefined"?(A=ee,M=ee):(A=Math.min(A,ee),M=Math.max(M,ee)),H.push(a({index:ee,isScrolling:G,key:p(ee),parent:e,style:(0,f.A)((0,f.A)((0,f.A)((0,f.A)({height:s.getHeight(ee)},O==="ltr"?"left":"right",se),"position","absolute"),"top",de),"width",s.getWidth(ee))}))}),_<L+d+g&&P<i)for(var Y=Math.min(i-P,Math.ceil((L+d+g-_)/s.defaultHeight*w/s.defaultWidth)),$=P;$<P+Y;$++)M=$,H.push(a({index:$,isScrolling:G,key:p($),parent:this,style:{width:s.getWidth($)}}));return this._startIndex=A,this._stopIndex=M,R.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ne("ReactVirtualized__Masonry",u),id:h,onScroll:this._onScroll,role:m,style:ir({boxSizing:"border-box",direction:"ltr",height:l?"auto":d,overflowX:"hidden",overflowY:z<d?"hidden":"auto",position:"relative",width:w,WebkitOverflowScrolling:"touch",willChange:"transform"},S),tabIndex:C},R.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:z,maxWidth:"100%",maxHeight:z,overflow:"hidden",pointerEvents:G?"none":"",position:"relative"}},H))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var e=this._invalidateOnUpdateStartIndex,o=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,o),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Se(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=We(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,o=e.cellCount,l=e.cellMeasurerCache,i=e.width,s=Math.max(1,Math.floor(i/l.defaultWidth));return this._positionCache.estimateTotalHeight(o,s,l.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,o=e.height,l=e.onScroll,i=this.state.scrollTop;this._onScrollMemoized!==i&&(l({clientHeight:o,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:i}),this._onScrollMemoized=i)}},{key:"_invokeOnCellsRenderedCallback",value:function(){if(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex){var e=this.props.onCellsRendered;e({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex}}},{key:"_populatePositionCache",value:function(e,o){for(var l=this.props,i=l.cellMeasurerCache,s=l.cellPositioner,a=e;a<=o;a++){var u=s(a),d=u.left,h=u.top;this._positionCache.setPosition(a,d,h,i.getHeight(a))}}}],[{key:"getDerivedStateFromProps",value:function(e,o){return e.scrollTop!==void 0&&o.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])})(R.PureComponent);(0,f.A)(Xe,"defaultProps",{autoHeight:!1,keyMapper:cr,onCellsRendered:At,onScroll:At,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:ar,style:sr,tabIndex:0,rowDirection:"ltr"});function cr(n){return n}function At(){}B(Xe);const ur=Xe;var jr;const Br=null;var qe=(function(){function n(){var r=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,V.A)(this,n),(0,f.A)(this,"_cellMeasurerCache",void 0),(0,f.A)(this,"_columnIndexOffset",void 0),(0,f.A)(this,"_rowIndexOffset",void 0),(0,f.A)(this,"columnWidth",function(a){var u=a.index;r._cellMeasurerCache.columnWidth({index:u+r._columnIndexOffset})}),(0,f.A)(this,"rowHeight",function(a){var u=a.index;r._cellMeasurerCache.rowHeight({index:u+r._rowIndexOffset})});var e=t.cellMeasurerCache,o=t.columnIndexOffset,l=o===void 0?0:o,i=t.rowIndexOffset,s=i===void 0?0:i;this._cellMeasurerCache=e,this._columnIndexOffset=l,this._rowIndexOffset=s}return(0,N.A)(n,[{key:"clear",value:function(t,e){this._cellMeasurerCache.clear(t+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(t+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"getWidth",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(t+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"has",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(t+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"set",value:function(t,e,o,l){this._cellMeasurerCache.set(t+this._rowIndexOffset,e+this._columnIndexOffset,o,l)}}])})(),dr=["rowIndex"],hr=["columnIndex","rowIndex"],fr=["columnIndex"],pr=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Ot(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function K(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ot(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ot(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function gr(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,Mt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function Mt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Mt=function(){return!!n})()}var Lt=20,Pe=(function(n){function r(t,e){var o;(0,V.A)(this,r),o=gr(this,r,[t,e]),(0,f.A)(o,"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),(0,f.A)(o,"_deferredInvalidateColumnIndex",null),(0,f.A)(o,"_deferredInvalidateRowIndex",null),(0,f.A)(o,"_bottomLeftGridRef",function(a){o._bottomLeftGrid=a}),(0,f.A)(o,"_bottomRightGridRef",function(a){o._bottomRightGrid=a}),(0,f.A)(o,"_cellRendererBottomLeftGrid",function(a){var u=a.rowIndex,d=(0,Re.A)(a,dr),h=o.props,p=h.cellRenderer,g=h.fixedRowCount,m=h.rowCount;return u===m-g?R.createElement("div",{key:d.key,style:K(K({},d.style),{},{height:Lt})}):p(K(K({},d),{},{parent:o,rowIndex:u+g}))}),(0,f.A)(o,"_cellRendererBottomRightGrid",function(a){var u=a.columnIndex,d=a.rowIndex,h=(0,Re.A)(a,hr),p=o.props,g=p.cellRenderer,m=p.fixedColumnCount,S=p.fixedRowCount;return g(K(K({},h),{},{columnIndex:u+m,parent:o,rowIndex:d+S}))}),(0,f.A)(o,"_cellRendererTopRightGrid",function(a){var u=a.columnIndex,d=(0,Re.A)(a,fr),h=o.props,p=h.cellRenderer,g=h.columnCount,m=h.fixedColumnCount;return u===g-m?R.createElement("div",{key:d.key,style:K(K({},d.style),{},{width:Lt})}):p(K(K({},d),{},{columnIndex:u+m,parent:o}))}),(0,f.A)(o,"_columnWidthRightGrid",function(a){var u=a.index,d=o.props,h=d.columnCount,p=d.fixedColumnCount,g=d.columnWidth,m=o.state,S=m.scrollbarSize,C=m.showHorizontalScrollbar;return C&&u===h-p?S:typeof g=="function"?g({index:u+p}):g}),(0,f.A)(o,"_onScroll",function(a){var u=a.scrollLeft,d=a.scrollTop;o.setState({scrollLeft:u,scrollTop:d});var h=o.props.onScroll;h&&h(a)}),(0,f.A)(o,"_onScrollbarPresenceChange",function(a){var u=a.horizontal,d=a.size,h=a.vertical,p=o.state,g=p.showHorizontalScrollbar,m=p.showVerticalScrollbar;if(u!==g||h!==m){o.setState({scrollbarSize:d,showHorizontalScrollbar:u,showVerticalScrollbar:h});var S=o.props.onScrollbarPresenceChange;typeof S=="function"&&S({horizontal:u,size:d,vertical:h})}}),(0,f.A)(o,"_onScrollLeft",function(a){var u=a.scrollLeft;o._onScroll({scrollLeft:u,scrollTop:o.state.scrollTop})}),(0,f.A)(o,"_onScrollTop",function(a){var u=a.scrollTop;o._onScroll({scrollTop:u,scrollLeft:o.state.scrollLeft})}),(0,f.A)(o,"_rowHeightBottomGrid",function(a){var u=a.index,d=o.props,h=d.fixedRowCount,p=d.rowCount,g=d.rowHeight,m=o.state,S=m.scrollbarSize,C=m.showVerticalScrollbar;return C&&u===p-h?S:typeof g=="function"?g({index:u+h}):g}),(0,f.A)(o,"_topLeftGridRef",function(a){o._topLeftGrid=a}),(0,f.A)(o,"_topRightGridRef",function(a){o._topRightGrid=a});var l=t.deferredMeasurementCache,i=t.fixedColumnCount,s=t.fixedRowCount;return o._maybeCalculateCachedStyles(!0),l&&(o._deferredMeasurementCacheBottomLeftGrid=s>0?new qe({cellMeasurerCache:l,columnIndexOffset:0,rowIndexOffset:s}):l,o._deferredMeasurementCacheBottomRightGrid=i>0||s>0?new qe({cellMeasurerCache:l,columnIndexOffset:i,rowIndexOffset:s}):l,o._deferredMeasurementCacheTopRightGrid=i>0?new qe({cellMeasurerCache:l,columnIndexOffset:i,rowIndexOffset:0}):l),o}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.columnIndex,l=o===void 0?0:o,i=e.rowIndex,s=i===void 0?0:i;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,l):l,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,s):s}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.columnIndex,l=o===void 0?0:o,i=e.rowIndex,s=i===void 0?0:i,a=this.props,u=a.fixedColumnCount,d=a.fixedRowCount,h=Math.max(0,l-u),p=Math.max(0,s-d);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:l,rowIndex:p}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:h,rowIndex:p}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:l,rowIndex:s}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:h,rowIndex:s}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,o=e.scrollLeft,l=e.scrollTop;if(o>0||l>0){var i={};o>0&&(i.scrollLeft=o),l>0&&(i.scrollTop=l),this.setState(i)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,o=e.onScroll,l=e.onSectionRendered,i=e.onScrollbarPresenceChange,s=e.scrollLeft,a=e.scrollToColumn,u=e.scrollTop,d=e.scrollToRow,h=(0,Re.A)(e,pr);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var p=this.state,g=p.scrollLeft,m=p.scrollTop;return R.createElement("div",{style:this._containerOuterStyle},R.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(h),this._renderTopRightGrid(K(K({},h),{},{onScroll:o,scrollLeft:g}))),R.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(K(K({},h),{},{onScroll:o,scrollTop:m})),this._renderBottomRightGrid(K(K({},h),{},{onScroll:o,onSectionRendered:l,scrollLeft:g,scrollToColumn:a,scrollToRow:d,scrollTop:m}))))}},{key:"_getBottomGridHeight",value:function(e){var o=e.height,l=this._getTopGridHeight(e);return o-l}},{key:"_getLeftGridWidth",value:function(e){var o=e.fixedColumnCount,l=e.columnWidth;if(this._leftGridWidth==null)if(typeof l=="function"){for(var i=0,s=0;s<o;s++)i+=l({index:s});this._leftGridWidth=i}else this._leftGridWidth=l*o;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){var o=e.width,l=this._getLeftGridWidth(e);return o-l}},{key:"_getTopGridHeight",value:function(e){var o=e.fixedRowCount,l=e.rowHeight;if(this._topGridHeight==null)if(typeof l=="function"){for(var i=0,s=0;s<o;s++)i+=l({index:s});this._topGridHeight=i}else this._topGridHeight=l*o;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var e=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:o}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var o=this.props,l=o.columnWidth,i=o.enableFixedColumnScroll,s=o.enableFixedRowScroll,a=o.height,u=o.fixedColumnCount,d=o.fixedRowCount,h=o.rowHeight,p=o.style,g=o.styleBottomLeftGrid,m=o.styleBottomRightGrid,S=o.styleTopLeftGrid,C=o.styleTopRightGrid,w=o.width,O=e||a!==this._lastRenderedHeight||w!==this._lastRenderedWidth,x=e||l!==this._lastRenderedColumnWidth||u!==this._lastRenderedFixedColumnCount,G=e||d!==this._lastRenderedFixedRowCount||h!==this._lastRenderedRowHeight;(e||O||p!==this._lastRenderedStyle)&&(this._containerOuterStyle=K({height:a,overflow:"visible",width:w},p)),(e||O||G)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:w},this._containerBottomStyle={height:a-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:w}),(e||g!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=K({left:0,overflowX:"hidden",overflowY:i?"auto":"hidden",position:"absolute"},g)),(e||x||m!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=K({left:this._getLeftGridWidth(this.props),position:"absolute"},m)),(e||S!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=K({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},S)),(e||x||C!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=K({left:this._getLeftGridWidth(this.props),overflowX:s?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},C)),this._lastRenderedColumnWidth=l,this._lastRenderedFixedColumnCount=u,this._lastRenderedFixedRowCount=d,this._lastRenderedHeight=a,this._lastRenderedRowHeight=h,this._lastRenderedStyle=p,this._lastRenderedStyleBottomLeftGrid=g,this._lastRenderedStyleBottomRightGrid=m,this._lastRenderedStyleTopLeftGrid=S,this._lastRenderedStyleTopRightGrid=C,this._lastRenderedWidth=w}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var o=e.enableFixedColumnScroll,l=e.fixedColumnCount,i=e.fixedRowCount,s=e.rowCount,a=e.hideBottomLeftGridScrollbar,u=this.state.showVerticalScrollbar;if(!l)return null;var d=u?1:0,h=this._getBottomGridHeight(e),p=this._getLeftGridWidth(e),g=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,m=a?p+g:p,S=R.createElement(he,(0,ie.A)({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:l,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:h,onScroll:o?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,s-i)+d,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:m}));return a?R.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:K(K({},this._bottomLeftGridStyle),{},{height:h,width:p,overflowY:"hidden"})},S):S}},{key:"_renderBottomRightGrid",value:function(e){var o=e.columnCount,l=e.fixedColumnCount,i=e.fixedRowCount,s=e.rowCount,a=e.scrollToColumn,u=e.scrollToRow;return R.createElement(he,(0,ie.A)({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,o-l),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,s-i),rowHeight:this._rowHeightBottomGrid,scrollToColumn:a-l,scrollToRow:u-i,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var o=e.fixedColumnCount,l=e.fixedRowCount;return!o||!l?null:R.createElement(he,(0,ie.A)({},e,{className:this.props.classNameTopLeftGrid,columnCount:o,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:l,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)}))}},{key:"_renderTopRightGrid",value:function(e){var o=e.columnCount,l=e.enableFixedRowScroll,i=e.fixedColumnCount,s=e.fixedRowCount,a=e.scrollLeft,u=e.hideTopRightGridScrollbar,d=this.state,h=d.showHorizontalScrollbar,p=d.scrollbarSize;if(!s)return null;var g=h?1:0,m=this._getTopGridHeight(e),S=this._getRightGridWidth(e),C=h?p:0,w=m,O=this._topRightGridStyle;u&&(w=m+C,O=K(K({},this._topRightGridStyle),{},{left:0}));var x=R.createElement(he,(0,ie.A)({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,o-i)+g,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:w,onScroll:l?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:s,scrollLeft:a,style:O,tabIndex:null,width:S}));return u?R.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:K(K({},this._topRightGridStyle),{},{height:m,width:S,overflowX:"hidden"})},x):x}}],[{key:"getDerivedStateFromProps",value:function(e,o){return e.scrollLeft!==o.scrollLeft||e.scrollTop!==o.scrollTop?{scrollLeft:e.scrollLeft!=null&&e.scrollLeft>=0?e.scrollLeft:o.scrollLeft,scrollTop:e.scrollTop!=null&&e.scrollTop>=0?e.scrollTop:o.scrollTop}:null}}])})(R.PureComponent);(0,f.A)(Pe,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Pe.propTypes={},B(Pe);const mr=Pe;var Ur;const $r=null;function vr(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,Pt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function Pt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Pt=function(){return!!n})()}var kt=(function(n){function r(t,e){var o;return(0,V.A)(this,r),o=vr(this,r,[t,e]),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(o),o}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"render",value:function(){var e=this.props.children,o=this.state,l=o.clientHeight,i=o.clientWidth,s=o.scrollHeight,a=o.scrollLeft,u=o.scrollTop,d=o.scrollWidth;return e({clientHeight:l,clientWidth:i,onScroll:this._onScroll,scrollHeight:s,scrollLeft:a,scrollTop:u,scrollWidth:d})}},{key:"_onScroll",value:function(e){var o=e.clientHeight,l=e.clientWidth,i=e.scrollHeight,s=e.scrollLeft,a=e.scrollTop,u=e.scrollWidth;this.setState({clientHeight:o,clientWidth:l,scrollHeight:i,scrollLeft:s,scrollTop:a,scrollWidth:u})}}])})(R.PureComponent);kt.propTypes={};var Vr;const Kr=null;function Sr(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.defaultSortBy,e=r.defaultSortDirection,o=e===void 0?{}:e;if(!n)throw Error('Required parameter "sortCallback" not specified');var l=t||[],i={};l.forEach(function(a){i[a]=o[a]!==void 0?o[a]:"ASC"});function s(a){var u=a.defaultSortDirection,d=a.event,h=a.sortBy;if(d.shiftKey)i[h]!==void 0?i[h]=i[h]==="ASC"?"DESC":"ASC":(i[h]=u,l.push(h));else if(d.ctrlKey||d.metaKey){var p=l.indexOf(h);p>=0&&(l.splice(p,1),delete i[h])}else{l.length=0,l.push(h);var g=Object.keys(i);g.forEach(function(m){m!==h&&delete i[m]}),i[h]!==void 0?i[h]=i[h]==="ASC"?"DESC":"ASC":i[h]=u}n({sortBy:l,sortDirection:i})}return{sort:s,sortBy:l,sortDirection:i}}function Et(n){var r=n.dataKey,t=n.rowData;return typeof t.get=="function"?t.get(r):t[r]}function Gt(n){var r=n.cellData;return r==null?"":String(r)}function Dt(n){var r=n.className,t=n.columns,e=n.style;return R.createElement("div",{className:r,role:"row",style:e},t)}var _r={ASC:"ASC",DESC:"DESC"};const ce=_r;function Ze(n){var r=n.sortDirection,t=ne("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":r===ce.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":r===ce.DESC});return R.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},r===ce.ASC?R.createElement("path",{d:"M7 14l5-5 5 5z"}):R.createElement("path",{d:"M7 10l5 5 5-5z"}),R.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}Ze.propTypes={};function Wt(n){var r=n.dataKey,t=n.label,e=n.sortBy,o=n.sortDirection,l=e===r,i=[R.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return l&&i.push(R.createElement(Ze,{key:"SortIndicator",sortDirection:o})),i}function Ht(n){var r=n.className,t=n.columns,e=n.index,o=n.key,l=n.onRowClick,i=n.onRowDoubleClick,s=n.onRowMouseOut,a=n.onRowMouseOver,u=n.onRowRightClick,d=n.rowData,h=n.style,p={"aria-rowindex":e+1};return(l||i||s||a||u)&&(p["aria-label"]="row",p.tabIndex=0,l&&(p.onClick=function(g){return l({event:g,index:e,rowData:d})}),i&&(p.onDoubleClick=function(g){return i({event:g,index:e,rowData:d})}),s&&(p.onMouseOut=function(g){return s({event:g,index:e,rowData:d})}),a&&(p.onMouseOver=function(g){return a({event:g,index:e,rowData:d})}),u&&(p.onContextMenu=function(g){return u({event:g,index:e,rowData:d})})),R.createElement("div",(0,ie.A)({},p,{className:r,key:o,role:"row",style:h}),t)}function Cr(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,Nt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function Nt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Nt=function(){return!!n})()}var ke=(function(n){function r(){return(0,V.A)(this,r),Cr(this,r,arguments)}return(0,Z.A)(r,n),(0,N.A)(r)})(R.Component);(0,f.A)(ke,"defaultProps",{cellDataGetter:Et,cellRenderer:Gt,defaultSortDirection:ce.ASC,flexGrow:0,flexShrink:1,headerRenderer:Wt,style:{}}),ke.propTypes={};function Ft(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function le(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ft(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ft(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function wr(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,jt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function jt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(jt=function(){return!!n})()}var Qe=(function(n){function r(t){var e;return(0,V.A)(this,r),e=wr(this,r,[t]),e.state={scrollbarWidth:0},e._createColumn=e._createColumn.bind(e),e._createRow=e._createRow.bind(e),e._onScroll=e._onScroll.bind(e),e._onSectionRendered=e._onSectionRendered.bind(e),e._setRef=e._setRef.bind(e),e._setGridElementRef=e._setGridElementRef.bind(e),e}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var o=e.alignment,l=e.index;if(this.Grid){var i=this.Grid.getOffsetForCell({alignment:o,rowIndex:l}),s=i.scrollTop;return s}return 0}},{key:"invalidateCellSizeAfterRender",value:function(e){var o=e.columnIndex,l=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:l,columnIndex:o})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.columnIndex,l=o===void 0?0:o,i=e.rowIndex,s=i===void 0?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:l})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,o=e.clientWidth||0,l=e.offsetWidth||0;return l-o}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,o=this.props,l=o.children,i=o.className,s=o.disableHeader,a=o.gridClassName,u=o.gridStyle,d=o.headerHeight,h=o.headerRowRenderer,p=o.height,g=o.id,m=o.noRowsRenderer,S=o.rowClassName,C=o.rowStyle,w=o.scrollToIndex,O=o.style,x=o.width,G=this.state.scrollbarWidth,L=s?p:p-d,H=typeof S=="function"?S({index:-1}):S,z=typeof C=="function"?C({index:-1}):C;return this._cachedColumnStyles=[],R.Children.toArray(l).forEach(function(_,P){var A=e._getFlexStyleForColumn(_,_.props.style||ke.defaultProps.style);e._cachedColumnStyles[P]=le({overflow:"hidden"},A)}),R.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":R.Children.toArray(l).length,"aria-rowcount":this.props.rowCount,className:ne("ReactVirtualized__Table",i),id:g,role:"grid",style:O},!s&&h({className:ne("ReactVirtualized__Table__headerRow",H),columns:this._getHeaderColumns(),style:le({height:d,overflow:"hidden",paddingRight:G,width:x},z)}),R.createElement(he,(0,ie.A)({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:ne("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:x,columnCount:1,height:L,id:void 0,noContentRenderer:m,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:G,scrollToRow:w,style:le(le({},u),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var o=e.column,l=e.columnIndex,i=e.isScrolling,s=e.parent,a=e.rowData,u=e.rowIndex,d=this.props.onColumnClick,h=o.props,p=h.cellDataGetter,g=h.cellRenderer,m=h.className,S=h.columnData,C=h.dataKey,w=h.id,O=p({columnData:S,dataKey:C,rowData:a}),x=g({cellData:O,columnData:S,columnIndex:l,dataKey:C,isScrolling:i,parent:s,rowData:a,rowIndex:u}),G=function(_){d&&d({columnData:S,dataKey:C,event:_})},L=this._cachedColumnStyles[l],H=typeof x=="string"?x:null;return R.createElement("div",{"aria-colindex":l+1,"aria-describedby":w,className:ne("ReactVirtualized__Table__rowColumn",m),key:"Row"+u+"-Col"+l,onClick:G,role:"gridcell",style:L,title:H},x)}},{key:"_createHeader",value:function(e){var o=e.column,l=e.index,i=this.props,s=i.headerClassName,a=i.headerStyle,u=i.onHeaderClick,d=i.sort,h=i.sortBy,p=i.sortDirection,g=o.props,m=g.columnData,S=g.dataKey,C=g.defaultSortDirection,w=g.disableSort,O=g.headerRenderer,x=g.id,G=g.label,L=!w&&d,H=ne("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:L}),z=this._getFlexStyleForColumn(o,le(le({},a),o.props.headerStyle)),_=O({columnData:m,dataKey:S,disableSort:w,label:G,sortBy:h,sortDirection:p}),P,A,M,Y,$;if(L||u){var ee=h!==S,se=ee?C:p===ce.DESC?ce.ASC:ce.DESC,de=function(ye){L&&d({defaultSortDirection:C,event:ye,sortBy:S,sortDirection:se}),u&&u({columnData:m,dataKey:S,event:ye})},xe=function(ye){(ye.key==="Enter"||ye.key===" ")&&de(ye)};$=o.props["aria-label"]||G||S,Y="none",M=0,P=de,A=xe}return h===S&&(Y=p===ce.ASC?"ascending":"descending"),R.createElement("div",{"aria-label":$,"aria-sort":Y,className:H,id:x,key:"Header-Col"+l,onClick:P,onKeyDown:A,role:"columnheader",style:z,tabIndex:M},_)}},{key:"_createRow",value:function(e){var o=this,l=e.rowIndex,i=e.isScrolling,s=e.key,a=e.parent,u=e.style,d=this.props,h=d.children,p=d.onRowClick,g=d.onRowDoubleClick,m=d.onRowRightClick,S=d.onRowMouseOver,C=d.onRowMouseOut,w=d.rowClassName,O=d.rowGetter,x=d.rowRenderer,G=d.rowStyle,L=this.state.scrollbarWidth,H=typeof w=="function"?w({index:l}):w,z=typeof G=="function"?G({index:l}):G,_=O({index:l}),P=R.Children.toArray(h).map(function(Y,$){return o._createColumn({column:Y,columnIndex:$,isScrolling:i,parent:a,rowData:_,rowIndex:l,scrollbarWidth:L})}),A=ne("ReactVirtualized__Table__row",H),M=le(le({},u),{},{height:this._getRowHeight(l),overflow:"hidden",paddingRight:L},z);return x({className:A,columns:P,index:l,isScrolling:i,key:s,onRowClick:p,onRowDoubleClick:g,onRowRightClick:m,onRowMouseOver:S,onRowMouseOut:C,rowData:_,style:M})}},{key:"_getFlexStyleForColumn",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),i=le(le({},o),{},{flex:l,msFlex:l,WebkitFlex:l});return e.props.maxWidth&&(i.maxWidth=e.props.maxWidth),e.props.minWidth&&(i.minWidth=e.props.minWidth),i}},{key:"_getHeaderColumns",value:function(){var e=this,o=this.props,l=o.children,i=o.disableHeader,s=i?[]:R.Children.toArray(l);return s.map(function(a,u){return e._createHeader({column:a,index:u})})}},{key:"_getRowHeight",value:function(e){var o=this.props.rowHeight;return typeof o=="function"?o({index:e}):o}},{key:"_onScroll",value:function(e){var o=e.clientHeight,l=e.scrollHeight,i=e.scrollTop,s=this.props.onScroll;s({clientHeight:o,scrollHeight:l,scrollTop:i})}},{key:"_onSectionRendered",value:function(e){var o=e.rowOverscanStartIndex,l=e.rowOverscanStopIndex,i=e.rowStartIndex,s=e.rowStopIndex,a=this.props.onRowsRendered;a({overscanStartIndex:o,overscanStopIndex:l,startIndex:i,stopIndex:s})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])})(R.PureComponent);(0,f.A)(Qe,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Fe,overscanRowCount:10,rowRenderer:Ht,headerRowRenderer:Dt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Qe.propTypes={};var Yr;const Xr=null;var ue=[],Ie=null,pe=null;function Bt(){pe&&(pe=null,document.body&&Ie!=null&&(document.body.style.pointerEvents=Ie),Ie=null)}function yr(){Bt(),ue.forEach(function(n){return n.__resetIsScrolling()})}function Rr(){pe&&Se(pe);var n=0;ue.forEach(function(r){n=Math.max(n,r.props.scrollingResetTimeInterval)}),pe=We(yr,n)}function Ut(n){n.currentTarget===window&&Ie==null&&document.body&&(Ie=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Rr(),ue.forEach(function(r){r.props.scrollElement===n.currentTarget&&r.__handleWindowScrollEvent()})}function $t(n,r){ue.some(function(t){return t.props.scrollElement===r})||r.addEventListener("scroll",Ut),ue.push(n)}function Vt(n,r){ue=ue.filter(function(t){return t!==n}),ue.length||(r.removeEventListener("scroll",Ut),pe&&(Se(pe),Bt()))}var Je=function(r){return r===window},be=function(r){return r.getBoundingClientRect()};function Kt(n,r){if(n)if(Je(n)){var t=window,e=t.innerHeight,o=t.innerWidth;return{height:typeof e=="number"?e:0,width:typeof o=="number"?o:0}}else return be(n);else return{height:r.serverHeight,width:r.serverWidth}}function Tr(n,r){if(Je(r)&&document.documentElement){var t=document.documentElement,e=be(n),o=be(t);return{top:e.top-o.top,left:e.left-o.left}}else{var l=Yt(r),i=be(n),s=be(r);return{top:i.top+l.top-s.top,left:i.left+l.left-s.left}}}function Yt(n){return Je(n)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:n.scrollTop,left:n.scrollLeft}}function Xt(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function qt(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Xt(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Xt(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function Ir(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,Zt()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function Zt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Zt=function(){return!!n})()}var br=150,Qt=function(){return typeof window!="undefined"?window:void 0},Jt=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=Ir(this,r,[].concat(o)),(0,f.A)(t,"_window",Qt()),(0,f.A)(t,"_isMounted",!1),(0,f.A)(t,"_positionFromTop",0),(0,f.A)(t,"_positionFromLeft",0),(0,f.A)(t,"_detectElementResize",void 0),(0,f.A)(t,"_child",void 0),(0,f.A)(t,"_windowScrollerRef",R.createRef()),(0,f.A)(t,"state",qt(qt({},Kt(t.props.scrollElement,t.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),(0,f.A)(t,"_registerChild",function(i){i&&!(i instanceof Element)&&console.warn("WindowScroller registerChild expects to be passed Element or null"),t._child=i,t.updatePosition()}),(0,f.A)(t,"_onChildScroll",function(i){var s=i.scrollTop;if(t.state.scrollTop!==s){var a=t.props.scrollElement;a&&(typeof a.scrollTo=="function"?a.scrollTo(0,s+t._positionFromTop):a.scrollTop=s+t._positionFromTop)}}),(0,f.A)(t,"_registerResizeListener",function(i){i===window?window.addEventListener("resize",t._onResize,!1):t._detectElementResize.addResizeListener(i,t._onResize)}),(0,f.A)(t,"_unregisterResizeListener",function(i){i===window?window.removeEventListener("resize",t._onResize,!1):i&&t._detectElementResize.removeResizeListener(i,t._onResize)}),(0,f.A)(t,"_onResize",function(){t.updatePosition()}),(0,f.A)(t,"__handleWindowScrollEvent",function(){if(t._isMounted){var i=t.props.onScroll,s=t.props.scrollElement;if(s){var a=Yt(s),u=Math.max(0,a.left-t._positionFromLeft),d=Math.max(0,a.top-t._positionFromTop);t.setState({isScrolling:!0,scrollLeft:u,scrollTop:d}),i({scrollLeft:u,scrollTop:d})}}}),(0,f.A)(t,"__resetIsScrolling",function(){t.setState({isScrolling:!1})}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"updatePosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,o=this.props.onResize,l=this.state,i=l.height,s=l.width,a=this._child||this._windowScrollerRef.current;if(a instanceof Element&&e){var u=Tr(a,e);this._positionFromTop=u.top,this._positionFromLeft=u.left}var d=Kt(e,this.props);(i!==d.height||s!==d.width)&&(this.setState({height:d.height,width:d.width}),o({height:d.height,width:d.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=E(),this.updatePosition(e),e&&($t(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,o){var l=this.props.scrollElement,i=e.scrollElement;i!==l&&i!=null&&l!=null&&(this.updatePosition(l),Vt(this,i),$t(this,l),this._unregisterResizeListener(i),this._registerResizeListener(l))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Vt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,o=this.state,l=o.isScrolling,i=o.scrollTop,s=o.scrollLeft,a=o.height,u=o.width;return R.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:a,isScrolling:l,scrollLeft:s,scrollTop:i,width:u}))}}])})(R.PureComponent);(0,f.A)(Jt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:br,scrollElement:Qt(),serverHeight:0,serverWidth:0});var qr;const Zr=null}}]);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var A=Object.defineProperty,j=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var x=(a,_,o)=>_ in a?A(a,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[_]=o,M=(a,_)=>{for(var o in _||(_={}))W.call(_,o)&&x(a,o,_[o]);if(U)for(var o of U(_))B.call(_,o)&&x(a,o,_[o]);return a},T=(a,_)=>j(a,K(_));(self.webpackChunk_sap_ux_ui_components=self.webpackChunk_sap_ux_ui_components||[]).push([[482],{"../../node_modules/.pnpm/css-loader@6.8.1_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!../../node_modules/.pnpm/sass-loader@13.3.2_sass-embedded@1.97.3_sass@1.66.1_webpack@5.105.0_@swc+core@1.15.11_@_4f1593e189c7da437313975f630f8314/node_modules/sass-loader/dist/cjs.js!./src/components/UITreeDropdown/UITreeDropdown.scss"(a,_,o){var D=o("../../node_modules/.pnpm/css-loader@6.8.1_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js"),r=o("../../node_modules/.pnpm/css-loader@6.8.1_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/css-loader/dist/runtime/api.js"),c=r(D);c.push([a.id,'.ui-treeDropdown{position:relative}.ui-treeDropdown-with-label{margin-top:29px}.ui-treeDropdown-wrapper{position:relative}.ui-treeDropdown-wrapper input{padding:0 26px 0 8px;font-family:var(--vscode-font-family)}.ui-treeDropdown-wrapper.disabled>button{z-index:-1}.ui-treeDropdown-wrapper.readonly>button{pointer-events:none}.ui-treeDropdown-caret{position:absolute;width:24px;height:24px;top:0;right:0;cursor:pointer;box-sizing:border-box}.ui-treeDropdown-caret:hover,.ui-treeDropdown-caret:active,.ui-treeDropdown-caret:focus{background-color:rgba(0,0,0,0)}.ui-treeDropdown label{position:absolute;bottom:26px;margin-top:0 !important;font-family:var(--vscode-font-family);font-size:13px;font-weight:bold;box-sizing:border-box;box-shadow:none;margin-right:0px;margin-bottom:0px;margin-left:0px;display:block;padding:4px 0;overflow-wrap:break-word}.ui-treeDropdown label.required:after{content:" *";color:var(--vscode-inputValidation-errorBorder)}.ui-treeDropdown label.disabled{opacity:.4}',""]),a.exports=c},"./src/components/UITreeDropdown/UITreeDropdown.scss"(a,_,o){"use strict";o.r(_),o.d(_,{default:()=>e});var D=o("../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=o.n(D),c=o("../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/styleDomAPI.js"),u=o.n(c),d=o("../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/insertBySelector.js"),p=o.n(d),f=o("../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),S=o.n(f),R=o("../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/insertStyleElement.js"),I=o.n(R),g=o("../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/styleTagTransform.js"),y=o.n(g),C=o("../../node_modules/.pnpm/css-loader@6.8.1_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[11].use[1]!../../node_modules/.pnpm/sass-loader@13.3.2_sass-embedded@1.97.3_sass@1.66.1_webpack@5.105.0_@swc+core@1.15.11_@_4f1593e189c7da437313975f630f8314/node_modules/sass-loader/dist/cjs.js!./src/components/UITreeDropdown/UITreeDropdown.scss"),h=o.n(C),w={};for(const s in C)s!=="default"&&(w[s]=()=>C[s]);o.d(_,w);var m={};m.styleTagTransform=y(),m.setAttributes=S(),m.insert=p().bind(null,"head"),m.domAPI=u(),m.insertStyleElement=I();var b=r()(h(),m);const e=h()&&h().locals?h().locals:void 0},"./src/components/UITreeDropdown/UITreeDropdown.tsx"(a,_,o){"use strict";var D=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(_,"__esModule",{value:!0}),_.UITreeDropdown=_.EdgePosition=_.UIDirectionalHint=void 0;const r=D(o("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),c=o("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/index.js"),u=o("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.25_@types+react@16.14.69__@types+react@16_dd78b5249e0d97499b5997ed3bfaf5b8/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(_,"UIDirectionalHint",{enumerable:!0,get:function(){return u.DirectionalHint}});const d=o("./src/components/UIInput/index.tsx"),p=o("./src/components/UIContextualMenu/index.tsx"),f=o("./src/components/UIButton/UIIconButton.tsx"),S=o("./src/components/Icons.tsx"),R=o("./src/helper/ValidationMessage/index.tsx");o("./src/components/UITreeDropdown/UITreeDropdown.scss");const I={callout:"ui-tree-callout",scrollArea:"ms-ContextualMenu-container",splitButton:"ms-ContextualMenu-splitMenu"};var g;(function(h){h.First="First",h.Last="Last"})(g||(_.EdgePosition=g={}));const y={ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Enter:"Enter",Escape:"Escape"};class C extends r.default.Component{constructor(w){var m,b;super(w),this.UITreeDropdownRef=r.default.createRef(),this.UITreeDropdownFocusZoneRef=r.default.createRef(),this.inputRef=r.default.createRef(),this.submenuRefs={},this.submenuOffset=0,this.lastKeyDown="",this.componentDidMount=()=>{this.props.items.length&&(this.buildItems(this.props.items),this.setState({isDisabled:!1}))},this.componentDidUpdate=e=>{this.props.items.length!==e.items.length&&(this.setState({isHidden:!0}),this.setState({isDisabled:!this.props.items.length}),this.buildItems(this.props.items)),this.props.value!==e.value&&this.setState({value:this.props.value}),this.calculateSubmenuOffset()},this.buildItems=e=>{if(this.state.items.length!==e.length){e=e.map(this.buildSubItems);const s=this.mapValuesToContextMenu(e);this.setState({originalItems:s,items:s})}},this.buildSubItems=e=>{var s;return(s=e.children)!=null&&s.length&&(e.children=e.children.map(t=>{const n=new RegExp(e.value,"ig"),i=t.value.search(n)===-1?`${e.value}${this.state.valueSeparator}${t.value}`:t.value;return T(M({},t),{split:!1,value:i})})),e},this.mapValuesToContextMenu=(e,s=0)=>e.map(t=>{var n;if((n=t.children)!=null&&n.length){t.split=!0;const i=this.getRefId(t.value,s);this.submenuRefs[i]||(this.submenuRefs[i]=r.default.createRef()),t.subMenuProps={componentRef:this.submenuRefs[i],items:this.mapValuesToContextMenu(t.children,s+1),focusZoneProps:{handleTabKey:u.FocusZoneTabbableElements.none,onFocus:()=>{var O,E,v,P;const l=(O=this.defaultSubmenuFocus)==null?void 0:O.parent;l&&l.item.value===t.value&&l.level===s&&this.focusItemWithValue(this.state.value,(P=(v=(E=this.defaultSubmenuFocus)==null?void 0:E.parent)==null?void 0:v.item.subMenuProps)==null?void 0:P.items)}}}}return T(M({},t),{key:t.value,text:t.label,className:"ui-tree-dropdown-list-item",onClick:()=>this.handleSelection(t.value),onRenderContent:this.handleRenderContent})}),this.handleSelection=e=>{this.hasSelected=!0,this.setState({value:e,valueChanged:!1},()=>this.props.onParameterValueChange(e))},this.handleKeyPress=e=>{switch(e.key){case"Enter":this.state.isMenuOpen?(this.setState({valueChanged:!0}),this.handleSelection(this.state.value?this.state.value:"")):this.toggleMenu(!1,e);break;case"ArrowDown":this.state.isMenuOpen?this.focusDropdown(e,e.key):this.toggleMenu(!1,e);break;case"Tab":this.state.isMenuOpen&&this.toggleMenu(!0),this.handleSelection(this.state.value?this.state.value:"");break;default:}this.lastKeyDown=e.key},this.focusDropdown=(e,s)=>{var t;this.UITreeDropdownFocusZoneRef&&(s===y.Enter?this.focusItemWithValue(this.state.value,this.state.items):(t=this.UITreeDropdownFocusZoneRef.current)==null||t.focus(!0),e.preventDefault())},this.handleRenderContent=(e,s)=>(e.item.className=e.item.value===this.props.value?"is-selected":"",e.item.text=this.highlightQuery(e.item.label,this.state.query),this.applySubmenuPosition(e.item),s?s.renderItemName(e):null),this.handleRenderMenuList=(e,s)=>{let t=[];return e!=null&&e.items&&(t=e.items.map(n=>{var i;return n.className=n.value===this.props.value?"is-selected":"",n.text=this.highlightQuery(n.label,this.state.query),this.applySubmenuPosition(n),(i=n.subMenuProps)==null||i.items.map(l=>(l.className=l.value===this.props.value?"is-selected":"",l)),M({},n)})),s?s(T(M({},e),{items:t})):null},this.toggleMenu=(e,s)=>{if(this.props.readOnly)return;this.setState({isHidden:e});const t=s==null?void 0:s.key;s&&setTimeout(()=>{s.persist(),this.focusDropdown(s,t)},0)},this.highlightQuery=(e,s)=>r.default.createElement(p.UIHighlightMenuOption,{text:e,query:s}),this.filterElement=(e,s)=>{var n;const t=new RegExp(e,"ig");return(n=s==null?void 0:s.children)!=null&&n.length?s.children.filter(i=>this.filterElement(e,i)).length>0:s!=null&&s.value?s.value.search(t)!==-1:!1},this.handleOnChangeValue=e=>{const s=e.target;this.hasSelected=!1,this.setState(t=>({value:s.value,items:t.originalItems.filter(n=>this.filterElement(s.value,n)),query:s.value,valueChanged:!0})),this.state.isMenuOpen||this.toggleMenu(!1)},this.handleDismiss=e=>{e&&"key"in e&&e.key===y.Escape?this.resetValue():this.hasSelected||this.props.onParameterValueChange(""),this.setState(s=>({items:s.originalItems,query:""})),this.toggleMenu(!0),this.originalValue=void 0},this.applySubmenuPosition=e=>{var s;(s=e.subMenuProps)!=null&&s.items&&(e.subMenuProps.calloutProps||(e.subMenuProps.calloutProps={}),e.subMenuProps.calloutProps.styles={root:{marginLeft:this.submenuOffset}})},this.getCalloutDomRef=(e=!1)=>{const s=`${I.callout}${this.state.uiidInput}`,t=document.querySelector(`.${s}`);return e&&t?t.nextSibling:t},this.calculateSubmenuOffset=()=>{const e=this.getCalloutDomRef();if(e){const s=e.querySelector(`.${I.scrollArea}`);this.submenuOffset=0,s&&s.scrollHeight>s.clientHeight&&(this.submenuOffset=s.offsetWidth-s.clientWidth)}},this.onFocusElementChanged=e=>{const s=e.getElementsByClassName("ts-Menu-option");document.getElementsByClassName("ms-Fabric--isFocusVisible").length>0&&s.length>0&&this.setState({value:e.value?e.value:s[0].innerText,valueChanged:!0})},this.onWindowKeyDown=e=>{var t;this.lastKeyDown=e.key;const s=document.activeElement;if([y.ArrowDown,y.ArrowUp].includes(e.key)&&s){const n=this.getEdgePosition(s),i=n.includes(g.First)&&e.key===y.ArrowUp,l=n.includes(g.Last)&&e.key===y.ArrowDown;(i||l)&&(i&&s.closest(`.${I.callout}${this.state.uiidInput}`)&&((t=this.inputRef.current)==null||t.focus()),e.stopPropagation(),e.preventDefault())}},this.handleCustomDownKey=e=>{this.lastKeyDown.includes("Arrow")&&(this.lastKeyDown="",this.onFocusElementChanged(e.target))},this.applyCustomKeyDownHandlingEvents=()=>{window.addEventListener("keydown",this.onWindowKeyDown,!0),window.addEventListener("focus",this.handleCustomDownKey,!0)},this.removeCustomKeyDownHandlingEvents=()=>{window.removeEventListener("keydown",this.onWindowKeyDown,!0),window.removeEventListener("focus",this.handleCustomDownKey,!0)},this.getEdgePosition=e=>{const s=e.closest("ul"),t=e.closest("li"),n=[];return s&&t&&(s.children[0]===t&&n.push(g.First),s.children[s.children.length-1]===t&&n.push(g.Last)),n},this.findItemByValue=(e,s=[],t,n=0)=>{var l,O;let i;for(let E=0;E<s.length;E++){const v=s[E],P={item:v,index:E,parent:t,level:n};if(v.value===e?i=P:(O=(l=v.subMenuProps)==null?void 0:l.items)!=null&&O.length&&(i=this.findItemByValue(e,v.subMenuProps.items,P,n+1)),i)break}return i},this.getItemTarget=(e,s)=>{let t;const n=e.querySelector(".ms-ContextualMenu-list");return n!=null&&n.childNodes[s.index]&&(t=n.childNodes[s.index].firstChild),t},this.focusItemWithValue=(e,s=[])=>{const t=this.findItemByValue(e,s),n=this.getCalloutDomRef(!!this.defaultSubmenuFocus);if(this.defaultSubmenuFocus=void 0,t&&n){let i;if(t.parent){const l=this.getItemTarget(n,t.parent);l&&(this.defaultSubmenuFocus=t,l.dispatchEvent(new KeyboardEvent("keydown",{keyCode:39,which:39,bubbles:!0})))}else i=this.getItemTarget(n,t);if(i)i.focus();else{const l=n.querySelector(`.${I.scrollArea}`);l==null||l.focus()}}},this.getRefId=(e,s)=>`${e}__${s}`,this.state={query:"",value:(m=this.props.value)!=null?m:"",isHidden:!0,originalItems:[],items:[],valueSeparator:(b=this.props.valueSeparator)!=null?b:".",uiidInput:(0,c.v4)(),isDisabled:!this.props.items.length,isMenuOpen:!1,valueChanged:!1},this.hasSelected=!!this.props.value,this.toggleMenu=this.toggleMenu.bind(this),this.onWindowKeyDown=this.onWindowKeyDown.bind(this),this.handleCustomDownKey=this.handleCustomDownKey.bind(this),(0,u.setIconOptions)({disableWarnings:!0})}resetValue(){this.setState({value:this.originalValue,valueChanged:!1})}getClassNames(){let w=`ui-treeDropdown-wrapper ui-treeDropdown-wrapper-menu${this.state.isMenuOpen?"-open":"-close"} ui-treeDropdown-wrapper-${this.state.uiidInput}`;return this.state.isDisabled&&(w+=" disabled"),this.props.readOnly&&(w+=" readonly"),w}render(){const w=(0,R.getMessageInfo)(this.props);let m=!0;return this.props.useTargetWidth&&(m=!1),r.default.createElement("div",{className:`ui-treeDropdown ui-treeDropDown-${this.state.uiidInput} ${this.props.label?"ui-treeDropdown-with-label":""}`},this.props.label&&r.default.createElement("label",{className:`${this.props.required?"required":""} ${this.state.isDisabled?"disabled":""}`},this.props.label),r.default.createElement("div",{className:this.getClassNames()},r.default.createElement(d.UITextInput,T(M({},this.props),{componentRef:this.inputRef,disabled:this.state.isDisabled,readOnly:this.props.readOnly,autoComplete:"off",value:this.state.value,placeholder:this.props.placeholderText,onKeyDown:this.handleKeyPress,onChange:this.handleOnChangeValue,onClick:()=>{this.toggleMenu(!1)},onFocus:b=>{b.target.select()},errorMessage:w.message})),r.default.createElement(f.UIIconButton,{tabIndex:-1,allowDisabledFocus:!0,className:"ui-treeDropdown-caret",iconProps:{iconName:S.UiIcons.ArrowDown},onClick:()=>{var b;this.state.isHidden&&((b=this.inputRef.current)==null||b.focus()),this.toggleMenu(!this.state.isHidden)}})),!this.state.isHidden&&r.default.createElement(p.UIContextualMenu,{componentRef:this.UITreeDropdownRef,onRenderMenuList:this.handleRenderMenuList,className:"ui-treeDropDown-context-menu",target:`.ui-treeDropDown-${this.state.uiidInput}`,onMenuOpened:()=>{this.originalValue=this.state.value,this.applyCustomKeyDownHandlingEvents(),this.setState({isMenuOpen:!0})},onMenuDismissed:()=>{this.removeCustomKeyDownHandlingEvents(),this.setState({isMenuOpen:!1}),this.state.valueChanged&&this.handleSelection(this.state.value?this.state.value:"")},useTargetWidth:m,useTargetAsMinWidth:!0,onRestoreFocus:b=>{var e;(e=b.originalElement)==null||e.focus()},shouldUpdateWhenHidden:!0,items:this.state.items,onDismiss:this.handleDismiss,shouldFocusOnContainer:!1,focusZoneProps:{componentRef:this.UITreeDropdownFocusZoneRef,handleTabKey:u.FocusZoneTabbableElements.none,isCircularNavigation:!1},shouldFocusOnMount:!1,directionalHint:this.props.directionalHint,calloutProps:{layerProps:{className:`${I.callout}${this.state.uiidInput}`},onLayerMounted:()=>{this.calculateSubmenuOffset()}},styles:{container:{maxHeight:192,overflowY:"auto"}},maxWidth:this.props.maxWidth}))}}_.UITreeDropdown=C},"./src/components/UITreeDropdown/index.tsx"(a,_,o){"use strict";var D=this&&this.__createBinding||(Object.create?(function(c,u,d,p){p===void 0&&(p=d);var f=Object.getOwnPropertyDescriptor(u,d);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(c,p,f)}):(function(c,u,d,p){p===void 0&&(p=d),c[p]=u[d]})),r=this&&this.__exportStar||function(c,u){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&D(u,c,d)};Object.defineProperty(_,"__esModule",{value:!0}),r(o("./src/components/UITreeDropdown/UITreeDropdown.tsx"),_)}}]);})();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(()=>{var A=Object.defineProperty,D=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var U=(b,d,c)=>d in b?A(b,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[d]=c,S=(b,d)=>{for(var c in d||(d={}))V.call(d,c)&&U(b,c,d[c]);if(h)for(var c of h(d))L.call(d,c)&&U(b,c,d[c]);return b},P=(b,d)=>D(b,R(d));(self.webpackChunk_sap_ux_ui_components=self.webpackChunk_sap_ux_ui_components||[]).push([[630],{"../../node_modules/.pnpm/css-loader@6.8.1_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/css-loader/dist/runtime/api.js"(b){b.exports=function(d){var c=[];return c.toString=function(){return this.map(function(m){var s="",f=typeof m[5]!="undefined";return m[4]&&(s+="@supports (".concat(m[4],") {")),m[2]&&(s+="@media ".concat(m[2]," {")),f&&(s+="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {")),s+=d(m),f&&(s+="}"),m[2]&&(s+="}"),m[4]&&(s+="}"),s}).join("")},c.i=function(m,s,f,e,v){typeof m=="string"&&(m=[[null,m,void 0]]);var u={};if(f)for(var o=0;o<this.length;o++){var j=this[o][0];j!=null&&(u[j]=!0)}for(var _=0;_<m.length;_++){var l=[].concat(m[_]);f&&u[l[0]]||(typeof v!="undefined"&&(typeof l[5]=="undefined"||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=v),s&&(l[2]&&(l[1]="@media ".concat(l[2]," {").concat(l[1],"}")),l[2]=s),e&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=e):l[4]="".concat(e)),c.push(l))}},c}},"../../node_modules/.pnpm/css-loader@6.8.1_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js"(b){b.exports=function(d){return d[1]}},"../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"(b){var d=[];function c(s){for(var f=-1,e=0;e<d.length;e++)if(d[e].identifier===s){f=e;break}return f}function y(s,f){for(var e={},v=[],u=0;u<s.length;u++){var o=s[u],j=f.base?o[0]+f.base:o[0],_=e[j]||0,l="".concat(j," ").concat(_);e[j]=_+1;var n=c(l),p={css:o[1],media:o[2],sourceMap:o[3],supports:o[4],layer:o[5]};if(n!==-1)d[n].references++,d[n].updater(p);else{var w=m(p,f);f.byIndex=u,d.splice(u,0,{identifier:l,updater:w,references:1})}v.push(l)}return v}function m(s,f){var e=f.domAPI(f);e.update(s);var v=function(o){if(o){if(o.css===s.css&&o.media===s.media&&o.sourceMap===s.sourceMap&&o.supports===s.supports&&o.layer===s.layer)return;e.update(s=o)}else e.remove()};return v}b.exports=function(s,f){f=f||{},s=s||[];var e=y(s,f);return function(u){u=u||[];for(var o=0;o<e.length;o++){var j=e[o],_=c(j);d[_].references--}for(var l=y(u,f),n=0;n<e.length;n++){var p=e[n],w=c(p);d[w].references===0&&(d[w].updater(),d.splice(w,1))}e=l}}},"../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/insertBySelector.js"(b){var d={};function c(m){if(typeof d[m]=="undefined"){var s=document.querySelector(m);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(f){s=null}d[m]=s}return d[m]}function y(m,s){var f=c(m);if(!f)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");f.appendChild(s)}b.exports=y},"../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/insertStyleElement.js"(b){function d(c){var y=document.createElement("style");return c.setAttributes(y,c.attributes),c.insert(y,c.options),y}b.exports=d},"../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"(b,d,c){function y(m){var s=c.nc;s&&m.setAttribute("nonce",s)}b.exports=y},"../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/styleDomAPI.js"(b){function d(m,s,f){var e="";f.supports&&(e+="@supports (".concat(f.supports,") {")),f.media&&(e+="@media ".concat(f.media," {"));var v=typeof f.layer!="undefined";v&&(e+="@layer".concat(f.layer.length>0?" ".concat(f.layer):""," {")),e+=f.css,v&&(e+="}"),f.media&&(e+="}"),f.supports&&(e+="}");var u=f.sourceMap;u&&typeof btoa!="undefined"&&(e+=`
|
|
2
|
+
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(u))))," */")),s.styleTagTransform(e,m,s.options)}function c(m){if(m.parentNode===null)return!1;m.parentNode.removeChild(m)}function y(m){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var s=m.insertStyleElement(m);return{update:function(e){d(s,m,e)},remove:function(){c(s)}}}b.exports=y},"../../node_modules/.pnpm/style-loader@3.3.3_webpack@5.105.0_@swc+core@1.15.11_@swc+helpers@0.5.19__esbuild@0.27.2_/node_modules/style-loader/dist/runtime/styleTagTransform.js"(b){function d(c,y){if(y.styleSheet)y.styleSheet.cssText=c;else{for(;y.firstChild;)y.removeChild(y.firstChild);y.appendChild(document.createTextNode(c))}}b.exports=d},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/index.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.version=d.validate=d.v7=d.v6ToV1=d.v6=d.v5=d.v4=d.v3=d.v1ToV6=d.v1=d.stringify=d.parse=d.NIL=d.MAX=void 0;var y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/max.js");Object.defineProperty(d,"MAX",{enumerable:!0,get:function(){return y.default}});var m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/nil.js");Object.defineProperty(d,"NIL",{enumerable:!0,get:function(){return m.default}});var s=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/parse.js");Object.defineProperty(d,"parse",{enumerable:!0,get:function(){return s.default}});var f=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js");Object.defineProperty(d,"stringify",{enumerable:!0,get:function(){return f.default}});var e=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v1.js");Object.defineProperty(d,"v1",{enumerable:!0,get:function(){return e.default}});var v=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v1ToV6.js");Object.defineProperty(d,"v1ToV6",{enumerable:!0,get:function(){return v.default}});var u=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v3.js");Object.defineProperty(d,"v3",{enumerable:!0,get:function(){return u.default}});var o=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v4.js");Object.defineProperty(d,"v4",{enumerable:!0,get:function(){return o.default}});var j=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v5.js");Object.defineProperty(d,"v5",{enumerable:!0,get:function(){return j.default}});var _=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v6.js");Object.defineProperty(d,"v6",{enumerable:!0,get:function(){return _.default}});var l=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v6ToV1.js");Object.defineProperty(d,"v6ToV1",{enumerable:!0,get:function(){return l.default}});var n=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v7.js");Object.defineProperty(d,"v7",{enumerable:!0,get:function(){return n.default}});var p=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/validate.js");Object.defineProperty(d,"validate",{enumerable:!0,get:function(){return p.default}});var w=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/version.js");Object.defineProperty(d,"version",{enumerable:!0,get:function(){return w.default}})},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/max.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/md5.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0});function c(n){const p=f(n),w=s(p,n.length*8);return y(w)}function y(n){const p=new Uint8Array(n.length*4);for(let w=0;w<n.length*4;w++)p[w]=n[w>>2]>>>w%4*8&255;return p}function m(n){return(n+64>>>9<<4)+14+1}function s(n,p){const w=new Uint32Array(m(p)).fill(0);w.set(n),w[p>>5]|=128<<p%32,w[w.length-1]=p,n=w;let t=1732584193,i=-271733879,r=-1732584194,a=271733878;for(let g=0;g<n.length;g+=16){const M=t,T=i,O=r,I=a;t=o(t,i,r,a,n[g],7,-680876936),a=o(a,t,i,r,n[g+1],12,-389564586),r=o(r,a,t,i,n[g+2],17,606105819),i=o(i,r,a,t,n[g+3],22,-1044525330),t=o(t,i,r,a,n[g+4],7,-176418897),a=o(a,t,i,r,n[g+5],12,1200080426),r=o(r,a,t,i,n[g+6],17,-1473231341),i=o(i,r,a,t,n[g+7],22,-45705983),t=o(t,i,r,a,n[g+8],7,1770035416),a=o(a,t,i,r,n[g+9],12,-1958414417),r=o(r,a,t,i,n[g+10],17,-42063),i=o(i,r,a,t,n[g+11],22,-1990404162),t=o(t,i,r,a,n[g+12],7,1804603682),a=o(a,t,i,r,n[g+13],12,-40341101),r=o(r,a,t,i,n[g+14],17,-1502002290),i=o(i,r,a,t,n[g+15],22,1236535329),t=j(t,i,r,a,n[g+1],5,-165796510),a=j(a,t,i,r,n[g+6],9,-1069501632),r=j(r,a,t,i,n[g+11],14,643717713),i=j(i,r,a,t,n[g],20,-373897302),t=j(t,i,r,a,n[g+5],5,-701558691),a=j(a,t,i,r,n[g+10],9,38016083),r=j(r,a,t,i,n[g+15],14,-660478335),i=j(i,r,a,t,n[g+4],20,-405537848),t=j(t,i,r,a,n[g+9],5,568446438),a=j(a,t,i,r,n[g+14],9,-1019803690),r=j(r,a,t,i,n[g+3],14,-187363961),i=j(i,r,a,t,n[g+8],20,1163531501),t=j(t,i,r,a,n[g+13],5,-1444681467),a=j(a,t,i,r,n[g+2],9,-51403784),r=j(r,a,t,i,n[g+7],14,1735328473),i=j(i,r,a,t,n[g+12],20,-1926607734),t=_(t,i,r,a,n[g+5],4,-378558),a=_(a,t,i,r,n[g+8],11,-2022574463),r=_(r,a,t,i,n[g+11],16,1839030562),i=_(i,r,a,t,n[g+14],23,-35309556),t=_(t,i,r,a,n[g+1],4,-1530992060),a=_(a,t,i,r,n[g+4],11,1272893353),r=_(r,a,t,i,n[g+7],16,-155497632),i=_(i,r,a,t,n[g+10],23,-1094730640),t=_(t,i,r,a,n[g+13],4,681279174),a=_(a,t,i,r,n[g],11,-358537222),r=_(r,a,t,i,n[g+3],16,-722521979),i=_(i,r,a,t,n[g+6],23,76029189),t=_(t,i,r,a,n[g+9],4,-640364487),a=_(a,t,i,r,n[g+12],11,-421815835),r=_(r,a,t,i,n[g+15],16,530742520),i=_(i,r,a,t,n[g+2],23,-995338651),t=l(t,i,r,a,n[g],6,-198630844),a=l(a,t,i,r,n[g+7],10,1126891415),r=l(r,a,t,i,n[g+14],15,-1416354905),i=l(i,r,a,t,n[g+5],21,-57434055),t=l(t,i,r,a,n[g+12],6,1700485571),a=l(a,t,i,r,n[g+3],10,-1894986606),r=l(r,a,t,i,n[g+10],15,-1051523),i=l(i,r,a,t,n[g+1],21,-2054922799),t=l(t,i,r,a,n[g+8],6,1873313359),a=l(a,t,i,r,n[g+15],10,-30611744),r=l(r,a,t,i,n[g+6],15,-1560198380),i=l(i,r,a,t,n[g+13],21,1309151649),t=l(t,i,r,a,n[g+4],6,-145523070),a=l(a,t,i,r,n[g+11],10,-1120210379),r=l(r,a,t,i,n[g+2],15,718787259),i=l(i,r,a,t,n[g+9],21,-343485551),t=e(t,M),i=e(i,T),r=e(r,O),a=e(a,I)}return Uint32Array.of(t,i,r,a)}function f(n){if(n.length===0)return new Uint32Array;const p=new Uint32Array(m(n.length*8)).fill(0);for(let w=0;w<n.length;w++)p[w>>2]|=(n[w]&255)<<w%4*8;return p}function e(n,p){const w=(n&65535)+(p&65535);return(n>>16)+(p>>16)+(w>>16)<<16|w&65535}function v(n,p){return n<<p|n>>>32-p}function u(n,p,w,t,i,r){return e(v(e(e(p,n),e(t,r)),i),w)}function o(n,p,w,t,i,r,a){return u(p&w|~p&t,n,p,i,r,a)}function j(n,p,w,t,i,r,a){return u(p&t|w&~t,n,p,i,r,a)}function _(n,p,w,t,i,r,a){return u(p^w^t,n,p,i,r,a)}function l(n,p,w,t,i,r,a){return u(w^(p|~t),n,p,i,r,a)}d.default=c},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/native.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0});const c=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);d.default={randomUUID:c}},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/nil.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default="00000000-0000-0000-0000-000000000000"},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/parse.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/validate.js");function m(s){if(!(0,y.default)(s))throw TypeError("Invalid UUID");let f;return Uint8Array.of((f=parseInt(s.slice(0,8),16))>>>24,f>>>16&255,f>>>8&255,f&255,(f=parseInt(s.slice(9,13),16))>>>8,f&255,(f=parseInt(s.slice(14,18),16))>>>8,f&255,(f=parseInt(s.slice(19,23),16))>>>8,f&255,(f=parseInt(s.slice(24,36),16))/1099511627776&255,f/4294967296&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255)}d.default=m},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/regex.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/rng.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0});let c;const y=new Uint8Array(16);function m(){if(!c){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");c=crypto.getRandomValues.bind(crypto)}return c(y)}d.default=m},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/sha1.js"(b,d){Object.defineProperty(d,"__esModule",{value:!0});function c(s,f,e,v){switch(s){case 0:return f&e^~f&v;case 1:return f^e^v;case 2:return f&e^f&v^e&v;case 3:return f^e^v}}function y(s,f){return s<<f|s>>>32-f}function m(s){const f=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520],v=new Uint8Array(s.length+1);v.set(s),v[s.length]=128,s=v;const u=s.length/4+2,o=Math.ceil(u/16),j=new Array(o);for(let _=0;_<o;++_){const l=new Uint32Array(16);for(let n=0;n<16;++n)l[n]=s[_*64+n*4]<<24|s[_*64+n*4+1]<<16|s[_*64+n*4+2]<<8|s[_*64+n*4+3];j[_]=l}j[o-1][14]=(s.length-1)*8/Math.pow(2,32),j[o-1][14]=Math.floor(j[o-1][14]),j[o-1][15]=(s.length-1)*8&4294967295;for(let _=0;_<o;++_){const l=new Uint32Array(80);for(let r=0;r<16;++r)l[r]=j[_][r];for(let r=16;r<80;++r)l[r]=y(l[r-3]^l[r-8]^l[r-14]^l[r-16],1);let n=e[0],p=e[1],w=e[2],t=e[3],i=e[4];for(let r=0;r<80;++r){const a=Math.floor(r/20),g=y(n,5)+c(a,p,w,t)+i+f[a]+l[r]>>>0;i=t,t=w,w=y(p,30)>>>0,p=n,n=g}e[0]=e[0]+n>>>0,e[1]=e[1]+p>>>0,e[2]=e[2]+w>>>0,e[3]=e[3]+t>>>0,e[4]=e[4]+i>>>0}return Uint8Array.of(e[0]>>24,e[0]>>16,e[0]>>8,e[0],e[1]>>24,e[1]>>16,e[1]>>8,e[1],e[2]>>24,e[2]>>16,e[2]>>8,e[2],e[3]>>24,e[3]>>16,e[3]>>8,e[3],e[4]>>24,e[4]>>16,e[4]>>8,e[4])}d.default=m},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.unsafeStringify=void 0;const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/validate.js"),m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function s(e,v=0){return(m[e[v+0]]+m[e[v+1]]+m[e[v+2]]+m[e[v+3]]+"-"+m[e[v+4]]+m[e[v+5]]+"-"+m[e[v+6]]+m[e[v+7]]+"-"+m[e[v+8]]+m[e[v+9]]+"-"+m[e[v+10]]+m[e[v+11]]+m[e[v+12]]+m[e[v+13]]+m[e[v+14]]+m[e[v+15]]).toLowerCase()}d.unsafeStringify=s;function f(e,v=0){const u=s(e,v);if(!(0,y.default)(u))throw TypeError("Stringified UUID is invalid");return u}d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v1.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.updateV1State=void 0;const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/rng.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js"),s={};function f(u,o,j){var n,p,w,t;let _;const l=(n=u==null?void 0:u._v6)!=null?n:!1;if(u){const i=Object.keys(u);i.length===1&&i[0]==="_v6"&&(u=void 0)}if(u)_=v((t=(w=u.random)!=null?w:(p=u.rng)==null?void 0:p.call(u))!=null?t:(0,y.default)(),u.msecs,u.nsecs,u.clockseq,u.node,o,j);else{const i=Date.now(),r=(0,y.default)();e(s,i,r),_=v(r,s.msecs,s.nsecs,l?void 0:s.clockseq,l?void 0:s.node,o,j)}return o!=null?o:(0,m.unsafeStringify)(_)}function e(u,o,j){var _,l;return(_=u.msecs)!=null||(u.msecs=-1/0),(l=u.nsecs)!=null||(u.nsecs=0),o===u.msecs?(u.nsecs++,u.nsecs>=1e4&&(u.node=void 0,u.nsecs=0)):o>u.msecs?u.nsecs=0:o<u.msecs&&(u.node=void 0),u.node||(u.node=j.slice(10,16),u.node[0]|=1,u.clockseq=(j[8]<<8|j[9])&16383),u.msecs=o,u}d.updateV1State=e;function v(u,o,j,_,l,n,p=0){if(u.length<16)throw new Error("Random bytes length must be >= 16");if(!n)n=new Uint8Array(16),p=0;else if(p<0||p+16>n.length)throw new RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);o!=null||(o=Date.now()),j!=null||(j=0),_!=null||(_=(u[8]<<8|u[9])&16383),l!=null||(l=u.slice(10,16)),o+=122192928e5;const w=((o&268435455)*1e4+j)%4294967296;n[p++]=w>>>24&255,n[p++]=w>>>16&255,n[p++]=w>>>8&255,n[p++]=w&255;const t=o/4294967296*1e4&268435455;n[p++]=t>>>8&255,n[p++]=t&255,n[p++]=t>>>24&15|16,n[p++]=t>>>16&255,n[p++]=_>>>8|128,n[p++]=_&255;for(let i=0;i<6;++i)n[p++]=l[i];return n}d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v1ToV6.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/parse.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js");function s(e){const v=typeof e=="string"?(0,y.default)(e):e,u=f(v);return typeof e=="string"?(0,m.unsafeStringify)(u):u}d.default=s;function f(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v3.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.URL=d.DNS=void 0;const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/md5.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v35.js");var s=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v35.js");Object.defineProperty(d,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(d,"URL",{enumerable:!0,get:function(){return s.URL}});function f(e,v,u,o){return(0,m.default)(48,y.default,e,v,u,o)}f.DNS=m.DNS,f.URL=m.URL,d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v35.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.URL=d.DNS=d.stringToBytes=void 0;const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/parse.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js");function s(e){e=unescape(encodeURIComponent(e));const v=new Uint8Array(e.length);for(let u=0;u<e.length;++u)v[u]=e.charCodeAt(u);return v}d.stringToBytes=s,d.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",d.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function f(e,v,u,o,j,_){const l=typeof u=="string"?s(u):u,n=typeof o=="string"?(0,y.default)(o):o;if(typeof o=="string"&&(o=(0,y.default)(o)),(o==null?void 0:o.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let p=new Uint8Array(16+l.length);if(p.set(n),p.set(l,n.length),p=v(p),p[6]=p[6]&15|e,p[8]=p[8]&63|128,j){_=_||0;for(let w=0;w<16;++w)j[_+w]=p[w];return j}return(0,m.unsafeStringify)(p)}d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v4.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/native.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/rng.js"),s=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js");function f(e,v,u){var j,_,l;if(y.default.randomUUID&&!v&&!e)return y.default.randomUUID();e=e||{};const o=(l=(_=e.random)!=null?_:(j=e.rng)==null?void 0:j.call(e))!=null?l:(0,m.default)();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,v){if(u=u||0,u<0||u+16>v.length)throw new RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let n=0;n<16;++n)v[u+n]=o[n];return v}return(0,s.unsafeStringify)(o)}d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v5.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.URL=d.DNS=void 0;const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/sha1.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v35.js");var s=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v35.js");Object.defineProperty(d,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(d,"URL",{enumerable:!0,get:function(){return s.URL}});function f(e,v,u,o){return(0,m.default)(80,y.default,e,v,u,o)}f.DNS=m.DNS,f.URL=m.URL,d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v6.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v1.js"),s=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v1ToV6.js");function f(e,v,u){e!=null||(e={}),u!=null||(u=0);let o=(0,m.default)(P(S({},e),{_v6:!0}),new Uint8Array(16));if(o=(0,s.default)(o),v){for(let j=0;j<16;j++)v[u+j]=o[j];return v}return(0,y.unsafeStringify)(o)}d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v6ToV1.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/parse.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js");function s(e){const v=typeof e=="string"?(0,y.default)(e):e,u=f(v);return typeof e=="string"?(0,m.unsafeStringify)(u):u}d.default=s;function f(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/v7.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0}),d.updateV7State=void 0;const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/rng.js"),m=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/stringify.js"),s={};function f(u,o,j){var l,n,p;let _;if(u)_=v((p=(n=u.random)!=null?n:(l=u.rng)==null?void 0:l.call(u))!=null?p:(0,y.default)(),u.msecs,u.seq,o,j);else{const w=Date.now(),t=(0,y.default)();e(s,w,t),_=v(t,s.msecs,s.seq,o,j)}return o!=null?o:(0,m.unsafeStringify)(_)}function e(u,o,j){var _,l;return(_=u.msecs)!=null||(u.msecs=-1/0),(l=u.seq)!=null||(u.seq=0),o>u.msecs?(u.seq=j[6]<<23|j[7]<<16|j[8]<<8|j[9],u.msecs=o):(u.seq=u.seq+1|0,u.seq===0&&u.msecs++),u}d.updateV7State=e;function v(u,o,j,_,l=0){if(u.length<16)throw new Error("Random bytes length must be >= 16");if(!_)_=new Uint8Array(16),l=0;else if(l<0||l+16>_.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);return o!=null||(o=Date.now()),j!=null||(j=u[6]*127<<24|u[7]<<16|u[8]<<8|u[9]),_[l++]=o/1099511627776&255,_[l++]=o/4294967296&255,_[l++]=o/16777216&255,_[l++]=o/65536&255,_[l++]=o/256&255,_[l++]=o&255,_[l++]=112|j>>>28&15,_[l++]=j>>>20&255,_[l++]=128|j>>>14&63,_[l++]=j>>>6&255,_[l++]=j<<2&255|u[10]&3,_[l++]=u[11],_[l++]=u[12],_[l++]=u[13],_[l++]=u[14],_[l++]=u[15],_}d.default=f},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/validate.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/regex.js");function m(s){return typeof s=="string"&&y.default.test(s)}d.default=m},"../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/version.js"(b,d,c){Object.defineProperty(d,"__esModule",{value:!0});const y=c("../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/cjs-browser/validate.js");function m(s){if(!(0,y.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}d.default=m}}]);})();
|