79490-0128419a253d00c8.js 61 KB

12
  1. "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79490],{39682:function(e,t,n){n.d(t,{OO:function(){return Gn}});var o=n(67597);function r(e,t){return function(n){return e(t(n))}}function i(e,t){return t(e)}function l(e,t){return function(n){return e(t,n)}}function a(e,t){return function(){return e(t)}}function u(e,t){return t(e),e}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}function s(e){e()}function f(e){return function(){return e}}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.map(s)}}function m(){}function p(e,t){return e(1,t)}function h(e,t){e(0,t)}function g(e){e(2)}function v(e){return e(4)}function C(e,t){return p(e,l(t,0))}function I(e,t){var n=e(1,(function(e){n(),t(e)}));return n}function w(){var e=[];return function(t,n){switch(t){case 2:return void e.splice(0,e.length);case 1:return e.push(n),function(){var t=e.indexOf(n);t>-1&&e.splice(t,1)};case 0:return void e.slice().forEach((function(e){e(n)}));default:throw new Error("unrecognized action "+t)}}}function x(e){var t=e,n=w();return function(e,o){switch(e){case 1:o(t);break;case 0:t=o;break;case 4:return t}return n(e,o)}}function S(e){return u(w(),(function(t){return C(e,t)}))}function T(e,t){return u(x(t),(function(t){return C(e,t)}))}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(i,e)}}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=y.apply(void 0,n);return function(t,n){switch(t){case 1:return p(e,r(n));case 2:return void g(e);default:throw new Error("unrecognized action "+t)}}}function E(e,t){return e===t}function H(e){var t;return void 0===e&&(e=E),function(n){return function(o){e(t,o)||(t=o,n(o))}}}function R(e){return function(t){return function(n){e(n)&&t(n)}}}function k(e){return function(t){return r(t,e)}}function z(e){return function(t){return function(){return t(e)}}}function B(e,t){return function(n){return function(o){return n(t=e(t,o))}}}function O(e){return function(t){return function(n){e>0?e--:t(n)}}}function P(e){var t,n;return function(o){return function(r){t=r,n||(n=setTimeout((function(){n=void 0,o(t)}),e))}}}function L(e){var t,n;return function(o){return function(r){t=r,n&&clearTimeout(n),n=setTimeout((function(){o(t)}),e)}}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=new Array(t.length),r=0,i=null,l=Math.pow(2,t.length)-1;return t.forEach((function(e,t){var n=Math.pow(2,t);p(e,(function(e){var a=r;r|=n,o[t]=e,a!==l&&r===l&&i&&(i(),i=null)}))})),function(e){return function(t){var n=function(){return e([t].concat(o))};r===l?n():i=n}}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){switch(e){case 1:return d.apply(void 0,t.map((function(e){return p(e,n)})));case 2:return;default:throw new Error("unrecognized action "+e)}}}function F(e,t){return void 0===t&&(t=E),b(e,H(t))}function W(){for(var e=w(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=new Array(n.length),i=0,l=Math.pow(2,n.length)-1;return n.forEach((function(t,n){var o=Math.pow(2,n);p(t,(function(t){r[n]=t,(i|=o)===l&&h(e,r)}))})),function(t,n){switch(t){case 1:return i===l&&n(r),p(e,n);case 2:return g(e);default:throw new Error("unrecognized action "+t)}}}function V(e,t,n){void 0===t&&(t=[]);var o=(void 0===n?{singleton:!0}:n).singleton;return{id:D(),constructor:e,dependencies:t,singleton:o}}var D=function(){return Symbol()};function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function _(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var G=["children"];var j="undefined"!==typeof document?o.useLayoutEffect:o.useEffect;function U(e,t,n){var r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),c=Object.keys(t.methods||{}),s=Object.keys(t.events||{}),d=(0,o.createContext)({});function C(e,n){e.propsReady&&h(e.propsReady,!1);for(var o,l=_(r);!(o=l()).done;){var a=o.value;h(e[t.required[a]],n[a])}for(var u,c=_(i);!(u=c()).done;){var s=u.value;if(s in n)h(e[t.optional[s]],n[s])}e.propsReady&&h(e.propsReady,!0)}function I(e){return s.reduce((function(n,o){return n[o]=function(e){var t,n,o=function(){return t&&t()};return function(r,i){switch(r){case 1:if(i){if(n===i)return;return o(),n=i,t=p(e,i)}return o(),m;case 2:return o(),void(n=null);default:throw new Error("unrecognized action "+r)}}}(e[t.events[o]]),n}),{})}var w=(0,o.forwardRef)((function(l,m){var v=l.children,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(l,G),x=(0,o.useState)((function(){return u(function(e){var t=new Map;return function e(n){var o=n.id,r=n.constructor,i=n.dependencies,l=n.singleton;if(l&&t.has(o))return t.get(o);var a=r(i.map((function(t){return e(t)})));return l&&t.set(o,a),a}(e)}(e),(function(e){return C(e,w)}))})),S=x[0],T=(0,o.useState)(a(I,S))[0];return j((function(){for(var e,t=_(s);!(e=t()).done;){var n=e.value;n in w&&p(T[n],w[n])}return function(){Object.values(T).map(g)}}),[w,T,S]),j((function(){C(S,w)})),(0,o.useImperativeHandle)(m,f(function(e){return c.reduce((function(n,o){return n[o]=function(n){h(e[t.methods[o]],n)},n}),{})}(S))),(0,o.createElement)(d.Provider,{value:S},n?(0,o.createElement)(n,function(e,t){for(var n={},o={},r=0,i=e.length;r<i;)o[e[r]]=1,r+=1;for(var l in t)o.hasOwnProperty(l)||(n[l]=t[l]);return n}([].concat(r,i,s),w),v):v)}));return{Component:w,usePublisher:function(e){return(0,o.useCallback)(l(h,(0,o.useContext)(d)[e]),[e])},useEmitterValue:function(e){var t=(0,o.useContext)(d)[e],n=(0,o.useState)(a(v,t)),r=n[0],i=n[1];return j((function(){return p(t,(function(e){e!==r&&i(f(e))}))}),[t,r]),r},useEmitter:function(e,t){var n=(0,o.useContext)(d)[e];j((function(){return p(n,t)}),[t,n])}}}var K=n(72934);function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z.apply(this,arguments)}function q(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function $(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var J,Q,X,ee="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;(X=Q||(Q={}))[X.DEBUG=0]="DEBUG",X[X.INFO=1]="INFO",X[X.WARN=2]="WARN",X[X.ERROR=3]="ERROR";var te=((J={})[Q.DEBUG]="debug",J[Q.INFO]="log",J[Q.WARN]="warn",J[Q.ERROR]="error",J),ne=V((function(){var e=x(Q.ERROR);return{log:x((function(t,n,o){var r;void 0===o&&(o=Q.INFO),o>=(null!=(r=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:v(e))&&console[te[o]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)})),logLevel:e}}),[],{singleton:!0});function oe(e,t){void 0===t&&(t=!0);var n=(0,o.useRef)(null),r=function(e){};if("undefined"!=typeof ResizeObserver){var i=new ResizeObserver((function(t){var n=t[0].target;null!==n.offsetParent&&e(n)}));r=function(e){e&&t?(i.observe(e),n.current=e):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function re(e,t){return void 0===t&&(t=!0),oe(e,t).callbackRef}function ie(e,t,n,o,r,i,l){return oe((function(n){for(var a=function(e,t,n,o){var r=e.length;if(0===r)return null;for(var i=[],l=0;l<r;l++){var a=e.item(l);if(a&&void 0!==a.dataset.index){var u=parseInt(a.dataset.index),c=parseFloat(a.dataset.knownSize),s=t(a,"offsetHeight");if(0===s&&o("Zero-sized element, this should not happen",{child:a},Q.ERROR),s!==c){var f=i[i.length-1];0===i.length||f.size!==s||f.endIndex!==u-1?i.push({startIndex:u,endIndex:u,size:s}):i[i.length-1].endIndex++}}}return i}(n.children,t,0,r),u=n.parentElement;!u.dataset.virtuosoScroller;)u=u.parentElement;var c="window"===u.firstElementChild.dataset.viewportType,s=l?l.scrollTop:c?window.pageYOffset||document.documentElement.scrollTop:u.scrollTop,f=l?l.scrollHeight:c?document.documentElement.scrollHeight:u.scrollHeight,d=l?l.offsetHeight:c?window.innerHeight:u.offsetHeight;o({scrollTop:Math.max(s,0),scrollHeight:f,viewportHeight:d}),null==i||i(function(e,t,n){return"normal"===t||null!=t&&t.endsWith("px")||n("row-gap was not resolved to pixel value correctly",t,Q.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}(0,getComputedStyle(n).rowGap,r)),null!==a&&e(a)}),n)}function le(e,t){return Math.round(e.getBoundingClientRect()[t])}function ae(e,t){return Math.abs(e-t)<1.01}function ue(e,t,n,r,i){void 0===r&&(r=m);var l=(0,o.useRef)(null),a=(0,o.useRef)(null),u=(0,o.useRef)(null),c=(0,o.useRef)(!1),s=(0,o.useCallback)((function(n){var o=n.target,r=o===window||o===document,i=r?window.pageYOffset||document.documentElement.scrollTop:o.scrollTop,l=r?document.documentElement.scrollHeight:o.scrollHeight,s=r?window.innerHeight:o.offsetHeight,f=function(){e({scrollTop:Math.max(i,0),scrollHeight:l,viewportHeight:s})};c.current?(0,K.flushSync)(f):f(),c.current=!1,null!==a.current&&(i===a.current||i<=0||i===l-s)&&(a.current=null,t(!0),u.current&&(clearTimeout(u.current),u.current=null))}),[e,t]);return(0,o.useEffect)((function(){var e=i||l.current;return r(i||l.current),s({target:e}),e.addEventListener("scroll",s,{passive:!0}),function(){r(null),e.removeEventListener("scroll",s)}}),[l,s,n,r,i]),{scrollerRef:l,scrollByCallback:function(e){c.current=!0,l.current.scrollBy(e)},scrollToCallback:function(n){var o=l.current;if(o&&(!("offsetHeight"in o)||0!==o.offsetHeight)){var r,i,c,s="smooth"===n.behavior;if(o===window?(i=Math.max(le(document.documentElement,"height"),document.documentElement.scrollHeight),r=window.innerHeight,c=document.documentElement.scrollTop):(i=o.scrollHeight,r=le(o,"height"),c=o.scrollTop),n.top=Math.ceil(Math.max(Math.min(i-r,n.top),0)),ae(r,i)||n.top===c)return e({scrollTop:c,scrollHeight:i,viewportHeight:r}),void(s&&t(!0));s?(a.current=n.top,u.current&&clearTimeout(u.current),u.current=setTimeout((function(){u.current=null,a.current=null,t(!0)}),1e3)):a.current=null,o.scrollTo(n)}}}}var ce=V((function(){var e=w(),t=w(),n=x(0),o=w(),r=x(0),i=w(),l=w(),a=x(0),u=x(0),c=x(0),s=x(0),f=w(),d=w(),m=x(!1),p=x(!1);return C(b(e,k((function(e){return e.scrollTop}))),t),C(b(e,k((function(e){return e.scrollHeight}))),l),C(t,r),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:a,fixedHeaderHeight:u,fixedFooterHeight:c,footerHeight:s,scrollHeight:l,smoothScrollTargetReached:o,react18ConcurrentRendering:p,scrollTo:f,scrollBy:d,statefulScrollTop:r,deviation:n,scrollingInProgress:m}}),[],{singleton:!0}),se={lvl:0};function fe(e,t,n,o,r){return void 0===o&&(o=se),void 0===r&&(r=se),{k:e,v:t,lvl:n,l:o,r:r}}function de(e){return e===se}function me(){return se}function pe(e,t){if(de(e))return se;var n=e.k,o=e.l,r=e.r;if(t===n){if(de(o))return r;if(de(r))return o;var i=Ie(o);return Te(xe(e,{k:i[0],v:i[1],l:we(o)}))}return Te(xe(e,t<n?{l:pe(o,t)}:{r:pe(r,t)}))}function he(e,t,n){if(void 0===n&&(n="k"),de(e))return[-1/0,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]<t){var o=he(e.r,t,n);return-1/0===o[0]?[e.k,e.v]:o}return he(e.l,t,n)}function ge(e,t,n){return de(e)?fe(t,n,1):t===e.k?xe(e,{k:t,v:n}):function(e){return Ee(He(e))}(xe(e,t<e.k?{l:ge(e.l,t,n)}:{r:ge(e.r,t,n)}))}function ve(e,t,n){if(de(e))return[];var o=e.k,r=e.v,i=e.r,l=[];return o>t&&(l=l.concat(ve(e.l,t,n))),o>=t&&o<=n&&l.push({k:o,v:r}),o<=n&&(l=l.concat(ve(i,t,n))),l}function Ce(e){return de(e)?[]:[].concat(Ce(e.l),[{k:e.k,v:e.v}],Ce(e.r))}function Ie(e){return de(e.r)?[e.k,e.v]:Ie(e.r)}function we(e){return de(e.r)?e.l:Te(xe(e,{r:we(e.r)}))}function xe(e,t){return fe(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 Se(e){return de(e)||e.lvl>e.r.lvl}function Te(e){var t=e.l,n=e.r,o=e.lvl;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(Se(t))return He(xe(e,{lvl:o-1}));if(de(t)||de(t.r))throw new Error("Unexpected empty nodes");return xe(t.r,{l:xe(t,{r:t.r.l}),r:xe(e,{l:t.r.r,lvl:o-1}),lvl:o})}if(Se(e))return Ee(xe(e,{lvl:o-1}));if(de(n)||de(n.l))throw new Error("Unexpected empty nodes");var r=n.l,i=Se(r)?n.lvl-1:n.lvl;return xe(r,{l:xe(e,{r:r.l,lvl:o-1}),r:Ee(xe(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}function ye(e,t,n){return de(e)?[]:be(ve(e,he(e,t)[0],n),(function(e){return{index:e.k,value:e.v}}))}function be(e,t){var n=e.length;if(0===n)return[];for(var o=t(e[0]),r=o.index,i=o.value,l=[],a=1;a<n;a++){var u=t(e[a]),c=u.index,s=u.value;l.push({start:r,end:c-1,value:i}),r=c,i=s}return l.push({start:r,end:1/0,value:i}),l}function Ee(e){var t=e.r,n=e.lvl;return de(t)||de(t.r)||t.lvl!==n||t.r.lvl!==n?e:xe(t,{l:xe(e,{r:t.l}),lvl:n+1})}function He(e){var t=e.l;return de(t)||t.lvl!==e.lvl?e:xe(t,{r:xe(e,{l:t.r})})}function Re(e,t,n,o){void 0===o&&(o=0);for(var r=e.length-1;o<=r;){var i=Math.floor((o+r)/2),l=n(e[i],t);if(0===l)return i;if(-1===l){if(r-o<2)return i-1;r=i-1}else{if(r===o)return i;o=i+1}}throw new Error("Failed binary finding record in array - "+e.join(",")+", searched for "+t)}function ke(e,t,n){return e[Re(e,t,n)]}var ze=V((function(){return{recalcInProgress:x(!1)}}),[],{singleton:!0});function Be(e){var t=e.size,n=e.startIndex,o=e.endIndex;return function(e){return e.start===n&&(e.end===o||1/0===e.end)&&e.value===t}}function Oe(e,t){var n=e.index;return t===n?0:t<n?-1:1}function Pe(e,t){var n=e.offset;return t===n?0:t<n?-1:1}function Le(e){return{index:e.index,value:e}}function Ae(e,t,n,o){var r=e,i=0,l=0,a=0,u=0;if(0!==t){a=r[u=Re(r,t-1,Oe)].offset;var c=he(n,t-1);i=c[0],l=c[1],r.length&&r[u].size===he(n,t)[1]&&(u-=1),r=r.slice(0,u+1)}else r=[];for(var s,f=$(ye(n,t,1/0));!(s=f()).done;){var d=s.value,m=d.start,p=d.value,h=m-i,g=h*l+a+h*o;r.push({offset:g,size:p,index:m}),i=m,a=g,l=p}return{offsetTree:r,lastIndex:i,lastOffset:a,lastSize:l}}function Me(e,t){var n=t[0],o=t[1],r=t[3];n.length>0&&(0,t[2])("received item sizes",n,Q.DEBUG);var i=e.sizeTree,l=i,a=0;if(o.length>0&&de(i)&&2===n.length){var u=n[0].size,c=n[1].size;l=o.reduce((function(e,t){return ge(ge(e,t,u),t+1,c)}),l)}else{var s=function(e,t){for(var n,o=de(e)?0:1/0,r=$(t);!(n=r()).done;){var i=n.value,l=i.size,a=i.startIndex,u=i.endIndex;if(o=Math.min(o,a),de(e))e=ge(e,0,l);else{var c=ye(e,a-1,u+1);if(!c.some(Be(i))){for(var s,f=!1,d=!1,m=$(c);!(s=m()).done;){var p=s.value,h=p.start,g=p.end,v=p.value;f?(u>=h||l===v)&&(e=pe(e,h)):(d=v!==l,f=!0),g>u&&u>=h&&v!==l&&(e=ge(e,u+1,v))}d&&(e=ge(e,a,l))}}}return[e,o]}(l,n);l=s[0],a=s[1]}if(l===i)return e;var f=Ae(e.offsetTree,a,l,r),d=f.offsetTree;return{sizeTree:l,offsetTree:d,lastIndex:f.lastIndex,lastOffset:f.lastOffset,lastSize:f.lastSize,groupOffsetTree:o.reduce((function(e,t){return ge(e,t,Fe(t,d,r))}),me()),groupIndices:o}}function Fe(e,t,n){if(0===t.length)return 0;var o=ke(t,e,Oe),r=e-o.index,i=o.size*r+(r-1)*n+o.offset;return i>0?i+n:i}function We(e,t,n){if(function(e){return void 0!==e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;var o=Ve("LAST"===e.index?n:e.index,t);return Math.max(0,o,Math.min(n,o))}function Ve(e,t){if(!De(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function De(e){return!de(e.groupOffsetTree)}var Ne={offsetHeight:"height",offsetWidth:"width"},_e=V((function(e){var t=e[0].log,n=e[1].recalcInProgress,o=w(),r=w(),i=T(r,0),l=w(),a=w(),u=x(0),c=x([]),s=x(void 0),f=x(void 0),d=x((function(e,t){return le(e,Ne[t])})),m=x(void 0),g=x(0),I={offsetTree:[],sizeTree:me(),groupOffsetTree:me(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},y=T(b(o,A(c,t,g),B(Me,I),H()),I);C(b(c,R((function(e){return e.length>0})),A(y,g),k((function(e){var t=e[0],n=e[1],o=e[2],r=t.reduce((function(e,t,r){return ge(e,t,Fe(t,n.offsetTree,o)||r)}),me());return Z({},n,{groupIndices:t,groupOffsetTree:r})}))),y),C(b(r,A(y),R((function(e){return e[0]<e[1].lastIndex})),k((function(e){var t=e[1];return[{startIndex:e[0],endIndex:t.lastIndex,size:t.lastSize}]}))),o),C(s,f);var E=T(b(s,k((function(e){return void 0===e}))),!0);C(b(f,R((function(e){return void 0!==e&&de(v(y).sizeTree)})),k((function(e){return[{startIndex:0,endIndex:0,size:e}]}))),o);var z=S(b(o,A(y),B((function(e,t){var n=t[1];return{changed:n!==e.sizes,sizes:n}}),{changed:!1,sizes:I}),k((function(e){return e.changed}))));p(b(u,B((function(e,t){return{diff:e.prev-t,prev:t}}),{diff:0,prev:0}),k((function(e){return e.diff}))),(function(e){e>0?(h(n,!0),h(l,e)):e<0&&h(a,e)})),p(b(u,A(t)),(function(e){e[0]<0&&(0,e[1])("`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:u},Q.ERROR)}));var O=S(l);C(b(l,A(y),k((function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return Ce(n.sizeTree).reduce((function(e,n){var o=n.k,r=n.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:o+t-1,size:e.prevSize}]),prevIndex:o+t,prevSize:r}}),{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges}))),o);var P=S(b(a,A(y,g),k((function(e){return Fe(-e[0],e[1].offsetTree,e[2])}))));return C(b(a,A(y,g),k((function(e){var t=e[0],n=e[1],o=e[2];if(n.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var r=Ce(n.sizeTree).reduce((function(e,n){var o=n.v;return ge(e,Math.max(0,n.k+t),o)}),me());return Z({},n,{sizeTree:r},Ae(n.offsetTree,0,r,o))}))),y),{data:m,totalCount:r,sizeRanges:o,groupIndices:c,defaultItemSize:f,fixedItemSize:s,unshiftWith:l,shiftWith:a,shiftWithOffset:P,beforeUnshiftWith:O,firstItemIndex:u,gap:g,sizes:y,listRefresh:z,statefulTotalCount:i,trackItemSizes:E,itemSize:d}}),c(ne,ze),{singleton:!0}),Ge="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function je(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&Ge||(t.behavior="auto"),t.offset||(t.offset=0),t}var Ue=V((function(e){var t=e[0],n=t.sizes,o=t.totalCount,r=t.listRefresh,i=t.gap,l=e[1],a=l.scrollingInProgress,u=l.viewportHeight,c=l.scrollTo,s=l.smoothScrollTargetReached,f=l.headerHeight,d=l.footerHeight,m=l.fixedHeaderHeight,g=l.fixedFooterHeight,v=e[2].log,S=w(),T=x(0),y=null,E=null,H=null;function R(){y&&(y(),y=null),H&&(H(),H=null),E&&(clearTimeout(E),E=null),h(a,!1)}return C(b(S,A(n,u,o,T,f,d,v),A(i,m,g),k((function(e){var t=e[0],n=t[0],o=t[1],i=t[2],l=t[3],u=t[4],c=t[5],f=t[6],d=t[7],m=e[1],g=e[2],v=e[3],C=je(n),w=C.align,x=C.behavior,T=C.offset,k=l-1,z=We(C,o,k),B=Fe(z,o.offsetTree,m)+c;"end"===w?(B+=g+he(o.sizeTree,z)[1]-i+v,z===k&&(B+=f)):"center"===w?B+=(g+he(o.sizeTree,z)[1]-i+v)/2:B-=u,T&&(B+=T);var O=function(e){R(),e?(d("retrying to scroll to",{location:n},Q.DEBUG),h(S,n)):d("list did not change, scroll successful",{},Q.DEBUG)};if(R(),"smooth"===x){var P=!1;H=p(r,(function(e){P=P||e})),y=I(s,(function(){O(P)}))}else y=I(b(r,(function(e){var t=setTimeout((function(){e(!1)}),150);return function(n){n&&(e(!0),clearTimeout(t))}})),O);return E=setTimeout((function(){R()}),1200),h(a,!0),d("scrolling from index to",{index:z,top:B,behavior:x},Q.DEBUG),{top:B,behavior:x}}))),c),{scrollToIndex:S,topListHeight:T}}),c(_e,ce,ne),{singleton:!0}),Ke="up",Ze={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},qe=V((function(e){var t=e[0],n=t.scrollContainerState,o=t.scrollTop,r=t.viewportHeight,i=t.headerHeight,l=t.footerHeight,a=t.scrollBy,u=x(!1),c=x(!0),s=w(),f=w(),d=x(4),m=x(0),p=T(b(M(b(F(o),O(1),z(!0)),b(F(o),O(1),z(!1),L(100))),H()),!1),h=T(b(M(b(a,z(!0)),b(a,z(!1),L(200))),H()),!1);C(b(W(F(o),F(m)),k((function(e){return e[0]<=e[1]})),H()),c),C(b(c,P(50)),f);var g=S(b(W(n,F(r),F(i),F(l),F(d)),B((function(e,t){var n,o,r=t[0],i=r.scrollTop,l=r.scrollHeight,a=t[1],u={viewportHeight:a,scrollTop:i,scrollHeight:l};return i+a-l>-t[4]?(i>e.state.scrollTop?(n="SCROLLED_DOWN",o=e.state.scrollTop-i):(n="SIZE_DECREASED",o=e.state.scrollTop-i||e.scrollTopDelta),{atBottom:!0,state:u,atBottomBecause:n,scrollTopDelta:o}):{atBottom:!1,notAtBottomBecause:u.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":a<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":i<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:u}}),Ze),H((function(e,t){return e&&e.atBottom===t.atBottom})))),I=T(b(n,B((function(e,t){var n=t.scrollTop,o=t.scrollHeight,r=t.viewportHeight;return ae(e.scrollHeight,o)?{scrollTop:n,scrollHeight:o,jump:0,changed:!1}:e.scrollTop!==n&&o-(n+r)<1?{scrollHeight:o,scrollTop:n,jump:e.scrollTop-n,changed:!0}:{scrollHeight:o,scrollTop:n,jump:0,changed:!0}}),{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),R((function(e){return e.changed})),k((function(e){return e.jump}))),0);C(b(g,k((function(e){return e.atBottom}))),u),C(b(u,P(50)),s);var y=x("down");C(b(n,k((function(e){return e.scrollTop})),H(),B((function(e,t){return v(h)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?Ke:"down",prevScrollTop:t}}),{direction:"down",prevScrollTop:0}),k((function(e){return e.direction}))),y),C(b(n,P(50),z("none")),y);var E=x(0);return C(b(p,R((function(e){return!e})),z(0)),E),C(b(o,P(100),A(p),R((function(e){return!!e[1]})),B((function(e,t){return[e[1],t[0]]}),[0,0]),k((function(e){return e[1]-e[0]}))),E),{isScrolling:p,isAtTop:c,isAtBottom:u,atBottomState:g,atTopStateChange:f,atBottomStateChange:s,scrollDirection:y,atBottomThreshold:d,atTopThreshold:m,scrollVelocity:E,lastJumpDueToItemResize:I}}),c(ce)),Ye=V((function(e){var t=e[0].log,n=x(!1),o=S(b(n,R((function(e){return e})),H()));return p(n,(function(e){e&&v(t)("props updated",{},Q.DEBUG)})),{propsReady:n,didMount:o}}),c(ne),{singleton:!0}),$e=V((function(e){var t=e[0],n=t.sizes,o=t.listRefresh,r=t.defaultItemSize,i=e[1].scrollTop,l=e[2].scrollToIndex,a=e[3].didMount,u=x(!0),c=x(0);return C(b(a,A(c),R((function(e){return!!e[1]})),z(!1)),u),p(b(W(o,a),A(u,n,r),R((function(e){var t=e[1],n=e[3];return e[0][1]&&(!de(e[2].sizeTree)||void 0!==n)&&!t})),A(c)),(function(e){var t=e[1];setTimeout((function(){I(i,(function(){h(u,!0)})),h(l,t)}))})),{scrolledToInitialItem:u,initialTopMostItemIndex:c}}),c(_e,ce,Ue,Ye),{singleton:!0});function Je(e){return!!e&&("smooth"===e?"smooth":"auto")}var Qe=V((function(e){var t=e[0],n=t.totalCount,o=t.listRefresh,r=e[1],i=r.isAtBottom,l=r.atBottomState,a=e[2].scrollToIndex,u=e[3].scrolledToInitialItem,c=e[4],s=c.propsReady,f=c.didMount,d=e[5].log,m=e[6].scrollingInProgress,g=x(!1),C=w(),S=null;function T(e){h(a,{index:"LAST",align:"end",behavior:e})}function y(e){var t=I(l,(function(t){!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||S||(v(d)("scrolling to bottom due to increased size",{},Q.DEBUG),T("auto"))}));setTimeout(t,100)}return p(b(W(b(F(n),O(1)),f),A(F(g),i,u,m),k((function(e){var t=e[0],n=t[0],o=t[1]&&e[3],r="auto";return o&&(r=function(e,t){return"function"==typeof e?Je(e(t)):t&&Je(e)}(e[1],e[2]||e[4]),o=o&&!!r),{totalCount:n,shouldFollow:o,followOutputBehavior:r}})),R((function(e){return e.shouldFollow}))),(function(e){var t=e.totalCount,n=e.followOutputBehavior;S&&(S(),S=null),S=I(o,(function(){v(d)("following output to ",{totalCount:t},Q.DEBUG),T(n),S=null}))})),p(b(W(F(g),n,s),R((function(e){return e[0]&&e[2]})),B((function(e,t){var n=t[1];return{refreshed:e.value===n,value:n}}),{refreshed:!1,value:0}),R((function(e){return e.refreshed})),A(g,n)),(function(e){y(!1!==e[1])})),p(C,(function(){y(!1!==v(g))})),p(W(F(g),l),(function(e){var t=e[1];e[0]&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&T("auto")})),{followOutput:g,autoscrollToBottom:C}}),c(_e,qe,Ue,$e,Ye,ne,ce));function Xe(e){return e.reduce((function(e,t){return e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e}),{totalCount:0,groupIndices:[]})}var et=V((function(e){var t=e[0],n=t.totalCount,o=t.groupIndices,r=t.sizes,i=e[1],l=i.scrollTop,a=i.headerHeight,u=w(),c=w(),s=S(b(u,k(Xe)));return C(b(s,k((function(e){return e.totalCount}))),n),C(b(s,k((function(e){return e.groupIndices}))),o),C(b(W(l,r,a),R((function(e){return De(e[1])})),k((function(e){return he(e[1].groupOffsetTree,Math.max(e[0]-e[2],0),"v")[0]})),H(),k((function(e){return[e]}))),c),{groupCounts:u,topItemsIndexes:c}}),c(_e,ce));function tt(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function nt(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function ot(e,t,n){return"number"==typeof e?n===Ke&&"top"===t||"down"===n&&"bottom"===t?e:0:n===Ke?"top"===t?e.main:e.reverse:"bottom"===t?e.main:e.reverse}function rt(e,t){return"number"==typeof e?e:e[t]||0}var it=V((function(e){var t=e[0],n=t.scrollTop,o=t.viewportHeight,r=t.deviation,i=t.headerHeight,l=t.fixedHeaderHeight,a=w(),u=x(0),c=x(0),s=x(0),f=T(b(W(F(n),F(o),F(i),F(a,tt),F(s),F(u),F(l),F(r),F(c)),k((function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=r[0],l=r[1],a=e[4],u=e[6],c=e[7],s=e[8],f=t-c,d=e[5]+u,m=Math.max(o-f,0),p="none",h=rt(s,"top"),g=rt(s,"bottom");return i-=c,l+=o+u,(i+=o+u)>t+d-h&&(p=Ke),(l-=c)<t-m+n+g&&(p="down"),"none"!==p?[Math.max(f-o-ot(a,"top",p)-h,0),f-m-u+n+ot(a,"bottom",p)+g]:null})),R((function(e){return null!=e})),H(tt)),[0,0]);return{listBoundary:a,overscan:s,topListHeight:u,increaseViewportBy:c,visibleRange:f}}),c(ce),{singleton:!0}),lt={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function at(e,t,n){if(0===e.length)return[];if(!De(t))return e.map((function(e){return Z({},e,{index:e.index+n,originalIndex:e.index})}));for(var o,r=[],i=ye(t.groupOffsetTree,e[0].index,e[e.length-1].index),l=void 0,a=0,u=$(e);!(o=u()).done;){var c=o.value;(!l||l.end<c.index)&&(l=i.shift(),a=t.groupIndices.indexOf(l.start)),r.push(Z({},c.index===l.start?{type:"group",index:a}:{index:c.index-(a+1)+n,groupIndex:a},{size:c.size,offset:c.offset,originalIndex:c.index,data:c.data}))}return r}function ut(e,t,n,o,r,i){var l=0,a=0;if(e.length>0){l=e[0].offset;var u=e[e.length-1];a=u.offset+u.size}var c=n-r.lastIndex,s=l,f=r.lastOffset+c*r.lastSize+(c-1)*o-a;return{items:at(e,r,i),topItems:at(t,r,i),topListHeight:t.reduce((function(e,t){return t.size+e}),0),offsetTop:l,offsetBottom:f,top:s,bottom:a,totalCount:n,firstItemIndex:i}}var ct=V((function(e){var t=e[0],n=t.sizes,o=t.totalCount,r=t.data,i=t.firstItemIndex,l=t.gap,a=e[1],c=e[2],s=c.visibleRange,f=c.listBoundary,d=c.topListHeight,m=e[3],p=m.scrolledToInitialItem,h=m.initialTopMostItemIndex,g=e[4].topListHeight,v=e[5],I=e[6].didMount,y=e[7].recalcInProgress,E=x([]),z=w();C(a.topItemsIndexes,E);var B=T(b(W(I,y,F(s,tt),F(o),F(n),F(h),p,F(E),F(i),F(l),r),R((function(e){return e[0]&&!e[1]})),k((function(e){var t=e[2],n=t[0],o=t[1],r=e[3],i=e[5],l=e[6],a=e[7],c=e[8],s=e[9],f=e[10],d=e[4],m=d.sizeTree,p=d.offsetTree;if(0===r||0===n&&0===o)return Z({},lt,{totalCount:r});if(de(m))return ut(function(e,t,n){if(De(t)){var o=Ve(e,t);return[{index:he(t.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(function(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}(i,r),d,f),[],r,s,d,c);var h=[];if(a.length>0)for(var g,v=a[0],C=a[a.length-1],I=0,w=$(ye(m,v,C));!(g=w()).done;)for(var x=g.value,S=x.value,T=Math.max(x.start,v),y=Math.min(x.end,C),b=T;b<=y;b++)h.push({index:b,size:S,offset:I,data:f&&f[b]}),I+=S;if(!l)return ut([],h,r,s,d,c);var E=a.length>0?a[a.length-1]+1:0,H=function(e,t,n,o){return void 0===o&&(o=0),o>0&&(t=Math.max(t,ke(e,o,Oe).offset)),be((i=n,a=Re(r=e,t,l=Pe),u=Re(r,i,l,a),r.slice(a,u+1)),Le);var r,i,l,a,u}(p,n,o,E);if(0===H.length)return null;var R=r-1;return ut(u([],(function(e){for(var t,r=$(H);!(t=r()).done;){var i=t.value,l=i.value,a=l.offset,u=i.start,c=l.size;if(l.offset<n){var d=(u+=Math.floor((n-l.offset+s)/(c+s)))-i.start;a+=d*c+d*s}u<E&&(a+=(E-u)*c,u=E);for(var m=Math.min(i.end,R),p=u;p<=m&&!(a>=o);p++)e.push({index:p,size:c,offset:a,data:f&&f[p]}),a+=c+s}})),h,r,s,d,c)})),R((function(e){return null!==e})),H()),lt);return C(b(r,R((function(e){return void 0!==e})),k((function(e){return e.length}))),o),C(b(B,k((function(e){return e.topListHeight}))),g),C(g,d),C(b(B,k((function(e){return[e.top,e.bottom]}))),f),C(b(B,k((function(e){return e.items}))),z),Z({listState:B,topItemsIndexes:E,endReached:S(b(B,R((function(e){return e.items.length>0})),A(o,r),R((function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1})),k((function(e){return[e[1]-1,e[2]]})),H(tt),k((function(e){return e[0]})))),startReached:S(b(B,P(200),R((function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length})),k((function(e){return e.items[0].index})),H())),rangeChanged:S(b(B,R((function(e){return e.items.length>0})),k((function(e){for(var t=e.items,n=0,o=t.length-1;"group"===t[n].type&&n<o;)n++;for(;"group"===t[o].type&&o>n;)o--;return{startIndex:t[n].index,endIndex:t[o].index}})),H(nt))),itemsRendered:z},v)}),c(_e,et,it,$e,Ue,qe,Ye,ze),{singleton:!0}),st=V((function(e){var t=e[0],n=t.sizes,o=t.firstItemIndex,r=t.data,i=t.gap,l=e[1].listState,a=e[2].didMount,u=x(0);return C(b(a,A(u),R((function(e){return 0!==e[1]})),A(n,o,i,r),k((function(e){var t=e[0][1],n=e[1],o=e[2],r=e[3],i=e[4],l=void 0===i?[]:i,a=0;if(n.groupIndices.length>0)for(var u,c=$(n.groupIndices);!((u=c()).done||u.value-a>=t);)a++;var s=t+a;return ut(Array.from({length:s}).map((function(e,t){return{index:t,size:0,offset:0,data:l[t]}})),[],s,r,n,o)}))),l),{initialItemCount:u}}),c(_e,ct,Ye),{singleton:!0}),ft=V((function(e){var t=e[0].scrollVelocity,n=x(!1),o=w(),r=x(!1);return C(b(t,A(r,n,o),R((function(e){return!!e[1]})),k((function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=n.enter;if(o){if((0,n.exit)(t,r))return!1}else if(i(t,r))return!0;return o})),H()),n),p(b(W(n,t,o),A(r)),(function(e){var t=e[0],n=e[1];return t[0]&&n&&n.change&&n.change(t[1],t[2])})),{isSeeking:n,scrollSeekConfiguration:r,scrollVelocity:t,scrollSeekRangeChanged:o}}),c(qe),{singleton:!0}),dt=V((function(e){var t=e[0].topItemsIndexes,n=x(0);return C(b(n,R((function(e){return e>0})),k((function(e){return Array.from({length:e}).map((function(e,t){return t}))}))),t),{topItemCount:n}}),c(ct)),mt=V((function(e){var t=e[0],n=t.footerHeight,o=t.headerHeight,r=t.fixedHeaderHeight,i=t.fixedFooterHeight,l=e[1].listState,a=w(),u=T(b(W(n,i,o,r,l),k((function(e){var t=e[4];return e[0]+e[1]+e[2]+e[3]+t.offsetBottom+t.bottom}))),0);return C(F(u),a),{totalListHeight:u,totalListHeightChanged:a}}),c(ce,ct),{singleton:!0});function pt(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}var ht=pt((function(){return/iP(ad|hone|od).+Version\/[\d.]+.*Safari/i.test(navigator.userAgent)})),gt=V((function(e){var t=e[0],n=t.scrollBy,o=t.scrollTop,r=t.deviation,i=t.scrollingInProgress,l=e[1],a=l.isScrolling,u=l.isAtBottom,c=l.scrollDirection,s=e[3],f=s.beforeUnshiftWith,d=s.shiftWithOffset,m=s.sizes,g=s.gap,v=e[4].log,I=e[5].recalcInProgress,w=S(b(e[2].listState,A(l.lastJumpDueToItemResize),B((function(e,t){var n=e[1],o=t[0],r=o.items,i=o.totalCount,l=o.bottom+o.offsetBottom,a=0;return e[2]===i&&n.length>0&&r.length>0&&(0===r[0].originalIndex&&0===n[0].originalIndex||0!=(a=l-e[3])&&(a+=t[1])),[a,r,i,l]}),[0,[],0,0]),R((function(e){return 0!==e[0]})),A(o,c,i,u,v),R((function(e){return!e[3]&&0!==e[1]&&e[2]===Ke})),k((function(e){var t=e[0][0];return(0,e[5])("Upward scrolling compensation",{amount:t},Q.DEBUG),t}))));function x(e){e>0?(h(n,{top:-e,behavior:"auto"}),h(r,0)):(h(r,0),h(n,{top:-e,behavior:"auto"}))}return p(b(w,A(r,a)),(function(e){var t=e[0],n=e[1];e[2]&&ht()?h(r,n-t):x(-t)})),p(b(W(T(a,!1),r,I),R((function(e){return!e[0]&&!e[2]&&0!==e[1]})),k((function(e){return e[1]})),P(1)),x),C(b(d,k((function(e){return{top:-e}}))),n),p(b(f,A(m,g),k((function(e){var t=e[0];return t*e[1].lastSize+t*e[2]}))),(function(e){h(r,e),requestAnimationFrame((function(){h(n,{top:e}),requestAnimationFrame((function(){h(r,0),h(I,!1)}))}))})),{deviation:r}}),c(ce,qe,ct,_e,ne,ze)),vt=V((function(e){var t=e[0].totalListHeight,n=e[1].didMount,o=e[2].scrollTo,r=x(0);return p(b(n,A(r),R((function(e){return 0!==e[1]})),k((function(e){return{top:e[1]}}))),(function(e){I(b(t,R((function(e){return 0!==e}))),(function(){setTimeout((function(){h(o,e)}))}))})),{initialScrollTop:r}}),c(mt,Ye,ce),{singleton:!0}),Ct=V((function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,o=x(!1);return{alignToBottom:o,paddingTopAddition:T(b(W(o,t,n),R((function(e){return e[0]})),k((function(e){return Math.max(0,e[1]-e[2])})),H()),0)}}),c(ce,mt),{singleton:!0}),It=V((function(e){var t=e[0],n=t.scrollTo,o=t.scrollContainerState,r=w(),i=w(),l=w(),a=x(!1),u=x(void 0);return C(b(W(r,i),k((function(e){var t=e[0],n=t.viewportHeight,o=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:o,viewportHeight:n}}))),o),C(b(n,A(i),k((function(e){var t=e[0];return Z({},t,{top:t.top+e[1].offsetTop})}))),l),{useWindowScroll:a,customScrollParent:u,windowScrollContainerState:r,windowViewportRect:i,windowScrollTo:l}}),c(ce)),wt=["done","behavior","align"],xt=V((function(e){var t=e[0],n=t.sizes,o=t.totalCount,r=t.gap,i=e[1],l=i.scrollTop,a=i.viewportHeight,u=i.headerHeight,c=i.fixedHeaderHeight,s=i.fixedFooterHeight,f=i.scrollingInProgress,d=e[2].scrollToIndex,m=w();return C(b(m,A(n,a,o,u,c,s,l),A(r),k((function(e){var t=e[0],n=t[0],o=t[1],r=t[2],i=t[3],l=t[4],a=t[5],u=t[6],c=t[7],s=e[1],d=n.done,m=n.behavior,p=n.align,h=q(n,wt),g=null,v=We(n,o,i-1),C=Fe(v,o.offsetTree,s)+l+a;return C<c+a?g=Z({},h,{behavior:m,align:null!=p?p:"start"}):C+he(o.sizeTree,v)[1]>c+r-u&&(g=Z({},h,{behavior:m,align:null!=p?p:"end"})),g?d&&I(b(f,O(1),R((function(e){return!1===e}))),d):d&&d(),g})),R((function(e){return null!==e}))),d),{scrollIntoView:m}}),c(_e,ce,Ue,ct,ne),{singleton:!0}),St=["listState","topItemsIndexes"],Tt=V((function(e){return Z({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}),c(it,st,Ye,ft,mt,vt,Ct,It,xt)),yt=V((function(e){var t=e[0],n=t.totalCount,o=t.sizeRanges,r=t.fixedItemSize,i=t.defaultItemSize,l=t.trackItemSizes,a=t.itemSize,u=t.data,c=t.firstItemIndex,s=t.groupIndices,f=t.statefulTotalCount,d=t.gap,m=e[1],p=m.initialTopMostItemIndex,h=m.scrolledToInitialItem,g=e[2],v=e[3],I=e[4],w=I.listState,x=I.topItemsIndexes,S=q(I,St),T=e[5].scrollToIndex,y=e[7].topItemCount,E=e[8].groupCounts,H=e[9],R=e[10];return C(S.rangeChanged,H.scrollSeekRangeChanged),C(b(H.windowViewportRect,k((function(e){return e.visibleHeight}))),g.viewportHeight),Z({totalCount:n,data:u,firstItemIndex:c,sizeRanges:o,initialTopMostItemIndex:p,scrolledToInitialItem:h,topItemsIndexes:x,topItemCount:y,groupCounts:E,fixedItemHeight:r,defaultItemHeight:i,gap:d},v,{statefulTotalCount:f,listState:w,scrollToIndex:T,trackItemSizes:l,itemSize:a,groupIndices:s},S,H,g,R)}),c(_e,$e,ce,Qe,ct,Ue,gt,dt,et,Tt,ne)),bt=pt((function(){if("undefined"==typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"}));function Et(e,t){var n=(0,o.useRef)(null),r=(0,o.useCallback)((function(o){if(null!==o&&o.offsetParent){var r,i,l=o.getBoundingClientRect(),a=l.width;if(t){var u=t.getBoundingClientRect(),c=l.top-u.top;r=u.height-Math.max(0,c),i=c+t.scrollTop}else r=window.innerHeight-Math.max(0,l.top),i=l.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:r,visibleWidth:a},e(n.current)}}),[e,t]),i=oe(r),l=i.callbackRef,a=i.ref,u=(0,o.useCallback)((function(){r(a.current)}),[r,a]);return(0,o.useEffect)((function(){if(t){t.addEventListener("scroll",u);var e=new ResizeObserver(u);return e.observe(t),function(){t.removeEventListener("scroll",u),e.unobserve(t)}}return window.addEventListener("scroll",u),window.addEventListener("resize",u),function(){window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}}),[u,t]),l}var Ht=o.createContext(void 0),Rt=["placeholder"],kt=["style","children"],zt=["style","children"];function Bt(e){return e}var Ot=V((function(){var e=x((function(e){return"Item "+e})),t=x(null),n=x((function(e){return"Group "+e})),o=x({}),r=x(Bt),i=x("div"),l=x(m),a=function(e,t){return void 0===t&&(t=null),T(b(o,k((function(t){return t[e]})),H()),t)};return{context:t,itemContent:e,groupContent:n,components:o,computeItemKey:r,headerFooterTag:i,scrollerRef:l,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}));function Pt(e,t){var n=w();return p(n,(function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")})),C(n,e),n}var Lt=V((function(e){var t=e[0],n=e[1],o={item:Pt(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:Pt(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:Pt(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:Pt(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:Pt(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:w(),maxHeightCacheSize:w(),footer:w(),header:w(),HeaderContainer:w(),FooterContainer:w(),ItemContainer:w(),ScrollContainer:w(),GroupContainer:w(),ListContainer:w(),emptyComponent:w(),scrollSeek:w()};function r(e,t,o){C(b(e,A(n.components),k((function(e){var n,r=e[0],i=e[1];return console.warn("react-virtuoso: "+o+" property is deprecated. Pass components."+t+" instead."),Z({},i,((n={})[t]=r,n))}))),n.components)}return p(o.adjustForPrependedItems,(function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")})),p(o.maxHeightCacheSize,(function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")})),p(o.HeaderContainer,(function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")})),p(o.FooterContainer,(function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")})),p(o.scrollSeek,(function(e){var o=e.placeholder,r=q(e,Rt);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),h(n.components,Z({},v(n.components),{ScrollSeekPlaceholder:o})),h(t.scrollSeekConfiguration,r)})),r(o.footer,"Footer","footer"),r(o.header,"Header","header"),r(o.ItemContainer,"Item","ItemContainer"),r(o.ListContainer,"List","ListContainer"),r(o.ScrollContainer,"Scroller","ScrollContainer"),r(o.emptyComponent,"EmptyPlaceholder","emptyComponent"),r(o.GroupContainer,"Group","GroupContainer"),Z({},t,n,o)}),c(yt,Ot)),At=function(e){return o.createElement("div",{style:{height:e.height}})},Mt={position:bt(),zIndex:1,overflowAnchor:"none"},Ft={overflowAnchor:"none"},Wt=o.memo((function(e){var t=e.showTopList,n=void 0!==t&&t,r=Xt("listState"),i=Qt("sizeRanges"),l=Xt("useWindowScroll"),a=Xt("customScrollParent"),u=Qt("windowScrollContainerState"),c=Qt("scrollContainerState"),s=a||l?u:c,f=Xt("itemContent"),d=Xt("context"),p=Xt("groupContent"),h=Xt("trackItemSizes"),g=ie(i,Xt("itemSize"),h,n?m:s,Xt("log"),Qt("gap"),a).callbackRef,v=o.useState(0),C=v[0],I=v[1];en("deviation",(function(e){C!==e&&I(e)}));var w=Xt("EmptyPlaceholder"),x=Xt("ScrollSeekPlaceholder")||At,S=Xt("ListComponent"),T=Xt("ItemComponent"),y=Xt("GroupComponent"),b=Xt("computeItemKey"),E=Xt("isSeeking"),H=Xt("groupIndices").length>0,R=Xt("paddingTopAddition"),k=n?{}:{boxSizing:"border-box",paddingTop:r.offsetTop+R,paddingBottom:r.offsetBottom,marginTop:C};return!n&&0===r.totalCount&&w?(0,o.createElement)(w,_t(w,d)):(0,o.createElement)(S,Z({},_t(S,d),{ref:g,style:k,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?r.topItems:r.items).map((function(e){var t=e.originalIndex,n=b(t+r.firstItemIndex,e.data,d);return E?(0,o.createElement)(x,Z({},_t(x,d),{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,o.createElement)(y,Z({},_t(y,d),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:Mt}),p(e.index)):(0,o.createElement)(T,Z({},_t(T,d),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:Ft}),H?f(e.index,e.groupIndex,e.data,d):f(e.index,e.data,d))})))})),Vt={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Dt={width:"100%",height:"100%",position:"absolute",top:0},Nt={width:"100%",position:bt(),top:0};function _t(e,t){if("string"!=typeof e)return{context:t}}var Gt=o.memo((function(){var e=Xt("HeaderComponent"),t=Qt("headerHeight"),n=Xt("headerFooterTag"),r=re((function(e){return t(le(e,"height"))})),i=Xt("context");return e?(0,o.createElement)(n,{ref:r},(0,o.createElement)(e,_t(e,i))):null})),jt=o.memo((function(){var e=Xt("FooterComponent"),t=Qt("footerHeight"),n=Xt("headerFooterTag"),r=re((function(e){return t(le(e,"height"))})),i=Xt("context");return e?(0,o.createElement)(n,{ref:r},(0,o.createElement)(e,_t(e,i))):null}));function Ut(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return o.memo((function(e){var i=e.style,l=e.children,a=q(e,kt),u=t("scrollContainerState"),c=r("ScrollerComponent"),s=t("smoothScrollTargetReached"),f=r("scrollerRef"),d=r("context"),m=ue(u,s,c,f),p=m.scrollerRef,h=m.scrollByCallback;return n("scrollTo",m.scrollToCallback),n("scrollBy",h),(0,o.createElement)(c,Z({ref:p,style:Z({},Vt,i),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},a,_t(c,d)),l)}))}function Kt(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return o.memo((function(e){var i=e.style,l=e.children,a=q(e,zt),u=t("windowScrollContainerState"),c=r("ScrollerComponent"),s=t("smoothScrollTargetReached"),f=r("totalListHeight"),d=r("deviation"),p=r("customScrollParent"),h=r("context"),g=ue(u,s,c,m,p),v=g.scrollerRef,C=g.scrollByCallback,I=g.scrollToCallback;return ee((function(){return v.current=p||window,function(){v.current=null}}),[v,p]),n("windowScrollTo",I),n("scrollBy",C),(0,o.createElement)(c,Z({style:Z({position:"relative"},i,0!==f?{height:f+d}:{}),"data-virtuoso-scroller":!0},a,_t(c,h)),l)}))}var Zt=function(e){var t=e.children,n=(0,o.useContext)(Ht),i=Qt("viewportHeight"),l=Qt("fixedItemHeight"),a=re(r(i,(function(e){return le(e,"height")})));return o.useEffect((function(){n&&(i(n.viewportHeight),l(n.itemHeight))}),[n,i,l]),o.createElement("div",{style:Dt,ref:a,"data-viewport-type":"element"},t)},qt=function(e){var t=e.children,n=(0,o.useContext)(Ht),r=Qt("windowViewportRect"),i=Qt("fixedItemHeight"),l=Xt("customScrollParent"),a=Et(r,l);return o.useEffect((function(){n&&(i(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,r,i]),o.createElement("div",{ref:a,style:Dt,"data-viewport-type":"window"},t)},Yt=function(e){var t=e.children,n=Xt("TopItemListComponent"),r=Xt("headerHeight"),i=Z({},Nt,{marginTop:r+"px"}),l=Xt("context");return(0,o.createElement)(n||"div",{style:i,context:l},t)},$t=U(Lt,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.memo((function(e){var t=Xt("useWindowScroll"),n=Xt("topItemsIndexes").length>0,r=Xt("customScrollParent"),i=r||t?qt:Zt;return o.createElement(r||t?nn:tn,Z({},e),o.createElement(i,null,o.createElement(Gt,null),o.createElement(Wt,null),o.createElement(jt,null)),n&&o.createElement(Yt,null,o.createElement(Wt,{showTopList:!0})))}))),Jt=$t.Component,Qt=$t.usePublisher,Xt=$t.useEmitterValue,en=$t.useEmitter,tn=Ut({usePublisher:Qt,useEmitterValue:Xt,useEmitter:en}),nn=Kt({usePublisher:Qt,useEmitterValue:Xt,useEmitter:en}),on={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},rn={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},ln=Math.round,an=Math.ceil,un=Math.floor,cn=Math.min,sn=Math.max;function fn(e,t){return Array.from({length:t-e+1}).map((function(t,n){return{index:n+e}}))}function dn(e,t){return e&&e.column===t.column&&e.row===t.row}var mn=V((function(e){var t=e[0],n=t.overscan,o=t.visibleRange,r=t.listBoundary,i=e[1],l=i.scrollTop,a=i.viewportHeight,u=i.scrollBy,c=i.scrollTo,s=i.smoothScrollTargetReached,f=i.scrollContainerState,d=e[2],m=e[3],p=e[4],h=p.propsReady,g=p.didMount,v=e[5],I=v.windowViewportRect,y=v.windowScrollTo,E=v.useWindowScroll,B=v.customScrollParent,O=v.windowScrollContainerState,P=e[6],L=x(0),M=x(0),V=x(on),D=x({height:0,width:0}),N=x({height:0,width:0}),_=w(),G=w(),j=x(0),U=x({row:0,column:0});C(b(g,A(M),R((function(e){return 0!==e[1]})),k((function(e){return{items:fn(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}}))),V),C(b(W(F(L),o,F(U,dn),F(N,(function(e,t){return e&&e.width===t.width&&e.height===t.height}))),A(D),k((function(e){var t=e[0],n=t[0],o=t[1],r=o[0],i=o[1],l=t[2],a=t[3],u=e[1],c=l.row,s=a.height,f=a.width,d=u.width;if(0===n||0===d)return on;if(0===f)return rn;var m=gn(d,f,l.column),p=m*un((r+c)/(s+c)),h=m*an((i+c)/(s+c))-1;h=sn(0,cn(n-1,h));var g=fn(p=cn(h,sn(0,p)),h),v=pn(u,l,a,g),C=v.top,I=v.bottom,w=an(n/m);return{items:g,offsetTop:C,offsetBottom:w*s+(w-1)*c-I,top:C,bottom:I,itemHeight:s,itemWidth:f}}))),V),C(b(D,k((function(e){return e.height}))),a),C(b(W(D,N,V,U),k((function(e){var t=pn(e[0],e[3],e[1],e[2].items);return[t.top,t.bottom]})),H(tt)),r);var K=S(b(F(V),R((function(e){return e.items.length>0})),A(L),R((function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1})),k((function(e){return e[1]-1})),H())),q=S(b(F(V),R((function(e){var t=e.items;return t.length>0&&0===t[0].index})),z(0),H())),Y=S(b(F(V),R((function(e){return e.items.length>0})),k((function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),H(nt)));C(Y,m.scrollSeekRangeChanged),C(b(_,A(D,N,L,U),k((function(e){var t=e[1],n=e[2],o=e[3],r=e[4],i=je(e[0]),l=i.align,a=i.behavior,u=i.offset,c=i.index;"LAST"===c&&(c=o-1);var s=hn(t,r,n,c=sn(0,c,cn(o-1,c)));return"end"===l?s=ln(s-t.height+n.height):"center"===l&&(s=ln(s-t.height/2+n.height/2)),u&&(s+=u),{top:s,behavior:a}}))),c);var $=T(b(V,k((function(e){return e.offsetBottom+e.bottom}))),0);return C(b(I,k((function(e){return{width:e.visibleWidth,height:e.visibleHeight}}))),D),Z({totalCount:L,viewportDimensions:D,itemDimensions:N,scrollTop:l,scrollHeight:G,overscan:n,scrollBy:u,scrollTo:c,scrollToIndex:_,smoothScrollTargetReached:s,windowViewportRect:I,windowScrollTo:y,useWindowScroll:E,customScrollParent:B,windowScrollContainerState:O,deviation:j,scrollContainerState:f,initialItemCount:M,gap:U},m,{gridState:V,totalListHeight:$},d,{startReached:q,endReached:K,rangeChanged:Y,propsReady:h},P)}),c(it,ce,qe,ft,Ye,It,ne));function pn(e,t,n,o){var r=n.height;return void 0===r||0===o.length?{top:0,bottom:0}:{top:hn(e,t,n,o[0].index),bottom:hn(e,t,n,o[o.length-1].index)+r}}function hn(e,t,n,o){var r=gn(e.width,n.width,t.column),i=un(o/r),l=i*n.height+sn(0,i-1)*t.row;return l>0?l+t.row:l}function gn(e,t,n){return sn(1,un((e+n)/(t+n)))}var vn=["placeholder"],Cn=V((function(){var e=x((function(e){return"Item "+e})),t=x({}),n=x(null),o=x("virtuoso-grid-item"),r=x("virtuoso-grid-list"),i=x(Bt),l=x(m),a=function(e,n){return void 0===n&&(n=null),T(b(t,k((function(t){return t[e]})),H()),n)};return{context:n,itemContent:e,components:t,computeItemKey:i,itemClassName:o,listClassName:r,scrollerRef:l,ListComponent:a("List","div"),ItemComponent:a("Item","div"),ScrollerComponent:a("Scroller","div"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder","div")}})),In=V((function(e){var t=e[0],n=e[1],o={item:Pt(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:w(),ScrollContainer:w(),ListContainer:w(),emptyComponent:w(),scrollSeek:w()};function r(e,t,o){C(b(e,A(n.components),k((function(e){var n,r=e[0],i=e[1];return console.warn("react-virtuoso: "+o+" property is deprecated. Pass components."+t+" instead."),Z({},i,((n={})[t]=r,n))}))),n.components)}return p(o.scrollSeek,(function(e){var o=e.placeholder,r=q(e,vn);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),h(n.components,Z({},v(n.components),{ScrollSeekPlaceholder:o})),h(t.scrollSeekConfiguration,r)})),r(o.ItemContainer,"Item","ItemContainer"),r(o.ListContainer,"List","ListContainer"),r(o.ScrollContainer,"Scroller","ScrollContainer"),Z({},t,n,o)}),c(mn,Cn)),wn=o.memo((function(){var e=bn("gridState"),t=bn("listClassName"),n=bn("itemClassName"),r=bn("itemContent"),i=bn("computeItemKey"),l=bn("isSeeking"),a=yn("scrollHeight"),u=bn("ItemComponent"),c=bn("ListComponent"),s=bn("ScrollSeekPlaceholder"),f=bn("context"),d=yn("itemDimensions"),m=yn("gap"),p=bn("log"),h=re((function(e){a(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&d(t.getBoundingClientRect()),m({row:kn("row-gap",getComputedStyle(e).rowGap,p),column:kn("column-gap",getComputedStyle(e).columnGap,p)})}));return(0,o.createElement)(c,Z({ref:h,className:t},_t(c,f),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map((function(t){var a=i(t.index);return l?(0,o.createElement)(s,Z({key:a},_t(s,f),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,o.createElement)(u,Z({},_t(u,f),{className:n,"data-index":t.index,key:a}),r(t.index,f))})))})),xn=function(e){var t=e.children,n=yn("viewportDimensions"),r=re((function(e){n(e.getBoundingClientRect())}));return o.createElement("div",{style:Dt,ref:r},t)},Sn=function(e){var t=e.children,n=Et(yn("windowViewportRect"),bn("customScrollParent"));return o.createElement("div",{ref:n,style:Dt},t)},Tn=U(In,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},o.memo((function(e){var t=Z({},e),n=bn("useWindowScroll"),r=bn("customScrollParent"),i=r||n?Sn:xn;return o.createElement(r||n?Rn:Hn,Z({},t),o.createElement(i,null,o.createElement(wn,null)))}))),yn=(Tn.Component,Tn.usePublisher),bn=Tn.useEmitterValue,En=Tn.useEmitter,Hn=Ut({usePublisher:yn,useEmitterValue:bn,useEmitter:En}),Rn=Kt({usePublisher:yn,useEmitterValue:bn,useEmitter:En});function kn(e,t,n){return"normal"===t||null!=t&&t.endsWith("px")||n(e+" was not resolved to pixel value correctly",t,Q.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var zn=V((function(){var e=x((function(e){return o.createElement("td",null,"Item $",e)})),t=x(null),n=x(null),r=x(null),i=x({}),l=x(Bt),a=x(m),u=function(e,t){return void 0===t&&(t=null),T(b(i,k((function(t){return t[e]})),H()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:l,scrollerRef:a,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}})),Bn=V((function(e){return Z({},e[0],e[1])}),c(yt,zn)),On=function(e){return o.createElement("tr",null,o.createElement("td",{style:{height:e.height}}))},Pn=function(e){return o.createElement("tr",null,o.createElement("td",{style:{height:e.height,padding:0,border:0}}))},Ln=o.memo((function(){var e=Vn("listState"),t=Wn("sizeRanges"),n=Vn("useWindowScroll"),r=Vn("customScrollParent"),i=Wn("windowScrollContainerState"),l=Wn("scrollContainerState"),a=r||n?i:l,u=Vn("itemContent"),c=Vn("trackItemSizes"),s=ie(t,Vn("itemSize"),c,a,Vn("log"),void 0,r),f=s.callbackRef,d=s.ref,m=o.useState(0),p=m[0],h=m[1];Dn("deviation",(function(e){p!==e&&(d.current.style.marginTop=e+"px",h(e))}));var g=Vn("EmptyPlaceholder"),v=Vn("ScrollSeekPlaceholder")||On,C=Vn("FillerRow")||Pn,I=Vn("TableBodyComponent"),w=Vn("TableRowComponent"),x=Vn("computeItemKey"),S=Vn("isSeeking"),T=Vn("paddingTopAddition"),y=Vn("firstItemIndex"),b=Vn("statefulTotalCount"),E=Vn("context");if(0===b&&g)return(0,o.createElement)(g,_t(g,E));var H=e.offsetTop+T+p,R=e.offsetBottom,k=H>0?o.createElement(C,{height:H,key:"padding-top"}):null,z=R>0?o.createElement(C,{height:R,key:"padding-bottom"}):null,B=e.items.map((function(e){var t=e.originalIndex,n=x(t+y,e.data,E);return S?(0,o.createElement)(v,Z({},_t(v,E),{key:n,index:e.index,height:e.size,type:e.type||"item"})):(0,o.createElement)(w,Z({},_t(w,E),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),u(e.index,e.data,E))}));return(0,o.createElement)(I,Z({ref:f,"data-test-id":"virtuoso-item-list"},_t(I,E)),[k].concat(B,[z]))})),An=function(e){var t=e.children,n=(0,o.useContext)(Ht),i=Wn("viewportHeight"),l=Wn("fixedItemHeight"),a=re(r(i,(function(e){return le(e,"height")})));return o.useEffect((function(){n&&(i(n.viewportHeight),l(n.itemHeight))}),[n,i,l]),o.createElement("div",{style:Dt,ref:a,"data-viewport-type":"element"},t)},Mn=function(e){var t=e.children,n=(0,o.useContext)(Ht),r=Wn("windowViewportRect"),i=Wn("fixedItemHeight"),l=Vn("customScrollParent"),a=Et(r,l);return o.useEffect((function(){n&&(i(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,r,i]),o.createElement("div",{ref:a,style:Dt,"data-viewport-type":"window"},t)},Fn=U(Bn,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.memo((function(e){var t=Vn("useWindowScroll"),n=Vn("customScrollParent"),i=Wn("fixedHeaderHeight"),l=Wn("fixedFooterHeight"),a=Vn("fixedHeaderContent"),u=Vn("fixedFooterContent"),c=Vn("context"),s=re(r(i,(function(e){return le(e,"height")}))),f=re(r(l,(function(e){return le(e,"height")}))),d=n||t?_n:Nn,m=n||t?Mn:An,p=Vn("TableComponent"),h=Vn("TableHeadComponent"),g=Vn("TableFooterComponent"),v=a?o.createElement(h,Z({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:s},_t(h,c)),a()):null,C=u?o.createElement(g,Z({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:f},_t(g,c)),u()):null;return o.createElement(d,Z({},e),o.createElement(m,null,o.createElement(p,Z({style:{borderSpacing:0}},_t(p,c)),[v,o.createElement(Ln,{key:"TableBody"}),C])))}))),Wn=(Fn.Component,Fn.usePublisher),Vn=Fn.useEmitterValue,Dn=Fn.useEmitter,Nn=Ut({usePublisher:Wn,useEmitterValue:Vn,useEmitter:Dn}),_n=Kt({usePublisher:Wn,useEmitterValue:Vn,useEmitter:Dn}),Gn=Jt},64826:function(e,t,n){n.d(t,{Fw:function(){return S},fC:function(){return b},xz:function(){return E}});var o=n(57384),r=n(67597),i=n(90149),l=n(61544),a=n(82305),u=n(65672),c=n(71641),s=n(4300),f=n(8591),d=n(57458);const m="Collapsible",[p,h]=(0,l.b)(m),[g,v]=p(m),C=(0,r.forwardRef)(((e,t)=>{const{__scopeCollapsible:n,open:i,defaultOpen:l,disabled:u,onOpenChange:c,...f}=e,[m=!1,p]=(0,a.T)({prop:i,defaultProp:l,onChange:c});return(0,r.createElement)(g,{scope:n,disabled:u,contentId:(0,d.M)(),open:m,onOpenToggle:(0,r.useCallback)((()=>p((e=>!e))),[p])},(0,r.createElement)(s.WV.div,(0,o.Z)({"data-state":y(m),"data-disabled":u?"":void 0},f,{ref:t})))})),I="CollapsibleTrigger",w=(0,r.forwardRef)(((e,t)=>{const{__scopeCollapsible:n,...l}=e,a=v(I,n);return(0,r.createElement)(s.WV.button,(0,o.Z)({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":y(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},l,{ref:t,onClick:(0,i.M)(e.onClick,a.onOpenToggle)}))})),x="CollapsibleContent",S=(0,r.forwardRef)(((e,t)=>{const{forceMount:n,...i}=e,l=v(x,e.__scopeCollapsible);return(0,r.createElement)(f.z,{present:n||l.open},(({present:e})=>(0,r.createElement)(T,(0,o.Z)({},i,{ref:t,present:e}))))})),T=(0,r.forwardRef)(((e,t)=>{const{__scopeCollapsible:n,present:i,children:l,...a}=e,f=v(x,n),[d,m]=(0,r.useState)(i),p=(0,r.useRef)(null),h=(0,c.e)(t,p),g=(0,r.useRef)(0),C=g.current,I=(0,r.useRef)(0),w=I.current,S=f.open||d,T=(0,r.useRef)(S),b=(0,r.useRef)();return(0,r.useEffect)((()=>{const e=requestAnimationFrame((()=>T.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,u.b)((()=>{const e=p.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();g.current=t.height,I.current=t.width,T.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),m(i)}}),[f.open,i]),(0,r.createElement)(s.WV.div,(0,o.Z)({"data-state":y(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!S},a,{ref:h,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style}}),S&&l)}));function y(e){return e?"open":"closed"}const b=C,E=w}}]);
  2. //# sourceMappingURL=79490-0128419a253d00c8.js.map