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