pixel-react 1.15.11 → 1.15.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/README.md +75 -75
  2. package/lib/ThirdPartyPackages/JanusGateway.js +5 -2
  3. package/lib/ThirdPartyPackages/JanusGateway.js.map +1 -1
  4. package/lib/_virtual/index10.js +2 -2
  5. package/lib/_virtual/index11.js +2 -2
  6. package/lib/_virtual/index12.js +2 -2
  7. package/lib/_virtual/index9.js +2 -2
  8. package/lib/assets/icons/spinner.svg.js +1 -1
  9. package/lib/assets/icons/spinner.svg.js.map +1 -1
  10. package/lib/components/Editor/VariableDropdown.js +2 -2
  11. package/lib/index.cjs +7209 -4574
  12. package/lib/index.cjs.map +1 -1
  13. package/lib/index.js +1 -1
  14. package/lib/node_modules/@date-fns/tz/date/index.js +19 -1
  15. package/lib/node_modules/@date-fns/tz/date/index.js.map +1 -1
  16. package/lib/node_modules/@date-fns/tz/date/mini.js +6 -34
  17. package/lib/node_modules/@date-fns/tz/date/mini.js.map +1 -1
  18. package/lib/node_modules/@date-fns/tz/tzOffset/index.js +5 -6
  19. package/lib/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
  20. package/lib/node_modules/janus-gateway/npm/dist/janus.es.js +3241 -0
  21. package/lib/node_modules/janus-gateway/npm/dist/janus.es.js.map +1 -0
  22. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  23. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  24. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  25. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  26. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  27. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  28. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  29. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  30. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  31. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  32. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +82 -115
  33. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
  34. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +58 -68
  35. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js.map +1 -1
  36. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +23 -36
  37. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js.map +1 -1
  38. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +9 -13
  39. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
  40. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +187 -226
  41. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
  42. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js +27 -21
  43. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js.map +1 -1
  44. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +117 -150
  45. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
  46. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +38 -57
  47. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
  48. package/lib/node_modules/libphonenumber-js/es6/ParseError.js +109 -70
  49. package/lib/node_modules/libphonenumber-js/es6/ParseError.js.map +1 -1
  50. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +57 -72
  51. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
  52. package/lib/node_modules/libphonenumber-js/es6/constants.js +9 -15
  53. package/lib/node_modules/libphonenumber-js/es6/constants.js.map +1 -1
  54. package/lib/node_modules/libphonenumber-js/es6/format.js +93 -67
  55. package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
  56. package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  57. package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js.map +1 -1
  58. package/lib/node_modules/libphonenumber-js/es6/getCountries.js.map +1 -1
  59. package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +1 -0
  60. package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js.map +1 -1
  61. package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -1
  62. package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js.map +1 -1
  63. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +10 -49
  64. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
  65. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +32 -20
  66. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js.map +1 -1
  67. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +4 -5
  68. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js.map +1 -1
  69. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +18 -25
  70. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
  71. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +11 -12
  72. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
  73. package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +11 -13
  74. package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map +1 -1
  75. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +11 -21
  76. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
  77. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +11 -12
  78. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js.map +1 -1
  79. package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +12 -15
  80. package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js.map +1 -1
  81. package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -1
  82. package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js.map +1 -1
  83. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +4 -4
  84. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
  85. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +35 -59
  86. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
  87. package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +2 -2
  88. package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js.map +1 -1
  89. package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +36 -38
  90. package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js.map +1 -1
  91. package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +1 -0
  92. package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js.map +1 -1
  93. package/lib/node_modules/libphonenumber-js/es6/helpers/isObject.js.map +1 -1
  94. package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +10 -14
  95. package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js.map +1 -1
  96. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
  97. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
  98. package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +27 -22
  99. package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js.map +1 -1
  100. package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +6 -6
  101. package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js.map +1 -1
  102. package/lib/node_modules/libphonenumber-js/es6/isPossible.js +7 -6
  103. package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
  104. package/lib/node_modules/libphonenumber-js/es6/isValid.js +5 -6
  105. package/lib/node_modules/libphonenumber-js/es6/isValid.js.map +1 -1
  106. package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +26 -44
  107. package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js.map +1 -1
  108. package/lib/node_modules/libphonenumber-js/es6/metadata.js +69 -120
  109. package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
  110. package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js +68 -87
  111. package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js.map +1 -1
  112. package/lib/node_modules/libphonenumber-js/es6/parse.js +40 -58
  113. package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
  114. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +36 -32
  115. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
  116. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber.js.map +1 -1
  117. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +26 -44
  118. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js.map +1 -1
  119. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +28 -46
  120. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js.map +1 -1
  121. package/lib/node_modules/libphonenumber-js/es6/tools/semver-compare.js.map +1 -1
  122. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +18 -18
  123. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  124. package/lib/node_modules/prop-types/index.js +1 -1
  125. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +64 -88
  126. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  127. package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  128. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  129. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  130. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  131. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +6 -71
  132. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  133. package/lib/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
  134. package/lib/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
  135. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +14 -18
  136. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  137. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  138. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  139. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  140. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  141. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  142. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  143. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  144. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  145. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  146. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  147. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  148. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  149. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  150. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  151. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  152. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  153. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  154. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  155. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  156. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  157. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  158. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  159. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  160. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +2 -3
  161. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  162. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  163. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  164. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  165. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  166. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  167. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  168. package/lib/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
  169. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  170. package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
  171. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  172. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  173. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  174. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  175. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  176. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  177. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -4
  178. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  179. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  180. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  181. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  182. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  183. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  184. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
  185. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
  186. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  187. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  188. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  189. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  190. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  191. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  192. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +2 -2
  193. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  194. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -9
  195. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  196. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  197. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  198. package/lib/node_modules/react-day-picker/dist/esm/labels/index.js +2 -2
  199. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  200. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +2 -3
  201. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  202. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  203. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -1
  204. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  205. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  206. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +1 -1
  207. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  208. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +1 -1
  209. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  210. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -1
  211. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  212. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -1
  213. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  214. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  215. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -1
  216. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  217. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  218. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  219. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  220. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
  221. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
  222. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -1
  223. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  224. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  225. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +0 -6
  226. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  227. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  228. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +1 -6
  229. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  230. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  231. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  232. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  233. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  234. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  235. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  236. package/lib/node_modules/react-hook-form/dist/index.esm.js +44 -67
  237. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  238. package/lib/node_modules/react-virtuoso/dist/index.js +1200 -1246
  239. package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
  240. package/lib/node_modules/ua-parser-js/src/ua-parser.js +71 -85
  241. package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
  242. package/lib/styles.css +1 -1
  243. package/lib/styles.css.map +1 -1
  244. package/lib/tsconfig.tsbuildinfo +1 -1
  245. package/package.json +106 -106
  246. package/lib/node_modules/@date-fns/tz/tzName/index.js +0 -40
  247. package/lib/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  248. package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js +0 -64
  249. package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
@@ -3,27 +3,27 @@ import React__default, { createElement } from 'react';
3
3
  import ReactDOM from 'react-dom';
4
4
 
5
5
  const we = 0, zt = 1, qt = 2, kn = 4;
6
- function un(t) {
6
+ function cn(t) {
7
7
  return () => t;
8
8
  }
9
- function fo(t) {
9
+ function uo(t) {
10
10
  t();
11
11
  }
12
12
  function ne(t, e) {
13
13
  return (n) => t(e(n));
14
14
  }
15
- function an(t, e) {
15
+ function un(t, e) {
16
16
  return () => t(e);
17
17
  }
18
- function mo(t, e) {
18
+ function ao(t, e) {
19
19
  return (n) => t(e, n);
20
20
  }
21
- function We(t) {
21
+ function Me(t) {
22
22
  return t !== void 0;
23
23
  }
24
- function po(...t) {
24
+ function fo(...t) {
25
25
  return () => {
26
- t.map(fo);
26
+ t.map(uo);
27
27
  };
28
28
  }
29
29
  function Yt() {
@@ -31,7 +31,7 @@ function Yt() {
31
31
  function ve(t, e) {
32
32
  return e(t), t;
33
33
  }
34
- function ho(t, e) {
34
+ function mo(t, e) {
35
35
  return e(t);
36
36
  }
37
37
  function X(...t) {
@@ -43,22 +43,22 @@ function K(t, e) {
43
43
  function G(t, e) {
44
44
  t(we, e);
45
45
  }
46
- function Ge(t) {
46
+ function We(t) {
47
47
  t(qt);
48
48
  }
49
- function ot(t) {
49
+ function st(t) {
50
50
  return t(kn);
51
51
  }
52
52
  function O(t, e) {
53
- return K(t, mo(e, we));
53
+ return K(t, ao(e, we));
54
54
  }
55
- function Tt(t, e) {
55
+ function bt(t, e) {
56
56
  const n = t(zt, (o) => {
57
57
  n(), e(o);
58
58
  });
59
59
  return n;
60
60
  }
61
- function dn(t) {
61
+ function an(t) {
62
62
  let e, n;
63
63
  return (o) => (r) => {
64
64
  e = r, n && clearTimeout(n), n = setTimeout(() => {
@@ -69,13 +69,13 @@ function dn(t) {
69
69
  function Fn(t, e) {
70
70
  return t === e;
71
71
  }
72
- function Y(t = Fn) {
72
+ function Z(t = Fn) {
73
73
  let e;
74
74
  return (n) => (o) => {
75
75
  t(e, o) || (e = o, n(o));
76
76
  };
77
77
  }
78
- function A(t) {
78
+ function P(t) {
79
79
  return (e) => (n) => {
80
80
  t(n) && e(n);
81
81
  };
@@ -83,34 +83,34 @@ function A(t) {
83
83
  function E(t) {
84
84
  return (e) => ne(e, t);
85
85
  }
86
- function Rt(t) {
86
+ function yt(t) {
87
87
  return (e) => () => {
88
88
  e(t);
89
89
  };
90
90
  }
91
- function S(t, ...e) {
92
- const n = go(...e);
91
+ function x(t, ...e) {
92
+ const n = po(...e);
93
93
  return (o, r) => {
94
94
  switch (o) {
95
95
  case qt:
96
- Ge(t);
96
+ We(t);
97
97
  return;
98
98
  case zt:
99
99
  return K(t, n(r));
100
100
  }
101
101
  };
102
102
  }
103
- function bt(t, e) {
103
+ function Rt(t, e) {
104
104
  return (n) => (o) => {
105
105
  n(e = t(e, o));
106
106
  };
107
107
  }
108
- function Dt(t) {
108
+ function jt(t) {
109
109
  return (e) => (n) => {
110
110
  t > 0 ? t-- : e(n);
111
111
  };
112
112
  }
113
- function kt(t) {
113
+ function Lt(t) {
114
114
  let e = null, n;
115
115
  return (o) => (r) => {
116
116
  e = r, !n && (n = setTimeout(() => {
@@ -118,7 +118,7 @@ function kt(t) {
118
118
  }, t));
119
119
  };
120
120
  }
121
- function N(...t) {
121
+ function _(...t) {
122
122
  const e = new Array(t.length);
123
123
  let n = 0, o = null;
124
124
  const r = Math.pow(2, t.length) - 1;
@@ -135,10 +135,10 @@ function N(...t) {
135
135
  n === r ? l() : o = l;
136
136
  };
137
137
  }
138
- function go(...t) {
139
- return (e) => t.reduceRight(ho, e);
138
+ function po(...t) {
139
+ return (e) => t.reduceRight(mo, e);
140
140
  }
141
- function Io(t) {
141
+ function ho(t) {
142
142
  let e, n;
143
143
  const o = () => e == null ? void 0 : e();
144
144
  return function(r, s) {
@@ -151,7 +151,7 @@ function Io(t) {
151
151
  }
152
152
  };
153
153
  }
154
- function w(t) {
154
+ function C(t) {
155
155
  let e = t;
156
156
  const n = $();
157
157
  return (o, r) => {
@@ -170,7 +170,7 @@ function w(t) {
170
170
  };
171
171
  }
172
172
  function ct(t, e) {
173
- return ve(w(e), (n) => O(t, n));
173
+ return ve(C(e), (n) => O(t, n));
174
174
  }
175
175
  function $() {
176
176
  const t = [];
@@ -199,12 +199,12 @@ function U(t, e = [], { singleton: n } = { singleton: true }) {
199
199
  return {
200
200
  constructor: t,
201
201
  dependencies: e,
202
- id: So(),
202
+ id: go(),
203
203
  singleton: n
204
204
  };
205
205
  }
206
- const So = () => Symbol();
207
- function xo(t) {
206
+ const go = () => Symbol();
207
+ function Io(t) {
208
208
  const e = /* @__PURE__ */ new Map(), n = ({ constructor: o, dependencies: r, id: s, singleton: i }) => {
209
209
  if (i && e.has(s))
210
210
  return e.get(s);
@@ -225,7 +225,7 @@ function rt(...t) {
225
225
  }), function(s, i) {
226
226
  switch (s) {
227
227
  case qt: {
228
- Ge(e);
228
+ We(e);
229
229
  return;
230
230
  }
231
231
  case zt:
@@ -233,36 +233,36 @@ function rt(...t) {
233
233
  }
234
234
  };
235
235
  }
236
- function V(t, e = Fn) {
237
- return S(t, Y(e));
236
+ function A(t, e = Fn) {
237
+ return x(t, Z(e));
238
238
  }
239
- function Le(...t) {
239
+ function dn(...t) {
240
240
  return function(e, n) {
241
241
  switch (e) {
242
242
  case qt:
243
243
  return;
244
244
  case zt:
245
- return po(...t.map((o) => K(o, n)));
245
+ return fo(...t.map((o) => K(o, n)));
246
246
  }
247
247
  };
248
248
  }
249
249
  var mt = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t))(mt || {});
250
- const To = {
250
+ const So = {
251
251
  0: "debug",
252
252
  3: "error",
253
253
  1: "log",
254
254
  2: "warn"
255
- }, Co = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
255
+ }, xo = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
256
256
  () => {
257
- const t = w(
257
+ const t = C(
258
258
  3
259
259
  /* ERROR */
260
260
  );
261
261
  return {
262
- log: w((n, o, r = 1) => {
262
+ log: C((n, o, r = 1) => {
263
263
  var i;
264
- const s = (i = Co().VIRTUOSO_LOG_LEVEL) != null ? i : ot(t);
265
- r >= s && console[To[r]](
264
+ const s = (i = xo().VIRTUOSO_LOG_LEVEL) != null ? i : st(t);
265
+ r >= s && console[So[r]](
266
266
  "%creact-virtuoso: %c%s %o",
267
267
  "color: #0253b3; font-weight: bold",
268
268
  "color: initial",
@@ -277,9 +277,9 @@ const To = {
277
277
  { singleton: true }
278
278
  );
279
279
  function Ht(t, e, n) {
280
- return _e(t, e, n).callbackRef;
280
+ return Ge(t, e, n).callbackRef;
281
281
  }
282
- function _e(t, e, n) {
282
+ function Ge(t, e, n) {
283
283
  const o = React__default.useRef(null);
284
284
  let r = (i) => {
285
285
  };
@@ -296,28 +296,28 @@ function _e(t, e, n) {
296
296
  }
297
297
  function On(t, e, n, o, r, s, i, l, c) {
298
298
  const a = React__default.useCallback(
299
- (m) => {
300
- const x = wo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
301
- let h = m.parentElement;
302
- for (; !h.dataset.virtuosoScroller; )
303
- h = h.parentElement;
304
- const I = h.lastElementChild.dataset.viewportType === "window";
305
- let C;
306
- I && (C = h.ownerDocument.defaultView);
307
- const v = i ? l ? i.scrollLeft : i.scrollTop : I ? l ? C.scrollX || C.document.documentElement.scrollLeft : C.scrollY || C.document.documentElement.scrollTop : l ? h.scrollLeft : h.scrollTop, g = i ? l ? i.scrollWidth : i.scrollHeight : I ? l ? C.document.documentElement.scrollWidth : C.document.documentElement.scrollHeight : l ? h.scrollWidth : h.scrollHeight, p = i ? l ? i.offsetWidth : i.offsetHeight : I ? l ? C.innerWidth : C.innerHeight : l ? h.offsetWidth : h.offsetHeight;
299
+ (p) => {
300
+ const S = To(p.children, e, l ? "offsetWidth" : "offsetHeight", r);
301
+ let g = p.parentElement;
302
+ for (; !g.dataset.virtuosoScroller; )
303
+ g = g.parentElement;
304
+ const h = g.lastElementChild.dataset.viewportType === "window";
305
+ let w;
306
+ h && (w = g.ownerDocument.defaultView);
307
+ const v = i ? l ? i.scrollLeft : i.scrollTop : h ? l ? w.scrollX || w.document.documentElement.scrollLeft : w.scrollY || w.document.documentElement.scrollTop : l ? g.scrollLeft : g.scrollTop, m = i ? l ? i.scrollWidth : i.scrollHeight : h ? l ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight : l ? g.scrollWidth : g.scrollHeight, d = i ? l ? i.offsetWidth : i.offsetHeight : h ? l ? w.innerWidth : w.innerHeight : l ? g.offsetWidth : g.offsetHeight;
308
308
  o({
309
- scrollHeight: g,
309
+ scrollHeight: m,
310
310
  scrollTop: Math.max(v, 0),
311
- viewportHeight: p
311
+ viewportHeight: d
312
312
  }), s == null || s(
313
- l ? fn("column-gap", getComputedStyle(m).columnGap, r) : fn("row-gap", getComputedStyle(m).rowGap, r)
314
- ), x !== null && t(x);
313
+ l ? fn("column-gap", getComputedStyle(p).columnGap, r) : fn("row-gap", getComputedStyle(p).rowGap, r)
314
+ ), S !== null && t(S);
315
315
  },
316
316
  [t, e, r, s, i, o, l]
317
317
  );
318
- return _e(a, n, c);
318
+ return Ge(a, n, c);
319
319
  }
320
- function wo(t, e, n, o) {
320
+ function To(t, e, n, o) {
321
321
  const r = t.length;
322
322
  if (r === 0)
323
323
  return null;
@@ -326,40 +326,40 @@ function wo(t, e, n, o) {
326
326
  const l = t.item(i);
327
327
  if (l.dataset.index === void 0)
328
328
  continue;
329
- const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), m = e(l, n);
330
- if (m === 0 && o("Zero-sized element, this should not happen", { child: l }, mt.ERROR), m === a)
329
+ const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), p = e(l, n);
330
+ if (p === 0 && o("Zero-sized element, this should not happen", { child: l }, mt.ERROR), p === a)
331
331
  continue;
332
- const x = s[s.length - 1];
333
- s.length === 0 || x.size !== m || x.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
332
+ const S = s[s.length - 1];
333
+ s.length === 0 || S.size !== p || S.endIndex !== c - 1 ? s.push({ endIndex: c, size: p, startIndex: c }) : s[s.length - 1].endIndex++;
334
334
  }
335
335
  return s;
336
336
  }
337
337
  function fn(t, e, n) {
338
338
  return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t} was not resolved to pixel value correctly`, e, mt.WARN), e === "normal" ? 0 : parseInt(e != null ? e : "0", 10);
339
339
  }
340
- function Ne(t, e, n) {
340
+ function _e(t, e, n) {
341
341
  const o = React__default.useRef(null), r = React__default.useCallback(
342
342
  (c) => {
343
343
  if (!(c != null && c.offsetParent))
344
344
  return;
345
- const a = c.getBoundingClientRect(), m = a.width;
346
- let x, h;
345
+ const a = c.getBoundingClientRect(), p = a.width;
346
+ let S, g;
347
347
  if (e) {
348
- const I = e.getBoundingClientRect(), C = a.top - I.top;
349
- h = I.height - Math.max(0, C), x = C + e.scrollTop;
348
+ const h = e.getBoundingClientRect(), w = a.top - h.top;
349
+ g = h.height - Math.max(0, w), S = w + e.scrollTop;
350
350
  } else {
351
- const I = i.current.ownerDocument.defaultView;
352
- h = I.innerHeight - Math.max(0, a.top), x = a.top + I.scrollY;
351
+ const h = i.current.ownerDocument.defaultView;
352
+ g = h.innerHeight - Math.max(0, a.top), S = a.top + h.scrollY;
353
353
  }
354
354
  o.current = {
355
- offsetTop: x,
356
- visibleHeight: h,
357
- visibleWidth: m
355
+ offsetTop: S,
356
+ visibleHeight: g,
357
+ visibleWidth: p
358
358
  }, t(o.current);
359
359
  },
360
360
  // eslint-disable-next-line react-hooks/exhaustive-deps
361
361
  [t, e]
362
- ), { callbackRef: s, ref: i } = _e(r, true, n), l = React__default.useCallback(() => {
362
+ ), { callbackRef: s, ref: i } = Ge(r, true, n), l = React__default.useCallback(() => {
363
363
  r(i.current);
364
364
  }, [r, i]);
365
365
  return React__default.useEffect(() => {
@@ -382,33 +382,33 @@ function Ne(t, e, n) {
382
382
  }
383
383
  const at = U(
384
384
  () => {
385
- const t = $(), e = $(), n = w(0), o = $(), r = w(0), s = $(), i = $(), l = w(0), c = w(0), a = w(0), m = w(0), x = $(), h = $(), I = w(false), C = w(false), v = w(false);
385
+ const t = $(), e = $(), n = C(0), o = $(), r = C(0), s = $(), i = $(), l = C(0), c = C(0), a = C(0), p = C(0), S = $(), g = $(), h = C(false), w = C(false), v = C(false);
386
386
  return O(
387
- S(
387
+ x(
388
388
  t,
389
- E(({ scrollTop: g }) => g)
389
+ E(({ scrollTop: m }) => m)
390
390
  ),
391
391
  e
392
392
  ), O(
393
- S(
393
+ x(
394
394
  t,
395
- E(({ scrollHeight: g }) => g)
395
+ E(({ scrollHeight: m }) => m)
396
396
  ),
397
397
  i
398
398
  ), O(e, r), {
399
399
  deviation: n,
400
400
  fixedFooterHeight: a,
401
401
  fixedHeaderHeight: c,
402
- footerHeight: m,
402
+ footerHeight: p,
403
403
  headerHeight: l,
404
- horizontalDirection: C,
405
- scrollBy: h,
404
+ horizontalDirection: w,
405
+ scrollBy: g,
406
406
  // input
407
407
  scrollContainerState: t,
408
408
  scrollHeight: i,
409
- scrollingInProgress: I,
409
+ scrollingInProgress: h,
410
410
  // signals
411
- scrollTo: x,
411
+ scrollTo: S,
412
412
  scrollTop: e,
413
413
  skipAnimationFrameInResizeObserver: v,
414
414
  smoothScrollTargetReached: o,
@@ -439,30 +439,30 @@ function re(t, e) {
439
439
  if (!j(t))
440
440
  return e === t.k ? t.v : e < t.k ? re(t.l, e) : re(t.r, e);
441
441
  }
442
- function wt(t, e, n = "k") {
442
+ function Ct(t, e, n = "k") {
443
443
  if (j(t))
444
444
  return [-1 / 0, void 0];
445
445
  if (Number(t[n]) === e)
446
446
  return [t.k, t.v];
447
447
  if (Number(t[n]) < e) {
448
- const o = wt(t.r, e, n);
448
+ const o = Ct(t.r, e, n);
449
449
  return o[0] === -1 / 0 ? [t.k, t.v] : o;
450
450
  }
451
- return wt(t.l, e, n);
451
+ return Ct(t.l, e, n);
452
452
  }
453
453
  function pt(t, e, n) {
454
- return j(t) ? Pn(e, n, 1) : e === t.k ? st(t, { k: e, v: n }) : e < t.k ? mn(st(t, { l: pt(t.l, e, n) })) : mn(st(t, { r: pt(t.r, e, n) }));
454
+ return j(t) ? Pn(e, n, 1) : e === t.k ? ot(t, { k: e, v: n }) : e < t.k ? mn(ot(t, { l: pt(t.l, e, n) })) : mn(ot(t, { r: pt(t.r, e, n) }));
455
455
  }
456
- function jt() {
456
+ function Kt() {
457
457
  return oe;
458
458
  }
459
459
  function ye(t, e, n) {
460
460
  if (j(t))
461
461
  return [];
462
- const o = wt(t, e)[0];
463
- return vo(Ve(t, o, n));
462
+ const o = Ct(t, e)[0];
463
+ return Co(ze(t, o, n));
464
464
  }
465
- function ze(t, e) {
465
+ function Le(t, e) {
466
466
  if (j(t)) return oe;
467
467
  const { k: n, l: o, r } = t;
468
468
  if (e === n) {
@@ -472,19 +472,19 @@ function ze(t, e) {
472
472
  return o;
473
473
  {
474
474
  const [s, i] = Vn(o);
475
- return ge(st(t, { k: s, l: zn(o), v: i }));
475
+ return ge(ot(t, { k: s, l: zn(o), v: i }));
476
476
  }
477
- } else return e < n ? ge(st(t, { l: ze(o, e) })) : ge(st(t, { r: ze(r, e) }));
477
+ } else return e < n ? ge(ot(t, { l: Le(o, e) })) : ge(ot(t, { r: Le(r, e) }));
478
478
  }
479
479
  function Gt(t) {
480
480
  return j(t) ? [] : [...Gt(t.l), { k: t.k, v: t.v }, ...Gt(t.r)];
481
481
  }
482
- function Ve(t, e, n) {
482
+ function ze(t, e, n) {
483
483
  if (j(t))
484
484
  return [];
485
485
  const { k: o, l: r, r: s, v: i } = t;
486
486
  let l = [];
487
- return o > e && (l = l.concat(Ve(r, e, n))), o >= e && o <= n && l.push({ k: o, v: i }), o <= n && (l = l.concat(Ve(s, e, n))), l;
487
+ return o > e && (l = l.concat(ze(r, e, n))), o >= e && o <= n && l.push({ k: o, v: i }), o <= n && (l = l.concat(ze(s, e, n))), l;
488
488
  }
489
489
  function ge(t) {
490
490
  const { l: e, lvl: n, r: o } = t;
@@ -492,12 +492,12 @@ function ge(t) {
492
492
  return t;
493
493
  if (n > o.lvl + 1) {
494
494
  if (Ee(e))
495
- return An(st(t, { lvl: n - 1 }));
495
+ return An(ot(t, { lvl: n - 1 }));
496
496
  if (!j(e) && !j(e.r))
497
- return st(e.r, {
498
- l: st(e, { r: e.r.l }),
497
+ return ot(e.r, {
498
+ l: ot(e, { r: e.r.l }),
499
499
  lvl: n,
500
- r: st(t, {
500
+ r: ot(t, {
501
501
  l: e.r.r,
502
502
  lvl: n - 1
503
503
  })
@@ -505,22 +505,22 @@ function ge(t) {
505
505
  throw new Error("Unexpected empty nodes");
506
506
  } else {
507
507
  if (Ee(t))
508
- return Pe(st(t, { lvl: n - 1 }));
508
+ return Ve(ot(t, { lvl: n - 1 }));
509
509
  if (!j(o) && !j(o.l)) {
510
510
  const r = o.l, s = Ee(r) ? o.lvl - 1 : o.lvl;
511
- return st(r, {
512
- l: st(t, {
511
+ return ot(r, {
512
+ l: ot(t, {
513
513
  lvl: n - 1,
514
514
  r: r.l
515
515
  }),
516
516
  lvl: r.lvl + 1,
517
- r: Pe(st(o, { l: r.r, lvl: s }))
517
+ r: Ve(ot(o, { l: r.r, lvl: s }))
518
518
  });
519
519
  } else
520
520
  throw new Error("Unexpected empty nodes");
521
521
  }
522
522
  }
523
- function st(t, e) {
523
+ function ot(t, e) {
524
524
  return Pn(
525
525
  e.k !== void 0 ? e.k : t.k,
526
526
  e.v !== void 0 ? e.v : t.v,
@@ -530,7 +530,7 @@ function st(t, e) {
530
530
  );
531
531
  }
532
532
  function zn(t) {
533
- return j(t.r) ? t.l : ge(st(t, { r: zn(t.r) }));
533
+ return j(t.r) ? t.l : ge(ot(t, { r: zn(t.r) }));
534
534
  }
535
535
  function Ee(t) {
536
536
  return j(t) || t.lvl > t.r.lvl;
@@ -542,17 +542,17 @@ function Pn(t, e, n, o = oe, r = oe) {
542
542
  return { k: t, l: o, lvl: n, r, v: e };
543
543
  }
544
544
  function mn(t) {
545
- return Pe(An(t));
545
+ return Ve(An(t));
546
546
  }
547
547
  function An(t) {
548
548
  const { l: e } = t;
549
- return !j(e) && e.lvl === t.lvl ? st(e, { r: st(t, { l: e.r }) }) : t;
549
+ return !j(e) && e.lvl === t.lvl ? ot(e, { r: ot(t, { l: e.r }) }) : t;
550
550
  }
551
- function Pe(t) {
551
+ function Ve(t) {
552
552
  const { lvl: e, r: n } = t;
553
- return !j(n) && !j(n.r) && n.lvl === e && n.r.lvl === e ? st(n, { l: st(t, { r: n.l }), lvl: e + 1 }) : t;
553
+ return !j(n) && !j(n.r) && n.lvl === e && n.r.lvl === e ? ot(n, { l: ot(t, { r: n.l }), lvl: e + 1 }) : t;
554
554
  }
555
- function vo(t) {
555
+ function Co(t) {
556
556
  return Ln(t, ({ k: e, v: n }) => ({ index: e, value: n }));
557
557
  }
558
558
  function Mn(t, e) {
@@ -561,8 +561,8 @@ function Mn(t, e) {
561
561
  function se(t, e) {
562
562
  return !!(t && t[0] === e[0] && t[1] === e[1]);
563
563
  }
564
- const De = U(
565
- () => ({ recalcInProgress: w(false) }),
564
+ const Ne = U(
565
+ () => ({ recalcInProgress: C(false) }),
566
566
  [],
567
567
  { singleton: true }
568
568
  );
@@ -587,31 +587,31 @@ function Se(t, e, n, o = 0) {
587
587
  }
588
588
  throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`);
589
589
  }
590
- function yo(t, e, n, o) {
590
+ function wo(t, e, n, o) {
591
591
  const r = Se(t, e, o), s = Se(t, n, o, r);
592
592
  return t.slice(r, s + 1);
593
593
  }
594
- function vt(t, e) {
594
+ function wt(t, e) {
595
595
  return Math.round(t.getBoundingClientRect()[e]);
596
596
  }
597
597
  function Re(t) {
598
598
  return !j(t.groupOffsetTree);
599
599
  }
600
- function $e({ index: t }, e) {
600
+ function De({ index: t }, e) {
601
601
  return e === t ? 0 : e < t ? -1 : 1;
602
602
  }
603
- function Ro() {
603
+ function vo() {
604
604
  return {
605
605
  groupIndices: [],
606
- groupOffsetTree: jt(),
606
+ groupOffsetTree: Kt(),
607
607
  lastIndex: 0,
608
608
  lastOffset: 0,
609
609
  lastSize: 0,
610
610
  offsetTree: [],
611
- sizeTree: jt()
611
+ sizeTree: Kt()
612
612
  };
613
613
  }
614
- function bo(t, e) {
614
+ function yo(t, e) {
615
615
  let n = j(t) ? 0 : 1 / 0;
616
616
  for (const o of e) {
617
617
  const { endIndex: r, size: s, startIndex: i } = o;
@@ -620,25 +620,25 @@ function bo(t, e) {
620
620
  continue;
621
621
  }
622
622
  const l = ye(t, i - 1, r + 1);
623
- if (l.some(Lo(o)))
623
+ if (l.some(Fo(o)))
624
624
  continue;
625
625
  let c = false, a = false;
626
- for (const { end: m, start: x, value: h } of l)
627
- c ? (r >= x || s === h) && (t = ze(t, x)) : (a = h !== s, c = true), m > r && r >= x && h !== s && (t = pt(t, r + 1, h));
626
+ for (const { end: p, start: S, value: g } of l)
627
+ c ? (r >= S || s === g) && (t = Le(t, S)) : (a = g !== s, c = true), p > r && r >= S && g !== s && (t = pt(t, r + 1, g));
628
628
  a && (t = pt(t, i, s));
629
629
  }
630
630
  return [t, n];
631
631
  }
632
- function Ho(t) {
632
+ function Ro(t) {
633
633
  return typeof t.groupIndex < "u";
634
634
  }
635
- function Eo({ offset: t }, e) {
635
+ function bo({ offset: t }, e) {
636
636
  return e === t ? 0 : e < t ? -1 : 1;
637
637
  }
638
638
  function ie(t, e, n) {
639
639
  if (e.length === 0)
640
640
  return 0;
641
- const { index: o, offset: r, size: s } = Wn(e, t, $e), i = t - o, l = s * i + (i - 1) * n + r;
641
+ const { index: o, offset: r, size: s } = Wn(e, t, De), i = t - o, l = s * i + (i - 1) * n + r;
642
642
  return l > 0 ? l + n : l;
643
643
  }
644
644
  function Gn(t, e) {
@@ -650,7 +650,7 @@ function Gn(t, e) {
650
650
  return t + n;
651
651
  }
652
652
  function _n(t, e, n) {
653
- if (Ho(t))
653
+ if (Ro(t))
654
654
  return e.groupIndices[t.groupIndex] + 1;
655
655
  {
656
656
  const o = t.index === "LAST" ? n : t.index;
@@ -658,32 +658,32 @@ function _n(t, e, n) {
658
658
  return r = Math.max(0, r, Math.min(n, r)), r;
659
659
  }
660
660
  }
661
- function Bo(t, e, n, o = 0) {
662
- return o > 0 && (e = Math.max(e, Wn(t, o, $e).offset)), Ln(yo(t, e, n, Eo), Oo);
661
+ function Ho(t, e, n, o = 0) {
662
+ return o > 0 && (e = Math.max(e, Wn(t, o, De).offset)), Ln(wo(t, e, n, bo), ko);
663
663
  }
664
- function ko(t, [e, n, o, r]) {
664
+ function Eo(t, [e, n, o, r]) {
665
665
  e.length > 0 && o("received item sizes", e, mt.DEBUG);
666
666
  const s = t.sizeTree;
667
667
  let i = s, l = 0;
668
668
  if (n.length > 0 && j(s) && e.length === 2) {
669
- const h = e[0].size, I = e[1].size;
670
- i = n.reduce((C, v) => pt(pt(C, v, h), v + 1, I), i);
669
+ const g = e[0].size, h = e[1].size;
670
+ i = n.reduce((w, v) => pt(pt(w, v, g), v + 1, h), i);
671
671
  } else
672
- [i, l] = bo(i, e);
672
+ [i, l] = yo(i, e);
673
673
  if (i === s)
674
674
  return t;
675
- const { lastIndex: c, lastOffset: a, lastSize: m, offsetTree: x } = Ae(t.offsetTree, l, i, r);
675
+ const { lastIndex: c, lastOffset: a, lastSize: p, offsetTree: S } = Pe(t.offsetTree, l, i, r);
676
676
  return {
677
677
  groupIndices: n,
678
- groupOffsetTree: n.reduce((h, I) => pt(h, I, ie(I, x, r)), jt()),
678
+ groupOffsetTree: n.reduce((g, h) => pt(g, h, ie(h, S, r)), Kt()),
679
679
  lastIndex: c,
680
680
  lastOffset: a,
681
- lastSize: m,
682
- offsetTree: x,
681
+ lastSize: p,
682
+ offsetTree: S,
683
683
  sizeTree: i
684
684
  };
685
685
  }
686
- function Fo(t) {
686
+ function Bo(t) {
687
687
  return Gt(t).map(({ k: e, v: n }, o, r) => {
688
688
  const s = r[o + 1];
689
689
  return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: e };
@@ -695,21 +695,21 @@ function pn(t, e) {
695
695
  n += e[o + 1] - e[o] - 1, o++;
696
696
  return o - (n === t ? 0 : 1);
697
697
  }
698
- function Ae(t, e, n, o) {
698
+ function Pe(t, e, n, o) {
699
699
  let r = t, s = 0, i = 0, l = 0, c = 0;
700
700
  if (e !== 0) {
701
- c = Se(r, e - 1, $e), l = r[c].offset;
702
- const m = wt(n, e - 1);
703
- s = m[0], i = m[1], r.length && r[c].size === wt(n, e)[1] && (c -= 1), r = r.slice(0, c + 1);
701
+ c = Se(r, e - 1, De), l = r[c].offset;
702
+ const p = Ct(n, e - 1);
703
+ s = p[0], i = p[1], r.length && r[c].size === Ct(n, e)[1] && (c -= 1), r = r.slice(0, c + 1);
704
704
  } else
705
705
  r = [];
706
- for (const { start: a, value: m } of ye(n, e, 1 / 0)) {
707
- const x = a - s, h = x * i + l + x * o;
706
+ for (const { start: a, value: p } of ye(n, e, 1 / 0)) {
707
+ const S = a - s, g = S * i + l + S * o;
708
708
  r.push({
709
709
  index: a,
710
- offset: h,
711
- size: m
712
- }), s = a, l = h, i = m;
710
+ offset: g,
711
+ size: p
712
+ }), s = a, l = g, i = p;
713
713
  }
714
714
  return {
715
715
  lastIndex: s,
@@ -718,112 +718,112 @@ function Ae(t, e, n, o) {
718
718
  offsetTree: r
719
719
  };
720
720
  }
721
- function Oo(t) {
721
+ function ko(t) {
722
722
  return { index: t.index, value: t };
723
723
  }
724
- function Lo(t) {
724
+ function Fo(t) {
725
725
  const { endIndex: e, size: n, startIndex: o } = t;
726
726
  return (r) => r.start === o && (r.end === e || r.end === 1 / 0) && r.value === n;
727
727
  }
728
- const zo = {
728
+ const Oo = {
729
729
  offsetHeight: "height",
730
730
  offsetWidth: "width"
731
731
  }, Et = U(
732
732
  ([{ log: t }, { recalcInProgress: e }]) => {
733
- const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = w(0), c = w([]), a = w(void 0), m = w(void 0), x = w((f, d) => vt(f, zo[d])), h = w(void 0), I = w(0), C = Ro(), v = ct(
734
- S(n, N(c, t, I), bt(ko, C), Y()),
735
- C
736
- ), g = ct(
737
- S(
733
+ const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = C(0), c = C([]), a = C(void 0), p = C(void 0), S = C((I, f) => wt(I, Oo[f])), g = C(void 0), h = C(0), w = vo(), v = ct(
734
+ x(n, _(c, t, h), Rt(Eo, w), Z()),
735
+ w
736
+ ), m = ct(
737
+ x(
738
738
  c,
739
- Y(),
740
- bt((f, d) => ({ current: d, prev: f.current }), {
739
+ Z(),
740
+ Rt((I, f) => ({ current: f, prev: I.current }), {
741
741
  current: [],
742
742
  prev: []
743
743
  }),
744
- E(({ prev: f }) => f)
744
+ E(({ prev: I }) => I)
745
745
  ),
746
746
  []
747
747
  );
748
748
  O(
749
- S(
749
+ x(
750
750
  c,
751
- A((f) => f.length > 0),
752
- N(v, I),
753
- E(([f, d, y]) => {
754
- const B = f.reduce((k, L, z) => pt(k, L, ie(L, d.offsetTree, y) || z), jt());
751
+ P((I) => I.length > 0),
752
+ _(v, h),
753
+ E(([I, f, b]) => {
754
+ const k = I.reduce((F, L, V) => pt(F, L, ie(L, f.offsetTree, b) || V), Kt());
755
755
  return {
756
- ...d,
757
- groupIndices: f,
758
- groupOffsetTree: B
756
+ ...f,
757
+ groupIndices: I,
758
+ groupOffsetTree: k
759
759
  };
760
760
  })
761
761
  ),
762
762
  v
763
763
  ), O(
764
- S(
764
+ x(
765
765
  o,
766
- N(v),
767
- A(([f, { lastIndex: d }]) => f < d),
768
- E(([f, { lastIndex: d, lastSize: y }]) => [
766
+ _(v),
767
+ P(([I, { lastIndex: f }]) => I < f),
768
+ E(([I, { lastIndex: f, lastSize: b }]) => [
769
769
  {
770
- endIndex: d,
771
- size: y,
772
- startIndex: f
770
+ endIndex: f,
771
+ size: b,
772
+ startIndex: I
773
773
  }
774
774
  ])
775
775
  ),
776
776
  n
777
- ), O(a, m);
778
- const p = ct(
779
- S(
777
+ ), O(a, p);
778
+ const d = ct(
779
+ x(
780
780
  a,
781
- E((f) => f === void 0)
781
+ E((I) => I === void 0)
782
782
  ),
783
783
  true
784
784
  );
785
785
  O(
786
- S(
787
- m,
788
- A((f) => f !== void 0 && j(ot(v).sizeTree)),
789
- E((f) => [{ endIndex: 0, size: f, startIndex: 0 }])
786
+ x(
787
+ p,
788
+ P((I) => I !== void 0 && j(st(v).sizeTree)),
789
+ E((I) => [{ endIndex: 0, size: I, startIndex: 0 }])
790
790
  ),
791
791
  n
792
792
  );
793
793
  const u = ht(
794
- S(
794
+ x(
795
795
  n,
796
- N(v),
797
- bt(
798
- ({ sizes: f }, [d, y]) => ({
799
- changed: y !== f,
800
- sizes: y
796
+ _(v),
797
+ Rt(
798
+ ({ sizes: I }, [f, b]) => ({
799
+ changed: b !== I,
800
+ sizes: b
801
801
  }),
802
- { changed: false, sizes: C }
802
+ { changed: false, sizes: w }
803
803
  ),
804
- E((f) => f.changed)
804
+ E((I) => I.changed)
805
805
  )
806
806
  );
807
807
  K(
808
- S(
808
+ x(
809
809
  l,
810
- bt(
811
- (f, d) => ({ diff: f.prev - d, prev: d }),
810
+ Rt(
811
+ (I, f) => ({ diff: I.prev - f, prev: f }),
812
812
  { diff: 0, prev: 0 }
813
813
  ),
814
- E((f) => f.diff)
814
+ E((I) => I.diff)
815
815
  ),
816
- (f) => {
817
- const { groupIndices: d } = ot(v);
818
- if (f > 0)
819
- G(e, true), G(s, f + pn(f, d));
820
- else if (f < 0) {
821
- const y = ot(g);
822
- y.length > 0 && (f -= pn(-f, y)), G(i, f);
816
+ (I) => {
817
+ const { groupIndices: f } = st(v);
818
+ if (I > 0)
819
+ G(e, true), G(s, I + pn(I, f));
820
+ else if (I < 0) {
821
+ const b = st(m);
822
+ b.length > 0 && (I -= pn(-I, b)), G(i, I);
823
823
  }
824
824
  }
825
- ), K(S(l, N(t)), ([f, d]) => {
826
- f < 0 && d(
825
+ ), K(x(l, _(t)), ([I, f]) => {
826
+ I < 0 && f(
827
827
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
828
828
  { firstItemIndex: l },
829
829
  mt.ERROR
@@ -831,59 +831,59 @@ const zo = {
831
831
  });
832
832
  const T = ht(s);
833
833
  O(
834
- S(
834
+ x(
835
835
  s,
836
- N(v),
837
- E(([f, d]) => {
838
- const y = d.groupIndices.length > 0, B = [], k = d.lastSize;
839
- if (y) {
840
- const L = re(d.sizeTree, 0);
841
- let z = 0, _ = 0;
842
- for (; z < f; ) {
843
- const F = d.groupIndices[_], q = d.groupIndices.length === _ + 1 ? 1 / 0 : d.groupIndices[_ + 1] - F - 1;
844
- B.push({
845
- endIndex: F,
836
+ _(v),
837
+ E(([I, f]) => {
838
+ const b = f.groupIndices.length > 0, k = [], F = f.lastSize;
839
+ if (b) {
840
+ const L = re(f.sizeTree, 0);
841
+ let V = 0, D = 0;
842
+ for (; V < I; ) {
843
+ const B = f.groupIndices[D], Y = f.groupIndices.length === D + 1 ? 1 / 0 : f.groupIndices[D + 1] - B - 1;
844
+ k.push({
845
+ endIndex: B,
846
846
  size: L,
847
- startIndex: F
848
- }), B.push({
849
- endIndex: F + 1 + q - 1,
850
- size: k,
851
- startIndex: F + 1
852
- }), _++, z += q + 1;
847
+ startIndex: B
848
+ }), k.push({
849
+ endIndex: B + 1 + Y - 1,
850
+ size: F,
851
+ startIndex: B + 1
852
+ }), D++, V += Y + 1;
853
853
  }
854
- const J = Gt(d.sizeTree);
855
- return z !== f && J.shift(), J.reduce(
856
- (F, { k: q, v: it }) => {
857
- let dt = F.ranges;
858
- return F.prevSize !== 0 && (dt = [
859
- ...F.ranges,
854
+ const J = Gt(f.sizeTree);
855
+ return V !== I && J.shift(), J.reduce(
856
+ (B, { k: Y, v: it }) => {
857
+ let dt = B.ranges;
858
+ return B.prevSize !== 0 && (dt = [
859
+ ...B.ranges,
860
860
  {
861
- endIndex: q + f - 1,
862
- size: F.prevSize,
863
- startIndex: F.prevIndex
861
+ endIndex: Y + I - 1,
862
+ size: B.prevSize,
863
+ startIndex: B.prevIndex
864
864
  }
865
865
  ]), {
866
- prevIndex: q + f,
866
+ prevIndex: Y + I,
867
867
  prevSize: it,
868
868
  ranges: dt
869
869
  };
870
870
  },
871
871
  {
872
- prevIndex: f,
872
+ prevIndex: I,
873
873
  prevSize: 0,
874
- ranges: B
874
+ ranges: k
875
875
  }
876
876
  ).ranges;
877
877
  }
878
- return Gt(d.sizeTree).reduce(
879
- (L, { k: z, v: _ }) => ({
880
- prevIndex: z + f,
881
- prevSize: _,
882
- ranges: [...L.ranges, { endIndex: z + f - 1, size: L.prevSize, startIndex: L.prevIndex }]
878
+ return Gt(f.sizeTree).reduce(
879
+ (L, { k: V, v: D }) => ({
880
+ prevIndex: V + I,
881
+ prevSize: D,
882
+ ranges: [...L.ranges, { endIndex: V + I - 1, size: L.prevSize, startIndex: L.prevIndex }]
883
883
  }),
884
884
  {
885
885
  prevIndex: 0,
886
- prevSize: k,
886
+ prevSize: F,
887
887
  ranges: []
888
888
  }
889
889
  ).ranges;
@@ -891,49 +891,49 @@ const zo = {
891
891
  ),
892
892
  n
893
893
  );
894
- const b = ht(
895
- S(
894
+ const R = ht(
895
+ x(
896
896
  i,
897
- N(v, I),
898
- E(([f, { offsetTree: d }, y]) => {
899
- const B = -f;
900
- return ie(B, d, y);
897
+ _(v, h),
898
+ E(([I, { offsetTree: f }, b]) => {
899
+ const k = -I;
900
+ return ie(k, f, b);
901
901
  })
902
902
  )
903
903
  );
904
904
  return O(
905
- S(
905
+ x(
906
906
  i,
907
- N(v, I),
908
- E(([f, d, y]) => {
909
- if (d.groupIndices.length > 0) {
910
- if (j(d.sizeTree))
911
- return d;
912
- let k = jt();
913
- const L = ot(g);
914
- let z = 0, _ = 0, J = 0;
915
- for (; z < -f; ) {
916
- J = L[_];
917
- const F = L[_ + 1] - J - 1;
918
- _++, z += F + 1;
907
+ _(v, h),
908
+ E(([I, f, b]) => {
909
+ if (f.groupIndices.length > 0) {
910
+ if (j(f.sizeTree))
911
+ return f;
912
+ let F = Kt();
913
+ const L = st(m);
914
+ let V = 0, D = 0, J = 0;
915
+ for (; V < -I; ) {
916
+ J = L[D];
917
+ const B = L[D + 1] - J - 1;
918
+ D++, V += B + 1;
919
919
  }
920
- if (k = Gt(d.sizeTree).reduce((F, { k: q, v: it }) => pt(F, Math.max(0, q + f), it), k), z !== -f) {
921
- const F = re(d.sizeTree, J);
922
- k = pt(k, 0, F);
923
- const q = wt(d.sizeTree, -f + 1)[1];
924
- k = pt(k, 1, q);
920
+ if (F = Gt(f.sizeTree).reduce((B, { k: Y, v: it }) => pt(B, Math.max(0, Y + I), it), F), V !== -I) {
921
+ const B = re(f.sizeTree, J);
922
+ F = pt(F, 0, B);
923
+ const Y = Ct(f.sizeTree, -I + 1)[1];
924
+ F = pt(F, 1, Y);
925
925
  }
926
926
  return {
927
- ...d,
928
- sizeTree: k,
929
- ...Ae(d.offsetTree, 0, k, y)
927
+ ...f,
928
+ sizeTree: F,
929
+ ...Pe(f.offsetTree, 0, F, b)
930
930
  };
931
931
  } else {
932
- const k = Gt(d.sizeTree).reduce((L, { k: z, v: _ }) => pt(L, Math.max(0, z + f), _), jt());
932
+ const F = Gt(f.sizeTree).reduce((L, { k: V, v: D }) => pt(L, Math.max(0, V + I), D), Kt());
933
933
  return {
934
- ...d,
935
- sizeTree: k,
936
- ...Ae(d.offsetTree, 0, k, y)
934
+ ...f,
935
+ sizeTree: F,
936
+ ...Pe(f.offsetTree, 0, F, b)
937
937
  };
938
938
  }
939
939
  })
@@ -942,29 +942,29 @@ const zo = {
942
942
  ), {
943
943
  beforeUnshiftWith: T,
944
944
  // input
945
- data: h,
946
- defaultItemSize: m,
945
+ data: g,
946
+ defaultItemSize: p,
947
947
  firstItemIndex: l,
948
948
  fixedItemSize: a,
949
- gap: I,
949
+ gap: h,
950
950
  groupIndices: c,
951
- itemSize: x,
951
+ itemSize: S,
952
952
  listRefresh: u,
953
953
  shiftWith: i,
954
- shiftWithOffset: b,
954
+ shiftWithOffset: R,
955
955
  sizeRanges: n,
956
956
  // output
957
957
  sizes: v,
958
958
  statefulTotalCount: r,
959
959
  totalCount: o,
960
- trackItemSizes: p,
960
+ trackItemSizes: d,
961
961
  unshiftWith: s
962
962
  };
963
963
  },
964
- X(Vt, De),
964
+ X(Vt, Ne),
965
965
  { singleton: true }
966
966
  );
967
- function Vo(t) {
967
+ function Lo(t) {
968
968
  return t.reduce(
969
969
  (e, n) => (e.groupIndices.push(e.totalCount), e.totalCount += n + 1, e),
970
970
  {
@@ -975,25 +975,25 @@ function Vo(t) {
975
975
  }
976
976
  const Nn = U(
977
977
  ([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
978
- const s = $(), i = $(), l = ht(S(s, E(Vo)));
978
+ const s = $(), i = $(), l = ht(x(s, E(Lo)));
979
979
  return O(
980
- S(
980
+ x(
981
981
  l,
982
982
  E((c) => c.totalCount)
983
983
  ),
984
984
  n
985
985
  ), O(
986
- S(
986
+ x(
987
987
  l,
988
988
  E((c) => c.groupIndices)
989
989
  ),
990
990
  t
991
991
  ), O(
992
- S(
992
+ x(
993
993
  rt(r, e, o),
994
- A(([c, a]) => Re(a)),
995
- E(([c, a, m]) => wt(a.groupOffsetTree, Math.max(c - m, 0), "v")[0]),
996
- Y(),
994
+ P(([c, a]) => Re(a)),
995
+ E(([c, a, p]) => Ct(a.groupOffsetTree, Math.max(c - p, 0), "v")[0]),
996
+ Z(),
997
997
  E((c) => [c])
998
998
  ),
999
999
  i
@@ -1002,23 +1002,23 @@ const Nn = U(
1002
1002
  X(Et, at)
1003
1003
  ), Pt = U(
1004
1004
  ([{ log: t }]) => {
1005
- const e = w(false), n = ht(
1006
- S(
1005
+ const e = C(false), n = ht(
1006
+ x(
1007
1007
  e,
1008
- A((o) => o),
1009
- Y()
1008
+ P((o) => o),
1009
+ Z()
1010
1010
  )
1011
1011
  );
1012
1012
  return K(e, (o) => {
1013
- o && ot(t)("props updated", {}, mt.DEBUG);
1013
+ o && st(t)("props updated", {}, mt.DEBUG);
1014
1014
  }), { didMount: n, propsReady: e };
1015
1015
  },
1016
1016
  X(Vt),
1017
1017
  { singleton: true }
1018
- ), Po = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1018
+ ), zo = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1019
1019
  function Dn(t) {
1020
1020
  const e = typeof t == "number" ? { index: t } : t;
1021
- return e.align || (e.align = "start"), (!e.behavior || !Po) && (e.behavior = "auto"), e.offset || (e.offset = 0), e;
1021
+ return e.align || (e.align = "start"), (!e.behavior || !zo) && (e.behavior = "auto"), e.offset || (e.offset = 0), e;
1022
1022
  }
1023
1023
  const ce = U(
1024
1024
  ([
@@ -1030,60 +1030,60 @@ const ce = U(
1030
1030
  headerHeight: l,
1031
1031
  scrollingInProgress: c,
1032
1032
  scrollTo: a,
1033
- smoothScrollTargetReached: m,
1034
- viewportHeight: x
1033
+ smoothScrollTargetReached: p,
1034
+ viewportHeight: S
1035
1035
  },
1036
- { log: h }
1036
+ { log: g }
1037
1037
  ]) => {
1038
- const I = $(), C = $(), v = w(0);
1039
- let g = null, p = null, u = null;
1038
+ const h = $(), w = $(), v = C(0);
1039
+ let m = null, d = null, u = null;
1040
1040
  function T() {
1041
- g && (g(), g = null), u && (u(), u = null), p && (clearTimeout(p), p = null), G(c, false);
1041
+ m && (m(), m = null), u && (u(), u = null), d && (clearTimeout(d), d = null), G(c, false);
1042
1042
  }
1043
1043
  return O(
1044
- S(
1045
- I,
1046
- N(n, x, o, v, l, i, h),
1047
- N(t, s, r),
1044
+ x(
1045
+ h,
1046
+ _(n, S, o, v, l, i, g),
1047
+ _(t, s, r),
1048
1048
  E(
1049
1049
  ([
1050
- [b, f, d, y, B, k, L, z],
1051
- _,
1050
+ [R, I, f, b, k, F, L, V],
1051
+ D,
1052
1052
  J,
1053
1053
  nt
1054
1054
  ]) => {
1055
- const F = Dn(b), { align: q, behavior: it, offset: dt } = F, St = y - 1, ft = _n(F, f, St);
1056
- let ut = ie(ft, f.offsetTree, _) + k;
1057
- q === "end" ? (ut += J + wt(f.sizeTree, ft)[1] - d + nt, ft === St && (ut += L)) : q === "center" ? ut += (J + wt(f.sizeTree, ft)[1] - d + nt) / 2 : ut -= B, dt && (ut += dt);
1055
+ const B = Dn(R), { align: Y, behavior: it, offset: dt } = B, St = b - 1, ft = _n(B, I, St);
1056
+ let ut = ie(ft, I.offsetTree, D) + F;
1057
+ Y === "end" ? (ut += J + Ct(I.sizeTree, ft)[1] - f + nt, ft === St && (ut += L)) : Y === "center" ? ut += (J + Ct(I.sizeTree, ft)[1] - f + nt) / 2 : ut -= k, dt && (ut += dt);
1058
1058
  const At = (xt) => {
1059
- T(), xt ? (z("retrying to scroll to", { location: b }, mt.DEBUG), G(I, b)) : (G(C, true), z("list did not change, scroll successful", {}, mt.DEBUG));
1059
+ T(), xt ? (V("retrying to scroll to", { location: R }, mt.DEBUG), G(h, R)) : (G(w, true), V("list did not change, scroll successful", {}, mt.DEBUG));
1060
1060
  };
1061
1061
  if (T(), it === "smooth") {
1062
1062
  let xt = false;
1063
1063
  u = K(e, (Xt) => {
1064
1064
  xt = xt || Xt;
1065
- }), g = Tt(m, () => {
1065
+ }), m = bt(p, () => {
1066
1066
  At(xt);
1067
1067
  });
1068
1068
  } else
1069
- g = Tt(S(e, Ao(150)), At);
1070
- return p = setTimeout(() => {
1069
+ m = bt(x(e, Vo(150)), At);
1070
+ return d = setTimeout(() => {
1071
1071
  T();
1072
- }, 1200), G(c, true), z("scrolling from index to", { behavior: it, index: ft, top: ut }, mt.DEBUG), { behavior: it, top: ut };
1072
+ }, 1200), G(c, true), V("scrolling from index to", { behavior: it, index: ft, top: ut }, mt.DEBUG), { behavior: it, top: ut };
1073
1073
  }
1074
1074
  )
1075
1075
  ),
1076
1076
  a
1077
1077
  ), {
1078
- scrollTargetReached: C,
1079
- scrollToIndex: I,
1078
+ scrollTargetReached: w,
1079
+ scrollToIndex: h,
1080
1080
  topListHeight: v
1081
1081
  };
1082
1082
  },
1083
1083
  X(Et, at, Vt),
1084
1084
  { singleton: true }
1085
1085
  );
1086
- function Ao(t) {
1086
+ function Vo(t) {
1087
1087
  return (e) => {
1088
1088
  const n = setTimeout(() => {
1089
1089
  e(false);
@@ -1093,48 +1093,48 @@ function Ao(t) {
1093
1093
  };
1094
1094
  };
1095
1095
  }
1096
- function Ue(t, e) {
1096
+ function $e(t, e) {
1097
1097
  t == 0 ? e() : requestAnimationFrame(() => {
1098
- Ue(t - 1, e);
1098
+ $e(t - 1, e);
1099
1099
  });
1100
1100
  }
1101
- function Ke(t, e) {
1101
+ function Ue(t, e) {
1102
1102
  const n = e - 1;
1103
1103
  return typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1104
1104
  }
1105
1105
  const ue = U(
1106
1106
  ([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
1107
- const l = w(true), c = w(0), a = w(true);
1107
+ const l = C(true), c = C(0), a = C(true);
1108
1108
  return O(
1109
- S(
1109
+ x(
1110
1110
  i,
1111
- N(c),
1112
- A(([m, x]) => !!x),
1113
- Rt(false)
1111
+ _(c),
1112
+ P(([p, S]) => !!S),
1113
+ yt(false)
1114
1114
  ),
1115
1115
  l
1116
1116
  ), O(
1117
- S(
1117
+ x(
1118
1118
  i,
1119
- N(c),
1120
- A(([m, x]) => !!x),
1121
- Rt(false)
1119
+ _(c),
1120
+ P(([p, S]) => !!S),
1121
+ yt(false)
1122
1122
  ),
1123
1123
  a
1124
1124
  ), K(
1125
- S(
1125
+ x(
1126
1126
  rt(e, i),
1127
- N(l, n, t, a),
1128
- A(([[, m], x, { sizeTree: h }, I, C]) => m && (!j(h) || We(I)) && !x && !C),
1129
- N(c)
1127
+ _(l, n, t, a),
1128
+ P(([[, p], S, { sizeTree: g }, h, w]) => p && (!j(g) || Me(h)) && !S && !w),
1129
+ _(c)
1130
1130
  ),
1131
- ([, m]) => {
1132
- Tt(r, () => {
1131
+ ([, p]) => {
1132
+ bt(r, () => {
1133
1133
  G(a, true);
1134
- }), Ue(4, () => {
1135
- Tt(o, () => {
1134
+ }), $e(4, () => {
1135
+ bt(o, () => {
1136
1136
  G(l, true);
1137
- }), G(s, m);
1137
+ }), G(s, p);
1138
1138
  });
1139
1139
  }
1140
1140
  ), {
@@ -1149,7 +1149,7 @@ const ue = U(
1149
1149
  function $n(t, e) {
1150
1150
  return Math.abs(t - e) < 1.01;
1151
1151
  }
1152
- const le = "up", te = "down", Mo = "none", Wo = {
1152
+ const le = "up", te = "down", Po = "none", Ao = {
1153
1153
  atBottom: false,
1154
1154
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
1155
1155
  state: {
@@ -1158,137 +1158,137 @@ const le = "up", te = "down", Mo = "none", Wo = {
1158
1158
  scrollTop: 0,
1159
1159
  viewportHeight: 0
1160
1160
  }
1161
- }, Go = 0, ae = U(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1162
- const i = w(false), l = w(true), c = $(), a = $(), m = w(4), x = w(Go), h = ct(
1163
- S(
1164
- Le(S(V(r), Dt(1), Rt(true)), S(V(r), Dt(1), Rt(false), dn(100))),
1165
- Y()
1161
+ }, Mo = 0, ae = U(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1162
+ const i = C(false), l = C(true), c = $(), a = $(), p = C(4), S = C(Mo), g = ct(
1163
+ x(
1164
+ dn(x(A(r), jt(1), yt(true)), x(A(r), jt(1), yt(false), an(100))),
1165
+ Z()
1166
1166
  ),
1167
1167
  false
1168
- ), I = ct(
1169
- S(Le(S(n, Rt(true)), S(n, Rt(false), dn(200))), Y()),
1168
+ ), h = ct(
1169
+ x(dn(x(n, yt(true)), x(n, yt(false), an(200))), Z()),
1170
1170
  false
1171
1171
  );
1172
1172
  O(
1173
- S(
1174
- rt(V(r), V(x)),
1173
+ x(
1174
+ rt(A(r), A(S)),
1175
1175
  E(([u, T]) => u <= T),
1176
- Y()
1176
+ Z()
1177
1177
  ),
1178
1178
  l
1179
- ), O(S(l, kt(50)), a);
1180
- const C = ht(
1181
- S(
1182
- rt(o, V(s), V(e), V(t), V(m)),
1183
- bt((u, [{ scrollHeight: T, scrollTop: b }, f, d, y, B]) => {
1184
- const k = b + f - T > -B, L = {
1179
+ ), O(x(l, Lt(50)), a);
1180
+ const w = ht(
1181
+ x(
1182
+ rt(o, A(s), A(e), A(t), A(p)),
1183
+ Rt((u, [{ scrollHeight: T, scrollTop: R }, I, f, b, k]) => {
1184
+ const F = R + I - T > -k, L = {
1185
1185
  scrollHeight: T,
1186
- scrollTop: b,
1187
- viewportHeight: f
1186
+ scrollTop: R,
1187
+ viewportHeight: I
1188
1188
  };
1189
- if (k) {
1190
- let _, J;
1191
- return b > u.state.scrollTop ? (_ = "SCROLLED_DOWN", J = u.state.scrollTop - b) : (_ = "SIZE_DECREASED", J = u.state.scrollTop - b || u.scrollTopDelta), {
1189
+ if (F) {
1190
+ let D, J;
1191
+ return R > u.state.scrollTop ? (D = "SCROLLED_DOWN", J = u.state.scrollTop - R) : (D = "SIZE_DECREASED", J = u.state.scrollTop - R || u.scrollTopDelta), {
1192
1192
  atBottom: true,
1193
- atBottomBecause: _,
1193
+ atBottomBecause: D,
1194
1194
  scrollTopDelta: J,
1195
1195
  state: L
1196
1196
  };
1197
1197
  }
1198
- let z;
1199
- return L.scrollHeight > u.state.scrollHeight ? z = "SIZE_INCREASED" : f < u.state.viewportHeight ? z = "VIEWPORT_HEIGHT_DECREASING" : b < u.state.scrollTop ? z = "SCROLLING_UPWARDS" : z = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1198
+ let V;
1199
+ return L.scrollHeight > u.state.scrollHeight ? V = "SIZE_INCREASED" : I < u.state.viewportHeight ? V = "VIEWPORT_HEIGHT_DECREASING" : R < u.state.scrollTop ? V = "SCROLLING_UPWARDS" : V = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1200
1200
  atBottom: false,
1201
- notAtBottomBecause: z,
1201
+ notAtBottomBecause: V,
1202
1202
  state: L
1203
1203
  };
1204
- }, Wo),
1205
- Y((u, T) => u && u.atBottom === T.atBottom)
1204
+ }, Ao),
1205
+ Z((u, T) => u && u.atBottom === T.atBottom)
1206
1206
  )
1207
1207
  ), v = ct(
1208
- S(
1208
+ x(
1209
1209
  o,
1210
- bt(
1211
- (u, { scrollHeight: T, scrollTop: b, viewportHeight: f }) => {
1210
+ Rt(
1211
+ (u, { scrollHeight: T, scrollTop: R, viewportHeight: I }) => {
1212
1212
  if ($n(u.scrollHeight, T))
1213
1213
  return {
1214
1214
  changed: false,
1215
1215
  jump: 0,
1216
1216
  scrollHeight: T,
1217
- scrollTop: b
1217
+ scrollTop: R
1218
1218
  };
1219
1219
  {
1220
- const d = T - (b + f) < 1;
1221
- return u.scrollTop !== b && d ? {
1220
+ const f = T - (R + I) < 1;
1221
+ return u.scrollTop !== R && f ? {
1222
1222
  changed: true,
1223
- jump: u.scrollTop - b,
1223
+ jump: u.scrollTop - R,
1224
1224
  scrollHeight: T,
1225
- scrollTop: b
1225
+ scrollTop: R
1226
1226
  } : {
1227
1227
  changed: true,
1228
1228
  jump: 0,
1229
1229
  scrollHeight: T,
1230
- scrollTop: b
1230
+ scrollTop: R
1231
1231
  };
1232
1232
  }
1233
1233
  },
1234
1234
  { changed: false, jump: 0, scrollHeight: 0, scrollTop: 0 }
1235
1235
  ),
1236
- A((u) => u.changed),
1236
+ P((u) => u.changed),
1237
1237
  E((u) => u.jump)
1238
1238
  ),
1239
1239
  0
1240
1240
  );
1241
1241
  O(
1242
- S(
1243
- C,
1242
+ x(
1243
+ w,
1244
1244
  E((u) => u.atBottom)
1245
1245
  ),
1246
1246
  i
1247
- ), O(S(i, kt(50)), c);
1248
- const g = w(te);
1247
+ ), O(x(i, Lt(50)), c);
1248
+ const m = C(te);
1249
1249
  O(
1250
- S(
1250
+ x(
1251
1251
  o,
1252
1252
  E(({ scrollTop: u }) => u),
1253
- Y(),
1254
- bt(
1255
- (u, T) => ot(I) ? { direction: u.direction, prevScrollTop: T } : { direction: T < u.prevScrollTop ? le : te, prevScrollTop: T },
1253
+ Z(),
1254
+ Rt(
1255
+ (u, T) => st(h) ? { direction: u.direction, prevScrollTop: T } : { direction: T < u.prevScrollTop ? le : te, prevScrollTop: T },
1256
1256
  { direction: te, prevScrollTop: 0 }
1257
1257
  ),
1258
1258
  E((u) => u.direction)
1259
1259
  ),
1260
- g
1261
- ), O(S(o, kt(50), Rt(Mo)), g);
1262
- const p = w(0);
1260
+ m
1261
+ ), O(x(o, Lt(50), yt(Po)), m);
1262
+ const d = C(0);
1263
1263
  return O(
1264
- S(
1265
- h,
1266
- A((u) => !u),
1267
- Rt(0)
1264
+ x(
1265
+ g,
1266
+ P((u) => !u),
1267
+ yt(0)
1268
1268
  ),
1269
- p
1269
+ d
1270
1270
  ), O(
1271
- S(
1271
+ x(
1272
1272
  r,
1273
- kt(100),
1274
- N(h),
1275
- A(([u, T]) => !!T),
1276
- bt(([u, T], [b]) => [T, b], [0, 0]),
1273
+ Lt(100),
1274
+ _(g),
1275
+ P(([u, T]) => !!T),
1276
+ Rt(([u, T], [R]) => [T, R], [0, 0]),
1277
1277
  E(([u, T]) => T - u)
1278
1278
  ),
1279
- p
1279
+ d
1280
1280
  ), {
1281
- atBottomState: C,
1281
+ atBottomState: w,
1282
1282
  atBottomStateChange: c,
1283
- atBottomThreshold: m,
1283
+ atBottomThreshold: p,
1284
1284
  atTopStateChange: a,
1285
- atTopThreshold: x,
1285
+ atTopThreshold: S,
1286
1286
  isAtBottom: i,
1287
1287
  isAtTop: l,
1288
- isScrolling: h,
1288
+ isScrolling: g,
1289
1289
  lastJumpDueToItemResize: v,
1290
- scrollDirection: g,
1291
- scrollVelocity: p
1290
+ scrollDirection: m,
1291
+ scrollVelocity: d
1292
1292
  };
1293
1293
  }, X(at)), xe = "top", Te = "bottom", hn = "none";
1294
1294
  function gn(t, e, n) {
@@ -1298,44 +1298,44 @@ function In(t, e) {
1298
1298
  var n;
1299
1299
  return typeof t == "number" ? t : (n = t[e]) != null ? n : 0;
1300
1300
  }
1301
- const je = U(
1301
+ const Ke = U(
1302
1302
  ([{ deviation: t, fixedHeaderHeight: e, headerHeight: n, scrollTop: o, viewportHeight: r }]) => {
1303
- const s = $(), i = w(0), l = w(0), c = w(0), a = ct(
1304
- S(
1303
+ const s = $(), i = C(0), l = C(0), c = C(0), a = ct(
1304
+ x(
1305
1305
  rt(
1306
- V(o),
1307
- V(r),
1308
- V(n),
1309
- V(s, se),
1310
- V(c),
1311
- V(i),
1312
- V(e),
1313
- V(t),
1314
- V(l)
1306
+ A(o),
1307
+ A(r),
1308
+ A(n),
1309
+ A(s, se),
1310
+ A(c),
1311
+ A(i),
1312
+ A(e),
1313
+ A(t),
1314
+ A(l)
1315
1315
  ),
1316
1316
  E(
1317
1317
  ([
1318
- m,
1319
- x,
1320
- h,
1321
- [I, C],
1322
- v,
1323
- g,
1324
1318
  p,
1319
+ S,
1320
+ g,
1321
+ [h, w],
1322
+ v,
1323
+ m,
1324
+ d,
1325
1325
  u,
1326
1326
  T
1327
1327
  ]) => {
1328
- const b = m - u, f = g + p, d = Math.max(h - b, 0);
1329
- let y = hn;
1330
- const B = In(T, xe), k = In(T, Te);
1331
- return I -= u, I += h + p, C += h + p, C -= u, I > m + f - B && (y = le), C < m - d + x + k && (y = te), y !== hn ? [
1332
- Math.max(b - h - gn(v, xe, y) - B, 0),
1333
- b - d - p + x + gn(v, Te, y) + k
1328
+ const R = p - u, I = m + d, f = Math.max(g - R, 0);
1329
+ let b = hn;
1330
+ const k = In(T, xe), F = In(T, Te);
1331
+ return h -= u, h += g + d, w += g + d, w -= u, h > p + I - k && (b = le), w < p - f + S + F && (b = te), b !== hn ? [
1332
+ Math.max(R - g - gn(v, xe, b) - k, 0),
1333
+ R - f - d + S + gn(v, Te, b) + F
1334
1334
  ] : null;
1335
1335
  }
1336
1336
  ),
1337
- A((m) => m != null),
1338
- Y(se)
1337
+ P((p) => p != null),
1338
+ Z(se)
1339
1339
  ),
1340
1340
  [0, 0]
1341
1341
  );
@@ -1352,11 +1352,11 @@ const je = U(
1352
1352
  X(at),
1353
1353
  { singleton: true }
1354
1354
  );
1355
- function _o(t, e, n) {
1355
+ function Wo(t, e, n) {
1356
1356
  if (Re(e)) {
1357
1357
  const o = Gn(t, e);
1358
1358
  return [
1359
- { index: wt(e.groupOffsetTree, o)[0], offset: 0, size: 0 },
1359
+ { index: Ct(e.groupOffsetTree, o)[0], offset: 0, size: 0 },
1360
1360
  { data: n == null ? void 0 : n[0], index: o, offset: 0, size: 0 }
1361
1361
  ];
1362
1362
  }
@@ -1375,36 +1375,36 @@ const Be = {
1375
1375
  };
1376
1376
  function Ie(t, e, n, o, r, s) {
1377
1377
  const { lastIndex: i, lastOffset: l, lastSize: c } = r;
1378
- let a = 0, m = 0;
1378
+ let a = 0, p = 0;
1379
1379
  if (t.length > 0) {
1380
1380
  a = t[0].offset;
1381
1381
  const v = t[t.length - 1];
1382
- m = v.offset + v.size;
1382
+ p = v.offset + v.size;
1383
1383
  }
1384
- const x = n - i, h = l + x * c + (x - 1) * o, I = a, C = h - m;
1384
+ const S = n - i, g = l + S * c + (S - 1) * o, h = a, w = g - p;
1385
1385
  return {
1386
- bottom: m,
1386
+ bottom: p,
1387
1387
  firstItemIndex: s,
1388
1388
  items: Sn(t, r, s),
1389
- offsetBottom: C,
1389
+ offsetBottom: w,
1390
1390
  offsetTop: a,
1391
- top: I,
1391
+ top: h,
1392
1392
  topItems: Sn(e, r, s),
1393
- topListHeight: e.reduce((v, g) => g.size + v, 0),
1393
+ topListHeight: e.reduce((v, m) => m.size + v, 0),
1394
1394
  totalCount: n
1395
1395
  };
1396
1396
  }
1397
1397
  function Un(t, e, n, o, r, s) {
1398
1398
  let i = 0;
1399
1399
  if (n.groupIndices.length > 0)
1400
- for (const m of n.groupIndices) {
1401
- if (m - i >= t)
1400
+ for (const p of n.groupIndices) {
1401
+ if (p - i >= t)
1402
1402
  break;
1403
1403
  i++;
1404
1404
  }
1405
- const l = t + i, c = Ke(e, l), a = Array.from({ length: l }).map((m, x) => ({
1406
- data: s[x + c],
1407
- index: x + c,
1405
+ const l = t + i, c = Ue(e, l), a = Array.from({ length: l }).map((p, S) => ({
1406
+ data: s[S + c],
1407
+ index: S + c,
1408
1408
  offset: 0,
1409
1409
  size: 0
1410
1410
  }));
@@ -1419,15 +1419,15 @@ function Sn(t, e, n) {
1419
1419
  let l, c = 0;
1420
1420
  for (const a of t) {
1421
1421
  (!l || l.end < a.index) && (l = i.shift(), c = e.groupIndices.indexOf(l.start));
1422
- let m;
1423
- a.index === l.start ? m = {
1422
+ let p;
1423
+ a.index === l.start ? p = {
1424
1424
  index: c,
1425
1425
  type: "group"
1426
- } : m = {
1426
+ } : p = {
1427
1427
  groupIndex: c,
1428
1428
  index: a.index - (c + 1) + n
1429
1429
  }, s.push({
1430
- ...m,
1430
+ ...p,
1431
1431
  data: a.data,
1432
1432
  offset: a.offset,
1433
1433
  originalIndex: a.index,
@@ -1436,203 +1436,203 @@ function Sn(t, e, n) {
1436
1436
  }
1437
1437
  return s;
1438
1438
  }
1439
- const $t = U(
1439
+ const Dt = U(
1440
1440
  ([
1441
1441
  { data: t, firstItemIndex: e, gap: n, sizes: o, totalCount: r },
1442
1442
  s,
1443
1443
  { listBoundary: i, topListHeight: l, visibleRange: c },
1444
- { initialTopMostItemIndex: a, scrolledToInitialItem: m },
1445
- { topListHeight: x },
1446
- h,
1447
- { didMount: I },
1448
- { recalcInProgress: C }
1444
+ { initialTopMostItemIndex: a, scrolledToInitialItem: p },
1445
+ { topListHeight: S },
1446
+ g,
1447
+ { didMount: h },
1448
+ { recalcInProgress: w }
1449
1449
  ]) => {
1450
- const v = w([]), g = w(0), p = $();
1450
+ const v = C([]), m = C(0), d = $();
1451
1451
  O(s.topItemsIndexes, v);
1452
1452
  const u = ct(
1453
- S(
1453
+ x(
1454
1454
  rt(
1455
- I,
1456
- C,
1457
- V(c, se),
1458
- V(r),
1459
- V(o),
1460
- V(a),
1461
- m,
1462
- V(v),
1463
- V(e),
1464
- V(n),
1455
+ h,
1456
+ w,
1457
+ A(c, se),
1458
+ A(r),
1459
+ A(o),
1460
+ A(a),
1461
+ p,
1462
+ A(v),
1463
+ A(e),
1464
+ A(n),
1465
1465
  t
1466
1466
  ),
1467
- A(([d, y, , B, , , , , , , k]) => {
1468
- const L = k && k.length !== B;
1469
- return d && !y && !L;
1467
+ P(([f, b, , k, , , , , , , F]) => {
1468
+ const L = F && F.length !== k;
1469
+ return f && !b && !L;
1470
1470
  }),
1471
1471
  E(
1472
1472
  ([
1473
1473
  ,
1474
1474
  ,
1475
- [d, y],
1476
- B,
1475
+ [f, b],
1477
1476
  k,
1477
+ F,
1478
1478
  L,
1479
- z,
1480
- _,
1479
+ V,
1480
+ D,
1481
1481
  J,
1482
1482
  nt,
1483
- F
1483
+ B
1484
1484
  ]) => {
1485
- const q = k, { offsetTree: it, sizeTree: dt } = q, St = ot(g);
1486
- if (B === 0)
1487
- return { ...Be, totalCount: B };
1488
- if (d === 0 && y === 0)
1489
- return St === 0 ? { ...Be, totalCount: B } : Un(St, L, k, J, nt, F || []);
1485
+ const Y = F, { offsetTree: it, sizeTree: dt } = Y, St = st(m);
1486
+ if (k === 0)
1487
+ return { ...Be, totalCount: k };
1488
+ if (f === 0 && b === 0)
1489
+ return St === 0 ? { ...Be, totalCount: k } : Un(St, L, F, J, nt, B || []);
1490
1490
  if (j(dt))
1491
1491
  return St > 0 ? null : Ie(
1492
- _o(Ke(L, B), q, F),
1492
+ Wo(Ue(L, k), Y, B),
1493
1493
  [],
1494
- B,
1494
+ k,
1495
1495
  nt,
1496
- q,
1496
+ Y,
1497
1497
  J
1498
1498
  );
1499
1499
  const ft = [];
1500
- if (_.length > 0) {
1501
- const Mt = _[0], yt = _[_.length - 1];
1500
+ if (D.length > 0) {
1501
+ const Mt = D[0], vt = D[D.length - 1];
1502
1502
  let Bt = 0;
1503
- for (const R of ye(dt, Mt, yt)) {
1504
- const D = R.value, Q = Math.max(R.start, Mt), lt = Math.min(R.end, yt);
1503
+ for (const y of ye(dt, Mt, vt)) {
1504
+ const N = y.value, Q = Math.max(y.start, Mt), lt = Math.min(y.end, vt);
1505
1505
  for (let tt = Q; tt <= lt; tt++)
1506
- ft.push({ data: F == null ? void 0 : F[tt], index: tt, offset: Bt, size: D }), Bt += D;
1506
+ ft.push({ data: B == null ? void 0 : B[tt], index: tt, offset: Bt, size: N }), Bt += N;
1507
1507
  }
1508
1508
  }
1509
- if (!z)
1510
- return Ie([], ft, B, nt, q, J);
1511
- const ut = _.length > 0 ? _[_.length - 1] + 1 : 0, At = Bo(it, d, y, ut);
1509
+ if (!V)
1510
+ return Ie([], ft, k, nt, Y, J);
1511
+ const ut = D.length > 0 ? D[D.length - 1] + 1 : 0, At = Ho(it, f, b, ut);
1512
1512
  if (At.length === 0)
1513
1513
  return null;
1514
- const xt = B - 1, Xt = ve([], (Mt) => {
1515
- for (const yt of At) {
1516
- const Bt = yt.value;
1517
- let R = Bt.offset, D = yt.start;
1514
+ const xt = k - 1, Xt = ve([], (Mt) => {
1515
+ for (const vt of At) {
1516
+ const Bt = vt.value;
1517
+ let y = Bt.offset, N = vt.start;
1518
1518
  const Q = Bt.size;
1519
- if (Bt.offset < d) {
1520
- D += Math.floor((d - Bt.offset + nt) / (Q + nt));
1521
- const tt = D - yt.start;
1522
- R += tt * Q + tt * nt;
1519
+ if (Bt.offset < f) {
1520
+ N += Math.floor((f - Bt.offset + nt) / (Q + nt));
1521
+ const tt = N - vt.start;
1522
+ y += tt * Q + tt * nt;
1523
1523
  }
1524
- D < ut && (R += (ut - D) * Q, D = ut);
1525
- const lt = Math.min(yt.end, xt);
1526
- for (let tt = D; tt <= lt && !(R >= y); tt++)
1527
- Mt.push({ data: F == null ? void 0 : F[tt], index: tt, offset: R, size: Q }), R += Q + nt;
1524
+ N < ut && (y += (ut - N) * Q, N = ut);
1525
+ const lt = Math.min(vt.end, xt);
1526
+ for (let tt = N; tt <= lt && !(y >= b); tt++)
1527
+ Mt.push({ data: B == null ? void 0 : B[tt], index: tt, offset: y, size: Q }), y += Q + nt;
1528
1528
  }
1529
1529
  });
1530
- return Ie(Xt, ft, B, nt, q, J);
1530
+ return Ie(Xt, ft, k, nt, Y, J);
1531
1531
  }
1532
1532
  ),
1533
1533
  //@ts-expect-error filter needs to be fixed
1534
- A((d) => d !== null),
1535
- Y()
1534
+ P((f) => f !== null),
1535
+ Z()
1536
1536
  ),
1537
1537
  Be
1538
1538
  );
1539
1539
  O(
1540
- S(
1540
+ x(
1541
1541
  t,
1542
- A(We),
1543
- E((d) => d == null ? void 0 : d.length)
1542
+ P(Me),
1543
+ E((f) => f == null ? void 0 : f.length)
1544
1544
  ),
1545
1545
  r
1546
1546
  ), O(
1547
- S(
1547
+ x(
1548
1548
  u,
1549
- E((d) => d.topListHeight)
1549
+ E((f) => f.topListHeight)
1550
1550
  ),
1551
- x
1552
- ), O(x, l), O(
1553
- S(
1551
+ S
1552
+ ), O(S, l), O(
1553
+ x(
1554
1554
  u,
1555
- E((d) => [d.top, d.bottom])
1555
+ E((f) => [f.top, f.bottom])
1556
1556
  ),
1557
1557
  i
1558
1558
  ), O(
1559
- S(
1559
+ x(
1560
1560
  u,
1561
- E((d) => d.items)
1561
+ E((f) => f.items)
1562
1562
  ),
1563
- p
1563
+ d
1564
1564
  );
1565
1565
  const T = ht(
1566
- S(
1566
+ x(
1567
1567
  u,
1568
- A(({ items: d }) => d.length > 0),
1569
- N(r, t),
1570
- A(([{ items: d }, y]) => d[d.length - 1].originalIndex === y - 1),
1571
- E(([, d, y]) => [d - 1, y]),
1572
- Y(se),
1573
- E(([d]) => d)
1568
+ P(({ items: f }) => f.length > 0),
1569
+ _(r, t),
1570
+ P(([{ items: f }, b]) => f[f.length - 1].originalIndex === b - 1),
1571
+ E(([, f, b]) => [f - 1, b]),
1572
+ Z(se),
1573
+ E(([f]) => f)
1574
1574
  )
1575
- ), b = ht(
1576
- S(
1575
+ ), R = ht(
1576
+ x(
1577
1577
  u,
1578
- kt(200),
1579
- A(({ items: d, topItems: y }) => d.length > 0 && d[0].originalIndex === y.length),
1580
- E(({ items: d }) => d[0].index),
1581
- Y()
1578
+ Lt(200),
1579
+ P(({ items: f, topItems: b }) => f.length > 0 && f[0].originalIndex === b.length),
1580
+ E(({ items: f }) => f[0].index),
1581
+ Z()
1582
1582
  )
1583
- ), f = ht(
1584
- S(
1583
+ ), I = ht(
1584
+ x(
1585
1585
  u,
1586
- A(({ items: d }) => d.length > 0),
1587
- E(({ items: d }) => {
1588
- let y = 0, B = d.length - 1;
1589
- for (; d[y].type === "group" && y < B; )
1590
- y++;
1591
- for (; d[B].type === "group" && B > y; )
1592
- B--;
1586
+ P(({ items: f }) => f.length > 0),
1587
+ E(({ items: f }) => {
1588
+ let b = 0, k = f.length - 1;
1589
+ for (; f[b].type === "group" && b < k; )
1590
+ b++;
1591
+ for (; f[k].type === "group" && k > b; )
1592
+ k--;
1593
1593
  return {
1594
- endIndex: d[B].index,
1595
- startIndex: d[y].index
1594
+ endIndex: f[k].index,
1595
+ startIndex: f[b].index
1596
1596
  };
1597
1597
  }),
1598
- Y(Mn)
1598
+ Z(Mn)
1599
1599
  )
1600
1600
  );
1601
- return { endReached: T, initialItemCount: g, itemsRendered: p, listState: u, rangeChanged: f, startReached: b, topItemsIndexes: v, ...h };
1601
+ return { endReached: T, initialItemCount: m, itemsRendered: d, listState: u, rangeChanged: I, startReached: R, topItemsIndexes: v, ...g };
1602
1602
  },
1603
1603
  X(
1604
1604
  Et,
1605
1605
  Nn,
1606
- je,
1606
+ Ke,
1607
1607
  ue,
1608
1608
  ce,
1609
1609
  ae,
1610
1610
  Pt,
1611
- De
1611
+ Ne
1612
1612
  ),
1613
1613
  { singleton: true }
1614
1614
  ), Kn = U(
1615
1615
  ([{ fixedFooterHeight: t, fixedHeaderHeight: e, footerHeight: n, headerHeight: o }, { listState: r }]) => {
1616
1616
  const s = $(), i = ct(
1617
- S(
1617
+ x(
1618
1618
  rt(n, t, o, e, r),
1619
- E(([l, c, a, m, x]) => l + c + a + m + x.offsetBottom + x.bottom)
1619
+ E(([l, c, a, p, S]) => l + c + a + p + S.offsetBottom + S.bottom)
1620
1620
  ),
1621
1621
  0
1622
1622
  );
1623
- return O(V(i), s), { totalListHeight: i, totalListHeightChanged: s };
1623
+ return O(A(i), s), { totalListHeight: i, totalListHeightChanged: s };
1624
1624
  },
1625
- X(at, $t),
1625
+ X(at, Dt),
1626
1626
  { singleton: true }
1627
- ), No = U(
1627
+ ), Go = U(
1628
1628
  ([{ viewportHeight: t }, { totalListHeight: e }]) => {
1629
- const n = w(false), o = ct(
1630
- S(
1629
+ const n = C(false), o = ct(
1630
+ x(
1631
1631
  rt(n, t, e),
1632
- A(([r]) => r),
1632
+ P(([r]) => r),
1633
1633
  E(([, r, s]) => Math.max(0, r - s)),
1634
- kt(0),
1635
- Y()
1634
+ Lt(0),
1635
+ Z()
1636
1636
  ),
1637
1637
  0
1638
1638
  );
@@ -1640,192 +1640,103 @@ const $t = U(
1640
1640
  },
1641
1641
  X(at, Kn),
1642
1642
  { singleton: true }
1643
- ), jn = U(() => ({
1644
- context: w(null)
1645
- })), Do = ({
1646
- itemBottom: t,
1647
- itemTop: e,
1648
- locationParams: { align: n, behavior: o, ...r },
1649
- viewportBottom: s,
1650
- viewportTop: i
1651
- }) => e < i ? { ...r, align: n != null ? n : "start", behavior: o } : t > s ? { ...r, align: n != null ? n : "end", behavior: o } : null, qn = U(
1652
- ([
1653
- { gap: t, sizes: e, totalCount: n },
1654
- { fixedFooterHeight: o, fixedHeaderHeight: r, headerHeight: s, scrollingInProgress: i, scrollTop: l, viewportHeight: c },
1655
- { scrollToIndex: a }
1656
- ]) => {
1657
- const m = $();
1658
- return O(
1659
- S(
1660
- m,
1661
- N(e, c, n, s, r, o, l),
1662
- N(t),
1663
- E(([[x, h, I, C, v, g, p, u], T]) => {
1664
- const { align: b, behavior: f, calculateViewLocation: d = Do, done: y, ...B } = x, k = _n(x, h, C - 1), L = ie(k, h.offsetTree, T) + v + g, z = L + wt(h.sizeTree, k)[1], _ = u + g, J = u + I - p, nt = d({
1665
- itemBottom: z,
1666
- itemTop: L,
1667
- locationParams: { align: b, behavior: f, ...B },
1668
- viewportBottom: J,
1669
- viewportTop: _
1670
- });
1671
- return nt ? y && Tt(
1672
- S(
1673
- i,
1674
- A((F) => !F),
1675
- // skips the initial publish of false, and the cleanup call.
1676
- // but if scrollingInProgress is true, we skip the initial publish.
1677
- Dt(ot(i) ? 1 : 2)
1678
- ),
1679
- y
1680
- ) : y && y(), nt;
1681
- }),
1682
- A((x) => x !== null)
1683
- ),
1684
- a
1685
- ), {
1686
- scrollIntoView: m
1687
- };
1688
- },
1689
- X(Et, at, ce, $t, Vt),
1690
- { singleton: true }
1691
1643
  );
1692
1644
  function xn(t) {
1693
1645
  return t ? t === "smooth" ? "smooth" : "auto" : false;
1694
1646
  }
1695
- const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1647
+ const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1696
1648
  ([
1697
- { listRefresh: t, totalCount: e, fixedItemSize: n, data: o },
1698
- { atBottomState: r, isAtBottom: s },
1699
- { scrollToIndex: i },
1700
- { scrolledToInitialItem: l },
1701
- { didMount: c, propsReady: a },
1702
- { log: m },
1703
- { scrollingInProgress: x },
1704
- { context: h },
1705
- { scrollIntoView: I }
1649
+ { listRefresh: t, totalCount: e, fixedItemSize: n },
1650
+ { atBottomState: o, isAtBottom: r },
1651
+ { scrollToIndex: s },
1652
+ { scrolledToInitialItem: i },
1653
+ { didMount: l, propsReady: c },
1654
+ { log: a },
1655
+ { scrollingInProgress: p }
1706
1656
  ]) => {
1707
- const C = w(false), v = $();
1708
- let g = null;
1709
- function p(f) {
1710
- G(i, {
1657
+ const S = C(false), g = $();
1658
+ let h = null;
1659
+ function w(m) {
1660
+ G(s, {
1711
1661
  align: "end",
1712
- behavior: f,
1662
+ behavior: m,
1713
1663
  index: "LAST"
1714
1664
  });
1715
1665
  }
1716
1666
  K(
1717
- S(
1718
- rt(S(V(e), Dt(1)), c),
1719
- N(V(C), s, l, x),
1720
- E(([[f, d], y, B, k, L]) => {
1721
- let z = d && k, _ = "auto";
1722
- return z && (_ = $o(y, B || L), z = z && !!_), { followOutputBehavior: _, shouldFollow: z, totalCount: f };
1667
+ x(
1668
+ rt(x(A(e), jt(1)), l),
1669
+ _(A(S), r, i, p),
1670
+ E(([[m, d], u, T, R, I]) => {
1671
+ let f = d && R, b = "auto";
1672
+ return f && (b = _o(u, T || I), f = f && !!b), { followOutputBehavior: b, shouldFollow: f, totalCount: m };
1723
1673
  }),
1724
- A(({ shouldFollow: f }) => f)
1674
+ P(({ shouldFollow: m }) => m)
1725
1675
  ),
1726
- ({ followOutputBehavior: f, totalCount: d }) => {
1727
- g && (g(), g = null), ot(n) ? requestAnimationFrame(() => {
1728
- ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f);
1729
- }) : g = Tt(t, () => {
1730
- ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f), g = null;
1676
+ ({ followOutputBehavior: m, totalCount: d }) => {
1677
+ h && (h(), h = null), st(n) ? requestAnimationFrame(() => {
1678
+ st(a)("following output to ", { totalCount: d }, mt.DEBUG), w(m);
1679
+ }) : h = bt(t, () => {
1680
+ st(a)("following output to ", { totalCount: d }, mt.DEBUG), w(m), h = null;
1731
1681
  });
1732
1682
  }
1733
1683
  );
1734
- function u(f) {
1735
- const d = Tt(r, (y) => {
1736
- f && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !g && (ot(m)("scrolling to bottom due to increased size", {}, mt.DEBUG), p("auto"));
1684
+ function v(m) {
1685
+ const d = bt(o, (u) => {
1686
+ m && !u.atBottom && u.notAtBottomBecause === "SIZE_INCREASED" && !h && (st(a)("scrolling to bottom due to increased size", {}, mt.DEBUG), w("auto"));
1737
1687
  });
1738
1688
  setTimeout(d, 100);
1739
1689
  }
1740
- K(
1741
- S(
1742
- rt(V(C), e, a),
1743
- A(([f, , d]) => f && d),
1744
- bt(
1745
- ({ value: f }, [, d]) => ({ refreshed: f === d, value: d }),
1690
+ return K(
1691
+ x(
1692
+ rt(A(S), e, c),
1693
+ P(([m, , d]) => m && d),
1694
+ Rt(
1695
+ ({ value: m }, [, d]) => ({ refreshed: m === d, value: d }),
1746
1696
  { refreshed: false, value: 0 }
1747
1697
  ),
1748
- A(({ refreshed: f }) => f),
1749
- N(C, e)
1698
+ P(({ refreshed: m }) => m),
1699
+ _(S, e)
1750
1700
  ),
1751
- ([, f]) => {
1752
- ot(l) && u(f !== false);
1753
- }
1754
- ), K(v, () => {
1755
- u(ot(C) !== false);
1756
- }), K(rt(V(C), r), ([f, d]) => {
1757
- f && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && p("auto");
1758
- });
1759
- const T = w(null), b = $();
1760
- return O(
1761
- Le(
1762
- S(
1763
- V(o),
1764
- E((f) => {
1765
- var d;
1766
- return (d = f == null ? void 0 : f.length) != null ? d : 0;
1767
- })
1768
- ),
1769
- S(V(e))
1770
- ),
1771
- b
1772
- ), K(
1773
- S(
1774
- rt(S(b, Dt(1)), c),
1775
- N(V(T), l, x, h),
1776
- E(([[f, d], y, B, k, L]) => d && B && (y == null ? void 0 : y({ context: L, totalCount: f, scrollingInProgress: k }))),
1777
- A((f) => !!f),
1778
- kt(0)
1779
- ),
1780
- (f) => {
1781
- g && (g(), g = null), ot(n) ? requestAnimationFrame(() => {
1782
- ot(m)("scrolling into view", {}), G(I, f);
1783
- }) : g = Tt(t, () => {
1784
- ot(m)("scrolling into view", {}), G(I, f), g = null;
1785
- });
1701
+ ([, m]) => {
1702
+ st(i) && v(m !== false);
1786
1703
  }
1787
- ), { autoscrollToBottom: v, followOutput: C, scrollIntoViewOnChange: T };
1704
+ ), K(g, () => {
1705
+ v(st(S) !== false);
1706
+ }), K(rt(A(S), o), ([m, d]) => {
1707
+ m && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && w("auto");
1708
+ }), { autoscrollToBottom: g, followOutput: S };
1788
1709
  },
1789
- X(
1790
- Et,
1791
- ae,
1792
- ce,
1793
- ue,
1794
- Pt,
1795
- Vt,
1796
- at,
1797
- jn,
1798
- qn
1799
- )
1800
- ), Ko = U(
1710
+ X(Et, ae, ce, ue, Pt, Vt, at)
1711
+ ), Do = U(
1801
1712
  ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (O(
1802
- S(
1713
+ x(
1803
1714
  l,
1804
- N(s),
1805
- A(([, c]) => c !== 0),
1806
- N(r, o, e, n, t),
1807
- E(([[, c], a, m, x, h, I = []]) => Un(c, a, m, x, h, I))
1715
+ _(s),
1716
+ P(([, c]) => c !== 0),
1717
+ _(r, o, e, n, t),
1718
+ E(([[, c], a, p, S, g, h = []]) => Un(c, a, p, S, g, h))
1808
1719
  ),
1809
1720
  i
1810
1721
  ), {}),
1811
- X(Et, ue, $t, Pt),
1722
+ X(Et, ue, Dt, Pt),
1812
1723
  { singleton: true }
1813
- ), jo = U(
1724
+ ), $o = U(
1814
1725
  ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
1815
- const o = w(0);
1726
+ const o = C(0);
1816
1727
  return K(
1817
- S(
1728
+ x(
1818
1729
  t,
1819
- N(o),
1820
- A(([, r]) => r !== 0),
1730
+ _(o),
1731
+ P(([, r]) => r !== 0),
1821
1732
  E(([, r]) => ({ top: r }))
1822
1733
  ),
1823
1734
  (r) => {
1824
- Tt(
1825
- S(
1735
+ bt(
1736
+ x(
1826
1737
  n,
1827
- Dt(1),
1828
- A((s) => s.items.length > 1)
1738
+ jt(1),
1739
+ P((s) => s.items.length > 1)
1829
1740
  ),
1830
1741
  () => {
1831
1742
  requestAnimationFrame(() => {
@@ -1838,16 +1749,62 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1838
1749
  initialScrollTop: o
1839
1750
  };
1840
1751
  },
1841
- X(Pt, at, $t),
1752
+ X(Pt, at, Dt),
1842
1753
  { singleton: true }
1843
- ), Yn = U(
1754
+ ), Uo = ({
1755
+ itemBottom: t,
1756
+ itemTop: e,
1757
+ locationParams: { align: n, behavior: o, ...r },
1758
+ viewportBottom: s,
1759
+ viewportTop: i
1760
+ }) => e < i ? { ...r, align: n != null ? n : "start", behavior: o } : t > s ? { ...r, align: n != null ? n : "end", behavior: o } : null, Ko = U(
1761
+ ([
1762
+ { gap: t, sizes: e, totalCount: n },
1763
+ { fixedFooterHeight: o, fixedHeaderHeight: r, headerHeight: s, scrollingInProgress: i, scrollTop: l, viewportHeight: c },
1764
+ { scrollToIndex: a }
1765
+ ]) => {
1766
+ const p = $();
1767
+ return O(
1768
+ x(
1769
+ p,
1770
+ _(e, c, n, s, r, o, l),
1771
+ _(t),
1772
+ E(([[S, g, h, w, v, m, d, u], T]) => {
1773
+ const { align: R, behavior: I, calculateViewLocation: f = Uo, done: b, ...k } = S, F = _n(S, g, w - 1), L = ie(F, g.offsetTree, T) + v + m, V = L + Ct(g.sizeTree, F)[1], D = u + m, J = u + h - d, nt = f({
1774
+ itemBottom: V,
1775
+ itemTop: L,
1776
+ locationParams: { align: R, behavior: I, ...k },
1777
+ viewportBottom: J,
1778
+ viewportTop: D
1779
+ });
1780
+ return nt ? b && bt(
1781
+ x(
1782
+ i,
1783
+ P((B) => !B),
1784
+ // skips the initial publish of false, and the cleanup call.
1785
+ // but if scrollingInProgress is true, we skip the initial publish.
1786
+ jt(st(i) ? 1 : 2)
1787
+ ),
1788
+ b
1789
+ ) : b && b(), nt;
1790
+ }),
1791
+ P((S) => S !== null)
1792
+ ),
1793
+ a
1794
+ ), {
1795
+ scrollIntoView: p
1796
+ };
1797
+ },
1798
+ X(Et, at, ce, Dt, Vt),
1799
+ { singleton: true }
1800
+ ), jn = U(
1844
1801
  ([{ scrollVelocity: t }]) => {
1845
- const e = w(false), n = $(), o = w(false);
1802
+ const e = C(false), n = $(), o = C(false);
1846
1803
  return O(
1847
- S(
1804
+ x(
1848
1805
  t,
1849
- N(o, e, n),
1850
- A(([r, s]) => !!s),
1806
+ _(o, e, n),
1807
+ P(([r, s]) => !!s),
1851
1808
  E(([r, s, i, l]) => {
1852
1809
  const { enter: c, exit: a } = s;
1853
1810
  if (i) {
@@ -1857,11 +1814,11 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1857
1814
  return true;
1858
1815
  return i;
1859
1816
  }),
1860
- Y()
1817
+ Z()
1861
1818
  ),
1862
1819
  e
1863
1820
  ), K(
1864
- S(rt(e, t, n), N(o)),
1821
+ x(rt(e, t, n), _(o)),
1865
1822
  ([[r, s, i], l]) => {
1866
1823
  r && l && l.change && l.change(s, i);
1867
1824
  }
@@ -1869,22 +1826,22 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1869
1826
  },
1870
1827
  X(ae),
1871
1828
  { singleton: true }
1872
- ), qe = U(([{ scrollContainerState: t, scrollTo: e }]) => {
1873
- const n = $(), o = $(), r = $(), s = w(false), i = w(void 0);
1829
+ ), je = U(([{ scrollContainerState: t, scrollTo: e }]) => {
1830
+ const n = $(), o = $(), r = $(), s = C(false), i = C(void 0);
1874
1831
  return O(
1875
- S(
1832
+ x(
1876
1833
  rt(n, o),
1877
- E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: m }]) => ({
1834
+ E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: p }]) => ({
1878
1835
  scrollHeight: l,
1879
- scrollTop: Math.max(0, c - m),
1836
+ scrollTop: Math.max(0, c - p),
1880
1837
  viewportHeight: a
1881
1838
  }))
1882
1839
  ),
1883
1840
  t
1884
1841
  ), O(
1885
- S(
1842
+ x(
1886
1843
  e,
1887
- N(o),
1844
+ _(o),
1888
1845
  E(([l, { offsetTop: c }]) => ({
1889
1846
  ...l,
1890
1847
  top: l.top + c
@@ -1901,7 +1858,7 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1901
1858
  windowScrollTo: r,
1902
1859
  windowViewportRect: o
1903
1860
  };
1904
- }, X(at)), qo = U(
1861
+ }, X(at)), jo = U(
1905
1862
  ([
1906
1863
  { sizeRanges: t, sizes: e },
1907
1864
  { headerHeight: n, scrollTop: o },
@@ -1909,130 +1866,130 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1909
1866
  { didMount: s },
1910
1867
  { useWindowScroll: i, windowScrollContainerState: l, windowViewportRect: c }
1911
1868
  ]) => {
1912
- const a = $(), m = w(void 0), x = w(null), h = w(null);
1913
- return O(l, x), O(c, h), K(
1914
- S(
1869
+ const a = $(), p = C(void 0), S = C(null), g = C(null);
1870
+ return O(l, S), O(c, g), K(
1871
+ x(
1915
1872
  a,
1916
- N(e, o, i, x, h, n)
1873
+ _(e, o, i, S, g, n)
1917
1874
  ),
1918
- ([I, C, v, g, p, u, T]) => {
1919
- const b = Fo(C.sizeTree);
1920
- g && p !== null && u !== null && (v = p.scrollTop - u.offsetTop), v -= T, I({ ranges: b, scrollTop: v });
1875
+ ([h, w, v, m, d, u, T]) => {
1876
+ const R = Bo(w.sizeTree);
1877
+ m && d !== null && u !== null && (v = d.scrollTop - u.offsetTop), v -= T, h({ ranges: R, scrollTop: v });
1921
1878
  }
1922
- ), O(S(m, A(We), E(Yo)), r), O(
1923
- S(
1879
+ ), O(x(p, P(Me), E(qo)), r), O(
1880
+ x(
1924
1881
  s,
1925
- N(m),
1926
- A(([, I]) => I !== void 0),
1927
- Y(),
1928
- E(([, I]) => I.ranges)
1882
+ _(p),
1883
+ P(([, h]) => h !== void 0),
1884
+ Z(),
1885
+ E(([, h]) => h.ranges)
1929
1886
  ),
1930
1887
  t
1931
1888
  ), {
1932
1889
  getState: a,
1933
- restoreStateFrom: m
1890
+ restoreStateFrom: p
1934
1891
  };
1935
1892
  },
1936
- X(Et, at, ue, Pt, qe)
1893
+ X(Et, at, ue, Pt, je)
1937
1894
  );
1938
- function Yo(t) {
1895
+ function qo(t) {
1939
1896
  return { align: "start", index: 0, offset: t.scrollTop };
1940
1897
  }
1941
- const Zo = U(([{ topItemsIndexes: t }]) => {
1942
- const e = w(0);
1898
+ const Yo = U(([{ topItemsIndexes: t }]) => {
1899
+ const e = C(0);
1943
1900
  return O(
1944
- S(
1901
+ x(
1945
1902
  e,
1946
- A((n) => n >= 0),
1903
+ P((n) => n >= 0),
1947
1904
  E((n) => Array.from({ length: n }).map((o, r) => r))
1948
1905
  ),
1949
1906
  t
1950
1907
  ), { topItemCount: e };
1951
- }, X($t));
1952
- function Zn(t) {
1908
+ }, X(Dt));
1909
+ function qn(t) {
1953
1910
  let e = false, n;
1954
1911
  return () => (e || (e = true, n = t()), n);
1955
1912
  }
1956
- const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Jo = U(
1913
+ const Zo = qn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Xo = U(
1957
1914
  ([
1958
1915
  { deviation: t, scrollBy: e, scrollingInProgress: n, scrollTop: o },
1959
1916
  { isAtBottom: r, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: l },
1960
1917
  { listState: c },
1961
- { beforeUnshiftWith: a, gap: m, shiftWithOffset: x, sizes: h },
1962
- { log: I },
1963
- { recalcInProgress: C }
1918
+ { beforeUnshiftWith: a, gap: p, shiftWithOffset: S, sizes: g },
1919
+ { log: h },
1920
+ { recalcInProgress: w }
1964
1921
  ]) => {
1965
1922
  const v = ht(
1966
- S(
1923
+ x(
1967
1924
  c,
1968
- N(i),
1969
- bt(
1970
- ([, p, u, T], [{ bottom: b, items: f, offsetBottom: d, totalCount: y }, B]) => {
1971
- const k = b + d;
1925
+ _(i),
1926
+ Rt(
1927
+ ([, d, u, T], [{ bottom: R, items: I, offsetBottom: f, totalCount: b }, k]) => {
1928
+ const F = R + f;
1972
1929
  let L = 0;
1973
- return u === y && p.length > 0 && f.length > 0 && (f[0].originalIndex === 0 && p[0].originalIndex === 0 || (L = k - T, L !== 0 && (L += B))), [L, f, y, k];
1930
+ return u === b && d.length > 0 && I.length > 0 && (I[0].originalIndex === 0 && d[0].originalIndex === 0 || (L = F - T, L !== 0 && (L += k))), [L, I, b, F];
1974
1931
  },
1975
1932
  [0, [], 0, 0]
1976
1933
  ),
1977
- A(([p]) => p !== 0),
1978
- N(o, l, n, r, I, C),
1979
- A(([, p, u, T, , , b]) => !b && !T && p !== 0 && u === le),
1980
- E(([[p], , , , , u]) => (u("Upward scrolling compensation", { amount: p }, mt.DEBUG), p))
1934
+ P(([d]) => d !== 0),
1935
+ _(o, l, n, r, h, w),
1936
+ P(([, d, u, T, , , R]) => !R && !T && d !== 0 && u === le),
1937
+ E(([[d], , , , , u]) => (u("Upward scrolling compensation", { amount: d }, mt.DEBUG), d))
1981
1938
  )
1982
1939
  );
1983
- function g(p) {
1984
- p > 0 ? (G(e, { behavior: "auto", top: -p }), G(t, 0)) : (G(t, 0), G(e, { behavior: "auto", top: -p }));
1940
+ function m(d) {
1941
+ d > 0 ? (G(e, { behavior: "auto", top: -d }), G(t, 0)) : (G(t, 0), G(e, { behavior: "auto", top: -d }));
1985
1942
  }
1986
- return K(S(v, N(t, s)), ([p, u, T]) => {
1987
- T && Xo() ? G(t, u - p) : g(-p);
1943
+ return K(x(v, _(t, s)), ([d, u, T]) => {
1944
+ T && Zo() ? G(t, u - d) : m(-d);
1988
1945
  }), K(
1989
- S(
1990
- rt(ct(s, false), t, C),
1991
- A(([p, u, T]) => !p && !T && u !== 0),
1992
- E(([p, u]) => u),
1993
- kt(1)
1946
+ x(
1947
+ rt(ct(s, false), t, w),
1948
+ P(([d, u, T]) => !d && !T && u !== 0),
1949
+ E(([d, u]) => u),
1950
+ Lt(1)
1994
1951
  ),
1995
- g
1952
+ m
1996
1953
  ), O(
1997
- S(
1998
- x,
1999
- E((p) => ({ top: -p }))
1954
+ x(
1955
+ S,
1956
+ E((d) => ({ top: -d }))
2000
1957
  ),
2001
1958
  e
2002
1959
  ), K(
2003
- S(
1960
+ x(
2004
1961
  a,
2005
- N(h, m),
2006
- E(([p, { groupIndices: u, lastSize: T, sizeTree: b }, f]) => {
2007
- function d(y) {
2008
- return y * (T + f);
1962
+ _(g, p),
1963
+ E(([d, { groupIndices: u, lastSize: T, sizeTree: R }, I]) => {
1964
+ function f(b) {
1965
+ return b * (T + I);
2009
1966
  }
2010
1967
  if (u.length === 0)
2011
- return d(p);
1968
+ return f(d);
2012
1969
  {
2013
- let y = 0;
2014
- const B = re(b, 0);
2015
- let k = 0, L = 0;
2016
- for (; k < p; ) {
2017
- k++, y += B;
2018
- let z = u.length === L + 1 ? 1 / 0 : u[L + 1] - u[L] - 1;
2019
- k + z > p && (y -= B, z = p - k + 1), k += z, y += d(z), L++;
1970
+ let b = 0;
1971
+ const k = re(R, 0);
1972
+ let F = 0, L = 0;
1973
+ for (; F < d; ) {
1974
+ F++, b += k;
1975
+ let V = u.length === L + 1 ? 1 / 0 : u[L + 1] - u[L] - 1;
1976
+ F + V > d && (b -= k, V = d - F + 1), F += V, b += f(V), L++;
2020
1977
  }
2021
- return y;
1978
+ return b;
2022
1979
  }
2023
1980
  })
2024
1981
  ),
2025
- (p) => {
2026
- G(t, p), requestAnimationFrame(() => {
2027
- G(e, { top: p }), requestAnimationFrame(() => {
2028
- G(t, 0), G(C, false);
1982
+ (d) => {
1983
+ G(t, d), requestAnimationFrame(() => {
1984
+ G(e, { top: d }), requestAnimationFrame(() => {
1985
+ G(t, 0), G(w, false);
2029
1986
  });
2030
1987
  });
2031
1988
  }
2032
1989
  ), { deviation: t };
2033
1990
  },
2034
- X(at, ae, $t, Et, Vt, De)
2035
- ), Qo = U(
1991
+ X(at, ae, Dt, Et, Vt, Ne)
1992
+ ), Jo = U(
2036
1993
  ([
2037
1994
  t,
2038
1995
  e,
@@ -2043,8 +2000,7 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2043
2000
  i,
2044
2001
  l,
2045
2002
  c,
2046
- a,
2047
- m
2003
+ a
2048
2004
  ]) => ({
2049
2005
  ...t,
2050
2006
  ...e,
@@ -2055,23 +2011,21 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2055
2011
  ...i,
2056
2012
  ...l,
2057
2013
  ...c,
2058
- ...a,
2059
- ...m
2014
+ ...a
2060
2015
  }),
2061
2016
  X(
2062
- je,
2063
- Ko,
2017
+ Ke,
2018
+ Do,
2064
2019
  Pt,
2065
- Yn,
2020
+ jn,
2066
2021
  Kn,
2067
- jo,
2068
- No,
2069
- qe,
2070
- qn,
2071
- Vt,
2072
- jn
2022
+ $o,
2023
+ Go,
2024
+ je,
2025
+ Ko,
2026
+ Vt
2073
2027
  )
2074
- ), Xn = U(
2028
+ ), Yn = U(
2075
2029
  ([
2076
2030
  {
2077
2031
  data: t,
@@ -2084,22 +2038,22 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2084
2038
  sizeRanges: l,
2085
2039
  sizes: c,
2086
2040
  statefulTotalCount: a,
2087
- totalCount: m,
2088
- trackItemSizes: x
2041
+ totalCount: p,
2042
+ trackItemSizes: S
2089
2043
  },
2090
- { initialItemFinalLocationReached: h, initialTopMostItemIndex: I, scrolledToInitialItem: C },
2044
+ { initialItemFinalLocationReached: g, initialTopMostItemIndex: h, scrolledToInitialItem: w },
2091
2045
  v,
2092
- g,
2093
- p,
2094
- { listState: u, topItemsIndexes: T, ...b },
2095
- { scrollToIndex: f },
2046
+ m,
2096
2047
  d,
2097
- { topItemCount: y },
2098
- { groupCounts: B },
2099
- k
2100
- ]) => (O(b.rangeChanged, k.scrollSeekRangeChanged), O(
2101
- S(
2102
- k.windowViewportRect,
2048
+ { listState: u, topItemsIndexes: T, ...R },
2049
+ { scrollToIndex: I },
2050
+ f,
2051
+ { topItemCount: b },
2052
+ { groupCounts: k },
2053
+ F
2054
+ ]) => (O(R.rangeChanged, F.scrollSeekRangeChanged), O(
2055
+ x(
2056
+ F.windowViewportRect,
2103
2057
  E((L) => L.visibleHeight)
2104
2058
  ),
2105
2059
  v.viewportHeight
@@ -2109,46 +2063,46 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2109
2063
  firstItemIndex: n,
2110
2064
  fixedItemHeight: o,
2111
2065
  gap: r,
2112
- groupCounts: B,
2113
- initialItemFinalLocationReached: h,
2114
- initialTopMostItemIndex: I,
2115
- scrolledToInitialItem: C,
2066
+ groupCounts: k,
2067
+ initialItemFinalLocationReached: g,
2068
+ initialTopMostItemIndex: h,
2069
+ scrolledToInitialItem: w,
2116
2070
  sizeRanges: l,
2117
- topItemCount: y,
2071
+ topItemCount: b,
2118
2072
  topItemsIndexes: T,
2119
2073
  // input
2120
- totalCount: m,
2121
- ...p,
2074
+ totalCount: p,
2075
+ ...d,
2122
2076
  groupIndices: s,
2123
2077
  itemSize: i,
2124
2078
  listState: u,
2125
- scrollToIndex: f,
2079
+ scrollToIndex: I,
2126
2080
  // output
2127
2081
  statefulTotalCount: a,
2128
- trackItemSizes: x,
2082
+ trackItemSizes: S,
2129
2083
  // exported from stateFlagsSystem
2130
- ...b,
2084
+ ...R,
2131
2085
  // the bag of IO from featureGroup1System
2132
- ...k,
2086
+ ...F,
2133
2087
  ...v,
2134
2088
  sizes: c,
2135
- ...g
2089
+ ...m
2136
2090
  }),
2137
2091
  X(
2138
2092
  Et,
2139
2093
  ue,
2140
2094
  at,
2141
- qo,
2142
- Uo,
2143
- $t,
2095
+ jo,
2096
+ No,
2097
+ Dt,
2144
2098
  ce,
2145
- Jo,
2146
- Zo,
2099
+ Xo,
2100
+ Yo,
2147
2101
  Nn,
2148
- Qo
2102
+ Jo
2149
2103
  )
2150
2104
  );
2151
- function tr(t, e) {
2105
+ function Qo(t, e) {
2152
2106
  const n = {}, o = {};
2153
2107
  let r = 0;
2154
2108
  const s = t.length;
@@ -2159,263 +2113,264 @@ function tr(t, e) {
2159
2113
  return n;
2160
2114
  }
2161
2115
  const pe = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
2162
- function Ye(t, e, n) {
2116
+ function qe(t, e, n) {
2163
2117
  const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = React__default.createContext({});
2164
- function c(p, u) {
2165
- p.propsReady && G(p.propsReady, false);
2118
+ function c(d, u) {
2119
+ d.propsReady && G(d.propsReady, false);
2166
2120
  for (const T of o) {
2167
- const b = p[e.required[T]];
2168
- G(b, u[T]);
2121
+ const R = d[e.required[T]];
2122
+ G(R, u[T]);
2169
2123
  }
2170
2124
  for (const T of r)
2171
2125
  if (T in u) {
2172
- const b = p[e.optional[T]];
2173
- G(b, u[T]);
2126
+ const R = d[e.optional[T]];
2127
+ G(R, u[T]);
2174
2128
  }
2175
- p.propsReady && G(p.propsReady, true);
2129
+ d.propsReady && G(d.propsReady, true);
2176
2130
  }
2177
- function a(p) {
2178
- return s.reduce((u, T) => (u[T] = (b) => {
2179
- const f = p[e.methods[T]];
2180
- G(f, b);
2131
+ function a(d) {
2132
+ return s.reduce((u, T) => (u[T] = (R) => {
2133
+ const I = d[e.methods[T]];
2134
+ G(I, R);
2181
2135
  }, u), {});
2182
2136
  }
2183
- function m(p) {
2184
- return i.reduce((u, T) => (u[T] = Io(p[e.events[T]]), u), {});
2137
+ function p(d) {
2138
+ return i.reduce((u, T) => (u[T] = ho(d[e.events[T]]), u), {});
2185
2139
  }
2186
- const x = React__default.forwardRef((p, u) => {
2187
- const { children: T, ...b } = p, [f] = React__default.useState(() => ve(xo(t), (B) => {
2188
- c(B, b);
2189
- })), [d] = React__default.useState(an(m, f));
2140
+ const S = React__default.forwardRef((d, u) => {
2141
+ const { children: T, ...R } = d, [I] = React__default.useState(() => ve(Io(t), (k) => {
2142
+ c(k, R);
2143
+ })), [f] = React__default.useState(un(p, I));
2190
2144
  pe(() => {
2191
- for (const B of i)
2192
- B in b && K(d[B], b[B]);
2145
+ for (const k of i)
2146
+ k in R && K(f[k], R[k]);
2193
2147
  return () => {
2194
- Object.values(d).map(Ge);
2148
+ Object.values(f).map(We);
2195
2149
  };
2196
- }, [b, d, f]), pe(() => {
2197
- c(f, b);
2198
- }), React__default.useImperativeHandle(u, un(a(f)));
2199
- const y = n;
2200
- return /* @__PURE__ */ jsx(l.Provider, { value: f, children: n ? /* @__PURE__ */ jsx(y, { ...tr([...o, ...r, ...i], b), children: T }) : T });
2201
- }), h = (p) => {
2150
+ }, [R, f, I]), pe(() => {
2151
+ c(I, R);
2152
+ }), React__default.useImperativeHandle(u, cn(a(I)));
2153
+ const b = n;
2154
+ return /* @__PURE__ */ jsx(l.Provider, { value: I, children: n ? /* @__PURE__ */ jsx(b, { ...Qo([...o, ...r, ...i], R), children: T }) : T });
2155
+ }), g = (d) => {
2202
2156
  const u = React__default.useContext(l);
2203
2157
  return React__default.useCallback(
2204
2158
  (T) => {
2205
- G(u[p], T);
2159
+ G(u[d], T);
2206
2160
  },
2207
- [u, p]
2161
+ [u, d]
2208
2162
  );
2209
- }, I = (p) => {
2210
- const T = React__default.useContext(l)[p], b = React__default.useCallback(
2211
- (f) => K(T, f),
2163
+ }, h = (d) => {
2164
+ const T = React__default.useContext(l)[d], R = React__default.useCallback(
2165
+ (I) => K(T, I),
2212
2166
  [T]
2213
2167
  );
2214
2168
  return React__default.useSyncExternalStore(
2215
- b,
2216
- () => ot(T),
2217
- () => ot(T)
2169
+ R,
2170
+ () => st(T),
2171
+ () => st(T)
2218
2172
  );
2219
- }, C = (p) => {
2220
- const T = React__default.useContext(l)[p], [b, f] = React__default.useState(an(ot, T));
2173
+ }, w = (d) => {
2174
+ const T = React__default.useContext(l)[d], [R, I] = React__default.useState(un(st, T));
2221
2175
  return pe(
2222
- () => K(T, (d) => {
2223
- d !== b && f(un(d));
2176
+ () => K(T, (f) => {
2177
+ f !== R && I(cn(f));
2224
2178
  }),
2225
- [T, b]
2226
- ), b;
2227
- }, v = React__default.version.startsWith("18") ? I : C;
2179
+ [T, R]
2180
+ ), R;
2181
+ }, v = React__default.version.startsWith("18") ? h : w;
2228
2182
  return {
2229
- Component: x,
2230
- useEmitter: (p, u) => {
2231
- const b = React__default.useContext(l)[p];
2232
- pe(() => K(b, u), [u, b]);
2183
+ Component: S,
2184
+ useEmitter: (d, u) => {
2185
+ const R = React__default.useContext(l)[d];
2186
+ pe(() => K(R, u), [u, R]);
2233
2187
  },
2234
2188
  useEmitterValue: v,
2235
- usePublisher: h
2189
+ usePublisher: g
2236
2190
  };
2237
2191
  }
2238
- const be = React__default.createContext(void 0), Jn = React__default.createContext(void 0), Qn = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
2192
+ const be = React__default.createContext(void 0), Zn = React__default.createContext(void 0), Xn = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
2239
2193
  function ke(t) {
2240
2194
  return "self" in t;
2241
2195
  }
2242
- function er(t) {
2196
+ function tr(t) {
2243
2197
  return "body" in t;
2244
2198
  }
2245
- function to(t, e, n, o = Yt, r, s) {
2199
+ function Jn(t, e, n, o = Yt, r, s) {
2246
2200
  const i = React__default.useRef(null), l = React__default.useRef(null), c = React__default.useRef(null), a = React__default.useCallback(
2247
- (h) => {
2248
- let I, C, v;
2249
- const g = h.target;
2250
- if (er(g) || ke(g)) {
2251
- const u = ke(g) ? g : g.defaultView;
2252
- v = s ? u.scrollX : u.scrollY, I = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, C = s ? u.innerWidth : u.innerHeight;
2201
+ (g) => {
2202
+ let h, w, v;
2203
+ const m = g.target;
2204
+ if (tr(m) || ke(m)) {
2205
+ const u = ke(m) ? m : m.defaultView;
2206
+ v = s ? u.scrollX : u.scrollY, h = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, w = s ? u.innerWidth : u.innerHeight;
2253
2207
  } else
2254
- v = s ? g.scrollLeft : g.scrollTop, I = s ? g.scrollWidth : g.scrollHeight, C = s ? g.offsetWidth : g.offsetHeight;
2255
- const p = () => {
2208
+ v = s ? m.scrollLeft : m.scrollTop, h = s ? m.scrollWidth : m.scrollHeight, w = s ? m.offsetWidth : m.offsetHeight;
2209
+ const d = () => {
2256
2210
  t({
2257
- scrollHeight: I,
2211
+ scrollHeight: h,
2258
2212
  scrollTop: Math.max(v, 0),
2259
- viewportHeight: C
2213
+ viewportHeight: w
2260
2214
  });
2261
2215
  };
2262
- h.suppressFlushSync ? p() : ReactDOM.flushSync(p), l.current !== null && (v === l.current || v <= 0 || v === I - C) && (l.current = null, e(true), c.current && (clearTimeout(c.current), c.current = null));
2216
+ g.suppressFlushSync ? d() : ReactDOM.flushSync(d), l.current !== null && (v === l.current || v <= 0 || v === h - w) && (l.current = null, e(true), c.current && (clearTimeout(c.current), c.current = null));
2263
2217
  },
2264
2218
  [t, e, s]
2265
2219
  );
2266
2220
  React__default.useEffect(() => {
2267
- const h = r || i.current;
2268
- return o(r || i.current), a({ suppressFlushSync: true, target: h }), h.addEventListener("scroll", a, { passive: true }), () => {
2269
- o(null), h.removeEventListener("scroll", a);
2221
+ const g = r || i.current;
2222
+ return o(r || i.current), a({ suppressFlushSync: true, target: g }), g.addEventListener("scroll", a, { passive: true }), () => {
2223
+ o(null), g.removeEventListener("scroll", a);
2270
2224
  };
2271
2225
  }, [i, a, n, o, r]);
2272
- function m(h) {
2273
- const I = i.current;
2274
- if (!I || (s ? "offsetWidth" in I && I.offsetWidth === 0 : "offsetHeight" in I && I.offsetHeight === 0))
2226
+ function p(g) {
2227
+ const h = i.current;
2228
+ if (!h || (s ? "offsetWidth" in h && h.offsetWidth === 0 : "offsetHeight" in h && h.offsetHeight === 0))
2275
2229
  return;
2276
- const C = h.behavior === "smooth";
2277
- let v, g, p;
2278
- ke(I) ? (g = Math.max(
2279
- vt(I.document.documentElement, s ? "width" : "height"),
2280
- s ? I.document.documentElement.scrollWidth : I.document.documentElement.scrollHeight
2281
- ), v = s ? I.innerWidth : I.innerHeight, p = s ? window.scrollX : window.scrollY) : (g = I[s ? "scrollWidth" : "scrollHeight"], v = vt(I, s ? "width" : "height"), p = I[s ? "scrollLeft" : "scrollTop"]);
2282
- const u = g - v;
2283
- if (h.top = Math.ceil(Math.max(Math.min(u, h.top), 0)), $n(v, g) || h.top === p) {
2284
- t({ scrollHeight: g, scrollTop: p, viewportHeight: v }), C && e(true);
2230
+ const w = g.behavior === "smooth";
2231
+ let v, m, d;
2232
+ ke(h) ? (m = Math.max(
2233
+ wt(h.document.documentElement, s ? "width" : "height"),
2234
+ s ? h.document.documentElement.scrollWidth : h.document.documentElement.scrollHeight
2235
+ ), v = s ? h.innerWidth : h.innerHeight, d = s ? window.scrollX : window.scrollY) : (m = h[s ? "scrollWidth" : "scrollHeight"], v = wt(h, s ? "width" : "height"), d = h[s ? "scrollLeft" : "scrollTop"]);
2236
+ const u = m - v;
2237
+ if (g.top = Math.ceil(Math.max(Math.min(u, g.top), 0)), $n(v, m) || g.top === d) {
2238
+ t({ scrollHeight: m, scrollTop: d, viewportHeight: v }), w && e(true);
2285
2239
  return;
2286
2240
  }
2287
- C ? (l.current = h.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
2241
+ w ? (l.current = g.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
2288
2242
  c.current = null, l.current = null, e(true);
2289
- }, 1e3)) : l.current = null, s && (h = { behavior: h.behavior, left: h.top }), I.scrollTo(h);
2243
+ }, 1e3)) : l.current = null, s && (g = { behavior: g.behavior, left: g.top }), h.scrollTo(g);
2290
2244
  }
2291
- function x(h) {
2292
- s && (h = { behavior: h.behavior, left: h.top }), i.current.scrollBy(h);
2245
+ function S(g) {
2246
+ s && (g = { behavior: g.behavior, left: g.top }), i.current.scrollBy(g);
2293
2247
  }
2294
- return { scrollByCallback: x, scrollerRef: i, scrollToCallback: m };
2248
+ return { scrollByCallback: S, scrollerRef: i, scrollToCallback: p };
2295
2249
  }
2296
- const Fe = "-webkit-sticky", Tn = "sticky", Ze = Zn(() => {
2250
+ const Fe = "-webkit-sticky", Tn = "sticky", Ye = qn(() => {
2297
2251
  if (typeof document > "u")
2298
2252
  return Tn;
2299
2253
  const t = document.createElement("div");
2300
2254
  return t.style.position = Fe, t.style.position === Fe ? Fe : Tn;
2301
2255
  });
2302
- function Xe(t) {
2256
+ function Ze(t) {
2303
2257
  return t;
2304
2258
  }
2305
- const nr = /* @__PURE__ */ U(() => {
2306
- const t = w((l) => `Item ${l}`), e = w((l) => `Group ${l}`), n = w({}), o = w(Xe), r = w("div"), s = w(Yt), i = (l, c = null) => ct(
2307
- S(
2308
- n,
2309
- E((a) => a[l]),
2310
- Y()
2259
+ const er = /* @__PURE__ */ U(() => {
2260
+ const t = C((c) => `Item ${c}`), e = C(null), n = C((c) => `Group ${c}`), o = C({}), r = C(Ze), s = C("div"), i = C(Yt), l = (c, a = null) => ct(
2261
+ x(
2262
+ o,
2263
+ E((p) => p[c]),
2264
+ Z()
2311
2265
  ),
2312
- c
2266
+ a
2313
2267
  );
2314
2268
  return {
2315
- components: n,
2316
- computeItemKey: o,
2317
- EmptyPlaceholder: i("EmptyPlaceholder"),
2318
- FooterComponent: i("Footer"),
2319
- GroupComponent: i("Group", "div"),
2320
- groupContent: e,
2321
- HeaderComponent: i("Header"),
2322
- HeaderFooterTag: r,
2323
- ItemComponent: i("Item", "div"),
2269
+ components: o,
2270
+ computeItemKey: r,
2271
+ context: e,
2272
+ EmptyPlaceholder: l("EmptyPlaceholder"),
2273
+ FooterComponent: l("Footer"),
2274
+ GroupComponent: l("Group", "div"),
2275
+ groupContent: n,
2276
+ HeaderComponent: l("Header"),
2277
+ HeaderFooterTag: s,
2278
+ ItemComponent: l("Item", "div"),
2324
2279
  itemContent: t,
2325
- ListComponent: i("List", "div"),
2326
- ScrollerComponent: i("Scroller", "div"),
2327
- scrollerRef: s,
2328
- ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
2329
- TopItemListComponent: i("TopItemList")
2280
+ ListComponent: l("List", "div"),
2281
+ ScrollerComponent: l("Scroller", "div"),
2282
+ scrollerRef: i,
2283
+ ScrollSeekPlaceholder: l("ScrollSeekPlaceholder"),
2284
+ TopItemListComponent: l("TopItemList")
2330
2285
  };
2331
- }), or = /* @__PURE__ */ U(
2286
+ }), nr = /* @__PURE__ */ U(
2332
2287
  ([t, e]) => ({ ...t, ...e }),
2333
- X(Xn, nr)
2334
- ), rr = ({ height: t }) => /* @__PURE__ */ jsx("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, eo = { overflowAnchor: "none" }, ir = { ...eo, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ React__default.memo(function({ showTopList: e = false }) {
2335
- const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), m = M("context"), x = M("groupContent"), h = M("trackItemSizes"), I = M("itemSize"), C = M("log"), v = gt("gap"), g = M("horizontalDirection"), { callbackRef: p } = On(
2288
+ X(Yn, er)
2289
+ ), or = ({ height: t }) => /* @__PURE__ */ jsx("div", { style: { height: t } }), rr = { overflowAnchor: "none", position: Ye(), zIndex: 1 }, Qn = { overflowAnchor: "none" }, sr = { ...Qn, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ React__default.memo(function({ showTopList: e = false }) {
2290
+ const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), p = M("context"), S = M("groupContent"), g = M("trackItemSizes"), h = M("itemSize"), w = M("log"), v = gt("gap"), m = M("horizontalDirection"), { callbackRef: d } = On(
2336
2291
  o,
2337
- I,
2338
2292
  h,
2293
+ g,
2339
2294
  e ? Yt : c,
2340
- C,
2295
+ w,
2341
2296
  v,
2342
2297
  s,
2343
- g,
2298
+ m,
2344
2299
  M("skipAnimationFrameInResizeObserver")
2345
2300
  ), [u, T] = React__default.useState(0);
2346
- tn("deviation", (F) => {
2347
- u !== F && T(F);
2301
+ Qe("deviation", (B) => {
2302
+ u !== B && T(B);
2348
2303
  });
2349
- const b = M("EmptyPlaceholder"), f = M("ScrollSeekPlaceholder") || rr, d = M("ListComponent"), y = M("ItemComponent"), B = M("GroupComponent"), k = M("computeItemKey"), L = M("isSeeking"), z = M("groupIndices").length > 0, _ = M("alignToBottom"), J = M("initialItemFinalLocationReached"), nt = e ? {} : {
2304
+ const R = M("EmptyPlaceholder"), I = M("ScrollSeekPlaceholder") || or, f = M("ListComponent"), b = M("ItemComponent"), k = M("GroupComponent"), F = M("computeItemKey"), L = M("isSeeking"), V = M("groupIndices").length > 0, D = M("alignToBottom"), J = M("initialItemFinalLocationReached"), nt = e ? {} : {
2350
2305
  boxSizing: "border-box",
2351
- ...g ? {
2306
+ ...m ? {
2352
2307
  display: "inline-block",
2353
2308
  height: "100%",
2354
- marginLeft: u !== 0 ? u : _ ? "auto" : 0,
2309
+ marginLeft: u !== 0 ? u : D ? "auto" : 0,
2355
2310
  paddingLeft: n.offsetTop,
2356
2311
  paddingRight: n.offsetBottom,
2357
2312
  whiteSpace: "nowrap"
2358
2313
  } : {
2359
- marginTop: u !== 0 ? u : _ ? "auto" : 0,
2314
+ marginTop: u !== 0 ? u : D ? "auto" : 0,
2360
2315
  paddingBottom: n.offsetBottom,
2361
2316
  paddingTop: n.offsetTop
2362
2317
  },
2363
2318
  ...J ? {} : { visibility: "hidden" }
2364
2319
  };
2365
- return !e && n.totalCount === 0 && b ? /* @__PURE__ */ jsx(b, { ...Z(b, m) }) : /* @__PURE__ */ jsx(
2366
- d,
2320
+ return !e && n.totalCount === 0 && R ? /* @__PURE__ */ jsx(R, { ...q(R, p) }) : /* @__PURE__ */ jsx(
2321
+ f,
2367
2322
  {
2368
- ...Z(d, m),
2323
+ ...q(f, p),
2369
2324
  "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
2370
- ref: p,
2325
+ ref: d,
2371
2326
  style: nt,
2372
- children: (e ? n.topItems : n.items).map((F) => {
2373
- const q = F.originalIndex, it = k(q + n.firstItemIndex, F.data, m);
2327
+ children: (e ? n.topItems : n.items).map((B) => {
2328
+ const Y = B.originalIndex, it = F(Y + n.firstItemIndex, B.data, p);
2374
2329
  return L ? /* @__PURE__ */ createElement(
2375
- f,
2330
+ I,
2376
2331
  {
2377
- ...Z(f, m),
2378
- height: F.size,
2379
- index: F.index,
2332
+ ...q(I, p),
2333
+ height: B.size,
2334
+ index: B.index,
2380
2335
  key: it,
2381
- type: F.type || "item",
2382
- ...F.type === "group" ? {} : { groupIndex: F.groupIndex }
2336
+ type: B.type || "item",
2337
+ ...B.type === "group" ? {} : { groupIndex: B.groupIndex }
2383
2338
  }
2384
- ) : F.type === "group" ? /* @__PURE__ */ createElement(
2385
- B,
2339
+ ) : B.type === "group" ? /* @__PURE__ */ createElement(
2340
+ k,
2386
2341
  {
2387
- ...Z(B, m),
2388
- "data-index": q,
2389
- "data-item-index": F.index,
2390
- "data-known-size": F.size,
2342
+ ...q(k, p),
2343
+ "data-index": Y,
2344
+ "data-item-index": B.index,
2345
+ "data-known-size": B.size,
2391
2346
  key: it,
2392
- style: sr
2347
+ style: rr
2393
2348
  },
2394
- x(F.index, m)
2349
+ S(B.index, p)
2395
2350
  ) : /* @__PURE__ */ createElement(
2396
- y,
2351
+ b,
2397
2352
  {
2398
- ...Z(y, m),
2399
- ...no(y, F.data),
2400
- "data-index": q,
2401
- "data-item-group-index": F.groupIndex,
2402
- "data-item-index": F.index,
2403
- "data-known-size": F.size,
2353
+ ...q(b, p),
2354
+ ...to(b, B.data),
2355
+ "data-index": Y,
2356
+ "data-item-group-index": B.groupIndex,
2357
+ "data-item-index": B.index,
2358
+ "data-known-size": B.size,
2404
2359
  key: it,
2405
- style: g ? ir : eo
2360
+ style: m ? sr : Qn
2406
2361
  },
2407
- z ? a(F.index, F.groupIndex, F.data, m) : a(F.index, F.data, m)
2362
+ V ? a(B.index, B.groupIndex, B.data, p) : a(B.index, B.data, p)
2408
2363
  );
2409
2364
  })
2410
2365
  }
2411
2366
  );
2412
- }), lr = {
2367
+ }), ir = {
2413
2368
  height: "100%",
2414
2369
  outline: "none",
2415
2370
  overflowY: "auto",
2416
2371
  position: "relative",
2417
2372
  WebkitOverflowScrolling: "touch"
2418
- }, cr = {
2373
+ }, lr = {
2419
2374
  outline: "none",
2420
2375
  overflowX: "auto",
2421
2376
  position: "relative"
@@ -2425,106 +2380,106 @@ const nr = /* @__PURE__ */ U(() => {
2425
2380
  top: 0,
2426
2381
  width: "100%",
2427
2382
  ...t ? { display: "flex", flexDirection: "column" } : {}
2428
- }), ur = {
2429
- position: Ze(),
2383
+ }), cr = {
2384
+ position: Ye(),
2430
2385
  top: 0,
2431
2386
  width: "100%",
2432
2387
  zIndex: 1
2433
2388
  };
2434
- function Z(t, e) {
2389
+ function q(t, e) {
2435
2390
  if (typeof t != "string")
2436
2391
  return { context: e };
2437
2392
  }
2438
- function no(t, e) {
2393
+ function to(t, e) {
2439
2394
  return { item: typeof t == "string" ? void 0 : e };
2440
2395
  }
2441
- const ar = /* @__PURE__ */ React__default.memo(function() {
2396
+ const ur = /* @__PURE__ */ React__default.memo(function() {
2442
2397
  const e = M("HeaderComponent"), n = gt("headerHeight"), o = M("HeaderFooterTag"), r = Ht(
2443
2398
  React__default.useMemo(
2444
2399
  () => (i) => {
2445
- n(vt(i, "height"));
2400
+ n(wt(i, "height"));
2446
2401
  },
2447
2402
  [n]
2448
2403
  ),
2449
2404
  true,
2450
2405
  M("skipAnimationFrameInResizeObserver")
2451
2406
  ), s = M("context");
2452
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
2453
- }), dr = /* @__PURE__ */ React__default.memo(function() {
2407
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
2408
+ }), ar = /* @__PURE__ */ React__default.memo(function() {
2454
2409
  const e = M("FooterComponent"), n = gt("footerHeight"), o = M("HeaderFooterTag"), r = Ht(
2455
2410
  React__default.useMemo(
2456
2411
  () => (i) => {
2457
- n(vt(i, "height"));
2412
+ n(wt(i, "height"));
2458
2413
  },
2459
2414
  [n]
2460
2415
  ),
2461
2416
  true,
2462
2417
  M("skipAnimationFrameInResizeObserver")
2463
2418
  ), s = M("context");
2464
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
2419
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
2465
2420
  });
2466
- function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2467
- return React__default.memo(function({ children: s, style: i, context: l, ...c }) {
2468
- const a = n("scrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), h = e("scrollerRef"), I = e("horizontalDirection") || false, { scrollByCallback: C, scrollerRef: v, scrollToCallback: g } = to(
2421
+ function Xe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2422
+ return React__default.memo(function({ children: s, style: i, ...l }) {
2423
+ const c = n("scrollContainerState"), a = e("ScrollerComponent"), p = n("smoothScrollTargetReached"), S = e("scrollerRef"), g = e("context"), h = e("horizontalDirection") || false, { scrollByCallback: w, scrollerRef: v, scrollToCallback: m } = Jn(
2424
+ c,
2425
+ p,
2469
2426
  a,
2470
- x,
2471
- m,
2472
- h,
2427
+ S,
2473
2428
  void 0,
2474
- I
2429
+ h
2475
2430
  );
2476
- return t("scrollTo", g), t("scrollBy", C), /* @__PURE__ */ jsx(
2477
- m,
2431
+ return t("scrollTo", m), t("scrollBy", w), /* @__PURE__ */ jsx(
2432
+ a,
2478
2433
  {
2479
2434
  "data-testid": "virtuoso-scroller",
2480
2435
  "data-virtuoso-scroller": true,
2481
2436
  ref: v,
2482
- style: { ...I ? cr : lr, ...i },
2437
+ style: { ...h ? lr : ir, ...i },
2483
2438
  tabIndex: 0,
2484
- ...c,
2485
- ...Z(m, l),
2439
+ ...l,
2440
+ ...q(a, g),
2486
2441
  children: s
2487
2442
  }
2488
2443
  );
2489
2444
  });
2490
2445
  }
2491
- function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2492
- return React__default.memo(function({ children: s, style: i, context: l, ...c }) {
2493
- const a = n("windowScrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), h = e("totalListHeight"), I = e("deviation"), C = e("customScrollParent"), v = React__default.useRef(null), g = e("scrollerRef"), { scrollByCallback: p, scrollerRef: u, scrollToCallback: T } = to(
2446
+ function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2447
+ return React__default.memo(function({ children: s, style: i, ...l }) {
2448
+ const c = n("windowScrollContainerState"), a = e("ScrollerComponent"), p = n("smoothScrollTargetReached"), S = e("totalListHeight"), g = e("deviation"), h = e("customScrollParent"), w = e("context"), v = React__default.useRef(null), m = e("scrollerRef"), { scrollByCallback: d, scrollerRef: u, scrollToCallback: T } = Jn(
2449
+ c,
2450
+ p,
2494
2451
  a,
2495
- x,
2496
2452
  m,
2497
- g,
2498
- C
2453
+ h
2499
2454
  );
2500
- return Qn(() => {
2501
- var b;
2502
- return u.current = C || ((b = v.current) == null ? void 0 : b.ownerDocument.defaultView), () => {
2455
+ return Xn(() => {
2456
+ var R;
2457
+ return u.current = h || ((R = v.current) == null ? void 0 : R.ownerDocument.defaultView), () => {
2503
2458
  u.current = null;
2504
2459
  };
2505
- }, [u, C]), t("windowScrollTo", T), t("scrollBy", p), /* @__PURE__ */ jsx(
2506
- m,
2460
+ }, [u, h]), t("windowScrollTo", T), t("scrollBy", d), /* @__PURE__ */ jsx(
2461
+ a,
2507
2462
  {
2508
2463
  ref: v,
2509
2464
  "data-virtuoso-scroller": true,
2510
- style: { position: "relative", ...i, ...h !== 0 ? { height: h + I } : {} },
2511
- ...c,
2512
- ...Z(m, l),
2465
+ style: { position: "relative", ...i, ...S !== 0 ? { height: S + g } : {} },
2466
+ ...l,
2467
+ ...q(a, w),
2513
2468
  children: s
2514
2469
  }
2515
2470
  );
2516
2471
  });
2517
2472
  }
2518
- const fr = ({ children: t }) => {
2473
+ const dr = ({ children: t }) => {
2519
2474
  const e = React__default.useContext(be), n = gt("viewportHeight"), o = gt("fixedItemHeight"), r = M("alignToBottom"), s = M("horizontalDirection"), i = React__default.useMemo(
2520
- () => ne(n, (c) => vt(c, s ? "width" : "height")),
2475
+ () => ne(n, (c) => wt(c, s ? "width" : "height")),
2521
2476
  [n, s]
2522
2477
  ), l = Ht(i, true, M("skipAnimationFrameInResizeObserver"));
2523
2478
  return React__default.useEffect(() => {
2524
2479
  e && (n(e.viewportHeight), o(e.itemHeight));
2525
2480
  }, [e, n, o]), /* @__PURE__ */ jsx("div", { "data-viewport-type": "element", ref: l, style: Zt(r), children: t });
2526
- }, mr = ({ children: t }) => {
2527
- const e = React__default.useContext(be), n = gt("windowViewportRect"), o = gt("fixedItemHeight"), r = M("customScrollParent"), s = Ne(
2481
+ }, fr = ({ children: t }) => {
2482
+ const e = React__default.useContext(be), n = gt("windowViewportRect"), o = gt("fixedItemHeight"), r = M("customScrollParent"), s = _e(
2528
2483
  n,
2529
2484
  r,
2530
2485
  M("skipAnimationFrameInResizeObserver")
@@ -2532,33 +2487,32 @@ const fr = ({ children: t }) => {
2532
2487
  return React__default.useEffect(() => {
2533
2488
  e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2534
2489
  }, [e, n, o]), /* @__PURE__ */ jsx("div", { "data-viewport-type": "window", ref: s, style: Zt(i), children: t });
2535
- }, pr = ({ children: t }) => {
2536
- const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...ur, marginTop: `${n}px` }, r = M("context");
2537
- return /* @__PURE__ */ jsx(e, { style: o, ...Z(e, r), children: t });
2538
- }, hr = /* @__PURE__ */ React__default.memo(function(e) {
2539
- const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context");
2540
- return /* @__PURE__ */ jsxs(r || n ? Ir : gr, { ...e, context: s, children: [
2541
- o && /* @__PURE__ */ jsx(pr, { children: /* @__PURE__ */ jsx(Cn, { showTopList: true }) }),
2542
- /* @__PURE__ */ jsxs(r || n ? mr : fr, { children: [
2543
- /* @__PURE__ */ jsx(ar, {}),
2490
+ }, mr = ({ children: t }) => {
2491
+ const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...cr, marginTop: `${n}px` }, r = M("context");
2492
+ return /* @__PURE__ */ jsx(e, { style: o, ...q(e, r), children: t });
2493
+ }, pr = /* @__PURE__ */ React__default.memo(function(e) {
2494
+ const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context"), i = r || n ? gr : hr, l = r || n ? fr : dr;
2495
+ return /* @__PURE__ */ jsxs(i, { ...e, ...q(i, s), children: [
2496
+ o && /* @__PURE__ */ jsx(mr, { children: /* @__PURE__ */ jsx(Cn, { showTopList: true }) }),
2497
+ /* @__PURE__ */ jsxs(l, { children: [
2498
+ /* @__PURE__ */ jsx(ur, {}),
2544
2499
  /* @__PURE__ */ jsx(Cn, {}),
2545
- /* @__PURE__ */ jsx(dr, {})
2500
+ /* @__PURE__ */ jsx(ar, {})
2546
2501
  ] })
2547
2502
  ] });
2548
2503
  }), {
2549
- Component: oo,
2550
- useEmitter: tn,
2504
+ Component: eo,
2505
+ useEmitter: Qe,
2551
2506
  useEmitterValue: M,
2552
2507
  usePublisher: gt
2553
- } = /* @__PURE__ */ Ye(
2554
- or,
2508
+ } = /* @__PURE__ */ qe(
2509
+ nr,
2555
2510
  {
2556
2511
  required: {},
2557
2512
  optional: {
2558
2513
  restoreStateFrom: "restoreStateFrom",
2559
2514
  context: "context",
2560
2515
  followOutput: "followOutput",
2561
- scrollIntoViewOnChange: "scrollIntoViewOnChange",
2562
2516
  itemContent: "itemContent",
2563
2517
  groupContent: "groupContent",
2564
2518
  overscan: "overscan",
@@ -2608,21 +2562,21 @@ const fr = ({ children: t }) => {
2608
2562
  groupIndices: "groupIndices"
2609
2563
  }
2610
2564
  },
2611
- hr
2612
- ), gr = /* @__PURE__ */ Je({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), Ir = /* @__PURE__ */ Qe({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), qr = oo, Sr = /* @__PURE__ */ U(() => {
2613
- const t = w((a) => /* @__PURE__ */ jsxs("td", { children: [
2565
+ pr
2566
+ ), hr = /* @__PURE__ */ Xe({ useEmitter: Qe, useEmitterValue: M, usePublisher: gt }), gr = /* @__PURE__ */ Je({ useEmitter: Qe, useEmitterValue: M, usePublisher: gt }), jr = eo, Ir = /* @__PURE__ */ U(() => {
2567
+ const t = C((a) => /* @__PURE__ */ jsxs("td", { children: [
2614
2568
  "Item $",
2615
2569
  a
2616
- ] })), e = w(null), n = w((a) => /* @__PURE__ */ jsxs("td", { colSpan: 1e3, children: [
2570
+ ] })), e = C(null), n = C((a) => /* @__PURE__ */ jsxs("td", { colSpan: 1e3, children: [
2617
2571
  "Group ",
2618
2572
  a
2619
- ] })), o = w(null), r = w(null), s = w({}), i = w(Xe), l = w(Yt), c = (a, m = null) => ct(
2620
- S(
2573
+ ] })), o = C(null), r = C(null), s = C({}), i = C(Ze), l = C(Yt), c = (a, p = null) => ct(
2574
+ x(
2621
2575
  s,
2622
- E((x) => x[a]),
2623
- Y()
2576
+ E((S) => S[a]),
2577
+ Z()
2624
2578
  ),
2625
- m
2579
+ p
2626
2580
  );
2627
2581
  return {
2628
2582
  components: s,
@@ -2646,8 +2600,8 @@ const fr = ({ children: t }) => {
2646
2600
  };
2647
2601
  }); /* @__PURE__ */ U(
2648
2602
  ([t, e]) => ({ ...t, ...e }),
2649
- X(Xn, Sr)
2650
- ); ({ position: Ze()}); const yn = {
2603
+ X(Yn, Ir)
2604
+ ); ({ position: Ye()}); const yn = {
2651
2605
  bottom: 0,
2652
2606
  itemHeight: 0,
2653
2607
  items: [],
@@ -2655,7 +2609,7 @@ const fr = ({ children: t }) => {
2655
2609
  offsetBottom: 0,
2656
2610
  offsetTop: 0,
2657
2611
  top: 0
2658
- }, Br = {
2612
+ }, Er = {
2659
2613
  bottom: 0,
2660
2614
  itemHeight: 0,
2661
2615
  items: [{ index: 0 }],
@@ -2667,289 +2621,289 @@ const fr = ({ children: t }) => {
2667
2621
  function Hn(t, e, n) {
2668
2622
  return Array.from({ length: e - t + 1 }).map((o, r) => ({ data: n === null ? null : n[r + t], index: r + t }));
2669
2623
  }
2670
- function kr(t) {
2624
+ function Br(t) {
2671
2625
  return {
2672
- ...Br,
2626
+ ...Er,
2673
2627
  items: t
2674
2628
  };
2675
2629
  }
2676
2630
  function he(t, e) {
2677
2631
  return t && t.width === e.width && t.height === e.height;
2678
2632
  }
2679
- function Fr(t, e) {
2633
+ function kr(t, e) {
2680
2634
  return t && t.column === e.column && t.row === e.row;
2681
2635
  }
2682
- const Or = /* @__PURE__ */ U(
2636
+ const Fr = /* @__PURE__ */ U(
2683
2637
  ([
2684
2638
  { increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
2685
- { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight: x },
2639
+ { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: p, viewportHeight: S },
2640
+ g,
2686
2641
  h,
2687
- I,
2688
- { didMount: C, propsReady: v },
2689
- { customScrollParent: g, useWindowScroll: p, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: b },
2690
- f
2642
+ { didMount: w, propsReady: v },
2643
+ { customScrollParent: m, useWindowScroll: d, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: R },
2644
+ I
2691
2645
  ]) => {
2692
- const d = w(0), y = w(0), B = w(yn), k = w({ height: 0, width: 0 }), L = w({ height: 0, width: 0 }), z = $(), _ = $(), J = w(0), nt = w(null), F = w({ column: 0, row: 0 }), q = $(), it = $(), dt = w(false), St = w(0), ft = w(true), ut = w(false), At = w(false);
2646
+ const f = C(0), b = C(0), k = C(yn), F = C({ height: 0, width: 0 }), L = C({ height: 0, width: 0 }), V = $(), D = $(), J = C(0), nt = C(null), B = C({ column: 0, row: 0 }), Y = $(), it = $(), dt = C(false), St = C(0), ft = C(true), ut = C(false), At = C(false);
2693
2647
  K(
2694
- S(
2695
- C,
2696
- N(St),
2697
- A(([R, D]) => !!D)
2648
+ x(
2649
+ w,
2650
+ _(St),
2651
+ P(([y, N]) => !!N)
2698
2652
  ),
2699
2653
  () => {
2700
2654
  G(ft, false);
2701
2655
  }
2702
2656
  ), K(
2703
- S(
2704
- rt(C, ft, L, k, St, ut),
2705
- A(([R, D, Q, lt, , tt]) => R && !D && Q.height !== 0 && lt.height !== 0 && !tt)
2657
+ x(
2658
+ rt(w, ft, L, F, St, ut),
2659
+ P(([y, N, Q, lt, , tt]) => y && !N && Q.height !== 0 && lt.height !== 0 && !tt)
2706
2660
  ),
2707
- ([, , , , R]) => {
2708
- G(ut, true), Ue(1, () => {
2709
- G(z, R);
2710
- }), Tt(S(a), () => {
2661
+ ([, , , , y]) => {
2662
+ G(ut, true), $e(1, () => {
2663
+ G(V, y);
2664
+ }), bt(x(a), () => {
2711
2665
  G(e, [0, 0]), G(ft, true);
2712
2666
  });
2713
2667
  }
2714
2668
  ), O(
2715
- S(
2669
+ x(
2716
2670
  it,
2717
- A((R) => R != null && R.scrollTop > 0),
2718
- Rt(0)
2671
+ P((y) => y != null && y.scrollTop > 0),
2672
+ yt(0)
2719
2673
  ),
2720
- y
2674
+ b
2721
2675
  ), K(
2722
- S(
2723
- C,
2724
- N(it),
2725
- A(([, R]) => R != null)
2676
+ x(
2677
+ w,
2678
+ _(it),
2679
+ P(([, y]) => y != null)
2726
2680
  ),
2727
- ([, R]) => {
2728
- R && (G(k, R.viewport), G(L, R.item), G(F, R.gap), R.scrollTop > 0 && (G(dt, true), Tt(S(a, Dt(1)), (D) => {
2681
+ ([, y]) => {
2682
+ y && (G(F, y.viewport), G(L, y.item), G(B, y.gap), y.scrollTop > 0 && (G(dt, true), bt(x(a, jt(1)), (N) => {
2729
2683
  G(dt, false);
2730
- }), G(c, { top: R.scrollTop })));
2684
+ }), G(c, { top: y.scrollTop })));
2731
2685
  }
2732
2686
  ), O(
2733
- S(
2734
- k,
2735
- E(({ height: R }) => R)
2687
+ x(
2688
+ F,
2689
+ E(({ height: y }) => y)
2736
2690
  ),
2737
- x
2691
+ S
2738
2692
  ), O(
2739
- S(
2693
+ x(
2740
2694
  rt(
2741
- V(k, he),
2742
- V(L, he),
2743
- V(F, (R, D) => R && R.column === D.column && R.row === D.row),
2744
- V(a)
2695
+ A(F, he),
2696
+ A(L, he),
2697
+ A(B, (y, N) => y && y.column === N.column && y.row === N.row),
2698
+ A(a)
2745
2699
  ),
2746
- E(([R, D, Q, lt]) => ({
2700
+ E(([y, N, Q, lt]) => ({
2747
2701
  gap: Q,
2748
- item: D,
2702
+ item: N,
2749
2703
  scrollTop: lt,
2750
- viewport: R
2704
+ viewport: y
2751
2705
  }))
2752
2706
  ),
2753
- q
2707
+ Y
2754
2708
  ), O(
2755
- S(
2709
+ x(
2756
2710
  rt(
2757
- V(d),
2711
+ A(f),
2758
2712
  o,
2759
- V(F, Fr),
2760
- V(L, he),
2761
- V(k, he),
2762
- V(nt),
2763
- V(y),
2764
- V(dt),
2765
- V(ft),
2766
- V(St)
2713
+ A(B, kr),
2714
+ A(L, he),
2715
+ A(F, he),
2716
+ A(nt),
2717
+ A(b),
2718
+ A(dt),
2719
+ A(ft),
2720
+ A(St)
2767
2721
  ),
2768
- A(([, , , , , , , R]) => !R),
2722
+ P(([, , , , , , , y]) => !y),
2769
2723
  E(
2770
2724
  ([
2771
- R,
2772
- [D, Q],
2725
+ y,
2726
+ [N, Q],
2773
2727
  lt,
2774
2728
  tt,
2775
- Ft,
2729
+ kt,
2776
2730
  Jt,
2777
- Ut,
2731
+ $t,
2778
2732
  ,
2779
2733
  de,
2780
- Ot
2734
+ Ft
2781
2735
  ]) => {
2782
- const { column: Lt, row: Qt } = lt, { height: fe, width: He } = tt, { width: nn } = Ft;
2783
- if (Ut === 0 && (R === 0 || nn === 0))
2736
+ const { column: Ot, row: Qt } = lt, { height: fe, width: He } = tt, { width: en } = kt;
2737
+ if ($t === 0 && (y === 0 || en === 0))
2784
2738
  return yn;
2785
2739
  if (He === 0) {
2786
- const cn = Ke(Ot, R), co = cn + Math.max(Ut - 1, 0);
2787
- return kr(Hn(cn, co, Jt));
2740
+ const ln = Ue(Ft, y), io = ln + Math.max($t - 1, 0);
2741
+ return Br(Hn(ln, io, Jt));
2788
2742
  }
2789
- const me = so(nn, He, Lt);
2790
- let Kt, Wt;
2791
- de ? D === 0 && Q === 0 && Ut > 0 ? (Kt = 0, Wt = Ut - 1) : (Kt = me * Ce((D + Qt) / (fe + Qt)), Wt = me * Rn((Q + Qt) / (fe + Qt)) - 1, Wt = Oe(R - 1, ee(Wt, me - 1)), Kt = Oe(Wt, ee(0, Kt))) : (Kt = 0, Wt = -1);
2792
- const on = Hn(Kt, Wt, Jt), { bottom: rn, top: sn } = En(Ft, lt, tt, on), ln = Rn(R / me), lo = ln * fe + (ln - 1) * Qt - rn;
2793
- return { bottom: rn, itemHeight: fe, items: on, itemWidth: He, offsetBottom: lo, offsetTop: sn, top: sn };
2743
+ const me = oo(en, He, Ot);
2744
+ let Ut, Wt;
2745
+ de ? N === 0 && Q === 0 && $t > 0 ? (Ut = 0, Wt = $t - 1) : (Ut = me * Ce((N + Qt) / (fe + Qt)), Wt = me * Rn((Q + Qt) / (fe + Qt)) - 1, Wt = Oe(y - 1, ee(Wt, me - 1)), Ut = Oe(Wt, ee(0, Ut))) : (Ut = 0, Wt = -1);
2746
+ const nn = Hn(Ut, Wt, Jt), { bottom: on, top: rn } = En(kt, lt, tt, nn), sn = Rn(y / me), so = sn * fe + (sn - 1) * Qt - on;
2747
+ return { bottom: on, itemHeight: fe, items: nn, itemWidth: He, offsetBottom: so, offsetTop: rn, top: rn };
2794
2748
  }
2795
2749
  )
2796
2750
  ),
2797
- B
2751
+ k
2798
2752
  ), O(
2799
- S(
2753
+ x(
2800
2754
  nt,
2801
- A((R) => R !== null),
2802
- E((R) => R.length)
2755
+ P((y) => y !== null),
2756
+ E((y) => y.length)
2803
2757
  ),
2804
- d
2758
+ f
2805
2759
  ), O(
2806
- S(
2807
- rt(k, L, B, F),
2808
- A(([R, D, { items: Q }]) => Q.length > 0 && D.height !== 0 && R.height !== 0),
2809
- E(([R, D, { items: Q }, lt]) => {
2810
- const { bottom: tt, top: Ft } = En(R, lt, D, Q);
2811
- return [Ft, tt];
2760
+ x(
2761
+ rt(F, L, k, B),
2762
+ P(([y, N, { items: Q }]) => Q.length > 0 && N.height !== 0 && y.height !== 0),
2763
+ E(([y, N, { items: Q }, lt]) => {
2764
+ const { bottom: tt, top: kt } = En(y, lt, N, Q);
2765
+ return [kt, tt];
2812
2766
  }),
2813
- Y(se)
2767
+ Z(se)
2814
2768
  ),
2815
2769
  e
2816
2770
  );
2817
- const xt = w(false);
2771
+ const xt = C(false);
2818
2772
  O(
2819
- S(
2773
+ x(
2820
2774
  a,
2821
- N(xt),
2822
- E(([R, D]) => D || R !== 0)
2775
+ _(xt),
2776
+ E(([y, N]) => N || y !== 0)
2823
2777
  ),
2824
2778
  xt
2825
2779
  );
2826
2780
  const Xt = ht(
2827
- S(
2828
- rt(B, d),
2829
- A(([{ items: R }]) => R.length > 0),
2830
- N(xt),
2831
- A(([[R, D], Q]) => {
2832
- const tt = R.items[R.items.length - 1].index === D - 1;
2833
- return (Q || R.bottom > 0 && R.itemHeight > 0 && R.offsetBottom === 0 && R.items.length === D) && tt;
2781
+ x(
2782
+ rt(k, f),
2783
+ P(([{ items: y }]) => y.length > 0),
2784
+ _(xt),
2785
+ P(([[y, N], Q]) => {
2786
+ const tt = y.items[y.items.length - 1].index === N - 1;
2787
+ return (Q || y.bottom > 0 && y.itemHeight > 0 && y.offsetBottom === 0 && y.items.length === N) && tt;
2834
2788
  }),
2835
- E(([[, R]]) => R - 1),
2836
- Y()
2789
+ E(([[, y]]) => y - 1),
2790
+ Z()
2837
2791
  )
2838
2792
  ), Mt = ht(
2839
- S(
2840
- V(B),
2841
- A(({ items: R }) => R.length > 0 && R[0].index === 0),
2842
- Rt(0),
2843
- Y()
2793
+ x(
2794
+ A(k),
2795
+ P(({ items: y }) => y.length > 0 && y[0].index === 0),
2796
+ yt(0),
2797
+ Z()
2844
2798
  )
2845
- ), yt = ht(
2846
- S(
2847
- V(B),
2848
- N(dt),
2849
- A(([{ items: R }, D]) => R.length > 0 && !D),
2850
- E(([{ items: R }]) => ({
2851
- endIndex: R[R.length - 1].index,
2852
- startIndex: R[0].index
2799
+ ), vt = ht(
2800
+ x(
2801
+ A(k),
2802
+ _(dt),
2803
+ P(([{ items: y }, N]) => y.length > 0 && !N),
2804
+ E(([{ items: y }]) => ({
2805
+ endIndex: y[y.length - 1].index,
2806
+ startIndex: y[0].index
2853
2807
  })),
2854
- Y(Mn),
2855
- kt(0)
2808
+ Z(Mn),
2809
+ Lt(0)
2856
2810
  )
2857
2811
  );
2858
- O(yt, I.scrollSeekRangeChanged), O(
2859
- S(
2860
- z,
2861
- N(k, L, d, F),
2862
- E(([R, D, Q, lt, tt]) => {
2863
- const Ft = Dn(R), { align: Jt, behavior: Ut, offset: de } = Ft;
2864
- let Ot = Ft.index;
2865
- Ot === "LAST" && (Ot = lt - 1), Ot = ee(0, Ot, Oe(lt - 1, Ot));
2866
- let Lt = Me(D, tt, Q, Ot);
2867
- return Jt === "end" ? Lt = bn(Lt - D.height + Q.height) : Jt === "center" && (Lt = bn(Lt - D.height / 2 + Q.height / 2)), de && (Lt += de), { behavior: Ut, top: Lt };
2812
+ O(vt, h.scrollSeekRangeChanged), O(
2813
+ x(
2814
+ V,
2815
+ _(F, L, f, B),
2816
+ E(([y, N, Q, lt, tt]) => {
2817
+ const kt = Dn(y), { align: Jt, behavior: $t, offset: de } = kt;
2818
+ let Ft = kt.index;
2819
+ Ft === "LAST" && (Ft = lt - 1), Ft = ee(0, Ft, Oe(lt - 1, Ft));
2820
+ let Ot = Ae(N, tt, Q, Ft);
2821
+ return Jt === "end" ? Ot = bn(Ot - N.height + Q.height) : Jt === "center" && (Ot = bn(Ot - N.height / 2 + Q.height / 2)), de && (Ot += de), { behavior: $t, top: Ot };
2868
2822
  })
2869
2823
  ),
2870
2824
  c
2871
2825
  );
2872
2826
  const Bt = ct(
2873
- S(
2874
- B,
2875
- E((R) => R.offsetBottom + R.bottom)
2827
+ x(
2828
+ k,
2829
+ E((y) => y.offsetBottom + y.bottom)
2876
2830
  ),
2877
2831
  0
2878
2832
  );
2879
2833
  return O(
2880
- S(
2881
- b,
2882
- E((R) => ({ height: R.visibleHeight, width: R.visibleWidth }))
2834
+ x(
2835
+ R,
2836
+ E((y) => ({ height: y.visibleHeight, width: y.visibleWidth }))
2883
2837
  ),
2884
- k
2838
+ F
2885
2839
  ), {
2886
- customScrollParent: g,
2840
+ customScrollParent: m,
2887
2841
  // input
2888
2842
  data: nt,
2889
2843
  deviation: J,
2890
2844
  footerHeight: r,
2891
- gap: F,
2845
+ gap: B,
2892
2846
  headerHeight: s,
2893
2847
  increaseViewportBy: t,
2894
- initialItemCount: y,
2848
+ initialItemCount: b,
2895
2849
  itemDimensions: L,
2896
2850
  overscan: n,
2897
2851
  restoreStateFrom: it,
2898
2852
  scrollBy: i,
2899
2853
  scrollContainerState: l,
2900
- scrollHeight: _,
2854
+ scrollHeight: D,
2901
2855
  scrollTo: c,
2902
- scrollToIndex: z,
2856
+ scrollToIndex: V,
2903
2857
  scrollTop: a,
2904
- smoothScrollTargetReached: m,
2905
- totalCount: d,
2906
- useWindowScroll: p,
2907
- viewportDimensions: k,
2858
+ smoothScrollTargetReached: p,
2859
+ totalCount: f,
2860
+ useWindowScroll: d,
2861
+ viewportDimensions: F,
2908
2862
  windowScrollContainerState: u,
2909
2863
  windowScrollTo: T,
2910
- windowViewportRect: b,
2911
- ...I,
2864
+ windowViewportRect: R,
2865
+ ...h,
2912
2866
  // output
2913
- gridState: B,
2867
+ gridState: k,
2914
2868
  horizontalDirection: At,
2915
2869
  initialTopMostItemIndex: St,
2916
2870
  totalListHeight: Bt,
2917
- ...h,
2871
+ ...g,
2918
2872
  endReached: Xt,
2919
2873
  propsReady: v,
2920
- rangeChanged: yt,
2874
+ rangeChanged: vt,
2921
2875
  startReached: Mt,
2922
- stateChanged: q,
2876
+ stateChanged: Y,
2923
2877
  stateRestoreInProgress: dt,
2924
- ...f
2878
+ ...I
2925
2879
  };
2926
2880
  },
2927
- X(je, at, ae, Yn, Pt, qe, Vt)
2881
+ X(Ke, at, ae, jn, Pt, je, Vt)
2928
2882
  );
2929
- function so(t, e, n) {
2883
+ function oo(t, e, n) {
2930
2884
  return ee(1, Ce((t + n) / (Ce(e) + n)));
2931
2885
  }
2932
2886
  function En(t, e, n, o) {
2933
2887
  const { height: r } = n;
2934
2888
  if (r === void 0 || o.length === 0)
2935
2889
  return { bottom: 0, top: 0 };
2936
- const s = Me(t, e, n, o[0].index);
2937
- return { bottom: Me(t, e, n, o[o.length - 1].index) + r, top: s };
2890
+ const s = Ae(t, e, n, o[0].index);
2891
+ return { bottom: Ae(t, e, n, o[o.length - 1].index) + r, top: s };
2938
2892
  }
2939
- function Me(t, e, n, o) {
2940
- const r = so(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + ee(0, s - 1) * e.row;
2893
+ function Ae(t, e, n, o) {
2894
+ const r = oo(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + ee(0, s - 1) * e.row;
2941
2895
  return i > 0 ? i + e.row : i;
2942
2896
  }
2943
- const Lr = /* @__PURE__ */ U(() => {
2944
- const t = w((x) => `Item ${x}`), e = w({}), n = w(null), o = w("virtuoso-grid-item"), r = w("virtuoso-grid-list"), s = w(Xe), i = w("div"), l = w(Yt), c = (x, h = null) => ct(
2945
- S(
2897
+ const Or = /* @__PURE__ */ U(() => {
2898
+ const t = C((S) => `Item ${S}`), e = C({}), n = C(null), o = C("virtuoso-grid-item"), r = C("virtuoso-grid-list"), s = C(Ze), i = C("div"), l = C(Yt), c = (S, g = null) => ct(
2899
+ x(
2946
2900
  e,
2947
- E((I) => I[x]),
2948
- Y()
2901
+ E((h) => h[S]),
2902
+ Z()
2949
2903
  ),
2950
- h
2951
- ), a = w(false), m = w(false);
2952
- return O(V(m), a), {
2904
+ g
2905
+ ), a = C(false), p = C(false);
2906
+ return O(A(p), a), {
2953
2907
  components: e,
2954
2908
  computeItemKey: s,
2955
2909
  context: n,
@@ -2962,51 +2916,51 @@ const Lr = /* @__PURE__ */ U(() => {
2962
2916
  listClassName: r,
2963
2917
  ListComponent: c("List", "div"),
2964
2918
  readyStateChanged: a,
2965
- reportReadyState: m,
2919
+ reportReadyState: p,
2966
2920
  ScrollerComponent: c("Scroller", "div"),
2967
2921
  scrollerRef: l,
2968
2922
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
2969
2923
  };
2970
- }), zr = /* @__PURE__ */ U(
2924
+ }), Lr = /* @__PURE__ */ U(
2971
2925
  ([t, e]) => ({ ...t, ...e }),
2972
- X(Or, Lr)
2973
- ), Vr = /* @__PURE__ */ React__default.memo(function() {
2974
- const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), m = et("ScrollSeekPlaceholder"), x = et("context"), h = It("itemDimensions"), I = It("gap"), C = et("log"), v = et("stateRestoreInProgress"), g = It("reportReadyState"), p = Ht(
2926
+ X(Fr, Or)
2927
+ ), zr = /* @__PURE__ */ React__default.memo(function() {
2928
+ const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), p = et("ScrollSeekPlaceholder"), S = et("context"), g = It("itemDimensions"), h = It("gap"), w = et("log"), v = et("stateRestoreInProgress"), m = It("reportReadyState"), d = Ht(
2975
2929
  React__default.useMemo(
2976
2930
  () => (u) => {
2977
2931
  const T = u.parentElement.parentElement.scrollHeight;
2978
2932
  l(T);
2979
- const b = u.firstChild;
2980
- if (b) {
2981
- const { height: f, width: d } = b.getBoundingClientRect();
2982
- h({ height: f, width: d });
2933
+ const R = u.firstChild;
2934
+ if (R) {
2935
+ const { height: I, width: f } = R.getBoundingClientRect();
2936
+ g({ height: I, width: f });
2983
2937
  }
2984
- I({
2985
- column: Bn("column-gap", getComputedStyle(u).columnGap, C),
2986
- row: Bn("row-gap", getComputedStyle(u).rowGap, C)
2938
+ h({
2939
+ column: Bn("column-gap", getComputedStyle(u).columnGap, w),
2940
+ row: Bn("row-gap", getComputedStyle(u).rowGap, w)
2987
2941
  });
2988
2942
  },
2989
- [l, h, I, C]
2943
+ [l, g, h, w]
2990
2944
  ),
2991
2945
  true,
2992
2946
  false
2993
2947
  );
2994
- return Qn(() => {
2995
- e.itemHeight > 0 && e.itemWidth > 0 && g(true);
2948
+ return Xn(() => {
2949
+ e.itemHeight > 0 && e.itemWidth > 0 && m(true);
2996
2950
  }, [e]), v ? null : /* @__PURE__ */ jsx(
2997
2951
  a,
2998
2952
  {
2999
2953
  className: n,
3000
- ref: p,
3001
- ...Z(a, x),
2954
+ ref: d,
2955
+ ...q(a, S),
3002
2956
  "data-testid": "virtuoso-item-list",
3003
2957
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
3004
2958
  children: e.items.map((u) => {
3005
- const T = s(u.index, u.data, x);
2959
+ const T = s(u.index, u.data, S);
3006
2960
  return i ? /* @__PURE__ */ jsx(
3007
- m,
2961
+ p,
3008
2962
  {
3009
- ...Z(m, x),
2963
+ ...q(p, S),
3010
2964
  height: e.itemHeight,
3011
2965
  index: u.index,
3012
2966
  width: e.itemWidth
@@ -3015,42 +2969,42 @@ const Lr = /* @__PURE__ */ U(() => {
3015
2969
  ) : /* @__PURE__ */ createElement(
3016
2970
  c,
3017
2971
  {
3018
- ...Z(c, x),
2972
+ ...q(c, S),
3019
2973
  className: o,
3020
2974
  "data-index": u.index,
3021
2975
  key: T
3022
2976
  },
3023
- r(u.index, u.data, x)
2977
+ r(u.index, u.data, S)
3024
2978
  );
3025
2979
  })
3026
2980
  }
3027
2981
  );
3028
- }), Pr = React__default.memo(function() {
2982
+ }), Vr = React__default.memo(function() {
3029
2983
  const e = et("HeaderComponent"), n = It("headerHeight"), o = et("headerFooterTag"), r = Ht(
3030
2984
  React__default.useMemo(
3031
2985
  () => (i) => {
3032
- n(vt(i, "height"));
2986
+ n(wt(i, "height"));
3033
2987
  },
3034
2988
  [n]
3035
2989
  ),
3036
2990
  true,
3037
2991
  false
3038
2992
  ), s = et("context");
3039
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
3040
- }), Ar = React__default.memo(function() {
2993
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
2994
+ }), Pr = React__default.memo(function() {
3041
2995
  const e = et("FooterComponent"), n = It("footerHeight"), o = et("headerFooterTag"), r = Ht(
3042
2996
  React__default.useMemo(
3043
2997
  () => (i) => {
3044
- n(vt(i, "height"));
2998
+ n(wt(i, "height"));
3045
2999
  },
3046
3000
  [n]
3047
3001
  ),
3048
3002
  true,
3049
3003
  false
3050
3004
  ), s = et("context");
3051
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
3052
- }), Mr = ({ children: t }) => {
3053
- const e = React__default.useContext(Jn), n = It("itemDimensions"), o = It("viewportDimensions"), r = Ht(
3005
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
3006
+ }), Ar = ({ children: t }) => {
3007
+ const e = React__default.useContext(Zn), n = It("itemDimensions"), o = It("viewportDimensions"), r = Ht(
3054
3008
  React__default.useMemo(
3055
3009
  () => (s) => {
3056
3010
  o(s.getBoundingClientRect());
@@ -3063,24 +3017,24 @@ const Lr = /* @__PURE__ */ U(() => {
3063
3017
  return React__default.useEffect(() => {
3064
3018
  e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));
3065
3019
  }, [e, o, n]), /* @__PURE__ */ jsx("div", { ref: r, style: Zt(false), children: t });
3066
- }, Wr = ({ children: t }) => {
3067
- const e = React__default.useContext(Jn), n = It("windowViewportRect"), o = It("itemDimensions"), r = et("customScrollParent"), s = Ne(n, r, false);
3020
+ }, Mr = ({ children: t }) => {
3021
+ const e = React__default.useContext(Zn), n = It("windowViewportRect"), o = It("itemDimensions"), r = et("customScrollParent"), s = _e(n, r, false);
3068
3022
  return React__default.useEffect(() => {
3069
3023
  e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
3070
3024
  }, [e, n, o]), /* @__PURE__ */ jsx("div", { ref: s, style: Zt(false), children: t });
3071
- }, Gr = /* @__PURE__ */ React__default.memo(function({ ...e }) {
3072
- const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Wr : Mr, i = et("context");
3073
- return /* @__PURE__ */ jsx(r, { ...e, ...Z(r, i), children: /* @__PURE__ */ jsxs(s, { children: [
3074
- /* @__PURE__ */ jsx(Pr, {}),
3025
+ }, Wr = /* @__PURE__ */ React__default.memo(function({ ...e }) {
3026
+ const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Nr : _r, s = o || n ? Mr : Ar, i = et("context");
3027
+ return /* @__PURE__ */ jsx(r, { ...e, ...q(r, i), children: /* @__PURE__ */ jsxs(s, { children: [
3075
3028
  /* @__PURE__ */ jsx(Vr, {}),
3076
- /* @__PURE__ */ jsx(Ar, {})
3029
+ /* @__PURE__ */ jsx(zr, {}),
3030
+ /* @__PURE__ */ jsx(Pr, {})
3077
3031
  ] }) });
3078
3032
  }), {
3079
- useEmitter: io,
3033
+ useEmitter: ro,
3080
3034
  useEmitterValue: et,
3081
3035
  usePublisher: It
3082
- } = /* @__PURE__ */ Ye(
3083
- zr,
3036
+ } = /* @__PURE__ */ qe(
3037
+ Lr,
3084
3038
  {
3085
3039
  optional: {
3086
3040
  context: "context",
@@ -3119,11 +3073,11 @@ const Lr = /* @__PURE__ */ U(() => {
3119
3073
  readyStateChanged: "readyStateChanged"
3120
3074
  }
3121
3075
  },
3122
- Gr
3123
- ), Nr = /* @__PURE__ */ Je({ useEmitter: io, useEmitterValue: et, usePublisher: It }), Dr = /* @__PURE__ */ Qe({ useEmitter: io, useEmitterValue: et, usePublisher: It });
3076
+ Wr
3077
+ ), _r = /* @__PURE__ */ Xe({ useEmitter: ro, useEmitterValue: et, usePublisher: It }), Nr = /* @__PURE__ */ Je({ useEmitter: ro, useEmitterValue: et, usePublisher: It });
3124
3078
  function Bn(t, e, n) {
3125
3079
  return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t} was not resolved to pixel value correctly`, e, mt.WARN), e === "normal" ? 0 : parseInt(e != null ? e : "0", 10);
3126
3080
  }
3127
3081
 
3128
- export { mt as LogLevel, qr as Virtuoso, Jn as VirtuosoGridMockContext, be as VirtuosoMockContext };
3082
+ export { mt as LogLevel, jr as Virtuoso, Zn as VirtuosoGridMockContext, be as VirtuosoMockContext };
3129
3083
  //# sourceMappingURL=index.js.map