@burdenoff/microfe-movethewheels 2026.704.1 → 2026.710.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 (692) hide show
  1. package/dist/MoveTheWheelsRoot.js +203 -0
  2. package/dist/MoveTheWheelsRoutes.js +197 -0
  3. package/dist/{chunk-BdsCSvBP.js → _virtual/_rolldown/runtime.js} +1 -1
  4. package/dist/{DataTable-CmdZd6iV.js → components/DataTable.js} +95 -122
  5. package/dist/components/DocumentsCard.js +89 -0
  6. package/dist/{FormError-D4T5FWZA.js → components/FormError.js} +2 -2
  7. package/dist/components/GlassPanel.js +40 -0
  8. package/dist/{MetricCard-CqU5WsyW.js → components/MetricCard.js} +3 -3
  9. package/dist/components/Notice.js +28 -0
  10. package/dist/components/PageLayout.js +157 -0
  11. package/dist/components/StatusBadge.js +105 -0
  12. package/dist/components/charts/ChartShell.js +45 -0
  13. package/dist/components/charts/Sparkline.js +95 -0
  14. package/dist/components/charts/StatusDonut.js +83 -0
  15. package/dist/components/charts/TrendChart.js +169 -0
  16. package/dist/components/charts/VolumeBar.js +99 -0
  17. package/dist/components/charts/chartTokens.js +30 -0
  18. package/dist/components/charts/index.js +6 -0
  19. package/dist/components/index.js +22 -0
  20. package/dist/components/maps/LogisticsMap.js +47 -0
  21. package/dist/components/maps/MapCanvas.js +80 -0
  22. package/dist/components/maps/RouteMap.js +41 -0
  23. package/dist/components/maps/TrackingMap.js +66 -0
  24. package/dist/components/maps/index.js +5 -0
  25. package/dist/components/maps/leaflet-setup.js +56 -0
  26. package/dist/components/ui.js +38 -0
  27. package/dist/constants/index.js +53 -0
  28. package/dist/dev/main.d.ts +1 -0
  29. package/dist/generated/global-operations.d.ts +1 -0
  30. package/dist/generated/global-types.d.ts +23526 -0
  31. package/dist/generated/wspace-operations.d.ts +3704 -0
  32. package/dist/generated/wspace-types.d.ts +57850 -0
  33. package/dist/hooks/index.js +12 -0
  34. package/dist/hooks/useAnalytics.js +352 -0
  35. package/dist/hooks/useAssistant.js +39 -0
  36. package/dist/{useCustomers-BQ4AIEAT.js → hooks/useCustomers.js} +27 -26
  37. package/dist/hooks/useEntityDocuments.js +73 -0
  38. package/dist/{useFleet-BfA_-VUW.js → hooks/useFleet.js} +70 -69
  39. package/dist/{useImportExport-7-O8noRJ.js → hooks/useImportExport.js} +10 -9
  40. package/dist/{useInventory-BO7TSgq_.js → hooks/useInventory.js} +59 -58
  41. package/dist/{useOrders-B5FV0kcz.js → hooks/useOrders.js} +46 -45
  42. package/dist/{useReports-hUXb8ryJ.js → hooks/useReports.js} +12 -11
  43. package/dist/{useRoutes-C_ZCYJ_h.js → hooks/useRoutes.js} +43 -42
  44. package/dist/hooks/useSettings.js +59 -0
  45. package/dist/{useTracking-7nd_XOSL.js → hooks/useTracking.js} +35 -34
  46. package/dist/index.d.ts +4 -0
  47. package/dist/index.js +39 -794
  48. package/dist/movethewheels/MoveTheWheelsRoot.d.ts +25 -0
  49. package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +7 -0
  50. package/dist/movethewheels/components/DataTable.d.ts +67 -0
  51. package/dist/movethewheels/components/DocumentsCard.d.ts +8 -0
  52. package/dist/movethewheels/components/FormError.d.ts +11 -0
  53. package/dist/movethewheels/components/GlassPanel.d.ts +25 -0
  54. package/dist/movethewheels/components/MetricCard.d.ts +68 -0
  55. package/dist/movethewheels/components/Notice.d.ts +24 -0
  56. package/dist/movethewheels/components/PageLayout.d.ts +86 -0
  57. package/dist/movethewheels/components/StatusBadge.d.ts +49 -0
  58. package/dist/movethewheels/components/charts/ChartShell.d.ts +27 -0
  59. package/dist/movethewheels/components/charts/Sparkline.d.ts +22 -0
  60. package/dist/movethewheels/components/charts/StatusDonut.d.ts +23 -0
  61. package/dist/movethewheels/components/charts/TrendChart.d.ts +29 -0
  62. package/dist/movethewheels/components/charts/VolumeBar.d.ts +22 -0
  63. package/dist/movethewheels/components/charts/chartTokens.d.ts +29 -0
  64. package/dist/movethewheels/components/charts/index.d.ts +9 -0
  65. package/dist/movethewheels/components/index.d.ts +16 -0
  66. package/dist/movethewheels/components/maps/LogisticsMap.d.ts +30 -0
  67. package/dist/movethewheels/components/maps/MapCanvas.d.ts +32 -0
  68. package/dist/movethewheels/components/maps/RouteMap.d.ts +20 -0
  69. package/dist/movethewheels/components/maps/TrackingMap.d.ts +29 -0
  70. package/dist/movethewheels/components/maps/index.d.ts +10 -0
  71. package/dist/movethewheels/components/maps/leaflet-setup.d.ts +31 -0
  72. package/dist/movethewheels/components/ui.d.ts +22 -0
  73. package/dist/movethewheels/constants/index.d.ts +20 -0
  74. package/dist/movethewheels/hooks/index.d.ts +17 -0
  75. package/dist/movethewheels/hooks/useAnalytics.d.ts +136 -0
  76. package/dist/movethewheels/hooks/useAssistant.d.ts +17 -0
  77. package/dist/movethewheels/hooks/useCustomers.d.ts +39 -0
  78. package/dist/movethewheels/hooks/useEntityDocuments.d.ts +31 -0
  79. package/dist/movethewheels/hooks/useFleet.d.ts +100 -0
  80. package/dist/movethewheels/hooks/useImportExport.d.ts +13 -0
  81. package/dist/movethewheels/hooks/useInventory.d.ts +121 -0
  82. package/dist/movethewheels/hooks/useOrders.d.ts +53 -0
  83. package/dist/movethewheels/hooks/useReports.d.ts +39 -0
  84. package/dist/movethewheels/hooks/useRoutes.d.ts +46 -0
  85. package/dist/movethewheels/hooks/useSettings.d.ts +17 -0
  86. package/dist/movethewheels/hooks/useTracking.d.ts +69 -0
  87. package/dist/movethewheels/index.d.ts +31 -0
  88. package/dist/movethewheels/pages/AIAssistantPage.d.ts +4 -0
  89. package/dist/movethewheels/pages/AnalyticsPage.d.ts +8 -0
  90. package/dist/movethewheels/pages/CreateOrderPage.d.ts +6 -0
  91. package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +4 -0
  92. package/dist/movethewheels/pages/CustomersPage.d.ts +4 -0
  93. package/dist/movethewheels/pages/DashboardPage.d.ts +6 -0
  94. package/dist/movethewheels/pages/DriverDetailsPage.d.ts +4 -0
  95. package/dist/movethewheels/pages/DriversPage.d.ts +4 -0
  96. package/dist/movethewheels/pages/FinancePage.d.ts +10 -0
  97. package/dist/movethewheels/pages/FleetPage.d.ts +6 -0
  98. package/dist/movethewheels/pages/ImportExportPage.d.ts +8 -0
  99. package/dist/movethewheels/pages/InventoryPage.d.ts +4 -0
  100. package/dist/movethewheels/pages/LiveTrackingPage.d.ts +6 -0
  101. package/dist/movethewheels/pages/MarketplacePage.d.ts +9 -0
  102. package/dist/movethewheels/pages/OrderDetailsPage.d.ts +6 -0
  103. package/dist/movethewheels/pages/OrdersListPage.d.ts +6 -0
  104. package/dist/movethewheels/pages/ProductDetailsPage.d.ts +4 -0
  105. package/dist/movethewheels/pages/ProductsPage.d.ts +4 -0
  106. package/dist/movethewheels/pages/ReportsPage.d.ts +8 -0
  107. package/dist/movethewheels/pages/RouteDetailsPage.d.ts +4 -0
  108. package/dist/movethewheels/pages/RoutesPage.d.ts +4 -0
  109. package/dist/movethewheels/pages/SettingsPage.d.ts +8 -0
  110. package/dist/movethewheels/pages/TrackingPage.d.ts +6 -0
  111. package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +4 -0
  112. package/dist/movethewheels/pages/VehiclesPage.d.ts +4 -0
  113. package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +4 -0
  114. package/dist/movethewheels/pages/WarehousesPage.d.ts +4 -0
  115. package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +16 -0
  116. package/dist/movethewheels/services/createSandboxAssistantTransport.d.ts +7 -0
  117. package/dist/movethewheels/store/movethewheelsStore.d.ts +73 -0
  118. package/dist/movethewheels/types/index.d.ts +667 -0
  119. package/dist/movethewheels/utils/cn.d.ts +6 -0
  120. package/dist/movethewheels/utils/download.d.ts +19 -0
  121. package/dist/movethewheels/utils/formatters.d.ts +60 -0
  122. package/dist/movethewheels/utils/graphqlClient.d.ts +11 -0
  123. package/dist/movethewheels/utils/index.d.ts +7 -0
  124. package/dist/movethewheels/utils/mapMarkers.d.ts +17 -0
  125. package/dist/movethewheels/utils/navigation.d.ts +23 -0
  126. package/dist/node_modules/@react-leaflet/core/lib/attribution.js +10 -0
  127. package/dist/node_modules/@react-leaflet/core/lib/component.js +37 -0
  128. package/dist/node_modules/@react-leaflet/core/lib/context.js +21 -0
  129. package/dist/node_modules/@react-leaflet/core/lib/div-overlay.js +13 -0
  130. package/dist/node_modules/@react-leaflet/core/lib/element.js +28 -0
  131. package/dist/node_modules/@react-leaflet/core/lib/events.js +12 -0
  132. package/dist/node_modules/@react-leaflet/core/lib/generic.js +20 -0
  133. package/dist/node_modules/@react-leaflet/core/lib/grid-layer.js +7 -0
  134. package/dist/node_modules/@react-leaflet/core/lib/layer.js +21 -0
  135. package/dist/node_modules/@react-leaflet/core/lib/pane.js +10 -0
  136. package/dist/node_modules/@react-leaflet/core/lib/path.js +23 -0
  137. package/dist/node_modules/clsx/dist/clsx.js +16 -0
  138. package/dist/node_modules/d3-array/src/ascending.js +6 -0
  139. package/dist/node_modules/d3-array/src/bisect.js +8 -0
  140. package/dist/node_modules/d3-array/src/bisector.js +41 -0
  141. package/dist/node_modules/d3-array/src/descending.js +6 -0
  142. package/dist/node_modules/d3-array/src/max.js +12 -0
  143. package/dist/node_modules/d3-array/src/min.js +12 -0
  144. package/dist/node_modules/d3-array/src/number.js +13 -0
  145. package/dist/node_modules/d3-array/src/quantile.js +23 -0
  146. package/dist/node_modules/d3-array/src/quickselect.js +24 -0
  147. package/dist/node_modules/d3-array/src/range.js +8 -0
  148. package/dist/node_modules/d3-array/src/sort.js +15 -0
  149. package/dist/node_modules/d3-array/src/ticks.js +32 -0
  150. package/dist/node_modules/d3-color/src/color.js +289 -0
  151. package/dist/node_modules/d3-color/src/define.js +11 -0
  152. package/dist/node_modules/d3-format/src/defaultLocale.js +13 -0
  153. package/dist/node_modules/d3-format/src/exponent.js +7 -0
  154. package/dist/node_modules/d3-format/src/formatDecimal.js +11 -0
  155. package/dist/node_modules/d3-format/src/formatGroup.js +9 -0
  156. package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
  157. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +11 -0
  158. package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
  159. package/dist/node_modules/d3-format/src/formatSpecifier.js +27 -0
  160. package/dist/node_modules/d3-format/src/formatTrim.js +18 -0
  161. package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
  162. package/dist/node_modules/d3-format/src/identity.js +6 -0
  163. package/dist/node_modules/d3-format/src/locale.js +84 -0
  164. package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
  165. package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
  166. package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
  167. package/dist/node_modules/d3-interpolate/src/array.js +13 -0
  168. package/dist/node_modules/d3-interpolate/src/basis.js +14 -0
  169. package/dist/node_modules/d3-interpolate/src/basisClosed.js +11 -0
  170. package/dist/node_modules/d3-interpolate/src/color.js +23 -0
  171. package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
  172. package/dist/node_modules/d3-interpolate/src/date.js +9 -0
  173. package/dist/node_modules/d3-interpolate/src/number.js +8 -0
  174. package/dist/node_modules/d3-interpolate/src/numberArray.js +14 -0
  175. package/dist/node_modules/d3-interpolate/src/object.js +12 -0
  176. package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
  177. package/dist/node_modules/d3-interpolate/src/rgb.js +17 -0
  178. package/dist/node_modules/d3-interpolate/src/round.js +8 -0
  179. package/dist/node_modules/d3-interpolate/src/string.js +26 -0
  180. package/dist/node_modules/d3-interpolate/src/value.js +16 -0
  181. package/dist/node_modules/d3-path/src/path.js +63 -0
  182. package/dist/node_modules/d3-scale/src/band.js +50 -0
  183. package/dist/node_modules/d3-scale/src/constant.js +8 -0
  184. package/dist/node_modules/d3-scale/src/continuous.js +71 -0
  185. package/dist/node_modules/d3-scale/src/diverging.js +80 -0
  186. package/dist/node_modules/d3-scale/src/identity.js +18 -0
  187. package/dist/node_modules/d3-scale/src/init.js +27 -0
  188. package/dist/node_modules/d3-scale/src/linear.js +34 -0
  189. package/dist/node_modules/d3-scale/src/log.js +75 -0
  190. package/dist/node_modules/d3-scale/src/nice.js +8 -0
  191. package/dist/node_modules/d3-scale/src/number.js +6 -0
  192. package/dist/node_modules/d3-scale/src/ordinal.js +29 -0
  193. package/dist/node_modules/d3-scale/src/pow.js +35 -0
  194. package/dist/node_modules/d3-scale/src/quantile.js +35 -0
  195. package/dist/node_modules/d3-scale/src/quantize.js +31 -0
  196. package/dist/node_modules/d3-scale/src/radial.js +37 -0
  197. package/dist/node_modules/d3-scale/src/sequential.js +65 -0
  198. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
  199. package/dist/node_modules/d3-scale/src/symlog.js +28 -0
  200. package/dist/node_modules/d3-scale/src/threshold.js +23 -0
  201. package/dist/node_modules/d3-scale/src/tickFormat.js +29 -0
  202. package/dist/node_modules/d3-scale/src/time.js +45 -0
  203. package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
  204. package/dist/node_modules/d3-shape/src/area.js +53 -0
  205. package/dist/node_modules/d3-shape/src/array.js +6 -0
  206. package/dist/node_modules/d3-shape/src/constant.js +8 -0
  207. package/dist/node_modules/d3-shape/src/curve/basis.js +47 -0
  208. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +48 -0
  209. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +44 -0
  210. package/dist/node_modules/d3-shape/src/curve/bump.js +38 -0
  211. package/dist/node_modules/d3-shape/src/curve/linear.js +34 -0
  212. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
  213. package/dist/node_modules/d3-shape/src/curve/monotone.js +92 -0
  214. package/dist/node_modules/d3-shape/src/curve/natural.js +37 -0
  215. package/dist/node_modules/d3-shape/src/curve/step.js +45 -0
  216. package/dist/node_modules/d3-shape/src/line.js +28 -0
  217. package/dist/node_modules/d3-shape/src/math.js +6 -0
  218. package/dist/node_modules/d3-shape/src/noop.js +4 -0
  219. package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
  220. package/dist/node_modules/d3-shape/src/offset/none.js +6 -0
  221. package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
  222. package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
  223. package/dist/node_modules/d3-shape/src/order/none.js +7 -0
  224. package/dist/node_modules/d3-shape/src/path.js +17 -0
  225. package/dist/node_modules/d3-shape/src/point.js +9 -0
  226. package/dist/node_modules/d3-shape/src/stack.js +32 -0
  227. package/dist/node_modules/d3-shape/src/symbol/circle.js +8 -0
  228. package/dist/node_modules/d3-shape/src/symbol/cross.js +8 -0
  229. package/dist/node_modules/d3-shape/src/symbol/diamond.js +8 -0
  230. package/dist/node_modules/d3-shape/src/symbol/square.js +8 -0
  231. package/dist/node_modules/d3-shape/src/symbol/star.js +13 -0
  232. package/dist/node_modules/d3-shape/src/symbol/triangle.js +8 -0
  233. package/dist/node_modules/d3-shape/src/symbol/wye.js +8 -0
  234. package/dist/node_modules/d3-shape/src/symbol.js +21 -0
  235. package/dist/node_modules/d3-time/src/day.js +19 -0
  236. package/dist/node_modules/d3-time/src/duration.js +4 -0
  237. package/dist/node_modules/d3-time/src/hour.js +17 -0
  238. package/dist/node_modules/d3-time/src/interval.js +26 -0
  239. package/dist/node_modules/d3-time/src/millisecond.js +12 -0
  240. package/dist/node_modules/d3-time/src/minute.js +17 -0
  241. package/dist/node_modules/d3-time/src/month.js +16 -0
  242. package/dist/node_modules/d3-time/src/second.js +11 -0
  243. package/dist/node_modules/d3-time/src/ticks.js +123 -0
  244. package/dist/node_modules/d3-time/src/week.js +23 -0
  245. package/dist/node_modules/d3-time/src/year.js +24 -0
  246. package/dist/node_modules/d3-time-format/src/defaultLocale.js +60 -0
  247. package/dist/node_modules/d3-time-format/src/locale.js +488 -0
  248. package/dist/node_modules/decimal.js-light/decimal.js +376 -0
  249. package/dist/node_modules/eventemitter3/index.js +93 -0
  250. package/dist/node_modules/fast-equals/dist/es/index.js +265 -0
  251. package/dist/node_modules/internmap/src/index.js +38 -0
  252. package/dist/{maps-CtfuCAmh.js → node_modules/leaflet/dist/leaflet-src.js} +885 -1372
  253. package/dist/node_modules/lodash/_DataView.js +10 -0
  254. package/dist/node_modules/lodash/_Hash.js +21 -0
  255. package/dist/node_modules/lodash/_ListCache.js +21 -0
  256. package/dist/node_modules/lodash/_Map.js +10 -0
  257. package/dist/node_modules/lodash/_MapCache.js +21 -0
  258. package/dist/node_modules/lodash/_Promise.js +10 -0
  259. package/dist/node_modules/lodash/_Set.js +10 -0
  260. package/dist/node_modules/lodash/_SetCache.js +16 -0
  261. package/dist/node_modules/lodash/_Stack.js +18 -0
  262. package/dist/node_modules/lodash/_Symbol.js +9 -0
  263. package/dist/node_modules/lodash/_Uint8Array.js +9 -0
  264. package/dist/node_modules/lodash/_WeakMap.js +10 -0
  265. package/dist/node_modules/lodash/_apply.js +17 -0
  266. package/dist/node_modules/lodash/_arrayEvery.js +12 -0
  267. package/dist/node_modules/lodash/_arrayFilter.js +15 -0
  268. package/dist/node_modules/lodash/_arrayIncludes.js +13 -0
  269. package/dist/node_modules/lodash/_arrayIncludesWith.js +12 -0
  270. package/dist/node_modules/lodash/_arrayLikeKeys.js +20 -0
  271. package/dist/node_modules/lodash/_arrayMap.js +12 -0
  272. package/dist/node_modules/lodash/_arrayPush.js +12 -0
  273. package/dist/node_modules/lodash/_arraySome.js +12 -0
  274. package/dist/node_modules/lodash/_asciiToArray.js +11 -0
  275. package/dist/node_modules/lodash/_assocIndexOf.js +14 -0
  276. package/dist/node_modules/lodash/_baseAssignValue.js +18 -0
  277. package/dist/node_modules/lodash/_baseEach.js +11 -0
  278. package/dist/node_modules/lodash/_baseEvery.js +16 -0
  279. package/dist/node_modules/lodash/_baseExtremum.js +17 -0
  280. package/dist/node_modules/lodash/_baseFindIndex.js +12 -0
  281. package/dist/node_modules/lodash/_baseFlatten.js +19 -0
  282. package/dist/node_modules/lodash/_baseFor.js +9 -0
  283. package/dist/node_modules/lodash/_baseForOwn.js +14 -0
  284. package/dist/node_modules/lodash/_baseGet.js +16 -0
  285. package/dist/node_modules/lodash/_baseGetAllKeys.js +15 -0
  286. package/dist/node_modules/lodash/_baseGetTag.js +15 -0
  287. package/dist/node_modules/lodash/_baseGt.js +11 -0
  288. package/dist/node_modules/lodash/_baseHasIn.js +11 -0
  289. package/dist/node_modules/lodash/_baseIndexOf.js +15 -0
  290. package/dist/node_modules/lodash/_baseIsArguments.js +14 -0
  291. package/dist/node_modules/lodash/_baseIsEqual.js +14 -0
  292. package/dist/node_modules/lodash/_baseIsEqualDeep.js +35 -0
  293. package/dist/node_modules/lodash/_baseIsMatch.js +31 -0
  294. package/dist/node_modules/lodash/_baseIsNaN.js +11 -0
  295. package/dist/node_modules/lodash/_baseIsNative.js +16 -0
  296. package/dist/node_modules/lodash/_baseIsTypedArray.js +16 -0
  297. package/dist/node_modules/lodash/_baseIteratee.js +17 -0
  298. package/dist/node_modules/lodash/_baseKeys.js +17 -0
  299. package/dist/node_modules/lodash/_baseLt.js +11 -0
  300. package/dist/node_modules/lodash/_baseMap.js +17 -0
  301. package/dist/node_modules/lodash/_baseMatches.js +18 -0
  302. package/dist/node_modules/lodash/_baseMatchesProperty.js +22 -0
  303. package/dist/node_modules/lodash/_baseOrderBy.js +37 -0
  304. package/dist/node_modules/lodash/_baseProperty.js +13 -0
  305. package/dist/node_modules/lodash/_basePropertyDeep.js +15 -0
  306. package/dist/node_modules/lodash/_baseRange.js +13 -0
  307. package/dist/node_modules/lodash/_baseRest.js +15 -0
  308. package/dist/node_modules/lodash/_baseSetToString.js +19 -0
  309. package/dist/node_modules/lodash/_baseSlice.js +14 -0
  310. package/dist/node_modules/lodash/_baseSome.js +16 -0
  311. package/dist/node_modules/lodash/_baseSortBy.js +13 -0
  312. package/dist/node_modules/lodash/_baseTimes.js +12 -0
  313. package/dist/node_modules/lodash/_baseToString.js +20 -0
  314. package/dist/node_modules/lodash/_baseTrim.js +13 -0
  315. package/dist/node_modules/lodash/_baseUnary.js +13 -0
  316. package/dist/node_modules/lodash/_baseUniq.js +32 -0
  317. package/dist/node_modules/lodash/_cacheHas.js +11 -0
  318. package/dist/node_modules/lodash/_castPath.js +16 -0
  319. package/dist/node_modules/lodash/_castSlice.js +14 -0
  320. package/dist/node_modules/lodash/_compareAscending.js +18 -0
  321. package/dist/node_modules/lodash/_compareMultiple.js +17 -0
  322. package/dist/node_modules/lodash/_coreJsData.js +9 -0
  323. package/dist/node_modules/lodash/_createBaseEach.js +18 -0
  324. package/dist/node_modules/lodash/_createBaseFor.js +17 -0
  325. package/dist/node_modules/lodash/_createCaseFirst.js +20 -0
  326. package/dist/node_modules/lodash/_createFind.js +25 -0
  327. package/dist/node_modules/lodash/_createRange.js +17 -0
  328. package/dist/node_modules/lodash/_createSet.js +14 -0
  329. package/dist/node_modules/lodash/_defineProperty.js +15 -0
  330. package/dist/node_modules/lodash/_equalArrays.js +40 -0
  331. package/dist/node_modules/lodash/_equalByTag.js +40 -0
  332. package/dist/node_modules/lodash/_equalObjects.js +37 -0
  333. package/dist/node_modules/lodash/_freeGlobal.js +8 -0
  334. package/dist/node_modules/lodash/_getAllKeys.js +15 -0
  335. package/dist/node_modules/lodash/_getMapData.js +14 -0
  336. package/dist/node_modules/lodash/_getMatchData.js +22 -0
  337. package/dist/node_modules/lodash/_getNative.js +15 -0
  338. package/dist/node_modules/lodash/_getPrototype.js +9 -0
  339. package/dist/node_modules/lodash/_getRawTag.js +19 -0
  340. package/dist/node_modules/lodash/_getSymbols.js +15 -0
  341. package/dist/node_modules/lodash/_getTag.js +26 -0
  342. package/dist/node_modules/lodash/_getValue.js +11 -0
  343. package/dist/node_modules/lodash/_hasPath.js +24 -0
  344. package/dist/node_modules/lodash/_hasUnicode.js +12 -0
  345. package/dist/node_modules/lodash/_hashClear.js +13 -0
  346. package/dist/node_modules/lodash/_hashDelete.js +12 -0
  347. package/dist/node_modules/lodash/_hashGet.js +18 -0
  348. package/dist/node_modules/lodash/_hashHas.js +14 -0
  349. package/dist/node_modules/lodash/_hashSet.js +14 -0
  350. package/dist/node_modules/lodash/_isFlattenable.js +15 -0
  351. package/dist/node_modules/lodash/_isIndex.js +13 -0
  352. package/dist/node_modules/lodash/_isIterateeCall.js +18 -0
  353. package/dist/node_modules/lodash/_isKey.js +16 -0
  354. package/dist/node_modules/lodash/_isKeyable.js +12 -0
  355. package/dist/node_modules/lodash/_isMasked.js +16 -0
  356. package/dist/node_modules/lodash/_isPrototype.js +13 -0
  357. package/dist/node_modules/lodash/_isStrictComparable.js +13 -0
  358. package/dist/node_modules/lodash/_listCacheClear.js +11 -0
  359. package/dist/node_modules/lodash/_listCacheDelete.js +14 -0
  360. package/dist/node_modules/lodash/_listCacheGet.js +14 -0
  361. package/dist/node_modules/lodash/_listCacheHas.js +13 -0
  362. package/dist/node_modules/lodash/_listCacheSet.js +14 -0
  363. package/dist/node_modules/lodash/_mapCacheClear.js +19 -0
  364. package/dist/node_modules/lodash/_mapCacheDelete.js +14 -0
  365. package/dist/node_modules/lodash/_mapCacheGet.js +13 -0
  366. package/dist/node_modules/lodash/_mapCacheHas.js +13 -0
  367. package/dist/node_modules/lodash/_mapCacheSet.js +14 -0
  368. package/dist/node_modules/lodash/_mapToArray.js +14 -0
  369. package/dist/node_modules/lodash/_matchesStrictComparable.js +13 -0
  370. package/dist/node_modules/lodash/_memoizeCapped.js +16 -0
  371. package/dist/node_modules/lodash/_nativeCreate.js +9 -0
  372. package/dist/node_modules/lodash/_nativeKeys.js +9 -0
  373. package/dist/node_modules/lodash/_nodeUtil.js +14 -0
  374. package/dist/node_modules/lodash/_objectToString.js +12 -0
  375. package/dist/node_modules/lodash/_overArg.js +13 -0
  376. package/dist/node_modules/lodash/_overRest.js +18 -0
  377. package/dist/node_modules/lodash/_root.js +10 -0
  378. package/dist/node_modules/lodash/_setCacheAdd.js +12 -0
  379. package/dist/node_modules/lodash/_setCacheHas.js +11 -0
  380. package/dist/node_modules/lodash/_setToArray.js +14 -0
  381. package/dist/node_modules/lodash/_setToString.js +11 -0
  382. package/dist/node_modules/lodash/_shortOut.js +19 -0
  383. package/dist/node_modules/lodash/_stackClear.js +13 -0
  384. package/dist/node_modules/lodash/_stackDelete.js +12 -0
  385. package/dist/node_modules/lodash/_stackGet.js +11 -0
  386. package/dist/node_modules/lodash/_stackHas.js +11 -0
  387. package/dist/node_modules/lodash/_stackSet.js +21 -0
  388. package/dist/node_modules/lodash/_strictIndexOf.js +12 -0
  389. package/dist/node_modules/lodash/_stringToArray.js +15 -0
  390. package/dist/node_modules/lodash/_stringToPath.js +15 -0
  391. package/dist/node_modules/lodash/_toKey.js +15 -0
  392. package/dist/node_modules/lodash/_toSource.js +20 -0
  393. package/dist/node_modules/lodash/_trimmedEndIndex.js +13 -0
  394. package/dist/node_modules/lodash/_unicodeToArray.js +22 -0
  395. package/dist/node_modules/lodash/constant.js +13 -0
  396. package/dist/node_modules/lodash/debounce.js +55 -0
  397. package/dist/node_modules/lodash/eq.js +11 -0
  398. package/dist/node_modules/lodash/every.js +18 -0
  399. package/dist/node_modules/lodash/find.js +10 -0
  400. package/dist/node_modules/lodash/findIndex.js +18 -0
  401. package/dist/node_modules/lodash/flatMap.js +14 -0
  402. package/dist/node_modules/lodash/get.js +14 -0
  403. package/dist/node_modules/lodash/hasIn.js +14 -0
  404. package/dist/node_modules/lodash/identity.js +11 -0
  405. package/dist/node_modules/lodash/isArguments.js +15 -0
  406. package/dist/node_modules/lodash/isArray.js +8 -0
  407. package/dist/node_modules/lodash/isArrayLike.js +14 -0
  408. package/dist/node_modules/lodash/isBoolean.js +14 -0
  409. package/dist/node_modules/lodash/isBuffer.js +11 -0
  410. package/dist/node_modules/lodash/isEqual.js +13 -0
  411. package/dist/node_modules/lodash/isFunction.js +16 -0
  412. package/dist/node_modules/lodash/isLength.js +12 -0
  413. package/dist/node_modules/lodash/isNaN.js +13 -0
  414. package/dist/node_modules/lodash/isNil.js +11 -0
  415. package/dist/node_modules/lodash/isNumber.js +14 -0
  416. package/dist/node_modules/lodash/isObject.js +12 -0
  417. package/dist/node_modules/lodash/isObjectLike.js +11 -0
  418. package/dist/node_modules/lodash/isPlainObject.js +19 -0
  419. package/dist/node_modules/lodash/isString.js +15 -0
  420. package/dist/node_modules/lodash/isSymbol.js +14 -0
  421. package/dist/node_modules/lodash/isTypedArray.js +12 -0
  422. package/dist/node_modules/lodash/keys.js +15 -0
  423. package/dist/node_modules/lodash/last.js +12 -0
  424. package/dist/node_modules/lodash/map.js +16 -0
  425. package/dist/node_modules/lodash/mapValues.js +18 -0
  426. package/dist/node_modules/lodash/max.js +15 -0
  427. package/dist/node_modules/lodash/maxBy.js +15 -0
  428. package/dist/node_modules/lodash/memoize.js +20 -0
  429. package/dist/node_modules/lodash/min.js +15 -0
  430. package/dist/node_modules/lodash/minBy.js +15 -0
  431. package/dist/node_modules/lodash/noop.js +9 -0
  432. package/dist/node_modules/lodash/now.js +12 -0
  433. package/dist/node_modules/lodash/property.js +16 -0
  434. package/dist/node_modules/lodash/range.js +9 -0
  435. package/dist/node_modules/lodash/some.js +18 -0
  436. package/dist/node_modules/lodash/sortBy.js +17 -0
  437. package/dist/node_modules/lodash/stubArray.js +11 -0
  438. package/dist/node_modules/lodash/stubFalse.js +11 -0
  439. package/dist/node_modules/lodash/throttle.js +20 -0
  440. package/dist/node_modules/lodash/toFinite.js +13 -0
  441. package/dist/node_modules/lodash/toInteger.js +14 -0
  442. package/dist/node_modules/lodash/toNumber.js +24 -0
  443. package/dist/node_modules/lodash/toString.js +13 -0
  444. package/dist/node_modules/lodash/uniqBy.js +14 -0
  445. package/dist/node_modules/lodash/upperFirst.js +9 -0
  446. package/dist/node_modules/lucide-react/dist/esm/Icon.js +16 -0
  447. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +15 -0
  448. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
  449. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +8 -0
  450. package/dist/{arrow-up-VQuGMABN.js → node_modules/lucide-react/dist/esm/icons/arrow-down.js} +2 -8
  451. package/dist/{arrow-left-1dVWv2dg.js → node_modules/lucide-react/dist/esm/icons/arrow-left.js} +2 -2
  452. package/dist/{arrow-right-PUCNATnk.js → node_modules/lucide-react/dist/esm/icons/arrow-right.js} +2 -2
  453. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +22 -0
  454. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +11 -0
  455. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
  456. package/dist/node_modules/lucide-react/dist/esm/icons/bot.js +34 -0
  457. package/dist/{box-DW1KNP8j.js → node_modules/lucide-react/dist/esm/icons/box.js} +2 -2
  458. package/dist/{boxes-D6I00XqA.js → node_modules/lucide-react/dist/esm/icons/boxes.js} +2 -2
  459. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +34 -0
  460. package/dist/node_modules/lucide-react/dist/esm/icons/building.js +55 -0
  461. package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +26 -0
  462. package/dist/node_modules/lucide-react/dist/esm/icons/car.js +26 -0
  463. package/dist/{chart-column-BwQ5H9ol.js → node_modules/lucide-react/dist/esm/icons/chart-column.js} +2 -2
  464. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +8 -0
  465. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
  466. package/dist/{chevron-left-DzNxoaBG.js → node_modules/lucide-react/dist/esm/icons/chevron-left.js} +2 -2
  467. package/dist/{chevron-right-CKm3ZC1T.js → node_modules/lucide-react/dist/esm/icons/chevron-right.js} +2 -2
  468. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +8 -0
  469. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +11 -0
  470. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +11 -0
  471. package/dist/{circle-alert-CtBm6oIb.js → node_modules/lucide-react/dist/esm/icons/circle-alert.js} +2 -2
  472. package/dist/{circle-check-big-H5pLiMBW.js → node_modules/lucide-react/dist/esm/icons/circle-check-big.js} +2 -2
  473. package/dist/{circle-check-B_Y7FDyR.js → node_modules/lucide-react/dist/esm/icons/circle-check.js} +2 -2
  474. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +20 -0
  475. package/dist/{clock-B4-qjGuB.js → node_modules/lucide-react/dist/esm/icons/clock.js} +2 -2
  476. package/dist/node_modules/lucide-react/dist/esm/icons/coffee.js +22 -0
  477. package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +18 -0
  478. package/dist/{dollar-sign-CYGHy2oS.js → node_modules/lucide-react/dist/esm/icons/dollar-sign.js} +2 -2
  479. package/dist/{download-BJonq2ty.js → node_modules/lucide-react/dist/esm/icons/download.js} +2 -2
  480. package/dist/node_modules/lucide-react/dist/esm/icons/external-link.js +18 -0
  481. package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +26 -0
  482. package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +30 -0
  483. package/dist/{file-text-C-cZx58r.js → node_modules/lucide-react/dist/esm/icons/file-text.js} +2 -2
  484. package/dist/{filter-B_S6WOqr.js → node_modules/lucide-react/dist/esm/icons/filter.js} +2 -2
  485. package/dist/{fuel-Cjt6IxKr.js → node_modules/lucide-react/dist/esm/icons/fuel.js} +2 -2
  486. package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +11 -0
  487. package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +20 -0
  488. package/dist/node_modules/lucide-react/dist/esm/icons/info.js +20 -0
  489. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +38 -0
  490. package/dist/node_modules/lucide-react/dist/esm/icons/lightbulb.js +18 -0
  491. package/dist/node_modules/lucide-react/dist/esm/icons/list.js +30 -0
  492. package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +15 -0
  493. package/dist/{map-pin-BISLzLwb.js → node_modules/lucide-react/dist/esm/icons/map-pin.js} +2 -2
  494. package/dist/{map-CO0aWUae.js → node_modules/lucide-react/dist/esm/icons/map.js} +2 -2
  495. package/dist/{navigation-BFki5UJz.js → node_modules/lucide-react/dist/esm/icons/navigation.js} +2 -2
  496. package/dist/{package-UyaWiALC.js → node_modules/lucide-react/dist/esm/icons/package.js} +2 -2
  497. package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +8 -0
  498. package/dist/{plus-Bk_G-lFC.js → node_modules/lucide-react/dist/esm/icons/plus.js} +2 -2
  499. package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +22 -0
  500. package/dist/{refresh-cw-C4-jecjy.js → node_modules/lucide-react/dist/esm/icons/refresh-cw.js} +2 -2
  501. package/dist/{route-WpCP6F1x.js → node_modules/lucide-react/dist/esm/icons/route.js} +2 -2
  502. package/dist/{save-CcfoIn2J.js → node_modules/lucide-react/dist/esm/icons/save.js} +2 -2
  503. package/dist/{search-C3YRxW9e.js → node_modules/lucide-react/dist/esm/icons/search.js} +2 -2
  504. package/dist/node_modules/lucide-react/dist/esm/icons/send.js +11 -0
  505. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
  506. package/dist/node_modules/lucide-react/dist/esm/icons/shield.js +8 -0
  507. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +26 -0
  508. package/dist/{square-pen-Dr1X-P2s.js → node_modules/lucide-react/dist/esm/icons/square-pen.js} +2 -2
  509. package/dist/{star-1Ixfuzai.js → node_modules/lucide-react/dist/esm/icons/star.js} +2 -2
  510. package/dist/{store-BwU935v5.js → node_modules/lucide-react/dist/esm/icons/store.js} +2 -2
  511. package/dist/node_modules/lucide-react/dist/esm/icons/tag.js +14 -0
  512. package/dist/node_modules/lucide-react/dist/esm/icons/thermometer.js +8 -0
  513. package/dist/{trash-2-CC4KugEJ.js → node_modules/lucide-react/dist/esm/icons/trash-2.js} +2 -2
  514. package/dist/{trending-up-1brglj1E.js → node_modules/lucide-react/dist/esm/icons/trending-up.js} +2 -2
  515. package/dist/{triangle-alert-Dh56Yu3-.js → node_modules/lucide-react/dist/esm/icons/triangle-alert.js} +2 -2
  516. package/dist/{truck-DxhtLfkG.js → node_modules/lucide-react/dist/esm/icons/truck.js} +2 -2
  517. package/dist/{upload-CLf0JLXW.js → node_modules/lucide-react/dist/esm/icons/upload.js} +2 -2
  518. package/dist/{user-check-Cx6fHHll.js → node_modules/lucide-react/dist/esm/icons/user-check.js} +2 -2
  519. package/dist/node_modules/lucide-react/dist/esm/icons/user-minus.js +23 -0
  520. package/dist/node_modules/lucide-react/dist/esm/icons/user-plus.js +30 -0
  521. package/dist/{user-B1IjWJtn.js → node_modules/lucide-react/dist/esm/icons/user.js} +2 -2
  522. package/dist/{users-BKmsb79k.js → node_modules/lucide-react/dist/esm/icons/users.js} +2 -2
  523. package/dist/{warehouse-DE1irFyJ.js → node_modules/lucide-react/dist/esm/icons/warehouse.js} +2 -2
  524. package/dist/node_modules/lucide-react/dist/esm/icons/webhook.js +18 -0
  525. package/dist/{wrench-DTJGFs17.js → node_modules/lucide-react/dist/esm/icons/wrench.js} +2 -2
  526. package/dist/{x-CvsUGJy1.js → node_modules/lucide-react/dist/esm/icons/x.js} +2 -2
  527. package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +8 -0
  528. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +4 -0
  529. package/dist/node_modules/object-assign/index.js +39 -0
  530. package/dist/node_modules/prop-types/checkPropTypes.js +44 -0
  531. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +47 -0
  532. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +270 -0
  533. package/dist/node_modules/prop-types/index.js +14 -0
  534. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +8 -0
  535. package/dist/node_modules/prop-types/lib/has.js +8 -0
  536. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +82 -0
  537. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +62 -0
  538. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  539. package/dist/node_modules/react-is/cjs/react-is.development.js +85 -0
  540. package/dist/node_modules/react-is/cjs/react-is.production.min.js +63 -0
  541. package/dist/node_modules/react-is/index.js +10 -0
  542. package/dist/node_modules/react-leaflet/lib/MapContainer.js +31 -0
  543. package/dist/node_modules/react-leaflet/lib/Marker.js +14 -0
  544. package/dist/node_modules/react-leaflet/lib/Polyline.js +14 -0
  545. package/dist/node_modules/react-leaflet/lib/Popup.js +35 -0
  546. package/dist/node_modules/react-leaflet/lib/TileLayer.js +16 -0
  547. package/dist/node_modules/react-leaflet/lib/hooks.js +8 -0
  548. package/dist/node_modules/react-smooth/es6/Animate.js +372 -0
  549. package/dist/node_modules/react-smooth/es6/AnimateManager.js +71 -0
  550. package/dist/node_modules/react-smooth/es6/configUpdate.js +171 -0
  551. package/dist/node_modules/react-smooth/es6/easing.js +150 -0
  552. package/dist/node_modules/react-smooth/es6/index.js +7 -0
  553. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +12 -0
  554. package/dist/node_modules/react-smooth/es6/util.js +90 -0
  555. package/dist/node_modules/recharts/es6/cartesian/Area.js +433 -0
  556. package/dist/node_modules/recharts/es6/cartesian/Bar.js +385 -0
  557. package/dist/node_modules/recharts/es6/cartesian/Brush.js +497 -0
  558. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +336 -0
  559. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +303 -0
  560. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +241 -0
  561. package/dist/node_modules/recharts/es6/cartesian/Line.js +471 -0
  562. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +171 -0
  563. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +176 -0
  564. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +252 -0
  565. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +142 -0
  566. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +141 -0
  567. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +16 -0
  568. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +119 -0
  569. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +99 -0
  570. package/dist/node_modules/recharts/es6/chart/AreaChart.js +20 -0
  571. package/dist/node_modules/recharts/es6/chart/BarChart.js +22 -0
  572. package/dist/node_modules/recharts/es6/chart/LineChart.js +20 -0
  573. package/dist/node_modules/recharts/es6/chart/PieChart.js +32 -0
  574. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +1243 -0
  575. package/dist/node_modules/recharts/es6/component/Cell.js +7 -0
  576. package/dist/node_modules/recharts/es6/component/Cursor.js +91 -0
  577. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +235 -0
  578. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +169 -0
  579. package/dist/node_modules/recharts/es6/component/Label.js +351 -0
  580. package/dist/node_modules/recharts/es6/component/LabelList.js +164 -0
  581. package/dist/node_modules/recharts/es6/component/Legend.js +232 -0
  582. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +185 -0
  583. package/dist/node_modules/recharts/es6/component/Text.js +223 -0
  584. package/dist/node_modules/recharts/es6/component/Tooltip.js +180 -0
  585. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +196 -0
  586. package/dist/node_modules/recharts/es6/container/Layer.js +38 -0
  587. package/dist/node_modules/recharts/es6/container/Surface.js +58 -0
  588. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +55 -0
  589. package/dist/node_modules/recharts/es6/polar/Pie.js +433 -0
  590. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +213 -0
  591. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +266 -0
  592. package/dist/node_modules/recharts/es6/shape/Cross.js +110 -0
  593. package/dist/node_modules/recharts/es6/shape/Curve.js +134 -0
  594. package/dist/node_modules/recharts/es6/shape/Dot.js +25 -0
  595. package/dist/node_modules/recharts/es6/shape/Polygon.js +110 -0
  596. package/dist/node_modules/recharts/es6/shape/Rectangle.js +203 -0
  597. package/dist/node_modules/recharts/es6/shape/Sector.js +190 -0
  598. package/dist/node_modules/recharts/es6/shape/Symbols.js +141 -0
  599. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +173 -0
  600. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +179 -0
  601. package/dist/node_modules/recharts/es6/util/BarUtils.js +110 -0
  602. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +232 -0
  603. package/dist/node_modules/recharts/es6/util/ChartUtils.js +560 -0
  604. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +68 -0
  605. package/dist/node_modules/recharts/es6/util/DOMUtils.js +106 -0
  606. package/dist/node_modules/recharts/es6/util/DataUtils.js +55 -0
  607. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +56 -0
  608. package/dist/node_modules/recharts/es6/util/Events.js +5 -0
  609. package/dist/node_modules/recharts/es6/util/Global.js +19 -0
  610. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +7 -0
  611. package/dist/node_modules/recharts/es6/util/LogUtils.js +13 -0
  612. package/dist/node_modules/recharts/es6/util/PolarUtils.js +196 -0
  613. package/dist/node_modules/recharts/es6/util/ReactUtils.js +135 -0
  614. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +179 -0
  615. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +8 -0
  616. package/dist/node_modules/recharts/es6/util/TickUtils.js +29 -0
  617. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +23 -0
  618. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +21 -0
  619. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +14 -0
  620. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +15 -0
  621. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +10 -0
  622. package/dist/node_modules/recharts/es6/util/getLegendProps.js +86 -0
  623. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +11 -0
  624. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +10 -0
  625. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +85 -0
  626. package/dist/node_modules/recharts/es6/util/types.js +41 -0
  627. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +130 -0
  628. package/dist/node_modules/recharts-scale/es6/index.js +1 -0
  629. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +30 -0
  630. package/dist/node_modules/recharts-scale/es6/util/utils.js +77 -0
  631. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1714 -0
  632. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +11 -0
  633. package/dist/node_modules/victory-vendor/es/d3-scale.js +51 -0
  634. package/dist/node_modules/zustand/esm/middleware.js +240 -0
  635. package/dist/{AIAssistantPage-MWJLAMN_.js → pages/AIAssistantPage.js} +61 -99
  636. package/dist/{AnalyticsPage-900jpV2T.js → pages/AnalyticsPage.js} +39 -34
  637. package/dist/{CreateOrderPage-CXbhJLLz.js → pages/CreateOrderPage.js} +97 -94
  638. package/dist/pages/CustomerDetailsPage.js +567 -0
  639. package/dist/{CustomersPage-CwtVspuq.js → pages/CustomersPage.js} +39 -67
  640. package/dist/{DashboardPage-BoswH3ec.js → pages/DashboardPage.js} +166 -165
  641. package/dist/{DriverDetailsPage-CPO0G8Ki.js → pages/DriverDetailsPage.js} +148 -145
  642. package/dist/{DriversPage-6Z61dpDI.js → pages/DriversPage.js} +56 -89
  643. package/dist/{FinancePage-DYadOUzC.js → pages/FinancePage.js} +41 -51
  644. package/dist/{FleetPage-qWRj7WFO.js → pages/FleetPage.js} +88 -85
  645. package/dist/{ImportExportPage-BhWGfbH3.js → pages/ImportExportPage.js} +63 -88
  646. package/dist/{InventoryPage-DbR4Z--d.js → pages/InventoryPage.js} +56 -53
  647. package/dist/{LiveTrackingPage-5U68u3oA.js → pages/LiveTrackingPage.js} +66 -89
  648. package/dist/pages/MarketplacePage.js +425 -0
  649. package/dist/pages/OrderDetailsPage.js +562 -0
  650. package/dist/pages/OrdersListPage.js +364 -0
  651. package/dist/{ProductDetailsPage-CWgcRqGR.js → pages/ProductDetailsPage.js} +99 -107
  652. package/dist/{ProductsPage-CokwDOR2.js → pages/ProductsPage.js} +35 -37
  653. package/dist/pages/ReportsPage.js +317 -0
  654. package/dist/pages/RouteDetailsPage.js +646 -0
  655. package/dist/{RoutesPage-Dqd5Don6.js → pages/RoutesPage.js} +26 -22
  656. package/dist/{SettingsPage-_6SIlcBX.js → pages/SettingsPage.js} +90 -106
  657. package/dist/{TrackingPage-Cg0tYGJe.js → pages/TrackingPage.js} +69 -65
  658. package/dist/{VehicleDetailsPage-BbZlCFPo.js → pages/VehicleDetailsPage.js} +129 -126
  659. package/dist/{VehiclesPage-BfBEyXGs.js → pages/VehiclesPage.js} +38 -35
  660. package/dist/{WarehouseDetailsPage-DxNhiaoI.js → pages/WarehouseDetailsPage.js} +140 -137
  661. package/dist/{WarehousesPage-M3NaBT0z.js → pages/WarehousesPage.js} +35 -40
  662. package/dist/providers/MoveTheWheelsProvider.js +32 -0
  663. package/dist/services/createSandboxAssistantTransport.d.ts +1 -0
  664. package/dist/services/createSandboxAssistantTransport.js +31 -0
  665. package/dist/src/generated/wspace-operations.js +793 -0
  666. package/dist/store/movethewheelsStore.js +63 -0
  667. package/dist/utils/cn.js +8 -0
  668. package/dist/utils/download.js +22 -0
  669. package/dist/{formatters-FWJDwTFv.js → utils/formatters.js} +1 -1
  670. package/dist/utils/graphqlClient.js +84 -0
  671. package/dist/{mapMarkers-NCV9MRKR.js → utils/mapMarkers.js} +1 -1
  672. package/dist/utils/navigation.js +6 -0
  673. package/package.json +5 -1
  674. package/src/movethewheels/hooks/useRoutes.ts +17 -7
  675. package/src/movethewheels/index.ts +11 -0
  676. package/src/movethewheels/services/createSandboxAssistantTransport.ts +67 -0
  677. package/dist/CustomerDetailsPage-CHzg75Q5.js +0 -615
  678. package/dist/DocumentsCard-y2ybnAlu.js +0 -169
  679. package/dist/MarketplacePage-DMH0HNDH.js +0 -426
  680. package/dist/Notice-BrXJ85dA.js +0 -46
  681. package/dist/OrderDetailsPage-DRYifXm9.js +0 -588
  682. package/dist/OrdersListPage-DvICveRv.js +0 -388
  683. package/dist/PageLayout-j9Zw3wBN.js +0 -2070
  684. package/dist/ReportsPage-MU8F9DQC.js +0 -377
  685. package/dist/RouteDetailsPage-BHQbFgI9.js +0 -642
  686. package/dist/Sparkline-DTGdlxUH.js +0 -16729
  687. package/dist/StatusBadge-BfiF-nNI.js +0 -152
  688. package/dist/charts-Dv_zxP7L.js +0 -2018
  689. package/dist/phone-Bav_V7rR.js +0 -18
  690. package/dist/useAssistant-B9qBtRKm.js +0 -67
  691. package/dist/useSettings-BNNzQs_B.js +0 -81
  692. /package/dist/{index.css → microfe-movethewheels.css} +0 -0
@@ -1,2018 +0,0 @@
1
- import { r as e, t } from "./chunk-BdsCSvBP.js";
2
- import { at as n, it as r, rt as i, st as a } from "./PageLayout-j9Zw3wBN.js";
3
- import { $ as o, A as s, B as c, C as l, D as u, E as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, N as ee, O as b, P as te, Q as ne, R as x, S as re, T as ie, U as ae, V as oe, W as se, X as ce, Y as le, Z as S, _ as ue, a as de, b as fe, c as pe, d as me, et as he, f as ge, g as _e, h as ve, i as ye, j as be, k as C, l as xe, m as Se, n as w, nt as Ce, o as we, p as Te, q as Ee, r as De, s as T, tt as Oe, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./Sparkline-DTGdlxUH.js";
4
- import E, { PureComponent as Fe, useCallback as D, useEffect as O, useId as Ie, useMemo as k, useState as A } from "react";
5
- import { jsx as j, jsxs as M } from "react/jsx-runtime";
6
- //#region src/movethewheels/hooks/useAnalytics.ts
7
- var Le = "\n query GetMovethewheelsAnalytics {\n analytics {\n orderTrend {\n label\n value\n }\n deliveryTrend {\n label\n value\n }\n revenueTrend {\n label\n value\n }\n }\n dashboardMetrics {\n totalOrders\n activeDeliveries\n availableDrivers\n activeVehicles\n lowStockItems\n totalRevenue\n onTimeDeliveryRate\n customerSatisfaction\n }\n fleetStats {\n totalVehicles\n activeVehicles\n maintenanceVehicles\n avgDriverRating\n }\n }\n", Re = "\n query GetDashboardMetrics {\n dashboardMetrics {\n totalOrders\n activeDeliveries\n availableDrivers\n activeVehicles\n lowStockItems\n totalRevenue\n onTimeDeliveryRate\n customerSatisfaction\n }\n orderStats {\n total\n pending\n inTransit\n delivered\n cancelled\n failed\n }\n fleetStats {\n totalVehicles\n activeVehicles\n maintenanceVehicles\n totalDrivers\n availableDrivers\n onDeliveryDrivers\n avgDriverRating\n }\n financeMetrics {\n revenue {\n totalRevenue\n averageOrderValue\n }\n }\n }\n", ze = "\n query GetOrderAnalytics {\n orderStats {\n pending\n inTransit\n delivered\n cancelled\n failed\n }\n analytics {\n orderTrend {\n label\n value\n }\n }\n }\n";
8
- function Be() {
9
- return {
10
- overview: {
11
- totalOrders: 0,
12
- totalRevenue: 0,
13
- activeVehicles: 0,
14
- onTimeDeliveryRate: 0,
15
- customerSatisfaction: 0
16
- },
17
- trends: {
18
- dailyOrders: [],
19
- revenue: []
20
- },
21
- fleet: {
22
- utilization: 0,
23
- totalVehicles: 0,
24
- activeVehicles: 0,
25
- maintenanceVehicles: 0,
26
- outOfServiceVehicles: 0,
27
- fuelEfficiency: 0
28
- },
29
- performance: {
30
- onTimePickup: 0,
31
- onTimeDelivery: 0,
32
- damagedItems: 0,
33
- customerComplaints: 0,
34
- driverRatings: 0
35
- }
36
- };
37
- }
38
- function Ve(e = {}) {
39
- let { apiGatewayUrl: t, authToken: r, workspaceToken: i, workspaceId: o, tenantId: s, currentUser: c } = a(), [l, u] = A(Be()), [d, f] = A(!1), [p, m] = A(null), h = k(() => ({
40
- apiGatewayUrl: t,
41
- authToken: r,
42
- workspaceToken: i,
43
- workspaceId: o,
44
- tenantId: s,
45
- actorId: c?.id
46
- }), [
47
- t,
48
- r,
49
- i,
50
- o,
51
- s,
52
- c?.id
53
- ]), g = D(async () => {
54
- f(!0), m(null);
55
- try {
56
- let e = await n(h, Le);
57
- u({
58
- overview: {
59
- totalOrders: e.dashboardMetrics.totalOrders,
60
- totalRevenue: e.dashboardMetrics.totalRevenue,
61
- activeVehicles: e.dashboardMetrics.activeVehicles,
62
- onTimeDeliveryRate: e.dashboardMetrics.onTimeDeliveryRate,
63
- customerSatisfaction: e.dashboardMetrics.customerSatisfaction
64
- },
65
- trends: {
66
- dailyOrders: (() => {
67
- let t = new Map((e.analytics.deliveryTrend ?? []).map((e) => [e.label, Math.round(e.value)]));
68
- return e.analytics.orderTrend.map((e) => ({
69
- date: e.label,
70
- orders: Math.round(e.value),
71
- deliveries: t.get(e.label) ?? 0
72
- }));
73
- })(),
74
- revenue: e.analytics.revenueTrend.map((e) => ({
75
- month: e.label,
76
- revenue: e.value
77
- }))
78
- },
79
- fleet: {
80
- utilization: e.fleetStats.totalVehicles > 0 ? e.fleetStats.activeVehicles / e.fleetStats.totalVehicles * 100 : 0,
81
- totalVehicles: e.fleetStats.totalVehicles,
82
- activeVehicles: e.fleetStats.activeVehicles,
83
- maintenanceVehicles: e.fleetStats.maintenanceVehicles,
84
- outOfServiceVehicles: Math.max(e.fleetStats.totalVehicles - e.fleetStats.activeVehicles - e.fleetStats.maintenanceVehicles, 0),
85
- fuelEfficiency: 0
86
- },
87
- performance: {
88
- onTimePickup: 0,
89
- onTimeDelivery: e.dashboardMetrics.onTimeDeliveryRate,
90
- damagedItems: 0,
91
- customerComplaints: 0,
92
- driverRatings: e.fleetStats.avgDriverRating
93
- }
94
- });
95
- } catch (e) {
96
- m(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load analytics"));
97
- } finally {
98
- f(!1);
99
- }
100
- }, [h]);
101
- return O(() => {
102
- g();
103
- }, [g]), {
104
- analytics: l,
105
- isLoading: d,
106
- error: p,
107
- refetch: D(() => {
108
- g();
109
- }, [g])
110
- };
111
- }
112
- function He() {
113
- let { apiGatewayUrl: e, authToken: t, workspaceToken: r, workspaceId: i, tenantId: o, currentUser: s } = a(), [c, l] = A({
114
- orders: {
115
- total: 0,
116
- pending: 0,
117
- inTransit: 0,
118
- delivered: 0,
119
- today: 0
120
- },
121
- fleet: {
122
- totalVehicles: 0,
123
- activeVehicles: 0,
124
- totalDrivers: 0,
125
- availableDrivers: 0
126
- },
127
- revenue: {
128
- total: 0,
129
- avgOrderValue: 0,
130
- currency: "USD"
131
- },
132
- performance: {
133
- onTimeDeliveryRate: 0,
134
- avgDriverRating: 0
135
- }
136
- }), [u, d] = A(!1), [f, p] = A(null), m = k(() => ({
137
- apiGatewayUrl: e,
138
- authToken: t,
139
- workspaceToken: r,
140
- workspaceId: i,
141
- tenantId: o,
142
- actorId: s?.id
143
- }), [
144
- e,
145
- t,
146
- r,
147
- i,
148
- o,
149
- s?.id
150
- ]);
151
- return O(() => {
152
- (async () => {
153
- d(!0), p(null);
154
- try {
155
- let e = await n(m, Re);
156
- l({
157
- orders: {
158
- total: e.orderStats.total,
159
- pending: e.orderStats.pending,
160
- inTransit: e.orderStats.inTransit,
161
- delivered: e.orderStats.delivered,
162
- today: 0
163
- },
164
- fleet: {
165
- totalVehicles: e.fleetStats.totalVehicles,
166
- activeVehicles: e.fleetStats.activeVehicles,
167
- totalDrivers: e.fleetStats.totalDrivers,
168
- availableDrivers: e.fleetStats.availableDrivers
169
- },
170
- revenue: {
171
- total: e.financeMetrics.revenue.totalRevenue,
172
- avgOrderValue: e.financeMetrics.revenue.averageOrderValue,
173
- currency: "USD"
174
- },
175
- performance: {
176
- onTimeDeliveryRate: e.dashboardMetrics.onTimeDeliveryRate,
177
- avgDriverRating: e.fleetStats.avgDriverRating
178
- }
179
- });
180
- } catch (e) {
181
- p(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load dashboard metrics"));
182
- } finally {
183
- d(!1);
184
- }
185
- })();
186
- }, [m]), {
187
- metrics: c,
188
- isLoading: u,
189
- error: f
190
- };
191
- }
192
- function Ue(e = "monthly") {
193
- let { analytics: t, isLoading: n, error: r } = Ve();
194
- return {
195
- revenueData: k(() => e === "daily" ? t.trends.dailyOrders.map((e) => ({
196
- label: e.date,
197
- value: e.orders
198
- })) : t.trends.revenue.map((e) => ({
199
- label: e.month,
200
- value: e.revenue
201
- })), [
202
- t.trends.dailyOrders,
203
- t.trends.revenue,
204
- e
205
- ]),
206
- isLoading: n,
207
- error: r
208
- };
209
- }
210
- function We() {
211
- let { apiGatewayUrl: e, authToken: t, workspaceToken: r, workspaceId: i, tenantId: o, currentUser: s } = a(), [c, l] = A({
212
- byStatus: [],
213
- byType: [],
214
- byPriority: [],
215
- trends: []
216
- }), [u, d] = A(!1), [f, p] = A(null), m = k(() => ({
217
- apiGatewayUrl: e,
218
- authToken: t,
219
- workspaceToken: r,
220
- workspaceId: i,
221
- tenantId: o,
222
- actorId: s?.id
223
- }), [
224
- e,
225
- t,
226
- r,
227
- i,
228
- o,
229
- s?.id
230
- ]);
231
- return O(() => {
232
- (async () => {
233
- d(!0), p(null);
234
- try {
235
- let e = await n(m, ze);
236
- l({
237
- byStatus: [
238
- {
239
- status: "pending",
240
- count: e.orderStats.pending
241
- },
242
- {
243
- status: "in_transit",
244
- count: e.orderStats.inTransit
245
- },
246
- {
247
- status: "delivered",
248
- count: e.orderStats.delivered
249
- },
250
- {
251
- status: "cancelled",
252
- count: e.orderStats.cancelled
253
- },
254
- {
255
- status: "failed",
256
- count: e.orderStats.failed
257
- }
258
- ],
259
- byType: [],
260
- byPriority: [],
261
- trends: e.analytics.orderTrend.map((e) => ({
262
- date: e.label,
263
- orders: Math.round(e.value)
264
- }))
265
- });
266
- } catch (e) {
267
- p(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load order analytics"));
268
- } finally {
269
- d(!1);
270
- }
271
- })();
272
- }, [m]), {
273
- orderData: c,
274
- isLoading: u,
275
- error: f
276
- };
277
- }
278
- function Ge() {
279
- let { analytics: e, isLoading: t, error: n } = Ve();
280
- return {
281
- fleetData: k(() => ({
282
- vehicleUtilization: e.fleet.utilization,
283
- avgFuelLevel: 0,
284
- vehiclesByType: [],
285
- driverPerformance: [],
286
- fleetStats: e.fleet
287
- }), [e.fleet]),
288
- isLoading: t,
289
- error: n
290
- };
291
- }
292
- var Ke = "\n query GetMovethewheelsFinanceMetrics {\n financeMetrics {\n revenue {\n totalRevenue\n deliveredRevenue\n averageOrderValue\n }\n fuelCost\n openInvoices\n }\n }\n";
293
- function qe() {
294
- let { apiGatewayUrl: e, authToken: t, workspaceToken: r, workspaceId: i, tenantId: o, currentUser: s } = a(), [c, l] = A({
295
- totalRevenue: 0,
296
- deliveredRevenue: 0,
297
- averageOrderValue: 0,
298
- fuelCost: 0,
299
- openInvoices: 0
300
- }), [u, d] = A(!1), [f, p] = A(null), m = k(() => ({
301
- apiGatewayUrl: e,
302
- authToken: t,
303
- workspaceToken: r,
304
- workspaceId: i,
305
- tenantId: o,
306
- actorId: s?.id
307
- }), [
308
- e,
309
- t,
310
- r,
311
- i,
312
- o,
313
- s?.id
314
- ]), h = D(async () => {
315
- d(!0), p(null);
316
- try {
317
- let e = await n(m, Ke);
318
- l({
319
- totalRevenue: e.financeMetrics.revenue.totalRevenue,
320
- deliveredRevenue: e.financeMetrics.revenue.deliveredRevenue,
321
- averageOrderValue: e.financeMetrics.revenue.averageOrderValue,
322
- fuelCost: e.financeMetrics.fuelCost,
323
- openInvoices: e.financeMetrics.openInvoices
324
- });
325
- } catch (e) {
326
- p(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load finance metrics"));
327
- } finally {
328
- d(!1);
329
- }
330
- }, [m]);
331
- return O(() => {
332
- h();
333
- }, [h]), {
334
- metrics: c,
335
- isLoading: u,
336
- error: f,
337
- refetch: D(() => {
338
- h();
339
- }, [h])
340
- };
341
- }
342
- function Je() {
343
- let { analytics: e, isLoading: t, error: n } = Ve();
344
- return {
345
- performanceData: k(() => ({
346
- ...e.performance,
347
- driverRatings: []
348
- }), [e.performance]),
349
- isLoading: t,
350
- error: n
351
- };
352
- }
353
- //#endregion
354
- //#region node_modules/recharts/es6/shape/Polygon.js
355
- var N = /* @__PURE__ */ e(Ce()), Ye = [
356
- "points",
357
- "className",
358
- "baseLinePoints",
359
- "connectNulls"
360
- ];
361
- function P() {
362
- return P = Object.assign ? Object.assign.bind() : function(e) {
363
- for (var t = 1; t < arguments.length; t++) {
364
- var n = arguments[t];
365
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
366
- }
367
- return e;
368
- }, P.apply(this, arguments);
369
- }
370
- function Xe(e, t) {
371
- if (e == null) return {};
372
- var n = Ze(e, t), r, i;
373
- if (Object.getOwnPropertySymbols) {
374
- var a = Object.getOwnPropertySymbols(e);
375
- for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
376
- }
377
- return n;
378
- }
379
- function Ze(e, t) {
380
- if (e == null) return {};
381
- var n = {};
382
- for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) {
383
- if (t.indexOf(r) >= 0) continue;
384
- n[r] = e[r];
385
- }
386
- return n;
387
- }
388
- function Qe(e) {
389
- return nt(e) || tt(e) || et(e) || $e();
390
- }
391
- function $e() {
392
- throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
393
- }
394
- function et(e, t) {
395
- if (e) {
396
- if (typeof e == "string") return rt(e, t);
397
- var n = Object.prototype.toString.call(e).slice(8, -1);
398
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
399
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return rt(e, t);
400
- }
401
- }
402
- function tt(e) {
403
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
404
- }
405
- function nt(e) {
406
- if (Array.isArray(e)) return rt(e);
407
- }
408
- function rt(e, t) {
409
- (t == null || t > e.length) && (t = e.length);
410
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
411
- return r;
412
- }
413
- var it = function(e) {
414
- return e && e.x === +e.x && e.y === +e.y;
415
- }, at = function() {
416
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
417
- return e.forEach(function(e) {
418
- it(e) ? t[t.length - 1].push(e) : t[t.length - 1].length > 0 && t.push([]);
419
- }), it(e[0]) && t[t.length - 1].push(e[0]), t[t.length - 1].length <= 0 && (t = t.slice(0, -1)), t;
420
- }, F = function(e, t) {
421
- var n = at(e);
422
- t && (n = [n.reduce(function(e, t) {
423
- return [].concat(Qe(e), Qe(t));
424
- }, [])]);
425
- var r = n.map(function(e) {
426
- return e.reduce(function(e, t, n) {
427
- return `${e}${n === 0 ? "M" : "L"}${t.x},${t.y}`;
428
- }, "");
429
- }).join("");
430
- return n.length === 1 ? `${r}Z` : r;
431
- }, ot = function(e, t, n) {
432
- var r = F(e, n);
433
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${F(t.reverse(), n).slice(1)}`;
434
- }, st = function(e) {
435
- var t = e.points, n = e.className, i = e.baseLinePoints, a = e.connectNulls, o = Xe(e, Ye);
436
- if (!t || !t.length) return null;
437
- var s = r("recharts-polygon", n);
438
- if (i && i.length) {
439
- var c = o.stroke && o.stroke !== "none", l = ot(t, i, a);
440
- return /* @__PURE__ */ E.createElement("g", { className: s }, /* @__PURE__ */ E.createElement("path", P({}, _(o, !0), {
441
- fill: l.slice(-1) === "Z" ? o.fill : "none",
442
- stroke: "none",
443
- d: l
444
- })), c ? /* @__PURE__ */ E.createElement("path", P({}, _(o, !0), {
445
- fill: "none",
446
- d: F(t, a)
447
- })) : null, c ? /* @__PURE__ */ E.createElement("path", P({}, _(o, !0), {
448
- fill: "none",
449
- d: F(i, a)
450
- })) : null);
451
- }
452
- var u = F(t, a);
453
- return /* @__PURE__ */ E.createElement("path", P({}, _(o, !0), {
454
- fill: u.slice(-1) === "Z" ? o.fill : "none",
455
- className: s,
456
- d: u
457
- }));
458
- }, ct = /* @__PURE__ */ t(((e, t) => {
459
- var n = h(), r = f(), i = ae();
460
- function a(e, t) {
461
- return e && e.length ? n(e, i(t, 2), r) : void 0;
462
- }
463
- t.exports = a;
464
- })), lt = /* @__PURE__ */ t(((e, t) => {
465
- var n = h(), r = ae(), i = te();
466
- function a(e, t) {
467
- return e && e.length ? n(e, r(t, 2), i) : void 0;
468
- }
469
- t.exports = a;
470
- })), ut = /* @__PURE__ */ e(ct()), dt = /* @__PURE__ */ e(lt()), ft = [
471
- "cx",
472
- "cy",
473
- "angle",
474
- "ticks",
475
- "axisLine"
476
- ], pt = [
477
- "ticks",
478
- "tick",
479
- "angle",
480
- "tickFormatter",
481
- "stroke"
482
- ];
483
- function I(e) {
484
- "@babel/helpers - typeof";
485
- return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
486
- return typeof e;
487
- } : function(e) {
488
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
489
- }, I(e);
490
- }
491
- function L() {
492
- return L = Object.assign ? Object.assign.bind() : function(e) {
493
- for (var t = 1; t < arguments.length; t++) {
494
- var n = arguments[t];
495
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
496
- }
497
- return e;
498
- }, L.apply(this, arguments);
499
- }
500
- function mt(e, t) {
501
- var n = Object.keys(e);
502
- if (Object.getOwnPropertySymbols) {
503
- var r = Object.getOwnPropertySymbols(e);
504
- t && (r = r.filter(function(t) {
505
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
506
- })), n.push.apply(n, r);
507
- }
508
- return n;
509
- }
510
- function R(e) {
511
- for (var t = 1; t < arguments.length; t++) {
512
- var n = arguments[t] == null ? {} : arguments[t];
513
- t % 2 ? mt(Object(n), !0).forEach(function(t) {
514
- Dt(e, t, n[t]);
515
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mt(Object(n)).forEach(function(t) {
516
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
517
- });
518
- }
519
- return e;
520
- }
521
- function ht(e, t) {
522
- if (e == null) return {};
523
- var n = gt(e, t), r, i;
524
- if (Object.getOwnPropertySymbols) {
525
- var a = Object.getOwnPropertySymbols(e);
526
- for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
527
- }
528
- return n;
529
- }
530
- function gt(e, t) {
531
- if (e == null) return {};
532
- var n = {};
533
- for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) {
534
- if (t.indexOf(r) >= 0) continue;
535
- n[r] = e[r];
536
- }
537
- return n;
538
- }
539
- function _t(e, t) {
540
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
541
- }
542
- function vt(e, t) {
543
- for (var n = 0; n < t.length; n++) {
544
- var r = t[n];
545
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ot(r.key), r);
546
- }
547
- }
548
- function yt(e, t, n) {
549
- return t && vt(e.prototype, t), n && vt(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
550
- }
551
- function bt(e, t, n) {
552
- return t = wt(t), xt(e, Ct() ? Reflect.construct(t, n || [], wt(e).constructor) : t.apply(e, n));
553
- }
554
- function xt(e, t) {
555
- if (t && (I(t) === "object" || typeof t == "function")) return t;
556
- if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
557
- return St(e);
558
- }
559
- function St(e) {
560
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
561
- return e;
562
- }
563
- function Ct() {
564
- try {
565
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
566
- } catch {}
567
- return (Ct = function() {
568
- return !!e;
569
- })();
570
- }
571
- function wt(e) {
572
- return wt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
573
- return e.__proto__ || Object.getPrototypeOf(e);
574
- }, wt(e);
575
- }
576
- function Tt(e, t) {
577
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
578
- e.prototype = Object.create(t && t.prototype, { constructor: {
579
- value: e,
580
- writable: !0,
581
- configurable: !0
582
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Et(e, t);
583
- }
584
- function Et(e, t) {
585
- return Et = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
586
- return e.__proto__ = t, e;
587
- }, Et(e, t);
588
- }
589
- function Dt(e, t, n) {
590
- return t = Ot(t), t in e ? Object.defineProperty(e, t, {
591
- value: n,
592
- enumerable: !0,
593
- configurable: !0,
594
- writable: !0
595
- }) : e[t] = n, e;
596
- }
597
- function Ot(e) {
598
- var t = kt(e, "string");
599
- return I(t) == "symbol" ? t : t + "";
600
- }
601
- function kt(e, t) {
602
- if (I(e) != "object" || !e) return e;
603
- var n = e[Symbol.toPrimitive];
604
- if (n !== void 0) {
605
- var r = n.call(e, t || "default");
606
- if (I(r) != "object") return r;
607
- throw TypeError("@@toPrimitive must return a primitive value.");
608
- }
609
- return (t === "string" ? String : Number)(e);
610
- }
611
- var At = /* @__PURE__ */ function(e) {
612
- function t() {
613
- return _t(this, t), bt(this, t, arguments);
614
- }
615
- return Tt(t, e), yt(t, [
616
- {
617
- key: "getTickValueCoord",
618
- value: function(e) {
619
- var t = e.coordinate, n = this.props, r = n.angle, i = n.cx, a = n.cy;
620
- return C(i, a, t, r);
621
- }
622
- },
623
- {
624
- key: "getTickTextAnchor",
625
- value: function() {
626
- var e = this.props.orientation, t;
627
- switch (e) {
628
- case "left":
629
- t = "end";
630
- break;
631
- case "right":
632
- t = "start";
633
- break;
634
- default:
635
- t = "middle";
636
- break;
637
- }
638
- return t;
639
- }
640
- },
641
- {
642
- key: "getViewBox",
643
- value: function() {
644
- var e = this.props, t = e.cx, n = e.cy, r = e.angle, i = e.ticks, a = (0, ut.default)(i, function(e) {
645
- return e.coordinate || 0;
646
- });
647
- return {
648
- cx: t,
649
- cy: n,
650
- startAngle: r,
651
- endAngle: r,
652
- innerRadius: (0, dt.default)(i, function(e) {
653
- return e.coordinate || 0;
654
- }).coordinate || 0,
655
- outerRadius: a.coordinate || 0
656
- };
657
- }
658
- },
659
- {
660
- key: "renderAxisLine",
661
- value: function() {
662
- var e = this.props, t = e.cx, n = e.cy, r = e.angle, i = e.ticks, a = e.axisLine, o = ht(e, ft), s = i.reduce(function(e, t) {
663
- return [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)];
664
- }, [Infinity, -Infinity]), c = C(t, n, s[0], r), l = C(t, n, s[1], r), u = R(R(R({}, _(o, !1)), {}, { fill: "none" }, _(a, !1)), {}, {
665
- x1: c.x,
666
- y1: c.y,
667
- x2: l.x,
668
- y2: l.y
669
- });
670
- return /* @__PURE__ */ E.createElement("line", L({ className: "recharts-polar-radius-axis-line" }, u));
671
- }
672
- },
673
- {
674
- key: "renderTicks",
675
- value: function() {
676
- var e = this, n = this.props, i = n.ticks, a = n.tick, o = n.angle, s = n.tickFormatter, c = n.stroke, l = ht(n, pt), u = this.getTickTextAnchor(), d = _(l, !1), f = _(a, !1), m = i.map(function(n, i) {
677
- var l = e.getTickValueCoord(n), m = R(R(R(R({
678
- textAnchor: u,
679
- transform: `rotate(${90 - o}, ${l.x}, ${l.y})`
680
- }, d), {}, {
681
- stroke: "none",
682
- fill: c
683
- }, f), {}, { index: i }, l), {}, { payload: n });
684
- return /* @__PURE__ */ E.createElement(p, L({
685
- className: r("recharts-polar-radius-axis-tick", b(a)),
686
- key: `tick-${n.coordinate}`
687
- }, g(e.props, n, i)), t.renderTickItem(a, m, s ? s(n.value, i) : n.value));
688
- });
689
- return /* @__PURE__ */ E.createElement(p, { className: "recharts-polar-radius-axis-ticks" }, m);
690
- }
691
- },
692
- {
693
- key: "render",
694
- value: function() {
695
- var e = this.props, t = e.ticks, n = e.axisLine, i = e.tick;
696
- return !t || !t.length ? null : /* @__PURE__ */ E.createElement(p, { className: r("recharts-polar-radius-axis", this.props.className) }, n && this.renderAxisLine(), i && this.renderTicks(), ie.renderCallByParent(this.props, this.getViewBox()));
697
- }
698
- }
699
- ], [{
700
- key: "renderTickItem",
701
- value: function(e, t, n) {
702
- return /* @__PURE__ */ E.isValidElement(e) ? /* @__PURE__ */ E.cloneElement(e, t) : (0, N.default)(e) ? e(t) : /* @__PURE__ */ E.createElement(v, L({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n);
703
- }
704
- }]);
705
- }(Fe);
706
- Dt(At, "displayName", "PolarRadiusAxis"), Dt(At, "axisType", "radiusAxis"), Dt(At, "defaultProps", {
707
- type: "number",
708
- radiusAxisId: 0,
709
- cx: 0,
710
- cy: 0,
711
- angle: 0,
712
- orientation: "right",
713
- stroke: "#ccc",
714
- axisLine: !0,
715
- tick: !0,
716
- tickCount: 5,
717
- allowDataOverflow: !1,
718
- scale: "auto",
719
- allowDuplicatedCategory: !0
720
- });
721
- //#endregion
722
- //#region node_modules/recharts/es6/polar/PolarAngleAxis.js
723
- function z(e) {
724
- "@babel/helpers - typeof";
725
- return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
726
- return typeof e;
727
- } : function(e) {
728
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
729
- }, z(e);
730
- }
731
- function B() {
732
- return B = Object.assign ? Object.assign.bind() : function(e) {
733
- for (var t = 1; t < arguments.length; t++) {
734
- var n = arguments[t];
735
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
736
- }
737
- return e;
738
- }, B.apply(this, arguments);
739
- }
740
- function jt(e, t) {
741
- var n = Object.keys(e);
742
- if (Object.getOwnPropertySymbols) {
743
- var r = Object.getOwnPropertySymbols(e);
744
- t && (r = r.filter(function(t) {
745
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
746
- })), n.push.apply(n, r);
747
- }
748
- return n;
749
- }
750
- function V(e) {
751
- for (var t = 1; t < arguments.length; t++) {
752
- var n = arguments[t] == null ? {} : arguments[t];
753
- t % 2 ? jt(Object(n), !0).forEach(function(t) {
754
- Ht(e, t, n[t]);
755
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jt(Object(n)).forEach(function(t) {
756
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
757
- });
758
- }
759
- return e;
760
- }
761
- function Mt(e, t) {
762
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
763
- }
764
- function Nt(e, t) {
765
- for (var n = 0; n < t.length; n++) {
766
- var r = t[n];
767
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ut(r.key), r);
768
- }
769
- }
770
- function Pt(e, t, n) {
771
- return t && Nt(e.prototype, t), n && Nt(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
772
- }
773
- function Ft(e, t, n) {
774
- return t = zt(t), It(e, Rt() ? Reflect.construct(t, n || [], zt(e).constructor) : t.apply(e, n));
775
- }
776
- function It(e, t) {
777
- if (t && (z(t) === "object" || typeof t == "function")) return t;
778
- if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
779
- return Lt(e);
780
- }
781
- function Lt(e) {
782
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
783
- return e;
784
- }
785
- function Rt() {
786
- try {
787
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
788
- } catch {}
789
- return (Rt = function() {
790
- return !!e;
791
- })();
792
- }
793
- function zt(e) {
794
- return zt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
795
- return e.__proto__ || Object.getPrototypeOf(e);
796
- }, zt(e);
797
- }
798
- function Bt(e, t) {
799
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
800
- e.prototype = Object.create(t && t.prototype, { constructor: {
801
- value: e,
802
- writable: !0,
803
- configurable: !0
804
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Vt(e, t);
805
- }
806
- function Vt(e, t) {
807
- return Vt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
808
- return e.__proto__ = t, e;
809
- }, Vt(e, t);
810
- }
811
- function Ht(e, t, n) {
812
- return t = Ut(t), t in e ? Object.defineProperty(e, t, {
813
- value: n,
814
- enumerable: !0,
815
- configurable: !0,
816
- writable: !0
817
- }) : e[t] = n, e;
818
- }
819
- function Ut(e) {
820
- var t = Wt(e, "string");
821
- return z(t) == "symbol" ? t : t + "";
822
- }
823
- function Wt(e, t) {
824
- if (z(e) != "object" || !e) return e;
825
- var n = e[Symbol.toPrimitive];
826
- if (n !== void 0) {
827
- var r = n.call(e, t || "default");
828
- if (z(r) != "object") return r;
829
- throw TypeError("@@toPrimitive must return a primitive value.");
830
- }
831
- return (t === "string" ? String : Number)(e);
832
- }
833
- var Gt = Math.PI / 180, Kt = 1e-5, qt = /* @__PURE__ */ function(e) {
834
- function t() {
835
- return Mt(this, t), Ft(this, t, arguments);
836
- }
837
- return Bt(t, e), Pt(t, [
838
- {
839
- key: "getTickLineCoord",
840
- value: function(e) {
841
- var t = this.props, n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = C(n, r, i, e.coordinate), c = C(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
842
- return {
843
- x1: s.x,
844
- y1: s.y,
845
- x2: c.x,
846
- y2: c.y
847
- };
848
- }
849
- },
850
- {
851
- key: "getTickTextAnchor",
852
- value: function(e) {
853
- var t = this.props.orientation, n = Math.cos(-e.coordinate * Gt);
854
- return n > Kt ? t === "outer" ? "start" : "end" : n < -Kt ? t === "outer" ? "end" : "start" : "middle";
855
- }
856
- },
857
- {
858
- key: "renderAxisLine",
859
- value: function() {
860
- var e = this.props, t = e.cx, n = e.cy, r = e.radius, i = e.axisLine, a = e.axisLineType, o = V(V({}, _(this.props, !1)), {}, { fill: "none" }, _(i, !1));
861
- if (a === "circle") return /* @__PURE__ */ E.createElement(Me, B({ className: "recharts-polar-angle-axis-line" }, o, {
862
- cx: t,
863
- cy: n,
864
- r
865
- }));
866
- var s = this.props.ticks.map(function(e) {
867
- return C(t, n, r, e.coordinate);
868
- });
869
- return /* @__PURE__ */ E.createElement(st, B({ className: "recharts-polar-angle-axis-line" }, o, { points: s }));
870
- }
871
- },
872
- {
873
- key: "renderTicks",
874
- value: function() {
875
- var e = this, n = this.props, i = n.ticks, a = n.tick, o = n.tickLine, s = n.tickFormatter, c = n.stroke, l = _(this.props, !1), u = _(a, !1), d = V(V({}, l), {}, { fill: "none" }, _(o, !1)), f = i.map(function(n, i) {
876
- var f = e.getTickLineCoord(n), m = V(V(V({ textAnchor: e.getTickTextAnchor(n) }, l), {}, {
877
- stroke: "none",
878
- fill: c
879
- }, u), {}, {
880
- index: i,
881
- payload: n,
882
- x: f.x2,
883
- y: f.y2
884
- });
885
- return /* @__PURE__ */ E.createElement(p, B({
886
- className: r("recharts-polar-angle-axis-tick", b(a)),
887
- key: `tick-${n.coordinate}`
888
- }, g(e.props, n, i)), o && /* @__PURE__ */ E.createElement("line", B({ className: "recharts-polar-angle-axis-tick-line" }, d, f)), a && t.renderTickItem(a, m, s ? s(n.value, i) : n.value));
889
- });
890
- return /* @__PURE__ */ E.createElement(p, { className: "recharts-polar-angle-axis-ticks" }, f);
891
- }
892
- },
893
- {
894
- key: "render",
895
- value: function() {
896
- var e = this.props, t = e.ticks, n = e.radius, i = e.axisLine;
897
- return n <= 0 || !t || !t.length ? null : /* @__PURE__ */ E.createElement(p, { className: r("recharts-polar-angle-axis", this.props.className) }, i && this.renderAxisLine(), this.renderTicks());
898
- }
899
- }
900
- ], [{
901
- key: "renderTickItem",
902
- value: function(e, t, n) {
903
- return /* @__PURE__ */ E.isValidElement(e) ? /* @__PURE__ */ E.cloneElement(e, t) : (0, N.default)(e) ? e(t) : /* @__PURE__ */ E.createElement(v, B({}, t, { className: "recharts-polar-angle-axis-tick-value" }), n);
904
- }
905
- }]);
906
- }(Fe);
907
- Ht(qt, "displayName", "PolarAngleAxis"), Ht(qt, "axisType", "angleAxis"), Ht(qt, "defaultProps", {
908
- type: "category",
909
- angleAxisId: 0,
910
- scale: "auto",
911
- cx: 0,
912
- cy: 0,
913
- orientation: "outer",
914
- axisLine: !0,
915
- tickLine: !0,
916
- tickSize: 8,
917
- tick: !0,
918
- hide: !1,
919
- allowDuplicatedCategory: !0
920
- });
921
- //#endregion
922
- //#region node_modules/recharts/es6/polar/Pie.js
923
- var Jt = /* @__PURE__ */ e(Oe()), Yt = /* @__PURE__ */ e(ee()), H = /* @__PURE__ */ e(he()), Xt;
924
- function U(e) {
925
- "@babel/helpers - typeof";
926
- return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
927
- return typeof e;
928
- } : function(e) {
929
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
930
- }, U(e);
931
- }
932
- function W() {
933
- return W = Object.assign ? Object.assign.bind() : function(e) {
934
- for (var t = 1; t < arguments.length; t++) {
935
- var n = arguments[t];
936
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
937
- }
938
- return e;
939
- }, W.apply(this, arguments);
940
- }
941
- function Zt(e, t) {
942
- var n = Object.keys(e);
943
- if (Object.getOwnPropertySymbols) {
944
- var r = Object.getOwnPropertySymbols(e);
945
- t && (r = r.filter(function(t) {
946
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
947
- })), n.push.apply(n, r);
948
- }
949
- return n;
950
- }
951
- function G(e) {
952
- for (var t = 1; t < arguments.length; t++) {
953
- var n = arguments[t] == null ? {} : arguments[t];
954
- t % 2 ? Zt(Object(n), !0).forEach(function(t) {
955
- K(e, t, n[t]);
956
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Zt(Object(n)).forEach(function(t) {
957
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
958
- });
959
- }
960
- return e;
961
- }
962
- function Qt(e, t) {
963
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
964
- }
965
- function $t(e, t) {
966
- for (var n = 0; n < t.length; n++) {
967
- var r = t[n];
968
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ln(r.key), r);
969
- }
970
- }
971
- function en(e, t, n) {
972
- return t && $t(e.prototype, t), n && $t(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
973
- }
974
- function tn(e, t, n) {
975
- return t = on(t), nn(e, an() ? Reflect.construct(t, n || [], on(e).constructor) : t.apply(e, n));
976
- }
977
- function nn(e, t) {
978
- if (t && (U(t) === "object" || typeof t == "function")) return t;
979
- if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
980
- return rn(e);
981
- }
982
- function rn(e) {
983
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
984
- return e;
985
- }
986
- function an() {
987
- try {
988
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
989
- } catch {}
990
- return (an = function() {
991
- return !!e;
992
- })();
993
- }
994
- function on(e) {
995
- return on = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
996
- return e.__proto__ || Object.getPrototypeOf(e);
997
- }, on(e);
998
- }
999
- function sn(e, t) {
1000
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
1001
- e.prototype = Object.create(t && t.prototype, { constructor: {
1002
- value: e,
1003
- writable: !0,
1004
- configurable: !0
1005
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && cn(e, t);
1006
- }
1007
- function cn(e, t) {
1008
- return cn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
1009
- return e.__proto__ = t, e;
1010
- }, cn(e, t);
1011
- }
1012
- function K(e, t, n) {
1013
- return t = ln(t), t in e ? Object.defineProperty(e, t, {
1014
- value: n,
1015
- enumerable: !0,
1016
- configurable: !0,
1017
- writable: !0
1018
- }) : e[t] = n, e;
1019
- }
1020
- function ln(e) {
1021
- var t = un(e, "string");
1022
- return U(t) == "symbol" ? t : t + "";
1023
- }
1024
- function un(e, t) {
1025
- if (U(e) != "object" || !e) return e;
1026
- var n = e[Symbol.toPrimitive];
1027
- if (n !== void 0) {
1028
- var r = n.call(e, t || "default");
1029
- if (U(r) != "object") return r;
1030
- throw TypeError("@@toPrimitive must return a primitive value.");
1031
- }
1032
- return (t === "string" ? String : Number)(e);
1033
- }
1034
- var q = /* @__PURE__ */ function(e) {
1035
- function t(e) {
1036
- var n;
1037
- return Qt(this, t), n = tn(this, t, [e]), K(n, "pieRef", null), K(n, "sectorRefs", []), K(n, "id", o("recharts-pie-")), K(n, "handleAnimationEnd", function() {
1038
- var e = n.props.onAnimationEnd;
1039
- n.setState({ isAnimationFinished: !0 }), (0, N.default)(e) && e();
1040
- }), K(n, "handleAnimationStart", function() {
1041
- var e = n.props.onAnimationStart;
1042
- n.setState({ isAnimationFinished: !1 }), (0, N.default)(e) && e();
1043
- }), n.state = {
1044
- isAnimationFinished: !e.isAnimationActive,
1045
- prevIsAnimationActive: e.isAnimationActive,
1046
- prevAnimationId: e.animationId,
1047
- sectorToFocus: 0
1048
- }, n;
1049
- }
1050
- return sn(t, e), en(t, [
1051
- {
1052
- key: "isActiveIndex",
1053
- value: function(e) {
1054
- var t = this.props.activeIndex;
1055
- return Array.isArray(t) ? t.indexOf(e) !== -1 : e === t;
1056
- }
1057
- },
1058
- {
1059
- key: "hasActiveIndex",
1060
- value: function() {
1061
- var e = this.props.activeIndex;
1062
- return Array.isArray(e) ? e.length !== 0 : e || e === 0;
1063
- }
1064
- },
1065
- {
1066
- key: "renderLabels",
1067
- value: function(e) {
1068
- if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null;
1069
- var n = this.props, r = n.label, i = n.labelLine, a = n.dataKey, o = n.valueKey, s = _(this.props, !1), c = _(r, !1), l = _(i, !1), u = r && r.offsetRadius || 20, d = e.map(function(e, n) {
1070
- var d = (e.startAngle + e.endAngle) / 2, f = C(e.cx, e.cy, e.outerRadius + u, d), m = G(G(G(G({}, s), e), {}, { stroke: "none" }, c), {}, {
1071
- index: n,
1072
- textAnchor: t.getTextAnchor(f.x, e.cx)
1073
- }, f), h = G(G(G(G({}, s), e), {}, {
1074
- fill: "none",
1075
- stroke: e.fill
1076
- }, l), {}, {
1077
- index: n,
1078
- points: [C(e.cx, e.cy, e.outerRadius, d), f]
1079
- }), g = a;
1080
- return (0, H.default)(a) && (0, H.default)(o) ? g = "value" : (0, H.default)(a) && (g = o), /* @__PURE__ */ E.createElement(p, { key: `label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${n}` }, i && t.renderLabelLineItem(i, h, "line"), t.renderLabelItem(r, m, y(e, g)));
1081
- });
1082
- return /* @__PURE__ */ E.createElement(p, { className: "recharts-pie-labels" }, d);
1083
- }
1084
- },
1085
- {
1086
- key: "renderSectorsStatically",
1087
- value: function(e) {
1088
- var t = this, n = this.props, r = n.activeShape, i = n.blendStroke, a = n.inactiveShape;
1089
- return e.map(function(n, o) {
1090
- if (n?.startAngle === 0 && n?.endAngle === 0 && e.length !== 1) return null;
1091
- var s = t.isActiveIndex(o), c = a && t.hasActiveIndex() ? a : null, l = s ? r : c, u = G(G({}, n), {}, {
1092
- stroke: i ? n.fill : n.stroke,
1093
- tabIndex: -1
1094
- });
1095
- return /* @__PURE__ */ E.createElement(p, W({
1096
- ref: function(e) {
1097
- e && !t.sectorRefs.includes(e) && t.sectorRefs.push(e);
1098
- },
1099
- tabIndex: -1,
1100
- className: "recharts-pie-sector"
1101
- }, g(t.props, n, o), { key: `sector-${n?.startAngle}-${n?.endAngle}-${n.midAngle}-${o}` }), /* @__PURE__ */ E.createElement(fe, W({
1102
- option: l,
1103
- isActive: s,
1104
- shapeType: "sector"
1105
- }, u)));
1106
- });
1107
- }
1108
- },
1109
- {
1110
- key: "renderSectorsWithAnimation",
1111
- value: function() {
1112
- var e = this, t = this.props, n = t.sectors, r = t.isAnimationActive, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.animationId, c = this.state, l = c.prevSectors, u = c.prevIsAnimationActive;
1113
- return /* @__PURE__ */ E.createElement(re, {
1114
- begin: i,
1115
- duration: a,
1116
- isActive: r,
1117
- easing: o,
1118
- from: { t: 0 },
1119
- to: { t: 1 },
1120
- key: `pie-${s}-${u}`,
1121
- onAnimationStart: this.handleAnimationStart,
1122
- onAnimationEnd: this.handleAnimationEnd
1123
- }, function(t) {
1124
- var r = t.t, i = [], a = (n && n[0]).startAngle;
1125
- return n.forEach(function(e, t) {
1126
- var n = l && l[t], o = t > 0 ? (0, Jt.default)(e, "paddingAngle", 0) : 0;
1127
- if (n) {
1128
- var s = ce(n.endAngle - n.startAngle, e.endAngle - e.startAngle), c = G(G({}, e), {}, {
1129
- startAngle: a + o,
1130
- endAngle: a + s(r) + o
1131
- });
1132
- i.push(c), a = c.endAngle;
1133
- } else {
1134
- var u = e.endAngle, d = e.startAngle, f = ce(0, u - d)(r), p = G(G({}, e), {}, {
1135
- startAngle: a + o,
1136
- endAngle: a + f + o
1137
- });
1138
- i.push(p), a = p.endAngle;
1139
- }
1140
- }), /* @__PURE__ */ E.createElement(p, null, e.renderSectorsStatically(i));
1141
- });
1142
- }
1143
- },
1144
- {
1145
- key: "attachKeyboardHandlers",
1146
- value: function(e) {
1147
- var t = this;
1148
- e.onkeydown = function(e) {
1149
- if (!e.altKey) switch (e.key) {
1150
- case "ArrowLeft":
1151
- var n = ++t.state.sectorToFocus % t.sectorRefs.length;
1152
- t.sectorRefs[n].focus(), t.setState({ sectorToFocus: n });
1153
- break;
1154
- case "ArrowRight":
1155
- var r = --t.state.sectorToFocus < 0 ? t.sectorRefs.length - 1 : t.state.sectorToFocus % t.sectorRefs.length;
1156
- t.sectorRefs[r].focus(), t.setState({ sectorToFocus: r });
1157
- break;
1158
- case "Escape":
1159
- t.sectorRefs[t.state.sectorToFocus].blur(), t.setState({ sectorToFocus: 0 });
1160
- break;
1161
- default:
1162
- }
1163
- };
1164
- }
1165
- },
1166
- {
1167
- key: "renderSectors",
1168
- value: function() {
1169
- var e = this.props, t = e.sectors, n = e.isAnimationActive, r = this.state.prevSectors;
1170
- return n && t && t.length && (!r || !(0, Yt.default)(r, t)) ? this.renderSectorsWithAnimation() : this.renderSectorsStatically(t);
1171
- }
1172
- },
1173
- {
1174
- key: "componentDidMount",
1175
- value: function() {
1176
- this.pieRef && this.attachKeyboardHandlers(this.pieRef);
1177
- }
1178
- },
1179
- {
1180
- key: "render",
1181
- value: function() {
1182
- var e = this, t = this.props, n = t.hide, i = t.sectors, a = t.className, o = t.label, s = t.cx, c = t.cy, l = t.innerRadius, u = t.outerRadius, d = t.isAnimationActive, f = this.state.isAnimationFinished;
1183
- if (n || !i || !i.length || !S(s) || !S(c) || !S(l) || !S(u)) return null;
1184
- var m = r("recharts-pie", a);
1185
- return /* @__PURE__ */ E.createElement(p, {
1186
- tabIndex: this.props.rootTabIndex,
1187
- className: m,
1188
- ref: function(t) {
1189
- e.pieRef = t;
1190
- }
1191
- }, this.renderSectors(), o && this.renderLabels(i), ie.renderCallByParent(this.props, null, !1), (!d || f) && je.renderCallByParent(this.props, i, !1));
1192
- }
1193
- }
1194
- ], [
1195
- {
1196
- key: "getDerivedStateFromProps",
1197
- value: function(e, t) {
1198
- return t.prevIsAnimationActive === e.isAnimationActive ? e.isAnimationActive && e.animationId !== t.prevAnimationId ? {
1199
- prevAnimationId: e.animationId,
1200
- curSectors: e.sectors,
1201
- prevSectors: t.curSectors,
1202
- isAnimationFinished: !0
1203
- } : e.sectors === t.curSectors ? null : {
1204
- curSectors: e.sectors,
1205
- isAnimationFinished: !0
1206
- } : {
1207
- prevIsAnimationActive: e.isAnimationActive,
1208
- prevAnimationId: e.animationId,
1209
- curSectors: e.sectors,
1210
- prevSectors: [],
1211
- isAnimationFinished: !0
1212
- };
1213
- }
1214
- },
1215
- {
1216
- key: "getTextAnchor",
1217
- value: function(e, t) {
1218
- return e > t ? "start" : e < t ? "end" : "middle";
1219
- }
1220
- },
1221
- {
1222
- key: "renderLabelLineItem",
1223
- value: function(e, t, n) {
1224
- if (/* @__PURE__ */ E.isValidElement(e)) return /* @__PURE__ */ E.cloneElement(e, t);
1225
- if ((0, N.default)(e)) return e(t);
1226
- var i = r("recharts-pie-label-line", typeof e == "boolean" ? "" : e.className);
1227
- return /* @__PURE__ */ E.createElement(l, W({}, t, {
1228
- key: n,
1229
- type: "linear",
1230
- className: i
1231
- }));
1232
- }
1233
- },
1234
- {
1235
- key: "renderLabelItem",
1236
- value: function(e, t, n) {
1237
- if (/* @__PURE__ */ E.isValidElement(e)) return /* @__PURE__ */ E.cloneElement(e, t);
1238
- var i = n;
1239
- if ((0, N.default)(e) && (i = e(t), /* @__PURE__ */ E.isValidElement(i))) return i;
1240
- var a = r("recharts-pie-label-text", typeof e != "boolean" && !(0, N.default)(e) ? e.className : "");
1241
- return /* @__PURE__ */ E.createElement(v, W({}, t, {
1242
- alignmentBaseline: "middle",
1243
- className: a
1244
- }), i);
1245
- }
1246
- }
1247
- ]);
1248
- }(Fe);
1249
- Xt = q, K(q, "displayName", "Pie"), K(q, "defaultProps", {
1250
- stroke: "#fff",
1251
- fill: "#808080",
1252
- legendType: "rect",
1253
- cx: "50%",
1254
- cy: "50%",
1255
- startAngle: 0,
1256
- endAngle: 360,
1257
- innerRadius: 0,
1258
- outerRadius: "80%",
1259
- paddingAngle: 0,
1260
- labelLine: !0,
1261
- hide: !1,
1262
- minAngle: 0,
1263
- isAnimationActive: !oe.isSsr,
1264
- animationBegin: 400,
1265
- animationDuration: 1500,
1266
- animationEasing: "ease",
1267
- nameKey: "name",
1268
- blendStroke: !1,
1269
- rootTabIndex: 0
1270
- }), K(q, "parseDeltaAngle", function(e, t) {
1271
- return ne(t - e) * Math.min(Math.abs(t - e), 360);
1272
- }), K(q, "getRealPieData", function(e) {
1273
- var t = e.data, n = e.children, r = _(e, !1), i = Ee(n, x);
1274
- return t && t.length ? t.map(function(e, t) {
1275
- return G(G(G({ payload: e }, r), e), i && i[t] && i[t].props);
1276
- }) : i && i.length ? i.map(function(e) {
1277
- return G(G({}, r), e.props);
1278
- }) : [];
1279
- }), K(q, "parseCoordinateOfPie", function(e, t) {
1280
- var n = t.top, r = t.left, i = t.width, a = t.height, o = u(i, a);
1281
- return {
1282
- cx: r + le(e.cx, i, i / 2),
1283
- cy: n + le(e.cy, a, a / 2),
1284
- innerRadius: le(e.innerRadius, o, 0),
1285
- outerRadius: le(e.outerRadius, o, o * .8),
1286
- maxRadius: e.maxRadius || Math.sqrt(i * i + a * a) / 2
1287
- };
1288
- }), K(q, "getComposedData", function(e) {
1289
- var t = e.item, n = e.offset, r = t.type.defaultProps === void 0 ? t.props : G(G({}, t.type.defaultProps), t.props), i = Xt.getRealPieData(r);
1290
- if (!i || !i.length) return null;
1291
- var a = r.cornerRadius, o = r.startAngle, s = r.endAngle, c = r.paddingAngle, l = r.dataKey, u = r.nameKey, d = r.valueKey, f = r.tooltipType, p = Math.abs(r.minAngle), m = Xt.parseCoordinateOfPie(r, n), h = Xt.parseDeltaAngle(o, s), g = Math.abs(h), _ = l;
1292
- (0, H.default)(l) && (0, H.default)(d) ? (se(!1, "Use \"dataKey\" to specify the value of pie,\n the props \"valueKey\" will be deprecated in 1.1.0"), _ = "value") : (0, H.default)(l) && (se(!1, "Use \"dataKey\" to specify the value of pie,\n the props \"valueKey\" will be deprecated in 1.1.0"), _ = d);
1293
- var v = i.filter(function(e) {
1294
- return y(e, _, 0) !== 0;
1295
- }).length, ee = (g >= 360 ? v : v - 1) * c, b = g - v * p - ee, te = i.reduce(function(e, t) {
1296
- var n = y(t, _, 0);
1297
- return e + (S(n) ? n : 0);
1298
- }, 0), x;
1299
- if (te > 0) {
1300
- var re;
1301
- x = i.map(function(e, t) {
1302
- var n = y(e, _, 0), r = y(e, u, t), i = (S(n) ? n : 0) / te, s = t ? re.endAngle + ne(h) * c * (n === 0 ? 0 : 1) : o, l = s + ne(h) * ((n === 0 ? 0 : p) + i * b), d = (s + l) / 2, g = (m.innerRadius + m.outerRadius) / 2;
1303
- return re = G(G(G({
1304
- percent: i,
1305
- cornerRadius: a,
1306
- name: r,
1307
- tooltipPayload: [{
1308
- name: r,
1309
- value: n,
1310
- payload: e,
1311
- dataKey: _,
1312
- type: f
1313
- }],
1314
- midAngle: d,
1315
- middleRadius: g,
1316
- tooltipPosition: C(m.cx, m.cy, g, d)
1317
- }, e), m), {}, {
1318
- value: y(e, _),
1319
- startAngle: s,
1320
- endAngle: l,
1321
- payload: e,
1322
- paddingAngle: ne(h) * c
1323
- }), re;
1324
- });
1325
- }
1326
- return G(G({}, m), {}, {
1327
- sectors: x,
1328
- data: i
1329
- });
1330
- });
1331
- //#endregion
1332
- //#region node_modules/recharts/es6/cartesian/CartesianGrid.js
1333
- var dn = [
1334
- "x1",
1335
- "y1",
1336
- "x2",
1337
- "y2",
1338
- "key"
1339
- ], fn = ["offset"];
1340
- function J(e) {
1341
- "@babel/helpers - typeof";
1342
- return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1343
- return typeof e;
1344
- } : function(e) {
1345
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1346
- }, J(e);
1347
- }
1348
- function pn(e, t) {
1349
- var n = Object.keys(e);
1350
- if (Object.getOwnPropertySymbols) {
1351
- var r = Object.getOwnPropertySymbols(e);
1352
- t && (r = r.filter(function(t) {
1353
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1354
- })), n.push.apply(n, r);
1355
- }
1356
- return n;
1357
- }
1358
- function Y(e) {
1359
- for (var t = 1; t < arguments.length; t++) {
1360
- var n = arguments[t] == null ? {} : arguments[t];
1361
- t % 2 ? pn(Object(n), !0).forEach(function(t) {
1362
- mn(e, t, n[t]);
1363
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pn(Object(n)).forEach(function(t) {
1364
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1365
- });
1366
- }
1367
- return e;
1368
- }
1369
- function mn(e, t, n) {
1370
- return t = hn(t), t in e ? Object.defineProperty(e, t, {
1371
- value: n,
1372
- enumerable: !0,
1373
- configurable: !0,
1374
- writable: !0
1375
- }) : e[t] = n, e;
1376
- }
1377
- function hn(e) {
1378
- var t = gn(e, "string");
1379
- return J(t) == "symbol" ? t : t + "";
1380
- }
1381
- function gn(e, t) {
1382
- if (J(e) != "object" || !e) return e;
1383
- var n = e[Symbol.toPrimitive];
1384
- if (n !== void 0) {
1385
- var r = n.call(e, t || "default");
1386
- if (J(r) != "object") return r;
1387
- throw TypeError("@@toPrimitive must return a primitive value.");
1388
- }
1389
- return (t === "string" ? String : Number)(e);
1390
- }
1391
- function X() {
1392
- return X = Object.assign ? Object.assign.bind() : function(e) {
1393
- for (var t = 1; t < arguments.length; t++) {
1394
- var n = arguments[t];
1395
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1396
- }
1397
- return e;
1398
- }, X.apply(this, arguments);
1399
- }
1400
- function _n(e, t) {
1401
- if (e == null) return {};
1402
- var n = vn(e, t), r, i;
1403
- if (Object.getOwnPropertySymbols) {
1404
- var a = Object.getOwnPropertySymbols(e);
1405
- for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
1406
- }
1407
- return n;
1408
- }
1409
- function vn(e, t) {
1410
- if (e == null) return {};
1411
- var n = {};
1412
- for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) {
1413
- if (t.indexOf(r) >= 0) continue;
1414
- n[r] = e[r];
1415
- }
1416
- return n;
1417
- }
1418
- var yn = function(e) {
1419
- var t = e.fill;
1420
- if (!t || t === "none") return null;
1421
- var n = e.fillOpacity, r = e.x, i = e.y, a = e.width, o = e.height, s = e.ry;
1422
- return /* @__PURE__ */ E.createElement("rect", {
1423
- x: r,
1424
- y: i,
1425
- ry: s,
1426
- width: a,
1427
- height: o,
1428
- stroke: "none",
1429
- fill: t,
1430
- fillOpacity: n,
1431
- className: "recharts-cartesian-grid-bg"
1432
- });
1433
- };
1434
- function bn(e, t) {
1435
- var n;
1436
- if (/* @__PURE__ */ E.isValidElement(e)) n = /* @__PURE__ */ E.cloneElement(e, t);
1437
- else if ((0, N.default)(e)) n = e(t);
1438
- else {
1439
- var r = t.x1, i = t.y1, a = t.x2, o = t.y2, s = t.key, c = _(_n(t, dn), !1);
1440
- c.offset;
1441
- var l = _n(c, fn);
1442
- n = /* @__PURE__ */ E.createElement("line", X({}, l, {
1443
- x1: r,
1444
- y1: i,
1445
- x2: a,
1446
- y2: o,
1447
- fill: "none",
1448
- key: s
1449
- }));
1450
- }
1451
- return n;
1452
- }
1453
- function xn(e) {
1454
- var t = e.x, n = e.width, r = e.horizontal, i = r === void 0 ? !0 : r, a = e.horizontalPoints;
1455
- if (!i || !a || !a.length) return null;
1456
- var o = a.map(function(r, a) {
1457
- return bn(i, Y(Y({}, e), {}, {
1458
- x1: t,
1459
- y1: r,
1460
- x2: t + n,
1461
- y2: r,
1462
- key: `line-${a}`,
1463
- index: a
1464
- }));
1465
- });
1466
- return /* @__PURE__ */ E.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, o);
1467
- }
1468
- function Sn(e) {
1469
- var t = e.y, n = e.height, r = e.vertical, i = r === void 0 ? !0 : r, a = e.verticalPoints;
1470
- if (!i || !a || !a.length) return null;
1471
- var o = a.map(function(r, a) {
1472
- return bn(i, Y(Y({}, e), {}, {
1473
- x1: r,
1474
- y1: t,
1475
- x2: r,
1476
- y2: t + n,
1477
- key: `line-${a}`,
1478
- index: a
1479
- }));
1480
- });
1481
- return /* @__PURE__ */ E.createElement("g", { className: "recharts-cartesian-grid-vertical" }, o);
1482
- }
1483
- function Cn(e) {
1484
- var t = e.horizontalFill, n = e.fillOpacity, r = e.x, i = e.y, a = e.width, o = e.height, s = e.horizontalPoints, c = e.horizontal;
1485
- if (!(c === void 0 || c) || !t || !t.length) return null;
1486
- var l = s.map(function(e) {
1487
- return Math.round(e + i - i);
1488
- }).sort(function(e, t) {
1489
- return e - t;
1490
- });
1491
- i !== l[0] && l.unshift(0);
1492
- var u = l.map(function(e, s) {
1493
- var c = l[s + 1] ? l[s + 1] - e : i + o - e;
1494
- if (c <= 0) return null;
1495
- var u = s % t.length;
1496
- return /* @__PURE__ */ E.createElement("rect", {
1497
- key: `react-${s}`,
1498
- y: e,
1499
- x: r,
1500
- height: c,
1501
- width: a,
1502
- stroke: "none",
1503
- fill: t[u],
1504
- fillOpacity: n,
1505
- className: "recharts-cartesian-grid-bg"
1506
- });
1507
- });
1508
- return /* @__PURE__ */ E.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
1509
- }
1510
- function wn(e) {
1511
- var t = e.vertical, n = t === void 0 ? !0 : t, r = e.verticalFill, i = e.fillOpacity, a = e.x, o = e.y, s = e.width, c = e.height, l = e.verticalPoints;
1512
- if (!n || !r || !r.length) return null;
1513
- var u = l.map(function(e) {
1514
- return Math.round(e + a - a);
1515
- }).sort(function(e, t) {
1516
- return e - t;
1517
- });
1518
- a !== u[0] && u.unshift(0);
1519
- var d = u.map(function(e, t) {
1520
- var n = u[t + 1] ? u[t + 1] - e : a + s - e;
1521
- if (n <= 0) return null;
1522
- var l = t % r.length;
1523
- return /* @__PURE__ */ E.createElement("rect", {
1524
- key: `react-${t}`,
1525
- x: e,
1526
- y: o,
1527
- width: n,
1528
- height: c,
1529
- stroke: "none",
1530
- fill: r[l],
1531
- fillOpacity: i,
1532
- className: "recharts-cartesian-grid-bg"
1533
- });
1534
- });
1535
- return /* @__PURE__ */ E.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, d);
1536
- }
1537
- var Tn = function(e, t) {
1538
- var n = e.xAxis, r = e.width, i = e.height, a = e.offset;
1539
- return s(ge(Y(Y(Y({}, me.defaultProps), n), {}, {
1540
- ticks: be(n, !0),
1541
- viewBox: {
1542
- x: 0,
1543
- y: 0,
1544
- width: r,
1545
- height: i
1546
- }
1547
- })), a.left, a.left + a.width, t);
1548
- }, En = function(e, t) {
1549
- var n = e.yAxis, r = e.width, i = e.height, a = e.offset;
1550
- return s(ge(Y(Y(Y({}, me.defaultProps), n), {}, {
1551
- ticks: be(n, !0),
1552
- viewBox: {
1553
- x: 0,
1554
- y: 0,
1555
- width: r,
1556
- height: i
1557
- }
1558
- })), a.top, a.top + a.height, t);
1559
- }, Z = {
1560
- horizontal: !0,
1561
- vertical: !0,
1562
- horizontalPoints: [],
1563
- verticalPoints: [],
1564
- stroke: "#ccc",
1565
- fill: "none",
1566
- verticalFill: [],
1567
- horizontalFill: []
1568
- };
1569
- function Dn(e) {
1570
- var t = ve(), n = Se(), r = _e(), i = Y(Y({}, e), {}, {
1571
- stroke: e.stroke ?? Z.stroke,
1572
- fill: e.fill ?? Z.fill,
1573
- horizontal: e.horizontal ?? Z.horizontal,
1574
- horizontalFill: e.horizontalFill ?? Z.horizontalFill,
1575
- vertical: e.vertical ?? Z.vertical,
1576
- verticalFill: e.verticalFill ?? Z.verticalFill,
1577
- x: S(e.x) ? e.x : r.left,
1578
- y: S(e.y) ? e.y : r.top,
1579
- width: S(e.width) ? e.width : r.width,
1580
- height: S(e.height) ? e.height : r.height
1581
- }), a = i.x, o = i.y, s = i.width, c = i.height, l = i.syncWithTicks, u = i.horizontalValues, d = i.verticalValues, f = Te(), p = ue();
1582
- if (!S(s) || s <= 0 || !S(c) || c <= 0 || !S(a) || a !== +a || !S(o) || o !== +o) return null;
1583
- var m = i.verticalCoordinatesGenerator || Tn, h = i.horizontalCoordinatesGenerator || En, g = i.horizontalPoints, _ = i.verticalPoints;
1584
- if ((!g || !g.length) && (0, N.default)(h)) {
1585
- var v = u && u.length, y = h({
1586
- yAxis: p ? Y(Y({}, p), {}, { ticks: v ? u : p.ticks }) : void 0,
1587
- width: t,
1588
- height: n,
1589
- offset: r
1590
- }, v ? !0 : l);
1591
- se(Array.isArray(y), `horizontalCoordinatesGenerator should return Array but instead it returned [${J(y)}]`), Array.isArray(y) && (g = y);
1592
- }
1593
- if ((!_ || !_.length) && (0, N.default)(m)) {
1594
- var ee = d && d.length, b = m({
1595
- xAxis: f ? Y(Y({}, f), {}, { ticks: ee ? d : f.ticks }) : void 0,
1596
- width: t,
1597
- height: n,
1598
- offset: r
1599
- }, ee ? !0 : l);
1600
- se(Array.isArray(b), `verticalCoordinatesGenerator should return Array but instead it returned [${J(b)}]`), Array.isArray(b) && (_ = b);
1601
- }
1602
- return /* @__PURE__ */ E.createElement("g", { className: "recharts-cartesian-grid" }, /* @__PURE__ */ E.createElement(yn, {
1603
- fill: i.fill,
1604
- fillOpacity: i.fillOpacity,
1605
- x: i.x,
1606
- y: i.y,
1607
- width: i.width,
1608
- height: i.height,
1609
- ry: i.ry
1610
- }), /* @__PURE__ */ E.createElement(xn, X({}, i, {
1611
- offset: r,
1612
- horizontalPoints: g,
1613
- xAxis: f,
1614
- yAxis: p
1615
- })), /* @__PURE__ */ E.createElement(Sn, X({}, i, {
1616
- offset: r,
1617
- verticalPoints: _,
1618
- xAxis: f,
1619
- yAxis: p
1620
- })), /* @__PURE__ */ E.createElement(Cn, X({}, i, { horizontalPoints: g })), /* @__PURE__ */ E.createElement(wn, X({}, i, { verticalPoints: _ })));
1621
- }
1622
- Dn.displayName = "CartesianGrid";
1623
- //#endregion
1624
- //#region node_modules/recharts/es6/chart/BarChart.js
1625
- var On = we({
1626
- chartName: "BarChart",
1627
- GraphicalChild: Ne,
1628
- defaultTooltipEventType: "axis",
1629
- validateTooltipEventTypes: ["axis", "item"],
1630
- axisComponents: [{
1631
- axisType: "xAxis",
1632
- AxisComp: pe
1633
- }, {
1634
- axisType: "yAxis",
1635
- AxisComp: T
1636
- }],
1637
- formatAxisMap: Ae
1638
- }), kn = we({
1639
- chartName: "PieChart",
1640
- GraphicalChild: q,
1641
- validateTooltipEventTypes: ["item"],
1642
- defaultTooltipEventType: "item",
1643
- legendContent: "children",
1644
- axisComponents: [{
1645
- axisType: "angleAxis",
1646
- AxisComp: qt
1647
- }, {
1648
- axisType: "radiusAxis",
1649
- AxisComp: At
1650
- }],
1651
- formatAxisMap: d,
1652
- defaultProps: {
1653
- layout: "centric",
1654
- startAngle: 0,
1655
- endAngle: 360,
1656
- cx: "50%",
1657
- cy: "50%",
1658
- innerRadius: 0,
1659
- outerRadius: "80%"
1660
- }
1661
- });
1662
- //#endregion
1663
- //#region src/movethewheels/components/charts/ChartShell.tsx
1664
- function Q({ message: e = "No data yet", height: t, className: n }) {
1665
- return /* @__PURE__ */ j("div", {
1666
- className: i("flex items-center justify-center rounded-2xl border border-dashed border-border-seam bg-bg-sunken/40 text-sm text-text-secondary", n),
1667
- style: {
1668
- height: t ?? "100%",
1669
- minHeight: 120
1670
- },
1671
- children: e
1672
- });
1673
- }
1674
- function $({ active: e, payload: t, label: n, formatter: r }) {
1675
- return !e || !t || t.length === 0 ? null : /* @__PURE__ */ M("div", {
1676
- className: "rounded-xl border border-border-seam bg-bg-surface/95 px-3 py-2 shadow-elevation-2 backdrop-blur-sm",
1677
- children: [n != null && n !== "" && /* @__PURE__ */ j("p", {
1678
- className: "mb-1 text-xs font-medium text-text-secondary",
1679
- children: n
1680
- }), /* @__PURE__ */ j("div", {
1681
- className: "space-y-1",
1682
- children: t.map((e, t) => /* @__PURE__ */ M("div", {
1683
- className: "flex items-center gap-2 text-xs",
1684
- children: [
1685
- /* @__PURE__ */ j("span", {
1686
- "aria-hidden": "true",
1687
- className: "h-2 w-2 shrink-0 rounded-full",
1688
- style: { background: e.color ?? w.brandPrimary }
1689
- }),
1690
- /* @__PURE__ */ j("span", {
1691
- className: "text-text-secondary",
1692
- children: e.name
1693
- }),
1694
- /* @__PURE__ */ j("span", {
1695
- className: "ml-auto font-semibold tabular-nums text-text-primary",
1696
- children: r && e.value != null ? r(e.value, String(e.name ?? "")) : e.value
1697
- })
1698
- ]
1699
- }, t))
1700
- })]
1701
- });
1702
- }
1703
- //#endregion
1704
- //#region src/movethewheels/components/charts/TrendChart.tsx
1705
- function An({ data: e, series: t, xKey: n, variant: r = "area", height: i = 300, className: a, showLegend: o = !0, showGrid: s = !0, emptyMessage: l = "No trend data yet", valueFormatter: u }) {
1706
- let d = Ie().replace(/:/g, "");
1707
- if (!e || e.length === 0 || t.length === 0) return /* @__PURE__ */ j(Q, {
1708
- message: l,
1709
- height: i,
1710
- className: a
1711
- });
1712
- let f = {
1713
- fill: w.axis,
1714
- fontSize: 12
1715
- }, p = (e, t) => e.color ?? De(t);
1716
- return /* @__PURE__ */ j("div", {
1717
- className: a,
1718
- style: {
1719
- width: "100%",
1720
- height: i
1721
- },
1722
- children: /* @__PURE__ */ j(Pe, {
1723
- width: "100%",
1724
- height: "100%",
1725
- children: r === "area" ? /* @__PURE__ */ M(ye, {
1726
- data: e,
1727
- margin: {
1728
- top: 8,
1729
- right: 12,
1730
- bottom: 4,
1731
- left: -8
1732
- },
1733
- children: [
1734
- /* @__PURE__ */ j("defs", { children: t.map((e, t) => /* @__PURE__ */ M("linearGradient", {
1735
- id: `${d}-${e.dataKey}`,
1736
- x1: "0",
1737
- y1: "0",
1738
- x2: "0",
1739
- y2: "1",
1740
- children: [/* @__PURE__ */ j("stop", {
1741
- offset: "0%",
1742
- stopColor: p(e, t),
1743
- stopOpacity: .28
1744
- }), /* @__PURE__ */ j("stop", {
1745
- offset: "100%",
1746
- stopColor: p(e, t),
1747
- stopOpacity: .02
1748
- })]
1749
- }, e.dataKey)) }),
1750
- s && /* @__PURE__ */ j(Dn, {
1751
- strokeDasharray: "3 3",
1752
- stroke: w.grid,
1753
- vertical: !1
1754
- }),
1755
- /* @__PURE__ */ j(pe, {
1756
- dataKey: n,
1757
- tick: f,
1758
- tickLine: !1,
1759
- axisLine: { stroke: w.grid },
1760
- minTickGap: 24
1761
- }),
1762
- /* @__PURE__ */ j(T, {
1763
- tick: f,
1764
- tickLine: !1,
1765
- axisLine: !1,
1766
- width: 44,
1767
- tickFormatter: u ? (e) => u(e, "") : void 0
1768
- }),
1769
- /* @__PURE__ */ j(c, {
1770
- cursor: {
1771
- stroke: w.axis,
1772
- strokeOpacity: .3
1773
- },
1774
- content: /* @__PURE__ */ j($, { formatter: u })
1775
- }),
1776
- o && /* @__PURE__ */ j(m, {
1777
- iconType: "circle",
1778
- wrapperStyle: {
1779
- fontSize: 12,
1780
- color: w.textSecondary
1781
- }
1782
- }),
1783
- t.map((e, t) => /* @__PURE__ */ j(xe, {
1784
- type: "monotone",
1785
- dataKey: e.dataKey,
1786
- name: e.name,
1787
- stroke: p(e, t),
1788
- strokeWidth: 2.5,
1789
- fill: `url(#${d}-${e.dataKey})`,
1790
- isAnimationActive: !1,
1791
- activeDot: {
1792
- r: 4,
1793
- strokeWidth: 0
1794
- }
1795
- }, e.dataKey))
1796
- ]
1797
- }) : /* @__PURE__ */ M(de, {
1798
- data: e,
1799
- margin: {
1800
- top: 8,
1801
- right: 12,
1802
- bottom: 4,
1803
- left: -8
1804
- },
1805
- children: [
1806
- s && /* @__PURE__ */ j(Dn, {
1807
- strokeDasharray: "3 3",
1808
- stroke: w.grid,
1809
- vertical: !1
1810
- }),
1811
- /* @__PURE__ */ j(pe, {
1812
- dataKey: n,
1813
- tick: f,
1814
- tickLine: !1,
1815
- axisLine: { stroke: w.grid },
1816
- minTickGap: 24
1817
- }),
1818
- /* @__PURE__ */ j(T, {
1819
- tick: f,
1820
- tickLine: !1,
1821
- axisLine: !1,
1822
- width: 44,
1823
- tickFormatter: u ? (e) => u(e, "") : void 0
1824
- }),
1825
- /* @__PURE__ */ j(c, {
1826
- cursor: {
1827
- stroke: w.axis,
1828
- strokeOpacity: .3
1829
- },
1830
- content: /* @__PURE__ */ j($, { formatter: u })
1831
- }),
1832
- o && /* @__PURE__ */ j(m, {
1833
- iconType: "circle",
1834
- wrapperStyle: {
1835
- fontSize: 12,
1836
- color: w.textSecondary
1837
- }
1838
- }),
1839
- t.map((e, t) => /* @__PURE__ */ j(ke, {
1840
- type: "monotone",
1841
- dataKey: e.dataKey,
1842
- name: e.name,
1843
- stroke: p(e, t),
1844
- strokeWidth: 2.5,
1845
- dot: !1,
1846
- isAnimationActive: !1,
1847
- activeDot: {
1848
- r: 4,
1849
- strokeWidth: 0
1850
- }
1851
- }, e.dataKey))
1852
- ]
1853
- })
1854
- })
1855
- });
1856
- }
1857
- //#endregion
1858
- //#region src/movethewheels/components/charts/VolumeBar.tsx
1859
- function jn({ data: e, series: t, xKey: n, height: r = 280, className: i, showLegend: a = !0, stacked: o = !1, emptyMessage: s = "No volume data yet", valueFormatter: l }) {
1860
- if (!e || e.length === 0 || t.length === 0) return /* @__PURE__ */ j(Q, {
1861
- message: s,
1862
- height: r,
1863
- className: i
1864
- });
1865
- let u = {
1866
- fill: w.axis,
1867
- fontSize: 12
1868
- };
1869
- return /* @__PURE__ */ j("div", {
1870
- className: i,
1871
- style: {
1872
- width: "100%",
1873
- height: r
1874
- },
1875
- children: /* @__PURE__ */ j(Pe, {
1876
- width: "100%",
1877
- height: "100%",
1878
- children: /* @__PURE__ */ M(On, {
1879
- data: e,
1880
- margin: {
1881
- top: 8,
1882
- right: 12,
1883
- bottom: 4,
1884
- left: -8
1885
- },
1886
- barGap: 4,
1887
- children: [
1888
- /* @__PURE__ */ j(Dn, {
1889
- strokeDasharray: "3 3",
1890
- stroke: w.grid,
1891
- vertical: !1
1892
- }),
1893
- /* @__PURE__ */ j(pe, {
1894
- dataKey: n,
1895
- tick: u,
1896
- tickLine: !1,
1897
- axisLine: { stroke: w.grid }
1898
- }),
1899
- /* @__PURE__ */ j(T, {
1900
- tick: u,
1901
- tickLine: !1,
1902
- axisLine: !1,
1903
- width: 44,
1904
- tickFormatter: l ? (e) => l(e, "") : void 0
1905
- }),
1906
- /* @__PURE__ */ j(c, {
1907
- cursor: {
1908
- fill: w.axis,
1909
- fillOpacity: .08
1910
- },
1911
- content: /* @__PURE__ */ j($, { formatter: l })
1912
- }),
1913
- a && /* @__PURE__ */ j(m, {
1914
- iconType: "circle",
1915
- wrapperStyle: {
1916
- fontSize: 12,
1917
- color: w.textSecondary
1918
- }
1919
- }),
1920
- t.map((e, t) => /* @__PURE__ */ j(Ne, {
1921
- dataKey: e.dataKey,
1922
- name: e.name,
1923
- fill: e.color ?? De(t),
1924
- radius: o ? [
1925
- 0,
1926
- 0,
1927
- 0,
1928
- 0
1929
- ] : [
1930
- 4,
1931
- 4,
1932
- 0,
1933
- 0
1934
- ],
1935
- stackId: o ? "stack" : void 0,
1936
- maxBarSize: 48,
1937
- isAnimationActive: !1
1938
- }, e.dataKey))
1939
- ]
1940
- })
1941
- })
1942
- });
1943
- }
1944
- //#endregion
1945
- //#region src/movethewheels/components/charts/StatusDonut.tsx
1946
- function Mn({ data: e, height: t = 240, className: n, centerLabel: r, centerSubLabel: a, showLegend: o = !0, emptyMessage: s = "No breakdown yet", valueFormatter: l }) {
1947
- let u = (e ?? []).filter((e) => e.value > 0), d = u.reduce((e, t) => e + t.value, 0);
1948
- if (u.length === 0 || d === 0) return /* @__PURE__ */ j(Q, {
1949
- message: s,
1950
- height: t,
1951
- className: n
1952
- });
1953
- let f = (e, t) => e.color ?? De(t);
1954
- return /* @__PURE__ */ M("div", {
1955
- className: i("flex flex-col gap-4 sm:flex-row sm:items-center", n),
1956
- children: [/* @__PURE__ */ M("div", {
1957
- className: "relative mx-auto",
1958
- style: {
1959
- width: t,
1960
- height: t,
1961
- maxWidth: "100%"
1962
- },
1963
- children: [/* @__PURE__ */ j(Pe, {
1964
- width: "100%",
1965
- height: "100%",
1966
- children: /* @__PURE__ */ M(kn, { children: [/* @__PURE__ */ j(q, {
1967
- data: u,
1968
- dataKey: "value",
1969
- nameKey: "name",
1970
- innerRadius: "62%",
1971
- outerRadius: "100%",
1972
- paddingAngle: 2,
1973
- stroke: "none",
1974
- isAnimationActive: !1,
1975
- children: u.map((e, t) => /* @__PURE__ */ j(x, { fill: f(e, t) }, e.name))
1976
- }), /* @__PURE__ */ j(c, { content: /* @__PURE__ */ j($, { formatter: (e) => l ? l(Number(e)) : String(e) }) })] })
1977
- }), r != null && /* @__PURE__ */ M("div", {
1978
- className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center",
1979
- children: [/* @__PURE__ */ j("span", {
1980
- className: "text-2xl font-bold tabular-nums text-text-primary",
1981
- children: r
1982
- }), a && /* @__PURE__ */ j("span", {
1983
- className: "text-xs text-text-secondary",
1984
- children: a
1985
- })]
1986
- })]
1987
- }), o && /* @__PURE__ */ j("ul", {
1988
- className: "flex flex-1 flex-col gap-2",
1989
- children: u.map((e, t) => {
1990
- let n = d > 0 ? Math.round(e.value / d * 100) : 0;
1991
- return /* @__PURE__ */ M("li", {
1992
- className: "flex items-center gap-2 text-sm",
1993
- children: [
1994
- /* @__PURE__ */ j("span", {
1995
- "aria-hidden": "true",
1996
- className: "h-2.5 w-2.5 shrink-0 rounded-full",
1997
- style: { background: f(e, t) }
1998
- }),
1999
- /* @__PURE__ */ j("span", {
2000
- className: "text-text-secondary",
2001
- children: e.name
2002
- }),
2003
- /* @__PURE__ */ j("span", {
2004
- className: "ml-auto font-semibold tabular-nums text-text-primary",
2005
- children: l ? l(e.value) : e.value
2006
- }),
2007
- /* @__PURE__ */ M("span", {
2008
- className: "w-10 text-right text-xs tabular-nums text-text-secondary",
2009
- children: [n, "%"]
2010
- })
2011
- ]
2012
- }, e.name);
2013
- })
2014
- })]
2015
- });
2016
- }
2017
- //#endregion
2018
- export { $ as a, qe as c, Je as d, Ue as f, Q as i, Ge as l, jn as n, Ve as o, An as r, He as s, Mn as t, We as u };