@agrotools1/at-components 2.0.13 → 2.0.14-beta.1

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 (548) hide show
  1. package/dist/accordion/Accordion.vue.js +30 -0
  2. package/dist/accordion/Accordion.vue2.js +4 -0
  3. package/dist/accordion/AccordionContent.vue.js +29 -0
  4. package/dist/accordion/AccordionContent.vue2.js +4 -0
  5. package/dist/accordion/AccordionItem.vue.js +29 -0
  6. package/dist/accordion/AccordionItem.vue2.js +4 -0
  7. package/dist/accordion/AccordionTrigger.vue.js +38 -0
  8. package/dist/accordion/AccordionTrigger.vue2.js +4 -0
  9. package/dist/alert-dialog/AlertDialog.vue.js +22 -0
  10. package/dist/alert-dialog/AlertDialog.vue2.js +4 -0
  11. package/dist/alert-dialog/AlertDialogAction.vue.js +29 -0
  12. package/dist/alert-dialog/AlertDialogAction.vue2.js +4 -0
  13. package/dist/alert-dialog/AlertDialogCancel.vue.js +29 -0
  14. package/dist/alert-dialog/AlertDialogCancel.vue2.js +4 -0
  15. package/dist/alert-dialog/AlertDialogContent.vue.js +44 -0
  16. package/dist/alert-dialog/AlertDialogContent.vue2.js +4 -0
  17. package/dist/alert-dialog/AlertDialogDescription.vue.js +26 -0
  18. package/dist/alert-dialog/AlertDialogDescription.vue2.js +4 -0
  19. package/dist/alert-dialog/AlertDialogFooter.vue.js +25 -0
  20. package/dist/alert-dialog/AlertDialogFooter.vue2.js +4 -0
  21. package/dist/alert-dialog/AlertDialogHeader.vue.js +20 -0
  22. package/dist/alert-dialog/AlertDialogHeader.vue2.js +4 -0
  23. package/dist/alert-dialog/AlertDialogTitle.vue.js +26 -0
  24. package/dist/alert-dialog/AlertDialogTitle.vue2.js +4 -0
  25. package/dist/alert-dialog/AlertDialogTrigger.vue.js +21 -0
  26. package/dist/alert-dialog/AlertDialogTrigger.vue2.js +4 -0
  27. package/dist/assets/illustrations/renovabio/biomass.svg.js +16 -0
  28. package/dist/assets/illustrations/renovabio/volume.svg.js +16 -0
  29. package/dist/assets/illustrations/system/add-file.svg.js +16 -0
  30. package/dist/assets/illustrations/system/cloud-connection.svg.js +16 -0
  31. package/dist/assets/illustrations/system/cloud-download.svg.js +16 -0
  32. package/dist/assets/illustrations/system/cloud-upload.svg.js +16 -0
  33. package/dist/assets/illustrations/system/corrupted-file.svg.js +16 -0
  34. package/dist/assets/illustrations/system/dynamic-production.svg.js +16 -0
  35. package/dist/assets/illustrations/system/empty-box.svg.js +16 -0
  36. package/dist/assets/illustrations/system/empty-folder-2.svg.js +16 -0
  37. package/dist/assets/illustrations/system/empty-folder.svg.js +16 -0
  38. package/dist/assets/illustrations/system/empty.svg.js +16 -0
  39. package/dist/assets/illustrations/system/error-illustration.svg.js +16 -0
  40. package/dist/assets/illustrations/system/error.svg.js +16 -0
  41. package/dist/assets/illustrations/system/file-backup-2.svg.js +16 -0
  42. package/dist/assets/illustrations/system/file-backup.svg.js +16 -0
  43. package/dist/assets/illustrations/system/filtering-upload.svg.js +16 -0
  44. package/dist/assets/illustrations/system/flight.svg.js +16 -0
  45. package/dist/assets/illustrations/system/fly.svg.js +16 -0
  46. package/dist/assets/illustrations/system/movies.svg.js +16 -0
  47. package/dist/assets/illustrations/system/multimedia.svg.js +16 -0
  48. package/dist/assets/illustrations/system/notification-bell.svg.js +16 -0
  49. package/dist/assets/illustrations/system/page-2.svg.js +16 -0
  50. package/dist/assets/illustrations/system/page.svg.js +16 -0
  51. package/dist/assets/illustrations/system/photos.svg.js +16 -0
  52. package/dist/assets/illustrations/system/recycle-bin.svg.js +16 -0
  53. package/dist/assets/illustrations/system/rocket-launch.svg.js +16 -0
  54. package/dist/assets/illustrations/system/search-territory.svg.js +16 -0
  55. package/dist/assets/illustrations/system/signal.svg.js +16 -0
  56. package/dist/assets/illustrations/system/siren.svg.js +16 -0
  57. package/dist/assets/illustrations/system/wrong.svg.js +16 -0
  58. package/dist/assets/illustrations/tools/advanced-analysis.svg.js +17 -0
  59. package/dist/assets/illustrations/tools/agriculture.svg.js +16 -0
  60. package/dist/assets/illustrations/tools/alert-center.svg.js +16 -0
  61. package/dist/assets/illustrations/tools/area.svg.js +16 -0
  62. package/dist/assets/illustrations/tools/at-insights.svg.js +16 -0
  63. package/dist/assets/illustrations/tools/conservation-unit.svg.js +16 -0
  64. package/dist/assets/illustrations/tools/credit.svg.js +16 -0
  65. package/dist/assets/illustrations/tools/deforestation.svg.js +16 -0
  66. package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +16 -0
  67. package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +16 -0
  68. package/dist/assets/illustrations/tools/extract.svg.js +16 -0
  69. package/dist/assets/illustrations/tools/farm.svg.js +16 -0
  70. package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +16 -0
  71. package/dist/assets/illustrations/tools/gix.svg.js +16 -0
  72. package/dist/assets/illustrations/tools/inapto.svg.js +16 -0
  73. package/dist/assets/illustrations/tools/insurance.svg.js +16 -0
  74. package/dist/assets/illustrations/tools/land-appreciation.svg.js +16 -0
  75. package/dist/assets/illustrations/tools/lockdown.svg.js +16 -0
  76. package/dist/assets/illustrations/tools/map.svg.js +31 -0
  77. package/dist/assets/illustrations/tools/pasture.svg.js +16 -0
  78. package/dist/assets/illustrations/tools/rating-2.svg.js +16 -0
  79. package/dist/assets/illustrations/tools/rating.svg.js +16 -0
  80. package/dist/assets/illustrations/tools/recurrence.svg.js +16 -0
  81. package/dist/assets/illustrations/tools/refrigerators.svg.js +16 -0
  82. package/dist/assets/illustrations/tools/settings.svg.js +16 -0
  83. package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +16 -0
  84. package/dist/assets/illustrations/tools/soil-use.svg.js +16 -0
  85. package/dist/assets/illustrations/tools/storm.svg.js +16 -0
  86. package/dist/assets/illustrations/tools/territory-details.svg.js +16 -0
  87. package/dist/assets/illustrations/tools/timeline.svg.js +16 -0
  88. package/dist/avatar/Avatar.vue.js +37 -0
  89. package/dist/avatar/Avatar.vue2.js +4 -0
  90. package/dist/avatar/AvatarFallback.vue.js +30 -0
  91. package/dist/avatar/AvatarFallback.vue2.js +4 -0
  92. package/dist/avatar/AvatarImage.vue.js +24 -0
  93. package/dist/avatar/AvatarImage.vue2.js +4 -0
  94. package/dist/badge/Badge.vue.js +30 -0
  95. package/dist/badge/Badge.vue2.js +4 -0
  96. package/dist/badge/index.js +29 -0
  97. package/dist/breadcrumb/Breadcrumb.vue.js +20 -0
  98. package/dist/breadcrumb/Breadcrumb.vue2.js +4 -0
  99. package/dist/breadcrumb/BreadcrumbItem.vue.js +20 -0
  100. package/dist/breadcrumb/BreadcrumbItem.vue2.js +4 -0
  101. package/dist/breadcrumb/BreadcrumbLink.vue.js +35 -0
  102. package/dist/breadcrumb/BreadcrumbLink.vue2.js +4 -0
  103. package/dist/breadcrumb/BreadcrumbList.vue.js +25 -0
  104. package/dist/breadcrumb/BreadcrumbList.vue2.js +4 -0
  105. package/dist/breadcrumb/BreadcrumbSeparator.vue.js +25 -0
  106. package/dist/breadcrumb/BreadcrumbSeparator.vue2.js +4 -0
  107. package/dist/button/Button.vue.js +31 -0
  108. package/dist/button/Button.vue2.js +4 -0
  109. package/dist/button/index.js +27 -0
  110. package/dist/calendar/Calendar.vue.js +216 -0
  111. package/dist/calendar/Calendar.vue2.js +4 -0
  112. package/dist/calendar/CalendarCell.vue.js +31 -0
  113. package/dist/calendar/CalendarCell.vue2.js +4 -0
  114. package/dist/calendar/CalendarCellTrigger.vue.js +43 -0
  115. package/dist/calendar/CalendarCellTrigger.vue2.js +4 -0
  116. package/dist/calendar/CalendarGrid.vue.js +27 -0
  117. package/dist/calendar/CalendarGrid.vue2.js +4 -0
  118. package/dist/calendar/CalendarGridBody.vue.js +21 -0
  119. package/dist/calendar/CalendarGridBody.vue2.js +4 -0
  120. package/dist/calendar/CalendarGridHead.vue.js +22 -0
  121. package/dist/calendar/CalendarGridHead.vue2.js +4 -0
  122. package/dist/calendar/CalendarGridRow.vue.js +27 -0
  123. package/dist/calendar/CalendarGridRow.vue2.js +4 -0
  124. package/dist/calendar/CalendarHeadCell.vue.js +27 -0
  125. package/dist/calendar/CalendarHeadCell.vue2.js +4 -0
  126. package/dist/calendar/CalendarHeader.vue.js +27 -0
  127. package/dist/calendar/CalendarHeader.vue2.js +4 -0
  128. package/dist/calendar/CalendarHeading.vue.js +34 -0
  129. package/dist/calendar/CalendarHeading.vue2.js +4 -0
  130. package/dist/calendar/CalendarNextButton.vue.js +37 -0
  131. package/dist/calendar/CalendarNextButton.vue2.js +4 -0
  132. package/dist/calendar/CalendarPrevButton.vue.js +37 -0
  133. package/dist/calendar/CalendarPrevButton.vue2.js +4 -0
  134. package/dist/card/Card.vue.js +51 -0
  135. package/dist/card/Card.vue2.js +4 -0
  136. package/dist/card/CardDescription.vue.js +33 -0
  137. package/dist/card/CardDescription.vue2.js +4 -0
  138. package/dist/card/CardTitle.vue.js +35 -0
  139. package/dist/card/CardTitle.vue2.js +4 -0
  140. package/dist/carousel/Carousel.vue.js +62 -0
  141. package/dist/carousel/Carousel.vue2.js +4 -0
  142. package/dist/carousel/CarouselContent.vue.js +28 -0
  143. package/dist/carousel/CarouselContent.vue2.js +4 -0
  144. package/dist/carousel/CarouselItem.vue.js +29 -0
  145. package/dist/carousel/CarouselItem.vue2.js +4 -0
  146. package/dist/carousel/CarouselNext.vue.js +44 -0
  147. package/dist/carousel/CarouselNext.vue2.js +4 -0
  148. package/dist/carousel/CarouselPrevious.vue.js +44 -0
  149. package/dist/carousel/CarouselPrevious.vue2.js +4 -0
  150. package/dist/carousel/useCarousel.js +48 -0
  151. package/dist/checkbox/Checkbox.vue.js +74 -0
  152. package/dist/checkbox/Checkbox.vue2.js +4 -0
  153. package/dist/combobox/Combobox.vue.js +38 -0
  154. package/dist/combobox/Combobox.vue2.js +4 -0
  155. package/dist/combobox/ComboboxAnchor.vue.js +27 -0
  156. package/dist/combobox/ComboboxAnchor.vue2.js +4 -0
  157. package/dist/combobox/ComboboxEmpty.vue.js +26 -0
  158. package/dist/combobox/ComboboxEmpty.vue2.js +4 -0
  159. package/dist/combobox/ComboboxGroup.vue.js +36 -0
  160. package/dist/combobox/ComboboxGroup.vue2.js +4 -0
  161. package/dist/combobox/ComboboxInput.vue.js +82 -0
  162. package/dist/combobox/ComboboxInput.vue2.js +4 -0
  163. package/dist/combobox/ComboboxItem.vue.js +33 -0
  164. package/dist/combobox/ComboboxItem.vue2.js +4 -0
  165. package/dist/combobox/ComboboxItemIndicator.vue.js +26 -0
  166. package/dist/combobox/ComboboxItemIndicator.vue2.js +4 -0
  167. package/dist/combobox/ComboboxList.vue.js +57 -0
  168. package/dist/combobox/ComboboxList.vue2.js +4 -0
  169. package/dist/combobox/ComboboxSeparator.vue.js +26 -0
  170. package/dist/combobox/ComboboxSeparator.vue2.js +4 -0
  171. package/dist/combobox/ComboboxViewport.vue.js +27 -0
  172. package/dist/combobox/ComboboxViewport.vue2.js +4 -0
  173. package/dist/command/Command.vue.js +102 -0
  174. package/dist/command/Command.vue2.js +4 -0
  175. package/dist/command/CommandDialog.vue.js +58 -0
  176. package/dist/command/CommandDialog.vue2.js +4 -0
  177. package/dist/command/CommandEmpty.vue.js +30 -0
  178. package/dist/command/CommandEmpty.vue2.js +4 -0
  179. package/dist/command/CommandGroup.vue.js +40 -0
  180. package/dist/command/CommandGroup.vue2.js +4 -0
  181. package/dist/command/CommandInput.vue.js +43 -0
  182. package/dist/command/CommandInput.vue2.js +4 -0
  183. package/dist/command/CommandItem.vue.js +51 -0
  184. package/dist/command/CommandItem.vue2.js +4 -0
  185. package/dist/command/CommandList.vue.js +28 -0
  186. package/dist/command/CommandList.vue2.js +4 -0
  187. package/dist/command/CommandSeparator.vue.js +28 -0
  188. package/dist/command/CommandSeparator.vue2.js +4 -0
  189. package/dist/command/CommandShortcut.vue.js +20 -0
  190. package/dist/command/CommandShortcut.vue2.js +4 -0
  191. package/dist/command/contexts.js +8 -0
  192. package/dist/composables/use-file-upload.js +146 -0
  193. package/dist/data-table/DataTable.vue.js +171 -0
  194. package/dist/data-table/DataTable.vue2.js +4 -0
  195. package/dist/data-table/DataTableColumnHeader.vue.js +33 -0
  196. package/dist/data-table/DataTableColumnHeader.vue2.js +4 -0
  197. package/dist/data-table/DataTablePagination.vue.js +56 -0
  198. package/dist/data-table/DataTablePagination.vue2.js +4 -0
  199. package/dist/date-picker/DatePicker.vue.js +104 -0
  200. package/dist/date-picker/DatePicker.vue2.js +4 -0
  201. package/dist/date-range-picker/DateRangePicker.vue.js +79 -0
  202. package/dist/date-range-picker/DateRangePicker.vue2.js +4 -0
  203. package/dist/dialog/Dialog.vue.js +23 -0
  204. package/dist/dialog/Dialog.vue2.js +4 -0
  205. package/dist/dialog/DialogBody.vue.js +20 -0
  206. package/dist/dialog/DialogBody.vue2.js +4 -0
  207. package/dist/dialog/DialogClose.vue.js +21 -0
  208. package/dist/dialog/DialogClose.vue2.js +4 -0
  209. package/dist/dialog/DialogContent.vue.js +50 -0
  210. package/dist/dialog/DialogContent.vue2.js +4 -0
  211. package/dist/dialog/DialogDescription.vue.js +26 -0
  212. package/dist/dialog/DialogDescription.vue2.js +4 -0
  213. package/dist/dialog/DialogFooter.vue.js +25 -0
  214. package/dist/dialog/DialogFooter.vue2.js +4 -0
  215. package/dist/dialog/DialogHeader.vue.js +20 -0
  216. package/dist/dialog/DialogHeader.vue2.js +4 -0
  217. package/dist/dialog/DialogOverlay.vue.js +30 -0
  218. package/dist/dialog/DialogOverlay.vue2.js +4 -0
  219. package/dist/dialog/DialogScrollContent.vue.js +58 -0
  220. package/dist/dialog/DialogScrollContent.vue2.js +4 -0
  221. package/dist/dialog/DialogTitle.vue.js +26 -0
  222. package/dist/dialog/DialogTitle.vue2.js +4 -0
  223. package/dist/dialog/DialogTrigger.vue.js +21 -0
  224. package/dist/dialog/DialogTrigger.vue2.js +4 -0
  225. package/dist/dialog/index.js +20 -0
  226. package/dist/dropdown-menu/DropdownMenu.vue.js +24 -0
  227. package/dist/dropdown-menu/DropdownMenu.vue2.js +4 -0
  228. package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -1
  229. package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.js +42 -0
  230. package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue2.js +4 -0
  231. package/dist/dropdown-menu/DropdownMenuContent.vue.js +54 -0
  232. package/dist/dropdown-menu/DropdownMenuContent.vue2.js +4 -0
  233. package/dist/dropdown-menu/DropdownMenuGroup.vue.js +21 -0
  234. package/dist/dropdown-menu/DropdownMenuGroup.vue2.js +4 -0
  235. package/dist/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -1
  236. package/dist/dropdown-menu/DropdownMenuItem.vue.js +38 -0
  237. package/dist/dropdown-menu/DropdownMenuItem.vue2.js +4 -0
  238. package/dist/dropdown-menu/DropdownMenuLabel.vue.js +30 -0
  239. package/dist/dropdown-menu/DropdownMenuLabel.vue2.js +4 -0
  240. package/dist/dropdown-menu/DropdownMenuRadioGroup.vue.js +23 -0
  241. package/dist/dropdown-menu/DropdownMenuRadioGroup.vue2.js +4 -0
  242. package/dist/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -1
  243. package/dist/dropdown-menu/DropdownMenuRadioItem.vue.js +43 -0
  244. package/dist/dropdown-menu/DropdownMenuRadioItem.vue2.js +4 -0
  245. package/dist/dropdown-menu/DropdownMenuSeparator.vue.js +21 -0
  246. package/dist/dropdown-menu/DropdownMenuSeparator.vue2.js +4 -0
  247. package/dist/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -1
  248. package/dist/dropdown-menu/DropdownMenuShortcut.vue.js +20 -0
  249. package/dist/dropdown-menu/DropdownMenuShortcut.vue2.js +4 -0
  250. package/dist/dropdown-menu/DropdownMenuSub.vue.js +22 -0
  251. package/dist/dropdown-menu/DropdownMenuSub.vue2.js +4 -0
  252. package/dist/dropdown-menu/DropdownMenuSubContent.vue.js +47 -0
  253. package/dist/dropdown-menu/DropdownMenuSubContent.vue2.js +4 -0
  254. package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -1
  255. package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.js +34 -0
  256. package/dist/dropdown-menu/DropdownMenuSubTrigger.vue2.js +4 -0
  257. package/dist/dropdown-menu/DropdownMenuTrigger.vue.js +22 -0
  258. package/dist/dropdown-menu/DropdownMenuTrigger.vue2.js +4 -0
  259. package/dist/illustration/Illustration.vue.js +17 -0
  260. package/dist/illustration/Illustration.vue2.js +4 -0
  261. package/dist/illustration/illustrations.js +127 -0
  262. package/dist/index.css +1 -1
  263. package/dist/index.js +454 -30969
  264. package/dist/input/Input.vue.js +43 -0
  265. package/dist/input/Input.vue2.js +4 -0
  266. package/dist/label/Label.vue.js +30 -0
  267. package/dist/label/Label.vue2.js +4 -0
  268. package/dist/lib/date.js +34 -0
  269. package/dist/lib/utils.js +13 -0
  270. package/dist/multi-select/MultiSelectContent.vue.js +69 -0
  271. package/dist/multi-select/MultiSelectContent.vue2.js +4 -0
  272. package/dist/multi-select/MultiSelectEmpty.vue.js +22 -0
  273. package/dist/multi-select/MultiSelectEmpty.vue2.js +4 -0
  274. package/dist/multi-select/MultiSelectGroup.vue.js +26 -0
  275. package/dist/multi-select/MultiSelectGroup.vue2.js +4 -0
  276. package/dist/multi-select/MultiSelectItem.vue.js +71 -0
  277. package/dist/multi-select/MultiSelectItem.vue2.js +4 -0
  278. package/dist/multi-select/MultiSelectLabel.vue.js +28 -0
  279. package/dist/multi-select/MultiSelectLabel.vue2.js +4 -0
  280. package/dist/multi-select/MultiSelectRoot.vue.js +76 -0
  281. package/dist/multi-select/MultiSelectRoot.vue2.js +4 -0
  282. package/dist/multi-select/MultiSelectSeparator.vue.js +25 -0
  283. package/dist/multi-select/MultiSelectSeparator.vue2.js +4 -0
  284. package/dist/multi-select/MultiSelectTrigger.vue.js +61 -0
  285. package/dist/multi-select/MultiSelectTrigger.vue2.js +4 -0
  286. package/dist/multi-select/MultiSelectValue.vue.js +79 -0
  287. package/dist/multi-select/MultiSelectValue.vue2.js +4 -0
  288. package/dist/multi-select/contexts.js +10 -0
  289. package/dist/multi-select/utils.js +11 -0
  290. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/CalendarDate.js +219 -0
  291. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/DateFormatter.js +99 -0
  292. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/GregorianCalendar.js +98 -0
  293. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/conversion.js +137 -0
  294. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/manipulation.js +214 -0
  295. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/queries.js +60 -0
  296. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/string.js +27 -0
  297. package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/utils.js +6 -0
  298. package/dist/node_modules/.pnpm/@swc_helpers@0.5.17/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +7 -0
  299. package/dist/node_modules/.pnpm/@swc_helpers@0.5.17/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
  300. package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +1771 -0
  301. package/dist/node_modules/.pnpm/@tanstack_vue-table@8.21.3_vue@3.5.19_typescript@5.8.3_/node_modules/@tanstack/vue-table/build/lib/index.js +168 -0
  302. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/Icon.js +39 -0
  303. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js +21 -0
  304. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js +20 -0
  305. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/arrow-left.js +14 -0
  306. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/arrow-right.js +14 -0
  307. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/calendar.js +16 -0
  308. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js +11 -0
  309. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +13 -0
  310. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-left.js +13 -0
  311. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js +13 -0
  312. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js +13 -0
  313. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevrons-left.js +14 -0
  314. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevrons-right.js +14 -0
  315. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle-check.js +14 -0
  316. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle-x.js +15 -0
  317. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle.js +13 -0
  318. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/ellipsis.js +15 -0
  319. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/info.js +15 -0
  320. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js +14 -0
  321. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/triangle-alert.js +21 -0
  322. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/triangle.js +16 -0
  323. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js +14 -0
  324. package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js +20 -0
  325. package/dist/node_modules/.pnpm/reka-ui@2.5.0_typescript@5.8.3_vue@3.5.19_typescript@5.8.3_/node_modules/reka-ui/dist/date/comparators.js +10 -0
  326. package/dist/pagination/Pagination.vue.js +34 -0
  327. package/dist/pagination/Pagination.vue2.js +4 -0
  328. package/dist/pagination/PaginationContent.vue.js +26 -0
  329. package/dist/pagination/PaginationContent.vue2.js +4 -0
  330. package/dist/pagination/PaginationEllipsis.vue.js +30 -0
  331. package/dist/pagination/PaginationEllipsis.vue2.js +4 -0
  332. package/dist/pagination/PaginationFirst.vue.js +37 -0
  333. package/dist/pagination/PaginationFirst.vue2.js +4 -0
  334. package/dist/pagination/PaginationItem.vue.js +38 -0
  335. package/dist/pagination/PaginationItem.vue2.js +4 -0
  336. package/dist/pagination/PaginationLast.vue.js +37 -0
  337. package/dist/pagination/PaginationLast.vue2.js +4 -0
  338. package/dist/pagination/PaginationNext.vue.js +37 -0
  339. package/dist/pagination/PaginationNext.vue2.js +4 -0
  340. package/dist/pagination/PaginationPrevious.vue.js +37 -0
  341. package/dist/pagination/PaginationPrevious.vue2.js +4 -0
  342. package/dist/popover/Popover.vue.js +23 -0
  343. package/dist/popover/Popover.vue2.js +4 -0
  344. package/dist/popover/PopoverAnchor.vue.js +22 -0
  345. package/dist/popover/PopoverAnchor.vue2.js +4 -0
  346. package/dist/popover/PopoverContent.vue.js +55 -0
  347. package/dist/popover/PopoverContent.vue2.js +4 -0
  348. package/dist/popover/PopoverTrigger.vue.js +21 -0
  349. package/dist/popover/PopoverTrigger.vue2.js +4 -0
  350. package/dist/radio-group/RadioGroup.vue.js +36 -0
  351. package/dist/radio-group/RadioGroup.vue2.js +4 -0
  352. package/dist/radio-group/RadioGroupItem.vue.js +62 -0
  353. package/dist/radio-group/RadioGroupItem.vue2.js +4 -0
  354. package/dist/range-calendar/RangeCalendar.vue.js +219 -0
  355. package/dist/range-calendar/RangeCalendar.vue2.js +4 -0
  356. package/dist/range-calendar/RangeCalendarCell.vue.js +31 -0
  357. package/dist/range-calendar/RangeCalendarCell.vue2.js +4 -0
  358. package/dist/range-calendar/RangeCalendarCellTrigger.vue.js +47 -0
  359. package/dist/range-calendar/RangeCalendarCellTrigger.vue2.js +4 -0
  360. package/dist/range-calendar/RangeCalendarGrid.vue.js +27 -0
  361. package/dist/range-calendar/RangeCalendarGrid.vue2.js +4 -0
  362. package/dist/range-calendar/RangeCalendarGridBody.vue.js +21 -0
  363. package/dist/range-calendar/RangeCalendarGridBody.vue2.js +4 -0
  364. package/dist/range-calendar/RangeCalendarGridHead.vue.js +21 -0
  365. package/dist/range-calendar/RangeCalendarGridHead.vue2.js +4 -0
  366. package/dist/range-calendar/RangeCalendarGridRow.vue.js +27 -0
  367. package/dist/range-calendar/RangeCalendarGridRow.vue2.js +4 -0
  368. package/dist/range-calendar/RangeCalendarHeadCell.vue.js +27 -0
  369. package/dist/range-calendar/RangeCalendarHeadCell.vue2.js +4 -0
  370. package/dist/range-calendar/RangeCalendarHeader.vue.js +27 -0
  371. package/dist/range-calendar/RangeCalendarHeader.vue2.js +4 -0
  372. package/dist/range-calendar/RangeCalendarHeading.vue.js +34 -0
  373. package/dist/range-calendar/RangeCalendarHeading.vue2.js +4 -0
  374. package/dist/range-calendar/RangeCalendarNextButton.vue.js +37 -0
  375. package/dist/range-calendar/RangeCalendarNextButton.vue2.js +4 -0
  376. package/dist/range-calendar/RangeCalendarPrevButton.vue.js +37 -0
  377. package/dist/range-calendar/RangeCalendarPrevButton.vue2.js +4 -0
  378. package/dist/select/Select.vue.js +31 -0
  379. package/dist/select/Select.vue2.js +4 -0
  380. package/dist/select/SelectContent.vue.js +73 -0
  381. package/dist/select/SelectContent.vue2.js +4 -0
  382. package/dist/select/SelectGroup.vue.js +21 -0
  383. package/dist/select/SelectGroup.vue2.js +4 -0
  384. package/dist/select/SelectItem.vue.js +46 -0
  385. package/dist/select/SelectItem.vue2.js +4 -0
  386. package/dist/select/SelectItemText.vue.js +21 -0
  387. package/dist/select/SelectItemText.vue2.js +4 -0
  388. package/dist/select/SelectLabel.vue.js +27 -0
  389. package/dist/select/SelectLabel.vue2.js +4 -0
  390. package/dist/select/SelectScrollDownButton.vue.js +29 -0
  391. package/dist/select/SelectScrollDownButton.vue2.js +4 -0
  392. package/dist/select/SelectScrollUpButton.vue.js +29 -0
  393. package/dist/select/SelectScrollUpButton.vue2.js +4 -0
  394. package/dist/select/SelectSeparator.vue.js +21 -0
  395. package/dist/select/SelectSeparator.vue2.js +4 -0
  396. package/dist/select/SelectTrigger.vue.js +60 -0
  397. package/dist/select/SelectTrigger.vue2.js +4 -0
  398. package/dist/select/SelectValue.vue.js +22 -0
  399. package/dist/select/SelectValue.vue2.js +4 -0
  400. package/dist/separator/Separator.vue.js +26 -0
  401. package/dist/separator/Separator.vue2.js +4 -0
  402. package/dist/sheet/Sheet.vue.js +23 -0
  403. package/dist/sheet/Sheet.vue2.js +4 -0
  404. package/dist/sheet/SheetClose.vue.js +21 -0
  405. package/dist/sheet/SheetClose.vue2.js +4 -0
  406. package/dist/sheet/SheetContent.vue.js +54 -0
  407. package/dist/sheet/SheetContent.vue2.js +4 -0
  408. package/dist/sheet/SheetDescription.vue.js +27 -0
  409. package/dist/sheet/SheetDescription.vue2.js +4 -0
  410. package/dist/sheet/SheetFooter.vue.js +20 -0
  411. package/dist/sheet/SheetFooter.vue2.js +4 -0
  412. package/dist/sheet/SheetHeader.vue.js +20 -0
  413. package/dist/sheet/SheetHeader.vue2.js +4 -0
  414. package/dist/sheet/SheetOverlay.vue.js +31 -0
  415. package/dist/sheet/SheetOverlay.vue2.js +4 -0
  416. package/dist/sheet/SheetTitle.vue.js +27 -0
  417. package/dist/sheet/SheetTitle.vue2.js +4 -0
  418. package/dist/sheet/SheetTrigger.vue.js +21 -0
  419. package/dist/sheet/SheetTrigger.vue2.js +4 -0
  420. package/dist/sidebar/Sidebar.vue.js +63 -0
  421. package/dist/sidebar/Sidebar.vue2.js +4 -0
  422. package/dist/sidebar/SidebarContent.vue.js +26 -0
  423. package/dist/sidebar/SidebarContent.vue2.js +4 -0
  424. package/dist/sidebar/SidebarFooter.vue.js +21 -0
  425. package/dist/sidebar/SidebarFooter.vue2.js +4 -0
  426. package/dist/sidebar/SidebarGroup.vue.js +21 -0
  427. package/dist/sidebar/SidebarGroup.vue2.js +4 -0
  428. package/dist/sidebar/SidebarGroupAction.vue.js +36 -0
  429. package/dist/sidebar/SidebarGroupAction.vue2.js +4 -0
  430. package/dist/sidebar/SidebarGroupContent.vue.js +21 -0
  431. package/dist/sidebar/SidebarGroupContent.vue2.js +4 -0
  432. package/dist/sidebar/SidebarGroupLabel.vue.js +35 -0
  433. package/dist/sidebar/SidebarGroupLabel.vue2.js +4 -0
  434. package/dist/sidebar/SidebarHeader.vue.js +21 -0
  435. package/dist/sidebar/SidebarHeader.vue2.js +4 -0
  436. package/dist/sidebar/SidebarInput.vue.js +30 -0
  437. package/dist/sidebar/SidebarInput.vue2.js +4 -0
  438. package/dist/sidebar/SidebarInset.vue.js +20 -0
  439. package/dist/sidebar/SidebarInset.vue2.js +4 -0
  440. package/dist/sidebar/SidebarMenu.vue.js +21 -0
  441. package/dist/sidebar/SidebarMenu.vue2.js +4 -0
  442. package/dist/sidebar/SidebarMenuAction.vue.js +41 -0
  443. package/dist/sidebar/SidebarMenuAction.vue2.js +4 -0
  444. package/dist/sidebar/SidebarMenuBadge.vue.js +31 -0
  445. package/dist/sidebar/SidebarMenuBadge.vue2.js +4 -0
  446. package/dist/sidebar/SidebarMenuButton.vue.js +59 -0
  447. package/dist/sidebar/SidebarMenuButton.vue2.js +4 -0
  448. package/dist/sidebar/SidebarMenuButtonChild.vue.js +35 -0
  449. package/dist/sidebar/SidebarMenuButtonChild.vue2.js +4 -0
  450. package/dist/sidebar/SidebarMenuItem.vue.js +21 -0
  451. package/dist/sidebar/SidebarMenuItem.vue2.js +4 -0
  452. package/dist/sidebar/SidebarMenuSkeleton.vue.js +35 -0
  453. package/dist/sidebar/SidebarMenuSkeleton.vue2.js +4 -0
  454. package/dist/sidebar/SidebarMenuSub.vue.js +27 -0
  455. package/dist/sidebar/SidebarMenuSub.vue2.js +4 -0
  456. package/dist/sidebar/SidebarMenuSubButton.vue.js +42 -0
  457. package/dist/sidebar/SidebarMenuSubButton.vue2.js +4 -0
  458. package/dist/sidebar/SidebarMenuSubItem.vue.js +21 -0
  459. package/dist/sidebar/SidebarMenuSubItem.vue2.js +4 -0
  460. package/dist/sidebar/SidebarProvider.vue.js +39 -0
  461. package/dist/sidebar/SidebarProvider.vue2.js +4 -0
  462. package/dist/sidebar/SidebarSeparator.vue.js +25 -0
  463. package/dist/sidebar/SidebarSeparator.vue2.js +4 -0
  464. package/dist/sidebar/index.js +24 -0
  465. package/dist/sidebar/utils.js +8 -0
  466. package/dist/skeleton/Skeleton.vue.js +18 -0
  467. package/dist/skeleton/Skeleton.vue2.js +4 -0
  468. package/dist/sonner/Sonner.vue.js +31 -0
  469. package/dist/sonner/Sonner.vue2.js +4 -0
  470. package/dist/sonner/Toast.vue.js +70 -0
  471. package/dist/sonner/Toast.vue2.js +4 -0
  472. package/dist/sonner/index.js +22 -0
  473. package/dist/sonner/toast.js +12 -0
  474. package/dist/stepper/Stepper.vue.js +32 -0
  475. package/dist/stepper/Stepper.vue2.js +4 -0
  476. package/dist/stepper/StepperDescription.vue.js +26 -0
  477. package/dist/stepper/StepperDescription.vue2.js +4 -0
  478. package/dist/stepper/StepperIndicator.vue.js +37 -0
  479. package/dist/stepper/StepperIndicator.vue2.js +4 -0
  480. package/dist/stepper/StepperItem.vue.js +32 -0
  481. package/dist/stepper/StepperItem.vue2.js +4 -0
  482. package/dist/stepper/StepperSeparator.vue.js +34 -0
  483. package/dist/stepper/StepperSeparator.vue2.js +4 -0
  484. package/dist/stepper/StepperTitle.vue.js +26 -0
  485. package/dist/stepper/StepperTitle.vue2.js +4 -0
  486. package/dist/stepper/StepperTrigger.vue.js +29 -0
  487. package/dist/stepper/StepperTrigger.vue2.js +4 -0
  488. package/dist/switch/Switch.vue.js +62 -0
  489. package/dist/switch/Switch.vue2.js +4 -0
  490. package/dist/table/Table.vue.js +30 -0
  491. package/dist/table/Table.vue2.js +4 -0
  492. package/dist/table/TableBody.vue.js +25 -0
  493. package/dist/table/TableBody.vue2.js +4 -0
  494. package/dist/table/TableCaption.vue.js +20 -0
  495. package/dist/table/TableCaption.vue2.js +4 -0
  496. package/dist/table/TableCell.vue.js +25 -0
  497. package/dist/table/TableCell.vue2.js +4 -0
  498. package/dist/table/TableEmpty.vue.js +49 -0
  499. package/dist/table/TableEmpty.vue2.js +4 -0
  500. package/dist/table/TableFooter.vue.js +20 -0
  501. package/dist/table/TableFooter.vue2.js +4 -0
  502. package/dist/table/TableHead.vue.js +26 -0
  503. package/dist/table/TableHead.vue2.js +4 -0
  504. package/dist/table/TableHeader.vue.js +22 -0
  505. package/dist/table/TableHeader.vue2.js +4 -0
  506. package/dist/table/TableRow.vue.js +20 -0
  507. package/dist/table/TableRow.vue2.js +4 -0
  508. package/dist/table/utils.js +6 -0
  509. package/dist/tabs/Tabs.vue.js +33 -0
  510. package/dist/tabs/Tabs.vue2.js +4 -0
  511. package/dist/tabs/TabsContent.vue.js +29 -0
  512. package/dist/tabs/TabsContent.vue2.js +4 -0
  513. package/dist/tabs/TabsList.vue.js +30 -0
  514. package/dist/tabs/TabsList.vue2.js +4 -0
  515. package/dist/tabs/TabsTrigger.vue.js +33 -0
  516. package/dist/tabs/TabsTrigger.vue2.js +4 -0
  517. package/dist/tabs/index.js +18 -0
  518. package/dist/tag/Tag.vue.js +31 -0
  519. package/dist/tag/Tag.vue2.js +4 -0
  520. package/dist/tag/index.js +35 -0
  521. package/dist/textarea/Textarea.vue.js +35 -0
  522. package/dist/textarea/Textarea.vue2.js +4 -0
  523. package/dist/time-picker/TimePicker.vue.js +142 -0
  524. package/dist/time-picker/TimePicker.vue2.js +4 -0
  525. package/dist/tooltip/Tooltip.vue.js +27 -0
  526. package/dist/tooltip/Tooltip.vue2.js +4 -0
  527. package/dist/tooltip/TooltipContent.vue.js +51 -0
  528. package/dist/tooltip/TooltipContent.vue2.js +4 -0
  529. package/dist/tooltip/TooltipProvider.vue.js +25 -0
  530. package/dist/tooltip/TooltipProvider.vue2.js +4 -0
  531. package/dist/tooltip/TooltipTrigger.vue.js +22 -0
  532. package/dist/tooltip/TooltipTrigger.vue2.js +4 -0
  533. package/dist/upload/UploadContent.vue.js +30 -0
  534. package/dist/upload/UploadContent.vue2.js +4 -0
  535. package/dist/upload/UploadContentDescription.vue.js +37 -0
  536. package/dist/upload/UploadContentDescription.vue2.js +4 -0
  537. package/dist/upload/UploadContentLoadingDescription.vue.js +37 -0
  538. package/dist/upload/UploadContentLoadingDescription.vue2.js +4 -0
  539. package/dist/upload/UploadContentSuccessDescription.vue.js +37 -0
  540. package/dist/upload/UploadContentSuccessDescription.vue2.js +4 -0
  541. package/dist/upload/UploadContentTitle.vue.js +35 -0
  542. package/dist/upload/UploadContentTitle.vue2.js +4 -0
  543. package/dist/upload/UploadFileItem.vue.js +106 -0
  544. package/dist/upload/UploadFileItem.vue2.js +4 -0
  545. package/dist/upload/UploadRoot.vue.js +109 -0
  546. package/dist/upload/UploadRoot.vue2.js +4 -0
  547. package/dist/upload/upload-context.js +6 -0
  548. package/package.json +5 -2
@@ -0,0 +1,1771 @@
1
+ /**
2
+ * table-core
3
+ *
4
+ * Copyright (c) TanStack
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ function I(e, o) {
12
+ return typeof e == "function" ? e(o) : e;
13
+ }
14
+ function $(e, o) {
15
+ return (t) => {
16
+ o.setState((n) => ({
17
+ ...n,
18
+ [e]: I(t, n[e])
19
+ }));
20
+ };
21
+ }
22
+ function L(e) {
23
+ return e instanceof Function;
24
+ }
25
+ function pe(e) {
26
+ return Array.isArray(e) && e.every((o) => typeof o == "number");
27
+ }
28
+ function Se(e, o) {
29
+ const t = [], n = (i) => {
30
+ i.forEach((r) => {
31
+ t.push(r);
32
+ const l = o(r);
33
+ l != null && l.length && n(l);
34
+ });
35
+ };
36
+ return n(e), t;
37
+ }
38
+ function m(e, o, t) {
39
+ let n = [], i;
40
+ return (r) => {
41
+ let l;
42
+ t.key && t.debug && (l = Date.now());
43
+ const s = e(r);
44
+ if (!(s.length !== n.length || s.some((d, p) => n[p] !== d)))
45
+ return i;
46
+ n = s;
47
+ let a;
48
+ if (t.key && t.debug && (a = Date.now()), i = o(...s), t == null || t.onChange == null || t.onChange(i), t.key && t.debug && t != null && t.debug()) {
49
+ const d = Math.round((Date.now() - l) * 100) / 100, p = Math.round((Date.now() - a) * 100) / 100, f = p / 16, g = (c, S) => {
50
+ for (c = String(c); c.length < S; )
51
+ c = " " + c;
52
+ return c;
53
+ };
54
+ console.info(`%c⏱ ${g(p, 5)} /${g(d, 5)} ms`, `
55
+ font-size: .6rem;
56
+ font-weight: bold;
57
+ color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
58
+ }
59
+ return i;
60
+ };
61
+ }
62
+ function C(e, o, t, n) {
63
+ return {
64
+ debug: () => {
65
+ var i;
66
+ return (i = e == null ? void 0 : e.debugAll) != null ? i : e[o];
67
+ },
68
+ key: process.env.NODE_ENV === "development" && t,
69
+ onChange: n
70
+ };
71
+ }
72
+ function me(e, o, t, n) {
73
+ const i = () => {
74
+ var l;
75
+ return (l = r.getValue()) != null ? l : e.options.renderFallbackValue;
76
+ }, r = {
77
+ id: `${o.id}_${t.id}`,
78
+ row: o,
79
+ column: t,
80
+ getValue: () => o.getValue(n),
81
+ renderValue: i,
82
+ getContext: m(() => [e, t, o, r], (l, s, u, a) => ({
83
+ table: l,
84
+ column: s,
85
+ row: u,
86
+ cell: a,
87
+ getValue: a.getValue,
88
+ renderValue: a.renderValue
89
+ }), C(e.options, "debugCells", "cell.getContext"))
90
+ };
91
+ return e._features.forEach((l) => {
92
+ l.createCell == null || l.createCell(r, t, o, e);
93
+ }, {}), r;
94
+ }
95
+ function Ce(e, o, t, n) {
96
+ var i, r;
97
+ const s = {
98
+ ...e._getDefaultColumnDef(),
99
+ ...o
100
+ }, u = s.accessorKey;
101
+ let a = (i = (r = s.id) != null ? r : u ? typeof String.prototype.replaceAll == "function" ? u.replaceAll(".", "_") : u.replace(/\./g, "_") : void 0) != null ? i : typeof s.header == "string" ? s.header : void 0, d;
102
+ if (s.accessorFn ? d = s.accessorFn : u && (u.includes(".") ? d = (f) => {
103
+ let g = f;
104
+ for (const S of u.split(".")) {
105
+ var c;
106
+ g = (c = g) == null ? void 0 : c[S], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${S}" in deeply nested key "${u}" returned undefined.`);
107
+ }
108
+ return g;
109
+ } : d = (f) => f[s.accessorKey]), !a)
110
+ throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
111
+ let p = {
112
+ id: `${String(a)}`,
113
+ accessorFn: d,
114
+ parent: n,
115
+ depth: t,
116
+ columnDef: s,
117
+ columns: [],
118
+ getFlatColumns: m(() => [!0], () => {
119
+ var f;
120
+ return [p, ...(f = p.columns) == null ? void 0 : f.flatMap((g) => g.getFlatColumns())];
121
+ }, C(e.options, "debugColumns", "column.getFlatColumns")),
122
+ getLeafColumns: m(() => [e._getOrderColumnsFn()], (f) => {
123
+ var g;
124
+ if ((g = p.columns) != null && g.length) {
125
+ let c = p.columns.flatMap((S) => S.getLeafColumns());
126
+ return f(c);
127
+ }
128
+ return [p];
129
+ }, C(e.options, "debugColumns", "column.getLeafColumns"))
130
+ };
131
+ for (const f of e._features)
132
+ f.createColumn == null || f.createColumn(p, e);
133
+ return p;
134
+ }
135
+ const _ = "debugHeaders";
136
+ function te(e, o, t) {
137
+ var n;
138
+ let r = {
139
+ id: (n = t.id) != null ? n : o.id,
140
+ column: o,
141
+ index: t.index,
142
+ isPlaceholder: !!t.isPlaceholder,
143
+ placeholderId: t.placeholderId,
144
+ depth: t.depth,
145
+ subHeaders: [],
146
+ colSpan: 0,
147
+ rowSpan: 0,
148
+ headerGroup: null,
149
+ getLeafHeaders: () => {
150
+ const l = [], s = (u) => {
151
+ u.subHeaders && u.subHeaders.length && u.subHeaders.map(s), l.push(u);
152
+ };
153
+ return s(r), l;
154
+ },
155
+ getContext: () => ({
156
+ table: e,
157
+ header: r,
158
+ column: o
159
+ })
160
+ };
161
+ return e._features.forEach((l) => {
162
+ l.createHeader == null || l.createHeader(r, e);
163
+ }), r;
164
+ }
165
+ const Re = {
166
+ createTable: (e) => {
167
+ e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => {
168
+ var r, l;
169
+ const s = (r = n == null ? void 0 : n.map((p) => t.find((f) => f.id === p)).filter(Boolean)) != null ? r : [], u = (l = i == null ? void 0 : i.map((p) => t.find((f) => f.id === p)).filter(Boolean)) != null ? l : [], a = t.filter((p) => !(n != null && n.includes(p.id)) && !(i != null && i.includes(p.id)));
170
+ return H(o, [...s, ...a, ...u], e);
171
+ }, C(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => (t = t.filter((r) => !(n != null && n.includes(r.id)) && !(i != null && i.includes(r.id))), H(o, t, e, "center")), C(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
172
+ var i;
173
+ const r = (i = n == null ? void 0 : n.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
174
+ return H(o, r, e, "left");
175
+ }, C(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
176
+ var i;
177
+ const r = (i = n == null ? void 0 : n.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
178
+ return H(o, r, e, "right");
179
+ }, C(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
180
+ var n;
181
+ return !((n = t.subHeaders) != null && n.length);
182
+ }), C(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
183
+ var n;
184
+ return !((n = t.subHeaders) != null && n.length);
185
+ }), C(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
186
+ var n;
187
+ return !((n = t.subHeaders) != null && n.length);
188
+ }), C(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
189
+ var i, r, l, s, u, a;
190
+ return [...(i = (r = o[0]) == null ? void 0 : r.headers) != null ? i : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(u = (a = n[0]) == null ? void 0 : a.headers) != null ? u : []].map((d) => d.getLeafHeaders()).flat();
191
+ }, C(e.options, _, "getLeafHeaders"));
192
+ }
193
+ };
194
+ function H(e, o, t, n) {
195
+ var i, r;
196
+ let l = 0;
197
+ const s = function(f, g) {
198
+ g === void 0 && (g = 1), l = Math.max(l, g), f.filter((c) => c.getIsVisible()).forEach((c) => {
199
+ var S;
200
+ (S = c.columns) != null && S.length && s(c.columns, g + 1);
201
+ }, 0);
202
+ };
203
+ s(e);
204
+ let u = [];
205
+ const a = (f, g) => {
206
+ const c = {
207
+ depth: g,
208
+ id: [n, `${g}`].filter(Boolean).join("_"),
209
+ headers: []
210
+ }, S = [];
211
+ f.forEach((w) => {
212
+ const R = [...S].reverse()[0], h = w.column.depth === c.depth;
213
+ let v, M = !1;
214
+ if (h && w.column.parent ? v = w.column.parent : (v = w.column, M = !0), R && (R == null ? void 0 : R.column) === v)
215
+ R.subHeaders.push(w);
216
+ else {
217
+ const F = te(t, v, {
218
+ id: [n, g, v.id, w == null ? void 0 : w.id].filter(Boolean).join("_"),
219
+ isPlaceholder: M,
220
+ placeholderId: M ? `${S.filter((E) => E.column === v).length}` : void 0,
221
+ depth: g,
222
+ index: S.length
223
+ });
224
+ F.subHeaders.push(w), S.push(F);
225
+ }
226
+ c.headers.push(w), w.headerGroup = c;
227
+ }), u.push(c), g > 0 && a(S, g - 1);
228
+ }, d = o.map((f, g) => te(t, f, {
229
+ depth: l,
230
+ index: g
231
+ }));
232
+ a(d, l - 1), u.reverse();
233
+ const p = (f) => f.filter((c) => c.column.getIsVisible()).map((c) => {
234
+ let S = 0, w = 0, R = [0];
235
+ c.subHeaders && c.subHeaders.length ? (R = [], p(c.subHeaders).forEach((v) => {
236
+ let {
237
+ colSpan: M,
238
+ rowSpan: F
239
+ } = v;
240
+ S += M, R.push(F);
241
+ })) : S = 1;
242
+ const h = Math.min(...R);
243
+ return w = w + h, c.colSpan = S, c.rowSpan = w, {
244
+ colSpan: S,
245
+ rowSpan: w
246
+ };
247
+ });
248
+ return p((i = (r = u[0]) == null ? void 0 : r.headers) != null ? i : []), u;
249
+ }
250
+ const we = (e, o, t, n, i, r, l) => {
251
+ let s = {
252
+ id: o,
253
+ index: n,
254
+ original: t,
255
+ depth: i,
256
+ parentId: l,
257
+ _valuesCache: {},
258
+ _uniqueValuesCache: {},
259
+ getValue: (u) => {
260
+ if (s._valuesCache.hasOwnProperty(u))
261
+ return s._valuesCache[u];
262
+ const a = e.getColumn(u);
263
+ if (a != null && a.accessorFn)
264
+ return s._valuesCache[u] = a.accessorFn(s.original, n), s._valuesCache[u];
265
+ },
266
+ getUniqueValues: (u) => {
267
+ if (s._uniqueValuesCache.hasOwnProperty(u))
268
+ return s._uniqueValuesCache[u];
269
+ const a = e.getColumn(u);
270
+ if (a != null && a.accessorFn)
271
+ return a.columnDef.getUniqueValues ? (s._uniqueValuesCache[u] = a.columnDef.getUniqueValues(s.original, n), s._uniqueValuesCache[u]) : (s._uniqueValuesCache[u] = [s.getValue(u)], s._uniqueValuesCache[u]);
272
+ },
273
+ renderValue: (u) => {
274
+ var a;
275
+ return (a = s.getValue(u)) != null ? a : e.options.renderFallbackValue;
276
+ },
277
+ subRows: [],
278
+ getLeafRows: () => Se(s.subRows, (u) => u.subRows),
279
+ getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
280
+ getParentRows: () => {
281
+ let u = [], a = s;
282
+ for (; ; ) {
283
+ const d = a.getParentRow();
284
+ if (!d) break;
285
+ u.push(d), a = d;
286
+ }
287
+ return u.reverse();
288
+ },
289
+ getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((a) => me(e, s, a, a.id)), C(e.options, "debugRows", "getAllCells")),
290
+ _getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((a, d) => (a[d.column.id] = d, a), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
291
+ };
292
+ for (let u = 0; u < e._features.length; u++) {
293
+ const a = e._features[u];
294
+ a == null || a.createRow == null || a.createRow(s, e);
295
+ }
296
+ return s;
297
+ }, he = {
298
+ createColumn: (e, o) => {
299
+ e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
300
+ if (e._getFacetedMinMaxValues)
301
+ return e._getFacetedMinMaxValues();
302
+ };
303
+ }
304
+ }, oe = (e, o, t) => {
305
+ var n, i;
306
+ const r = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
307
+ return !!(!((i = e.getValue(o)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(r));
308
+ };
309
+ oe.autoRemove = (e) => V(e);
310
+ const ie = (e, o, t) => {
311
+ var n;
312
+ return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
313
+ };
314
+ ie.autoRemove = (e) => V(e);
315
+ const re = (e, o, t) => {
316
+ var n;
317
+ return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
318
+ };
319
+ re.autoRemove = (e) => V(e);
320
+ const le = (e, o, t) => {
321
+ var n;
322
+ return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
323
+ };
324
+ le.autoRemove = (e) => V(e);
325
+ const se = (e, o, t) => !t.some((n) => {
326
+ var i;
327
+ return !((i = e.getValue(o)) != null && i.includes(n));
328
+ });
329
+ se.autoRemove = (e) => V(e) || !(e != null && e.length);
330
+ const ue = (e, o, t) => t.some((n) => {
331
+ var i;
332
+ return (i = e.getValue(o)) == null ? void 0 : i.includes(n);
333
+ });
334
+ ue.autoRemove = (e) => V(e) || !(e != null && e.length);
335
+ const ge = (e, o, t) => e.getValue(o) === t;
336
+ ge.autoRemove = (e) => V(e);
337
+ const ae = (e, o, t) => e.getValue(o) == t;
338
+ ae.autoRemove = (e) => V(e);
339
+ const Q = (e, o, t) => {
340
+ let [n, i] = t;
341
+ const r = e.getValue(o);
342
+ return r >= n && r <= i;
343
+ };
344
+ Q.resolveFilterValue = (e) => {
345
+ let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, i = typeof t != "number" ? parseFloat(t) : t, r = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(i) ? 1 / 0 : i;
346
+ if (r > l) {
347
+ const s = r;
348
+ r = l, l = s;
349
+ }
350
+ return [r, l];
351
+ };
352
+ Q.autoRemove = (e) => V(e) || V(e[0]) && V(e[1]);
353
+ const P = {
354
+ includesString: oe,
355
+ includesStringSensitive: ie,
356
+ equalsString: re,
357
+ arrIncludes: le,
358
+ arrIncludesAll: se,
359
+ arrIncludesSome: ue,
360
+ equals: ge,
361
+ weakEquals: ae,
362
+ inNumberRange: Q
363
+ };
364
+ function V(e) {
365
+ return e == null || e === "";
366
+ }
367
+ const ve = {
368
+ getDefaultColumnDef: () => ({
369
+ filterFn: "auto"
370
+ }),
371
+ getInitialState: (e) => ({
372
+ columnFilters: [],
373
+ ...e
374
+ }),
375
+ getDefaultOptions: (e) => ({
376
+ onColumnFiltersChange: $("columnFilters", e),
377
+ filterFromLeafRows: !1,
378
+ maxLeafRowFilterDepth: 100
379
+ }),
380
+ createColumn: (e, o) => {
381
+ e.getAutoFilterFn = () => {
382
+ const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
383
+ return typeof n == "string" ? P.includesString : typeof n == "number" ? P.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? P.equals : Array.isArray(n) ? P.arrIncludes : P.weakEquals;
384
+ }, e.getFilterFn = () => {
385
+ var t, n;
386
+ return L(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
387
+ // @ts-ignore
388
+ (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : P[e.columnDef.filterFn]
389
+ );
390
+ }, e.getCanFilter = () => {
391
+ var t, n, i;
392
+ return ((t = e.columnDef.enableColumnFilter) != null ? t : !0) && ((n = o.options.enableColumnFilters) != null ? n : !0) && ((i = o.options.enableFilters) != null ? i : !0) && !!e.accessorFn;
393
+ }, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
394
+ var t;
395
+ return (t = o.getState().columnFilters) == null || (t = t.find((n) => n.id === e.id)) == null ? void 0 : t.value;
396
+ }, e.getFilterIndex = () => {
397
+ var t, n;
398
+ return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((i) => i.id === e.id)) != null ? t : -1;
399
+ }, e.setFilterValue = (t) => {
400
+ o.setColumnFilters((n) => {
401
+ const i = e.getFilterFn(), r = n == null ? void 0 : n.find((d) => d.id === e.id), l = I(t, r ? r.value : void 0);
402
+ if (ne(i, l, e)) {
403
+ var s;
404
+ return (s = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? s : [];
405
+ }
406
+ const u = {
407
+ id: e.id,
408
+ value: l
409
+ };
410
+ if (r) {
411
+ var a;
412
+ return (a = n == null ? void 0 : n.map((d) => d.id === e.id ? u : d)) != null ? a : [];
413
+ }
414
+ return n != null && n.length ? [...n, u] : [u];
415
+ });
416
+ };
417
+ },
418
+ createRow: (e, o) => {
419
+ e.columnFilters = {}, e.columnFiltersMeta = {};
420
+ },
421
+ createTable: (e) => {
422
+ e.setColumnFilters = (o) => {
423
+ const t = e.getAllLeafColumns(), n = (i) => {
424
+ var r;
425
+ return (r = I(o, i)) == null ? void 0 : r.filter((l) => {
426
+ const s = t.find((u) => u.id === l.id);
427
+ if (s) {
428
+ const u = s.getFilterFn();
429
+ if (ne(u, l.value, s))
430
+ return !1;
431
+ }
432
+ return !0;
433
+ });
434
+ };
435
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
436
+ }, e.resetColumnFilters = (o) => {
437
+ var t, n;
438
+ e.setColumnFilters(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.columnFilters) != null ? t : []);
439
+ }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
440
+ }
441
+ };
442
+ function ne(e, o, t) {
443
+ return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
444
+ }
445
+ const _e = (e, o, t) => t.reduce((n, i) => {
446
+ const r = i.getValue(e);
447
+ return n + (typeof r == "number" ? r : 0);
448
+ }, 0), Fe = (e, o, t) => {
449
+ let n;
450
+ return t.forEach((i) => {
451
+ const r = i.getValue(e);
452
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
453
+ }), n;
454
+ }, $e = (e, o, t) => {
455
+ let n;
456
+ return t.forEach((i) => {
457
+ const r = i.getValue(e);
458
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
459
+ }), n;
460
+ }, Ve = (e, o, t) => {
461
+ let n, i;
462
+ return t.forEach((r) => {
463
+ const l = r.getValue(e);
464
+ l != null && (n === void 0 ? l >= l && (n = i = l) : (n > l && (n = l), i < l && (i = l)));
465
+ }), [n, i];
466
+ }, Me = (e, o) => {
467
+ let t = 0, n = 0;
468
+ if (o.forEach((i) => {
469
+ let r = i.getValue(e);
470
+ r != null && (r = +r) >= r && (++t, n += r);
471
+ }), t) return n / t;
472
+ }, Pe = (e, o) => {
473
+ if (!o.length)
474
+ return;
475
+ const t = o.map((r) => r.getValue(e));
476
+ if (!pe(t))
477
+ return;
478
+ if (t.length === 1)
479
+ return t[0];
480
+ const n = Math.floor(t.length / 2), i = t.sort((r, l) => r - l);
481
+ return t.length % 2 !== 0 ? i[n] : (i[n - 1] + i[n]) / 2;
482
+ }, Ie = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), xe = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Ee = (e, o) => o.length, z = {
483
+ sum: _e,
484
+ min: Fe,
485
+ max: $e,
486
+ extent: Ve,
487
+ mean: Me,
488
+ median: Pe,
489
+ unique: Ie,
490
+ uniqueCount: xe,
491
+ count: Ee
492
+ }, De = {
493
+ getDefaultColumnDef: () => ({
494
+ aggregatedCell: (e) => {
495
+ var o, t;
496
+ return (o = (t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) != null ? o : null;
497
+ },
498
+ aggregationFn: "auto"
499
+ }),
500
+ getInitialState: (e) => ({
501
+ grouping: [],
502
+ ...e
503
+ }),
504
+ getDefaultOptions: (e) => ({
505
+ onGroupingChange: $("grouping", e),
506
+ groupedColumnMode: "reorder"
507
+ }),
508
+ createColumn: (e, o) => {
509
+ e.toggleGrouping = () => {
510
+ o.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((n) => n !== e.id) : [...t ?? [], e.id]);
511
+ }, e.getCanGroup = () => {
512
+ var t, n;
513
+ return ((t = e.columnDef.enableGrouping) != null ? t : !0) && ((n = o.options.enableGrouping) != null ? n : !0) && (!!e.accessorFn || !!e.columnDef.getGroupingValue);
514
+ }, e.getIsGrouped = () => {
515
+ var t;
516
+ return (t = o.getState().grouping) == null ? void 0 : t.includes(e.id);
517
+ }, e.getGroupedIndex = () => {
518
+ var t;
519
+ return (t = o.getState().grouping) == null ? void 0 : t.indexOf(e.id);
520
+ }, e.getToggleGroupingHandler = () => {
521
+ const t = e.getCanGroup();
522
+ return () => {
523
+ t && e.toggleGrouping();
524
+ };
525
+ }, e.getAutoAggregationFn = () => {
526
+ const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
527
+ if (typeof n == "number")
528
+ return z.sum;
529
+ if (Object.prototype.toString.call(n) === "[object Date]")
530
+ return z.extent;
531
+ }, e.getAggregationFn = () => {
532
+ var t, n;
533
+ if (!e)
534
+ throw new Error();
535
+ return L(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : z[e.columnDef.aggregationFn];
536
+ };
537
+ },
538
+ createTable: (e) => {
539
+ e.setGrouping = (o) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(o), e.resetGrouping = (o) => {
540
+ var t, n;
541
+ e.setGrouping(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.grouping) != null ? t : []);
542
+ }, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
543
+ },
544
+ createRow: (e, o) => {
545
+ e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
546
+ if (e._groupingValuesCache.hasOwnProperty(t))
547
+ return e._groupingValuesCache[t];
548
+ const n = o.getColumn(t);
549
+ return n != null && n.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
550
+ }, e._groupingValuesCache = {};
551
+ },
552
+ createCell: (e, o, t, n) => {
553
+ e.getIsGrouped = () => o.getIsGrouped() && o.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && o.getIsGrouped(), e.getIsAggregated = () => {
554
+ var i;
555
+ return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((i = t.subRows) != null && i.length);
556
+ };
557
+ }
558
+ };
559
+ function ye(e, o, t) {
560
+ if (!(o != null && o.length) || !t)
561
+ return e;
562
+ const n = e.filter((r) => !o.includes(r.id));
563
+ return t === "remove" ? n : [...o.map((r) => e.find((l) => l.id === r)).filter(Boolean), ...n];
564
+ }
565
+ const He = {
566
+ getInitialState: (e) => ({
567
+ columnOrder: [],
568
+ ...e
569
+ }),
570
+ getDefaultOptions: (e) => ({
571
+ onColumnOrderChange: $("columnOrder", e)
572
+ }),
573
+ createColumn: (e, o) => {
574
+ e.getIndex = m((t) => [y(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
575
+ var n;
576
+ return ((n = y(o, t)[0]) == null ? void 0 : n.id) === e.id;
577
+ }, e.getIsLastColumn = (t) => {
578
+ var n;
579
+ const i = y(o, t);
580
+ return ((n = i[i.length - 1]) == null ? void 0 : n.id) === e.id;
581
+ };
582
+ },
583
+ createTable: (e) => {
584
+ e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
585
+ var t;
586
+ e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
587
+ }, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (i) => {
588
+ let r = [];
589
+ if (!(o != null && o.length))
590
+ r = i;
591
+ else {
592
+ const l = [...o], s = [...i];
593
+ for (; s.length && l.length; ) {
594
+ const u = l.shift(), a = s.findIndex((d) => d.id === u);
595
+ a > -1 && r.push(s.splice(a, 1)[0]);
596
+ }
597
+ r = [...r, ...s];
598
+ }
599
+ return ye(r, t, n);
600
+ }, C(e.options, "debugTable", "_getOrderColumnsFn"));
601
+ }
602
+ }, O = () => ({
603
+ left: [],
604
+ right: []
605
+ }), Ge = {
606
+ getInitialState: (e) => ({
607
+ columnPinning: O(),
608
+ ...e
609
+ }),
610
+ getDefaultOptions: (e) => ({
611
+ onColumnPinningChange: $("columnPinning", e)
612
+ }),
613
+ createColumn: (e, o) => {
614
+ e.pin = (t) => {
615
+ const n = e.getLeafColumns().map((i) => i.id).filter(Boolean);
616
+ o.setColumnPinning((i) => {
617
+ var r, l;
618
+ if (t === "right") {
619
+ var s, u;
620
+ return {
621
+ left: ((s = i == null ? void 0 : i.left) != null ? s : []).filter((p) => !(n != null && n.includes(p))),
622
+ right: [...((u = i == null ? void 0 : i.right) != null ? u : []).filter((p) => !(n != null && n.includes(p))), ...n]
623
+ };
624
+ }
625
+ if (t === "left") {
626
+ var a, d;
627
+ return {
628
+ left: [...((a = i == null ? void 0 : i.left) != null ? a : []).filter((p) => !(n != null && n.includes(p))), ...n],
629
+ right: ((d = i == null ? void 0 : i.right) != null ? d : []).filter((p) => !(n != null && n.includes(p)))
630
+ };
631
+ }
632
+ return {
633
+ left: ((r = i == null ? void 0 : i.left) != null ? r : []).filter((p) => !(n != null && n.includes(p))),
634
+ right: ((l = i == null ? void 0 : i.right) != null ? l : []).filter((p) => !(n != null && n.includes(p)))
635
+ };
636
+ });
637
+ }, e.getCanPin = () => e.getLeafColumns().some((n) => {
638
+ var i, r, l;
639
+ return ((i = n.columnDef.enablePinning) != null ? i : !0) && ((r = (l = o.options.enableColumnPinning) != null ? l : o.options.enablePinning) != null ? r : !0);
640
+ }), e.getIsPinned = () => {
641
+ const t = e.getLeafColumns().map((s) => s.id), {
642
+ left: n,
643
+ right: i
644
+ } = o.getState().columnPinning, r = t.some((s) => n == null ? void 0 : n.includes(s)), l = t.some((s) => i == null ? void 0 : i.includes(s));
645
+ return r ? "left" : l ? "right" : !1;
646
+ }, e.getPinnedIndex = () => {
647
+ var t, n;
648
+ const i = e.getIsPinned();
649
+ return i ? (t = (n = o.getState().columnPinning) == null || (n = n[i]) == null ? void 0 : n.indexOf(e.id)) != null ? t : -1 : 0;
650
+ };
651
+ },
652
+ createRow: (e, o) => {
653
+ e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, i) => {
654
+ const r = [...n ?? [], ...i ?? []];
655
+ return t.filter((l) => !r.includes(l.column.id));
656
+ }, C(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((r) => t.find((l) => l.column.id === r)).filter(Boolean).map((r) => ({
657
+ ...r,
658
+ position: "left"
659
+ })), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((r) => t.find((l) => l.column.id === r)).filter(Boolean).map((r) => ({
660
+ ...r,
661
+ position: "right"
662
+ })), C(o.options, "debugRows", "getRightVisibleCells"));
663
+ },
664
+ createTable: (e) => {
665
+ e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
666
+ var t, n;
667
+ return e.setColumnPinning(o ? O() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : O());
668
+ }, e.getIsSomeColumnsPinned = (o) => {
669
+ var t;
670
+ const n = e.getState().columnPinning;
671
+ if (!o) {
672
+ var i, r;
673
+ return !!((i = n.left) != null && i.length || (r = n.right) != null && r.length);
674
+ }
675
+ return !!((t = n[o]) != null && t.length);
676
+ }, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((i) => i.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((i) => i.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
677
+ const i = [...t ?? [], ...n ?? []];
678
+ return o.filter((r) => !i.includes(r.id));
679
+ }, C(e.options, "debugColumns", "getCenterLeafColumns"));
680
+ }
681
+ };
682
+ function Ae(e) {
683
+ return e || (typeof document < "u" ? document : null);
684
+ }
685
+ const G = {
686
+ size: 150,
687
+ minSize: 20,
688
+ maxSize: Number.MAX_SAFE_INTEGER
689
+ }, B = () => ({
690
+ startOffset: null,
691
+ startSize: null,
692
+ deltaOffset: null,
693
+ deltaPercentage: null,
694
+ isResizingColumn: !1,
695
+ columnSizingStart: []
696
+ }), Le = {
697
+ getDefaultColumnDef: () => G,
698
+ getInitialState: (e) => ({
699
+ columnSizing: {},
700
+ columnSizingInfo: B(),
701
+ ...e
702
+ }),
703
+ getDefaultOptions: (e) => ({
704
+ columnResizeMode: "onEnd",
705
+ columnResizeDirection: "ltr",
706
+ onColumnSizingChange: $("columnSizing", e),
707
+ onColumnSizingInfoChange: $("columnSizingInfo", e)
708
+ }),
709
+ createColumn: (e, o) => {
710
+ e.getSize = () => {
711
+ var t, n, i;
712
+ const r = o.getState().columnSizing[e.id];
713
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : G.minSize, (n = r ?? e.columnDef.size) != null ? n : G.size), (i = e.columnDef.maxSize) != null ? i : G.maxSize);
714
+ }, e.getStart = m((t) => [t, y(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((i, r) => i + r.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = m((t) => [t, y(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((i, r) => i + r.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
715
+ o.setColumnSizing((t) => {
716
+ let {
717
+ [e.id]: n,
718
+ ...i
719
+ } = t;
720
+ return i;
721
+ });
722
+ }, e.getCanResize = () => {
723
+ var t, n;
724
+ return ((t = e.columnDef.enableResizing) != null ? t : !0) && ((n = o.options.enableColumnResizing) != null ? n : !0);
725
+ }, e.getIsResizing = () => o.getState().columnSizingInfo.isResizingColumn === e.id;
726
+ },
727
+ createHeader: (e, o) => {
728
+ e.getSize = () => {
729
+ let t = 0;
730
+ const n = (i) => {
731
+ if (i.subHeaders.length)
732
+ i.subHeaders.forEach(n);
733
+ else {
734
+ var r;
735
+ t += (r = i.column.getSize()) != null ? r : 0;
736
+ }
737
+ };
738
+ return n(e), t;
739
+ }, e.getStart = () => {
740
+ if (e.index > 0) {
741
+ const t = e.headerGroup.headers[e.index - 1];
742
+ return t.getStart() + t.getSize();
743
+ }
744
+ return 0;
745
+ }, e.getResizeHandler = (t) => {
746
+ const n = o.getColumn(e.column.id), i = n == null ? void 0 : n.getCanResize();
747
+ return (r) => {
748
+ if (!n || !i || (r.persist == null || r.persist(), T(r) && r.touches && r.touches.length > 1))
749
+ return;
750
+ const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = T(r) ? Math.round(r.touches[0].clientX) : r.clientX, a = {}, d = (R, h) => {
751
+ typeof h == "number" && (o.setColumnSizingInfo((v) => {
752
+ var M, F;
753
+ const E = o.options.columnResizeDirection === "rtl" ? -1 : 1, Z = (h - ((M = v == null ? void 0 : v.startOffset) != null ? M : 0)) * E, b = Math.max(Z / ((F = v == null ? void 0 : v.startSize) != null ? F : 0), -0.999999);
754
+ return v.columnSizingStart.forEach((fe) => {
755
+ let [ce, ee] = fe;
756
+ a[ce] = Math.round(Math.max(ee + ee * b, 0) * 100) / 100;
757
+ }), {
758
+ ...v,
759
+ deltaOffset: Z,
760
+ deltaPercentage: b
761
+ };
762
+ }), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing((v) => ({
763
+ ...v,
764
+ ...a
765
+ })));
766
+ }, p = (R) => d("move", R), f = (R) => {
767
+ d("end", R), o.setColumnSizingInfo((h) => ({
768
+ ...h,
769
+ isResizingColumn: !1,
770
+ startOffset: null,
771
+ startSize: null,
772
+ deltaOffset: null,
773
+ deltaPercentage: null,
774
+ columnSizingStart: []
775
+ }));
776
+ }, g = Ae(t), c = {
777
+ moveHandler: (R) => p(R.clientX),
778
+ upHandler: (R) => {
779
+ g == null || g.removeEventListener("mousemove", c.moveHandler), g == null || g.removeEventListener("mouseup", c.upHandler), f(R.clientX);
780
+ }
781
+ }, S = {
782
+ moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), p(R.touches[0].clientX), !1),
783
+ upHandler: (R) => {
784
+ var h;
785
+ g == null || g.removeEventListener("touchmove", S.moveHandler), g == null || g.removeEventListener("touchend", S.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((h = R.touches[0]) == null ? void 0 : h.clientX);
786
+ }
787
+ }, w = ze() ? {
788
+ passive: !1
789
+ } : !1;
790
+ T(r) ? (g == null || g.addEventListener("touchmove", S.moveHandler, w), g == null || g.addEventListener("touchend", S.upHandler, w)) : (g == null || g.addEventListener("mousemove", c.moveHandler, w), g == null || g.addEventListener("mouseup", c.upHandler, w)), o.setColumnSizingInfo((R) => ({
791
+ ...R,
792
+ startOffset: u,
793
+ startSize: l,
794
+ deltaOffset: 0,
795
+ deltaPercentage: 0,
796
+ columnSizingStart: s,
797
+ isResizingColumn: n.id
798
+ }));
799
+ };
800
+ };
801
+ },
802
+ createTable: (e) => {
803
+ e.setColumnSizing = (o) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(o), e.setColumnSizingInfo = (o) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(o), e.resetColumnSizing = (o) => {
804
+ var t;
805
+ e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
806
+ }, e.resetHeaderSizeInfo = (o) => {
807
+ var t;
808
+ e.setColumnSizingInfo(o ? B() : (t = e.initialState.columnSizingInfo) != null ? t : B());
809
+ }, e.getTotalSize = () => {
810
+ var o, t;
811
+ return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, i) => n + i.getSize(), 0)) != null ? o : 0;
812
+ }, e.getLeftTotalSize = () => {
813
+ var o, t;
814
+ return (o = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, i) => n + i.getSize(), 0)) != null ? o : 0;
815
+ }, e.getCenterTotalSize = () => {
816
+ var o, t;
817
+ return (o = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, i) => n + i.getSize(), 0)) != null ? o : 0;
818
+ }, e.getRightTotalSize = () => {
819
+ var o, t;
820
+ return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, i) => n + i.getSize(), 0)) != null ? o : 0;
821
+ };
822
+ }
823
+ };
824
+ let A = null;
825
+ function ze() {
826
+ if (typeof A == "boolean") return A;
827
+ let e = !1;
828
+ try {
829
+ const o = {
830
+ get passive() {
831
+ return e = !0, !1;
832
+ }
833
+ }, t = () => {
834
+ };
835
+ window.addEventListener("test", t, o), window.removeEventListener("test", t);
836
+ } catch {
837
+ e = !1;
838
+ }
839
+ return A = e, A;
840
+ }
841
+ function T(e) {
842
+ return e.type === "touchstart";
843
+ }
844
+ const Oe = {
845
+ getInitialState: (e) => ({
846
+ columnVisibility: {},
847
+ ...e
848
+ }),
849
+ getDefaultOptions: (e) => ({
850
+ onColumnVisibilityChange: $("columnVisibility", e)
851
+ }),
852
+ createColumn: (e, o) => {
853
+ e.toggleVisibility = (t) => {
854
+ e.getCanHide() && o.setColumnVisibility((n) => ({
855
+ ...n,
856
+ [e.id]: t ?? !e.getIsVisible()
857
+ }));
858
+ }, e.getIsVisible = () => {
859
+ var t, n;
860
+ const i = e.columns;
861
+ return (t = i.length ? i.some((r) => r.getIsVisible()) : (n = o.getState().columnVisibility) == null ? void 0 : n[e.id]) != null ? t : !0;
862
+ }, e.getCanHide = () => {
863
+ var t, n;
864
+ return ((t = e.columnDef.enableHiding) != null ? t : !0) && ((n = o.options.enableHiding) != null ? n : !0);
865
+ }, e.getToggleVisibilityHandler = () => (t) => {
866
+ e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
867
+ };
868
+ },
869
+ createRow: (e, o) => {
870
+ e._getAllVisibleCells = m(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = m(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, i) => [...t, ...n, ...i], C(o.options, "debugRows", "getVisibleCells"));
871
+ },
872
+ createTable: (e) => {
873
+ const o = (t, n) => m(() => [n(), n().filter((i) => i.getIsVisible()).map((i) => i.id).join("_")], (i) => i.filter((r) => r.getIsVisible == null ? void 0 : r.getIsVisible()), C(e.options, "debugColumns", t));
874
+ e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
875
+ var n;
876
+ e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
877
+ }, e.toggleAllColumnsVisible = (t) => {
878
+ var n;
879
+ t = (n = t) != null ? n : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((i, r) => ({
880
+ ...i,
881
+ [r.id]: t || !(r.getCanHide != null && r.getCanHide())
882
+ }), {}));
883
+ }, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((t) => !(t.getIsVisible != null && t.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((t) => t.getIsVisible == null ? void 0 : t.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
884
+ var n;
885
+ e.toggleAllColumnsVisible((n = t.target) == null ? void 0 : n.checked);
886
+ };
887
+ }
888
+ };
889
+ function y(e, o) {
890
+ return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
891
+ }
892
+ const Be = {
893
+ createTable: (e) => {
894
+ e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
895
+ if (e._getGlobalFacetedMinMaxValues)
896
+ return e._getGlobalFacetedMinMaxValues();
897
+ };
898
+ }
899
+ }, Te = {
900
+ getInitialState: (e) => ({
901
+ globalFilter: void 0,
902
+ ...e
903
+ }),
904
+ getDefaultOptions: (e) => ({
905
+ onGlobalFilterChange: $("globalFilter", e),
906
+ globalFilterFn: "auto",
907
+ getColumnCanGlobalFilter: (o) => {
908
+ var t;
909
+ const n = (t = e.getCoreRowModel().flatRows[0]) == null || (t = t._getAllCellsByColumnId()[o.id]) == null ? void 0 : t.getValue();
910
+ return typeof n == "string" || typeof n == "number";
911
+ }
912
+ }),
913
+ createColumn: (e, o) => {
914
+ e.getCanGlobalFilter = () => {
915
+ var t, n, i, r;
916
+ return ((t = e.columnDef.enableGlobalFilter) != null ? t : !0) && ((n = o.options.enableGlobalFilter) != null ? n : !0) && ((i = o.options.enableFilters) != null ? i : !0) && ((r = o.options.getColumnCanGlobalFilter == null ? void 0 : o.options.getColumnCanGlobalFilter(e)) != null ? r : !0) && !!e.accessorFn;
917
+ };
918
+ },
919
+ createTable: (e) => {
920
+ e.getGlobalAutoFilterFn = () => P.includesString, e.getGlobalFilterFn = () => {
921
+ var o, t;
922
+ const {
923
+ globalFilterFn: n
924
+ } = e.options;
925
+ return L(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : P[n];
926
+ }, e.setGlobalFilter = (o) => {
927
+ e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
928
+ }, e.resetGlobalFilter = (o) => {
929
+ e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
930
+ };
931
+ }
932
+ }, qe = {
933
+ getInitialState: (e) => ({
934
+ expanded: {},
935
+ ...e
936
+ }),
937
+ getDefaultOptions: (e) => ({
938
+ onExpandedChange: $("expanded", e),
939
+ paginateExpandedRows: !0
940
+ }),
941
+ createTable: (e) => {
942
+ let o = !1, t = !1;
943
+ e._autoResetExpanded = () => {
944
+ var n, i;
945
+ if (!o) {
946
+ e._queue(() => {
947
+ o = !0;
948
+ });
949
+ return;
950
+ }
951
+ if ((n = (i = e.options.autoResetAll) != null ? i : e.options.autoResetExpanded) != null ? n : !e.options.manualExpanding) {
952
+ if (t) return;
953
+ t = !0, e._queue(() => {
954
+ e.resetExpanded(), t = !1;
955
+ });
956
+ }
957
+ }, e.setExpanded = (n) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(n), e.toggleAllRowsExpanded = (n) => {
958
+ n ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
959
+ }, e.resetExpanded = (n) => {
960
+ var i, r;
961
+ e.setExpanded(n ? {} : (i = (r = e.initialState) == null ? void 0 : r.expanded) != null ? i : {});
962
+ }, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((n) => n.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (n) => {
963
+ n.persist == null || n.persist(), e.toggleAllRowsExpanded();
964
+ }, e.getIsSomeRowsExpanded = () => {
965
+ const n = e.getState().expanded;
966
+ return n === !0 || Object.values(n).some(Boolean);
967
+ }, e.getIsAllRowsExpanded = () => {
968
+ const n = e.getState().expanded;
969
+ return typeof n == "boolean" ? n === !0 : !(!Object.keys(n).length || e.getRowModel().flatRows.some((i) => !i.getIsExpanded()));
970
+ }, e.getExpandedDepth = () => {
971
+ let n = 0;
972
+ return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((r) => {
973
+ const l = r.split(".");
974
+ n = Math.max(n, l.length);
975
+ }), n;
976
+ }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
977
+ },
978
+ createRow: (e, o) => {
979
+ e.toggleExpanded = (t) => {
980
+ o.setExpanded((n) => {
981
+ var i;
982
+ const r = n === !0 ? !0 : !!(n != null && n[e.id]);
983
+ let l = {};
984
+ if (n === !0 ? Object.keys(o.getRowModel().rowsById).forEach((s) => {
985
+ l[s] = !0;
986
+ }) : l = n, t = (i = t) != null ? i : !r, !r && t)
987
+ return {
988
+ ...l,
989
+ [e.id]: !0
990
+ };
991
+ if (r && !t) {
992
+ const {
993
+ [e.id]: s,
994
+ ...u
995
+ } = l;
996
+ return u;
997
+ }
998
+ return n;
999
+ });
1000
+ }, e.getIsExpanded = () => {
1001
+ var t;
1002
+ const n = o.getState().expanded;
1003
+ return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n != null && n[e.id]);
1004
+ }, e.getCanExpand = () => {
1005
+ var t, n, i;
1006
+ return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : !0) && !!((i = e.subRows) != null && i.length);
1007
+ }, e.getIsAllParentsExpanded = () => {
1008
+ let t = !0, n = e;
1009
+ for (; t && n.parentId; )
1010
+ n = o.getRow(n.parentId, !0), t = n.getIsExpanded();
1011
+ return t;
1012
+ }, e.getToggleExpandedHandler = () => {
1013
+ const t = e.getCanExpand();
1014
+ return () => {
1015
+ t && e.toggleExpanded();
1016
+ };
1017
+ };
1018
+ }
1019
+ }, U = 0, j = 10, q = () => ({
1020
+ pageIndex: U,
1021
+ pageSize: j
1022
+ }), Ne = {
1023
+ getInitialState: (e) => ({
1024
+ ...e,
1025
+ pagination: {
1026
+ ...q(),
1027
+ ...e == null ? void 0 : e.pagination
1028
+ }
1029
+ }),
1030
+ getDefaultOptions: (e) => ({
1031
+ onPaginationChange: $("pagination", e)
1032
+ }),
1033
+ createTable: (e) => {
1034
+ let o = !1, t = !1;
1035
+ e._autoResetPageIndex = () => {
1036
+ var n, i;
1037
+ if (!o) {
1038
+ e._queue(() => {
1039
+ o = !0;
1040
+ });
1041
+ return;
1042
+ }
1043
+ if ((n = (i = e.options.autoResetAll) != null ? i : e.options.autoResetPageIndex) != null ? n : !e.options.manualPagination) {
1044
+ if (t) return;
1045
+ t = !0, e._queue(() => {
1046
+ e.resetPageIndex(), t = !1;
1047
+ });
1048
+ }
1049
+ }, e.setPagination = (n) => {
1050
+ const i = (r) => I(n, r);
1051
+ return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(i);
1052
+ }, e.resetPagination = (n) => {
1053
+ var i;
1054
+ e.setPagination(n ? q() : (i = e.initialState.pagination) != null ? i : q());
1055
+ }, e.setPageIndex = (n) => {
1056
+ e.setPagination((i) => {
1057
+ let r = I(n, i.pageIndex);
1058
+ const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
1059
+ return r = Math.max(0, Math.min(r, l)), {
1060
+ ...i,
1061
+ pageIndex: r
1062
+ };
1063
+ });
1064
+ }, e.resetPageIndex = (n) => {
1065
+ var i, r;
1066
+ e.setPageIndex(n ? U : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageIndex) != null ? i : U);
1067
+ }, e.resetPageSize = (n) => {
1068
+ var i, r;
1069
+ e.setPageSize(n ? j : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageSize) != null ? i : j);
1070
+ }, e.setPageSize = (n) => {
1071
+ e.setPagination((i) => {
1072
+ const r = Math.max(1, I(n, i.pageSize)), l = i.pageSize * i.pageIndex, s = Math.floor(l / r);
1073
+ return {
1074
+ ...i,
1075
+ pageIndex: s,
1076
+ pageSize: r
1077
+ };
1078
+ });
1079
+ }, e.setPageCount = (n) => e.setPagination((i) => {
1080
+ var r;
1081
+ let l = I(n, (r = e.options.pageCount) != null ? r : -1);
1082
+ return typeof l == "number" && (l = Math.max(-1, l)), {
1083
+ ...i,
1084
+ pageCount: l
1085
+ };
1086
+ }), e.getPageOptions = m(() => [e.getPageCount()], (n) => {
1087
+ let i = [];
1088
+ return n && n > 0 && (i = [...new Array(n)].fill(null).map((r, l) => l)), i;
1089
+ }, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1090
+ const {
1091
+ pageIndex: n
1092
+ } = e.getState().pagination, i = e.getPageCount();
1093
+ return i === -1 ? !0 : i === 0 ? !1 : n < i - 1;
1094
+ }, e.previousPage = () => e.setPageIndex((n) => n - 1), e.nextPage = () => e.setPageIndex((n) => n + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
1095
+ var n;
1096
+ return (n = e.options.pageCount) != null ? n : Math.ceil(e.getRowCount() / e.getState().pagination.pageSize);
1097
+ }, e.getRowCount = () => {
1098
+ var n;
1099
+ return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
1100
+ };
1101
+ }
1102
+ }, N = () => ({
1103
+ top: [],
1104
+ bottom: []
1105
+ }), ke = {
1106
+ getInitialState: (e) => ({
1107
+ rowPinning: N(),
1108
+ ...e
1109
+ }),
1110
+ getDefaultOptions: (e) => ({
1111
+ onRowPinningChange: $("rowPinning", e)
1112
+ }),
1113
+ createRow: (e, o) => {
1114
+ e.pin = (t, n, i) => {
1115
+ const r = n ? e.getLeafRows().map((u) => {
1116
+ let {
1117
+ id: a
1118
+ } = u;
1119
+ return a;
1120
+ }) : [], l = i ? e.getParentRows().map((u) => {
1121
+ let {
1122
+ id: a
1123
+ } = u;
1124
+ return a;
1125
+ }) : [], s = /* @__PURE__ */ new Set([...l, e.id, ...r]);
1126
+ o.setRowPinning((u) => {
1127
+ var a, d;
1128
+ if (t === "bottom") {
1129
+ var p, f;
1130
+ return {
1131
+ top: ((p = u == null ? void 0 : u.top) != null ? p : []).filter((S) => !(s != null && s.has(S))),
1132
+ bottom: [...((f = u == null ? void 0 : u.bottom) != null ? f : []).filter((S) => !(s != null && s.has(S))), ...Array.from(s)]
1133
+ };
1134
+ }
1135
+ if (t === "top") {
1136
+ var g, c;
1137
+ return {
1138
+ top: [...((g = u == null ? void 0 : u.top) != null ? g : []).filter((S) => !(s != null && s.has(S))), ...Array.from(s)],
1139
+ bottom: ((c = u == null ? void 0 : u.bottom) != null ? c : []).filter((S) => !(s != null && s.has(S)))
1140
+ };
1141
+ }
1142
+ return {
1143
+ top: ((a = u == null ? void 0 : u.top) != null ? a : []).filter((S) => !(s != null && s.has(S))),
1144
+ bottom: ((d = u == null ? void 0 : u.bottom) != null ? d : []).filter((S) => !(s != null && s.has(S)))
1145
+ };
1146
+ });
1147
+ }, e.getCanPin = () => {
1148
+ var t;
1149
+ const {
1150
+ enableRowPinning: n,
1151
+ enablePinning: i
1152
+ } = o.options;
1153
+ return typeof n == "function" ? n(e) : (t = n ?? i) != null ? t : !0;
1154
+ }, e.getIsPinned = () => {
1155
+ const t = [e.id], {
1156
+ top: n,
1157
+ bottom: i
1158
+ } = o.getState().rowPinning, r = t.some((s) => n == null ? void 0 : n.includes(s)), l = t.some((s) => i == null ? void 0 : i.includes(s));
1159
+ return r ? "top" : l ? "bottom" : !1;
1160
+ }, e.getPinnedIndex = () => {
1161
+ var t, n;
1162
+ const i = e.getIsPinned();
1163
+ if (!i) return -1;
1164
+ const r = (t = i === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((l) => {
1165
+ let {
1166
+ id: s
1167
+ } = l;
1168
+ return s;
1169
+ });
1170
+ return (n = r == null ? void 0 : r.indexOf(e.id)) != null ? n : -1;
1171
+ };
1172
+ },
1173
+ createTable: (e) => {
1174
+ e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
1175
+ var t, n;
1176
+ return e.setRowPinning(o ? N() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : N());
1177
+ }, e.getIsSomeRowsPinned = (o) => {
1178
+ var t;
1179
+ const n = e.getState().rowPinning;
1180
+ if (!o) {
1181
+ var i, r;
1182
+ return !!((i = n.top) != null && i.length || (r = n.bottom) != null && r.length);
1183
+ }
1184
+ return !!((t = n[o]) != null && t.length);
1185
+ }, e._getPinnedRows = (o, t, n) => {
1186
+ var i;
1187
+ return ((i = e.options.keepPinnedRows) == null || i ? (
1188
+ //get all rows that are pinned even if they would not be otherwise visible
1189
+ //account for expanded parent rows, but not pagination or filtering
1190
+ (t ?? []).map((l) => {
1191
+ const s = e.getRow(l, !0);
1192
+ return s.getIsAllParentsExpanded() ? s : null;
1193
+ })
1194
+ ) : (
1195
+ //else get only visible rows that are pinned
1196
+ (t ?? []).map((l) => o.find((s) => s.id === l))
1197
+ )).filter(Boolean).map((l) => ({
1198
+ ...l,
1199
+ position: n
1200
+ }));
1201
+ }, e.getTopRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), C(e.options, "debugRows", "getTopRows")), e.getBottomRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), C(e.options, "debugRows", "getBottomRows")), e.getCenterRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1202
+ const i = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
1203
+ return o.filter((r) => !i.has(r.id));
1204
+ }, C(e.options, "debugRows", "getCenterRows"));
1205
+ }
1206
+ }, Ue = {
1207
+ getInitialState: (e) => ({
1208
+ rowSelection: {},
1209
+ ...e
1210
+ }),
1211
+ getDefaultOptions: (e) => ({
1212
+ onRowSelectionChange: $("rowSelection", e),
1213
+ enableRowSelection: !0,
1214
+ enableMultiRowSelection: !0,
1215
+ enableSubRowSelection: !0
1216
+ // enableGroupingRowSelection: false,
1217
+ // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1218
+ // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1219
+ }),
1220
+ createTable: (e) => {
1221
+ e.setRowSelection = (o) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(o), e.resetRowSelection = (o) => {
1222
+ var t;
1223
+ return e.setRowSelection(o ? {} : (t = e.initialState.rowSelection) != null ? t : {});
1224
+ }, e.toggleAllRowsSelected = (o) => {
1225
+ e.setRowSelection((t) => {
1226
+ o = typeof o < "u" ? o : !e.getIsAllRowsSelected();
1227
+ const n = {
1228
+ ...t
1229
+ }, i = e.getPreGroupedRowModel().flatRows;
1230
+ return o ? i.forEach((r) => {
1231
+ r.getCanSelect() && (n[r.id] = !0);
1232
+ }) : i.forEach((r) => {
1233
+ delete n[r.id];
1234
+ }), n;
1235
+ });
1236
+ }, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
1237
+ const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), i = {
1238
+ ...t
1239
+ };
1240
+ return e.getRowModel().rows.forEach((r) => {
1241
+ X(i, r.id, n, !0, e);
1242
+ }), i;
1243
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1244
+ rows: [],
1245
+ flatRows: [],
1246
+ rowsById: {}
1247
+ }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1248
+ rows: [],
1249
+ flatRows: [],
1250
+ rowsById: {}
1251
+ }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1252
+ rows: [],
1253
+ flatRows: [],
1254
+ rowsById: {}
1255
+ }, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
1256
+ const o = e.getFilteredRowModel().flatRows, {
1257
+ rowSelection: t
1258
+ } = e.getState();
1259
+ let n = !!(o.length && Object.keys(t).length);
1260
+ return n && o.some((i) => i.getCanSelect() && !t[i.id]) && (n = !1), n;
1261
+ }, e.getIsAllPageRowsSelected = () => {
1262
+ const o = e.getPaginationRowModel().flatRows.filter((i) => i.getCanSelect()), {
1263
+ rowSelection: t
1264
+ } = e.getState();
1265
+ let n = !!o.length;
1266
+ return n && o.some((i) => !t[i.id]) && (n = !1), n;
1267
+ }, e.getIsSomeRowsSelected = () => {
1268
+ var o;
1269
+ const t = Object.keys((o = e.getState().rowSelection) != null ? o : {}).length;
1270
+ return t > 0 && t < e.getFilteredRowModel().flatRows.length;
1271
+ }, e.getIsSomePageRowsSelected = () => {
1272
+ const o = e.getPaginationRowModel().flatRows;
1273
+ return e.getIsAllPageRowsSelected() ? !1 : o.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
1274
+ }, e.getToggleAllRowsSelectedHandler = () => (o) => {
1275
+ e.toggleAllRowsSelected(o.target.checked);
1276
+ }, e.getToggleAllPageRowsSelectedHandler = () => (o) => {
1277
+ e.toggleAllPageRowsSelected(o.target.checked);
1278
+ };
1279
+ },
1280
+ createRow: (e, o) => {
1281
+ e.toggleSelected = (t, n) => {
1282
+ const i = e.getIsSelected();
1283
+ o.setRowSelection((r) => {
1284
+ var l;
1285
+ if (t = typeof t < "u" ? t : !i, e.getCanSelect() && i === t)
1286
+ return r;
1287
+ const s = {
1288
+ ...r
1289
+ };
1290
+ return X(s, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), s;
1291
+ });
1292
+ }, e.getIsSelected = () => {
1293
+ const {
1294
+ rowSelection: t
1295
+ } = o.getState();
1296
+ return W(e, t);
1297
+ }, e.getIsSomeSelected = () => {
1298
+ const {
1299
+ rowSelection: t
1300
+ } = o.getState();
1301
+ return K(e, t) === "some";
1302
+ }, e.getIsAllSubRowsSelected = () => {
1303
+ const {
1304
+ rowSelection: t
1305
+ } = o.getState();
1306
+ return K(e, t) === "all";
1307
+ }, e.getCanSelect = () => {
1308
+ var t;
1309
+ return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
1310
+ }, e.getCanSelectSubRows = () => {
1311
+ var t;
1312
+ return typeof o.options.enableSubRowSelection == "function" ? o.options.enableSubRowSelection(e) : (t = o.options.enableSubRowSelection) != null ? t : !0;
1313
+ }, e.getCanMultiSelect = () => {
1314
+ var t;
1315
+ return typeof o.options.enableMultiRowSelection == "function" ? o.options.enableMultiRowSelection(e) : (t = o.options.enableMultiRowSelection) != null ? t : !0;
1316
+ }, e.getToggleSelectedHandler = () => {
1317
+ const t = e.getCanSelect();
1318
+ return (n) => {
1319
+ var i;
1320
+ t && e.toggleSelected((i = n.target) == null ? void 0 : i.checked);
1321
+ };
1322
+ };
1323
+ }
1324
+ }, X = (e, o, t, n, i) => {
1325
+ var r;
1326
+ const l = i.getRow(o, !0);
1327
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => X(e, s.id, t, n, i));
1328
+ };
1329
+ function k(e, o) {
1330
+ const t = e.getState().rowSelection, n = [], i = {}, r = function(l, s) {
1331
+ return l.map((u) => {
1332
+ var a;
1333
+ const d = W(u, t);
1334
+ if (d && (n.push(u), i[u.id] = u), (a = u.subRows) != null && a.length && (u = {
1335
+ ...u,
1336
+ subRows: r(u.subRows)
1337
+ }), d)
1338
+ return u;
1339
+ }).filter(Boolean);
1340
+ };
1341
+ return {
1342
+ rows: r(o.rows),
1343
+ flatRows: n,
1344
+ rowsById: i
1345
+ };
1346
+ }
1347
+ function W(e, o) {
1348
+ var t;
1349
+ return (t = o[e.id]) != null ? t : !1;
1350
+ }
1351
+ function K(e, o, t) {
1352
+ var n;
1353
+ if (!((n = e.subRows) != null && n.length)) return !1;
1354
+ let i = !0, r = !1;
1355
+ return e.subRows.forEach((l) => {
1356
+ if (!(r && !i) && (l.getCanSelect() && (W(l, o) ? r = !0 : i = !1), l.subRows && l.subRows.length)) {
1357
+ const s = K(l, o);
1358
+ s === "all" ? r = !0 : (s === "some" && (r = !0), i = !1);
1359
+ }
1360
+ }), i ? "all" : r ? "some" : !1;
1361
+ }
1362
+ const J = /([0-9]+)/gm, je = (e, o, t) => de(x(e.getValue(t)).toLowerCase(), x(o.getValue(t)).toLowerCase()), Xe = (e, o, t) => de(x(e.getValue(t)), x(o.getValue(t))), Ke = (e, o, t) => Y(x(e.getValue(t)).toLowerCase(), x(o.getValue(t)).toLowerCase()), Je = (e, o, t) => Y(x(e.getValue(t)), x(o.getValue(t))), Qe = (e, o, t) => {
1363
+ const n = e.getValue(t), i = o.getValue(t);
1364
+ return n > i ? 1 : n < i ? -1 : 0;
1365
+ }, We = (e, o, t) => Y(e.getValue(t), o.getValue(t));
1366
+ function Y(e, o) {
1367
+ return e === o ? 0 : e > o ? 1 : -1;
1368
+ }
1369
+ function x(e) {
1370
+ return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1371
+ }
1372
+ function de(e, o) {
1373
+ const t = e.split(J).filter(Boolean), n = o.split(J).filter(Boolean);
1374
+ for (; t.length && n.length; ) {
1375
+ const i = t.shift(), r = n.shift(), l = parseInt(i, 10), s = parseInt(r, 10), u = [l, s].sort();
1376
+ if (isNaN(u[0])) {
1377
+ if (i > r)
1378
+ return 1;
1379
+ if (r > i)
1380
+ return -1;
1381
+ continue;
1382
+ }
1383
+ if (isNaN(u[1]))
1384
+ return isNaN(l) ? -1 : 1;
1385
+ if (l > s)
1386
+ return 1;
1387
+ if (s > l)
1388
+ return -1;
1389
+ }
1390
+ return t.length - n.length;
1391
+ }
1392
+ const D = {
1393
+ alphanumeric: je,
1394
+ alphanumericCaseSensitive: Xe,
1395
+ text: Ke,
1396
+ textCaseSensitive: Je,
1397
+ datetime: Qe,
1398
+ basic: We
1399
+ }, Ye = {
1400
+ getInitialState: (e) => ({
1401
+ sorting: [],
1402
+ ...e
1403
+ }),
1404
+ getDefaultColumnDef: () => ({
1405
+ sortingFn: "auto",
1406
+ sortUndefined: 1
1407
+ }),
1408
+ getDefaultOptions: (e) => ({
1409
+ onSortingChange: $("sorting", e),
1410
+ isMultiSortEvent: (o) => o.shiftKey
1411
+ }),
1412
+ createColumn: (e, o) => {
1413
+ e.getAutoSortingFn = () => {
1414
+ const t = o.getFilteredRowModel().flatRows.slice(10);
1415
+ let n = !1;
1416
+ for (const i of t) {
1417
+ const r = i == null ? void 0 : i.getValue(e.id);
1418
+ if (Object.prototype.toString.call(r) === "[object Date]")
1419
+ return D.datetime;
1420
+ if (typeof r == "string" && (n = !0, r.split(J).length > 1))
1421
+ return D.alphanumeric;
1422
+ }
1423
+ return n ? D.text : D.basic;
1424
+ }, e.getAutoSortDir = () => {
1425
+ const t = o.getFilteredRowModel().flatRows[0];
1426
+ return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
1427
+ }, e.getSortingFn = () => {
1428
+ var t, n;
1429
+ if (!e)
1430
+ throw new Error();
1431
+ return L(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : D[e.columnDef.sortingFn];
1432
+ }, e.toggleSorting = (t, n) => {
1433
+ const i = e.getNextSortingOrder(), r = typeof t < "u" && t !== null;
1434
+ o.setSorting((l) => {
1435
+ const s = l == null ? void 0 : l.find((g) => g.id === e.id), u = l == null ? void 0 : l.findIndex((g) => g.id === e.id);
1436
+ let a = [], d, p = r ? t : i === "desc";
1437
+ if (l != null && l.length && e.getCanMultiSort() && n ? s ? d = "toggle" : d = "add" : l != null && l.length && u !== l.length - 1 ? d = "replace" : s ? d = "toggle" : d = "replace", d === "toggle" && (r || i || (d = "remove")), d === "add") {
1438
+ var f;
1439
+ a = [...l, {
1440
+ id: e.id,
1441
+ desc: p
1442
+ }], a.splice(0, a.length - ((f = o.options.maxMultiSortColCount) != null ? f : Number.MAX_SAFE_INTEGER));
1443
+ } else d === "toggle" ? a = l.map((g) => g.id === e.id ? {
1444
+ ...g,
1445
+ desc: p
1446
+ } : g) : d === "remove" ? a = l.filter((g) => g.id !== e.id) : a = [{
1447
+ id: e.id,
1448
+ desc: p
1449
+ }];
1450
+ return a;
1451
+ });
1452
+ }, e.getFirstSortDir = () => {
1453
+ var t, n;
1454
+ return ((t = (n = e.columnDef.sortDescFirst) != null ? n : o.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
1455
+ }, e.getNextSortingOrder = (t) => {
1456
+ var n, i;
1457
+ const r = e.getFirstSortDir(), l = e.getIsSorted();
1458
+ return l ? l !== r && ((n = o.options.enableSortingRemoval) == null || n) && // If enableSortRemove, enable in general
1459
+ (!(t && (i = o.options.enableMultiRemove) != null) || i) ? !1 : l === "desc" ? "asc" : "desc" : r;
1460
+ }, e.getCanSort = () => {
1461
+ var t, n;
1462
+ return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((n = o.options.enableSorting) != null ? n : !0) && !!e.accessorFn;
1463
+ }, e.getCanMultiSort = () => {
1464
+ var t, n;
1465
+ return (t = (n = e.columnDef.enableMultiSort) != null ? n : o.options.enableMultiSort) != null ? t : !!e.accessorFn;
1466
+ }, e.getIsSorted = () => {
1467
+ var t;
1468
+ const n = (t = o.getState().sorting) == null ? void 0 : t.find((i) => i.id === e.id);
1469
+ return n ? n.desc ? "desc" : "asc" : !1;
1470
+ }, e.getSortIndex = () => {
1471
+ var t, n;
1472
+ return (t = (n = o.getState().sorting) == null ? void 0 : n.findIndex((i) => i.id === e.id)) != null ? t : -1;
1473
+ }, e.clearSorting = () => {
1474
+ o.setSorting((t) => t != null && t.length ? t.filter((n) => n.id !== e.id) : []);
1475
+ }, e.getToggleSortingHandler = () => {
1476
+ const t = e.getCanSort();
1477
+ return (n) => {
1478
+ t && (n.persist == null || n.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? o.options.isMultiSortEvent == null ? void 0 : o.options.isMultiSortEvent(n) : !1));
1479
+ };
1480
+ };
1481
+ },
1482
+ createTable: (e) => {
1483
+ e.setSorting = (o) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(o), e.resetSorting = (o) => {
1484
+ var t, n;
1485
+ e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
1486
+ }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
1487
+ }
1488
+ }, Ze = [
1489
+ Re,
1490
+ Oe,
1491
+ He,
1492
+ Ge,
1493
+ he,
1494
+ ve,
1495
+ Be,
1496
+ //depends on ColumnFaceting
1497
+ Te,
1498
+ //depends on ColumnFiltering
1499
+ Ye,
1500
+ De,
1501
+ //depends on RowSorting
1502
+ qe,
1503
+ Ne,
1504
+ ke,
1505
+ Ue,
1506
+ Le
1507
+ ];
1508
+ function et(e) {
1509
+ var o, t;
1510
+ process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
1511
+ const n = [...Ze, ...(o = e._features) != null ? o : []];
1512
+ let i = {
1513
+ _features: n
1514
+ };
1515
+ const r = i._features.reduce((f, g) => Object.assign(f, g.getDefaultOptions == null ? void 0 : g.getDefaultOptions(i)), {}), l = (f) => i.options.mergeOptions ? i.options.mergeOptions(r, f) : {
1516
+ ...r,
1517
+ ...f
1518
+ };
1519
+ let u = {
1520
+ ...{},
1521
+ ...(t = e.initialState) != null ? t : {}
1522
+ };
1523
+ i._features.forEach((f) => {
1524
+ var g;
1525
+ u = (g = f.getInitialState == null ? void 0 : f.getInitialState(u)) != null ? g : u;
1526
+ });
1527
+ const a = [];
1528
+ let d = !1;
1529
+ const p = {
1530
+ _features: n,
1531
+ options: {
1532
+ ...r,
1533
+ ...e
1534
+ },
1535
+ initialState: u,
1536
+ _queue: (f) => {
1537
+ a.push(f), d || (d = !0, Promise.resolve().then(() => {
1538
+ for (; a.length; )
1539
+ a.shift()();
1540
+ d = !1;
1541
+ }).catch((g) => setTimeout(() => {
1542
+ throw g;
1543
+ })));
1544
+ },
1545
+ reset: () => {
1546
+ i.setState(i.initialState);
1547
+ },
1548
+ setOptions: (f) => {
1549
+ const g = I(f, i.options);
1550
+ i.options = l(g);
1551
+ },
1552
+ getState: () => i.options.state,
1553
+ setState: (f) => {
1554
+ i.options.onStateChange == null || i.options.onStateChange(f);
1555
+ },
1556
+ _getRowId: (f, g, c) => {
1557
+ var S;
1558
+ return (S = i.options.getRowId == null ? void 0 : i.options.getRowId(f, g, c)) != null ? S : `${c ? [c.id, g].join(".") : g}`;
1559
+ },
1560
+ getCoreRowModel: () => (i._getCoreRowModel || (i._getCoreRowModel = i.options.getCoreRowModel(i)), i._getCoreRowModel()),
1561
+ // The final calls start at the bottom of the model,
1562
+ // expanded rows, which then work their way up
1563
+ getRowModel: () => i.getPaginationRowModel(),
1564
+ //in next version, we should just pass in the row model as the optional 2nd arg
1565
+ getRow: (f, g) => {
1566
+ let c = (g ? i.getPrePaginationRowModel() : i.getRowModel()).rowsById[f];
1567
+ if (!c && (c = i.getCoreRowModel().rowsById[f], !c))
1568
+ throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${f}`) : new Error();
1569
+ return c;
1570
+ },
1571
+ _getDefaultColumnDef: m(() => [i.options.defaultColumn], (f) => {
1572
+ var g;
1573
+ return f = (g = f) != null ? g : {}, {
1574
+ header: (c) => {
1575
+ const S = c.header.column.columnDef;
1576
+ return S.accessorKey ? S.accessorKey : S.accessorFn ? S.id : null;
1577
+ },
1578
+ // footer: props => props.header.column.id,
1579
+ cell: (c) => {
1580
+ var S, w;
1581
+ return (S = (w = c.renderValue()) == null || w.toString == null ? void 0 : w.toString()) != null ? S : null;
1582
+ },
1583
+ ...i._features.reduce((c, S) => Object.assign(c, S.getDefaultColumnDef == null ? void 0 : S.getDefaultColumnDef()), {}),
1584
+ ...f
1585
+ };
1586
+ }, C(e, "debugColumns", "_getDefaultColumnDef")),
1587
+ _getColumnDefs: () => i.options.columns,
1588
+ getAllColumns: m(() => [i._getColumnDefs()], (f) => {
1589
+ const g = function(c, S, w) {
1590
+ return w === void 0 && (w = 0), c.map((R) => {
1591
+ const h = Ce(i, R, w, S), v = R;
1592
+ return h.columns = v.columns ? g(v.columns, h, w + 1) : [], h;
1593
+ });
1594
+ };
1595
+ return g(f);
1596
+ }, C(e, "debugColumns", "getAllColumns")),
1597
+ getAllFlatColumns: m(() => [i.getAllColumns()], (f) => f.flatMap((g) => g.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
1598
+ _getAllFlatColumnsById: m(() => [i.getAllFlatColumns()], (f) => f.reduce((g, c) => (g[c.id] = c, g), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
1599
+ getAllLeafColumns: m(() => [i.getAllColumns(), i._getOrderColumnsFn()], (f, g) => {
1600
+ let c = f.flatMap((S) => S.getLeafColumns());
1601
+ return g(c);
1602
+ }, C(e, "debugColumns", "getAllLeafColumns")),
1603
+ getColumn: (f) => {
1604
+ const g = i._getAllFlatColumnsById()[f];
1605
+ return process.env.NODE_ENV !== "production" && !g && console.error(`[Table] Column with id '${f}' does not exist.`), g;
1606
+ }
1607
+ };
1608
+ Object.assign(i, p);
1609
+ for (let f = 0; f < i._features.length; f++) {
1610
+ const g = i._features[f];
1611
+ g == null || g.createTable == null || g.createTable(i);
1612
+ }
1613
+ return i;
1614
+ }
1615
+ function tt() {
1616
+ return (e) => m(() => [e.options.data], (o) => {
1617
+ const t = {
1618
+ rows: [],
1619
+ flatRows: [],
1620
+ rowsById: {}
1621
+ }, n = function(i, r, l) {
1622
+ r === void 0 && (r = 0);
1623
+ const s = [];
1624
+ for (let a = 0; a < i.length; a++) {
1625
+ const d = we(e, e._getRowId(i[a], a, l), i[a], a, r, void 0, l == null ? void 0 : l.id);
1626
+ if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
1627
+ var u;
1628
+ d.originalSubRows = e.options.getSubRows(i[a], a), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, r + 1, d));
1629
+ }
1630
+ }
1631
+ return s;
1632
+ };
1633
+ return t.rows = n(o), t;
1634
+ }, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1635
+ }
1636
+ function be(e) {
1637
+ const o = [], t = (n) => {
1638
+ var i;
1639
+ o.push(n), (i = n.subRows) != null && i.length && n.getIsExpanded() && n.subRows.forEach(t);
1640
+ };
1641
+ return e.rows.forEach(t), {
1642
+ rows: o,
1643
+ flatRows: e.flatRows,
1644
+ rowsById: e.rowsById
1645
+ };
1646
+ }
1647
+ function nt(e) {
1648
+ return (o) => m(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
1649
+ if (!n.rows.length)
1650
+ return n;
1651
+ const {
1652
+ pageSize: i,
1653
+ pageIndex: r
1654
+ } = t;
1655
+ let {
1656
+ rows: l,
1657
+ flatRows: s,
1658
+ rowsById: u
1659
+ } = n;
1660
+ const a = i * r, d = a + i;
1661
+ l = l.slice(a, d);
1662
+ let p;
1663
+ o.options.paginateExpandedRows ? p = {
1664
+ rows: l,
1665
+ flatRows: s,
1666
+ rowsById: u
1667
+ } : p = be({
1668
+ rows: l,
1669
+ flatRows: s,
1670
+ rowsById: u
1671
+ }), p.flatRows = [];
1672
+ const f = (g) => {
1673
+ p.flatRows.push(g), g.subRows.length && g.subRows.forEach(f);
1674
+ };
1675
+ return p.rows.forEach(f), p;
1676
+ }, C(o.options, "debugTable", "getPaginationRowModel"));
1677
+ }
1678
+ function ot() {
1679
+ return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1680
+ if (!t.rows.length || !(o != null && o.length))
1681
+ return t;
1682
+ const n = e.getState().sorting, i = [], r = n.filter((u) => {
1683
+ var a;
1684
+ return (a = e.getColumn(u.id)) == null ? void 0 : a.getCanSort();
1685
+ }), l = {};
1686
+ r.forEach((u) => {
1687
+ const a = e.getColumn(u.id);
1688
+ a && (l[u.id] = {
1689
+ sortUndefined: a.columnDef.sortUndefined,
1690
+ invertSorting: a.columnDef.invertSorting,
1691
+ sortingFn: a.getSortingFn()
1692
+ });
1693
+ });
1694
+ const s = (u) => {
1695
+ const a = u.map((d) => ({
1696
+ ...d
1697
+ }));
1698
+ return a.sort((d, p) => {
1699
+ for (let g = 0; g < r.length; g += 1) {
1700
+ var f;
1701
+ const c = r[g], S = l[c.id], w = S.sortUndefined, R = (f = c == null ? void 0 : c.desc) != null ? f : !1;
1702
+ let h = 0;
1703
+ if (w) {
1704
+ const v = d.getValue(c.id), M = p.getValue(c.id), F = v === void 0, E = M === void 0;
1705
+ if (F || E) {
1706
+ if (w === "first") return F ? -1 : 1;
1707
+ if (w === "last") return F ? 1 : -1;
1708
+ h = F && E ? 0 : F ? w : -w;
1709
+ }
1710
+ }
1711
+ if (h === 0 && (h = S.sortingFn(d, p, c.id)), h !== 0)
1712
+ return R && (h *= -1), S.invertSorting && (h *= -1), h;
1713
+ }
1714
+ return d.index - p.index;
1715
+ }), a.forEach((d) => {
1716
+ var p;
1717
+ i.push(d), (p = d.subRows) != null && p.length && (d.subRows = s(d.subRows));
1718
+ }), a;
1719
+ };
1720
+ return {
1721
+ rows: s(t.rows),
1722
+ flatRows: i,
1723
+ rowsById: t.rowsById
1724
+ };
1725
+ }, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1726
+ }
1727
+ export {
1728
+ he as ColumnFaceting,
1729
+ ve as ColumnFiltering,
1730
+ De as ColumnGrouping,
1731
+ He as ColumnOrdering,
1732
+ Ge as ColumnPinning,
1733
+ Le as ColumnSizing,
1734
+ Oe as ColumnVisibility,
1735
+ Be as GlobalFaceting,
1736
+ Te as GlobalFiltering,
1737
+ Re as Headers,
1738
+ qe as RowExpanding,
1739
+ Ne as RowPagination,
1740
+ ke as RowPinning,
1741
+ Ue as RowSelection,
1742
+ Ye as RowSorting,
1743
+ y as _getVisibleLeafColumns,
1744
+ z as aggregationFns,
1745
+ H as buildHeaderGroups,
1746
+ me as createCell,
1747
+ Ce as createColumn,
1748
+ we as createRow,
1749
+ et as createTable,
1750
+ G as defaultColumnSizing,
1751
+ be as expandRows,
1752
+ P as filterFns,
1753
+ Se as flattenBy,
1754
+ I as functionalUpdate,
1755
+ tt as getCoreRowModel,
1756
+ C as getMemoOptions,
1757
+ nt as getPaginationRowModel,
1758
+ ot as getSortedRowModel,
1759
+ L as isFunction,
1760
+ pe as isNumberArray,
1761
+ W as isRowSelected,
1762
+ K as isSubRowSelected,
1763
+ $ as makeStateUpdater,
1764
+ m as memo,
1765
+ ye as orderColumns,
1766
+ ze as passiveEventSupported,
1767
+ J as reSplitAlphaNumeric,
1768
+ k as selectRowsFn,
1769
+ ne as shouldAutoRemoveFilter,
1770
+ D as sortingFns
1771
+ };