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ACA8C,YAAA,cACAzE,SAAA,UACA,EACA5D,QAAA,CACA4T,cAAA,gBACAyN,eAAA,iBACAxX,SAAA,WACAT,SAAA,WACAsY,SAAA,UACA,EACAxhB,OAAA,CACAqV,YAAA,cACA2H,WAAA,aACAE,aAAA,eACAC,aAAA,eACAlI,oBAAA,sBACAC,iBAAA,mBACAkJ,uBAAA,yBACA1C,cAAA,gBACA5O,aAAA,cACA,CACA,EACAqgB,IAEAS,GAAApG,GAAA,CAAiDxkB,aAAAA,GAAAC,gBAAAA,GAAAC,WAAAA,EAAA,GACjDyqB,GAAAhG,GAAA,CAA6D3kB,aAAAA,GAAAC,gBAAAA,GAAAC,WAAAA,EAAA,GAC7D6qB,GAAAD","sources":["webpack://_N_E/../../node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js","webpack://_N_E/../../node_modules/@mui/material/InputAdornment/InputAdornment.js","webpack://_N_E/../../node_modules/@tanstack/query-core/build/lib/mutationObserver.mjs","webpack://_N_E/../../node_modules/@tanstack/react-query/build/lib/useMutation.mjs","webpack://_N_E/../../node_modules/react-virtuoso/dist/index.mjs","webpack://_N_E/"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputAdornmentUtilityClass(slot) {\n return generateUtilityClass('MuiInputAdornment', slot);\n}\nconst inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);\nexport default inputAdornmentClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _span;\nconst _excluded = [\"children\", \"className\", \"component\", \"disablePointerEvents\", \"disableTypography\", \"position\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport Typography from '../Typography';\nimport FormControlContext from '../FormControl/FormControlContext';\nimport useFormControl from '../FormControl/useFormControl';\nimport styled from '../styles/styled';\nimport inputAdornmentClasses, { getInputAdornmentUtilityClass } from './inputAdornmentClasses';\nimport useThemeProps from '../styles/useThemeProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disablePointerEvents,\n hiddenLabel,\n position,\n size,\n variant\n } = ownerState;\n const slots = {\n root: ['root', disablePointerEvents && 'disablePointerEvents', position && `position${capitalize(position)}`, variant, hiddenLabel && 'hiddenLabel', size && `size${capitalize(size)}`]\n };\n return composeClasses(slots, getInputAdornmentUtilityClass, classes);\n};\nconst InputAdornmentRoot = styled('div', {\n name: 'MuiInputAdornment',\n slot: 'Root',\n overridesResolver\n})(({\n theme,\n ownerState\n}) => _extends({\n display: 'flex',\n height: '0.01em',\n // Fix IE11 flexbox alignment. To remove at some point.\n maxHeight: '2em',\n alignItems: 'center',\n whiteSpace: 'nowrap',\n color: (theme.vars || theme).palette.action.active\n}, ownerState.variant === 'filled' && {\n // Styles applied to the root element if `variant=\"filled\"`.\n [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {\n marginTop: 16\n }\n}, ownerState.position === 'start' && {\n // Styles applied to the root element if `position=\"start\"`.\n marginRight: 8\n}, ownerState.position === 'end' && {\n // Styles applied to the root element if `position=\"end\"`.\n marginLeft: 8\n}, ownerState.disablePointerEvents === true && {\n // Styles applied to the root element if `disablePointerEvents={true}`.\n pointerEvents: 'none'\n}));\nconst InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiInputAdornment'\n });\n const {\n children,\n className,\n component = 'div',\n disablePointerEvents = false,\n disableTypography = false,\n position,\n variant: variantProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const muiFormControl = useFormControl() || {};\n let variant = variantProp;\n if (variantProp && muiFormControl.variant) {\n if (process.env.NODE_ENV !== 'production') {\n if (variantProp === muiFormControl.variant) {\n console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');\n }\n }\n }\n if (muiFormControl && !variant) {\n variant = muiFormControl.variant;\n }\n const ownerState = _extends({}, props, {\n hiddenLabel: muiFormControl.hiddenLabel,\n size: muiFormControl.size,\n disablePointerEvents,\n position,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n value: null,\n children: /*#__PURE__*/_jsx(InputAdornmentRoot, _extends({\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref\n }, other, {\n children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {\n color: \"text.secondary\",\n children: children\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n children: \"\\u200B\"\n }))) : null, children]\n })\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputAdornment.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally an `IconButton` or string.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Disable pointer events on the root.\n * This allows for the content of the adornment to focus the `input` on click.\n * @default false\n */\n disablePointerEvents: PropTypes.bool,\n /**\n * If children is a string then disable wrapping in a Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * The position this adornment should appear relative to the `Input`.\n */\n position: PropTypes.oneOf(['end', 'start']).isRequired,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * Note: If you are using the `TextField` component or the `FormControl` component\n * you do not have to set this manually.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputAdornment;","import { getDefaultState } from './mutation.mjs';\nimport { notifyManager } from './notifyManager.mjs';\nimport { Subscribable } from './subscribable.mjs';\nimport { shallowEqualObjects } from './utils.mjs';\n\n// CLASS\nclass MutationObserver extends Subscribable {\n constructor(client, options) {\n super();\n this.client = client;\n this.setOptions(options);\n this.bindMethods();\n this.updateResult();\n }\n\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n\n setOptions(options) {\n var _this$currentMutation;\n\n const prevOptions = this.options;\n this.options = this.client.defaultMutationOptions(options);\n\n if (!shallowEqualObjects(prevOptions, this.options)) {\n this.client.getMutationCache().notify({\n type: 'observerOptionsUpdated',\n mutation: this.currentMutation,\n observer: this\n });\n }\n\n (_this$currentMutation = this.currentMutation) == null ? void 0 : _this$currentMutation.setOptions(this.options);\n }\n\n onUnsubscribe() {\n if (!this.listeners.length) {\n var _this$currentMutation2;\n\n (_this$currentMutation2 = this.currentMutation) == null ? void 0 : _this$currentMutation2.removeObserver(this);\n }\n }\n\n onMutationUpdate(action) {\n this.updateResult(); // Determine which callbacks to trigger\n\n const notifyOptions = {\n listeners: true\n };\n\n if (action.type === 'success') {\n notifyOptions.onSuccess = true;\n } else if (action.type === 'error') {\n notifyOptions.onError = true;\n }\n\n this.notify(notifyOptions);\n }\n\n getCurrentResult() {\n return this.currentResult;\n }\n\n reset() {\n this.currentMutation = undefined;\n this.updateResult();\n this.notify({\n listeners: true\n });\n }\n\n mutate(variables, options) {\n this.mutateOptions = options;\n\n if (this.currentMutation) {\n this.currentMutation.removeObserver(this);\n }\n\n this.currentMutation = this.client.getMutationCache().build(this.client, { ...this.options,\n variables: typeof variables !== 'undefined' ? variables : this.options.variables\n });\n this.currentMutation.addObserver(this);\n return this.currentMutation.execute();\n }\n\n updateResult() {\n const state = this.currentMutation ? this.currentMutation.state : getDefaultState();\n const result = { ...state,\n isLoading: state.status === 'loading',\n isSuccess: state.status === 'success',\n isError: state.status === 'error',\n isIdle: state.status === 'idle',\n mutate: this.mutate,\n reset: this.reset\n };\n this.currentResult = result;\n }\n\n notify(options) {\n notifyManager.batch(() => {\n // First trigger the mutate callbacks\n if (this.mutateOptions && this.hasListeners()) {\n if (options.onSuccess) {\n var _this$mutateOptions$o, _this$mutateOptions, _this$mutateOptions$o2, _this$mutateOptions2;\n\n (_this$mutateOptions$o = (_this$mutateOptions = this.mutateOptions).onSuccess) == null ? void 0 : _this$mutateOptions$o.call(_this$mutateOptions, this.currentResult.data, this.currentResult.variables, this.currentResult.context);\n (_this$mutateOptions$o2 = (_this$mutateOptions2 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o2.call(_this$mutateOptions2, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);\n } else if (options.onError) {\n var _this$mutateOptions$o3, _this$mutateOptions3, _this$mutateOptions$o4, _this$mutateOptions4;\n\n (_this$mutateOptions$o3 = (_this$mutateOptions3 = this.mutateOptions).onError) == null ? void 0 : _this$mutateOptions$o3.call(_this$mutateOptions3, this.currentResult.error, this.currentResult.variables, this.currentResult.context);\n (_this$mutateOptions$o4 = (_this$mutateOptions4 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o4.call(_this$mutateOptions4, undefined, this.currentResult.error, this.currentResult.variables, this.currentResult.context);\n }\n } // Then trigger the listeners\n\n\n if (options.listeners) {\n this.listeners.forEach(listener => {\n listener(this.currentResult);\n });\n }\n });\n }\n\n}\n\nexport { MutationObserver };\n//# sourceMappingURL=mutationObserver.mjs.map\n","'use client';\nimport * as React from 'react';\nimport { useSyncExternalStore } from './useSyncExternalStore.mjs';\nimport { parseMutationArgs, MutationObserver, notifyManager } from '@tanstack/query-core';\nimport { useQueryClient } from './QueryClientProvider.mjs';\nimport { shouldThrowError } from './utils.mjs';\n\nfunction useMutation(arg1, arg2, arg3) {\n const options = parseMutationArgs(arg1, arg2, arg3);\n const queryClient = useQueryClient({\n context: options.context\n });\n const [observer] = React.useState(() => new MutationObserver(queryClient, options));\n React.useEffect(() => {\n observer.setOptions(options);\n }, [observer, options]);\n const result = useSyncExternalStore(React.useCallback(onStoreChange => observer.subscribe(notifyManager.batchCalls(onStoreChange)), [observer]), () => observer.getCurrentResult(), () => observer.getCurrentResult());\n const mutate = React.useCallback((variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop);\n }, [observer]);\n\n if (result.error && shouldThrowError(observer.options.useErrorBoundary, [result.error])) {\n throw result.error;\n }\n\n return { ...result,\n mutate,\n mutateAsync: result.mutate\n };\n} // eslint-disable-next-line @typescript-eslint/no-empty-function\n\nfunction noop() {}\n\nexport { useMutation };\n//# sourceMappingURL=useMutation.mjs.map\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\nconst PUBLISH = 0;\nconst SUBSCRIBE = 1;\nconst RESET = 2;\nconst VALUE = 4;\nfunction compose(a, b) {\n return (arg) => a(b(arg));\n}\nfunction thrush(arg, proc) {\n return proc(arg);\n}\nfunction curry2to1(proc, arg1) {\n return (arg2) => proc(arg1, arg2);\n}\nfunction curry1to0(proc, arg) {\n return () => proc(arg);\n}\nfunction tap(arg, proc) {\n proc(arg);\n return arg;\n}\nfunction tup(...args) {\n return args;\n}\nfunction call(proc) {\n proc();\n}\nfunction always(value) {\n return () => value;\n}\nfunction joinProc(...procs) {\n return () => {\n procs.map(call);\n };\n}\nfunction isDefined(arg) {\n return arg !== void 0;\n}\nfunction noop() {\n}\nfunction subscribe(emitter, subscription) {\n return emitter(SUBSCRIBE, subscription);\n}\nfunction publish(publisher, value) {\n publisher(PUBLISH, value);\n}\nfunction reset(emitter) {\n emitter(RESET);\n}\nfunction getValue(depot) {\n return depot(VALUE);\n}\nfunction connect(emitter, publisher) {\n return subscribe(emitter, curry2to1(publisher, PUBLISH));\n}\nfunction handleNext(emitter, subscription) {\n const unsub = emitter(SUBSCRIBE, (value) => {\n unsub();\n subscription(value);\n });\n return unsub;\n}\nfunction stream() {\n const subscriptions = [];\n return (action, arg) => {\n switch (action) {\n case RESET:\n subscriptions.splice(0, subscriptions.length);\n return;\n case SUBSCRIBE:\n subscriptions.push(arg);\n return () => {\n const indexOf = subscriptions.indexOf(arg);\n if (indexOf > -1) {\n subscriptions.splice(indexOf, 1);\n }\n };\n case PUBLISH:\n subscriptions.slice().forEach((subscription) => {\n subscription(arg);\n });\n return;\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction statefulStream(initial) {\n let value = initial;\n const innerSubject = stream();\n return (action, arg) => {\n switch (action) {\n case SUBSCRIBE:\n const subscription = arg;\n subscription(value);\n break;\n case PUBLISH:\n value = arg;\n break;\n case VALUE:\n return value;\n }\n return innerSubject(action, arg);\n };\n}\nfunction eventHandler(emitter) {\n let unsub;\n let currentSubscription;\n const cleanup = () => unsub && unsub();\n return function(action, subscription) {\n switch (action) {\n case SUBSCRIBE:\n if (subscription) {\n if (currentSubscription === subscription) {\n return;\n }\n cleanup();\n currentSubscription = subscription;\n unsub = subscribe(emitter, subscription);\n return unsub;\n } else {\n cleanup();\n return noop;\n }\n case RESET:\n cleanup();\n currentSubscription = null;\n return;\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction streamFromEmitter(emitter) {\n return tap(stream(), (stream2) => connect(emitter, stream2));\n}\nfunction statefulStreamFromEmitter(emitter, initial) {\n return tap(statefulStream(initial), (stream2) => connect(emitter, stream2));\n}\nfunction combineOperators(...operators) {\n return (subscriber) => {\n return operators.reduceRight(thrush, subscriber);\n };\n}\nfunction pipe(source, ...operators) {\n const project = combineOperators(...operators);\n return (action, subscription) => {\n switch (action) {\n case SUBSCRIBE:\n return subscribe(source, project(subscription));\n case RESET:\n reset(source);\n return;\n }\n };\n}\nfunction defaultComparator(previous, next) {\n return previous === next;\n}\nfunction distinctUntilChanged(comparator = defaultComparator) {\n let current;\n return (done) => (next) => {\n if (!comparator(current, next)) {\n current = next;\n done(next);\n }\n };\n}\nfunction filter(predicate) {\n return (done) => (value) => {\n predicate(value) && done(value);\n };\n}\nfunction map(project) {\n return (done) => compose(done, project);\n}\nfunction mapTo(value) {\n return (done) => () => done(value);\n}\nfunction scan(scanner, initial) {\n return (done) => (value) => done(initial = scanner(initial, value));\n}\nfunction skip(times) {\n return (done) => (value) => {\n times > 0 ? times-- : done(value);\n };\n}\nfunction throttleTime(interval) {\n let currentValue = null;\n let timeout;\n return (done) => (value) => {\n currentValue = value;\n if (timeout) {\n return;\n }\n timeout = setTimeout(() => {\n timeout = void 0;\n done(currentValue);\n }, interval);\n };\n}\nfunction debounceTime(interval) {\n let currentValue;\n let timeout;\n return (done) => (value) => {\n currentValue = value;\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(() => {\n done(currentValue);\n }, interval);\n };\n}\nfunction withLatestFrom(...sources) {\n const values = new Array(sources.length);\n let called = 0;\n let pendingCall = null;\n const allCalled = Math.pow(2, sources.length) - 1;\n sources.forEach((source, index) => {\n const bit = Math.pow(2, index);\n subscribe(source, (value) => {\n const prevCalled = called;\n called = called | bit;\n values[index] = value;\n if (prevCalled !== allCalled && called === allCalled && pendingCall) {\n pendingCall();\n pendingCall = null;\n }\n });\n });\n return (done) => (value) => {\n const call2 = () => done([value].concat(values));\n if (called === allCalled) {\n call2();\n } else {\n pendingCall = call2;\n }\n };\n}\nfunction merge(...sources) {\n return function(action, subscription) {\n switch (action) {\n case SUBSCRIBE:\n return joinProc(...sources.map((source) => subscribe(source, subscription)));\n case RESET:\n return;\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction duc(source, comparator = defaultComparator) {\n return pipe(source, distinctUntilChanged(comparator));\n}\nfunction combineLatest(...emitters) {\n const innerSubject = stream();\n const values = new Array(emitters.length);\n let called = 0;\n const allCalled = Math.pow(2, emitters.length) - 1;\n emitters.forEach((source, index) => {\n const bit = Math.pow(2, index);\n subscribe(source, (value) => {\n values[index] = value;\n called = called | bit;\n if (called === allCalled) {\n publish(innerSubject, values);\n }\n });\n });\n return function(action, subscription) {\n switch (action) {\n case SUBSCRIBE:\n if (called === allCalled) {\n subscription(values);\n }\n return subscribe(innerSubject, subscription);\n case RESET:\n return reset(innerSubject);\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction system(constructor, dependencies = [], { singleton } = { singleton: true }) {\n return {\n id: id(),\n constructor,\n dependencies,\n singleton\n };\n}\nconst id = () => Symbol();\nfunction init(systemSpec) {\n const singletons = /* @__PURE__ */ new Map();\n const _init = ({ id: id2, constructor, dependencies, singleton }) => {\n if (singleton && singletons.has(id2)) {\n return singletons.get(id2);\n }\n const system2 = constructor(dependencies.map((e) => _init(e)));\n if (singleton) {\n singletons.set(id2, system2);\n }\n return system2;\n };\n return _init(systemSpec);\n}\nfunction omit(keys, obj) {\n const result = {};\n const index = {};\n let idx = 0;\n const len = keys.length;\n while (idx < len) {\n index[keys[idx]] = 1;\n idx += 1;\n }\n for (const prop in obj) {\n if (!index.hasOwnProperty(prop)) {\n result[prop] = obj[prop];\n }\n }\n return result;\n}\nconst useIsomorphicLayoutEffect$2 = typeof document !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nfunction systemToComponent(systemSpec, map2, Root) {\n const requiredPropNames = Object.keys(map2.required || {});\n const optionalPropNames = Object.keys(map2.optional || {});\n const methodNames = Object.keys(map2.methods || {});\n const eventNames = Object.keys(map2.events || {});\n const Context = React.createContext({});\n function applyPropsToSystem(system2, props) {\n if (system2[\"propsReady\"]) {\n publish(system2[\"propsReady\"], false);\n }\n for (const requiredPropName of requiredPropNames) {\n const stream2 = system2[map2.required[requiredPropName]];\n publish(stream2, props[requiredPropName]);\n }\n for (const optionalPropName of optionalPropNames) {\n if (optionalPropName in props) {\n const stream2 = system2[map2.optional[optionalPropName]];\n publish(stream2, props[optionalPropName]);\n }\n }\n if (system2[\"propsReady\"]) {\n publish(system2[\"propsReady\"], true);\n }\n }\n function buildMethods(system2) {\n return methodNames.reduce((acc, methodName) => {\n acc[methodName] = (value) => {\n const stream2 = system2[map2.methods[methodName]];\n publish(stream2, value);\n };\n return acc;\n }, {});\n }\n function buildEventHandlers(system2) {\n return eventNames.reduce((handlers, eventName) => {\n handlers[eventName] = eventHandler(system2[map2.events[eventName]]);\n return handlers;\n }, {});\n }\n const Component = React.forwardRef((propsWithChildren, ref) => {\n const { children, ...props } = propsWithChildren;\n const [system2] = React.useState(() => {\n return tap(init(systemSpec), (system22) => applyPropsToSystem(system22, props));\n });\n const [handlers] = React.useState(curry1to0(buildEventHandlers, system2));\n useIsomorphicLayoutEffect$2(() => {\n for (const eventName of eventNames) {\n if (eventName in props) {\n subscribe(handlers[eventName], props[eventName]);\n }\n }\n return () => {\n Object.values(handlers).map(reset);\n };\n }, [props, handlers, system2]);\n useIsomorphicLayoutEffect$2(() => {\n applyPropsToSystem(system2, props);\n });\n React.useImperativeHandle(ref, always(buildMethods(system2)));\n return React.createElement(\n Context.Provider,\n { value: system2 },\n Root ? React.createElement(\n Root,\n omit([...requiredPropNames, ...optionalPropNames, ...eventNames], props),\n children\n ) : children\n );\n });\n const usePublisher2 = (key) => {\n return React.useCallback(curry2to1(publish, React.useContext(Context)[key]), [key]);\n };\n const useEmitterValue18 = (key) => {\n const system2 = React.useContext(Context);\n const source = system2[key];\n const cb = React.useCallback(\n (c) => {\n return subscribe(source, c);\n },\n [source]\n );\n return React.useSyncExternalStore(\n cb,\n () => getValue(source),\n () => getValue(source)\n );\n };\n const useEmitterValueLegacy = (key) => {\n const system2 = React.useContext(Context);\n const source = system2[key];\n const [value, setValue] = React.useState(curry1to0(getValue, source));\n useIsomorphicLayoutEffect$2(\n () => subscribe(source, (next) => {\n if (next !== value) {\n setValue(always(next));\n }\n }),\n [source, value]\n );\n return value;\n };\n const useEmitterValue2 = React.version.startsWith(\"18\") ? useEmitterValue18 : useEmitterValueLegacy;\n const useEmitter2 = (key, callback) => {\n const context = React.useContext(Context);\n const source = context[key];\n useIsomorphicLayoutEffect$2(() => subscribe(source, callback), [callback, source]);\n };\n return {\n Component,\n usePublisher: usePublisher2,\n useEmitterValue: useEmitterValue2,\n useEmitter: useEmitter2\n };\n}\nconst useIsomorphicLayoutEffect = typeof document !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nconst useIsomorphicLayoutEffect$1 = useIsomorphicLayoutEffect;\nvar LogLevel = /* @__PURE__ */ ((LogLevel2) => {\n LogLevel2[LogLevel2[\"DEBUG\"] = 0] = \"DEBUG\";\n LogLevel2[LogLevel2[\"INFO\"] = 1] = \"INFO\";\n LogLevel2[LogLevel2[\"WARN\"] = 2] = \"WARN\";\n LogLevel2[LogLevel2[\"ERROR\"] = 3] = \"ERROR\";\n return LogLevel2;\n})(LogLevel || {});\nconst CONSOLE_METHOD_MAP = {\n [\n 0\n /* DEBUG */\n ]: \"debug\",\n [\n 1\n /* INFO */\n ]: \"log\",\n [\n 2\n /* WARN */\n ]: \"warn\",\n [\n 3\n /* ERROR */\n ]: \"error\"\n};\nconst getGlobalThis = () => typeof globalThis === \"undefined\" ? window : globalThis;\nconst loggerSystem = system(\n () => {\n const logLevel = statefulStream(\n 3\n /* ERROR */\n );\n const log = statefulStream((label, message, level = 1) => {\n var _a;\n const currentLevel = (_a = getGlobalThis()[\"VIRTUOSO_LOG_LEVEL\"]) != null ? _a : getValue(logLevel);\n if (level >= currentLevel) {\n console[CONSOLE_METHOD_MAP[level]](\n \"%creact-virtuoso: %c%s %o\",\n \"color: #0253b3; font-weight: bold\",\n \"color: initial\",\n label,\n message\n );\n }\n });\n return {\n log,\n logLevel\n };\n },\n [],\n { singleton: true }\n);\nfunction useSizeWithElRef(callback, enabled = true) {\n const ref = React.useRef(null);\n let callbackRef = (_el) => {\n };\n if (typeof ResizeObserver !== \"undefined\") {\n const observer = React.useMemo(() => {\n return new ResizeObserver((entries) => {\n requestAnimationFrame(() => {\n const element = entries[0].target;\n if (element.offsetParent !== null) {\n callback(element);\n }\n });\n });\n }, [callback]);\n callbackRef = (elRef) => {\n if (elRef && enabled) {\n observer.observe(elRef);\n ref.current = elRef;\n } else {\n if (ref.current) {\n observer.unobserve(ref.current);\n }\n ref.current = null;\n }\n };\n }\n return { ref, callbackRef };\n}\nfunction useSize(callback, enabled = true) {\n return useSizeWithElRef(callback, enabled).callbackRef;\n}\nfunction useChangedListContentsSizes(callback, itemSize, enabled, scrollContainerStateCallback, log, gap, customScrollParent) {\n const memoedCallback = React.useCallback(\n (el) => {\n const ranges = getChangedChildSizes(el.children, itemSize, \"offsetHeight\", log);\n let scrollableElement = el.parentElement;\n while (!scrollableElement.dataset[\"virtuosoScroller\"]) {\n scrollableElement = scrollableElement.parentElement;\n }\n const windowScrolling = scrollableElement.lastElementChild.dataset[\"viewportType\"] === \"window\";\n const scrollTop = customScrollParent ? customScrollParent.scrollTop : windowScrolling ? window.pageYOffset || document.documentElement.scrollTop : scrollableElement.scrollTop;\n const scrollHeight = customScrollParent ? customScrollParent.scrollHeight : windowScrolling ? document.documentElement.scrollHeight : scrollableElement.scrollHeight;\n const viewportHeight = customScrollParent ? customScrollParent.offsetHeight : windowScrolling ? window.innerHeight : scrollableElement.offsetHeight;\n scrollContainerStateCallback({\n scrollTop: Math.max(scrollTop, 0),\n scrollHeight,\n viewportHeight\n });\n gap == null ? void 0 : gap(resolveGapValue$1(\"row-gap\", getComputedStyle(el).rowGap, log));\n if (ranges !== null) {\n callback(ranges);\n }\n },\n [callback, itemSize, log, gap, customScrollParent, scrollContainerStateCallback]\n );\n return useSizeWithElRef(memoedCallback, enabled);\n}\nfunction getChangedChildSizes(children, itemSize, field, log) {\n const length = children.length;\n if (length === 0) {\n return null;\n }\n const results = [];\n for (let i = 0; i < length; i++) {\n const child = children.item(i);\n if (!child || child.dataset.index === void 0) {\n continue;\n }\n const index = parseInt(child.dataset.index);\n const knownSize = parseFloat(child.dataset.knownSize);\n const size = itemSize(child, field);\n if (size === 0) {\n log(\"Zero-sized element, this should not happen\", { child }, LogLevel.ERROR);\n }\n if (size === knownSize) {\n continue;\n }\n const lastResult = results[results.length - 1];\n if (results.length === 0 || lastResult.size !== size || lastResult.endIndex !== index - 1) {\n results.push({ startIndex: index, endIndex: index, size });\n } else {\n results[results.length - 1].endIndex++;\n }\n }\n return results;\n}\nfunction resolveGapValue$1(property, value, log) {\n if (value !== \"normal\" && !(value == null ? void 0 : value.endsWith(\"px\"))) {\n log(`${property} was not resolved to pixel value correctly`, value, LogLevel.WARN);\n }\n if (value === \"normal\") {\n return 0;\n }\n return parseInt(value != null ? value : \"0\", 10);\n}\nfunction correctItemSize(el, dimension) {\n return Math.round(el.getBoundingClientRect()[dimension]);\n}\nfunction approximatelyEqual(num1, num2) {\n return Math.abs(num1 - num2) < 1.01;\n}\nfunction useScrollTop(scrollContainerStateCallback, smoothScrollTargetReached, scrollerElement, scrollerRefCallback = noop, customScrollParent) {\n const scrollerRef = React.useRef(null);\n const scrollTopTarget = React.useRef(null);\n const timeoutRef = React.useRef(null);\n const handler = React.useCallback(\n (ev) => {\n const el = ev.target;\n const windowScroll = el === window || el === document;\n const scrollTop = windowScroll ? window.pageYOffset || document.documentElement.scrollTop : el.scrollTop;\n const scrollHeight = windowScroll ? document.documentElement.scrollHeight : el.scrollHeight;\n const viewportHeight = windowScroll ? window.innerHeight : el.offsetHeight;\n const call2 = () => {\n scrollContainerStateCallback({\n scrollTop: Math.max(scrollTop, 0),\n scrollHeight,\n viewportHeight\n });\n };\n if (ev.suppressFlushSync) {\n call2();\n } else {\n ReactDOM.flushSync(call2);\n }\n if (scrollTopTarget.current !== null) {\n if (scrollTop === scrollTopTarget.current || scrollTop <= 0 || scrollTop === scrollHeight - viewportHeight) {\n scrollTopTarget.current = null;\n smoothScrollTargetReached(true);\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = null;\n }\n }\n }\n },\n [scrollContainerStateCallback, smoothScrollTargetReached]\n );\n React.useEffect(() => {\n const localRef = customScrollParent ? customScrollParent : scrollerRef.current;\n scrollerRefCallback(customScrollParent ? customScrollParent : scrollerRef.current);\n handler({ target: localRef, suppressFlushSync: true });\n localRef.addEventListener(\"scroll\", handler, { passive: true });\n return () => {\n scrollerRefCallback(null);\n localRef.removeEventListener(\"scroll\", handler);\n };\n }, [scrollerRef, handler, scrollerElement, scrollerRefCallback, customScrollParent]);\n function scrollToCallback(location) {\n const scrollerElement2 = scrollerRef.current;\n if (!scrollerElement2 || \"offsetHeight\" in scrollerElement2 && scrollerElement2.offsetHeight === 0) {\n return;\n }\n const isSmooth = location.behavior === \"smooth\";\n let offsetHeight;\n let scrollHeight;\n let scrollTop;\n if (scrollerElement2 === window) {\n scrollHeight = Math.max(correctItemSize(document.documentElement, \"height\"), document.documentElement.scrollHeight);\n offsetHeight = window.innerHeight;\n scrollTop = document.documentElement.scrollTop;\n } else {\n scrollHeight = scrollerElement2.scrollHeight;\n offsetHeight = correctItemSize(scrollerElement2, \"height\");\n scrollTop = scrollerElement2.scrollTop;\n }\n const maxScrollTop = scrollHeight - offsetHeight;\n location.top = Math.ceil(Math.max(Math.min(maxScrollTop, location.top), 0));\n if (approximatelyEqual(offsetHeight, scrollHeight) || location.top === scrollTop) {\n scrollContainerStateCallback({ scrollTop, scrollHeight, viewportHeight: offsetHeight });\n if (isSmooth) {\n smoothScrollTargetReached(true);\n }\n return;\n }\n if (isSmooth) {\n scrollTopTarget.current = location.top;\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n timeoutRef.current = setTimeout(() => {\n timeoutRef.current = null;\n scrollTopTarget.current = null;\n smoothScrollTargetReached(true);\n }, 1e3);\n } else {\n scrollTopTarget.current = null;\n }\n scrollerElement2.scrollTo(location);\n }\n function scrollByCallback(location) {\n scrollerRef.current.scrollBy(location);\n }\n return { scrollerRef, scrollByCallback, scrollToCallback };\n}\nconst domIOSystem = system(\n () => {\n const scrollContainerState = stream();\n const scrollTop = stream();\n const deviation = statefulStream(0);\n const smoothScrollTargetReached = stream();\n const statefulScrollTop = statefulStream(0);\n const viewportHeight = stream();\n const scrollHeight = stream();\n const headerHeight = statefulStream(0);\n const fixedHeaderHeight = statefulStream(0);\n const fixedFooterHeight = statefulStream(0);\n const footerHeight = statefulStream(0);\n const scrollTo = stream();\n const scrollBy = stream();\n const scrollingInProgress = statefulStream(false);\n connect(\n pipe(\n scrollContainerState,\n map(({ scrollTop: scrollTop2 }) => scrollTop2)\n ),\n scrollTop\n );\n connect(\n pipe(\n scrollContainerState,\n map(({ scrollHeight: scrollHeight2 }) => scrollHeight2)\n ),\n scrollHeight\n );\n connect(scrollTop, statefulScrollTop);\n return {\n // input\n scrollContainerState,\n scrollTop,\n viewportHeight,\n headerHeight,\n fixedHeaderHeight,\n fixedFooterHeight,\n footerHeight,\n scrollHeight,\n smoothScrollTargetReached,\n // signals\n scrollTo,\n scrollBy,\n // state\n statefulScrollTop,\n deviation,\n scrollingInProgress\n };\n },\n [],\n { singleton: true }\n);\nconst NIL_NODE = { lvl: 0 };\nfunction newAANode(k, v, lvl, l = NIL_NODE, r = NIL_NODE) {\n return { k, v, lvl, l, r };\n}\nfunction empty(node) {\n return node === NIL_NODE;\n}\nfunction newTree() {\n return NIL_NODE;\n}\nfunction remove(node, key) {\n if (empty(node))\n return NIL_NODE;\n const { k, l, r } = node;\n if (key === k) {\n if (empty(l)) {\n return r;\n } else if (empty(r)) {\n return l;\n } else {\n const [lastKey, lastValue] = last(l);\n return adjust(clone(node, { k: lastKey, v: lastValue, l: deleteLast(l) }));\n }\n } else if (key < k) {\n return adjust(clone(node, { l: remove(l, key) }));\n } else {\n return adjust(clone(node, { r: remove(r, key) }));\n }\n}\nfunction find(node, key) {\n if (empty(node)) {\n return;\n }\n if (key === node.k) {\n return node.v;\n } else if (key < node.k) {\n return find(node.l, key);\n } else {\n return find(node.r, key);\n }\n}\nfunction findMaxKeyValue(node, value, field = \"k\") {\n if (empty(node)) {\n return [-Infinity, void 0];\n }\n if (Number(node[field]) === value) {\n return [node.k, node.v];\n }\n if (Number(node[field]) < value) {\n const r = findMaxKeyValue(node.r, value, field);\n if (r[0] === -Infinity) {\n return [node.k, node.v];\n } else {\n return r;\n }\n }\n return findMaxKeyValue(node.l, value, field);\n}\nfunction insert(node, k, v) {\n if (empty(node)) {\n return newAANode(k, v, 1);\n }\n if (k === node.k) {\n return clone(node, { k, v });\n } else if (k < node.k) {\n return rebalance(clone(node, { l: insert(node.l, k, v) }));\n } else {\n return rebalance(clone(node, { r: insert(node.r, k, v) }));\n }\n}\nfunction walkWithin(node, start, end) {\n if (empty(node)) {\n return [];\n }\n const { k, v, l, r } = node;\n let result = [];\n if (k > start) {\n result = result.concat(walkWithin(l, start, end));\n }\n if (k >= start && k <= end) {\n result.push({ k, v });\n }\n if (k <= end) {\n result = result.concat(walkWithin(r, start, end));\n }\n return result;\n}\nfunction walk(node) {\n if (empty(node)) {\n return [];\n }\n return [...walk(node.l), { k: node.k, v: node.v }, ...walk(node.r)];\n}\nfunction last(node) {\n return empty(node.r) ? [node.k, node.v] : last(node.r);\n}\nfunction deleteLast(node) {\n return empty(node.r) ? node.l : adjust(clone(node, { r: deleteLast(node.r) }));\n}\nfunction clone(node, args) {\n return newAANode(\n args.k !== void 0 ? args.k : node.k,\n args.v !== void 0 ? args.v : node.v,\n args.lvl !== void 0 ? args.lvl : node.lvl,\n args.l !== void 0 ? args.l : node.l,\n args.r !== void 0 ? args.r : node.r\n );\n}\nfunction isSingle(node) {\n return empty(node) || node.lvl > node.r.lvl;\n}\nfunction rebalance(node) {\n return split(skew(node));\n}\nfunction adjust(node) {\n const { l, r, lvl } = node;\n if (r.lvl >= lvl - 1 && l.lvl >= lvl - 1) {\n return node;\n } else if (lvl > r.lvl + 1) {\n if (isSingle(l)) {\n return skew(clone(node, { lvl: lvl - 1 }));\n } else {\n if (!empty(l) && !empty(l.r)) {\n return clone(l.r, {\n l: clone(l, { r: l.r.l }),\n r: clone(node, {\n l: l.r.r,\n lvl: lvl - 1\n }),\n lvl\n });\n } else {\n throw new Error(\"Unexpected empty nodes\");\n }\n }\n } else {\n if (isSingle(node)) {\n return split(clone(node, { lvl: lvl - 1 }));\n } else {\n if (!empty(r) && !empty(r.l)) {\n const rl = r.l;\n const rlvl = isSingle(rl) ? r.lvl - 1 : r.lvl;\n return clone(rl, {\n l: clone(node, {\n r: rl.l,\n lvl: lvl - 1\n }),\n r: split(clone(r, { l: rl.r, lvl: rlvl })),\n lvl: rl.lvl + 1\n });\n } else {\n throw new Error(\"Unexpected empty nodes\");\n }\n }\n }\n}\nfunction rangesWithin(node, startIndex, endIndex) {\n if (empty(node)) {\n return [];\n }\n const adjustedStart = findMaxKeyValue(node, startIndex)[0];\n return toRanges(walkWithin(node, adjustedStart, endIndex));\n}\nfunction arrayToRanges(items, parser) {\n const length = items.length;\n if (length === 0) {\n return [];\n }\n let { index: start, value } = parser(items[0]);\n const result = [];\n for (let i = 1; i < length; i++) {\n const { index: nextIndex, value: nextValue } = parser(items[i]);\n result.push({ start, end: nextIndex - 1, value });\n start = nextIndex;\n value = nextValue;\n }\n result.push({ start, end: Infinity, value });\n return result;\n}\nfunction toRanges(nodes) {\n return arrayToRanges(nodes, ({ k: index, v: value }) => ({ index, value }));\n}\nfunction split(node) {\n const { r, lvl } = node;\n return !empty(r) && !empty(r.r) && r.lvl === lvl && r.r.lvl === lvl ? clone(r, { l: clone(node, { r: r.l }), lvl: lvl + 1 }) : node;\n}\nfunction skew(node) {\n const { l } = node;\n return !empty(l) && l.lvl === node.lvl ? clone(l, { r: clone(node, { l: l.r }) }) : node;\n}\nfunction findIndexOfClosestSmallerOrEqual(items, value, comparator, start = 0) {\n let end = items.length - 1;\n while (start <= end) {\n const index = Math.floor((start + end) / 2);\n const item = items[index];\n const match = comparator(item, value);\n if (match === 0) {\n return index;\n }\n if (match === -1) {\n if (end - start < 2) {\n return index - 1;\n }\n end = index - 1;\n } else {\n if (end === start) {\n return index;\n }\n start = index + 1;\n }\n }\n throw new Error(`Failed binary finding record in array - ${items.join(\",\")}, searched for ${value}`);\n}\nfunction findClosestSmallerOrEqual(items, value, comparator) {\n return items[findIndexOfClosestSmallerOrEqual(items, value, comparator)];\n}\nfunction findRange(items, startValue, endValue, comparator) {\n const startIndex = findIndexOfClosestSmallerOrEqual(items, startValue, comparator);\n const endIndex = findIndexOfClosestSmallerOrEqual(items, endValue, comparator, startIndex);\n return items.slice(startIndex, endIndex + 1);\n}\nconst recalcSystem = system(\n () => {\n const recalcInProgress = statefulStream(false);\n return { recalcInProgress };\n },\n [],\n { singleton: true }\n);\nfunction rangeIncludes(refRange) {\n const { size, startIndex, endIndex } = refRange;\n return (range) => {\n return range.start === startIndex && (range.end === endIndex || range.end === Infinity) && range.value === size;\n };\n}\nfunction affectedGroupCount(offset, groupIndices) {\n let recognizedOffsetItems = 0;\n let groupIndex = 0;\n while (recognizedOffsetItems < offset) {\n recognizedOffsetItems += groupIndices[groupIndex + 1] - groupIndices[groupIndex] - 1;\n groupIndex++;\n }\n const offsetIsExact = recognizedOffsetItems === offset;\n return groupIndex - (offsetIsExact ? 0 : 1);\n}\nfunction insertRanges(sizeTree, ranges) {\n let syncStart = empty(sizeTree) ? 0 : Infinity;\n for (const range of ranges) {\n const { size, startIndex, endIndex } = range;\n syncStart = Math.min(syncStart, startIndex);\n if (empty(sizeTree)) {\n sizeTree = insert(sizeTree, 0, size);\n continue;\n }\n const overlappingRanges = rangesWithin(sizeTree, startIndex - 1, endIndex + 1);\n if (overlappingRanges.some(rangeIncludes(range))) {\n continue;\n }\n let firstPassDone = false;\n let shouldInsert = false;\n for (const { start: rangeStart, end: rangeEnd, value: rangeValue } of overlappingRanges) {\n if (!firstPassDone) {\n shouldInsert = rangeValue !== size;\n firstPassDone = true;\n } else {\n if (endIndex >= rangeStart || size === rangeValue) {\n sizeTree = remove(sizeTree, rangeStart);\n }\n }\n if (rangeEnd > endIndex && endIndex >= rangeStart) {\n if (rangeValue !== size) {\n sizeTree = insert(sizeTree, endIndex + 1, rangeValue);\n }\n }\n }\n if (shouldInsert) {\n sizeTree = insert(sizeTree, startIndex, size);\n }\n }\n return [sizeTree, syncStart];\n}\nfunction initialSizeState() {\n return {\n offsetTree: [],\n sizeTree: newTree(),\n groupOffsetTree: newTree(),\n lastIndex: 0,\n lastOffset: 0,\n lastSize: 0,\n groupIndices: []\n };\n}\nfunction indexComparator({ index: itemIndex }, index) {\n return index === itemIndex ? 0 : index < itemIndex ? -1 : 1;\n}\nfunction offsetComparator({ offset: itemOffset }, offset) {\n return offset === itemOffset ? 0 : offset < itemOffset ? -1 : 1;\n}\nfunction offsetPointParser(point) {\n return { index: point.index, value: point };\n}\nfunction rangesWithinOffsets(tree, startOffset, endOffset, minStartIndex = 0) {\n if (minStartIndex > 0) {\n startOffset = Math.max(startOffset, findClosestSmallerOrEqual(tree, minStartIndex, indexComparator).offset);\n }\n return arrayToRanges(findRange(tree, startOffset, endOffset, offsetComparator), offsetPointParser);\n}\nfunction createOffsetTree(prevOffsetTree, syncStart, sizeTree, gap) {\n let offsetTree = prevOffsetTree;\n let prevIndex = 0;\n let prevSize = 0;\n let prevOffset = 0;\n let startIndex = 0;\n if (syncStart !== 0) {\n startIndex = findIndexOfClosestSmallerOrEqual(offsetTree, syncStart - 1, indexComparator);\n const offsetInfo = offsetTree[startIndex];\n prevOffset = offsetInfo.offset;\n const kv = findMaxKeyValue(sizeTree, syncStart - 1);\n prevIndex = kv[0];\n prevSize = kv[1];\n if (offsetTree.length && offsetTree[startIndex].size === findMaxKeyValue(sizeTree, syncStart)[1]) {\n startIndex -= 1;\n }\n offsetTree = offsetTree.slice(0, startIndex + 1);\n } else {\n offsetTree = [];\n }\n for (const { start: startIndex2, value } of rangesWithin(sizeTree, syncStart, Infinity)) {\n const indexOffset = startIndex2 - prevIndex;\n const aOffset = indexOffset * prevSize + prevOffset + indexOffset * gap;\n offsetTree.push({\n offset: aOffset,\n size: value,\n index: startIndex2\n });\n prevIndex = startIndex2;\n prevOffset = aOffset;\n prevSize = value;\n }\n return {\n offsetTree,\n lastIndex: prevIndex,\n lastOffset: prevOffset,\n lastSize: prevSize\n };\n}\nfunction sizeStateReducer(state, [ranges, groupIndices, log, gap]) {\n if (ranges.length > 0) {\n log(\"received item sizes\", ranges, LogLevel.DEBUG);\n }\n const sizeTree = state.sizeTree;\n let newSizeTree = sizeTree;\n let syncStart = 0;\n if (groupIndices.length > 0 && empty(sizeTree) && ranges.length === 2) {\n const groupSize = ranges[0].size;\n const itemSize = ranges[1].size;\n newSizeTree = groupIndices.reduce((tree, groupIndex) => {\n return insert(insert(tree, groupIndex, groupSize), groupIndex + 1, itemSize);\n }, newSizeTree);\n } else {\n [newSizeTree, syncStart] = insertRanges(newSizeTree, ranges);\n }\n if (newSizeTree === sizeTree) {\n return state;\n }\n const { offsetTree: newOffsetTree, lastIndex, lastSize, lastOffset } = createOffsetTree(state.offsetTree, syncStart, newSizeTree, gap);\n return {\n sizeTree: newSizeTree,\n offsetTree: newOffsetTree,\n lastIndex,\n lastOffset,\n lastSize,\n groupOffsetTree: groupIndices.reduce((tree, index) => {\n return insert(tree, index, offsetOf(index, newOffsetTree, gap));\n }, newTree()),\n groupIndices\n };\n}\nfunction offsetOf(index, tree, gap) {\n if (tree.length === 0) {\n return 0;\n }\n const { offset, index: startIndex, size } = findClosestSmallerOrEqual(tree, index, indexComparator);\n const itemCount = index - startIndex;\n const top = size * itemCount + (itemCount - 1) * gap + offset;\n return top > 0 ? top + gap : top;\n}\nfunction isGroupLocation(location) {\n return typeof location.groupIndex !== \"undefined\";\n}\nfunction originalIndexFromLocation(location, sizes, lastIndex) {\n if (isGroupLocation(location)) {\n return sizes.groupIndices[location.groupIndex] + 1;\n } else {\n const numericIndex = location.index === \"LAST\" ? lastIndex : location.index;\n let result = originalIndexFromItemIndex(numericIndex, sizes);\n result = Math.max(0, result, Math.min(lastIndex, result));\n return result;\n }\n}\nfunction originalIndexFromItemIndex(itemIndex, sizes) {\n if (!hasGroups(sizes)) {\n return itemIndex;\n }\n let groupOffset = 0;\n while (sizes.groupIndices[groupOffset] <= itemIndex + groupOffset) {\n groupOffset++;\n }\n return itemIndex + groupOffset;\n}\nfunction hasGroups(sizes) {\n return !empty(sizes.groupOffsetTree);\n}\nfunction sizeTreeToRanges(sizeTree) {\n return walk(sizeTree).map(({ k: startIndex, v: size }, index, sizeArray) => {\n const nextSize = sizeArray[index + 1];\n const endIndex = nextSize ? nextSize.k - 1 : Infinity;\n return { startIndex, endIndex, size };\n });\n}\nconst SIZE_MAP = {\n offsetHeight: \"height\",\n offsetWidth: \"width\"\n};\nconst sizeSystem = system(\n ([{ log }, { recalcInProgress }]) => {\n const sizeRanges = stream();\n const totalCount = stream();\n const statefulTotalCount = statefulStreamFromEmitter(totalCount, 0);\n const unshiftWith = stream();\n const shiftWith = stream();\n const firstItemIndex = statefulStream(0);\n const groupIndices = statefulStream([]);\n const fixedItemSize = statefulStream(void 0);\n const defaultItemSize = statefulStream(void 0);\n const itemSize = statefulStream((el, field) => correctItemSize(el, SIZE_MAP[field]));\n const data = statefulStream(void 0);\n const gap = statefulStream(0);\n const initial = initialSizeState();\n const sizes = statefulStreamFromEmitter(\n pipe(sizeRanges, withLatestFrom(groupIndices, log, gap), scan(sizeStateReducer, initial), distinctUntilChanged()),\n initial\n );\n const prevGroupIndices = statefulStreamFromEmitter(\n pipe(\n groupIndices,\n distinctUntilChanged(),\n scan((prev, curr) => ({ prev: prev.current, current: curr }), {\n prev: [],\n current: []\n }),\n map(({ prev }) => prev)\n ),\n []\n );\n connect(\n pipe(\n groupIndices,\n filter((indexes) => indexes.length > 0),\n withLatestFrom(sizes, gap),\n map(([groupIndices2, sizes2, gap2]) => {\n const groupOffsetTree = groupIndices2.reduce((tree, index, idx) => {\n return insert(tree, index, offsetOf(index, sizes2.offsetTree, gap2) || idx);\n }, newTree());\n return {\n ...sizes2,\n groupIndices: groupIndices2,\n groupOffsetTree\n };\n })\n ),\n sizes\n );\n connect(\n pipe(\n totalCount,\n withLatestFrom(sizes),\n filter(([totalCount2, { lastIndex }]) => {\n return totalCount2 < lastIndex;\n }),\n map(([totalCount2, { lastIndex, lastSize }]) => {\n return [\n {\n startIndex: totalCount2,\n endIndex: lastIndex,\n size: lastSize\n }\n ];\n })\n ),\n sizeRanges\n );\n connect(fixedItemSize, defaultItemSize);\n const trackItemSizes = statefulStreamFromEmitter(\n pipe(\n fixedItemSize,\n map((size) => size === void 0)\n ),\n true\n );\n connect(\n pipe(\n defaultItemSize,\n filter((value) => {\n return value !== void 0 && empty(getValue(sizes).sizeTree);\n }),\n map((size) => [{ startIndex: 0, endIndex: 0, size }])\n ),\n sizeRanges\n );\n const listRefresh = streamFromEmitter(\n pipe(\n sizeRanges,\n withLatestFrom(sizes),\n scan(\n ({ sizes: oldSizes }, [_, newSizes]) => {\n return {\n changed: newSizes !== oldSizes,\n sizes: newSizes\n };\n },\n { changed: false, sizes: initial }\n ),\n map((value) => value.changed)\n )\n );\n subscribe(\n pipe(\n firstItemIndex,\n scan(\n (prev, next) => {\n return { diff: prev.prev - next, prev: next };\n },\n { diff: 0, prev: 0 }\n ),\n map((val) => val.diff)\n ),\n (offset) => {\n const { groupIndices: groupIndices2 } = getValue(sizes);\n if (offset > 0) {\n publish(recalcInProgress, true);\n publish(unshiftWith, offset + affectedGroupCount(offset, groupIndices2));\n } else if (offset < 0) {\n const prevGroupIndicesValue = getValue(prevGroupIndices);\n if (prevGroupIndicesValue.length > 0) {\n offset -= affectedGroupCount(-offset, prevGroupIndicesValue);\n }\n publish(shiftWith, offset);\n }\n }\n );\n subscribe(pipe(firstItemIndex, withLatestFrom(log)), ([index, log2]) => {\n if (index < 0) {\n log2(\n \"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value\",\n { firstItemIndex },\n LogLevel.ERROR\n );\n }\n });\n const beforeUnshiftWith = streamFromEmitter(unshiftWith);\n connect(\n pipe(\n unshiftWith,\n withLatestFrom(sizes),\n map(([unshiftWith2, sizes2]) => {\n const groupedMode = sizes2.groupIndices.length > 0;\n const initialRanges = [];\n const defaultSize = sizes2.lastSize;\n if (groupedMode) {\n const firstGroupSize = find(sizes2.sizeTree, 0);\n let prependedGroupItemsCount = 0;\n let groupIndex = 0;\n while (prependedGroupItemsCount < unshiftWith2) {\n const theGroupIndex = sizes2.groupIndices[groupIndex];\n const groupItemCount = sizes2.groupIndices.length === groupIndex + 1 ? Infinity : sizes2.groupIndices[groupIndex + 1] - theGroupIndex - 1;\n initialRanges.push({\n startIndex: theGroupIndex,\n endIndex: theGroupIndex,\n size: firstGroupSize\n });\n initialRanges.push({\n startIndex: theGroupIndex + 1,\n endIndex: theGroupIndex + 1 + groupItemCount - 1,\n size: defaultSize\n });\n groupIndex++;\n prependedGroupItemsCount += groupItemCount + 1;\n }\n const sizeTreeKV = walk(sizes2.sizeTree);\n const firstGroupIsExpanded = prependedGroupItemsCount !== unshiftWith2;\n if (firstGroupIsExpanded) {\n sizeTreeKV.shift();\n }\n return sizeTreeKV.reduce(\n (acc, { k: index, v: size }) => {\n let ranges = acc.ranges;\n if (acc.prevSize !== 0) {\n ranges = [\n ...acc.ranges,\n {\n startIndex: acc.prevIndex,\n endIndex: index + unshiftWith2 - 1,\n size: acc.prevSize\n }\n ];\n }\n return {\n ranges,\n prevIndex: index + unshiftWith2,\n prevSize: size\n };\n },\n {\n ranges: initialRanges,\n prevIndex: unshiftWith2,\n prevSize: 0\n }\n ).ranges;\n }\n return walk(sizes2.sizeTree).reduce(\n (acc, { k: index, v: size }) => {\n return {\n ranges: [...acc.ranges, { startIndex: acc.prevIndex, endIndex: index + unshiftWith2 - 1, size: acc.prevSize }],\n prevIndex: index + unshiftWith2,\n prevSize: size\n };\n },\n {\n ranges: [],\n prevIndex: 0,\n prevSize: defaultSize\n }\n ).ranges;\n })\n ),\n sizeRanges\n );\n const shiftWithOffset = streamFromEmitter(\n pipe(\n shiftWith,\n withLatestFrom(sizes, gap),\n map(([shiftWith2, { offsetTree }, gap2]) => {\n const newFirstItemIndex = -shiftWith2;\n return offsetOf(newFirstItemIndex, offsetTree, gap2);\n })\n )\n );\n connect(\n pipe(\n shiftWith,\n withLatestFrom(sizes, gap),\n map(([shiftWith2, sizes2, gap2]) => {\n const groupedMode = sizes2.groupIndices.length > 0;\n if (groupedMode) {\n if (empty(sizes2.sizeTree)) {\n return sizes2;\n }\n let newSizeTree = newTree();\n const prevGroupIndicesValue = getValue(prevGroupIndices);\n let removedItemsCount = 0;\n let groupIndex = 0;\n let groupOffset = 0;\n while (removedItemsCount < -shiftWith2) {\n groupOffset = prevGroupIndicesValue[groupIndex];\n const groupItemCount = prevGroupIndicesValue[groupIndex + 1] - groupOffset - 1;\n groupIndex++;\n removedItemsCount += groupItemCount + 1;\n }\n newSizeTree = walk(sizes2.sizeTree).reduce((acc, { k, v }) => {\n return insert(acc, Math.max(0, k + shiftWith2), v);\n }, newSizeTree);\n const aGroupIsShrunk = removedItemsCount !== -shiftWith2;\n if (aGroupIsShrunk) {\n const firstGroupSize = find(sizes2.sizeTree, groupOffset);\n newSizeTree = insert(newSizeTree, 0, firstGroupSize);\n const nextItemSize = findMaxKeyValue(sizes2.sizeTree, -shiftWith2 + 1)[1];\n newSizeTree = insert(newSizeTree, 1, nextItemSize);\n }\n return {\n ...sizes2,\n sizeTree: newSizeTree,\n ...createOffsetTree(sizes2.offsetTree, 0, newSizeTree, gap2)\n };\n } else {\n const newSizeTree = walk(sizes2.sizeTree).reduce((acc, { k, v }) => {\n return insert(acc, Math.max(0, k + shiftWith2), v);\n }, newTree());\n return {\n ...sizes2,\n sizeTree: newSizeTree,\n ...createOffsetTree(sizes2.offsetTree, 0, newSizeTree, gap2)\n };\n }\n })\n ),\n sizes\n );\n return {\n // input\n data,\n totalCount,\n sizeRanges,\n groupIndices,\n defaultItemSize,\n fixedItemSize,\n unshiftWith,\n shiftWith,\n shiftWithOffset,\n beforeUnshiftWith,\n firstItemIndex,\n gap,\n // output\n sizes,\n listRefresh,\n statefulTotalCount,\n trackItemSizes,\n itemSize\n };\n },\n tup(loggerSystem, recalcSystem),\n { singleton: true }\n);\nconst SUPPORTS_SCROLL_TO_OPTIONS = typeof document !== \"undefined\" && \"scrollBehavior\" in document.documentElement.style;\nfunction normalizeIndexLocation(location) {\n const result = typeof location === \"number\" ? { index: location } : location;\n if (!result.align) {\n result.align = \"start\";\n }\n if (!result.behavior || !SUPPORTS_SCROLL_TO_OPTIONS) {\n result.behavior = \"auto\";\n }\n if (!result.offset) {\n result.offset = 0;\n }\n return result;\n}\nconst scrollToIndexSystem = system(\n ([\n { sizes, totalCount, listRefresh, gap },\n {\n scrollingInProgress,\n viewportHeight,\n scrollTo,\n smoothScrollTargetReached,\n headerHeight,\n footerHeight,\n fixedHeaderHeight,\n fixedFooterHeight\n },\n { log }\n ]) => {\n const scrollToIndex = stream();\n const scrollTargetReached = stream();\n const topListHeight = statefulStream(0);\n let unsubscribeNextListRefresh = null;\n let cleartTimeoutRef = null;\n let unsubscribeListRefresh = null;\n function cleanup() {\n if (unsubscribeNextListRefresh) {\n unsubscribeNextListRefresh();\n unsubscribeNextListRefresh = null;\n }\n if (unsubscribeListRefresh) {\n unsubscribeListRefresh();\n unsubscribeListRefresh = null;\n }\n if (cleartTimeoutRef) {\n clearTimeout(cleartTimeoutRef);\n cleartTimeoutRef = null;\n }\n publish(scrollingInProgress, false);\n }\n connect(\n pipe(\n scrollToIndex,\n withLatestFrom(sizes, viewportHeight, totalCount, topListHeight, headerHeight, footerHeight, log),\n withLatestFrom(gap, fixedHeaderHeight, fixedFooterHeight),\n map(\n ([\n [location, sizes2, viewportHeight2, totalCount2, topListHeight2, headerHeight2, footerHeight2, log2],\n gap2,\n fixedHeaderHeight2,\n fixedFooterHeight2\n ]) => {\n const normalLocation = normalizeIndexLocation(location);\n const { align, behavior, offset } = normalLocation;\n const lastIndex = totalCount2 - 1;\n const index = originalIndexFromLocation(normalLocation, sizes2, lastIndex);\n let top = offsetOf(index, sizes2.offsetTree, gap2) + headerHeight2;\n if (align === \"end\") {\n top += fixedHeaderHeight2 + findMaxKeyValue(sizes2.sizeTree, index)[1] - viewportHeight2 + fixedFooterHeight2;\n if (index === lastIndex) {\n top += footerHeight2;\n }\n } else if (align === \"center\") {\n top += (fixedHeaderHeight2 + findMaxKeyValue(sizes2.sizeTree, index)[1] - viewportHeight2 + fixedFooterHeight2) / 2;\n } else {\n top -= topListHeight2;\n }\n if (offset) {\n top += offset;\n }\n const retry = (listChanged) => {\n cleanup();\n if (listChanged) {\n log2(\"retrying to scroll to\", { location }, LogLevel.DEBUG);\n publish(scrollToIndex, location);\n } else {\n publish(scrollTargetReached, true);\n log2(\"list did not change, scroll successful\", {}, LogLevel.DEBUG);\n }\n };\n cleanup();\n if (behavior === \"smooth\") {\n let listChanged = false;\n unsubscribeListRefresh = subscribe(listRefresh, (changed) => {\n listChanged = listChanged || changed;\n });\n unsubscribeNextListRefresh = handleNext(smoothScrollTargetReached, () => {\n retry(listChanged);\n });\n } else {\n unsubscribeNextListRefresh = handleNext(pipe(listRefresh, watchChangesFor(150)), retry);\n }\n cleartTimeoutRef = setTimeout(() => {\n cleanup();\n }, 1200);\n publish(scrollingInProgress, true);\n log2(\"scrolling from index to\", { index, top, behavior }, LogLevel.DEBUG);\n return { top, behavior };\n }\n )\n ),\n scrollTo\n );\n return {\n scrollToIndex,\n scrollTargetReached,\n topListHeight\n };\n },\n tup(sizeSystem, domIOSystem, loggerSystem),\n { singleton: true }\n);\nfunction watchChangesFor(limit) {\n return (done) => {\n const timeoutRef = setTimeout(() => {\n done(false);\n }, limit);\n return (value) => {\n if (value) {\n done(true);\n clearTimeout(timeoutRef);\n }\n };\n };\n}\nconst UP = \"up\";\nconst DOWN = \"down\";\nconst NONE$1 = \"none\";\nconst INITIAL_BOTTOM_STATE = {\n atBottom: false,\n notAtBottomBecause: \"NOT_SHOWING_LAST_ITEM\",\n state: {\n offsetBottom: 0,\n scrollTop: 0,\n viewportHeight: 0,\n scrollHeight: 0\n }\n};\nconst DEFAULT_AT_TOP_THRESHOLD = 0;\nconst stateFlagsSystem = system(([{ scrollContainerState, scrollTop, viewportHeight, headerHeight, footerHeight, scrollBy }]) => {\n const isAtBottom = statefulStream(false);\n const isAtTop = statefulStream(true);\n const atBottomStateChange = stream();\n const atTopStateChange = stream();\n const atBottomThreshold = statefulStream(4);\n const atTopThreshold = statefulStream(DEFAULT_AT_TOP_THRESHOLD);\n const isScrolling = statefulStreamFromEmitter(\n pipe(\n merge(pipe(duc(scrollTop), skip(1), mapTo(true)), pipe(duc(scrollTop), skip(1), mapTo(false), debounceTime(100))),\n distinctUntilChanged()\n ),\n false\n );\n const isScrollingBy = statefulStreamFromEmitter(\n pipe(merge(pipe(scrollBy, mapTo(true)), pipe(scrollBy, mapTo(false), debounceTime(200))), distinctUntilChanged()),\n false\n );\n connect(\n pipe(\n combineLatest(duc(scrollTop), duc(atTopThreshold)),\n map(([top, atTopThreshold2]) => top <= atTopThreshold2),\n distinctUntilChanged()\n ),\n isAtTop\n );\n connect(pipe(isAtTop, throttleTime(50)), atTopStateChange);\n const atBottomState = streamFromEmitter(\n pipe(\n combineLatest(scrollContainerState, duc(viewportHeight), duc(headerHeight), duc(footerHeight), duc(atBottomThreshold)),\n scan((current, [{ scrollTop: scrollTop2, scrollHeight }, viewportHeight2, _headerHeight, _footerHeight, atBottomThreshold2]) => {\n const isAtBottom2 = scrollTop2 + viewportHeight2 - scrollHeight > -atBottomThreshold2;\n const state = {\n viewportHeight: viewportHeight2,\n scrollTop: scrollTop2,\n scrollHeight\n };\n if (isAtBottom2) {\n let atBottomBecause;\n let scrollTopDelta;\n if (scrollTop2 > current.state.scrollTop) {\n atBottomBecause = \"SCROLLED_DOWN\";\n scrollTopDelta = current.state.scrollTop - scrollTop2;\n } else {\n atBottomBecause = \"SIZE_DECREASED\";\n scrollTopDelta = current.state.scrollTop - scrollTop2 || current.scrollTopDelta;\n }\n return {\n atBottom: true,\n state,\n atBottomBecause,\n scrollTopDelta\n };\n }\n let notAtBottomBecause;\n if (state.scrollHeight > current.state.scrollHeight) {\n notAtBottomBecause = \"SIZE_INCREASED\";\n } else if (viewportHeight2 < current.state.viewportHeight) {\n notAtBottomBecause = \"VIEWPORT_HEIGHT_DECREASING\";\n } else if (scrollTop2 < current.state.scrollTop) {\n notAtBottomBecause = \"SCROLLING_UPWARDS\";\n } else {\n notAtBottomBecause = \"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM\";\n }\n return {\n atBottom: false,\n notAtBottomBecause,\n state\n };\n }, INITIAL_BOTTOM_STATE),\n distinctUntilChanged((prev, next) => {\n return prev && prev.atBottom === next.atBottom;\n })\n )\n );\n const lastJumpDueToItemResize = statefulStreamFromEmitter(\n pipe(\n scrollContainerState,\n scan(\n (current, { scrollTop: scrollTop2, scrollHeight, viewportHeight: viewportHeight2 }) => {\n if (!approximatelyEqual(current.scrollHeight, scrollHeight)) {\n const atBottom = scrollHeight - (scrollTop2 + viewportHeight2) < 1;\n if (current.scrollTop !== scrollTop2 && atBottom) {\n return {\n scrollHeight,\n scrollTop: scrollTop2,\n jump: current.scrollTop - scrollTop2,\n changed: true\n };\n } else {\n return {\n scrollHeight,\n scrollTop: scrollTop2,\n jump: 0,\n changed: true\n };\n }\n } else {\n return {\n scrollTop: scrollTop2,\n scrollHeight,\n jump: 0,\n changed: false\n };\n }\n },\n { scrollHeight: 0, jump: 0, scrollTop: 0, changed: false }\n ),\n filter((value) => value.changed),\n map((value) => value.jump)\n ),\n 0\n );\n connect(\n pipe(\n atBottomState,\n map((state) => state.atBottom)\n ),\n isAtBottom\n );\n connect(pipe(isAtBottom, throttleTime(50)), atBottomStateChange);\n const scrollDirection = statefulStream(DOWN);\n connect(\n pipe(\n scrollContainerState,\n map(({ scrollTop: scrollTop2 }) => scrollTop2),\n distinctUntilChanged(),\n scan(\n (acc, scrollTop2) => {\n if (getValue(isScrollingBy)) {\n return { direction: acc.direction, prevScrollTop: scrollTop2 };\n }\n return { direction: scrollTop2 < acc.prevScrollTop ? UP : DOWN, prevScrollTop: scrollTop2 };\n },\n { direction: DOWN, prevScrollTop: 0 }\n ),\n map((value) => value.direction)\n ),\n scrollDirection\n );\n connect(pipe(scrollContainerState, throttleTime(50), mapTo(NONE$1)), scrollDirection);\n const scrollVelocity = statefulStream(0);\n connect(\n pipe(\n isScrolling,\n filter((value) => !value),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n mapTo(0)\n ),\n scrollVelocity\n );\n connect(\n pipe(\n scrollTop,\n throttleTime(100),\n withLatestFrom(isScrolling),\n filter(([_, isScrolling2]) => !!isScrolling2),\n scan(([_, prev], [next]) => [prev, next], [0, 0]),\n map(([prev, next]) => next - prev)\n ),\n scrollVelocity\n );\n return {\n isScrolling,\n isAtTop,\n isAtBottom,\n atBottomState,\n atTopStateChange,\n atBottomStateChange,\n scrollDirection,\n atBottomThreshold,\n atTopThreshold,\n scrollVelocity,\n lastJumpDueToItemResize\n };\n}, tup(domIOSystem));\nconst propsReadySystem = system(\n ([{ log }]) => {\n const propsReady = statefulStream(false);\n const didMount = streamFromEmitter(\n pipe(\n propsReady,\n filter((ready) => ready),\n distinctUntilChanged()\n )\n );\n subscribe(propsReady, (value) => {\n value && getValue(log)(\"props updated\", {}, LogLevel.DEBUG);\n });\n return { propsReady, didMount };\n },\n tup(loggerSystem),\n { singleton: true }\n);\nfunction skipFrames(frameCount, callback) {\n if (frameCount == 0) {\n callback();\n } else {\n requestAnimationFrame(() => skipFrames(frameCount - 1, callback));\n }\n}\nfunction getInitialTopMostItemIndexNumber(location, totalCount) {\n const lastIndex = totalCount - 1;\n const index = typeof location === \"number\" ? location : location.index === \"LAST\" ? lastIndex : location.index;\n return index;\n}\nconst initialTopMostItemIndexSystem = system(\n ([{ sizes, listRefresh, defaultItemSize }, { scrollTop }, { scrollToIndex, scrollTargetReached }, { didMount }]) => {\n const scrolledToInitialItem = statefulStream(true);\n const initialTopMostItemIndex = statefulStream(0);\n const initialItemFinalLocationReached = statefulStream(true);\n connect(\n pipe(\n didMount,\n withLatestFrom(initialTopMostItemIndex),\n filter(([_, location]) => !!location),\n mapTo(false)\n ),\n scrolledToInitialItem\n );\n connect(\n pipe(\n didMount,\n withLatestFrom(initialTopMostItemIndex),\n filter(([_, location]) => !!location),\n mapTo(false)\n ),\n initialItemFinalLocationReached\n );\n subscribe(\n pipe(\n combineLatest(listRefresh, didMount),\n withLatestFrom(scrolledToInitialItem, sizes, defaultItemSize, initialItemFinalLocationReached),\n filter(([[, didMount2], scrolledToInitialItem2, { sizeTree }, defaultItemSize2, scrollScheduled]) => {\n return didMount2 && (!empty(sizeTree) || isDefined(defaultItemSize2)) && !scrolledToInitialItem2 && !scrollScheduled;\n }),\n withLatestFrom(initialTopMostItemIndex)\n ),\n ([, initialTopMostItemIndex2]) => {\n handleNext(scrollTargetReached, () => {\n publish(initialItemFinalLocationReached, true);\n });\n skipFrames(3, () => {\n handleNext(scrollTop, () => {\n publish(scrolledToInitialItem, true);\n });\n publish(scrollToIndex, initialTopMostItemIndex2);\n });\n }\n );\n return {\n scrolledToInitialItem,\n initialTopMostItemIndex,\n initialItemFinalLocationReached\n };\n },\n tup(sizeSystem, domIOSystem, scrollToIndexSystem, propsReadySystem),\n { singleton: true }\n);\nfunction normalizeFollowOutput(follow) {\n if (!follow) {\n return false;\n }\n return follow === \"smooth\" ? \"smooth\" : \"auto\";\n}\nconst behaviorFromFollowOutput = (follow, isAtBottom) => {\n if (typeof follow === \"function\") {\n return normalizeFollowOutput(follow(isAtBottom));\n }\n return isAtBottom && normalizeFollowOutput(follow);\n};\nconst followOutputSystem = system(\n ([\n { totalCount, listRefresh },\n { isAtBottom, atBottomState },\n { scrollToIndex },\n { scrolledToInitialItem },\n { propsReady, didMount },\n { log },\n { scrollingInProgress }\n ]) => {\n const followOutput = statefulStream(false);\n const autoscrollToBottom = stream();\n let pendingScrollHandle = null;\n function scrollToBottom(followOutputBehavior) {\n publish(scrollToIndex, {\n index: \"LAST\",\n align: \"end\",\n behavior: followOutputBehavior\n });\n }\n subscribe(\n pipe(\n combineLatest(pipe(duc(totalCount), skip(1)), didMount),\n withLatestFrom(duc(followOutput), isAtBottom, scrolledToInitialItem, scrollingInProgress),\n map(([[totalCount2, didMount2], followOutput2, isAtBottom2, scrolledToInitialItem2, scrollingInProgress2]) => {\n let shouldFollow = didMount2 && scrolledToInitialItem2;\n let followOutputBehavior = \"auto\";\n if (shouldFollow) {\n followOutputBehavior = behaviorFromFollowOutput(followOutput2, isAtBottom2 || scrollingInProgress2);\n shouldFollow = shouldFollow && !!followOutputBehavior;\n }\n return { totalCount: totalCount2, shouldFollow, followOutputBehavior };\n }),\n filter(({ shouldFollow }) => shouldFollow)\n ),\n ({ totalCount: totalCount2, followOutputBehavior }) => {\n if (pendingScrollHandle) {\n pendingScrollHandle();\n pendingScrollHandle = null;\n }\n pendingScrollHandle = handleNext(listRefresh, () => {\n getValue(log)(\"following output to \", { totalCount: totalCount2 }, LogLevel.DEBUG);\n scrollToBottom(followOutputBehavior);\n pendingScrollHandle = null;\n });\n }\n );\n function trapNextSizeIncrease(followOutput2) {\n const cancel = handleNext(atBottomState, (state) => {\n if (followOutput2 && !state.atBottom && state.notAtBottomBecause === \"SIZE_INCREASED\" && !pendingScrollHandle) {\n getValue(log)(\"scrolling to bottom due to increased size\", {}, LogLevel.DEBUG);\n scrollToBottom(\"auto\");\n }\n });\n setTimeout(cancel, 100);\n }\n subscribe(\n pipe(\n combineLatest(duc(followOutput), totalCount, propsReady),\n filter(([follow, , ready]) => follow && ready),\n scan(\n ({ value }, [, next]) => {\n return { refreshed: value === next, value: next };\n },\n { refreshed: false, value: 0 }\n ),\n filter(({ refreshed }) => refreshed),\n withLatestFrom(followOutput, totalCount)\n ),\n ([, followOutput2]) => {\n if (getValue(scrolledToInitialItem)) {\n trapNextSizeIncrease(followOutput2 !== false);\n }\n }\n );\n subscribe(autoscrollToBottom, () => {\n trapNextSizeIncrease(getValue(followOutput) !== false);\n });\n subscribe(combineLatest(duc(followOutput), atBottomState), ([followOutput2, state]) => {\n if (followOutput2 && !state.atBottom && state.notAtBottomBecause === \"VIEWPORT_HEIGHT_DECREASING\") {\n scrollToBottom(\"auto\");\n }\n });\n return { followOutput, autoscrollToBottom };\n },\n tup(sizeSystem, stateFlagsSystem, scrollToIndexSystem, initialTopMostItemIndexSystem, propsReadySystem, loggerSystem, domIOSystem)\n);\nfunction groupCountsToIndicesAndCount(counts) {\n return counts.reduce(\n (acc, groupCount) => {\n acc.groupIndices.push(acc.totalCount);\n acc.totalCount += groupCount + 1;\n return acc;\n },\n {\n totalCount: 0,\n groupIndices: []\n }\n );\n}\nconst groupedListSystem = system(([{ totalCount, groupIndices, sizes }, { scrollTop, headerHeight }]) => {\n const groupCounts = stream();\n const topItemsIndexes = stream();\n const groupIndicesAndCount = streamFromEmitter(pipe(groupCounts, map(groupCountsToIndicesAndCount)));\n connect(\n pipe(\n groupIndicesAndCount,\n map((value) => value.totalCount)\n ),\n totalCount\n );\n connect(\n pipe(\n groupIndicesAndCount,\n map((value) => value.groupIndices)\n ),\n groupIndices\n );\n connect(\n pipe(\n combineLatest(scrollTop, sizes, headerHeight),\n filter(([_, sizes2]) => hasGroups(sizes2)),\n map(([scrollTop2, state, headerHeight2]) => findMaxKeyValue(state.groupOffsetTree, Math.max(scrollTop2 - headerHeight2, 0), \"v\")[0]),\n distinctUntilChanged(),\n map((index) => [index])\n ),\n topItemsIndexes\n );\n return { groupCounts, topItemsIndexes };\n}, tup(sizeSystem, domIOSystem));\nfunction tupleComparator(prev, current) {\n return !!(prev && prev[0] === current[0] && prev[1] === current[1]);\n}\nfunction rangeComparator(prev, next) {\n return !!(prev && prev.startIndex === next.startIndex && prev.endIndex === next.endIndex);\n}\nconst TOP = \"top\";\nconst BOTTOM = \"bottom\";\nconst NONE = \"none\";\nfunction getOverscan(overscan, end, direction) {\n if (typeof overscan === \"number\") {\n return direction === UP && end === TOP || direction === DOWN && end === BOTTOM ? overscan : 0;\n } else {\n if (direction === UP) {\n return end === TOP ? overscan.main : overscan.reverse;\n } else {\n return end === BOTTOM ? overscan.main : overscan.reverse;\n }\n }\n}\nfunction getViewportIncrease(value, end) {\n return typeof value === \"number\" ? value : value[end] || 0;\n}\nconst sizeRangeSystem = system(\n ([{ scrollTop, viewportHeight, deviation, headerHeight, fixedHeaderHeight }]) => {\n const listBoundary = stream();\n const topListHeight = statefulStream(0);\n const increaseViewportBy = statefulStream(0);\n const overscan = statefulStream(0);\n const visibleRange = statefulStreamFromEmitter(\n pipe(\n combineLatest(\n duc(scrollTop),\n duc(viewportHeight),\n duc(headerHeight),\n duc(listBoundary, tupleComparator),\n duc(overscan),\n duc(topListHeight),\n duc(fixedHeaderHeight),\n duc(deviation),\n duc(increaseViewportBy)\n ),\n map(\n ([\n scrollTop2,\n viewportHeight2,\n headerHeight2,\n [listTop, listBottom],\n overscan2,\n topListHeight2,\n fixedHeaderHeight2,\n deviation2,\n increaseViewportBy2\n ]) => {\n const top = scrollTop2 - deviation2;\n const stickyHeaderHeight = topListHeight2 + fixedHeaderHeight2;\n const headerVisible = Math.max(headerHeight2 - top, 0);\n let direction = NONE;\n const topViewportAddition = getViewportIncrease(increaseViewportBy2, TOP);\n const bottomViewportAddition = getViewportIncrease(increaseViewportBy2, BOTTOM);\n listTop -= deviation2;\n listTop += headerHeight2 + fixedHeaderHeight2;\n listBottom += headerHeight2 + fixedHeaderHeight2;\n listBottom -= deviation2;\n if (listTop > scrollTop2 + stickyHeaderHeight - topViewportAddition) {\n direction = UP;\n }\n if (listBottom < scrollTop2 - headerVisible + viewportHeight2 + bottomViewportAddition) {\n direction = DOWN;\n }\n if (direction !== NONE) {\n return [\n Math.max(top - headerHeight2 - getOverscan(overscan2, TOP, direction) - topViewportAddition, 0),\n top - headerVisible - fixedHeaderHeight2 + viewportHeight2 + getOverscan(overscan2, BOTTOM, direction) + bottomViewportAddition\n ];\n }\n return null;\n }\n ),\n filter((value) => value != null),\n distinctUntilChanged(tupleComparator)\n ),\n [0, 0]\n );\n return {\n // input\n listBoundary,\n overscan,\n topListHeight,\n increaseViewportBy,\n // output\n visibleRange\n };\n },\n tup(domIOSystem),\n { singleton: true }\n);\nfunction probeItemSet(index, sizes, data) {\n if (hasGroups(sizes)) {\n const itemIndex = originalIndexFromItemIndex(index, sizes);\n const groupIndex = findMaxKeyValue(sizes.groupOffsetTree, itemIndex)[0];\n return [\n { index: groupIndex, size: 0, offset: 0 },\n { index: itemIndex, size: 0, offset: 0, data: data && data[0] }\n ];\n }\n return [{ index, size: 0, offset: 0, data: data && data[0] }];\n}\nconst EMPTY_LIST_STATE = {\n items: [],\n topItems: [],\n offsetTop: 0,\n offsetBottom: 0,\n top: 0,\n bottom: 0,\n topListHeight: 0,\n totalCount: 0,\n firstItemIndex: 0\n};\nfunction transposeItems(items, sizes, firstItemIndex) {\n if (items.length === 0) {\n return [];\n }\n if (!hasGroups(sizes)) {\n return items.map((item) => ({ ...item, index: item.index + firstItemIndex, originalIndex: item.index }));\n }\n const startIndex = items[0].index;\n const endIndex = items[items.length - 1].index;\n const transposedItems = [];\n const groupRanges = rangesWithin(sizes.groupOffsetTree, startIndex, endIndex);\n let currentRange = void 0;\n let currentGroupIndex = 0;\n for (const item of items) {\n if (!currentRange || currentRange.end < item.index) {\n currentRange = groupRanges.shift();\n currentGroupIndex = sizes.groupIndices.indexOf(currentRange.start);\n }\n let transposedItem;\n if (item.index === currentRange.start) {\n transposedItem = {\n type: \"group\",\n index: currentGroupIndex\n };\n } else {\n transposedItem = {\n index: item.index - (currentGroupIndex + 1) + firstItemIndex,\n groupIndex: currentGroupIndex\n };\n }\n transposedItems.push({\n ...transposedItem,\n size: item.size,\n offset: item.offset,\n originalIndex: item.index,\n data: item.data\n });\n }\n return transposedItems;\n}\nfunction buildListState(items, topItems, totalCount, gap, sizes, firstItemIndex) {\n const { lastSize, lastOffset, lastIndex } = sizes;\n let offsetTop = 0;\n let bottom = 0;\n if (items.length > 0) {\n offsetTop = items[0].offset;\n const lastItem = items[items.length - 1];\n bottom = lastItem.offset + lastItem.size;\n }\n const itemCount = totalCount - lastIndex;\n const total = lastOffset + itemCount * lastSize + (itemCount - 1) * gap;\n const top = offsetTop;\n const offsetBottom = total - bottom;\n return {\n items: transposeItems(items, sizes, firstItemIndex),\n topItems: transposeItems(topItems, sizes, firstItemIndex),\n topListHeight: topItems.reduce((height, item) => item.size + height, 0),\n offsetTop,\n offsetBottom,\n top,\n bottom,\n totalCount,\n firstItemIndex\n };\n}\nfunction buildListStateFromItemCount(itemCount, initialTopMostItemIndex, sizes, firstItemIndex, gap, data) {\n let includedGroupsCount = 0;\n if (sizes.groupIndices.length > 0) {\n for (const index of sizes.groupIndices) {\n if (index - includedGroupsCount >= itemCount) {\n break;\n }\n includedGroupsCount++;\n }\n }\n const adjustedCount = itemCount + includedGroupsCount;\n const initialTopMostItemIndexNumber = getInitialTopMostItemIndexNumber(initialTopMostItemIndex, adjustedCount);\n const items = Array.from({ length: adjustedCount }).map((_, index) => ({\n index: index + initialTopMostItemIndexNumber,\n size: 0,\n offset: 0,\n data: data[index + initialTopMostItemIndexNumber]\n }));\n return buildListState(items, [], adjustedCount, gap, sizes, firstItemIndex);\n}\nconst listStateSystem = system(\n ([\n { sizes, totalCount, data, firstItemIndex, gap },\n groupedListSystem2,\n { visibleRange, listBoundary, topListHeight: rangeTopListHeight },\n { scrolledToInitialItem, initialTopMostItemIndex },\n { topListHeight },\n stateFlags,\n { didMount },\n { recalcInProgress }\n ]) => {\n const topItemsIndexes = statefulStream([]);\n const initialItemCount = statefulStream(0);\n const itemsRendered = stream();\n connect(groupedListSystem2.topItemsIndexes, topItemsIndexes);\n const listState = statefulStreamFromEmitter(\n pipe(\n combineLatest(\n didMount,\n recalcInProgress,\n duc(visibleRange, tupleComparator),\n duc(totalCount),\n duc(sizes),\n duc(initialTopMostItemIndex),\n scrolledToInitialItem,\n duc(topItemsIndexes),\n duc(firstItemIndex),\n duc(gap),\n data\n ),\n filter(([mount, recalcInProgress2, , totalCount2, , , , , , , data2]) => {\n const dataChangeInProgress = data2 && data2.length !== totalCount2;\n return mount && !recalcInProgress2 && !dataChangeInProgress;\n }),\n map(\n ([\n ,\n ,\n [startOffset, endOffset],\n totalCount2,\n sizes2,\n initialTopMostItemIndex2,\n scrolledToInitialItem2,\n topItemsIndexes2,\n firstItemIndex2,\n gap2,\n data2\n ]) => {\n const sizesValue = sizes2;\n const { sizeTree, offsetTree } = sizesValue;\n const initialItemCountValue = getValue(initialItemCount);\n if (totalCount2 === 0) {\n return { ...EMPTY_LIST_STATE, totalCount: totalCount2 };\n }\n if (startOffset === 0 && endOffset === 0) {\n if (initialItemCountValue === 0) {\n return { ...EMPTY_LIST_STATE, totalCount: totalCount2 };\n } else {\n return buildListStateFromItemCount(initialItemCountValue, initialTopMostItemIndex2, sizes2, firstItemIndex2, gap2, data2 || []);\n }\n }\n if (empty(sizeTree)) {\n if (initialItemCountValue > 0) {\n return null;\n }\n const state = buildListState(\n probeItemSet(getInitialTopMostItemIndexNumber(initialTopMostItemIndex2, totalCount2), sizesValue, data2),\n [],\n totalCount2,\n gap2,\n sizesValue,\n firstItemIndex2\n );\n return state;\n }\n const topItems = [];\n if (topItemsIndexes2.length > 0) {\n const startIndex = topItemsIndexes2[0];\n const endIndex = topItemsIndexes2[topItemsIndexes2.length - 1];\n let offset = 0;\n for (const range of rangesWithin(sizeTree, startIndex, endIndex)) {\n const size = range.value;\n const rangeStartIndex = Math.max(range.start, startIndex);\n const rangeEndIndex = Math.min(range.end, endIndex);\n for (let i = rangeStartIndex; i <= rangeEndIndex; i++) {\n topItems.push({ index: i, size, offset, data: data2 && data2[i] });\n offset += size;\n }\n }\n }\n if (!scrolledToInitialItem2) {\n return buildListState([], topItems, totalCount2, gap2, sizesValue, firstItemIndex2);\n }\n const minStartIndex = topItemsIndexes2.length > 0 ? topItemsIndexes2[topItemsIndexes2.length - 1] + 1 : 0;\n const offsetPointRanges = rangesWithinOffsets(offsetTree, startOffset, endOffset, minStartIndex);\n if (offsetPointRanges.length === 0) {\n return null;\n }\n const maxIndex = totalCount2 - 1;\n const items = tap([], (result) => {\n for (const range of offsetPointRanges) {\n const point = range.value;\n let offset = point.offset;\n let rangeStartIndex = range.start;\n const size = point.size;\n if (point.offset < startOffset) {\n rangeStartIndex += Math.floor((startOffset - point.offset + gap2) / (size + gap2));\n const itemCount = rangeStartIndex - range.start;\n offset += itemCount * size + itemCount * gap2;\n }\n if (rangeStartIndex < minStartIndex) {\n offset += (minStartIndex - rangeStartIndex) * size;\n rangeStartIndex = minStartIndex;\n }\n const endIndex = Math.min(range.end, maxIndex);\n for (let i = rangeStartIndex; i <= endIndex; i++) {\n if (offset >= endOffset) {\n break;\n }\n result.push({ index: i, size, offset, data: data2 && data2[i] });\n offset += size + gap2;\n }\n }\n });\n return buildListState(items, topItems, totalCount2, gap2, sizesValue, firstItemIndex2);\n }\n ),\n //@ts-expect-error filter needs to be fixed\n filter((value) => value !== null),\n distinctUntilChanged()\n ),\n EMPTY_LIST_STATE\n );\n connect(\n pipe(\n data,\n filter(isDefined),\n map((data2) => data2 == null ? void 0 : data2.length)\n ),\n totalCount\n );\n connect(\n pipe(\n listState,\n map((value) => value.topListHeight)\n ),\n topListHeight\n );\n connect(topListHeight, rangeTopListHeight);\n connect(\n pipe(\n listState,\n map((state) => [state.top, state.bottom])\n ),\n listBoundary\n );\n connect(\n pipe(\n listState,\n map((state) => state.items)\n ),\n itemsRendered\n );\n const endReached = streamFromEmitter(\n pipe(\n listState,\n filter(({ items }) => items.length > 0),\n withLatestFrom(totalCount, data),\n filter(([{ items }, totalCount2]) => items[items.length - 1].originalIndex === totalCount2 - 1),\n map(([, totalCount2, data2]) => [totalCount2 - 1, data2]),\n distinctUntilChanged(tupleComparator),\n map(([count]) => count)\n )\n );\n const startReached = streamFromEmitter(\n pipe(\n listState,\n throttleTime(200),\n filter(({ items, topItems }) => {\n return items.length > 0 && items[0].originalIndex === topItems.length;\n }),\n map(({ items }) => items[0].index),\n distinctUntilChanged()\n )\n );\n const rangeChanged = streamFromEmitter(\n pipe(\n listState,\n filter(({ items }) => items.length > 0),\n map(({ items }) => {\n let startIndex = 0;\n let endIndex = items.length - 1;\n while (items[startIndex].type === \"group\" && startIndex < endIndex) {\n startIndex++;\n }\n while (items[endIndex].type === \"group\" && endIndex > startIndex) {\n endIndex--;\n }\n return {\n startIndex: items[startIndex].index,\n endIndex: items[endIndex].index\n };\n }),\n distinctUntilChanged(rangeComparator)\n )\n );\n return { listState, topItemsIndexes, endReached, startReached, rangeChanged, itemsRendered, initialItemCount, ...stateFlags };\n },\n tup(\n sizeSystem,\n groupedListSystem,\n sizeRangeSystem,\n initialTopMostItemIndexSystem,\n scrollToIndexSystem,\n stateFlagsSystem,\n propsReadySystem,\n recalcSystem\n ),\n { singleton: true }\n);\nconst initialItemCountSystem = system(\n ([{ sizes, firstItemIndex, data, gap }, { initialTopMostItemIndex }, { initialItemCount, listState }, { didMount }]) => {\n connect(\n pipe(\n didMount,\n withLatestFrom(initialItemCount),\n filter(([, count]) => count !== 0),\n withLatestFrom(initialTopMostItemIndex, sizes, firstItemIndex, gap, data),\n map(([[, count], initialTopMostItemIndexValue, sizes2, firstItemIndex2, gap2, data2 = []]) => {\n return buildListStateFromItemCount(count, initialTopMostItemIndexValue, sizes2, firstItemIndex2, gap2, data2);\n })\n ),\n listState\n );\n return {};\n },\n tup(sizeSystem, initialTopMostItemIndexSystem, listStateSystem, propsReadySystem),\n { singleton: true }\n);\nconst scrollSeekSystem = system(\n ([{ scrollVelocity }]) => {\n const isSeeking = statefulStream(false);\n const rangeChanged = stream();\n const scrollSeekConfiguration = statefulStream(false);\n connect(\n pipe(\n scrollVelocity,\n withLatestFrom(scrollSeekConfiguration, isSeeking, rangeChanged),\n filter(([_, config]) => !!config),\n map(([speed, config, isSeeking2, range]) => {\n const { exit, enter } = config;\n if (isSeeking2) {\n if (exit(speed, range)) {\n return false;\n }\n } else {\n if (enter(speed, range)) {\n return true;\n }\n }\n return isSeeking2;\n }),\n distinctUntilChanged()\n ),\n isSeeking\n );\n subscribe(\n pipe(combineLatest(isSeeking, scrollVelocity, rangeChanged), withLatestFrom(scrollSeekConfiguration)),\n ([[isSeeking2, velocity, range], config]) => isSeeking2 && config && config.change && config.change(velocity, range)\n );\n return { isSeeking, scrollSeekConfiguration, scrollVelocity, scrollSeekRangeChanged: rangeChanged };\n },\n tup(stateFlagsSystem),\n { singleton: true }\n);\nconst topItemCountSystem = system(([{ topItemsIndexes }]) => {\n const topItemCount = statefulStream(0);\n connect(\n pipe(\n topItemCount,\n filter((length) => length > 0),\n map((length) => Array.from({ length }).map((_, index) => index))\n ),\n topItemsIndexes\n );\n return { topItemCount };\n}, tup(listStateSystem));\nconst totalListHeightSystem = system(\n ([{ footerHeight, headerHeight, fixedHeaderHeight, fixedFooterHeight }, { listState }]) => {\n const totalListHeightChanged = stream();\n const totalListHeight = statefulStreamFromEmitter(\n pipe(\n combineLatest(footerHeight, fixedFooterHeight, headerHeight, fixedHeaderHeight, listState),\n map(([footerHeight2, fixedFooterHeight2, headerHeight2, fixedHeaderHeight2, listState2]) => {\n return footerHeight2 + fixedFooterHeight2 + headerHeight2 + fixedHeaderHeight2 + listState2.offsetBottom + listState2.bottom;\n })\n ),\n 0\n );\n connect(duc(totalListHeight), totalListHeightChanged);\n return { totalListHeight, totalListHeightChanged };\n },\n tup(domIOSystem, listStateSystem),\n { singleton: true }\n);\nfunction simpleMemoize(func) {\n let called = false;\n let result;\n return () => {\n if (!called) {\n called = true;\n result = func();\n }\n return result;\n };\n}\nconst isMobileSafari = simpleMemoize(() => {\n return /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent);\n});\nconst upwardScrollFixSystem = system(\n ([\n { scrollBy, scrollTop, deviation, scrollingInProgress },\n { isScrolling, isAtBottom, scrollDirection, lastJumpDueToItemResize },\n { listState },\n { beforeUnshiftWith, shiftWithOffset, sizes, gap },\n { log },\n { recalcInProgress }\n ]) => {\n const deviationOffset = streamFromEmitter(\n pipe(\n listState,\n withLatestFrom(lastJumpDueToItemResize),\n scan(\n ([, prevItems, prevTotalCount, prevTotalHeight], [{ items, totalCount, bottom, offsetBottom }, lastJumpDueToItemResize2]) => {\n const totalHeight = bottom + offsetBottom;\n let newDev = 0;\n if (prevTotalCount === totalCount) {\n if (prevItems.length > 0 && items.length > 0) {\n const atStart = items[0].originalIndex === 0 && prevItems[0].originalIndex === 0;\n if (!atStart) {\n newDev = totalHeight - prevTotalHeight;\n if (newDev !== 0) {\n newDev += lastJumpDueToItemResize2;\n }\n }\n }\n }\n return [newDev, items, totalCount, totalHeight];\n },\n [0, [], 0, 0]\n ),\n filter(([amount]) => amount !== 0),\n withLatestFrom(scrollTop, scrollDirection, scrollingInProgress, isAtBottom, log, recalcInProgress),\n filter(([, scrollTop2, scrollDirection2, scrollingInProgress2, , , recalcInProgress2]) => {\n return !recalcInProgress2 && !scrollingInProgress2 && scrollTop2 !== 0 && scrollDirection2 === UP;\n }),\n map(([[amount], , , , , log2]) => {\n log2(\"Upward scrolling compensation\", { amount }, LogLevel.DEBUG);\n return amount;\n })\n )\n );\n function scrollByWith(offset) {\n if (offset > 0) {\n publish(scrollBy, { top: -offset, behavior: \"auto\" });\n publish(deviation, 0);\n } else {\n publish(deviation, 0);\n publish(scrollBy, { top: -offset, behavior: \"auto\" });\n }\n }\n subscribe(pipe(deviationOffset, withLatestFrom(deviation, isScrolling)), ([offset, deviationAmount, isScrolling2]) => {\n if (isScrolling2 && isMobileSafari()) {\n publish(deviation, deviationAmount - offset);\n } else {\n scrollByWith(-offset);\n }\n });\n subscribe(\n pipe(\n combineLatest(statefulStreamFromEmitter(isScrolling, false), deviation, recalcInProgress),\n filter(([is, deviation2, recalc]) => !is && !recalc && deviation2 !== 0),\n map(([_, deviation2]) => deviation2),\n throttleTime(1)\n ),\n scrollByWith\n );\n connect(\n pipe(\n shiftWithOffset,\n map((offset) => {\n return { top: -offset };\n })\n ),\n scrollBy\n );\n subscribe(\n pipe(\n beforeUnshiftWith,\n withLatestFrom(sizes, gap),\n map(([offset, { lastSize: defaultItemSize, groupIndices, sizeTree }, gap2]) => {\n function getItemOffset(itemCount) {\n return itemCount * (defaultItemSize + gap2);\n }\n if (groupIndices.length === 0) {\n return getItemOffset(offset);\n } else {\n let amount = 0;\n const defaultGroupSize = find(sizeTree, 0);\n let recognizedOffsetItems = 0;\n let groupIndex = 0;\n while (recognizedOffsetItems < offset) {\n recognizedOffsetItems++;\n amount += defaultGroupSize;\n let groupItemCount = groupIndices.length === groupIndex + 1 ? Infinity : groupIndices[groupIndex + 1] - groupIndices[groupIndex] - 1;\n if (recognizedOffsetItems + groupItemCount > offset) {\n amount -= defaultGroupSize;\n groupItemCount = offset - recognizedOffsetItems + 1;\n }\n recognizedOffsetItems += groupItemCount;\n amount += getItemOffset(groupItemCount);\n groupIndex++;\n }\n return amount;\n }\n })\n ),\n (offset) => {\n publish(deviation, offset);\n requestAnimationFrame(() => {\n publish(scrollBy, { top: offset });\n requestAnimationFrame(() => {\n publish(deviation, 0);\n publish(recalcInProgress, false);\n });\n });\n }\n );\n return { deviation };\n },\n tup(domIOSystem, stateFlagsSystem, listStateSystem, sizeSystem, loggerSystem, recalcSystem)\n);\nconst initialScrollTopSystem = system(\n ([{ didMount }, { scrollTo }, { listState }]) => {\n const initialScrollTop = statefulStream(0);\n subscribe(\n pipe(\n didMount,\n withLatestFrom(initialScrollTop),\n filter(([, offset]) => offset !== 0),\n map(([, offset]) => ({ top: offset }))\n ),\n (location) => {\n handleNext(\n pipe(\n listState,\n skip(1),\n filter((state) => state.items.length > 1)\n ),\n () => {\n requestAnimationFrame(() => {\n publish(scrollTo, location);\n });\n }\n );\n }\n );\n return {\n initialScrollTop\n };\n },\n tup(propsReadySystem, domIOSystem, listStateSystem),\n { singleton: true }\n);\nconst alignToBottomSystem = system(\n ([{ viewportHeight }, { totalListHeight }]) => {\n const alignToBottom = statefulStream(false);\n const paddingTopAddition = statefulStreamFromEmitter(\n pipe(\n combineLatest(alignToBottom, viewportHeight, totalListHeight),\n filter(([enabled]) => enabled),\n map(([, viewportHeight2, totalListHeight2]) => {\n return Math.max(0, viewportHeight2 - totalListHeight2);\n }),\n throttleTime(0),\n distinctUntilChanged()\n ),\n 0\n );\n return { alignToBottom, paddingTopAddition };\n },\n tup(domIOSystem, totalListHeightSystem),\n { singleton: true }\n);\nconst windowScrollerSystem = system(([{ scrollTo, scrollContainerState }]) => {\n const windowScrollContainerState = stream();\n const windowViewportRect = stream();\n const windowScrollTo = stream();\n const useWindowScroll = statefulStream(false);\n const customScrollParent = statefulStream(void 0);\n connect(\n pipe(\n combineLatest(windowScrollContainerState, windowViewportRect),\n map(([{ viewportHeight, scrollTop: windowScrollTop, scrollHeight }, { offsetTop }]) => {\n return {\n scrollTop: Math.max(0, windowScrollTop - offsetTop),\n scrollHeight,\n viewportHeight\n };\n })\n ),\n scrollContainerState\n );\n connect(\n pipe(\n scrollTo,\n withLatestFrom(windowViewportRect),\n map(([scrollTo2, { offsetTop }]) => {\n return {\n ...scrollTo2,\n top: scrollTo2.top + offsetTop\n };\n })\n ),\n windowScrollTo\n );\n return {\n // config\n useWindowScroll,\n customScrollParent,\n // input\n windowScrollContainerState,\n windowViewportRect,\n // signals\n windowScrollTo\n };\n}, tup(domIOSystem));\nconst defaultCalculateViewLocation = ({\n itemTop: itemTop2,\n itemBottom,\n viewportTop,\n viewportBottom,\n locationParams: { behavior, align, ...rest }\n}) => {\n if (itemTop2 < viewportTop) {\n return { ...rest, behavior, align: align != null ? align : \"start\" };\n }\n if (itemBottom > viewportBottom) {\n return { ...rest, behavior, align: align != null ? align : \"end\" };\n }\n return null;\n};\nconst scrollIntoViewSystem = system(\n ([\n { sizes, totalCount, gap },\n { scrollTop, viewportHeight, headerHeight, fixedHeaderHeight, fixedFooterHeight, scrollingInProgress },\n { scrollToIndex }\n ]) => {\n const scrollIntoView = stream();\n connect(\n pipe(\n scrollIntoView,\n withLatestFrom(sizes, viewportHeight, totalCount, headerHeight, fixedHeaderHeight, fixedFooterHeight, scrollTop),\n withLatestFrom(gap),\n map(([[viewLocation, sizes2, viewportHeight2, totalCount2, headerHeight2, fixedHeaderHeight2, fixedFooterHeight2, scrollTop2], gap2]) => {\n const { done, behavior, align, calculateViewLocation = defaultCalculateViewLocation, ...rest } = viewLocation;\n const actualIndex = originalIndexFromLocation(viewLocation, sizes2, totalCount2 - 1);\n const itemTop2 = offsetOf(actualIndex, sizes2.offsetTree, gap2) + headerHeight2 + fixedHeaderHeight2;\n const itemBottom = itemTop2 + findMaxKeyValue(sizes2.sizeTree, actualIndex)[1];\n const viewportTop = scrollTop2 + fixedHeaderHeight2;\n const viewportBottom = scrollTop2 + viewportHeight2 - fixedFooterHeight2;\n const location = calculateViewLocation({\n itemTop: itemTop2,\n itemBottom,\n viewportTop,\n viewportBottom,\n locationParams: { behavior, align, ...rest }\n });\n if (location) {\n done && handleNext(\n pipe(\n scrollingInProgress,\n filter((value) => value === false),\n // skips the initial publish of false, and the cleanup call.\n // but if scrollingInProgress is true, we skip the initial publish.\n skip(getValue(scrollingInProgress) ? 1 : 2)\n ),\n done\n );\n } else {\n done && done();\n }\n return location;\n }),\n filter((value) => value !== null)\n ),\n scrollToIndex\n );\n return {\n scrollIntoView\n };\n },\n tup(sizeSystem, domIOSystem, scrollToIndexSystem, listStateSystem, loggerSystem),\n { singleton: true }\n);\nconst stateLoadSystem = system(\n ([\n { sizes, sizeRanges },\n { scrollTop },\n { initialTopMostItemIndex },\n { didMount },\n { useWindowScroll, windowScrollContainerState, windowViewportRect }\n ]) => {\n const getState = stream();\n const restoreStateFrom = statefulStream(void 0);\n const statefulWindowScrollContainerState = statefulStream(null);\n const statefulWindowViewportRect = statefulStream(null);\n connect(windowScrollContainerState, statefulWindowScrollContainerState);\n connect(windowViewportRect, statefulWindowViewportRect);\n subscribe(\n pipe(getState, withLatestFrom(sizes, scrollTop, useWindowScroll, statefulWindowScrollContainerState, statefulWindowViewportRect)),\n ([callback, sizes2, scrollTop2, useWindowScroll2, windowScrollContainerState2, windowViewportRect2]) => {\n const ranges = sizeTreeToRanges(sizes2.sizeTree);\n if (useWindowScroll2 && windowScrollContainerState2 !== null && windowViewportRect2 !== null) {\n scrollTop2 = windowScrollContainerState2.scrollTop - windowViewportRect2.offsetTop;\n }\n callback({ ranges, scrollTop: scrollTop2 });\n }\n );\n connect(pipe(restoreStateFrom, filter(isDefined), map(locationFromSnapshot)), initialTopMostItemIndex);\n connect(\n pipe(\n didMount,\n withLatestFrom(restoreStateFrom),\n filter(([, state]) => state !== void 0),\n distinctUntilChanged(),\n map(([, snapshot]) => {\n return snapshot.ranges;\n })\n ),\n sizeRanges\n );\n return {\n getState,\n restoreStateFrom\n };\n },\n tup(sizeSystem, domIOSystem, initialTopMostItemIndexSystem, propsReadySystem, windowScrollerSystem)\n);\nfunction locationFromSnapshot(snapshot) {\n return { offset: snapshot.scrollTop, index: 0, align: \"start\" };\n}\nconst featureGroup1System = system(\n ([\n sizeRange,\n initialItemCount,\n propsReady,\n scrollSeek,\n totalListHeight,\n initialScrollTopSystem2,\n alignToBottom,\n windowScroller,\n scrollIntoView,\n logger\n ]) => {\n return {\n ...sizeRange,\n ...initialItemCount,\n ...propsReady,\n ...scrollSeek,\n ...totalListHeight,\n ...initialScrollTopSystem2,\n ...alignToBottom,\n ...windowScroller,\n ...scrollIntoView,\n ...logger\n };\n },\n tup(\n sizeRangeSystem,\n initialItemCountSystem,\n propsReadySystem,\n scrollSeekSystem,\n totalListHeightSystem,\n initialScrollTopSystem,\n alignToBottomSystem,\n windowScrollerSystem,\n scrollIntoViewSystem,\n loggerSystem\n )\n);\nconst listSystem = system(\n ([\n {\n totalCount,\n sizeRanges,\n fixedItemSize,\n defaultItemSize,\n trackItemSizes,\n itemSize,\n data,\n firstItemIndex,\n groupIndices,\n statefulTotalCount,\n gap,\n sizes\n },\n { initialTopMostItemIndex, scrolledToInitialItem, initialItemFinalLocationReached },\n domIO,\n stateLoad,\n followOutput,\n { listState, topItemsIndexes, ...flags },\n { scrollToIndex },\n _,\n { topItemCount },\n { groupCounts },\n featureGroup1\n ]) => {\n connect(flags.rangeChanged, featureGroup1.scrollSeekRangeChanged);\n connect(\n pipe(\n featureGroup1.windowViewportRect,\n map((value) => value.visibleHeight)\n ),\n domIO.viewportHeight\n );\n return {\n // input\n totalCount,\n data,\n firstItemIndex,\n sizeRanges,\n initialTopMostItemIndex,\n scrolledToInitialItem,\n initialItemFinalLocationReached,\n topItemsIndexes,\n topItemCount,\n groupCounts,\n fixedItemHeight: fixedItemSize,\n defaultItemHeight: defaultItemSize,\n gap,\n ...followOutput,\n // output\n statefulTotalCount,\n listState,\n scrollToIndex,\n trackItemSizes,\n itemSize,\n groupIndices,\n // exported from stateFlagsSystem\n ...flags,\n // the bag of IO from featureGroup1System\n ...featureGroup1,\n ...domIO,\n sizes,\n ...stateLoad\n };\n },\n tup(\n sizeSystem,\n initialTopMostItemIndexSystem,\n domIOSystem,\n stateLoadSystem,\n followOutputSystem,\n listStateSystem,\n scrollToIndexSystem,\n upwardScrollFixSystem,\n topItemCountSystem,\n groupedListSystem,\n featureGroup1System\n )\n);\nconst WEBKIT_STICKY = \"-webkit-sticky\";\nconst STICKY = \"sticky\";\nconst positionStickyCssValue = simpleMemoize(() => {\n if (typeof document === \"undefined\") {\n return STICKY;\n }\n const node = document.createElement(\"div\");\n node.style.position = WEBKIT_STICKY;\n return node.style.position === WEBKIT_STICKY ? WEBKIT_STICKY : STICKY;\n});\nfunction useWindowViewportRectRef(callback, customScrollParent) {\n const viewportInfo = React.useRef(null);\n const calculateInfo = React.useCallback(\n (element) => {\n if (element === null || !element.offsetParent) {\n return;\n }\n const rect = element.getBoundingClientRect();\n const visibleWidth = rect.width;\n let visibleHeight, offsetTop;\n if (customScrollParent) {\n const customScrollParentRect = customScrollParent.getBoundingClientRect();\n const deltaTop = rect.top - customScrollParentRect.top;\n visibleHeight = customScrollParentRect.height - Math.max(0, deltaTop);\n offsetTop = deltaTop + customScrollParent.scrollTop;\n } else {\n visibleHeight = window.innerHeight - Math.max(0, rect.top);\n offsetTop = rect.top + window.pageYOffset;\n }\n viewportInfo.current = {\n offsetTop,\n visibleHeight,\n visibleWidth\n };\n callback(viewportInfo.current);\n },\n [callback, customScrollParent]\n );\n const { callbackRef, ref } = useSizeWithElRef(calculateInfo);\n const scrollAndResizeEventHandler = React.useCallback(() => {\n calculateInfo(ref.current);\n }, [calculateInfo, ref]);\n React.useEffect(() => {\n if (customScrollParent) {\n customScrollParent.addEventListener(\"scroll\", scrollAndResizeEventHandler);\n const observer = new ResizeObserver(() => {\n requestAnimationFrame(scrollAndResizeEventHandler);\n });\n observer.observe(customScrollParent);\n return () => {\n customScrollParent.removeEventListener(\"scroll\", scrollAndResizeEventHandler);\n observer.unobserve(customScrollParent);\n };\n } else {\n window.addEventListener(\"scroll\", scrollAndResizeEventHandler);\n window.addEventListener(\"resize\", scrollAndResizeEventHandler);\n return () => {\n window.removeEventListener(\"scroll\", scrollAndResizeEventHandler);\n window.removeEventListener(\"resize\", scrollAndResizeEventHandler);\n };\n }\n }, [scrollAndResizeEventHandler, customScrollParent]);\n return callbackRef;\n}\nconst VirtuosoMockContext = React.createContext(void 0);\nconst VirtuosoGridMockContext = React.createContext(void 0);\nfunction identity(value) {\n return value;\n}\nconst listComponentPropsSystem = /* @__PURE__ */ system(() => {\n const itemContent = statefulStream((index) => `Item ${index}`);\n const context = statefulStream(null);\n const groupContent = statefulStream((index) => `Group ${index}`);\n const components = statefulStream({});\n const computeItemKey = statefulStream(identity);\n const headerFooterTag = statefulStream(\"div\");\n const scrollerRef = statefulStream(noop);\n const distinctProp = (propName, defaultValue = null) => {\n return statefulStreamFromEmitter(\n pipe(\n components,\n map((components2) => components2[propName]),\n distinctUntilChanged()\n ),\n defaultValue\n );\n };\n return {\n context,\n itemContent,\n groupContent,\n components,\n computeItemKey,\n headerFooterTag,\n scrollerRef,\n FooterComponent: distinctProp(\"Footer\"),\n HeaderComponent: distinctProp(\"Header\"),\n TopItemListComponent: distinctProp(\"TopItemList\"),\n ListComponent: distinctProp(\"List\", \"div\"),\n ItemComponent: distinctProp(\"Item\", \"div\"),\n GroupComponent: distinctProp(\"Group\", \"div\"),\n ScrollerComponent: distinctProp(\"Scroller\", \"div\"),\n EmptyPlaceholder: distinctProp(\"EmptyPlaceholder\"),\n ScrollSeekPlaceholder: distinctProp(\"ScrollSeekPlaceholder\")\n };\n});\nconst combinedSystem$2 = /* @__PURE__ */ system(([listSystem2, propsSystem]) => {\n return { ...listSystem2, ...propsSystem };\n}, tup(listSystem, listComponentPropsSystem));\nconst DefaultScrollSeekPlaceholder$1 = ({ height }) => /* @__PURE__ */ React.createElement(\"div\", { style: { height } });\nconst GROUP_STYLE = { position: positionStickyCssValue(), zIndex: 1, overflowAnchor: \"none\" };\nconst ITEM_STYLE$1 = { overflowAnchor: \"none\" };\nconst Items$1 = /* @__PURE__ */ React.memo(function VirtuosoItems({ showTopList = false }) {\n const listState = useEmitterValue$2(\"listState\");\n const sizeRanges = usePublisher$2(\"sizeRanges\");\n const useWindowScroll = useEmitterValue$2(\"useWindowScroll\");\n const customScrollParent = useEmitterValue$2(\"customScrollParent\");\n const windowScrollContainerStateCallback = usePublisher$2(\"windowScrollContainerState\");\n const _scrollContainerStateCallback = usePublisher$2(\"scrollContainerState\");\n const scrollContainerStateCallback = customScrollParent || useWindowScroll ? windowScrollContainerStateCallback : _scrollContainerStateCallback;\n const itemContent = useEmitterValue$2(\"itemContent\");\n const context = useEmitterValue$2(\"context\");\n const groupContent = useEmitterValue$2(\"groupContent\");\n const trackItemSizes = useEmitterValue$2(\"trackItemSizes\");\n const itemSize = useEmitterValue$2(\"itemSize\");\n const log = useEmitterValue$2(\"log\");\n const listGap = usePublisher$2(\"gap\");\n const { callbackRef } = useChangedListContentsSizes(\n sizeRanges,\n itemSize,\n trackItemSizes,\n showTopList ? noop : scrollContainerStateCallback,\n log,\n listGap,\n customScrollParent\n );\n const [deviation, setDeviation] = React.useState(0);\n useEmitter$2(\"deviation\", (value) => {\n if (deviation !== value) {\n setDeviation(value);\n }\n });\n const EmptyPlaceholder = useEmitterValue$2(\"EmptyPlaceholder\");\n const ScrollSeekPlaceholder = useEmitterValue$2(\"ScrollSeekPlaceholder\") || DefaultScrollSeekPlaceholder$1;\n const ListComponent = useEmitterValue$2(\"ListComponent\");\n const ItemComponent = useEmitterValue$2(\"ItemComponent\");\n const GroupComponent = useEmitterValue$2(\"GroupComponent\");\n const computeItemKey = useEmitterValue$2(\"computeItemKey\");\n const isSeeking = useEmitterValue$2(\"isSeeking\");\n const hasGroups2 = useEmitterValue$2(\"groupIndices\").length > 0;\n const alignToBottom = useEmitterValue$2(\"alignToBottom\");\n const initialItemFinalLocationReached = useEmitterValue$2(\"initialItemFinalLocationReached\");\n const containerStyle = showTopList ? {} : {\n boxSizing: \"border-box\",\n paddingTop: listState.offsetTop,\n paddingBottom: listState.offsetBottom,\n marginTop: deviation !== 0 ? deviation : alignToBottom ? \"auto\" : 0,\n ...initialItemFinalLocationReached ? {} : { visibility: \"hidden\" }\n };\n if (!showTopList && listState.totalCount === 0 && EmptyPlaceholder) {\n return React.createElement(EmptyPlaceholder, contextPropIfNotDomElement(EmptyPlaceholder, context));\n }\n return React.createElement(\n ListComponent,\n {\n ...contextPropIfNotDomElement(ListComponent, context),\n ref: callbackRef,\n style: containerStyle,\n \"data-testid\": showTopList ? \"virtuoso-top-item-list\" : \"virtuoso-item-list\"\n },\n (showTopList ? listState.topItems : listState.items).map((item) => {\n const index = item.originalIndex;\n const key = computeItemKey(index + listState.firstItemIndex, item.data, context);\n if (isSeeking) {\n return React.createElement(ScrollSeekPlaceholder, {\n ...contextPropIfNotDomElement(ScrollSeekPlaceholder, context),\n key,\n index: item.index,\n height: item.size,\n type: item.type || \"item\",\n ...item.type === \"group\" ? {} : { groupIndex: item.groupIndex }\n });\n }\n if (item.type === \"group\") {\n return React.createElement(\n GroupComponent,\n {\n ...contextPropIfNotDomElement(GroupComponent, context),\n key,\n \"data-index\": index,\n \"data-known-size\": item.size,\n \"data-item-index\": item.index,\n style: GROUP_STYLE\n },\n groupContent(item.index, context)\n );\n } else {\n return React.createElement(\n ItemComponent,\n {\n ...contextPropIfNotDomElement(ItemComponent, context),\n ...itemPropIfNotDomElement(ItemComponent, item.data),\n key,\n \"data-index\": index,\n \"data-known-size\": item.size,\n \"data-item-index\": item.index,\n \"data-item-group-index\": item.groupIndex,\n style: ITEM_STYLE$1\n },\n hasGroups2 ? itemContent(item.index, item.groupIndex, item.data, context) : itemContent(item.index, item.data, context)\n );\n }\n })\n );\n});\nconst scrollerStyle = {\n height: \"100%\",\n outline: \"none\",\n overflowY: \"auto\",\n position: \"relative\",\n WebkitOverflowScrolling: \"touch\"\n};\nconst viewportStyle = (alignToBottom) => ({\n width: \"100%\",\n height: \"100%\",\n position: \"absolute\",\n top: 0,\n ...alignToBottom ? { display: \"flex\", flexDirection: \"column\" } : {}\n});\nconst topItemListStyle = {\n width: \"100%\",\n position: positionStickyCssValue(),\n top: 0,\n zIndex: 1\n};\nfunction contextPropIfNotDomElement(element, context) {\n if (typeof element === \"string\") {\n return void 0;\n }\n return { context };\n}\nfunction itemPropIfNotDomElement(element, item) {\n return { item: typeof element === \"string\" ? void 0 : item };\n}\nconst Header$1 = /* @__PURE__ */ React.memo(function VirtuosoHeader() {\n const Header2 = useEmitterValue$2(\"HeaderComponent\");\n const headerHeight = usePublisher$2(\"headerHeight\");\n const headerFooterTag = useEmitterValue$2(\"headerFooterTag\");\n const ref = useSize((el) => headerHeight(correctItemSize(el, \"height\")));\n const context = useEmitterValue$2(\"context\");\n return Header2 ? React.createElement(headerFooterTag, { ref }, React.createElement(Header2, contextPropIfNotDomElement(Header2, context))) : null;\n});\nconst Footer$1 = /* @__PURE__ */ React.memo(function VirtuosoFooter() {\n const Footer2 = useEmitterValue$2(\"FooterComponent\");\n const footerHeight = usePublisher$2(\"footerHeight\");\n const headerFooterTag = useEmitterValue$2(\"headerFooterTag\");\n const ref = useSize((el) => footerHeight(correctItemSize(el, \"height\")));\n const context = useEmitterValue$2(\"context\");\n return Footer2 ? React.createElement(headerFooterTag, { ref }, React.createElement(Footer2, contextPropIfNotDomElement(Footer2, context))) : null;\n});\nfunction buildScroller({ usePublisher: usePublisher2, useEmitter: useEmitter2, useEmitterValue: useEmitterValue2 }) {\n const Scroller2 = React.memo(function VirtuosoScroller({ style, children, ...props }) {\n const scrollContainerStateCallback = usePublisher2(\"scrollContainerState\");\n const ScrollerComponent = useEmitterValue2(\"ScrollerComponent\");\n const smoothScrollTargetReached = usePublisher2(\"smoothScrollTargetReached\");\n const scrollerRefCallback = useEmitterValue2(\"scrollerRef\");\n const context = useEmitterValue2(\"context\");\n const { scrollerRef, scrollByCallback, scrollToCallback } = useScrollTop(\n scrollContainerStateCallback,\n smoothScrollTargetReached,\n ScrollerComponent,\n scrollerRefCallback\n );\n useEmitter2(\"scrollTo\", scrollToCallback);\n useEmitter2(\"scrollBy\", scrollByCallback);\n return React.createElement(\n ScrollerComponent,\n {\n ref: scrollerRef,\n style: { ...scrollerStyle, ...style },\n \"data-testid\": \"virtuoso-scroller\",\n \"data-virtuoso-scroller\": true,\n tabIndex: 0,\n ...props,\n ...contextPropIfNotDomElement(ScrollerComponent, context)\n },\n children\n );\n });\n return Scroller2;\n}\nfunction buildWindowScroller({ usePublisher: usePublisher2, useEmitter: useEmitter2, useEmitterValue: useEmitterValue2 }) {\n const Scroller2 = React.memo(function VirtuosoWindowScroller({ style, children, ...props }) {\n const scrollContainerStateCallback = usePublisher2(\"windowScrollContainerState\");\n const ScrollerComponent = useEmitterValue2(\"ScrollerComponent\");\n const smoothScrollTargetReached = usePublisher2(\"smoothScrollTargetReached\");\n const totalListHeight = useEmitterValue2(\"totalListHeight\");\n const deviation = useEmitterValue2(\"deviation\");\n const customScrollParent = useEmitterValue2(\"customScrollParent\");\n const context = useEmitterValue2(\"context\");\n const { scrollerRef, scrollByCallback, scrollToCallback } = useScrollTop(\n scrollContainerStateCallback,\n smoothScrollTargetReached,\n ScrollerComponent,\n noop,\n customScrollParent\n );\n useIsomorphicLayoutEffect$1(() => {\n scrollerRef.current = customScrollParent ? customScrollParent : window;\n return () => {\n scrollerRef.current = null;\n };\n }, [scrollerRef, customScrollParent]);\n useEmitter2(\"windowScrollTo\", scrollToCallback);\n useEmitter2(\"scrollBy\", scrollByCallback);\n return React.createElement(\n ScrollerComponent,\n {\n style: { position: \"relative\", ...style, ...totalListHeight !== 0 ? { height: totalListHeight + deviation } : {} },\n \"data-virtuoso-scroller\": true,\n ...props,\n ...contextPropIfNotDomElement(ScrollerComponent, context)\n },\n children\n );\n });\n return Scroller2;\n}\nconst Viewport$2 = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const viewportHeight = usePublisher$2(\"viewportHeight\");\n const fixedItemHeight = usePublisher$2(\"fixedItemHeight\");\n const alignToBottom = useEmitterValue$2(\"alignToBottom\");\n const viewportRef = useSize(compose(viewportHeight, (el) => correctItemSize(el, \"height\")));\n React.useEffect(() => {\n if (ctx) {\n viewportHeight(ctx.viewportHeight);\n fixedItemHeight(ctx.itemHeight);\n }\n }, [ctx, viewportHeight, fixedItemHeight]);\n return /* @__PURE__ */ React.createElement(\"div\", { style: viewportStyle(alignToBottom), ref: viewportRef, \"data-viewport-type\": \"element\" }, children);\n};\nconst WindowViewport$2 = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const windowViewportRect = usePublisher$2(\"windowViewportRect\");\n const fixedItemHeight = usePublisher$2(\"fixedItemHeight\");\n const customScrollParent = useEmitterValue$2(\"customScrollParent\");\n const viewportRef = useWindowViewportRectRef(windowViewportRect, customScrollParent);\n const alignToBottom = useEmitterValue$2(\"alignToBottom\");\n React.useEffect(() => {\n if (ctx) {\n fixedItemHeight(ctx.itemHeight);\n windowViewportRect({ offsetTop: 0, visibleHeight: ctx.viewportHeight, visibleWidth: 100 });\n }\n }, [ctx, windowViewportRect, fixedItemHeight]);\n return /* @__PURE__ */ React.createElement(\"div\", { ref: viewportRef, style: viewportStyle(alignToBottom), \"data-viewport-type\": \"window\" }, children);\n};\nconst TopItemListContainer = ({ children }) => {\n const TopItemList = useEmitterValue$2(\"TopItemListComponent\") || \"div\";\n const headerHeight = useEmitterValue$2(\"headerHeight\");\n const style = { ...topItemListStyle, marginTop: `${headerHeight}px` };\n const context = useEmitterValue$2(\"context\");\n return React.createElement(TopItemList, { style, ...contextPropIfNotDomElement(TopItemList, context) }, children);\n};\nconst ListRoot = /* @__PURE__ */ React.memo(function VirtuosoRoot(props) {\n const useWindowScroll = useEmitterValue$2(\"useWindowScroll\");\n const showTopList = useEmitterValue$2(\"topItemsIndexes\").length > 0;\n const customScrollParent = useEmitterValue$2(\"customScrollParent\");\n const TheScroller = customScrollParent || useWindowScroll ? WindowScroller$2 : Scroller$2;\n const TheViewport = customScrollParent || useWindowScroll ? WindowViewport$2 : Viewport$2;\n return /* @__PURE__ */ React.createElement(TheScroller, { ...props }, showTopList && /* @__PURE__ */ React.createElement(TopItemListContainer, null, /* @__PURE__ */ React.createElement(Items$1, { showTopList: true })), /* @__PURE__ */ React.createElement(TheViewport, null, /* @__PURE__ */ React.createElement(Header$1, null), /* @__PURE__ */ React.createElement(Items$1, null), /* @__PURE__ */ React.createElement(Footer$1, null)));\n});\nconst {\n Component: List,\n usePublisher: usePublisher$2,\n useEmitterValue: useEmitterValue$2,\n useEmitter: useEmitter$2\n} = /* @__PURE__ */ systemToComponent(\n combinedSystem$2,\n {\n required: {},\n optional: {\n restoreStateFrom: \"restoreStateFrom\",\n context: \"context\",\n followOutput: \"followOutput\",\n itemContent: \"itemContent\",\n groupContent: \"groupContent\",\n overscan: \"overscan\",\n increaseViewportBy: \"increaseViewportBy\",\n totalCount: \"totalCount\",\n groupCounts: \"groupCounts\",\n topItemCount: \"topItemCount\",\n firstItemIndex: \"firstItemIndex\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\",\n components: \"components\",\n atBottomThreshold: \"atBottomThreshold\",\n atTopThreshold: \"atTopThreshold\",\n computeItemKey: \"computeItemKey\",\n defaultItemHeight: \"defaultItemHeight\",\n fixedItemHeight: \"fixedItemHeight\",\n itemSize: \"itemSize\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n headerFooterTag: \"headerFooterTag\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n initialScrollTop: \"initialScrollTop\",\n alignToBottom: \"alignToBottom\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\"\n },\n methods: {\n scrollToIndex: \"scrollToIndex\",\n scrollIntoView: \"scrollIntoView\",\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n autoscrollToBottom: \"autoscrollToBottom\",\n getState: \"getState\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n totalListHeightChanged: \"totalListHeightChanged\",\n itemsRendered: \"itemsRendered\",\n groupIndices: \"groupIndices\"\n }\n },\n ListRoot\n);\nconst Scroller$2 = /* @__PURE__ */ buildScroller({ usePublisher: usePublisher$2, useEmitterValue: useEmitterValue$2, useEmitter: useEmitter$2 });\nconst WindowScroller$2 = /* @__PURE__ */ buildWindowScroller({ usePublisher: usePublisher$2, useEmitterValue: useEmitterValue$2, useEmitter: useEmitter$2 });\nconst Virtuoso = List;\nconst GroupedVirtuoso = List;\nconst INITIAL_GRID_STATE = {\n items: [],\n offsetBottom: 0,\n offsetTop: 0,\n top: 0,\n bottom: 0,\n itemHeight: 0,\n itemWidth: 0\n};\nconst PROBE_GRID_STATE = {\n items: [{ index: 0 }],\n offsetBottom: 0,\n offsetTop: 0,\n top: 0,\n bottom: 0,\n itemHeight: 0,\n itemWidth: 0\n};\nconst { round, ceil, floor, min, max } = Math;\nfunction buildProbeGridState(items) {\n return {\n ...PROBE_GRID_STATE,\n items\n };\n}\nfunction buildItems(startIndex, endIndex, data) {\n return Array.from({ length: endIndex - startIndex + 1 }).map((_, i) => {\n const dataItem = data === null ? null : data[i + startIndex];\n return { index: i + startIndex, data: dataItem };\n });\n}\nfunction gapComparator(prev, next) {\n return prev && prev.column === next.column && prev.row === next.row;\n}\nfunction dimensionComparator(prev, next) {\n return prev && prev.width === next.width && prev.height === next.height;\n}\nconst gridSystem = /* @__PURE__ */ system(\n ([\n { overscan, visibleRange, listBoundary },\n { scrollTop, viewportHeight, scrollBy, scrollTo, smoothScrollTargetReached, scrollContainerState, footerHeight, headerHeight },\n stateFlags,\n scrollSeek,\n { propsReady, didMount },\n { windowViewportRect, useWindowScroll, customScrollParent, windowScrollContainerState, windowScrollTo },\n log\n ]) => {\n const totalCount = statefulStream(0);\n const initialItemCount = statefulStream(0);\n const gridState = statefulStream(INITIAL_GRID_STATE);\n const viewportDimensions = statefulStream({ height: 0, width: 0 });\n const itemDimensions = statefulStream({ height: 0, width: 0 });\n const scrollToIndex = stream();\n const scrollHeight = stream();\n const deviation = statefulStream(0);\n const data = statefulStream(null);\n const gap = statefulStream({ row: 0, column: 0 });\n const stateChanged = stream();\n const restoreStateFrom = stream();\n const stateRestoreInProgress = statefulStream(false);\n const initialTopMostItemIndex = statefulStream(0);\n const scrolledToInitialItem = statefulStream(true);\n const scrollScheduled = statefulStream(false);\n subscribe(\n pipe(\n didMount,\n withLatestFrom(initialTopMostItemIndex),\n filter(([_, location]) => !!location)\n ),\n () => {\n publish(scrolledToInitialItem, false);\n publish(initialItemCount, 0);\n }\n );\n subscribe(\n pipe(\n combineLatest(didMount, scrolledToInitialItem, itemDimensions, viewportDimensions, initialTopMostItemIndex, scrollScheduled),\n filter(([didMount2, scrolledToInitialItem2, itemDimensions2, viewportDimensions2, , scrollScheduled2]) => {\n return didMount2 && !scrolledToInitialItem2 && itemDimensions2.height !== 0 && viewportDimensions2.height !== 0 && !scrollScheduled2;\n })\n ),\n ([, , , , initialTopMostItemIndex2]) => {\n publish(scrollScheduled, true);\n skipFrames(1, () => {\n publish(scrollToIndex, initialTopMostItemIndex2);\n });\n handleNext(pipe(scrollTop), () => {\n publish(listBoundary, [0, 0]);\n publish(scrolledToInitialItem, true);\n });\n }\n );\n connect(\n pipe(\n restoreStateFrom,\n filter((value) => value !== void 0 && value !== null && value.scrollTop > 0),\n mapTo(0)\n ),\n initialItemCount\n );\n subscribe(\n pipe(\n didMount,\n withLatestFrom(restoreStateFrom),\n filter(([, snapshot]) => snapshot !== void 0 && snapshot !== null)\n ),\n ([, snapshot]) => {\n if (!snapshot) {\n return;\n }\n publish(viewportDimensions, snapshot.viewport), publish(itemDimensions, snapshot == null ? void 0 : snapshot.item);\n publish(gap, snapshot.gap);\n if (snapshot.scrollTop > 0) {\n publish(stateRestoreInProgress, true);\n handleNext(pipe(scrollTop, skip(1)), (_value) => {\n publish(stateRestoreInProgress, false);\n });\n publish(scrollTo, { top: snapshot.scrollTop });\n }\n }\n );\n connect(\n pipe(\n viewportDimensions,\n map(({ height }) => height)\n ),\n viewportHeight\n );\n connect(\n pipe(\n combineLatest(\n duc(viewportDimensions, dimensionComparator),\n duc(itemDimensions, dimensionComparator),\n duc(gap, (prev, next) => prev && prev.column === next.column && prev.row === next.row),\n duc(scrollTop)\n ),\n map(([viewport, item, gap2, scrollTop2]) => ({\n viewport,\n item,\n gap: gap2,\n scrollTop: scrollTop2\n }))\n ),\n stateChanged\n );\n connect(\n pipe(\n combineLatest(\n duc(totalCount),\n visibleRange,\n duc(gap, gapComparator),\n duc(itemDimensions, dimensionComparator),\n duc(viewportDimensions, dimensionComparator),\n duc(data),\n duc(initialItemCount),\n duc(stateRestoreInProgress),\n duc(scrolledToInitialItem),\n duc(initialTopMostItemIndex)\n ),\n filter(([, , , , , , , stateRestoreInProgress2]) => {\n return !stateRestoreInProgress2;\n }),\n map(\n ([\n totalCount2,\n [startOffset, endOffset],\n gap2,\n item,\n viewport,\n data2,\n initialItemCount2,\n ,\n scrolledToInitialItem2,\n initialTopMostItemIndex2\n ]) => {\n const { row: rowGap, column: columnGap } = gap2;\n const { height: itemHeight, width: itemWidth } = item;\n const { width: viewportWidth } = viewport;\n if (initialItemCount2 === 0 && (totalCount2 === 0 || viewportWidth === 0)) {\n return INITIAL_GRID_STATE;\n }\n if (itemWidth === 0) {\n const startIndex2 = getInitialTopMostItemIndexNumber(initialTopMostItemIndex2, totalCount2);\n const endIndex2 = startIndex2 === 0 ? Math.max(initialItemCount2 - 1, 0) : startIndex2;\n return buildProbeGridState(buildItems(startIndex2, endIndex2, data2));\n }\n const perRow = itemsPerRow(viewportWidth, itemWidth, columnGap);\n let startIndex;\n let endIndex;\n if (!scrolledToInitialItem2) {\n startIndex = 0;\n endIndex = -1;\n } else if (startOffset === 0 && endOffset === 0 && initialItemCount2 > 0) {\n startIndex = 0;\n endIndex = initialItemCount2 - 1;\n } else {\n startIndex = perRow * floor((startOffset + rowGap) / (itemHeight + rowGap));\n endIndex = perRow * ceil((endOffset + rowGap) / (itemHeight + rowGap)) - 1;\n endIndex = min(totalCount2 - 1, max(endIndex, perRow - 1));\n startIndex = min(endIndex, max(0, startIndex));\n }\n const items = buildItems(startIndex, endIndex, data2);\n const { top, bottom } = gridLayout(viewport, gap2, item, items);\n const rowCount = ceil(totalCount2 / perRow);\n const totalHeight = rowCount * itemHeight + (rowCount - 1) * rowGap;\n const offsetBottom = totalHeight - bottom;\n return { items, offsetTop: top, offsetBottom, top, bottom, itemHeight, itemWidth };\n }\n )\n ),\n gridState\n );\n connect(\n pipe(\n data,\n filter((data2) => data2 !== null),\n map((data2) => data2.length)\n ),\n totalCount\n );\n connect(\n pipe(\n combineLatest(viewportDimensions, itemDimensions, gridState, gap),\n filter(([viewportDimensions2, itemDimensions2, { items }]) => {\n return items.length > 0 && itemDimensions2.height !== 0 && viewportDimensions2.height !== 0;\n }),\n map(([viewportDimensions2, itemDimensions2, { items }, gap2]) => {\n const { top, bottom } = gridLayout(viewportDimensions2, gap2, itemDimensions2, items);\n return [top, bottom];\n }),\n distinctUntilChanged(tupleComparator)\n ),\n listBoundary\n );\n const hasScrolled = statefulStream(false);\n connect(\n pipe(\n scrollTop,\n withLatestFrom(hasScrolled),\n map(([scrollTop2, hasScrolled2]) => {\n return hasScrolled2 || scrollTop2 !== 0;\n })\n ),\n hasScrolled\n );\n const endReached = streamFromEmitter(\n pipe(\n duc(gridState),\n filter(({ items }) => items.length > 0),\n withLatestFrom(totalCount, hasScrolled),\n filter(([{ items }, totalCount2, hasScrolled2]) => hasScrolled2 && items[items.length - 1].index === totalCount2 - 1),\n map(([, totalCount2]) => totalCount2 - 1),\n distinctUntilChanged()\n )\n );\n const startReached = streamFromEmitter(\n pipe(\n duc(gridState),\n filter(({ items }) => {\n return items.length > 0 && items[0].index === 0;\n }),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n mapTo(0),\n distinctUntilChanged()\n )\n );\n const rangeChanged = streamFromEmitter(\n pipe(\n duc(gridState),\n withLatestFrom(stateRestoreInProgress),\n filter(([{ items }, stateRestoreInProgress2]) => items.length > 0 && !stateRestoreInProgress2),\n map(([{ items }]) => {\n return {\n startIndex: items[0].index,\n endIndex: items[items.length - 1].index\n };\n }),\n distinctUntilChanged(rangeComparator),\n throttleTime(0)\n )\n );\n connect(rangeChanged, scrollSeek.scrollSeekRangeChanged);\n connect(\n pipe(\n scrollToIndex,\n withLatestFrom(viewportDimensions, itemDimensions, totalCount, gap),\n map(([location, viewportDimensions2, itemDimensions2, totalCount2, gap2]) => {\n const normalLocation = normalizeIndexLocation(location);\n const { align, behavior, offset } = normalLocation;\n let index = normalLocation.index;\n if (index === \"LAST\") {\n index = totalCount2 - 1;\n }\n index = max(0, index, min(totalCount2 - 1, index));\n let top = itemTop(viewportDimensions2, gap2, itemDimensions2, index);\n if (align === \"end\") {\n top = round(top - viewportDimensions2.height + itemDimensions2.height);\n } else if (align === \"center\") {\n top = round(top - viewportDimensions2.height / 2 + itemDimensions2.height / 2);\n }\n if (offset) {\n top += offset;\n }\n return { top, behavior };\n })\n ),\n scrollTo\n );\n const totalListHeight = statefulStreamFromEmitter(\n pipe(\n gridState,\n map((gridState2) => {\n return gridState2.offsetBottom + gridState2.bottom;\n })\n ),\n 0\n );\n connect(\n pipe(\n windowViewportRect,\n map((viewportInfo) => ({ width: viewportInfo.visibleWidth, height: viewportInfo.visibleHeight }))\n ),\n viewportDimensions\n );\n return {\n // input\n data,\n totalCount,\n viewportDimensions,\n itemDimensions,\n scrollTop,\n scrollHeight,\n overscan,\n scrollBy,\n scrollTo,\n scrollToIndex,\n smoothScrollTargetReached,\n windowViewportRect,\n windowScrollTo,\n useWindowScroll,\n customScrollParent,\n windowScrollContainerState,\n deviation,\n scrollContainerState,\n footerHeight,\n headerHeight,\n initialItemCount,\n gap,\n restoreStateFrom,\n ...scrollSeek,\n initialTopMostItemIndex,\n // output\n gridState,\n totalListHeight,\n ...stateFlags,\n startReached,\n endReached,\n rangeChanged,\n stateChanged,\n propsReady,\n stateRestoreInProgress,\n ...log\n };\n },\n tup(sizeRangeSystem, domIOSystem, stateFlagsSystem, scrollSeekSystem, propsReadySystem, windowScrollerSystem, loggerSystem)\n);\nfunction gridLayout(viewport, gap, item, items) {\n const { height: itemHeight } = item;\n if (itemHeight === void 0 || items.length === 0) {\n return { top: 0, bottom: 0 };\n }\n const top = itemTop(viewport, gap, item, items[0].index);\n const bottom = itemTop(viewport, gap, item, items[items.length - 1].index) + itemHeight;\n return { top, bottom };\n}\nfunction itemTop(viewport, gap, item, index) {\n const perRow = itemsPerRow(viewport.width, item.width, gap.column);\n const rowCount = floor(index / perRow);\n const top = rowCount * item.height + max(0, rowCount - 1) * gap.row;\n return top > 0 ? top + gap.row : top;\n}\nfunction itemsPerRow(viewportWidth, itemWidth, gap) {\n return max(1, floor((viewportWidth + gap) / (floor(itemWidth) + gap)));\n}\nconst gridComponentPropsSystem = /* @__PURE__ */ system(() => {\n const itemContent = statefulStream((index) => `Item ${index}`);\n const components = statefulStream({});\n const context = statefulStream(null);\n const itemClassName = statefulStream(\"virtuoso-grid-item\");\n const listClassName = statefulStream(\"virtuoso-grid-list\");\n const computeItemKey = statefulStream(identity);\n const headerFooterTag = statefulStream(\"div\");\n const scrollerRef = statefulStream(noop);\n const distinctProp = (propName, defaultValue = null) => {\n return statefulStreamFromEmitter(\n pipe(\n components,\n map((components2) => components2[propName]),\n distinctUntilChanged()\n ),\n defaultValue\n );\n };\n return {\n context,\n itemContent,\n components,\n computeItemKey,\n itemClassName,\n listClassName,\n headerFooterTag,\n scrollerRef,\n FooterComponent: distinctProp(\"Footer\"),\n HeaderComponent: distinctProp(\"Header\"),\n ListComponent: distinctProp(\"List\", \"div\"),\n ItemComponent: distinctProp(\"Item\", \"div\"),\n ScrollerComponent: distinctProp(\"Scroller\", \"div\"),\n ScrollSeekPlaceholder: distinctProp(\"ScrollSeekPlaceholder\", \"div\")\n };\n});\nconst combinedSystem$1 = /* @__PURE__ */ system(([gridSystem2, gridComponentPropsSystem2]) => {\n return { ...gridSystem2, ...gridComponentPropsSystem2 };\n}, tup(gridSystem, gridComponentPropsSystem));\nconst GridItems = /* @__PURE__ */ React.memo(function GridItems2() {\n const gridState = useEmitterValue$1(\"gridState\");\n const listClassName = useEmitterValue$1(\"listClassName\");\n const itemClassName = useEmitterValue$1(\"itemClassName\");\n const itemContent = useEmitterValue$1(\"itemContent\");\n const computeItemKey = useEmitterValue$1(\"computeItemKey\");\n const isSeeking = useEmitterValue$1(\"isSeeking\");\n const scrollHeightCallback = usePublisher$1(\"scrollHeight\");\n const ItemComponent = useEmitterValue$1(\"ItemComponent\");\n const ListComponent = useEmitterValue$1(\"ListComponent\");\n const ScrollSeekPlaceholder = useEmitterValue$1(\"ScrollSeekPlaceholder\");\n const context = useEmitterValue$1(\"context\");\n const itemDimensions = usePublisher$1(\"itemDimensions\");\n const gridGap = usePublisher$1(\"gap\");\n const log = useEmitterValue$1(\"log\");\n const stateRestoreInProgress = useEmitterValue$1(\"stateRestoreInProgress\");\n const listRef = useSize((el) => {\n const scrollHeight = el.parentElement.parentElement.scrollHeight;\n scrollHeightCallback(scrollHeight);\n const firstItem = el.firstChild;\n if (firstItem) {\n const { width, height } = firstItem.getBoundingClientRect();\n itemDimensions({ width, height });\n }\n gridGap({\n row: resolveGapValue(\"row-gap\", getComputedStyle(el).rowGap, log),\n column: resolveGapValue(\"column-gap\", getComputedStyle(el).columnGap, log)\n });\n });\n if (stateRestoreInProgress) {\n return null;\n }\n return React.createElement(\n ListComponent,\n {\n ref: listRef,\n className: listClassName,\n ...contextPropIfNotDomElement(ListComponent, context),\n style: { paddingTop: gridState.offsetTop, paddingBottom: gridState.offsetBottom },\n \"data-testid\": \"virtuoso-item-list\"\n },\n gridState.items.map((item) => {\n const key = computeItemKey(item.index, item.data, context);\n return isSeeking ? React.createElement(ScrollSeekPlaceholder, {\n key,\n ...contextPropIfNotDomElement(ScrollSeekPlaceholder, context),\n index: item.index,\n height: gridState.itemHeight,\n width: gridState.itemWidth\n }) : React.createElement(\n ItemComponent,\n { ...contextPropIfNotDomElement(ItemComponent, context), className: itemClassName, \"data-index\": item.index, key },\n itemContent(item.index, item.data, context)\n );\n })\n );\n});\nconst Header = React.memo(function VirtuosoHeader2() {\n const Header2 = useEmitterValue$1(\"HeaderComponent\");\n const headerHeight = usePublisher$1(\"headerHeight\");\n const headerFooterTag = useEmitterValue$1(\"headerFooterTag\");\n const ref = useSize((el) => headerHeight(correctItemSize(el, \"height\")));\n const context = useEmitterValue$1(\"context\");\n return Header2 ? React.createElement(headerFooterTag, { ref }, React.createElement(Header2, contextPropIfNotDomElement(Header2, context))) : null;\n});\nconst Footer = React.memo(function VirtuosoGridFooter() {\n const Footer2 = useEmitterValue$1(\"FooterComponent\");\n const footerHeight = usePublisher$1(\"footerHeight\");\n const headerFooterTag = useEmitterValue$1(\"headerFooterTag\");\n const ref = useSize((el) => footerHeight(correctItemSize(el, \"height\")));\n const context = useEmitterValue$1(\"context\");\n return Footer2 ? React.createElement(headerFooterTag, { ref }, React.createElement(Footer2, contextPropIfNotDomElement(Footer2, context))) : null;\n});\nconst Viewport$1 = ({ children }) => {\n const ctx = React.useContext(VirtuosoGridMockContext);\n const itemDimensions = usePublisher$1(\"itemDimensions\");\n const viewportDimensions = usePublisher$1(\"viewportDimensions\");\n const viewportRef = useSize((el) => {\n viewportDimensions(el.getBoundingClientRect());\n });\n React.useEffect(() => {\n if (ctx) {\n viewportDimensions({ height: ctx.viewportHeight, width: ctx.viewportWidth });\n itemDimensions({ height: ctx.itemHeight, width: ctx.itemWidth });\n }\n }, [ctx, viewportDimensions, itemDimensions]);\n return /* @__PURE__ */ React.createElement(\"div\", { style: viewportStyle(false), ref: viewportRef }, children);\n};\nconst WindowViewport$1 = ({ children }) => {\n const ctx = React.useContext(VirtuosoGridMockContext);\n const windowViewportRect = usePublisher$1(\"windowViewportRect\");\n const itemDimensions = usePublisher$1(\"itemDimensions\");\n const customScrollParent = useEmitterValue$1(\"customScrollParent\");\n const viewportRef = useWindowViewportRectRef(windowViewportRect, customScrollParent);\n React.useEffect(() => {\n if (ctx) {\n itemDimensions({ height: ctx.itemHeight, width: ctx.itemWidth });\n windowViewportRect({ offsetTop: 0, visibleHeight: ctx.viewportHeight, visibleWidth: ctx.viewportWidth });\n }\n }, [ctx, windowViewportRect, itemDimensions]);\n return /* @__PURE__ */ React.createElement(\"div\", { ref: viewportRef, style: viewportStyle(false) }, children);\n};\nconst GridRoot = /* @__PURE__ */ React.memo(function GridRoot2({ ...props }) {\n const useWindowScroll = useEmitterValue$1(\"useWindowScroll\");\n const customScrollParent = useEmitterValue$1(\"customScrollParent\");\n const TheScroller = customScrollParent || useWindowScroll ? WindowScroller$1 : Scroller$1;\n const TheViewport = customScrollParent || useWindowScroll ? WindowViewport$1 : Viewport$1;\n return /* @__PURE__ */ React.createElement(TheScroller, { ...props }, /* @__PURE__ */ React.createElement(TheViewport, null, /* @__PURE__ */ React.createElement(Header, null), /* @__PURE__ */ React.createElement(GridItems, null), /* @__PURE__ */ React.createElement(Footer, null)));\n});\nconst {\n Component: Grid,\n usePublisher: usePublisher$1,\n useEmitterValue: useEmitterValue$1,\n useEmitter: useEmitter$1\n} = /* @__PURE__ */ systemToComponent(\n combinedSystem$1,\n {\n optional: {\n context: \"context\",\n totalCount: \"totalCount\",\n overscan: \"overscan\",\n itemContent: \"itemContent\",\n components: \"components\",\n computeItemKey: \"computeItemKey\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n headerFooterTag: \"headerFooterTag\",\n listClassName: \"listClassName\",\n itemClassName: \"itemClassName\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\",\n restoreStateFrom: \"restoreStateFrom\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\"\n },\n methods: {\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n scrollToIndex: \"scrollToIndex\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n stateChanged: \"stateChanged\"\n }\n },\n GridRoot\n);\nconst Scroller$1 = /* @__PURE__ */ buildScroller({ usePublisher: usePublisher$1, useEmitterValue: useEmitterValue$1, useEmitter: useEmitter$1 });\nconst WindowScroller$1 = /* @__PURE__ */ buildWindowScroller({ usePublisher: usePublisher$1, useEmitterValue: useEmitterValue$1, useEmitter: useEmitter$1 });\nfunction resolveGapValue(property, value, log) {\n if (value !== \"normal\" && !(value == null ? void 0 : value.endsWith(\"px\"))) {\n log(`${property} was not resolved to pixel value correctly`, value, LogLevel.WARN);\n }\n if (value === \"normal\") {\n return 0;\n }\n return parseInt(value != null ? value : \"0\", 10);\n}\nconst VirtuosoGrid = Grid;\nconst tableComponentPropsSystem = /* @__PURE__ */ system(() => {\n const itemContent = statefulStream((index) => /* @__PURE__ */ React.createElement(\"td\", null, \"Item $\", index));\n const context = statefulStream(null);\n const fixedHeaderContent = statefulStream(null);\n const fixedFooterContent = statefulStream(null);\n const components = statefulStream({});\n const computeItemKey = statefulStream(identity);\n const scrollerRef = statefulStream(noop);\n const distinctProp = (propName, defaultValue = null) => {\n return statefulStreamFromEmitter(\n pipe(\n components,\n map((components2) => components2[propName]),\n distinctUntilChanged()\n ),\n defaultValue\n );\n };\n return {\n context,\n itemContent,\n fixedHeaderContent,\n fixedFooterContent,\n components,\n computeItemKey,\n scrollerRef,\n TableComponent: distinctProp(\"Table\", \"table\"),\n TableHeadComponent: distinctProp(\"TableHead\", \"thead\"),\n TableFooterComponent: distinctProp(\"TableFoot\", \"tfoot\"),\n TableBodyComponent: distinctProp(\"TableBody\", \"tbody\"),\n TableRowComponent: distinctProp(\"TableRow\", \"tr\"),\n ScrollerComponent: distinctProp(\"Scroller\", \"div\"),\n EmptyPlaceholder: distinctProp(\"EmptyPlaceholder\"),\n ScrollSeekPlaceholder: distinctProp(\"ScrollSeekPlaceholder\"),\n FillerRow: distinctProp(\"FillerRow\")\n };\n});\nconst combinedSystem = /* @__PURE__ */ system(([listSystem2, propsSystem]) => {\n return { ...listSystem2, ...propsSystem };\n}, tup(listSystem, tableComponentPropsSystem));\nconst DefaultScrollSeekPlaceholder = ({ height }) => /* @__PURE__ */ React.createElement(\"tr\", null, /* @__PURE__ */ React.createElement(\"td\", { style: { height } }));\nconst DefaultFillerRow = ({ height }) => /* @__PURE__ */ React.createElement(\"tr\", null, /* @__PURE__ */ React.createElement(\"td\", { style: { height, padding: 0, border: 0 } }));\nconst ITEM_STYLE = { overflowAnchor: \"none\" };\nconst Items = /* @__PURE__ */ React.memo(function VirtuosoItems2() {\n const listState = useEmitterValue(\"listState\");\n const sizeRanges = usePublisher(\"sizeRanges\");\n const useWindowScroll = useEmitterValue(\"useWindowScroll\");\n const customScrollParent = useEmitterValue(\"customScrollParent\");\n const windowScrollContainerStateCallback = usePublisher(\"windowScrollContainerState\");\n const _scrollContainerStateCallback = usePublisher(\"scrollContainerState\");\n const scrollContainerStateCallback = customScrollParent || useWindowScroll ? windowScrollContainerStateCallback : _scrollContainerStateCallback;\n const itemContent = useEmitterValue(\"itemContent\");\n const trackItemSizes = useEmitterValue(\"trackItemSizes\");\n const itemSize = useEmitterValue(\"itemSize\");\n const log = useEmitterValue(\"log\");\n const { callbackRef, ref } = useChangedListContentsSizes(\n sizeRanges,\n itemSize,\n trackItemSizes,\n scrollContainerStateCallback,\n log,\n void 0,\n customScrollParent\n );\n const [deviation, setDeviation] = React.useState(0);\n useEmitter(\"deviation\", (value) => {\n if (deviation !== value) {\n ref.current.style.marginTop = `${value}px`;\n setDeviation(value);\n }\n });\n const EmptyPlaceholder = useEmitterValue(\"EmptyPlaceholder\");\n const ScrollSeekPlaceholder = useEmitterValue(\"ScrollSeekPlaceholder\") || DefaultScrollSeekPlaceholder;\n const FillerRow = useEmitterValue(\"FillerRow\") || DefaultFillerRow;\n const TableBodyComponent = useEmitterValue(\"TableBodyComponent\");\n const TableRowComponent = useEmitterValue(\"TableRowComponent\");\n const computeItemKey = useEmitterValue(\"computeItemKey\");\n const isSeeking = useEmitterValue(\"isSeeking\");\n const paddingTopAddition = useEmitterValue(\"paddingTopAddition\");\n const firstItemIndex = useEmitterValue(\"firstItemIndex\");\n const statefulTotalCount = useEmitterValue(\"statefulTotalCount\");\n const context = useEmitterValue(\"context\");\n if (statefulTotalCount === 0 && EmptyPlaceholder) {\n return React.createElement(EmptyPlaceholder, contextPropIfNotDomElement(EmptyPlaceholder, context));\n }\n const paddingTop = listState.offsetTop + paddingTopAddition + deviation;\n const paddingBottom = listState.offsetBottom;\n const paddingTopEl = paddingTop > 0 ? /* @__PURE__ */ React.createElement(FillerRow, { height: paddingTop, key: \"padding-top\", context }) : null;\n const paddingBottomEl = paddingBottom > 0 ? /* @__PURE__ */ React.createElement(FillerRow, { height: paddingBottom, key: \"padding-bottom\", context }) : null;\n const items = listState.items.map((item) => {\n const index = item.originalIndex;\n const key = computeItemKey(index + firstItemIndex, item.data, context);\n if (isSeeking) {\n return React.createElement(ScrollSeekPlaceholder, {\n ...contextPropIfNotDomElement(ScrollSeekPlaceholder, context),\n key,\n index: item.index,\n height: item.size,\n type: item.type || \"item\"\n });\n }\n return React.createElement(\n TableRowComponent,\n {\n ...contextPropIfNotDomElement(TableRowComponent, context),\n ...itemPropIfNotDomElement(TableRowComponent, item.data),\n key,\n \"data-index\": index,\n \"data-known-size\": item.size,\n \"data-item-index\": item.index,\n style: ITEM_STYLE\n },\n itemContent(item.index, item.data, context)\n );\n });\n return React.createElement(\n TableBodyComponent,\n { ref: callbackRef, \"data-testid\": \"virtuoso-item-list\", ...contextPropIfNotDomElement(TableBodyComponent, context) },\n [paddingTopEl, ...items, paddingBottomEl]\n );\n});\nconst Viewport = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const viewportHeight = usePublisher(\"viewportHeight\");\n const fixedItemHeight = usePublisher(\"fixedItemHeight\");\n const viewportRef = useSize(compose(viewportHeight, (el) => correctItemSize(el, \"height\")));\n React.useEffect(() => {\n if (ctx) {\n viewportHeight(ctx.viewportHeight);\n fixedItemHeight(ctx.itemHeight);\n }\n }, [ctx, viewportHeight, fixedItemHeight]);\n return /* @__PURE__ */ React.createElement(\"div\", { style: viewportStyle(false), ref: viewportRef, \"data-viewport-type\": \"element\" }, children);\n};\nconst WindowViewport = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const windowViewportRect = usePublisher(\"windowViewportRect\");\n const fixedItemHeight = usePublisher(\"fixedItemHeight\");\n const customScrollParent = useEmitterValue(\"customScrollParent\");\n const viewportRef = useWindowViewportRectRef(windowViewportRect, customScrollParent);\n React.useEffect(() => {\n if (ctx) {\n fixedItemHeight(ctx.itemHeight);\n windowViewportRect({ offsetTop: 0, visibleHeight: ctx.viewportHeight, visibleWidth: 100 });\n }\n }, [ctx, windowViewportRect, fixedItemHeight]);\n return /* @__PURE__ */ React.createElement(\"div\", { ref: viewportRef, style: viewportStyle(false), \"data-viewport-type\": \"window\" }, children);\n};\nconst TableRoot = /* @__PURE__ */ React.memo(function TableVirtuosoRoot(props) {\n const useWindowScroll = useEmitterValue(\"useWindowScroll\");\n const customScrollParent = useEmitterValue(\"customScrollParent\");\n const fixedHeaderHeight = usePublisher(\"fixedHeaderHeight\");\n const fixedFooterHeight = usePublisher(\"fixedFooterHeight\");\n const fixedHeaderContent = useEmitterValue(\"fixedHeaderContent\");\n const fixedFooterContent = useEmitterValue(\"fixedFooterContent\");\n const context = useEmitterValue(\"context\");\n const theadRef = useSize(compose(fixedHeaderHeight, (el) => correctItemSize(el, \"height\")));\n const tfootRef = useSize(compose(fixedFooterHeight, (el) => correctItemSize(el, \"height\")));\n const TheScroller = customScrollParent || useWindowScroll ? WindowScroller : Scroller;\n const TheViewport = customScrollParent || useWindowScroll ? WindowViewport : Viewport;\n const TheTable = useEmitterValue(\"TableComponent\");\n const TheTHead = useEmitterValue(\"TableHeadComponent\");\n const TheTFoot = useEmitterValue(\"TableFooterComponent\");\n const theHead = fixedHeaderContent ? React.createElement(\n TheTHead,\n {\n key: \"TableHead\",\n style: { zIndex: 2, position: \"sticky\", top: 0 },\n ref: theadRef,\n ...contextPropIfNotDomElement(TheTHead, context)\n },\n fixedHeaderContent()\n ) : null;\n const theFoot = fixedFooterContent ? React.createElement(\n TheTFoot,\n {\n key: \"TableFoot\",\n style: { zIndex: 1, position: \"sticky\", bottom: 0 },\n ref: tfootRef,\n ...contextPropIfNotDomElement(TheTFoot, context)\n },\n fixedFooterContent()\n ) : null;\n return /* @__PURE__ */ React.createElement(TheScroller, { ...props }, /* @__PURE__ */ React.createElement(TheViewport, null, React.createElement(\n TheTable,\n { style: { borderSpacing: 0, overflowAnchor: \"none\" }, ...contextPropIfNotDomElement(TheTable, context) },\n [theHead, /* @__PURE__ */ React.createElement(Items, { key: \"TableBody\" }), theFoot]\n )));\n});\nconst {\n Component: Table,\n usePublisher,\n useEmitterValue,\n useEmitter\n} = /* @__PURE__ */ systemToComponent(\n combinedSystem,\n {\n required: {},\n optional: {\n restoreStateFrom: \"restoreStateFrom\",\n context: \"context\",\n followOutput: \"followOutput\",\n firstItemIndex: \"firstItemIndex\",\n itemContent: \"itemContent\",\n fixedHeaderContent: \"fixedHeaderContent\",\n fixedFooterContent: \"fixedFooterContent\",\n overscan: \"overscan\",\n increaseViewportBy: \"increaseViewportBy\",\n totalCount: \"totalCount\",\n topItemCount: \"topItemCount\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\",\n components: \"components\",\n groupCounts: \"groupCounts\",\n atBottomThreshold: \"atBottomThreshold\",\n atTopThreshold: \"atTopThreshold\",\n computeItemKey: \"computeItemKey\",\n defaultItemHeight: \"defaultItemHeight\",\n fixedItemHeight: \"fixedItemHeight\",\n itemSize: \"itemSize\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n initialScrollTop: \"initialScrollTop\",\n alignToBottom: \"alignToBottom\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\"\n },\n methods: {\n scrollToIndex: \"scrollToIndex\",\n scrollIntoView: \"scrollIntoView\",\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n getState: \"getState\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n totalListHeightChanged: \"totalListHeightChanged\",\n itemsRendered: \"itemsRendered\",\n groupIndices: \"groupIndices\"\n }\n },\n TableRoot\n);\nconst Scroller = /* @__PURE__ */ buildScroller({ usePublisher, useEmitterValue, useEmitter });\nconst WindowScroller = /* @__PURE__ */ buildWindowScroller({ usePublisher, useEmitterValue, useEmitter });\nconst TableVirtuoso = Table;\nexport {\n GroupedVirtuoso,\n LogLevel,\n TableVirtuoso,\n Virtuoso,\n VirtuosoGrid,\n VirtuosoGridMockContext,\n VirtuosoMockContext\n};\n"],"names":["_span","getInputAdornmentUtilityClass","slot","generateUtilityClass","ZP","inputAdornmentClasses","generateUtilityClasses","Z","_excluded","overridesResolver","props","styles","ownerState","root","capitalize","position","disablePointerEvents","variant","useUtilityClasses","classes","hiddenLabel","size","slots","composeClasses","InputAdornmentRoot","styled","name","theme","esm_extends","display","height","maxHeight","alignItems","whiteSpace","color","vars","palette","action","active","InputAdornment_inputAdornmentClasses","positionStart","marginTop","marginRight","marginLeft","pointerEvents","InputAdornment","react","forwardRef","inProps","ref","useThemeProps","children","className","component","disableTypography","variantProp","other","objectWithoutPropertiesLoose","muiFormControl","useFormControl","jsx_runtime","jsx","FormControlContext","Provider","value","as","clsx","jsxs","Fragment","Typography","InputAdornment_InputAdornment","MutationObserver","subscribable","l","constructor","client","options","setOptions","bindMethods","updateResult","mutate","bind","reset","_this$currentMutation","prevOptions","defaultMutationOptions","utils","VS","getMutationCache","notify","type","mutation","currentMutation","observer","onUnsubscribe","listeners","length","_this$currentMutation2","removeObserver","onMutationUpdate","notifyOptions","onSuccess","onError","getCurrentResult","currentResult","undefined","variables","mutateOptions","build","addObserver","execute","state","R","result","isLoading","status","isSuccess","isError","isIdle","notifyManager","V","batch","hasListeners","_this$mutateOptions$o","_this$mutateOptions","_this$mutateOptions$o2","_this$mutateOptions2","_this$mutateOptions$o3","_this$mutateOptions3","_this$mutateOptions$o4","_this$mutateOptions4","call","data","context","onSettled","error","forEach","listener","useMutation","arg1","arg2","arg3","lV","queryClient","QueryClientProvider","NL","useState","useEffect","useSyncExternalStore","$","useCallback","onStoreChange","subscribe","batchCalls","catch","noop","lib_utils","L","useErrorBoundary","mutateAsync","LogLevel2","compose","a","b","arg","thrush","proc","tup","args","isDefined","emitter","getValue","depot","connect","publisher","handleNext","subscription","unsub","stream","subscriptions","splice","push","indexOf","slice","statefulStream","initial","innerSubject","streamFromEmitter","stream2","statefulStreamFromEmitter","pipe","source","operators","project","combineOperators","reduceRight","subscriber","defaultComparator","previous","next","distinctUntilChanged","comparator","current","done","filter","predicate","map","mapTo","scan","scanner","skip","times","throttleTime","interval","timeout","currentValue","setTimeout","debounceTime","clearTimeout","withLatestFrom","sources","values","called","pendingCall","allCalled","Math","pow","index","bit","prevCalled","call2","concat","merge","joinProc","procs","duc","combineLatest","emitters","system","dependencies","singleton","id","Symbol","useIsomorphicLayoutEffect$2","document","react__WEBPACK_IMPORTED_MODULE_0__","useLayoutEffect","systemToComponent","systemSpec","map2","Root","requiredPropNames","Object","keys","required","optionalPropNames","optional","methodNames","methods","eventNames","events","Context","createContext","applyPropsToSystem","system2","requiredPropName","optionalPropName","Component","propsWithChildren","system22","init","singletons","Map","_init","id2","has","get","e","set","handlers","reduce","eventName","eventHandler","currentSubscription","cleanup","useImperativeHandle","acc","methodName","createElement","omit","obj","idx","len","prop","hasOwnProperty","usePublisher2","useContext","key","useEmitterValue18","cb","c","useEmitterValueLegacy","setValue","useEmitterValue2","version","startsWith","useEmitter2","callback","usePublisher","useEmitterValue","useEmitter","useIsomorphicLayoutEffect","LogLevel","CONSOLE_METHOD_MAP","getGlobalThis","globalThis","window","loggerSystem","logLevel","log","label","message","level","_a","currentLevel","console","useSizeWithElRef","enabled","useRef","callbackRef","ResizeObserver","useMemo","requestAnimationFrame","element","entries","target","offsetParent","elRef","observe","unobserve","useSize","useChangedListContentsSizes","itemSize","scrollContainerStateCallback","gap","customScrollParent","memoedCallback","ranges","getChangedChildSizes","field","results","i","child","item","dataset","parseInt","knownSize","parseFloat","ERROR","lastResult","endIndex","startIndex","el","scrollableElement","parentElement","windowScrolling","lastElementChild","scrollTop","pageYOffset","documentElement","scrollHeight","viewportHeight","offsetHeight","innerHeight","max","getComputedStyle","rowGap","endsWith","WARN","correctItemSize","dimension","round","getBoundingClientRect","approximatelyEqual","num1","num2","abs","useScrollTop","smoothScrollTargetReached","scrollerElement","scrollerRefCallback","scrollerRef","scrollTopTarget","timeoutRef","handler","ev","windowScroll","suppressFlushSync","react_dom__WEBPACK_IMPORTED_MODULE_1__","flushSync","localRef","addEventListener","passive","removeEventListener","scrollByCallback","location","scrollBy","scrollToCallback","scrollerElement2","isSmooth","behavior","maxScrollTop","top","ceil","min","scrollTo","domIOSystem","scrollContainerState","deviation","statefulScrollTop","headerHeight","fixedHeaderHeight","fixedFooterHeight","footerHeight","scrollingInProgress","scrollTop2","scrollHeight2","NIL_NODE","lvl","newAANode","k","v","r","empty","node","find","findMaxKeyValue","Infinity","Number","insert","clone","split","skew","walk","isSingle","adjust","rl","rlvl","rangesWithin","adjustedStart","arrayToRanges","walkWithin","start","end","items","parser","nextIndex","nextValue","findIndexOfClosestSmallerOrEqual","floor","match","join","recalcSystem","recalcInProgress","affectedGroupCount","offset","groupIndices","recognizedOffsetItems","groupIndex","offsetIsExact","indexComparator","itemIndex","offsetComparator","itemOffset","offsetPointParser","point","createOffsetTree","prevOffsetTree","syncStart","sizeTree","offsetTree","prevIndex","prevSize","prevOffset","offsetInfo","kv","startIndex2","indexOffset","aOffset","lastIndex","lastOffset","lastSize","sizeStateReducer","DEBUG","newSizeTree","groupSize","tree","insertRanges","range","overlappingRanges","some","rangeIncludes","refRange","firstPassDone","shouldInsert","rangeStart","rangeEnd","rangeValue","remove","lastKey","lastValue","last","deleteLast","newOffsetTree","groupOffsetTree","offsetOf","itemCount","originalIndexFromLocation","sizes","numericIndex","originalIndexFromItemIndex","hasGroups","groupOffset","SIZE_MAP","offsetWidth","sizeSystem","sizeRanges","totalCount","statefulTotalCount","unshiftWith","shiftWith","firstItemIndex","fixedItemSize","defaultItemSize","prevGroupIndices","prev","curr","indexes","groupIndices2","sizes2","gap2","totalCount2","trackItemSizes","listRefresh","oldSizes","_","newSizes","changed","diff","val","prevGroupIndicesValue","log2","beforeUnshiftWith","unshiftWith2","groupedMode","initialRanges","defaultSize","firstGroupSize","prependedGroupItemsCount","theGroupIndex","groupItemCount","sizeTreeKV","firstGroupIsExpanded","shift","shiftWithOffset","shiftWith2","removedItemsCount","aGroupIsShrunk","nextItemSize","SUPPORTS_SCROLL_TO_OPTIONS","style","normalizeIndexLocation","align","scrollToIndexSystem","scrollToIndex","scrollTargetReached","topListHeight","unsubscribeNextListRefresh","cleartTimeoutRef","unsubscribeListRefresh","viewportHeight2","topListHeight2","headerHeight2","footerHeight2","fixedHeaderHeight2","fixedFooterHeight2","normalLocation","retry","listChanged","DOWN","INITIAL_BOTTOM_STATE","atBottom","notAtBottomBecause","offsetBottom","stateFlagsSystem","isAtBottom","isAtTop","atBottomStateChange","atTopStateChange","atBottomThreshold","atTopThreshold","isScrolling","isScrollingBy","atTopThreshold2","atBottomState","_headerHeight","_footerHeight","atBottomThreshold2","atBottomBecause","scrollTopDelta","lastJumpDueToItemResize","jump","scrollDirection","direction","prevScrollTop","scrollVelocity","isScrolling2","propsReadySystem","propsReady","didMount","ready","skipFrames","frameCount","getInitialTopMostItemIndexNumber","initialTopMostItemIndexSystem","scrolledToInitialItem","initialTopMostItemIndex","initialItemFinalLocationReached","didMount2","scrolledToInitialItem2","defaultItemSize2","scrollScheduled","initialTopMostItemIndex2","normalizeFollowOutput","follow","behaviorFromFollowOutput","followOutputSystem","followOutput","autoscrollToBottom","pendingScrollHandle","scrollToBottom","followOutputBehavior","trapNextSizeIncrease","followOutput2","cancel","isAtBottom2","scrollingInProgress2","shouldFollow","refreshed","groupCountsToIndicesAndCount","counts","groupCount","groupedListSystem","groupCounts","topItemsIndexes","groupIndicesAndCount","tupleComparator","rangeComparator","BOTTOM","NONE","getOverscan","overscan","main","reverse","getViewportIncrease","sizeRangeSystem","listBoundary","increaseViewportBy","visibleRange","listTop","listBottom","overscan2","deviation2","increaseViewportBy2","headerVisible","topViewportAddition","bottomViewportAddition","EMPTY_LIST_STATE","topItems","offsetTop","bottom","transposeItems","currentRange","originalIndex","transposedItems","groupRanges","currentGroupIndex","transposedItem","buildListState","lastItem","total","buildListStateFromItemCount","includedGroupsCount","adjustedCount","initialTopMostItemIndexNumber","Array","from","listStateSystem","groupedListSystem2","rangeTopListHeight","stateFlags","initialItemCount","itemsRendered","listState","mount","recalcInProgress2","data2","dataChangeInProgress","startOffset","endOffset","topItemsIndexes2","firstItemIndex2","initialItemCountValue","probeItemSet","rangeStartIndex","rangeEndIndex","minStartIndex","offsetPointRanges","rangesWithinOffsets","findClosestSmallerOrEqual","findRange","startValue","endValue","maxIndex","endReached","count","startReached","rangeChanged","initialItemCountSystem","initialTopMostItemIndexValue","scrollSeekSystem","isSeeking","scrollSeekConfiguration","config","speed","isSeeking2","exit","enter","velocity","change","scrollSeekRangeChanged","topItemCountSystem","topItemCount","totalListHeightSystem","totalListHeightChanged","totalListHeight","listState2","simpleMemoize","func","isMobileSafari","test","navigator","userAgent","upwardScrollFixSystem","deviationOffset","prevItems","prevTotalCount","prevTotalHeight","lastJumpDueToItemResize2","totalHeight","newDev","atStart","amount","scrollDirection2","scrollByWith","deviationAmount","is","recalc","defaultGroupSize","initialScrollTopSystem","initialScrollTop","alignToBottomSystem","alignToBottom","paddingTopAddition","totalListHeight2","windowScrollerSystem","windowScrollContainerState","windowViewportRect","windowScrollTo","useWindowScroll","windowScrollTop","scrollTo2","defaultCalculateViewLocation","itemTop","itemTop2","itemBottom","viewportTop","viewportBottom","locationParams","rest","scrollIntoViewSystem","scrollIntoView","viewLocation","calculateViewLocation","actualIndex","stateLoadSystem","getState","restoreStateFrom","statefulWindowScrollContainerState","statefulWindowViewportRect","useWindowScroll2","windowScrollContainerState2","windowViewportRect2","sizeArray","nextSize","locationFromSnapshot","snapshot","featureGroup1System","sizeRange","scrollSeek","initialScrollTopSystem2","windowScroller","logger","listSystem","domIO","stateLoad","flags","featureGroup1","visibleHeight","fixedItemHeight","defaultItemHeight","WEBKIT_STICKY","STICKY","positionStickyCssValue","useWindowViewportRectRef","viewportInfo","calculateInfo","rect","visibleWidth","width","customScrollParentRect","deltaTop","scrollAndResizeEventHandler","VirtuosoMockContext","VirtuosoGridMockContext","identity","listComponentPropsSystem","itemContent","groupContent","components","computeItemKey","headerFooterTag","distinctProp","propName","defaultValue","components2","FooterComponent","HeaderComponent","TopItemListComponent","ListComponent","ItemComponent","GroupComponent","ScrollerComponent","EmptyPlaceholder","ScrollSeekPlaceholder","combinedSystem$2","listSystem2","propsSystem","DefaultScrollSeekPlaceholder$1","GROUP_STYLE","zIndex","overflowAnchor","ITEM_STYLE$1","Items$1","memo","showTopList","useEmitterValue$2","usePublisher$2","windowScrollContainerStateCallback","_scrollContainerStateCallback","listGap","setDeviation","useEmitter$2","hasGroups2","containerStyle","boxSizing","paddingTop","paddingBottom","visibility","contextPropIfNotDomElement","itemPropIfNotDomElement","scrollerStyle","outline","overflowY","WebkitOverflowScrolling","viewportStyle","flexDirection","topItemListStyle","Header$1","Header2","Footer$1","Footer2","buildScroller","Scroller2","tabIndex","buildWindowScroller","useIsomorphicLayoutEffect$1","Viewport$2","ctx","viewportRef","itemHeight","WindowViewport$2","TopItemListContainer","TopItemList","ListRoot","WindowScroller$2","Scroller$2","List","INITIAL_GRID_STATE","itemWidth","PROBE_GRID_STATE","buildItems","dataItem","gapComparator","column","row","dimensionComparator","gridSystem","gridState","viewportDimensions","itemDimensions","stateChanged","stateRestoreInProgress","itemDimensions2","viewportDimensions2","scrollScheduled2","viewport","stateRestoreInProgress2","initialItemCount2","columnGap","viewportWidth","perRow","itemsPerRow","gridLayout","rowCount","hasScrolled","hasScrolled2","gridState2","gridComponentPropsSystem","itemClassName","listClassName","combinedSystem$1","gridSystem2","gridComponentPropsSystem2","GridItems","useEmitterValue$1","scrollHeightCallback","usePublisher$1","gridGap","listRef","firstItem","firstChild","resolveGapValue","Header","Footer","Viewport$1","WindowViewport$1","GridRoot","WindowScroller$1","Scroller$1","Grid","useEmitter$1","property","tableComponentPropsSystem","fixedHeaderContent","fixedFooterContent","TableComponent","TableHeadComponent","TableFooterComponent","TableBodyComponent","TableRowComponent","FillerRow","combinedSystem","DefaultScrollSeekPlaceholder","DefaultFillerRow","padding","border","ITEM_STYLE","Items","paddingTopEl","paddingBottomEl","Viewport","WindowViewport","TableRoot","theadRef","tfootRef","TheTable","TheTHead","TheTFoot","theHead","theFoot","WindowScroller","Scroller","borderSpacing","Table","TableVirtuoso"],"sourceRoot":""}