1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="624a04fc-af65-471f-889f-642871ee04e0",t._sentryDebugIdIdentifier="sentry-dbid-624a04fc-af65-471f-889f-642871ee04e0")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[52985],{5968:(t,e,i)=>{i.d(e,{Y:()=>L});var n=i(30002);class l{copy(){return new l(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return 0===this.x&&0===this.y}constructor(t=0,e=0){this.x=t,this.y=e}}class o{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new l(this.x,this.y)}get topRight(){return new l(this.maxX,this.y)}get bottomLeft(){return new l(this.x,this.maxY)}get bottomRight(){return new l(this.maxX,this.maxY)}intersects(t){return this.area>0&&t.area>0&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let e of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[e]))return e;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-e,l=Math.max(this.maxY,t.maxY)-i;return new o(e,i,n,l)}intersection(t){if(!this.intersects(t))return new o(0,0,0,0);let e=Math.max(this.x,t.x),i=Math.max(this.y,t.y);return new o(e,i,Math.min(this.maxX,t.maxX)-e,Math.min(this.maxY,t.maxY)-i)}copy(){return new o(this.x,this.y,this.width,this.height)}constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}}class s{copy(){return new s(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}constructor(t=0,e=0){this.width=Math.max(t,0),this.height=Math.max(e,0)}}let r=0;class h{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(t){let e=this.reusableViews.get(t);return e&&e.length>0?e.shift():new u(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let e=this.reusableViews.get(t.viewType);e||(e=[],this.reusableViews.set(t.viewType,e)),e.push(t)}constructor(t,e){this.virtualizer=t,this.key=++r,this.viewType=e,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class a extends h{constructor(t){super(t,"root")}}class u extends h{constructor(t,e,i){super(t,i),this.parent=e}}class d{setVisibleRect(t){let e=performance.now()-this.startTime;e<500&&(t.x!==this.visibleRect.x&&e>0&&(this.velocity.x=(t.x-this.visibleRect.x)/e),t.y!==this.visibleRect.y&&e>0&&(this.velocity.y=(t.y-this.visibleRect.y)/e)),this.startTime=performance.now(),this.visibleRect=t}getOverscannedRect(){let t=this.visibleRect.copy(),e=this.visibleRect.height/3;t.height+=e,this.velocity.y<0&&(t.y-=e);let i=this.visibleRect.width/3;return t.width+=i,this.velocity.x<0&&(t.x-=i),t}constructor(){this.startTime=0,this.velocity=new l(0,0),this.visibleRect=new o}}function c(t){return"x"===t?"width":"height"}function y(t,e,i,n,l){if("start"===i)return t[n]<=l;let o=c(n);return e[o]-(t[n]+t[o])<=l}class g{reset(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}captureBeforeLayout(t,e,i){return t?function(t,e,i,n){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!0,o=c(e),s=null;for(let[h,a]of n){if(!a||!l(a))continue;let n=a.rect.intersection(i)[o];if(a.rect.area>0&&n>=4){var r;let n=null!=(r=a.rect.getCornerInRect(i))?r:"topLeft",l=a.rect[n][e]-i[e];(!s||("end"===t?l<s.offset:l>s.offset))&&(s={key:h,corner:n,offset:l})}}return s}(t.edge,t.axis,i,e,t.isAnchorable):null}resolveAfterLayout(t){let{anchorInfo:e,anchor:i,postLayoutInfos:n,previousVisibleRect:l,previousContentSize:s,contentSize:r,itemSizeChanged:h,isScrolling:a,getLayoutInfo:u}=t;if(!e)return null;let d=this.hadEstimatedVisibleItems,g=this.wasNearAnchorEdge,f=!1;for(let t of n.values())if(t.estimatedSize){f=!0;break}if(this.hadEstimatedVisibleItems=f,d||(this.wasNearAnchorEdge=y(l,s,e.edge,e.axis,e.threshold)),0===l.area)return null;let w="x"===e.axis?"width":"height",v=r[w]-s[w],p=!this.hasSnappedToEdge;if(this.hasSnappedToEdge=!0,!(p||0!==v||h))return null;let z=p||d&&g||y(l,s,e.edge,e.axis,e.threshold);d||(this.wasNearAnchorEdge=z);let m=p||d&&g?null:i;
1return function(t,e,i,n,l,s,r,h,a,u){let d=t=>"x"===e?new o(t,a.y,a.width,a.height):new o(a.x,t,a.width,a.height);if(i){let t=function(t,e,i,n,l){let o=i(t.key);if(!o)return null;let s=o.rect[t.corner][e]-n[e]-t.offset;if(0===s)return null;let r=n[e]+s,h=c(e),a=Math.max(0,Math.min(Math.max(0,l[h]-n[h]),r));return a!==n[e]?a:null}(i,e,h,a,u);if(null!=t)return d(t)}if(n&&!l&&(!s||r>0)){let i=d(function(t,e,i,n){if("start"===t)return 0;let l=c(e);return Math.max(0,i[l]-n[l])}(t,e,u,a));return i.equals(a)?null:i}return null}(e.edge,e.axis,m,z,a,h,v,u,l,r)}constructor(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}}class f{isPersistedKey(t){if(this.persistedKeys.has(t))return!0;for(let e of this.persistedKeys)for(;null!=e;){let i=this.layout.getLayoutInfo(e);if(!i||null==i.parentKey)break;if((e=i.parentKey)===t)return!0}return!1}getParentView(t){return null!=t.parentKey?this._visibleViews.get(t.parentKey):this._rootView}getReusableView(t){let e=this.getParentView(t).getReusableView(t.type);return e.layoutInfo=t,this._renderView(e),e}_renderView(t){if(t.layoutInfo){let{type:e,key:i,content:n}=t.layoutInfo;t.content=n||this.collection.getItem(i),t.rendered=this._renderContent(e,t.content)}}_renderContent(t,e){let i=null!=e?this._renderedContent.get(e):null;if(null!=i)return i;let n=this.delegate.renderView(t,e);return e&&this._renderedContent.set(e,n),n}keyAtPoint(t){let e=new o(t.x,t.y,1,1);for(let t of 0===e.area?[]:this.layout.getVisibleLayoutInfos(e))if(t.rect.intersects(e))return t.key;return null}relayout(){var t,e,i,n,l;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},h=null!=(i=null==(t=(e=this.layout).UNSTABLE_getScrollAnchorInfo)?void 0:t.call(e,r.layoutOptions))?i:null,a=null;if(h){let t=[];for(let[e,i]of this._visibleViews){let l=null!=(n=this.layout.getLayoutInfo(e))?n:i.layoutInfo;l&&t.push([e,l])}a=this._scrollAnchor.captureBeforeLayout(h,t,this.visibleRect)}let u=this.contentSize,d=this.visibleRect;this.layout.update(r);let c=this.layout.getContentSize();this.contentSize=new s(c.width,c.height);let y=this._scrollAnchor.resolveAfterLayout({anchorInfo:h,anchor:a,postLayoutInfos:h?this.getVisibleLayoutInfos():new Map,previousVisibleRect:d,previousContentSize:u,contentSize:this.contentSize,itemSizeChanged:null!=(l=r.itemSizeChanged)&&l,isScrolling:this._isScrolling,getLayoutInfo:t=>this.layout.getLayoutInfo(t)});if(y)return void this.delegate.setVisibleRect(y);let g=this.visibleRect,f=r.contentChanged?0:g.x,w=r.contentChanged?0:g.y;if(f=Math.max(0,Math.min(this.contentSize.width-g.width,f)),w=Math.max(0,Math.min(this.contentSize.height-g.height,w)),f!==g.x||w!==g.y){let t=new o(f,w,g.width,g.height);this.delegate.setVisibleRect(t)}else this.updateSubviews()}getVisibleLayoutInfos(){let t;t=this._overscanManager.getOverscannedRect();let e=this.layout.getVisibleLayoutInfos(t),i=new Map;for(let t of e)i.set(t.key,t);return i}updateSubviews(){let t=this.getVisibleLayoutInfos(),e=new Set;for(let[i,n]of this._visibleViews){let l=t.get(i);l&&n.parent===this.getParentView(l)||(this._visibleViews.delete(i),n.parent.reuseChild(n),e.add(n))}for(let[i,n]of t){let t=this._visibleViews.get(i);if(t){t.layoutInfo=n;let e=this.collection.getItem(n.key);t.content!==e&&(null!=t.content&&this._renderedContent.delete(t.content),this._renderView(t))}else(t=this.getReusableView(n)).parent.children.add(t),this._visibleViews.set(i,t),e.delete(t)}for(let t of e)t.parent.children.delete(t),t.parent.reusableViews.clear();if(!this._isScrolling)for(let e of t.keys()){let t=this._visibleViews.get(e);t.parent.children.delete(t),t.parent.children.add(t)}}render(t){let e=!1,i=!1,n=!1,l=!1,s=!1,r=!1,h=!1,a=!1;if(t.collection!==this.collection&&(this.collection=t.collection,e=!0),(t.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),t.layout.virtualizer=this,this.layout=t.layout,this._scrollAnchor.reset(),e=!0),t.persistedKeys&&!function(t,e){if(t===e)return!0;if(t.size!==e.size)return!1;for(let i of t)if(!e.has(i))return!1;return!0}(t.persistedKeys,this.persistedKeys)&&(this.persistedKeys=t.persistedKeys,a=!0),!this.visibleRect.equals(t.visibleRect)||!this.size.equals(t.size)){this._overscanManager.setVisibleRect(t.visibleRect);let r=new o(this.visibleRect.x,this.visibleRect.y,this.size.width,this.size.height),h=new o(t.visibleRect.x,t.visibleRect.y,t.size.width,t.size.height);this.layout.shouldInvalidate(h,r)?(i=!t.visibleRect.pointEquals(this.visibleRect),n=!this.size.equals(t.size),l=this.size.width!==t.size.width,s=this.size.height!==t.size.height,e=!0):a=!0,this.visibleRect=t.visibleRect,this.size=t.size}return t.invalidationContext!==this._invalidationContext&&(t.invali
1dationContext&&(n||(n=t.invalidationContext.sizeChanged||!1),l||(l=t.invalidationContext.widthChanged||!1),s||(s=t.invalidationContext.heightChanged||!1),i||(i=t.invalidationContext.offsetChanged||!1),r||(r=t.invalidationContext.itemSizeChanged||!1),h||(h=null!=t.invalidationContext.layoutOptions&&null!=this._invalidationContext.layoutOptions&&t.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(t.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),e||(e=r||n||i||h)),this._invalidationContext=t.invalidationContext),t.isScrolling!==this._isScrolling&&(this._isScrolling=t.isScrolling,t.isScrolling||(a=!0)),e?this.relayout({offsetChanged:i,sizeChanged:n,widthChanged:l,heightChanged:s,itemSizeChanged:r,layoutOptionsChanged:h,layoutOptions:this._invalidationContext.layoutOptions}):a&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(t){return this._visibleViews.get(t)}invalidate(t){this.delegate.invalidate(t)}updateItemSize(t,e){this.layout.updateItemSize&&this.layout.updateItemSize(t,e)&&this.invalidate({itemSizeChanged:!0})}constructor(t){this.delegate=t.delegate,this.collection=t.collection,this.layout=t.layout,this.contentSize=new s,this.visibleRect=new o,this.size=new s,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new a(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new d,this._scrollAnchor=new g}}var w=i(25398);let v="undefined"!=typeof document?w.useLayoutEffect:()=>{};var p=i(70517),z=i(24342);let m=null;var x=i(87816),S=i(68800),b=i(84062),I=i(82287),R=i(72003),C=i(88992);function k(t){let{style:e,className:i,layoutInfo:n,virtualizer:l,parent:o,children:r,shouldObserveItemSize:h}=t,{direction:a}=(0,b.Y)(),u=(0,w.useRef)(null);return!function(t){let{layoutInfo:e,virtualizer:i,ref:n,shouldObserveItemSize:l}=t,o=null==e?void 0:e.key,r=(0,w.useCallback)(()=>{if(null!=o&&n.current){var t;let e,l;if(!(0,C.J)(n.current))return;let r=(e=(t=n.current).style.height,t.style.height="",l=new s(t.scrollWidth,t.scrollHeight),t.style.height=e,l);i.updateItemSize(o,r)}},[i,o,n]),h=(0,x.J)(r);(0,S.N)(()=>{(null==e?void 0:e.estimatedSize)&&h()}),(0,w.useEffect)(()=>{if(!l)return;let t=n.current;if(!t||"undefined"==typeof ResizeObserver)return;let e=new ResizeObserver(t=>{t.length&&h()});for(let i of t.children)e.observe(i);return()=>{e.disconnect()}},[l,n,o])}({layoutInfo:n,virtualizer:l,ref:u,shouldObserveItemSize:h}),w.createElement("div",{role:"presentation",ref:u,className:i,style:{...function(t,e,i){var n;let l="rtl"===e?"right":"left",o=V.get(t);if(o&&null!=o[l]){if(!i)return o;let e=t.rect.y-i.rect.y,n=t.rect.x-i.rect.x;if(o.top===e&&o[l]===n)return o}let s={top:t.rect.y-(i&&!(i.allowOverflow&&t.isSticky)?i.rect.y:0),[l]:t.rect.x-(i&&!(i.allowOverflow&&t.isSticky)?i.rect.x:0),width:t.rect.width,height:t.rect.height};Object.entries(s).forEach(t=>{let[e,i]=t;Number.isFinite(i)||(s[e]=void 0)});let r={position:t.isSticky?"sticky":"absolute",display:t.isSticky?"inline-block":void 0,overflow:t.allowOverflow?"visible":"hidden",opacity:t.opacity,zIndex:t.zIndex,transform:null!=(n=t.transform)?n:void 0,contain:"size layout style",...s};return V.set(t,r),r}(n,a,o),...e}},r)}let V=new WeakMap,E=(0,w.createContext)(null),M=(0,w.createContext)(null);function L(t){let{children:e,layout:i,layoutOptions:l}=t,o=(0,w.useMemo)(()=>"function"==typeof i?new i:i,[i]),s=(0,w.useMemo)(()=>({isVirtualized:!0,layoutDelegate:o,dropTargetDelegate:o.getDropTargetFromPoint?o:void 0,CollectionRoot:O,CollectionBranch:T}),[o]);return w.createElement(n.zL.Provider,{value:s},w.createElement(M.Provider,{value:{layout:o,layoutOptions:l}},e))}function O(t){var e;let{collection:i,persistedKeys:n,scrollRef:r,renderDropIndicator:h}=t,{layout:a,layoutOptions:u}=(0,w.useContext)(M),d=null==(e=a.useLayoutOptions)?void 0:e.call(a),c=function(t){let[e,i]=(0,w.useState)(new o(0,0,0,0)),[n,l]=(0,w.useState)(new s),[r,h]=(0,w.useState)(!1),[a,u]=(0,w.useState)({}),d=(0,w.useRef)(!1),[c]=(0,w.useState)(()=>new f({collection:t.collection,layout:t.layout,delegate:{setVisibleRect(t){i(t),d.current=!0},renderView:t.renderView,invalidate:u}}));v(()=>{d.current&&(d.current=!1,t.onVisibleRectChange(e))});let y=(0,w.useMemo)(()=>null!=t.layoutOptions?{...a,layoutOptions:t.layoutOptions}:a,[a,t.layoutOptions]),g=c.render({layout:t.layout,collection:t.collection,persistedKeys:t.persistedKeys,layoutOptions:t.layoutOptions,visibleRect:e,size:t.allowsWindowScrolling?n:e,invalidationContext:y,isScrolling:r}),p=c.contentSize,z=(0,w.useCallback)(()=>{h(!0)},[]),m=(0,w.useCallback)(()=>{h(!1)},[]);return(0,w.useMemo)(()=>({virtualizer:c,visibleViews:g,setVisibleRect:i,size:n,setSize:l,contentSize:p,isScrolling:r,startScrolling:z,endScrolling:m}),[c,g,i,n,l,p,r,z,m])}({layout:a,collection:i,renderView:(t,e)=>{var i;return null==e||null==(i=e.render)?void 0:i.call(e,e)},onVisibleRectChange(t){let e=null==r?void 0:r.current;e&&(e.scrollLeft=t.x,e.scrollTop=t.y)},persistedKeys:n,layoutOptions:(0,w.useMemo)(()=>u&&d?{...u,...d}:u||d,[u,d])}),{contentProps:y}=function(t,e){let{contentSize:i,onVisibleRectChange:n,onSizeChange:r,innerStyle:h,onScrollStart:a,onScrollEnd:u,scrollDirection:d="both",onScroll:c,allowsWindowScrolling:y,...g}=t,f=(0,w.useRef)({scrollPosition:new l,size:new s,viewportOffset:new l,viewportSize:new s,scrollEndTime:0,scrollTimeout:null,isScrolling:!1,lastVisibleRect:new o}).current,{direction:v}=(0,b.Y)(),C=(0,w.useCallback)(()=>{let t=y?new o(f.viewportOffset.x+f.scrollPosition.x,f.viewportOffset.y+f.scrollPosition.y,Math.max(0,Math.min(f.size.width-f.viewportOffset.x,f.viewportSize.width)),Math.max(0,Math.min(f.size.height-f.viewportOffset.y,f.viewportSize.height))):new o(f.scrollPosition.x,f.scrollPosition.y,f.size.width,f.size.height);(t.area>0||f.lastVisibleRect.area>0)&&(n(t),f.lastVisibleRect=t)},[f,y,n]),[k,V]=(0,w.useState)(!1),E=(0,w.useCallback)(t=>{let n=(0,z.wt)(t);if((0,z.sD)(n,e.current)){if(c&&n===e.current&&c(t),n!==e.current){let t=e.current.getBoundingClientRect(),i=t.x<0?-t.x:0,n=t.y<0?-t.y:0;if(i===f.viewportOffset.x&&n===f.viewportOffset.y)return;f.viewportOffset=new l(i,n)}else{let t=n.scrollTop;f.scrollPosition=new l(Math.max(0,Math.min(function(t,e){let{scrollLeft:i}=t;if("rtl"===e){let{scrollWidth:e,clientWidth:n}=t;switch(function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===m||t){let t=document.createElement("div"),e=t.style;e.width="50px",e.height="50px",e.overflow="scroll",e.direction="rtl";let i=document.createElement("div"),n=i.style;n.width="100px",n.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?m="positive-descending":(t.scrollLeft=1,m=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t)}return m}()){case"negative":i=-i;break;case"positive-descending":i=e-n-i}}return i}(n,v),i.width-f.size.width)),Math.max(0,Math.min(t,i.height-f.size.height)))}(0,R.flushSync)(()=>{C(),!f.isScrolling&&(f.isScrolling=!0,V(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),a&&a());let t=Date.now();f.scrollEndTime<=t+50&&(f.scrollEndTime=t+300,null!=f.scrollTimeout&&clearTimeout(f.scrollTimeout),f.scrollTimeout=setTimeout(()=>{f.isScrolling=!1,V(!1),f.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),u&&u()},300))})}},[c,e,v,f,i,C,a,u]);(0,w.useEffect)(()=>(0,p.W2)((0,z.vK)(e.current,(0,p.TW)(e.current)),"scroll",E,!0),[E,e]),(0,w.useEffect)(()=>()=>{null!=f.scrollTimeout&&clearTimeout(f.scrollTimeout),f.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let M=(0,w.useRef)(!1),L=(0,w.useCallback)(t=>{let i=e.current;if(!i||M.current)return;M.current=!0,Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");let n=i.clientWidth,l=i.clientHeight,o=window.innerWidth,h=window.innerHeight,a=f.viewportSize.width!==o||f.viewportSize.height!==h;a&&(f.viewportSize=new s(o,h)),(f.size.width!==n||f.size.height!==l||a)&&(f.size=new s(n,l),t(()=>{C(),null==r||r(f.size)}),(n!==i.clientWidth||l!==i.clientHeight)&&(f.size=new s(i.clientWidth,i.clientHeight),t(()=>{C(),null==r||r(f.size)}))),M.current=!1}
1,[e,f,C,r]),O=(0,x.J)(L);(0,S.N)(()=>{f.viewportSize=new s(window.innerWidth,window.innerHeight);let t=()=>{O(R.flushSync)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[f]);let T=(0,w.useRef)(null),[_,H]=(0,w.useState)({});(0,S.N)(()=>{if(!M.current&&(null==T.current||!i.equals(T.current)))if("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest){H({}),T.current=i;return}else queueMicrotask(()=>O(R.flushSync));T.current=i}),(0,S.N)(()=>{O(t=>t())},[_]);let N=(0,w.useCallback)(()=>{L(R.flushSync)},[L]);(0,I.w)({ref:e,box:"border-box",onResize:N});let P={padding:0,...g.style};return"horizontal"===d?(P.overflowX="auto",P.overflowY="hidden"):"vertical"===d||i.width===f.size.width?(P.overflowY="auto",P.overflowX="hidden"):P.overflow="auto",h={width:Number.isFinite(i.width)?i.width:void 0,height:Number.isFinite(i.height)?i.height:void 0,pointerEvents:k?"none":"auto",position:"relative",...h},{isScrolling:k,scrollViewProps:{...g,style:P},contentProps:{role:"presentation",style:h}}}({onVisibleRectChange:c.setVisibleRect,contentSize:c.contentSize,onScrollStart:c.startScrolling,onScrollEnd:c.endScrolling},r);return w.createElement("div",y,w.createElement(E.Provider,{value:c},_(null,c.visibleViews,h)))}function T(t){let{parent:e,renderDropIndicator:i}=t,n=(0,w.useContext)(E).virtualizer.getVisibleView(e.key);return _(n,Array.from(n.children),i)}function _(t,e,i){return e.map(e=>(function(t,e,i){let l=w.createElement(k,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:null==t?void 0:t.layoutInfo},e.rendered),{collection:o,layout:s}=e.virtualizer,r=e.content;return(null==r?void 0:r.type)==="item"&&i&&s.getDropTargetLayoutInfo&&(l=w.createElement(w.Fragment,{key:e.key},H(t,e,{type:"item",key:e.content.key,dropPosition:"before"},i),l,(0,n.Cv)(o,r,n=>H(t,e,n,i)))),l})(t,e,i))}function H(t,e,i,n){let l=n(i);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(i);l=w.createElement(k,{layoutInfo:n,virtualizer:e.virtualizer,parent:null==t?void 0:t.layoutInfo},l)}return l}},42068:(t,e,i)=>{function n(t,e){return"function"==typeof e.getChildren?e.getChildren(t.key):t.childNodes}i.d(e,{$:()=>a});class l{shouldInvalidate(t,e){return t.width!==e.width||t.height!==e.height}shouldInvalidateLayoutOptions(t,e){return t!==e}update(t){}getItemRect(t){var e,i;return null!=(i=null==(e=this.getLayoutInfo(t))?void 0:e.rect)?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class o{copy(){let t=new o(this.type,this.key,this.rect.copy());return t.estimatedSize=this.estimatedSize,t.opacity=this.opacity,t.transform=this.transform,t.parentKey=this.parentKey,t.content=this.content,t.isSticky=this.isSticky,t.zIndex=this.zIndex,t.allowOverflow=this.allowOverflow,t}constructor(t,e,i){this.type=t,this.key=e,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class s{copy(){return new s(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return 0===this.x&&0===this.y}constructor(t=0,e=0){this.x=t,this.y=e}}class r{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new s(this.x,this.y)}get topRight(){return new s(this.maxX,this.y)}get bottomLeft(){return new s(this.x,this.maxY)}get bottomRight(){return new s(this.maxX,this.maxY)}intersects(t){return this.area>0&&t.area>0&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let e of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[e]))return e;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-e,l=Math.max(this.maxY,t.maxY)-i;return new r(e,i,n,l)}intersection(t){if(!this.intersects(t))return new r(0,0,0,0);let e=Math.max(this.x,t.x),i=Math.max(this.y,t.y);return new r(e,i,Math.min(this.maxX,t.maxX)-e,Math.min(this.maxY,t.maxY)-i)}copy(){return new r(this.x,this.y,this.width,this.height)}constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}}class h{copy(){return new h(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}constructor(t=0,e=0){this.width=Math.max(t,0),this.height=Math.max(e,0)}}class a extends l{get collection(){return this.virtualizer.collection}get rowHeight(){return this.rowSize}get estimatedRowHeight(){return this.estimatedRowSize}get headingHeight(){return this.headingSize}get estimatedHeadingHeight(){return this.estimatedHeadingSize}get loaderHeight(){return this.loaderSize}getLayoutInfo(t){var e;return this.ensureLayoutInfo(t),(null==(e=this.layoutNodes.get(t))?void 0:e.layoutInfo)||null}getVisibleLayoutInfos(t){let e="horizontal"===this.orientation?"x":"y",i="horizontal"===this.orientation?"width":"height";if(t[i]>1){var n,l;let o=(null!=(l=null!=(n=this.rowSize)?n:this.estimatedRowSize)?l:48)+this.gap,s=Math.floor((t=t.copy())[e]/o)*o,r=t[i]+t[e]-s;t[e]=s,t[i]=Math.ceil(r/o)*o}this.layoutIfNeeded(t);let o=[],s=e=>{for(let i of e)this.isVisible(i,t)&&(o.push(i.layoutInfo),i.children&&s(i.children))};return s(this.rootNodes),o}layoutIfNeeded(t){if(this.lastCollection){for(let e of(this.requestedRect.containsRect(t)||(this.requestedRect=this.requestedRect.union(t),this.rootNodes=this.buildCollection()),this.virtualizer.persistedKeys))if(this.ensureLayoutInfo(e))return}}ensureLayoutInfo(t){return!this.layoutNodes.has(t)&&this.requestedRect.area<this.contentSize.area&&!!this.lastCollection&&(this.requestedRect=new r(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new r(0,0,this.contentSize.width,this.contentSize.height),!0)}isVisible(t,e){return t.layoutInfo.rect.intersects(e)||t.layoutInfo.isSticky||"header"===t.layoutInfo.type||"loader"===t.layoutInfo.type||this.virtualizer.isPersistedKey(t.layoutInfo.key)}shouldInvalidateEverything(t){var e,i,n,l,o,s,r,h,a;let u=t.layoutOptions;return t.sizeChanged||this.rowSize!==(null!=(i=null!=(e=null==u?void 0:u.rowSize)?e:null==u?void 0:u.rowHeight)?i:this.rowSize)||this.orientation!==(null!=(n=null==u?void 0:u.orientation)?n:this.orientation)||this.headingSize!==(null!=(o=null!=(l=null==u?void 0:u.headingSize)?l:null==u?void 0:u.headingHeight)?o:this.headingSize)||this.loaderSize!==(null!=(r=null!=(s=null==u?void 0:u.loaderSize)?s:null==u?void 0:u.loaderHeight)?r:this.loaderSize)||this.gap!==(null!=(h=null==u?void 0:u.gap)?h:this.gap)||this.padding!==(null!=(a=null==u?void 0:u.padding)?a:this.padding)}shouldInvalidateLayoutOptions(t,e){var i,n,l,o,s,r,h,a,u,d;return(null!=(i=null==t?void 0:t.rowSize)?i:null==t?void 0:t.rowHeight)!==(null!=(n=null==e?void 0:e.rowSize)?n:null==e?void 0:e.rowHeight)||t.orientation!==e.orientation||(null!=(l=null==t?void 0:t.estimatedRowSize)?l:null==t?void 0:t.estimatedRowHeight)!==(null!=(o=null==e?void 0:e.estimatedRowSize)?o:null==e?void 0:e.estimatedRowHeight)||(null!=(s=null==t?void 0:t.headingSize)?s:null==t?void 0:t.headingHeight)!==(null!=(r=null==e?void 0:e.headingSize)?r:null==e?void 0:e.headingHeight)||(null!=(h=null==t?void 0:t.estimatedHeadingSize)?h:null==t?void 0:t.estimatedHeadingHeight)!==(null!=(a=null==e?void 0:e.estimatedHeadingSize)?a:null==e?void 0:e.estimatedHeadingHeight)||(null!=(u=null==t?void 0:t.loader
1Size)?u:null==t?void 0:t.loaderHeight)!==(null!=(d=null==e?void 0:e.loaderSize)?d:null==e?void 0:e.loaderHeight)||t.dropIndicatorThickness!==e.dropIndicatorThickness||t.gap!==e.gap||t.padding!==e.padding}update(t){var e,i,n,l,o,s,r,h,a,u,d,c,y,g;let f=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(t),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let w=t.layoutOptions;if(this.rowSize=null!=(i=null!=(e=null==w?void 0:w.rowSize)?e:null==w?void 0:w.rowHeight)?i:this.rowSize,this.orientation=null!=(n=null==w?void 0:w.orientation)?n:this.orientation,this.estimatedRowSize=null!=(o=null!=(l=null==w?void 0:w.estimatedRowSize)?l:null==w?void 0:w.estimatedRowHeight)?o:this.estimatedRowSize,this.headingSize=null!=(r=null!=(s=null==w?void 0:w.headingSize)?s:null==w?void 0:w.headingHeight)?r:this.headingSize,this.estimatedHeadingSize=null!=(a=null!=(h=null==w?void 0:w.estimatedHeadingSize)?h:null==w?void 0:w.estimatedHeadingHeight)?a:this.estimatedHeadingSize,this.loaderSize=null!=(d=null!=(u=null==w?void 0:w.loaderSize)?u:null==w?void 0:w.loaderHeight)?d:this.loaderSize,this.dropIndicatorThickness=null!=(c=null==w?void 0:w.dropIndicatorThickness)?c:this.dropIndicatorThickness,this.gap=null!=(y=null==w?void 0:w.gap)?y:this.gap,this.padding=null!=(g=null==w?void 0:w.padding)?g:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&f!==this.lastCollection)for(let t of this.lastCollection.getKeys())!f.getItem(t)&&this.layoutNodes.get(t)&&this.layoutNodes.delete(t);this.lastCollection=f,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.padding,e=this.virtualizer.collection,i="horizontal"===this.orientation?"x":"y",n="horizontal"===this.orientation?"maxX":"maxY",l=function(t,e){let i=[];for(let n of t)e(n)&&i.push(n);return i}(e,t=>"content"!==t.type),o=l.filter(t=>"loader"===t.type),s=[],r=(null==e?void 0:e.size)===0;for(let e of(r&&(t=0),l)){var a,u;let r=(null!=(u=null!=(a=this.rowSize)?a:this.estimatedRowSize)?u:48)+this.gap;if("item"===e.type&&t+r<this.requestedRect[i]&&!this.isValid(e,t)){t+=r;continue}let h="horizontal"===this.orientation?this.buildChild(e,t,this.padding,null):this.buildChild(e,this.padding,t,null);if(t=h.layoutInfo.rect[n]+this.gap,s.push(h),"loader"===e.type){let t=o.indexOf(e);o.splice(t,1)}if(("item"===e.type||"loader"===e.type)&&t>this.requestedRect[n]){let i=l.indexOf(e);for(let e of o){let o=l.indexOf(e);t+=(o-i-1)*r;let h="horizontal"===this.orientation?this.buildChild(e,t,this.padding,null):this.buildChild(e,this.padding,t,null);s.push(h),t=h.layoutInfo.rect[n],i=o}t+=(l.length-i-1)*r;break}}return t=Math.max(t-this.gap,0)+(r?0:this.padding),this.contentSize="horizontal"===this.orientation?new h(t,this.virtualizer.size.height):new h(this.virtualizer.size.width,t),s}isValid(t,e){let i=this.layoutNodes.get(t.key),n="horizontal"===this.orientation?"x":"y";return!this.invalidateEverything&&!!i&&i.node===t&&e===i.layoutInfo.rect[n]&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(t,e,i,n){if(this.isValid(t,"horizontal"===this.orientation?e:i))return this.layoutNodes.get(t.key);let l=this.buildNode(t,e,i);return l.layoutInfo.parentKey=null!=n?n:null,l.layoutInfo.allowOverflow=!0,this.layoutNodes.set(t.key,l),l}buildNode(t,e,i){switch(t.type){case"section":return this.buildSection(t,e,i);case"item":case"separator":return this.buildItem(t,e,i);case"header":return this.buildSectionHeader(t,e,i);case"loader":return this.buildLoader(t,e,i);default:throw Error("Unsupported node type: "+t.type)}}buildLoader(t,e,i){var n,l,s,h,a,u;let d=new r(e,i,this.padding,0),c=new o(t.type,t.key,d);return"horizontal"===this.orientation?(d.height=this.virtualizer.contentSize.height-this.padding-i,d.width=t.props.isLoading?null!=(s=null!=(l=null!=(n=this.loaderSize)?n:this.rowSize)?l:this.estimatedRowSize)?s:48:0):(d.width=this.virtualizer.contentSize.width-this.padding-e,d.height=t.props.isLoading?null!=(u=null!=(a=null!=(h=this.loaderSize)?h:this.rowSize)?a:this.estimatedRowSize)?u:48:0),{layoutInfo:c,validRect:d.intersection(this.requestedRect)}}
1buildSection(t,e,i){let l=this.virtualizer.collection,s=this.virtualizer.size.width-this.padding-e,h=this.virtualizer.size.height-this.padding-i,a="horizontal"===this.orientation?new r(e,i,0,h):new r(e,i,s,0),u=new o(t.type,t.key,a),d="horizontal"===this.orientation?e:i,c="horizontal"===this.orientation?"x":"y",y="horizontal"===this.orientation?"maxX":"maxY",g="horizontal"===this.orientation?"width":"height",f=0,w=[];for(let o of n(t,l)){var v,p;if("content"===o.type)continue;let s=(null!=(p=null!=(v=this.rowSize)?v:this.estimatedRowSize)?p:48)+this.gap;if(d+s<this.requestedRect[c]&&!this.isValid(t,d)){d+=s,f++;continue}let r="horizontal"===this.orientation?this.buildChild(o,d,i,u.key):this.buildChild(o,e,d,u.key);if(d=r.layoutInfo.rect[y]+this.gap,w.push(r),d>this.requestedRect[y]){d+=([...n(t,l)].length-(w.length+f))*s;break}}return d-=this.gap,a[g]=d-("horizontal"===this.orientation?e:i),{layoutInfo:u,children:w,validRect:u.rect.intersection(this.requestedRect),node:t}}buildSectionHeader(t,e,i){let n="horizontal"===this.orientation?"height":"width",l="horizontal"===this.orientation?"width":"height",s=this.virtualizer.size[n]-this.padding-("horizontal"===this.orientation?i:e),h=this.headingSize,a=!1;if(null==h){let e=this.layoutNodes.get(t.key),i=null==e?void 0:e.layoutInfo;if(i){let o=this.virtualizer.collection.getItem(t.key),r=this.lastCollection?this.lastCollection.getItem(t.key):null;h=e.layoutInfo.rect[l],a=s!==i.rect[n]||o!==r||i.estimatedSize}else h=t.rendered?this.estimatedHeadingSize:0,a=!0}null==h&&(h=48);let u="horizontal"===this.orientation?new r(e,i,h,s-i):new r(e,i,s-e,h),d=new o("header",t.key,u);return d.estimatedSize=a,{layoutInfo:d,children:[],validRect:d.rect.intersection(this.requestedRect),node:t}}buildItem(t,e,i){let n="horizontal"===this.orientation?"height":"width",l="horizontal"===this.orientation?"width":"height",s=this.virtualizer.size[n]-this.padding-("horizontal"===this.orientation?i:e),h=this.rowSize,a=!1;if(null==h){let e=this.layoutNodes.get(t.key);e?(h=e.layoutInfo.rect[l],a=s!==e.layoutInfo.rect[n]||t!==e.node||e.layoutInfo.estimatedSize):(h=this.estimatedRowSize,a=!0)}null==h&&(h=48);let u="horizontal"===this.orientation?new r(e,i,h,s):new r(e,i,s,h),d=new o(t.type,t.key,u);return d.estimatedSize=a,{layoutInfo:d,children:[],validRect:d.rect.intersection(this.requestedRect),node:t}}updateItemSize(t,e){let i=this.layoutNodes.get(t);if(!i)return!1;let n=this.virtualizer.collection,l=i.layoutInfo,o="horizontal"===this.orientation?"x":"y",s="horizontal"===this.orientation?"width":"height";if(l.estimatedSize=!1,l.rect[s]!==e[s]){let r=l.copy();r.rect[s]=e[s],i.layoutInfo=r,this.validRect[s]=Math.min(this.validRect[s],l.rect[o]-this.validRect[o]),this.requestedRect[s]+=r.rect[s]-l.rect[s],this.updateLayoutNode(t,l,r);let h=null!=l.parentKey?n.getItem(l.parentKey):null;for(;h;)this.updateLayoutNode(h.key,l,r),h=null!=h.parentKey?n.getItem(h.parentKey):null;return!0}return!1}updateLayoutNode(t,e,i){let n=this.layoutNodes.get(t);n&&(n.validRect=n.validRect.intersection(this.validRect),n.layoutInfo===e&&(n.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(t,e,i){t+=this.virtualizer.visibleRect.x,e+=this.virtualizer.visibleRect.y;let n=new r(t,Math.max(0,e-this.gap),1,Math.max(1,2*this.gap)),l=this.getVisibleLayoutInfos(n),o=null,s=1/0;for(let t of l){if(!t.rect.intersects(n))continue;let i=Math.min(Math.abs(t.rect.y-e),Math.abs(t.rect.maxY-e));i<s&&(s=i,o=t.key)}if(null==o||0===this.virtualizer.collection.size)return{type:"root"};let h=this.getLayoutInfo(o);if(!h)return null;let a=h.rect,u={type:"item",key:h.key,dropPosition:"on"};return i(u)?e<=a.y+10&&i({...u,dropPosition:"before"})?u.dropPosition="before":e>=a.maxY-10&&i({...u,dropPosition:"after"})&&(u.dropPosition="after"):e<=a.y+a.height/2&&i({...u,dropPosition:"before"})?u.dropPosition="before":i({...u,dropPosition:"after"})&&(u.dropPosition="after"),u}getDropTargetLayoutInfo(t){let e,i=this.getLayoutInfo(t.key);if("before"===t.dropPosition)e="horizontal"===this.orientation?new r(Math.max(0,i.rect.x-this.dropIndicatorThickness/2),i.rect.y,this.dropIndicatorThickness,i.rect.height):new r(i.rect.x,Math.max(0,i.rect.y-this.dropIndicatorThickness/2),i.rect.width,this.dropIndicatorThickness);else if("after"===t.dropPosition){let l=this.collection.getItem(t.key);if(l){var n;let e=null!=(n=l.level)?n:0,o=this.collection.getKeyAfter(t.key);for(;null!=o;){let t=this.collection.getItem(o);if(!t||t.level<=e)break;i=this.getLayoutInfo(o)||i,o=this.collection.getKeyAfter(o)}}e="horizontal"===this.orientation?new r(i.rect.maxX-this.dropIndicatorThickness/2,i.rect.y,this.dropIndicatorThickness,i.rect.height):new r(i.rect.x,i.rect.maxY-this.dropIndicatorThickness/2,i.rect.width,this.dropIndicatorThickness)}else e=i.rect;
1return new o("dropIndicator",t.key+":"+t.dropPosition,e)}constructor(t={}){var e,i,n,l,o,s,a,u,d,c,y;super(),this.rowSize=null!=(i=null!=(e=null==t?void 0:t.rowSize)?e:null==t?void 0:t.rowHeight)?i:null,this.orientation=null!=(n=t.orientation)?n:"vertical",this.estimatedRowSize=null!=(o=null!=(l=null==t?void 0:t.estimatedRowSize)?l:null==t?void 0:t.estimatedRowHeight)?o:null,this.headingSize=null!=(a=null!=(s=null==t?void 0:t.headingSize)?s:null==t?void 0:t.headingHeight)?a:null,this.estimatedHeadingSize=null!=(d=null!=(u=null==t?void 0:t.estimatedHeadingSize)?u:null==t?void 0:t.estimatedHeadingHeight)?d:null,this.loaderSize=null!=(y=null!=(c=null==t?void 0:t.loaderSize)?c:null==t?void 0:t.loaderHeight)?y:null,this.dropIndicatorThickness=t.dropIndicatorThickness||2,this.gap=t.gap||0,this.padding=t.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new r,this.requestedRect=new r,this.contentSize=new h}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.