;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a80db76d-7d1c-5c5e-586d-4c345b2baf44")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93572,e=>{"use strict";let t;var o=e.i(843476),n=e.i(271645),r=e.i(174080);function l(e){e()}function i(e,t){return o=>e(t(o))}function s(e){return void 0!==e}function a(){}function u(e,t){return t(e)}function d(...e){return e}function c(e){e(2)}function f(e){return e(4)}function h(e,t){return e(1,e=>t(0,e))}function m(e,t){let o=e(1,e=>{o(),t(e)});return o}function p(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function g(e,t){return e===t}function x(e=g){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function v(e){return t=>o=>{e(o)&&t(o)}}function I(e){return t=>i(t,e)}function T(e){return t=>()=>{t(e)}}function C(e,...t){let o=function(...e){return t=>e.reduceRight(u,t)}(...t);return(t,n)=>{switch(t){case 2:c(e);return;case 1:return e(1,o(n))}}}function S(e,t){return o=>n=>{o(t=e(t,n))}}function w(e){return t=>o=>{e>0?e--:t(o)}}function H(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function y(...e){let t=Array(e.length),o=0,n=null,r=Math.pow(2,e.length)-1;return e.forEach((e,l)=>{let i=Math.pow(2,l);e(1,e=>{let s=o;o|=i,t[l]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>l=>{let i=()=>{e([l].concat(t))};o===r?i():n=i}}function z(e){let t=e,o=R();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function b(e,t){var o;return o=z(t),h(e,o),o}function R(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function E(e){var t;return t=R(),h(e,t),t}function B(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:k(),singleton:o}}let k=()=>Symbol();function O(...e){let t=R(),o=Array(e.length),n=0,r=Math.pow(2,e.length)-1;return e.forEach((e,l)=>{let i=Math.pow(2,l);e(1,e=>{o[l]=e,(n|=i)===r&&t(0,o)})}),function(e,l){switch(e){case 2:return void c(t);case 1:return n===r&&l(o),t(1,l)}}}function F(e,t=g){return C(e,x(t))}function L(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(l)}}(...e.map(e=>e(1,o)))}}}var M=((t=M||{})[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t);let j={0:"debug",3:"error",1:"log",2:"warn"},P=B(()=>{let e=z(3);return{log:z((t,o,n=1)=>{var r;n>=(null!=(r=(typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:f(e))&&console[j[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function W(e,t,o){return A(e,t,o).callbackRef}function A(e,t,o){let r=n.default.useRef(null),l=n.default.useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let n=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}):null,[e,o]);return{callbackRef:e=>{e&&t?(null==l||l.observe(e),r.current=e):(r.current&&(null==l||l.unobserve(r.current)),r.current=null)},ref:r}}function V(e,t,o,r,l,i,s,a,u){return A(n.default.useCallback(o=>{let n,u=function(e,t,o,n){let r=e.length;if(0===r)return null;let l=[];for(let i=0;i{let n,l;if(!(null!=o&&o.offsetParent))return;let i=o.getBoundingClientRect(),a=i.width;if(t){let e=t.getBoundingClientRect(),o=i.top-e.top;l=e.height-Math.max(0,o),n=o+t.scrollTop}else{let e=s.current.ownerDocument.defaultView;l=e.innerHeight-Math.max(0,i.top),n=i.top+e.scrollY}r.current={offsetTop:n,visibleHeight:l,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:i,ref:s}=A(l,!0,o),a=n.default.useCallback(()=>{l(s.current)},[l,s]);return n.default.useEffect(()=>{var e;if(t){t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}{let t=null==(e=s.current)?void 0:e.ownerDocument.defaultView;return null==t||t.addEventListener("scroll",a),null==t||t.addEventListener("resize",a),()=>{null==t||t.removeEventListener("scroll",a),null==t||t.removeEventListener("resize",a)}}},[a,t,s]),i}let N=B(()=>{let e=R(),t=R(),o=z(0),n=R(),r=z(0),l=R(),i=R(),s=z(0),a=z(0),u=z(0),d=z(0),c=R(),f=R(),m=z(!1),p=z(!1),g=z(!1);return h(C(e,I(({scrollTop:e})=>e)),t),h(C(e,I(({scrollHeight:e})=>e)),i),h(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:p,scrollBy:f,scrollContainerState:e,scrollHeight:i,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:l}},[],{singleton:!0}),U={lvl:0};function _(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),l=[];for(let i=1;io&&(a=a.concat(e(l,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(i,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function Z(e){return K(e)?[]:[...Z(e.l),{k:e.k,v:e.v},...Z(e.r)]}function J(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(ee(t))return eo(Q(e,{lvl:o-1}));if(!K(t)&&!K(t.r))return Q(t.r,{l:Q(t,{r:t.r.l}),lvl:o,r:Q(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(ee(e))return en(Q(e,{lvl:o-1}));if(K(n)||K(n.l))throw Error("Unexpected empty nodes");{let t=n.l,r=ee(t)?n.lvl-1:n.lvl;return Q(t,{l:Q(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:en(Q(n,{l:t.r,lvl:r}))})}}function Q(e,t){return et(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function ee(e){return K(e)||e.lvl>e.r.lvl}function et(e,t,o,n=U,r=U){return{k:e,l:n,lvl:o,r,v:t}}function eo(e){let{l:t}=e;return K(t)||t.lvl!==e.lvl?e:Q(t,{r:Q(e,{l:t.r})})}function en(e){let{lvl:t,r:o}=e;return K(o)||K(o.r)||o.lvl!==t||o.r.lvl!==t?e:Q(o,{l:Q(e,{r:o.l}),lvl:t+1})}function er(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function el(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let ei=B(()=>({recalcInProgress:z(!1)}),[],{singleton:!0});function es(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let l=Math.floor((n+r)/2),i=o(e[l],t);if(0===i)return l;if(-1===i){if(r-n<2)return l-1;r=l-1}else{if(r===n)return l;n=l+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function ea(e,t){return Math.round(e.getBoundingClientRect()[t])}function eu(e){return!K(e.groupOffsetTree)}function ed({index:e},t){return t===e?0:t0?s+o:s}function eh(e,t){if(!eu(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function em(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let n=eh("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}}function ep(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,M.DEBUG);let l=e.sizeTree,i=l,s=0;if(o.length>0&&K(l)&&2===t.length){let e=t[0].size,n=t[1].size;i=o.reduce((t,o)=>Y(Y(t,o,e),o+1,n),i)}else[i,s]=function(e,t){let o=K(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:l}=n;if(o=Math.min(o,l),K(e)){e=Y(e,0,r);continue}let i=X(e,l-1,t+1);if(i.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:l}of i)s?(t>=n||r===l)&&(e=function e(t,o){if(K(t))return U;let{k:n,l:r,r:l}=t;if(o!==n)return ot&&t>=n&&l!==r&&(e=Y(e,t+1,l));a&&(e=Y(e,l,r))}return[e,o]}(i,t);if(i===l)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=ex(e.offsetTree,s,i,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>Y(e,t,ef(t,c,r)),U),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:i}}function eg(e,t){let o=0,n=0;for(;o{let o=R(),n=R(),r=b(n,0),l=R(),i=R(),s=z(0),a=z([]),u=z(void 0),d=z(void 0),c=z(void 0),m=z(void 0),p=z((e,t)=>ea(e,eI[t])),g=z(void 0),T=z(0),w={groupIndices:[],groupOffsetTree:U,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:U},H=b(C(o,y(a,e,T),S(ep,w),x()),w),B=b(C(a,x(),S((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),I(({prev:e})=>e)),[]);h(C(a,v(e=>e.length>0),y(H,T),I(([e,t,o])=>{let n=e.reduce((e,n,r)=>Y(e,n,ef(n,t.offsetTree,o)||r),U);return{...t,groupIndices:e,groupOffsetTree:n}})),H),h(C(n,y(H),v(([e,{lastIndex:t}])=>e[{endIndex:t,size:o,startIndex:e}])),o),h(u,d);let k=b(C(u,I(e=>void 0===e)),!0);h(C(d,v(e=>void 0!==e&&K(f(H).sizeTree)),I(e=>{let t=f(c),o=f(a).length>0;return t?o?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),o),h(C(m,v(e=>void 0!==e&&e.length>0&&K(f(H).sizeTree)),I(e=>{let t=[],o=e[0],n=0;for(let r=1;rvoid 0!==e&&void 0!==t),I(([e,t,o])=>{let n=[];for(let r=0;r({changed:o!==e,sizes:o}),{changed:!1,sizes:w}),I(e=>e.changed)));C(s,S((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),I(e=>e.diff))(1,e=>{let{groupIndices:o}=f(H);if(e>0)t(0,!0),l(0,e+eg(e,o));else if(e<0){let t=f(B);t.length>0&&(e-=eg(-e,t)),i(0,e)}}),C(s,y(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},M.ERROR)});let F=E(l);h(C(l,y(H),I(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=q(t.sizeTree,0),l=0,i=0;for(;l{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return Z(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);let L=E(C(i,y(H,T),I(([e,{offsetTree:t},o])=>ef(-e,t,o))));return h(C(i,y(H,T),I(([e,t,o])=>{if(t.groupIndices.length>0){if(K(t.sizeTree))return t;let n=U,r=f(B),l=0,i=0,s=0;for(;l<-e;){s=r[i];let e=r[i+1]-s-1;i++,l+=e+1}return n=Z(t.sizeTree).reduce((t,{k:o,v:n})=>Y(t,Math.max(0,o+e),n),n),l!==-e&&(n=Y(n,0,q(t.sizeTree,s)),n=Y(n,1,$(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...ex(t.offsetTree,0,n,o)}}{let n=Z(t.sizeTree).reduce((t,{k:o,v:n})=>Y(t,Math.max(0,o+e),n),U);return{...t,sizeTree:n,...ex(t.offsetTree,0,n,o)}}})),H),{beforeUnshiftWith:F,data:g,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,fixedGroupSize:c,gap:T,groupIndices:a,heightEstimates:m,itemSize:p,listRefresh:O,shiftWith:i,shiftWithOffset:L,sizeRanges:o,sizes:H,statefulTotalCount:r,totalCount:n,trackItemSizes:k,unshiftWith:l}},d(P,ei),{singleton:!0});function eC(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let eS=B(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let l=R(),i=R(),s=E(C(l,I(eC)));return h(C(s,I(e=>e.totalCount)),o),h(C(s,I(e=>e.groupIndices)),e),h(C(O(r,t,n),v(([e,t])=>eu(t)),I(([e,t,o])=>$(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),x(),I(e=>[e])),i),{groupCounts:l,topItemsIndexes:i}},d(eT,N)),ew=B(([{log:e}])=>{let t=z(!1),o=E(C(t,v(e=>e),x()));return t(1,t=>{t&&f(e)("props updated",{},M.DEBUG)}),{didMount:o,propsReady:t}},d(P),{singleton:!0}),eH="u">typeof document&&"scrollBehavior"in document.documentElement.style;function ey(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eH||(t.behavior="auto"),t.offset||(t.offset=0),t}let ez=B(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:l,footerHeight:i,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:f}])=>{let p=R(),g=R(),x=z(0),v=null,T=null,S=null;function w(){v&&(v(),v=null),S&&(S(),S=null),T&&(clearTimeout(T),T=null),a(0,!1)}return h(C(p,y(o,c,n,x,s,i,f),y(e,l,r),I(([[e,o,n,r,l,i,s,u],c,f,h])=>{let x=ey(e),{align:I,behavior:H,offset:y}=x,z=r-1,b=em(x,o,z),R=ef(b,o.offsetTree,c)+i;"end"===I?(R+=f+$(o.sizeTree,b)[1]-n+h,b===z&&(R+=s)):"center"===I?R+=(f+$(o.sizeTree,b)[1]-n+h)/2:R-=l,y&&(R+=y);let E=t=>{w(),t?(u("retrying to scroll to",{location:e},M.DEBUG),p(0,e)):(g(0,!0),u("list did not change, scroll successful",{},M.DEBUG))};if(w(),"smooth"===H){let e=!1;S=t(1,t=>{e=e||t}),v=m(d,()=>{E(e)})}else v=m(C(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),E);return T=setTimeout(()=>{w()},1200),a(0,!0),u("scrolling from index to",{behavior:H,index:b,top:R},M.DEBUG),{behavior:H,top:R}})),u),{scrollTargetReached:g,scrollToIndex:p,topListHeight:x}},d(eT,N,P),{singleton:!0});function eb(e,t){0==e?t():requestAnimationFrame(()=>{eb(e-1,t)})}function eR(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eE=B(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:l},{didMount:i}])=>{let a=z(!0),u=z(0),d=z(!0);return h(C(i,y(u),v(([e,t])=>!!t),T(!1)),a),h(C(i,y(u),v(([e,t])=>!!t),T(!1)),d),C(O(t,i),y(a,o,e,d),v(([[,e],t,{sizeTree:o},n,r])=>e&&(!K(o)||s(n))&&!t&&!r),y(u))(1,([,e])=>{m(r,()=>{d(0,!0)}),eb(4,()=>{m(n,()=>{a(0,!0)}),l(0,e)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:u,scrolledToInitialItem:a}},d(eT,N,ez,ew),{singleton:!0});function eB(e,t){return 1.01>Math.abs(e-t)}let ek="down",eO={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},eF=B(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:l}])=>{let i=z(!1),s=z(!0),a=R(),u=R(),d=z(4),c=z(0),m=b(C(L(C(F(r),w(1),T(!0)),C(F(r),w(1),T(!1),p(100))),x()),!1),g=b(C(L(C(o,T(!0)),C(o,T(!1),p(200))),x()),!1);h(C(O(F(r),F(c)),I(([e,t])=>e<=t),x()),s),h(C(s,H(50)),u);let B=E(C(O(n,F(l),F(t),F(e),F(d)),S((e,[{scrollHeight:t,scrollTop:o},n,r,l,i])=>{let s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-i){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:s}}return{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":ne&&e.atBottom===t.atBottom))),k=b(C(n,S((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(eB(e.scrollHeight,t))return{changed:!1,jump:0,scrollHeight:t,scrollTop:o};{let r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),v(e=>e.changed),I(e=>e.jump)),0);h(C(B,I(e=>e.atBottom)),i),h(C(i,H(50)),a);let M=z(ek);h(C(n,I(({scrollTop:e})=>e),x(),S((e,t)=>f(g)?{direction:e.direction,prevScrollTop:t}:{direction:te.direction)),M),h(C(n,H(50),T("none")),M);let j=z(0);return h(C(m,v(e=>!e),T(0)),j),h(C(r,H(100),y(m),v(([e,t])=>t),S(([e,t],[o])=>[t,o],[0,0]),I(([e,t])=>t-e)),j),{atBottomState:B,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:c,isAtBottom:i,isAtTop:s,isScrolling:m,lastJumpDueToItemResize:k,scrollDirection:M,scrollVelocity:j}},d(N)),eL="bottom",eM="none";function ej(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===ek&&t===eL?e:0:"up"===o?"top"===t?e.main:e.reverse:t===eL?e.main:e.reverse}function eP(e,t){var o;return"number"==typeof e?e:null!=(o=e[t])?o:0}let eW=B(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{let l=R(),i=z(0),s=z(0),a=z(0),u=b(C(O(F(n),F(r),F(o),F(l,el),F(a),F(i),F(t),F(e),F(s)),I(([e,t,o,[n,r],l,i,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),f=eM,h=eP(u,"top"),m=eP(u,eL);return n-=a,n+=o+s,r+=o+s,n>e+(i+s)-h&&(f="up"),(r-=a)null!=e),x(el)),[0,0]);return{increaseViewportBy:s,listBoundary:l,overscan:a,topListHeight:i,visibleRange:u}},d(N),{singleton:!0}),eA={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function eV(e,t,o,n,r,l){let{lastIndex:i,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-i,f=u,h=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:l,items:eG(e,r,l),offsetBottom:h,offsetTop:u,top:f,topItems:eG(t,r,l),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function eD(e,t,o,n,r,l){let i=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-i>=e)break;i++}let s=e+i,a=eR(t,s);return eV(Array.from({length:s}).map((e,t)=>({data:l[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function eG(e,t,o){if(0===e.length)return[];if(!eu(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,l=[],i=X(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end{let S=z([]),w=z(0),B=R(),k=z(0);h(l.topItemsIndexes,S);let L=b(C(O(g,T,F(u,el),F(r),F(n),F(d),c,F(S),F(t),F(o),F(k),e),v(([e,t,,o,,,,,,,,n])=>{let r=n&&n.length!==o;return e&&!t&&!r}),I(([,,[e,t],o,n,r,l,i,s,a,u,d])=>{var c,h,m,p,g;let{offsetTree:x,sizeTree:v}=n,I=f(w);if(0===o)return{...eA,totalCount:o};if(0===e&&0===t)return 0===I?{...eA,totalCount:o}:eD(I,r,n,s,a,d||[]);if(K(v))return I>0?null:eV(function(e,t,o){if(eu(t)){let n=eh(e,t);return[{index:$(t.groupOffsetTree,n)[0],offset:0,size:0},{data:null==o?void 0:o[0],index:n,offset:0,size:0}]}return[{data:null==o?void 0:o[0],index:e,offset:0,size:0}]}(eR(r,o),n,d),[],o,a,n,s);let T=[];if(i.length>0){let e=i[0],t=i[i.length-1],o=0;for(let n of X(v,e,t)){let r=n.value,l=Math.max(n.start,e),i=Math.min(n.end,t);for(let e=l;e<=i;e++)T.push({data:null==d?void 0:d[e],index:e,offset:o,size:r}),o+=r}}if(!l)return eV([],T,o,a,n,s);let C=i.length>0?i[i.length-1]+1:0,S=function(e,t,o,n=0){let r,l;return n>0&&(t=Math.max(t,e[es(e,n,ed)].offset)),_((r=es(e,t,ec),l=es(e,o,ec,r),e.slice(r,l+1)),ev)}(x,e,t,C);if(0===S.length)return null;let H=o-1,y=((o=>{for(let n of S){let r=n.value,l=r.offset,i=n.start,s=r.size;if(r.offset=t);e++)o.push({data:null==d?void 0:d[e],index:e,offset:l,size:s}),l+=s+a}})(g=[]),g),z=eN(u,"top"),b=eN(u,eL);if(y.length>0&&(z>0||b>0)){let e=y[0],t=y[y.length-1];if(z>0&&e.index>C){let t=Math.min(z,e.index-C),o=[],n=e.offset;for(let r=e.index-1;r>=e.index-t;r--){let t=null!=(h=null==(c=X(v,r,r)[0])?void 0:c.value)?h:e.size;n-=t+a,o.unshift({data:null==d?void 0:d[r],index:r,offset:n,size:t})}y.unshift(...o)}if(b>0&&t.indexnull!==e),x()),eA);h(C(e,v(s),I(e=>null==e?void 0:e.length)),r),h(C(L,I(e=>e.topListHeight)),m),h(m,a),h(C(L,I(e=>[e.top,e.bottom])),i),h(C(L,I(e=>e.items)),B);let M=E(C(L,v(({items:e})=>e.length>0),y(r,e),v(([{items:e},t])=>e[e.length-1].originalIndex===t-1),I(([,e,t])=>[e-1,t]),x(el),I(([e])=>e))),j=E(C(L,H(200),v(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),I(({items:e})=>e[0].index),x())),P=E(C(L,v(({items:e})=>e.length>0),I(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&tt;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),x(er)));return{endReached:M,initialItemCount:w,itemsRendered:B,listState:L,minOverscanItemCount:k,rangeChanged:P,startReached:j,topItemsIndexes:S,...p}},d(eT,eS,eW,eE,ez,eF,ew,ei),{singleton:!0}),e_=B(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let l=R(),i=b(C(O(o,e,n,t,r),I(([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom)),0);return h(F(i),l),{totalListHeight:i,totalListHeightChanged:l}},d(N,eU),{singleton:!0}),eK=B(([{viewportHeight:e},{totalListHeight:t}])=>{let o=z(!1),n=b(C(O(o,e,t),v(([e])=>e),I(([,e,t])=>Math.max(0,e-t)),H(0),x()),0);return{alignToBottom:o,paddingTopAddition:n}},d(N,e_),{singleton:!0}),eq=B(()=>({context:z(null)})),e$=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:l,viewportTop:i})=>tl?{...r,align:null!=o?o:"end",behavior:n}:null,eY=B(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:l,scrollingInProgress:i,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=R();return h(C(d,y(t,a,o,l,r,n,s),y(e),I(([[e,t,o,n,r,l,s,a],u])=>{let{align:d,behavior:c,calculateViewLocation:h=e$,done:p,...g}=e,x=em(e,t,n-1),I=ef(x,t.offsetTree,u)+r+l,T=h({itemBottom:I+$(t.sizeTree,x)[1],itemTop:I,locationParams:{align:d,behavior:c,...g},viewportBottom:a+o-s,viewportTop:a+l});return T?p&&m(C(i,v(e=>!e),w(f(i)?1:2)),p):null==p||p(),T}),v(e=>null!==e)),u),{scrollIntoView:d}},d(eT,N,ez,eU,P),{singleton:!0});function eX(e){return!!e&&("smooth"===e?"smooth":"auto")}let eZ=B(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:l},{scrollToIndex:i},{scrolledToInitialItem:s},{didMount:a,propsReady:u},{log:d},{scrollingInProgress:c},{context:p},{scrollIntoView:g}])=>{let x=z(!1),T=R(),b=null;function E(e){i(0,{align:"end",behavior:e,index:"LAST"})}function B(e){setTimeout(m(r,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||b||(f(d)("scrolling to bottom due to increased size",{},M.DEBUG),E("auto"))}),100)}C(O(C(F(t),w(1)),a),y(F(x),l,s,c),I(([[e,t],o,n,r,l])=>{let i,s=t&&r,a="auto";return s&&(i=n||l,a="function"==typeof o?eX(o(i)):i&&eX(o),s=s&&!!a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),v(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:n})=>{b&&(b(),b=null),f(o)?requestAnimationFrame(()=>{f(d)("following output to ",{totalCount:n},M.DEBUG),E(t)}):b=m(e,()=>{f(d)("following output to ",{totalCount:n},M.DEBUG),E(t),b=null})}),C(O(F(x),t,u),v(([e,,t])=>e&&t),S(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),v(({refreshed:e})=>e),y(x,t))(1,([,e])=>{f(s)&&B(!1!==e)}),T(1,()=>{B(!1!==f(x))}),O(F(x),r)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&E("auto")});let k=z(null),j=R();return h(L(C(F(n),I(e=>{var t;return null!=(t=null==e?void 0:e.length)?t:0})),C(F(t))),j),C(O(C(j,w(1)),a),y(F(k),s,c,p),I(([[e,t],o,n,r,l])=>t&&n&&(null==o?void 0:o({context:l,totalCount:e,scrollingInProgress:r}))),v(e=>!!e),H(0))(1,t=>{b&&(b(),b=null),f(o)?requestAnimationFrame(()=>{f(d)("scrolling into view",{}),g(0,t)}):b=m(e,()=>{f(d)("scrolling into view",{}),g(0,t),b=null})}),{autoscrollToBottom:T,followOutput:x,scrollIntoViewOnChange:k}},d(eT,eF,ez,eE,ew,P,N,eq,eY)),eJ=B(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:l,listState:i},{didMount:s}])=>(h(C(s,y(l),v(([,e])=>0!==e),y(r,n,t,o,e),I(([[,e],t,o,n,r,l=[]])=>eD(e,t,o,n,r,l))),i),{}),d(eT,eE,eU,ew),{singleton:!0}),eQ=B(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=z(0);return C(e,y(n),v(([,e])=>0!==e),I(([,e])=>({top:e})))(1,e=>{m(C(o,w(1),v(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},d(ew,N,eU),{singleton:!0}),e0=B(([{scrollVelocity:e}])=>{let t=z(!1),o=R(),n=z(!1);return h(C(e,y(n,t,o),v(([e,t])=>!!t),I(([e,t,o,n])=>{let{enter:r,exit:l}=t;if(o){if(l(e,n))return!1}else if(r(e,n))return!0;return o}),x()),t),C(O(t,e,o),y(n))(1,([[e,t,o],n])=>{e&&n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},d(eF),{singleton:!0}),e1=B(([{scrollContainerState:e,scrollTo:t}])=>{let o=R(),n=R(),r=R(),l=z(!1),i=z(void 0);return h(C(O(o,n),I(([{scrollHeight:e,scrollTop:t,viewportHeight:o},{offsetTop:n}])=>({scrollHeight:e,scrollTop:Math.max(0,t-n),viewportHeight:o}))),e),h(C(t,y(n),I(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:i,useWindowScroll:l,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},d(N)),e2=B(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:l},{useWindowScroll:i,windowScrollContainerState:a,windowViewportRect:u}])=>{let d=R(),c=z(void 0),f=z(null),m=z(null);return h(a,f),h(u,m),C(d,y(t,n,i,f,m,o))(1,([e,t,o,n,r,l,i])=>{let s=Z(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==l&&(o=r.scrollTop-l.offsetTop),e({ranges:s,scrollTop:o-=i})}),h(C(c,v(s),I(e3)),r),h(C(l,y(c),v(([,e])=>void 0!==e),x(),I(([,e])=>e.ranges)),e),{getState:d,restoreStateFrom:c}},d(eT,N,eE,ew,e1));function e3(e){return{align:"start",index:0,offset:e.scrollTop}}let e4=B(([{topItemsIndexes:e}])=>{let t=z(0);return h(C(t,v(e=>e>=0),I(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},d(eU));function e5(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e7=e5(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e8=B(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:l,lastJumpDueToItemResize:i,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:f},{log:m},{recalcInProgress:p}])=>{let g=E(C(a,y(i),S(([,e,t,o],[{bottom:n,items:r,offsetBottom:l,totalCount:i},s])=>{let a=n+l,u=0;return t===i&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,i,a]},[0,[],0,0]),v(([e])=>0!==e),y(n,s,o,r,m,p),v(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),I(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},M.DEBUG),e))));function x(o){o>0?(t(0,{behavior:"auto",top:-o}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-o}))}return C(g,y(e,l))(1,([t,o,n])=>{n&&e7()?e(0,o-t):x(-t)}),C(O(b(l,!1),e,p),v(([e,t,o])=>!e&&!o&&0!==t),I(([e,t])=>t),H(1))(1,x),h(C(c,I(e=>({top:-e}))),t),C(u,y(f,d),I(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);{let l=0,i=q(n,0),s=0,a=0;for(;se&&(l-=i,n=e-s+1),s+=n,l+=n*(o+r),a++}return l}}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{e(0,0),p(0,!1)})})}),{deviation:e}},d(N,eF,eU,eT,P,ei)),e6=B(([e,t,o,n,r,l,i,s,a,u,d])=>({...e,...t,...o,...n,...r,...l,...i,...s,...a,...u,...d}),d(eW,eJ,ew,e0,e_,eQ,eK,e1,eY,P,eq)),e9=B(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:l,groupIndices:i,heightEstimates:s,itemSize:a,sizeRanges:u,sizes:d,statefulTotalCount:c,totalCount:f,trackItemSizes:m},{initialItemFinalLocationReached:p,initialTopMostItemIndex:g,scrolledToInitialItem:x},v,T,S,w,{scrollToIndex:H},y,{topItemCount:z},{groupCounts:b},R])=>{let{listState:E,minOverscanItemCount:B,topItemsIndexes:k,rangeChanged:O,...F}=w;return h(O,R.scrollSeekRangeChanged),h(C(R.windowViewportRect,I(e=>e.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:l,groupCounts:b,heightEstimates:s,initialItemFinalLocationReached:p,initialTopMostItemIndex:g,scrolledToInitialItem:x,sizeRanges:u,topItemCount:z,topItemsIndexes:k,totalCount:f,...S,groupIndices:i,itemSize:a,listState:E,minOverscanItemCount:B,scrollToIndex:H,statefulTotalCount:c,trackItemSizes:m,rangeChanged:O,...F,...R,...v,sizes:d,...T}},d(eT,eE,N,e2,eZ,eU,ez,e8,e4,eS,e6)),te="u">typeof document?n.default.useLayoutEffect:n.default.useEffect;function tt(e,t,r){let l=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),d=n.default.createContext({});function h(e,o){for(let n of(e.propsReady&&(0,e.propsReady)(0,!1),l))(0,e[t.required[n]])(0,o[n]);for(let n of i)n in o&&(0,e[t.optional[n]])(0,o[n]);e.propsReady&&(0,e.propsReady)(0,!0)}function m(e){return u.reduce((o,n)=>{var r;let l,i,s;return o[n]=(r=e[t.events[n]],s=()=>null==l?void 0:l(),function(e,t){switch(e){case 1:return t?i===t?void 0:(s(),i=t,l=r(1,t)):(s(),a);case 2:s(),i=null;return}}),o},{})}return{Component:n.default.forwardRef((a,f)=>{var p;let{children:g,...x}=a,[v]=n.default.useState(()=>{var t;let o,n;return o=new Map,h(t=(n=({constructor:e,dependencies:t,id:r,singleton:l})=>{if(l&&o.has(r))return o.get(r);let i=e(t.map(e=>n(e)));return l&&o.set(r,i),i})(e),x),t}),[I]=n.default.useState(()=>m(v));return te(()=>{for(let e of u)e in x&&(0,I[e])(1,x[e]);return()=>{Object.values(I).map(c)}},[x,I,v]),te(()=>{h(v,x)}),n.default.useImperativeHandle(f,(p=s.reduce((e,o)=>(e[o]=e=>{(0,v[t.methods[o]])(0,e)},e),{}),()=>p)),(0,o.jsx)(d.Provider,{value:v,children:r?(0,o.jsx)(r,{...function(e,t){let o={},n={},r=0,l=e.length;for(;r{let o=n.default.useContext(d)[e];te(()=>o(1,t),[t,o])},useEmitterValue:n.default.version.startsWith("18")?e=>{let t=n.default.useContext(d)[e],o=n.default.useCallback(e=>t(1,e),[t]);return n.default.useSyncExternalStore(o,()=>f(t),()=>f(t))}:e=>{let t=n.default.useContext(d)[e],[o,r]=n.default.useState(()=>f(t));return te(()=>t(1,e=>{e!==o&&r(()=>e)}),[t,o]),o},usePublisher:e=>{let t=n.default.useContext(d);return n.default.useCallback(o=>{(0,t[e])(0,o)},[t,e])}}}let to=n.default.createContext(void 0),tn=n.default.createContext(void 0),tr="u">typeof document?n.default.useLayoutEffect:n.default.useEffect;function tl(e){return"self"in e}function ti(e,t,o,l=a,i,s){let u=n.default.useRef(null),d=n.default.useRef(null),c=n.default.useRef(null),f=n.default.useCallback(o=>{let n,l,i,a=o.target;if("body"in a||tl(a)){let e=tl(a)?a:a.defaultView;i=s?e.scrollX:e.scrollY,n=s?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,l=s?e.innerWidth:e.innerHeight}else i=s?a.scrollLeft:a.scrollTop,n=s?a.scrollWidth:a.scrollHeight,l=s?a.offsetWidth:a.offsetHeight;let u=()=>{e({scrollHeight:n,scrollTop:Math.max(i,0),viewportHeight:l})};o.suppressFlushSync?u():r.default.flushSync(u),null!==d.current&&(i===d.current||i<=0||i===n-l)&&(d.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,s]);return n.default.useEffect(()=>{let e=i||u.current;return l(i||u.current),f({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",f,{passive:!0}),()=>{l(null),e.removeEventListener("scroll",f)}},[u,f,o,l,i]),{scrollByCallback:function(e){s&&(e={behavior:e.behavior,left:e.top}),u.current.scrollBy(e)},scrollerRef:u,scrollToCallback:function(o){let n,r,l,i=u.current;if(!i||(s?"offsetWidth"in i&&0===i.offsetWidth:"offsetHeight"in i&&0===i.offsetHeight))return;let a="smooth"===o.behavior;tl(i)?(r=Math.max(ea(i.document.documentElement,s?"width":"height"),s?i.document.documentElement.scrollWidth:i.document.documentElement.scrollHeight),n=s?i.innerWidth:i.innerHeight,l=s?window.scrollX:window.scrollY):(r=i[s?"scrollWidth":"scrollHeight"],n=ea(i,s?"width":"height"),l=i[s?"scrollLeft":"scrollTop"]);let f=r-n;if(o.top=Math.ceil(Math.max(Math.min(f,o.top),0)),eB(n,r)||o.top===l){e({scrollHeight:r,scrollTop:l,viewportHeight:n}),a&&t(!0);return}a?(d.current=o.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,d.current=null,t(!0)},1e3)):d.current=null,s&&(o={behavior:o.behavior,left:o.top}),i.scrollTo(o)}}}let ts="-webkit-sticky",ta="sticky",tu=e5(()=>{if(typeof document>"u")return ta;let e=document.createElement("div");return e.style.position=ts,e.style.position===ts?ts:ta});function td(e){return e}let tc=B(()=>{let e=z(e=>`Item ${e}`),t=z(e=>`Group ${e}`),o=z({}),n=z(td),r=z("div"),l=z(a),i=(e,t=null)=>b(C(o,I(t=>t[e]),x()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:i("EmptyPlaceholder"),FooterComponent:i("Footer"),GroupComponent:i("Group","div"),groupContent:t,HeaderComponent:i("Header"),HeaderFooterTag:r,ItemComponent:i("Item","div"),itemContent:e,ListComponent:i("List","div"),ScrollerComponent:i("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:i("ScrollSeekPlaceholder"),TopItemListComponent:i("TopItemList")}}),tf=B(([e,t])=>({...e,...t}),d(e9,tc)),th=({height:e})=>(0,o.jsx)("div",{style:{height:e}}),tm={overflowAnchor:"none",position:tu(),zIndex:1},tp={overflowAnchor:"none"},tg={...tp,display:"inline-block",height:"100%"},tx=n.default.memo(function({showTopList:e=!1}){let t=tF("listState"),r=tL("sizeRanges"),l=tF("useWindowScroll"),i=tF("customScrollParent"),s=tL("windowScrollContainerState"),u=tL("scrollContainerState"),d=tF("itemContent"),c=tF("context"),f=tF("groupContent"),h=tF("trackItemSizes"),m=tF("itemSize"),p=tF("log"),g=tL("gap"),x=tF("horizontalDirection"),{callbackRef:v}=V(r,m,h,e?a:i||l?s:u,p,g,i,x,tF("skipAnimationFrameInResizeObserver")),[I,T]=n.default.useState(0);tO("deviation",e=>{I!==e&&T(e)});let C=tF("EmptyPlaceholder"),S=tF("ScrollSeekPlaceholder")||th,w=tF("ListComponent"),H=tF("ItemComponent"),y=tF("GroupComponent"),z=tF("computeItemKey"),b=tF("isSeeking"),R=tF("groupIndices").length>0,E=tF("alignToBottom"),B=tF("initialItemFinalLocationReached"),k=e?{}:{boxSizing:"border-box",...x?{display:"inline-block",height:"100%",marginLeft:0!==I?I:E?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==I?I:E?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...B?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&C?(0,o.jsx)(C,{...tS(C,c)}):(0,o.jsx)(w,{...tS(w,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:v,style:k,children:(e?t.topItems:t.items).map(e=>{let o=e.originalIndex,r=z(o+t.firstItemIndex,e.data,c);return b?(0,n.createElement)(S,{...tS(S,c),height:e.size,index:e.index,key:r,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,n.createElement)(y,{...tS(y,c),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:r,style:tm},f(e.index,c)):(0,n.createElement)(H,{...tS(H,c),...tw(H,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:x?tg:tp},R?d(e.index,e.groupIndex,e.data,c):d(e.index,e.data,c))})})}),tv={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tI={outline:"none",overflowX:"auto",position:"relative"},tT=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),tC={position:tu(),top:0,width:"100%",zIndex:1};function tS(e,t){if("string"!=typeof e)return{context:t}}function tw(e,t){return{item:"string"==typeof e?void 0:t}}let tH=n.default.memo(function(){let e=tF("HeaderComponent"),t=tL("headerHeight"),r=tF("HeaderFooterTag"),l=W(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,tF("skipAnimationFrameInResizeObserver")),i=tF("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null}),ty=n.default.memo(function(){let e=tF("FooterComponent"),t=tL("footerHeight"),r=tF("HeaderFooterTag"),l=W(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,tF("skipAnimationFrameInResizeObserver")),i=tF("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null});function tz({useEmitter:e,useEmitterValue:t,usePublisher:r}){return n.default.memo(function({children:n,style:l,context:i,...s}){let a=r("scrollContainerState"),u=t("ScrollerComponent"),d=r("smoothScrollTargetReached"),c=t("scrollerRef"),f=t("horizontalDirection")||!1,{scrollByCallback:h,scrollerRef:m,scrollToCallback:p}=ti(a,d,u,c,void 0,f);return e("scrollTo",p),e("scrollBy",h),(0,o.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:m,style:{...f?tI:tv,...l},tabIndex:0,...s,...tS(u,i),children:n})})}function tb({useEmitter:e,useEmitterValue:t,usePublisher:r}){return n.default.memo(function({children:l,style:i,context:s,...a}){let u=r("windowScrollContainerState"),d=t("ScrollerComponent"),c=r("smoothScrollTargetReached"),f=t("totalListHeight"),h=t("deviation"),m=t("customScrollParent"),p=n.default.useRef(null),{scrollByCallback:g,scrollerRef:x,scrollToCallback:v}=ti(u,c,d,t("scrollerRef"),m);return tr(()=>{var e;return x.current=m||(null==(e=p.current)?void 0:e.ownerDocument.defaultView),()=>{x.current=null}},[x,m]),e("windowScrollTo",v),e("scrollBy",g),(0,o.jsx)(d,{ref:p,"data-virtuoso-scroller":!0,style:{position:"relative",...i,...0!==f?{height:f+h}:{}},...a,...tS(d,s),children:l})})}let tR=({children:e})=>{let t=n.default.useContext(to),r=tL("viewportHeight"),l=tL("fixedItemHeight"),s=tF("alignToBottom"),a=tF("horizontalDirection"),u=W(n.default.useMemo(()=>i(r,e=>ea(e,a?"width":"height")),[r,a]),!0,tF("skipAnimationFrameInResizeObserver"));return n.default.useEffect(()=>{t&&(r(t.viewportHeight),l(t.itemHeight))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"element",ref:u,style:tT(s),children:e})},tE=({children:e})=>{let t=n.default.useContext(to),r=tL("windowViewportRect"),l=tL("fixedItemHeight"),i=G(r,tF("customScrollParent"),tF("skipAnimationFrameInResizeObserver")),s=tF("alignToBottom");return n.default.useEffect(()=>{t&&(l(t.itemHeight),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"window",ref:i,style:tT(s),children:e})},tB=({children:e})=>{let t=tF("TopItemListComponent")||"div",n=tF("headerHeight"),r={...tC,marginTop:`${n}px`},l=tF("context");return(0,o.jsx)(t,{style:r,...tS(t,l),children:e})},{Component:tk,useEmitter:tO,useEmitterValue:tF,usePublisher:tL}=tt(tf,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},n.default.memo(function(e){let t=tF("useWindowScroll"),n=tF("topItemsIndexes").length>0,r=tF("customScrollParent"),l=tF("context");return(0,o.jsxs)(r||t?tj:tM,{...e,context:l,children:[n&&(0,o.jsx)(tB,{children:(0,o.jsx)(tx,{showTopList:!0})}),(0,o.jsxs)(r||t?tE:tR,{children:[(0,o.jsx)(tH,{}),(0,o.jsx)(tx,{}),(0,o.jsx)(ty,{})]})]})})),tM=tz({useEmitter:tO,useEmitterValue:tF,usePublisher:tL}),tj=tb({useEmitter:tO,useEmitterValue:tF,usePublisher:tL}),tP=B(()=>{let e=z(e=>(0,o.jsxs)("td",{children:["Item $",e]})),t=z(null),n=z(e=>(0,o.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=z(null),l=z(null),i=z({}),s=z(td),u=z(a),d=(e,t=null)=>b(C(i,I(t=>t[e]),x()),t);return{components:i,computeItemKey:s,context:t,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:l,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:d("Scroller","div"),scrollerRef:u,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}}),tW=B(([e,t])=>({...e,...t}),d(e9,tP)),tA=({height:e})=>(0,o.jsx)("tr",{children:(0,o.jsx)("td",{style:{height:e}})}),tV=({height:e})=>(0,o.jsx)("tr",{children:(0,o.jsx)("td",{style:{border:0,height:e,padding:0}})}),tD={overflowAnchor:"none"},tG={position:tu(),zIndex:2,overflowAnchor:"none"},tN=n.default.memo(function({showTopList:e=!1}){let t=tY("listState"),r=tY("computeItemKey"),l=tY("firstItemIndex"),i=tY("context"),s=tY("isSeeking"),a=tY("fixedHeaderHeight"),u=tY("groupIndices").length>0,d=tY("itemContent"),c=tY("groupContent"),f=tY("ScrollSeekPlaceholder")||tA,h=tY("GroupComponent"),m=tY("TableRowComponent"),p=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]),g=(e?t.topItems:t.items).map(t=>{let o=t.originalIndex,g=r(o+l,t.data,i),x=e?0===o?0:p[o-1]:0;return s?(0,n.createElement)(f,{...tS(f,i),height:t.size,index:t.index,key:g,type:t.type||"item"}):"group"===t.type?(0,n.createElement)(h,{...tS(h,i),"data-index":o,"data-item-index":t.index,"data-known-size":t.size,key:g,style:{...tG,top:a}},c(t.index,i)):(0,n.createElement)(m,{...tS(m,i),...tw(m,t.data),"data-index":o,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:g,style:e?{...tG,top:a+x}:tD},u?d(t.index,t.groupIndex,t.data,i):d(t.index,t.data,i))});return(0,o.jsx)(o.Fragment,{children:g})}),tU=n.default.memo(function(){let e=tY("listState"),t=tY("topItemsIndexes").length>0,r=tX("sizeRanges"),l=tY("useWindowScroll"),i=tY("customScrollParent"),s=tX("windowScrollContainerState"),a=tX("scrollContainerState"),u=tY("trackItemSizes"),{callbackRef:d,ref:c}=V(r,tY("itemSize"),u,i||l?s:a,tY("log"),void 0,i,!1,tY("skipAnimationFrameInResizeObserver")),[f,h]=n.default.useState(0);t$("deviation",e=>{f!==e&&(c.current.style.marginTop=`${e}px`,h(e))});let m=tY("EmptyPlaceholder"),p=tY("FillerRow")||tV,g=tY("TableBodyComponent"),x=tY("paddingTopAddition"),v=tY("statefulTotalCount"),I=tY("context");if(0===v&&m)return(0,o.jsx)(m,{...tS(m,I)});let T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),C=e.offsetTop+x+f-T,S=e.offsetBottom,w=C>0?(0,o.jsx)(p,{context:I,height:C},"padding-top"):null,H=S>0?(0,o.jsx)(p,{context:I,height:S},"padding-bottom"):null;return(0,o.jsxs)(g,{"data-testid":"virtuoso-item-list",ref:d,...tS(g,I),children:[w,t&&(0,o.jsx)(tN,{showTopList:!0}),(0,o.jsx)(tN,{}),H]})}),t_=({children:e})=>{let t=n.default.useContext(to),r=tX("viewportHeight"),l=tX("fixedItemHeight"),s=W(n.default.useMemo(()=>i(r,e=>ea(e,"height")),[r]),!0,tY("skipAnimationFrameInResizeObserver"));return n.default.useEffect(()=>{t&&(r(t.viewportHeight),l(t.itemHeight))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"element",ref:s,style:tT(!1),children:e})},tK=({children:e})=>{let t=n.default.useContext(to),r=tX("windowViewportRect"),l=tX("fixedItemHeight"),i=G(r,tY("customScrollParent"),tY("skipAnimationFrameInResizeObserver"));return n.default.useEffect(()=>{t&&(l(t.itemHeight),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"window",ref:i,style:tT(!1),children:e})},{Component:tq,useEmitter:t$,useEmitterValue:tY,usePublisher:tX}=tt(tW,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},n.default.memo(function(e){let t=tY("useWindowScroll"),r=tY("customScrollParent"),l=tX("fixedHeaderHeight"),s=tX("fixedFooterHeight"),a=tY("fixedHeaderContent"),u=tY("fixedFooterContent"),d=tY("context"),c=W(n.default.useMemo(()=>i(l,e=>ea(e,"height")),[l]),!0,tY("skipAnimationFrameInResizeObserver")),f=W(n.default.useMemo(()=>i(s,e=>ea(e,"height")),[s]),!0,tY("skipAnimationFrameInResizeObserver")),h=r||t?tJ:tZ,m=r||t?tK:t_,p=tY("TableComponent"),g=tY("TableHeadComponent"),x=tY("TableFooterComponent"),v=a?(0,o.jsx)(g,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tS(g,d),children:a()},"TableHead"):null,I=u?(0,o.jsx)(x,{ref:f,style:{bottom:0,position:"sticky",zIndex:1},...tS(x,d),children:u()},"TableFoot"):null;return(0,o.jsx)(h,{...e,...tS(h,d),children:(0,o.jsx)(m,{children:(0,o.jsxs)(p,{style:{borderSpacing:0,overflowAnchor:"none"},...tS(p,d),children:[v,(0,o.jsx)(tU,{},"TableBody"),I]})})})})),tZ=tz({useEmitter:t$,useEmitterValue:tY,usePublisher:tX}),tJ=tb({useEmitter:t$,useEmitterValue:tY,usePublisher:tX}),tQ={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},t0={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:t1,floor:t2,max:t3,min:t4,round:t5}=Math;function t7(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function t8(e,t){return e&&e.width===t.width&&e.height===t.height}function t6(e,t){return e&&e.column===t.column&&e.row===t.row}let t9=B(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:l,scrollBy:i,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHeight:c},f,p,{didMount:g,propsReady:S},{customScrollParent:B,useWindowScroll:k,windowScrollContainerState:L,windowScrollTo:M,windowViewportRect:j},P])=>{let W=z(0),A=z(0),V=z(tQ),D=z({height:0,width:0}),G=z({height:0,width:0}),N=R(),U=R(),_=z(0),K=z(null),q=z({column:0,row:0}),$=R(),Y=R(),X=z(!1),Z=z(0),J=z(!0),Q=z(!1),ee=z(!1);C(g,y(Z),v(([e,t])=>!!t))(1,()=>{J(0,!1)}),C(O(g,J,G,D,Z,Q),v(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),eb(1,()=>{N(0,e)}),m(C(u),()=>{t(0,[0,0]),J(0,!0)})}),h(C(Y,v(e=>null!=e&&e.scrollTop>0),T(0)),A),C(g,y(Y),v(([,e])=>null!=e))(1,([,e])=>{e&&(D(0,e.viewport),G(0,e.item),q(0,e.gap),e.scrollTop>0&&(X(0,!0),m(C(u,w(1)),e=>{X(0,!1)}),a(0,{top:e.scrollTop})))}),h(C(D,I(({height:e})=>e)),c),h(C(O(F(D,t8),F(G,t8),F(q,(e,t)=>e&&e.column===t.column&&e.row===t.row),F(u)),I(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),$),h(C(O(F(W),n,F(q,t6),F(G,t8),F(D,t8),F(K),F(A),F(X),F(J),F(Z)),v(([,,,,,,,e])=>!e),I(([e,[t,o],n,r,l,i,s,,a,u])=>{let d,c,{column:f,row:h}=n,{height:m,width:p}=r,{width:g}=l;if(0===s&&(0===e||0===g))return tQ;if(0===p){var x;let t=eR(u,e),o=t+Math.max(s-1,0);return x=t7(t,o,i),{...t0,items:x}}let v=oe(g,p,f);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=v*t2((t+h)/(m+h)),c=t4(e-1,t3(c=v*t1((o+h)/(m+h))-1,v-1)),d=t4(c,t3(0,d))):(d=0,c=-1);let I=t7(d,c,i),{bottom:T,top:C}=ot(l,n,r,I),S=t1(e/v);return{bottom:T,itemHeight:m,items:I,itemWidth:p,offsetBottom:S*m+(S-1)*h-T,offsetTop:C,top:C}})),V),h(C(K,v(e=>null!==e),I(e=>e.length)),W),h(C(O(D,G,V,q),v(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),I(([e,t,{items:o},n])=>{let{bottom:r,top:l}=ot(e,n,t,o);return[l,r]}),x(el)),t);let et=z(!1);h(C(u,y(et),I(([e,t])=>t||0!==e)),et);let eo=E(C(O(V,W),v(([{items:e}])=>e.length>0),y(et),v(([[e,t],o])=>{let n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),I(([[,e]])=>e-1),x())),en=E(C(F(V),v(({items:e})=>e.length>0&&0===e[0].index),T(0),x())),ei=E(C(F(V),y(X),v(([{items:e},t])=>e.length>0&&!t),I(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),x(er),H(0)));h(ei,p.scrollSeekRangeChanged),h(C(N,y(D,G,W,q),I(([e,t,o,n,r])=>{let l=ey(e),{align:i,behavior:s,offset:a}=l,u=l.index;"LAST"===u&&(u=n-1);let d=oo(t,r,o,u=t3(0,u,t4(n-1,u)));return"end"===i?d=t5(d-t.height+o.height):"center"===i&&(d=t5(d-t.height/2+o.height/2)),a&&(d+=a),{behavior:s,top:d}})),a);let es=b(C(V,I(e=>e.offsetBottom+e.bottom)),0);return h(C(j,I(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:B,data:K,deviation:_,footerHeight:r,gap:q,headerHeight:l,increaseViewportBy:e,initialItemCount:A,itemDimensions:G,overscan:o,restoreStateFrom:Y,scrollBy:i,scrollContainerState:s,scrollHeight:U,scrollTo:a,scrollToIndex:N,scrollTop:u,smoothScrollTargetReached:d,totalCount:W,useWindowScroll:k,viewportDimensions:D,windowScrollContainerState:L,windowScrollTo:M,windowViewportRect:j,...p,gridState:V,horizontalDirection:ee,initialTopMostItemIndex:Z,totalListHeight:es,...f,endReached:eo,propsReady:S,rangeChanged:ei,startReached:en,stateChanged:$,stateRestoreInProgress:X,...P}},d(eW,N,eF,e0,ew,e1,P));function oe(e,t,o){return t3(1,t2((e+o)/(t2(t)+o)))}function ot(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let l=oo(e,t,o,n[0].index);return{bottom:oo(e,t,o,n[n.length-1].index)+r,top:l}}function oo(e,t,o,n){let r=t2(n/oe(e.width,o.width,t.column)),l=r*o.height+t3(0,r-1)*t.row;return l>0?l+t.row:l}let on=B(()=>{let e=z(e=>`Item ${e}`),t=z({}),o=z(null),n=z("virtuoso-grid-item"),r=z("virtuoso-grid-list"),l=z(td),i=z("div"),s=z(a),u=(e,o=null)=>b(C(t,I(t=>t[e]),x()),o),d=z(!1),c=z(!1);return h(F(c),d),{components:t,computeItemKey:l,context:o,FooterComponent:u("Footer"),HeaderComponent:u("Header"),headerFooterTag:i,itemClassName:n,ItemComponent:u("Item","div"),itemContent:e,listClassName:r,ListComponent:u("List","div"),readyStateChanged:d,reportReadyState:c,ScrollerComponent:u("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}}),or=B(([e,t])=>({...e,...t}),d(t9,on)),ol=n.default.memo(function(){let e=oc("gridState"),t=oc("listClassName"),r=oc("itemClassName"),l=oc("itemContent"),i=oc("computeItemKey"),s=oc("isSeeking"),a=of("scrollHeight"),u=oc("ItemComponent"),d=oc("ListComponent"),c=oc("ScrollSeekPlaceholder"),f=oc("context"),h=of("itemDimensions"),m=of("gap"),p=oc("log"),g=oc("stateRestoreInProgress"),x=of("reportReadyState"),v=W(n.default.useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(t){let{height:e,width:o}=t.getBoundingClientRect();h({height:e,width:o})}m({column:op("column-gap",getComputedStyle(e).columnGap,p),row:op("row-gap",getComputedStyle(e).rowGap,p)})},[a,h,m,p]),!0,!1);return tr(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),g?null:(0,o.jsx)(d,{className:t,ref:v,...tS(d,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let a=i(t.index,t.data,f);return s?(0,o.jsx)(c,{...tS(c,f),height:e.itemHeight,index:t.index,width:e.itemWidth},a):(0,n.createElement)(u,{...tS(u,f),className:r,"data-index":t.index,key:a},l(t.index,t.data,f))})})}),oi=n.default.memo(function(){let e=oc("HeaderComponent"),t=of("headerHeight"),r=oc("headerFooterTag"),l=W(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,!1),i=oc("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null}),os=n.default.memo(function(){let e=oc("FooterComponent"),t=of("footerHeight"),r=oc("headerFooterTag"),l=W(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,!1),i=oc("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null}),oa=({children:e})=>{let t=n.default.useContext(tn),r=of("itemDimensions"),l=of("viewportDimensions"),i=W(n.default.useMemo(()=>e=>{l(e.getBoundingClientRect())},[l]),!0,!1);return n.default.useEffect(()=>{t&&(l({height:t.viewportHeight,width:t.viewportWidth}),r({height:t.itemHeight,width:t.itemWidth}))},[t,l,r]),(0,o.jsx)("div",{ref:i,style:tT(!1),children:e})},ou=({children:e})=>{let t=n.default.useContext(tn),r=of("windowViewportRect"),l=of("itemDimensions"),i=G(r,oc("customScrollParent"),!1);return n.default.useEffect(()=>{t&&(l({height:t.itemHeight,width:t.itemWidth}),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,r,l]),(0,o.jsx)("div",{ref:i,style:tT(!1),children:e})},{useEmitter:od,useEmitterValue:oc,usePublisher:of}=tt(or,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},n.default.memo(function({...e}){let t=oc("useWindowScroll"),n=oc("customScrollParent"),r=n||t?om:oh,l=n||t?ou:oa,i=oc("context");return(0,o.jsx)(r,{...e,...tS(r,i),children:(0,o.jsxs)(l,{children:[(0,o.jsx)(oi,{}),(0,o.jsx)(ol,{}),(0,o.jsx)(os,{})]})})})),oh=tz({useEmitter:od,useEmitterValue:oc,usePublisher:of}),om=tb({useEmitter:od,useEmitterValue:oc,usePublisher:of});function op(e,t,o){return"normal"===t||null!=t&&t.endsWith("px")||o(`${e} was not resolved to pixel value correctly`,t,M.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}e.s(["TableVirtuoso",()=>tq,"Virtuoso",()=>tk])}]); //# debugId=a80db76d-7d1c-5c5e-586d-4c345b2baf44 //# sourceMappingURL=60ae0c9396592f2e.js.map