@sheetxl/studio-vanilla 0.1.98

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 (184) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +100 -0
  3. package/build/browser/cjs/1q6_3-jGNZllbF3R.cjs +6 -0
  4. package/build/browser/cjs/5KDindu3wyLVvG7F.cjs +6 -0
  5. package/build/browser/cjs/87m5i_TKPbDn6tke.cjs +30 -0
  6. package/build/browser/cjs/B0L2YQ9agsyHWOu2.cjs +6 -0
  7. package/build/browser/cjs/B3HvYH5kqySWdJ0f.cjs +6 -0
  8. package/build/browser/cjs/B6AOUko0HYRy2MPw.cjs +6 -0
  9. package/build/browser/cjs/BC5MKXBhHGdPeiJ3.cjs +21 -0
  10. package/build/browser/cjs/BG0RxkPyZY6Be7Lk.cjs +6 -0
  11. package/build/browser/cjs/BJsJYwvFiJBFxTov.cjs +6 -0
  12. package/build/browser/cjs/BMVMyi5NiMBuQrl9.cjs +52 -0
  13. package/build/browser/cjs/BS_QXQWoKRl_7MiR.cjs +17 -0
  14. package/build/browser/cjs/BZPhmHWsFBTIA3BQ.cjs +210 -0
  15. package/build/browser/cjs/B_5ro-VEKfZDMSn_.cjs +6 -0
  16. package/build/browser/cjs/B_c3i0fXSlX7dH12.cjs +1521 -0
  17. package/build/browser/cjs/BarieqwSecnaFn0d.cjs +6 -0
  18. package/build/browser/cjs/BfNo_1u55uW2HhAa.cjs +6 -0
  19. package/build/browser/cjs/Bl6FyLoMkFiQqhvc.cjs +7 -0
  20. package/build/browser/cjs/Bsyzteo6tD31A45e.cjs +11 -0
  21. package/build/browser/cjs/Btzizuqo7zQ_grdS.cjs +16 -0
  22. package/build/browser/cjs/BxBOlXY9P3Ymi6oT.cjs +6 -0
  23. package/build/browser/cjs/C0AP85yKTJU5XzPW.cjs +6 -0
  24. package/build/browser/cjs/C0Pjx18ua-OCdtpy.cjs +6 -0
  25. package/build/browser/cjs/CA2wSX6txFrM5nXD.cjs +6 -0
  26. package/build/browser/cjs/CB3jEtNo5ZsjfE5p.cjs +6 -0
  27. package/build/browser/cjs/CDiYZ1cSoLW8U5Mz.cjs +6 -0
  28. package/build/browser/cjs/CHD5c5FdcMm6vLyG.cjs +155 -0
  29. package/build/browser/cjs/COCpf8tSdkj2O19V.cjs +134 -0
  30. package/build/browser/cjs/CTV1KRGhkieiY4Rf.cjs +42 -0
  31. package/build/browser/cjs/CUw8AoM-rVbp1W3s.cjs +6 -0
  32. package/build/browser/cjs/CVTydWBioXRZeoNf.cjs +6 -0
  33. package/build/browser/cjs/C_uXPPlfjY68-QA8.cjs +6 -0
  34. package/build/browser/cjs/CaNR-X0TWW9OF1S0.cjs +33 -0
  35. package/build/browser/cjs/CiySKEsfDr8XnkZh.cjs +6 -0
  36. package/build/browser/cjs/CtBikymnhpcCzP3X.cjs +6 -0
  37. package/build/browser/cjs/CyF7bxA0DO13ETpx.cjs +30 -0
  38. package/build/browser/cjs/D-vkFAlNHXwUvmUT.cjs +16 -0
  39. package/build/browser/cjs/D2OU29-ZPOAWFVJB.cjs +22 -0
  40. package/build/browser/cjs/DFX31uXp449or-Xs.cjs +6 -0
  41. package/build/browser/cjs/DLqNXuHYff_kQuj1.cjs +6 -0
  42. package/build/browser/cjs/DMKZDMHHXLePvLy3.cjs +524 -0
  43. package/build/browser/cjs/DP8biA0GQqyPKLyq.cjs +6 -0
  44. package/build/browser/cjs/DcYrNx0uy99yQNMl.cjs +21 -0
  45. package/build/browser/cjs/Dcyg_YxTfBgi_6cp.cjs +26 -0
  46. package/build/browser/cjs/DeR9YbwO2xDBKVWN.cjs +21 -0
  47. package/build/browser/cjs/DfNbgyjaLMn81dqP.cjs +6 -0
  48. package/build/browser/cjs/DirazCTz5IsFWrUv.cjs +22 -0
  49. package/build/browser/cjs/Dix4vuDuOzj4WGCJ.cjs +19 -0
  50. package/build/browser/cjs/DqbTRjj97q78RuGC.cjs +6 -0
  51. package/build/browser/cjs/Dy28YI90qj65PHFO.cjs +17 -0
  52. package/build/browser/cjs/Nkl33Tt1_oEy9kjk.cjs +6 -0
  53. package/build/browser/cjs/S1S-AvD0w8s-LV8O.cjs +6 -0
  54. package/build/browser/cjs/bnPgbgGBTq7DESzd.cjs +6 -0
  55. package/build/browser/cjs/d9tJGmGw-3KZjpAx.cjs +17 -0
  56. package/build/browser/cjs/dke2gbIUS44QXwEl.cjs +6 -0
  57. package/build/browser/cjs/index.cjs +6 -0
  58. package/build/browser/cjs/mPpQR06-jf99r2jM.cjs +6 -0
  59. package/build/browser/cjs/wq0Sm3fu9rxt43OK.cjs +6 -0
  60. package/build/browser/cjs/xM54FRmGddZFVTTI.cjs +6 -0
  61. package/build/browser/cjs/xgGpGg5b8fu3GAnL.cjs +33 -0
  62. package/build/browser/esm/1Jl9rrRJdbPsUP_1.mjs +13222 -0
  63. package/build/browser/esm/3RX6dP_O-47yXKHQ.mjs +1492 -0
  64. package/build/browser/esm/5F5MTh8R-sIiPq0h.mjs +22 -0
  65. package/build/browser/esm/B3_l6_TLa9ImyRmW.mjs +5572 -0
  66. package/build/browser/esm/B7odLLxNfEmKGWX6.mjs +49 -0
  67. package/build/browser/esm/BAjCWyggrIkCz6wr.mjs +22 -0
  68. package/build/browser/esm/BE4io65W825i_dzC.mjs +58 -0
  69. package/build/browser/esm/BEZ41ST3hkC4W-_9.mjs +22 -0
  70. package/build/browser/esm/BKkD05hqNTBap4Oc.mjs +22 -0
  71. package/build/browser/esm/BOiR2dTlvcgYjz8P.mjs +402 -0
  72. package/build/browser/esm/BOjAZRs_NVerYv4t.mjs +22 -0
  73. package/build/browser/esm/BRkMPyIUXMixnL8d.mjs +22 -0
  74. package/build/browser/esm/BSS_RvWzDRX8_EJd.mjs +1684 -0
  75. package/build/browser/esm/BXC9rQVV2gq5x8br.mjs +22 -0
  76. package/build/browser/esm/BYmMkbrRTsNuR3aY.mjs +1358 -0
  77. package/build/browser/esm/BaSzK17p3_gCvNVV.mjs +24 -0
  78. package/build/browser/esm/BdtlmF31h4Y7RgUj.mjs +22 -0
  79. package/build/browser/esm/Be3zRnYQ13HUcsRW.mjs +150 -0
  80. package/build/browser/esm/BiSk8LRROMF0Bl4-.mjs +92 -0
  81. package/build/browser/esm/BlfHOASL_bJ6Hy0y.mjs +40 -0
  82. package/build/browser/esm/C-jC-wgAoMOxrVvv.mjs +1377 -0
  83. package/build/browser/esm/C0Lw5hMgKbooA6Jl.mjs +22 -0
  84. package/build/browser/esm/C32FpMEFLbDnBtO3.mjs +22 -0
  85. package/build/browser/esm/C9uN8RnLjnGSimTA.mjs +439 -0
  86. package/build/browser/esm/CB0UHheTgg0735hj.mjs +52 -0
  87. package/build/browser/esm/CU55zbw8Xbwap6Tl.mjs +22 -0
  88. package/build/browser/esm/CWRCdxOg103AFis3.mjs +3926 -0
  89. package/build/browser/esm/CpJdzwQYkBw7IPnN.mjs +22 -0
  90. package/build/browser/esm/CprFmxuwGvaUtLG2.mjs +22 -0
  91. package/build/browser/esm/CtZxtE4tRmMGFT5o.mjs +22 -0
  92. package/build/browser/esm/D-Oj36iQScXAKSMA.mjs +53 -0
  93. package/build/browser/esm/D2yyUr4KbJEFsxKC.mjs +21 -0
  94. package/build/browser/esm/D8HF2X8hvAkV29oq.mjs +55 -0
  95. package/build/browser/esm/DCauh523moR7slpq.mjs +22 -0
  96. package/build/browser/esm/DIA-Gy5mdjefjUaA.mjs +22 -0
  97. package/build/browser/esm/DJjdfX9aUyVGMkri.mjs +47 -0
  98. package/build/browser/esm/DMWb8cCaNVRcm-tT.mjs +2352 -0
  99. package/build/browser/esm/DP7HVKT0w_4L2vMQ.mjs +844 -0
  100. package/build/browser/esm/DToiYU1jffn1g7TH.mjs +639 -0
  101. package/build/browser/esm/DgSuz0WKGy36a2cp.mjs +22 -0
  102. package/build/browser/esm/Dgw3FTbNKuo2CIxP.mjs +22 -0
  103. package/build/browser/esm/DnV_Y9xoMPSav0-o.mjs +56 -0
  104. package/build/browser/esm/Do7pHqmnwO45_ymt.mjs +22 -0
  105. package/build/browser/esm/DqvZDTDIyX-qv4r9.mjs +29 -0
  106. package/build/browser/esm/Ds8V__cRAClpmjZn.mjs +1714 -0
  107. package/build/browser/esm/DtQdtXJDZgNEIz9d.mjs +440 -0
  108. package/build/browser/esm/DtpBQqwK7XXBMTB-.mjs +1598 -0
  109. package/build/browser/esm/DuzJ1k0LbZ29l8oN.mjs +945 -0
  110. package/build/browser/esm/Dxl4WJXcEhDAw_yE.mjs +42 -0
  111. package/build/browser/esm/LblYfFi1ns9H1ueN.mjs +28 -0
  112. package/build/browser/esm/NBkvFJzfLU32Pkup.mjs +496 -0
  113. package/build/browser/esm/SrBQAOpMKiDW0mGB.mjs +22 -0
  114. package/build/browser/esm/VLa1cYMb7h6UD253.mjs +64 -0
  115. package/build/browser/esm/YOEDF-U1QTzbXeMV.mjs +3826 -0
  116. package/build/browser/esm/a3tuiJ83MwzLMWaL.mjs +22 -0
  117. package/build/browser/esm/ai2Jw3PRL29E1T8h.mjs +22 -0
  118. package/build/browser/esm/ajBoEmoL9hCBQYYm.mjs +2175 -0
  119. package/build/browser/esm/index.mjs +13 -0
  120. package/build/browser/esm/k9kWmEk0ZT8y9Gii.mjs +48740 -0
  121. package/build/cdn/assets/1Jl9rrRJdbPsUP_1.js +13222 -0
  122. package/build/cdn/assets/4u46flV9M6Bwb7d3.js +29 -0
  123. package/build/cdn/assets/5F5MTh8R-sIiPq0h.js +22 -0
  124. package/build/cdn/assets/B3oMCEEls1lRVrGd.js +5572 -0
  125. package/build/cdn/assets/B4QYfmNd300iFLAx.js +945 -0
  126. package/build/cdn/assets/BAjCWyggrIkCz6wr.js +22 -0
  127. package/build/cdn/assets/BEZ41ST3hkC4W-_9.js +22 -0
  128. package/build/cdn/assets/BJIsFTUdHtUKsFJs.js +28 -0
  129. package/build/cdn/assets/BKkD05hqNTBap4Oc.js +22 -0
  130. package/build/cdn/assets/BOiR2dTlvcgYjz8P.js +402 -0
  131. package/build/cdn/assets/BOjAZRs_NVerYv4t.js +22 -0
  132. package/build/cdn/assets/BPFW3UexkNNh1lLK.js +2352 -0
  133. package/build/cdn/assets/BRkMPyIUXMixnL8d.js +22 -0
  134. package/build/cdn/assets/BSS_RvWzDRX8_EJd.js +1684 -0
  135. package/build/cdn/assets/BXC9rQVV2gq5x8br.js +22 -0
  136. package/build/cdn/assets/BY2sO3ExW1ShzKnX.js +1714 -0
  137. package/build/cdn/assets/BYmMkbrRTsNuR3aY.js +1358 -0
  138. package/build/cdn/assets/BaSzK17p3_gCvNVV.js +24 -0
  139. package/build/cdn/assets/BbpmcI-KEp3PqrdL.js +496 -0
  140. package/build/cdn/assets/BdtlmF31h4Y7RgUj.js +22 -0
  141. package/build/cdn/assets/BjgtkLR9U00HgSRn.js +58 -0
  142. package/build/cdn/assets/BlfHOASL_bJ6Hy0y.js +40 -0
  143. package/build/cdn/assets/C-jC-wgAoMOxrVvv.js +1377 -0
  144. package/build/cdn/assets/C0Lw5hMgKbooA6Jl.js +22 -0
  145. package/build/cdn/assets/C32FpMEFLbDnBtO3.js +22 -0
  146. package/build/cdn/assets/C7CDwp-nhN2WFzUs.js +844 -0
  147. package/build/cdn/assets/C9uN8RnLjnGSimTA.js +439 -0
  148. package/build/cdn/assets/CEq_C1Sim0pQ6fj0.js +56 -0
  149. package/build/cdn/assets/CLdcRW7BQK3JCguC.js +48587 -0
  150. package/build/cdn/assets/CU55zbw8Xbwap6Tl.js +22 -0
  151. package/build/cdn/assets/C_L_pvQemfhI00iS.js +150 -0
  152. package/build/cdn/assets/CkhSGQneqlTRflfQ.js +47 -0
  153. package/build/cdn/assets/CpJdzwQYkBw7IPnN.js +22 -0
  154. package/build/cdn/assets/CprFmxuwGvaUtLG2.js +22 -0
  155. package/build/cdn/assets/CtZxtE4tRmMGFT5o.js +22 -0
  156. package/build/cdn/assets/CvbyGDitUPabmYBl.js +64 -0
  157. package/build/cdn/assets/D06aHumWZLILF489.js +3926 -0
  158. package/build/cdn/assets/D2pceTwrS_dagByu.js +21 -0
  159. package/build/cdn/assets/D4ZBjoUG2QO1RO3t.js +1492 -0
  160. package/build/cdn/assets/DARyg_kqL8Eu81Fa.js +2175 -0
  161. package/build/cdn/assets/DCauh523moR7slpq.js +22 -0
  162. package/build/cdn/assets/DIA-Gy5mdjefjUaA.js +22 -0
  163. package/build/cdn/assets/DLHK1pMyNN3B2g-j.js +52 -0
  164. package/build/cdn/assets/DMoEzt3UKZedfext.js +1598 -0
  165. package/build/cdn/assets/DMwOymY267-LxmJ_.js +49 -0
  166. package/build/cdn/assets/DToiYU1jffn1g7TH.js +639 -0
  167. package/build/cdn/assets/DUUO52IRQCve_iCM.js +440 -0
  168. package/build/cdn/assets/DgSuz0WKGy36a2cp.js +22 -0
  169. package/build/cdn/assets/Dgw3FTbNKuo2CIxP.js +22 -0
  170. package/build/cdn/assets/Do7pHqmnwO45_ymt.js +22 -0
  171. package/build/cdn/assets/Dxl4WJXcEhDAw_yE.js +42 -0
  172. package/build/cdn/assets/QXzPuadwi3BBJC2-.js +53 -0
  173. package/build/cdn/assets/SrBQAOpMKiDW0mGB.js +22 -0
  174. package/build/cdn/assets/W3SqjN4yIzwYTvvj.js +55 -0
  175. package/build/cdn/assets/YOEDF-U1QTzbXeMV.js +3826 -0
  176. package/build/cdn/assets/a3tuiJ83MwzLMWaL.js +22 -0
  177. package/build/cdn/assets/ai2Jw3PRL29E1T8h.js +22 -0
  178. package/build/cdn/assets/fWcbv7BXhriCYeod.js +92 -0
  179. package/build/cdn/index.js +171 -0
  180. package/build/cdn/loader.js +6 -0
  181. package/build/licenses/dependencies.txt +1 -0
  182. package/build/package.json +61 -0
  183. package/build/types/index.d.ts +151 -0
  184. package/package.json +92 -0
@@ -0,0 +1,2175 @@
1
+ import { jsx as E, jsxs as Ae } from "react/jsx-runtime";
2
+ import { E as Qt, D as eo, G as to, Z as oo, _ as no, bs as J, a0 as ro, a2 as io, bt as lo, bu as so, f as Y, b9 as ao, ba as co, b3 as St, y as uo, B as de, T as ho, be as fo, at as po, av as mo, b6 as ue, b1 as go, b2 as vo, as as _o, bv as So, bw as yo, bx as Ee, by as wo, bz as Co, bA as xo, ai as _e, bB as bo, bC as Ro, bD as He, bE as To, bF as U, bG as zo } from "./k9kWmEk0ZT8y9Gii.mjs";
3
+ import * as x from "react";
4
+ import yt, { useState as he, useMemo as Io, useEffect as We, cloneElement as Po } from "react";
5
+ import { f as N } from "./DuzJ1k0LbZ29l8oN.mjs";
6
+ /**
7
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
8
+ *
9
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
+ * License: The license can be found at https://www.sheetxl.com/license.
11
+ */
12
+ const ko = x.createContext(), Oo = x.createContext();
13
+ function Mo(o) {
14
+ return eo("MuiTableCell", o);
15
+ }
16
+ const Lo = Qt("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), Go = oo("td", { name: "MuiTableCell", slot: "Root", overridesResolver: (o, e) => {
17
+ const { ownerState: t } = o;
18
+ return [e.root, e[t.variant], e[`size${J(t.size)}`], t.padding !== "normal" && e[`padding${J(t.padding)}`], t.align !== "inherit" && e[`align${J(t.align)}`], t.stickyHeader && e.stickyHeader];
19
+ } })(io(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
20
+ ${o.palette.mode === "light" ? lo(Y(o.palette.divider, 1), 0.88) : so(Y(o.palette.divider, 1), 0.68)}`, textAlign: "left", padding: 16, variants: [{ props: { variant: "head" }, style: { color: (o.vars || o).palette.text.primary, lineHeight: o.typography.pxToRem(24), fontWeight: o.typography.fontWeightMedium } }, { props: { variant: "body" }, style: { color: (o.vars || o).palette.text.primary } }, { props: { variant: "footer" }, style: { color: (o.vars || o).palette.text.secondary, lineHeight: o.typography.pxToRem(21), fontSize: o.typography.pxToRem(12) } }, { props: { size: "small" }, style: { padding: "6px 16px", [`&.${Lo.paddingCheckbox}`]: { width: 24, padding: "0 12px 0 16px", "& > *": { padding: 0 } } } }, { props: { padding: "checkbox" }, style: { width: 48, padding: "0 0 0 4px" } }, { props: { padding: "none" }, style: { padding: 0 } }, { props: { align: "left" }, style: { textAlign: "left" } }, { props: { align: "center" }, style: { textAlign: "center" } }, { props: { align: "right" }, style: { textAlign: "right", flexDirection: "row-reverse" } }, { props: { align: "justify" }, style: { textAlign: "justify" } }, { props: ({ ownerState: e }) => e.stickyHeader, style: { position: "sticky", top: 0, zIndex: 2, backgroundColor: (o.vars || o).palette.background.default } }] }))), De = x.forwardRef(function(o, e) {
21
+ const t = to({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: i, padding: l, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = x.useContext(ko), u = x.useContext(Oo), _ = u && u.variant === "head";
22
+ let m;
23
+ m = i || (_ ? "th" : "td");
24
+ let g = a;
25
+ m === "td" ? g = void 0 : !g && _ && (g = "col");
26
+ const S = d || u && u.variant, y = { ...t, align: n, component: m, padding: l || (f && f.padding ? f.padding : "normal"), size: s || (f && f.size ? f.size : "medium"), sortDirection: c, stickyHeader: S === "head" && f && f.stickyHeader, variant: S }, v = ((w) => {
27
+ const { classes: b, variant: R, align: T, padding: I, size: k, stickyHeader: z } = w, P = { root: ["root", R, z && "stickyHeader", T !== "inherit" && `align${J(T)}`, I !== "normal" && `padding${J(I)}`, `size${J(k)}`] };
28
+ return ro(P, Mo, b);
29
+ })(y);
30
+ let C = null;
31
+ return c && (C = c === "asc" ? "ascending" : "descending"), E(Go, { as: m, ref: e, className: no(v.root, r), "aria-sort": C, scope: g, ownerState: y, ...h });
32
+ }), Ao = So();
33
+ function Se(o) {
34
+ return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
35
+ }
36
+ function Eo(o) {
37
+ return o ? (e, t) => t[o] : null;
38
+ }
39
+ function me(o, e) {
40
+ const t = typeof e == "function" ? e(o) : e;
41
+ if (Array.isArray(t)) return t.flatMap((n) => me(o, n));
42
+ if (Array.isArray(t?.variants)) {
43
+ let n;
44
+ if (t.isProcessed) n = t.style;
45
+ else {
46
+ const { variants: r, ...i } = t;
47
+ n = i;
48
+ }
49
+ return wt(o, t.variants, [n]);
50
+ }
51
+ return t?.isProcessed ? t.style : t;
52
+ }
53
+ function wt(o, e, t = []) {
54
+ let n;
55
+ e: for (let r = 0; r < e.length; r += 1) {
56
+ const i = e[r];
57
+ if (typeof i.props == "function") {
58
+ if (n ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, !i.props(n)) continue;
59
+ } else for (const l in i.props) if (o[l] !== i.props[l] && o.ownerState?.[l] !== i.props[l]) continue e;
60
+ typeof i.style == "function" ? (n ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(i.style(n))) : t.push(i.style);
61
+ }
62
+ return t;
63
+ }
64
+ function Ho(o) {
65
+ return o && o.charAt(0).toLowerCase() + o.slice(1);
66
+ }
67
+ const Wo = function(o = {}) {
68
+ const { themeId: e, defaultTheme: t = Ao, rootShouldForwardProp: n = Se, slotShouldForwardProp: r = Se } = o;
69
+ function i(l) {
70
+ var a, s, c;
71
+ s = e, c = t, (a = l).theme = function(d) {
72
+ for (const h in d) return !1;
73
+ return !0;
74
+ }(a.theme) ? c : a.theme[s] || a.theme;
75
+ }
76
+ return (l, a = {}) => {
77
+ yo(l, (w) => w.filter((b) => b !== Ee));
78
+ const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Eo(Ho(c)), ...u } = a, _ = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1, m = h || !1;
79
+ let g = Se;
80
+ var S;
81
+ c === "Root" || c === "root" ? g = n : c ? g = r : typeof (S = l) == "string" && S.charCodeAt(0) > 96 && (g = void 0);
82
+ const y = wo(l, { shouldForwardProp: g, label: void 0, ...u }), v = (w) => {
83
+ if (w.__emotion_real === w) return w;
84
+ if (typeof w == "function") return function(b) {
85
+ return me(b, w);
86
+ };
87
+ if (Ro(w)) {
88
+ const b = function(R) {
89
+ const { variants: T, ...I } = R, k = { variants: T, style: He(I), isProcessed: !0 };
90
+ return k.style === I || T && T.forEach((z) => {
91
+ typeof z.style != "function" && (z.style = He(z.style));
92
+ }), k;
93
+ }(w);
94
+ return b.variants ? function(R) {
95
+ return me(R, b);
96
+ } : b.style;
97
+ }
98
+ return w;
99
+ }, C = (...w) => {
100
+ const b = [], R = w.map(v), T = [];
101
+ if (b.push(i), s && f && T.push(function(z) {
102
+ const P = z.theme, M = P.components?.[s]?.styleOverrides;
103
+ if (!M) return null;
104
+ const H = {};
105
+ for (const K in M) H[K] = me(z, M[K]);
106
+ return f(z, H);
107
+ }), s && !_ && T.push(function(z) {
108
+ const P = z.theme, M = P?.components?.[s]?.variants;
109
+ return M ? wt(z, M) : null;
110
+ }), m || T.push(Ee), Array.isArray(R[0])) {
111
+ const z = R.shift(), P = new Array(b.length).fill(""), M = new Array(T.length).fill("");
112
+ let H;
113
+ H = [...P, ...z, ...M], H.raw = [...P, ...z.raw, ...M], b.unshift(H);
114
+ }
115
+ const I = [...b, ...R, ...T], k = y(...I);
116
+ return l.muiName && (k.muiName = l.muiName), k;
117
+ };
118
+ return y.withConfig && (C.withConfig = y.withConfig), C;
119
+ };
120
+ }({ themeId: Co, defaultTheme: xo, rootShouldForwardProp: (o) => /* @__PURE__ */ function(e) {
121
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
122
+ }(o) && o !== "classes" });
123
+ function G(o, e) {
124
+ if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
125
+ }
126
+ function Z(o) {
127
+ return (Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
128
+ return typeof e;
129
+ } : function(e) {
130
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
131
+ })(o);
132
+ }
133
+ function Ct(o) {
134
+ var e = function(t) {
135
+ if (Z(t) != "object" || !t) return t;
136
+ var n = t[Symbol.toPrimitive];
137
+ if (n !== void 0) {
138
+ var r = n.call(t, "string");
139
+ if (Z(r) != "object") return r;
140
+ throw new TypeError("@@toPrimitive must return a primitive value.");
141
+ }
142
+ return String(t);
143
+ }(o);
144
+ return Z(e) == "symbol" ? e : e + "";
145
+ }
146
+ function je(o, e) {
147
+ for (var t = 0; t < e.length; t++) {
148
+ var n = e[t];
149
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, Ct(n.key), n);
150
+ }
151
+ }
152
+ function A(o, e, t) {
153
+ return e && je(o.prototype, e), t && je(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
154
+ }
155
+ function W(o, e) {
156
+ if (e && (Z(e) == "object" || typeof e == "function")) return e;
157
+ if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
158
+ return function(t) {
159
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
160
+ return t;
161
+ }(o);
162
+ }
163
+ function O(o) {
164
+ return (O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
165
+ return e.__proto__ || Object.getPrototypeOf(e);
166
+ })(o);
167
+ }
168
+ function D(o, e) {
169
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
170
+ o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && To(o, e);
171
+ }
172
+ function p(o, e, t) {
173
+ return (e = Ct(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
174
+ }
175
+ function xt() {
176
+ var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
177
+ o != null && this.setState(o);
178
+ }
179
+ function bt(o) {
180
+ this.setState(function(e) {
181
+ return this.constructor.getDerivedStateFromProps(o, e) ?? null;
182
+ }.bind(this));
183
+ }
184
+ function Rt(o, e) {
185
+ try {
186
+ var t = this.props, n = this.state;
187
+ this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
188
+ } finally {
189
+ this.props = t, this.state = n;
190
+ }
191
+ }
192
+ function ce(o) {
193
+ var e = o.prototype;
194
+ if (!e || !e.isReactComponent) throw new Error("Can only polyfill class components");
195
+ if (typeof o.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function") return o;
196
+ var t = null, n = null, r = null;
197
+ if (typeof e.componentWillMount == "function" ? t = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (t = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? r = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (r = "UNSAFE_componentWillUpdate"), t !== null || n !== null || r !== null) {
198
+ var i = o.displayName || o.name, l = typeof o.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
199
+ throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
200
+
201
+ ` + i + " uses " + l + " but also contains the following legacy lifecycles:" + (t !== null ? `
202
+ ` + t : "") + (n !== null ? `
203
+ ` + n : "") + (r !== null ? `
204
+ ` + r : "") + `
205
+
206
+ The above lifecycles should be removed. Learn more about this warning here:
207
+ https://fb.me/react-async-component-lifecycle-hooks`);
208
+ }
209
+ if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = xt, e.componentWillReceiveProps = bt), typeof e.getSnapshotBeforeUpdate == "function") {
210
+ if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
211
+ e.componentWillUpdate = Rt;
212
+ var a = e.componentDidUpdate;
213
+ e.componentDidUpdate = function(s, c, d) {
214
+ var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
215
+ a.call(this, s, c, h);
216
+ };
217
+ }
218
+ return o;
219
+ }
220
+ function Fe(o, e) {
221
+ var t = Object.keys(o);
222
+ if (Object.getOwnPropertySymbols) {
223
+ var n = Object.getOwnPropertySymbols(o);
224
+ e && (n = n.filter(function(r) {
225
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
226
+ })), t.push.apply(t, n);
227
+ }
228
+ return t;
229
+ }
230
+ function Ne(o) {
231
+ for (var e = 1; e < arguments.length; e++) {
232
+ var t = arguments[e] != null ? arguments[e] : {};
233
+ e % 2 ? Fe(Object(t), !0).forEach(function(n) {
234
+ p(o, n, t[n]);
235
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Fe(Object(t)).forEach(function(n) {
236
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
237
+ });
238
+ }
239
+ return o;
240
+ }
241
+ function Tt() {
242
+ try {
243
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
244
+ }));
245
+ } catch {
246
+ }
247
+ return (Tt = function() {
248
+ return !!o;
249
+ })();
250
+ }
251
+ xt.__suppressDeprecationWarning = !0, bt.__suppressDeprecationWarning = !0, Rt.__suppressDeprecationWarning = !0;
252
+ var Be = function() {
253
+ function o() {
254
+ var e, t, n, r;
255
+ G(this, o);
256
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
257
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Tt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { scrollToColumn: 0, scrollToRow: 0, instanceProps: { prevScrollToColumn: 0, prevScrollToRow: 0 } }), p(e, "_columnStartIndex", 0), p(e, "_columnStopIndex", 0), p(e, "_rowStartIndex", 0), p(e, "_rowStopIndex", 0), p(e, "_onKeyDown", function(s) {
258
+ var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
259
+ if (!h) {
260
+ var _ = e._getScrollState(), m = _.scrollToColumn, g = _.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, v = S.scrollToRow;
261
+ switch (s.key) {
262
+ case "ArrowDown":
263
+ v = Math.min(f === "cells" ? v + 1 : e._rowStopIndex + 1, u - 1);
264
+ break;
265
+ case "ArrowLeft":
266
+ y = Math.max(f === "cells" ? y - 1 : e._columnStartIndex - 1, 0);
267
+ break;
268
+ case "ArrowRight":
269
+ y = Math.min(f === "cells" ? y + 1 : e._columnStopIndex + 1, d - 1);
270
+ break;
271
+ case "ArrowUp":
272
+ v = Math.max(f === "cells" ? v - 1 : e._rowStartIndex - 1, 0);
273
+ }
274
+ y === m && v === g || (s.preventDefault(), e._updateScrollState({ scrollToColumn: y, scrollToRow: v }));
275
+ }
276
+ }), p(e, "_onSectionRendered", function(s) {
277
+ var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
278
+ e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = h, e._rowStopIndex = f;
279
+ }), e;
280
+ }
281
+ return D(o, x.PureComponent), A(o, [{ key: "setScrollIndexes", value: function(e) {
282
+ var t = e.scrollToColumn, n = e.scrollToRow;
283
+ this.setState({ scrollToRow: n, scrollToColumn: t });
284
+ } }, { key: "render", value: function() {
285
+ var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), i = r.scrollToColumn, l = r.scrollToRow;
286
+ return x.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: i, scrollToRow: l }));
287
+ } }, { key: "_getScrollState", value: function() {
288
+ return this.props.isControlled ? this.props : this.state;
289
+ } }, { key: "_updateScrollState", value: function(e) {
290
+ var t = e.scrollToColumn, n = e.scrollToRow, r = this.props, i = r.isControlled, l = r.onScrollToChange;
291
+ typeof l == "function" && l({ scrollToColumn: t, scrollToRow: n }), i || this.setState({ scrollToColumn: t, scrollToRow: n });
292
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
293
+ return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Ne(Ne({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
294
+ } }]);
295
+ }();
296
+ function zt(o, e) {
297
+ var t, n, r = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
298
+ if (!r) {
299
+ var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(v) {
300
+ return t.setTimeout(v, 20);
301
+ }, function(v) {
302
+ return n(v);
303
+ }), l = function() {
304
+ var v = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
305
+ return function(C) {
306
+ return v(C);
307
+ };
308
+ }(), a = function(v) {
309
+ var C = v.__resizeTriggers__, w = C.firstElementChild, b = C.lastElementChild, R = w.firstElementChild;
310
+ b.scrollLeft = b.scrollWidth, b.scrollTop = b.scrollHeight, R.style.width = w.offsetWidth + 1 + "px", R.style.height = w.offsetHeight + 1 + "px", w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight;
311
+ }, s = function(v) {
312
+ if (!(v.target.className && typeof v.target.className.indexOf == "function" && v.target.className.indexOf("contract-trigger") < 0 && v.target.className.indexOf("expand-trigger") < 0)) {
313
+ var C = this;
314
+ a(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = i(function() {
315
+ var w;
316
+ ((w = C).offsetWidth != w.__resizeLast__.width || w.offsetHeight != w.__resizeLast__.height) && (C.__resizeLast__.width = C.offsetWidth, C.__resizeLast__.height = C.offsetHeight, C.__resizeListeners__.forEach(function(b) {
317
+ b.call(C, v);
318
+ }));
319
+ });
320
+ }
321
+ }, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), _ = t.document.createElement("fakeelement");
322
+ if (_.style.animationName !== void 0 && (c = !0), c === !1) {
323
+ for (var m = 0; m < f.length; m++) if (_.style[f[m] + "AnimationName"] !== void 0) {
324
+ d = "-" + f[m].toLowerCase() + "-", h = u[m], c = !0;
325
+ break;
326
+ }
327
+ }
328
+ var g = "resizeanim", S = "@" + d + "keyframes " + g + " { from { opacity: 0; } to { opacity: 0; } } ", y = d + "animation: 1ms " + g + "; ";
329
+ }
330
+ return { addResizeListener: function(v, C) {
331
+ if (r) v.attachEvent("onresize", C);
332
+ else {
333
+ if (!v.__resizeTriggers__) {
334
+ var w = v.ownerDocument, b = t.getComputedStyle(v);
335
+ b && b.position == "static" && (v.style.position = "relative"), function(I) {
336
+ if (!I.getElementById("detectElementResize")) {
337
+ var k = (S || "") + ".resize-triggers { " + (y || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', z = I.head || I.getElementsByTagName("head")[0], P = I.createElement("style");
338
+ P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText = k : P.appendChild(I.createTextNode(k)), z.appendChild(P);
339
+ }
340
+ }(w), v.__resizeLast__ = {}, v.__resizeListeners__ = [], (v.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
341
+ var R = w.createElement("div");
342
+ R.className = "expand-trigger", R.appendChild(w.createElement("div"));
343
+ var T = w.createElement("div");
344
+ T.className = "contract-trigger", v.__resizeTriggers__.appendChild(R), v.__resizeTriggers__.appendChild(T), v.appendChild(v.__resizeTriggers__), a(v), v.addEventListener("scroll", s, !0), h && (v.__resizeTriggers__.__animationListener__ = function(I) {
345
+ I.animationName == g && a(v);
346
+ }, v.__resizeTriggers__.addEventListener(h, v.__resizeTriggers__.__animationListener__));
347
+ }
348
+ v.__resizeListeners__.push(C);
349
+ }
350
+ }, removeResizeListener: function(v, C) {
351
+ if (r) v.detachEvent("onresize", C);
352
+ else if (v.__resizeListeners__.splice(v.__resizeListeners__.indexOf(C), 1), !v.__resizeListeners__.length) {
353
+ v.removeEventListener("scroll", s, !0), v.__resizeTriggers__.__animationListener__ && (v.__resizeTriggers__.removeEventListener(h, v.__resizeTriggers__.__animationListener__), v.__resizeTriggers__.__animationListener__ = null);
354
+ try {
355
+ v.__resizeTriggers__ = !v.removeChild(v.__resizeTriggers__);
356
+ } catch {
357
+ }
358
+ }
359
+ } };
360
+ }
361
+ function Ue(o, e) {
362
+ var t = Object.keys(o);
363
+ if (Object.getOwnPropertySymbols) {
364
+ var n = Object.getOwnPropertySymbols(o);
365
+ e && (n = n.filter(function(r) {
366
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
367
+ })), t.push.apply(t, n);
368
+ }
369
+ return t;
370
+ }
371
+ function Ve(o) {
372
+ for (var e = 1; e < arguments.length; e++) {
373
+ var t = arguments[e] != null ? arguments[e] : {};
374
+ e % 2 ? Ue(Object(t), !0).forEach(function(n) {
375
+ p(o, n, t[n]);
376
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(n) {
377
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
378
+ });
379
+ }
380
+ return o;
381
+ }
382
+ function It() {
383
+ try {
384
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
385
+ }));
386
+ } catch {
387
+ }
388
+ return (It = function() {
389
+ return !!o;
390
+ })();
391
+ }
392
+ p(Be, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), ce(Be);
393
+ var Pt = function() {
394
+ function o() {
395
+ var e, t, n, r;
396
+ G(this, o);
397
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
398
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, It() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { height: e.props.defaultHeight || 0, width: e.props.defaultWidth || 0 }), p(e, "_parentNode", void 0), p(e, "_autoSizer", void 0), p(e, "_window", void 0), p(e, "_detectElementResize", void 0), p(e, "_onResize", function() {
399
+ var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
400
+ if (e._parentNode) {
401
+ var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, _ = (e._window || window).getComputedStyle(e._parentNode) || {}, m = parseInt(_.paddingLeft, 10) || 0, g = parseInt(_.paddingRight, 10) || 0, S = parseInt(_.paddingTop, 10) || 0, y = parseInt(_.paddingBottom, 10) || 0, v = f - S - y, C = u - m - g;
402
+ (!c && e.state.height !== v || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u - m - g }), h({ height: f, width: u }));
403
+ }
404
+ }), p(e, "_setRef", function(s) {
405
+ e._autoSizer = s;
406
+ }), e;
407
+ }
408
+ return D(o, x.Component), A(o, [{ key: "componentDidMount", value: function() {
409
+ var e = this.props.nonce;
410
+ this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize = zt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
411
+ } }, { key: "componentWillUnmount", value: function() {
412
+ this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
413
+ } }, { key: "render", value: function() {
414
+ var e = this.props, t = e.children, n = e.className, r = e.disableHeight, i = e.disableWidth, l = e.style, a = this.state, s = a.height, c = a.width, d = { overflow: "visible" }, h = {};
415
+ return r || (d.height = 0, h.height = s), i || (d.width = 0, h.width = c), x.createElement("div", { className: n, ref: this._setRef, style: Ve(Ve({}, d), l) }, t(h));
416
+ } }]);
417
+ }();
418
+ function kt() {
419
+ try {
420
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
421
+ }));
422
+ } catch {
423
+ }
424
+ return (kt = function() {
425
+ return !!o;
426
+ })();
427
+ }
428
+ p(Pt, "defaultProps", { onResize: function() {
429
+ }, disableHeight: !1, disableWidth: !1, style: {} });
430
+ var Do = function() {
431
+ function o() {
432
+ var e, t, n, r;
433
+ G(this, o);
434
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
435
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, kt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_child", x.createRef()), p(e, "_measure", function() {
436
+ var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, _ = u === void 0 ? e.props.index || 0 : u, m = e._getCellMeasurements(), g = m.height, S = m.width;
437
+ g === c.getHeight(_, h) && S === c.getWidth(_, h) || (c.set(_, h, S, g), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: h, rowIndex: _ }));
438
+ }), p(e, "_registerChild", function(s) {
439
+ !s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
440
+ }), e;
441
+ }
442
+ return D(o, x.PureComponent), A(o, [{ key: "componentDidMount", value: function() {
443
+ this._maybeMeasureCell();
444
+ } }, { key: "componentDidUpdate", value: function() {
445
+ this._maybeMeasureCell();
446
+ } }, { key: "render", value: function() {
447
+ var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
448
+ return n === null ? n : Po(n, { ref: function(r) {
449
+ typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
450
+ } });
451
+ } }, { key: "_getCellMeasurements", value: function() {
452
+ var e = this.props.cache, t = this._child.current;
453
+ if (t && t.ownerDocument && t.ownerDocument.defaultView && t instanceof t.ownerDocument.defaultView.HTMLElement) {
454
+ var n = t.style.width, r = t.style.height;
455
+ e.hasFixedWidth() || (t.style.width = "auto"), e.hasFixedHeight() || (t.style.height = "auto");
456
+ var i = Math.ceil(t.offsetHeight), l = Math.ceil(t.offsetWidth);
457
+ return n && (t.style.width = n), r && (t.style.height = r), { height: i, width: l };
458
+ }
459
+ return { height: 0, width: 0 };
460
+ } }, { key: "_maybeMeasureCell", value: function() {
461
+ var e = this.props, t = e.cache, n = e.columnIndex, r = n === void 0 ? 0 : n, i = e.parent, l = e.rowIndex, a = l === void 0 ? this.props.index || 0 : l;
462
+ if (!t.has(a, r)) {
463
+ var s = this._getCellMeasurements(), c = s.height, d = s.width;
464
+ t.set(a, r, d, c), i && typeof i.invalidateCellSizeAfterRender == "function" && i.invalidateCellSizeAfterRender({ columnIndex: r, rowIndex: a });
465
+ }
466
+ } }]);
467
+ }();
468
+ function Q() {
469
+ var o = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], e = {};
470
+ return function(t) {
471
+ var n = t.callback, r = t.indices, i = Object.keys(r), l = !o || i.every(function(s) {
472
+ var c = r[s];
473
+ return Array.isArray(c) ? c.length > 0 : c >= 0;
474
+ }), a = i.length !== Object.keys(e).length || i.some(function(s) {
475
+ var c = e[s], d = r[s];
476
+ return Array.isArray(d) ? c.join(",") !== d.join(",") : c !== d;
477
+ });
478
+ e = r, l && a && n(r);
479
+ };
480
+ }
481
+ p(Do, "__internalCellMeasurerFlag", !1);
482
+ const jo = !(typeof window > "u" || !window.document || !window.document.createElement);
483
+ var fe;
484
+ function be(o) {
485
+ if ((!fe && fe !== 0 || o) && jo) {
486
+ var e = document.createElement("div");
487
+ e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), fe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
488
+ }
489
+ return fe;
490
+ }
491
+ function $e(o, e) {
492
+ var t = Object.keys(o);
493
+ if (Object.getOwnPropertySymbols) {
494
+ var n = Object.getOwnPropertySymbols(o);
495
+ e && (n = n.filter(function(r) {
496
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
497
+ })), t.push.apply(t, n);
498
+ }
499
+ return t;
500
+ }
501
+ function qe(o) {
502
+ for (var e = 1; e < arguments.length; e++) {
503
+ var t = arguments[e] != null ? arguments[e] : {};
504
+ e % 2 ? $e(Object(t), !0).forEach(function(n) {
505
+ p(o, n, t[n]);
506
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : $e(Object(t)).forEach(function(n) {
507
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
508
+ });
509
+ }
510
+ return o;
511
+ }
512
+ function Ot() {
513
+ try {
514
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
515
+ }));
516
+ } catch {
517
+ }
518
+ return (Ot = function() {
519
+ return !!o;
520
+ })();
521
+ }
522
+ var te = "requested", ge = function() {
523
+ function o() {
524
+ var e, t, n, r;
525
+ G(this, o);
526
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
527
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Ot() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollLeft: 0, scrollTop: 0 }), p(e, "_calculateSizeAndPositionDataOnNextUpdate", !1), p(e, "_onSectionRenderedMemoizer", Q()), p(e, "_onScrollMemoizer", Q(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
528
+ var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
529
+ e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
530
+ }), p(e, "_setScrollingContainerRef", function(s) {
531
+ e._scrollingContainer = s;
532
+ }), p(e, "_updateScrollPositionForScrollToCell", function() {
533
+ var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, _ = e.state, m = _.scrollLeft, g = _.scrollTop;
534
+ if (f >= 0) {
535
+ var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: m, scrollTop: g, width: u });
536
+ S.scrollLeft === m && S.scrollTop === g || e._setScrollPosition(S);
537
+ }
538
+ }), p(e, "_onScroll", function(s) {
539
+ if (s.target === e._scrollingContainer) {
540
+ e._enablePointerEventsAfterDelay();
541
+ var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, _ = e._scrollbarSize, m = d.getTotalSize(), g = m.height, S = m.width, y = Math.max(0, Math.min(S - u + _, s.target.scrollLeft)), v = Math.max(0, Math.min(g - h + _, s.target.scrollTop));
542
+ if (e.state.scrollLeft !== y || e.state.scrollTop !== v) {
543
+ var C = s.cancelable ? "observed" : te;
544
+ e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: C, scrollTop: v });
545
+ }
546
+ e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: v, totalWidth: S, totalHeight: g });
547
+ }
548
+ }), e._scrollbarSize = be(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
549
+ }
550
+ return D(o, x.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
551
+ this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
552
+ } }, { key: "componentDidMount", value: function() {
553
+ var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, i = e.scrollTop;
554
+ this._scrollbarSizeMeasured || (this._scrollbarSize = be(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (n >= 0 || i >= 0) && this._setScrollPosition({ scrollLeft: n, scrollTop: i }), this._invokeOnSectionRenderedHelper();
555
+ var l = t.getTotalSize(), a = l.height, s = l.width;
556
+ this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: i || 0, totalHeight: a, totalWidth: s });
557
+ } }, { key: "componentDidUpdate", value: function(e, t) {
558
+ var n = this.props, r = n.height, i = n.scrollToAlignment, l = n.scrollToCell, a = n.width, s = this.state, c = s.scrollLeft, d = s.scrollPositionChangeReason, h = s.scrollTop;
559
+ d === te && (c >= 0 && c !== t.scrollLeft && c !== this._scrollingContainer.scrollLeft && (this._scrollingContainer.scrollLeft = c), h >= 0 && h !== t.scrollTop && h !== this._scrollingContainer.scrollTop && (this._scrollingContainer.scrollTop = h)), r === e.height && i === e.scrollToAlignment && l === e.scrollToCell && a === e.width || this._updateScrollPositionForScrollToCell(), this._invokeOnSectionRenderedHelper();
560
+ } }, { key: "componentWillUnmount", value: function() {
561
+ this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
562
+ } }, { key: "render", value: function() {
563
+ var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, i = e.className, l = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, _ = u.isScrolling, m = u.scrollLeft, g = u.scrollTop;
564
+ (this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
565
+ var S = r.getTotalSize(), y = S.height, v = S.width, C = Math.max(0, m - a), w = Math.max(0, g - h), b = Math.min(v, m + f + a), R = Math.min(y, g + l + h), T = l > 0 && f > 0 ? r.cellRenderers({ height: R - w, isScrolling: _, width: b - C, x: C, y: w }) : [], I = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : l, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, k = y > l ? this._scrollbarSize : 0, z = v > f ? this._scrollbarSize : 0;
566
+ return I.overflowX = v + k <= f ? "hidden" : "auto", I.overflowY = y + z <= l ? "hidden" : "auto", x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", i), id: s, onScroll: this._onScroll, role: "grid", style: qe(qe({}, I), d), tabIndex: 0 }, n > 0 && x.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: y, maxHeight: y, maxWidth: v, overflow: "hidden", pointerEvents: _ ? "none" : "", width: v } }, T), n === 0 && c());
567
+ } }, { key: "_enablePointerEventsAfterDelay", value: function() {
568
+ var e = this;
569
+ this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
570
+ (0, e.props.isScrollingChange)(!1), e._disablePointerEventsTimeoutId = null, e.setState({ isScrolling: !1 });
571
+ }, 150);
572
+ } }, { key: "_invokeOnScrollMemoizer", value: function(e) {
573
+ var t = this, n = e.scrollLeft, r = e.scrollTop, i = e.totalHeight, l = e.totalWidth;
574
+ this._onScrollMemoizer({ callback: function(a) {
575
+ var s = a.scrollLeft, c = a.scrollTop, d = t.props, h = d.height;
576
+ (0, d.onScroll)({ clientHeight: h, clientWidth: d.width, scrollHeight: i, scrollLeft: s, scrollTop: c, scrollWidth: l });
577
+ }, indices: { scrollLeft: n, scrollTop: r } });
578
+ } }, { key: "_setScrollPosition", value: function(e) {
579
+ var t = e.scrollLeft, n = e.scrollTop, r = { scrollPositionChangeReason: te };
580
+ t >= 0 && (r.scrollLeft = t), n >= 0 && (r.scrollTop = n), (t >= 0 && t !== this.state.scrollLeft || n >= 0 && n !== this.state.scrollTop) && this.setState(r);
581
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
582
+ return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: te } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: te };
583
+ } }]);
584
+ }();
585
+ p(ge, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
586
+ return null;
587
+ }, onScroll: function() {
588
+ return null;
589
+ }, onSectionRendered: function() {
590
+ return null;
591
+ }, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), ge.propTypes = {}, ce(ge);
592
+ var Fo = A(function o(e) {
593
+ var t = e.height, n = e.width, r = e.x, i = e.y;
594
+ G(this, o), this.height = t, this.width = n, this.x = r, this.y = i, this._indexMap = {}, this._indices = [];
595
+ }, [{ key: "addCellIndex", value: function(o) {
596
+ var e = o.index;
597
+ this._indexMap[e] || (this._indexMap[e] = !0, this._indices.push(e));
598
+ } }, { key: "getCellIndices", value: function() {
599
+ return this._indices;
600
+ } }, { key: "toString", value: function() {
601
+ return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
602
+ } }]), No = A(function o() {
603
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
604
+ G(this, o), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
605
+ }, [{ key: "getCellIndices", value: function(o) {
606
+ var e = o.height, t = o.width, n = o.x, r = o.y, i = {};
607
+ return this.getSections({ height: e, width: t, x: n, y: r }).forEach(function(l) {
608
+ return l.getCellIndices().forEach(function(a) {
609
+ i[a] = a;
610
+ });
611
+ }), Object.keys(i).map(function(l) {
612
+ return i[l];
613
+ });
614
+ } }, { key: "getCellMetadata", value: function(o) {
615
+ var e = o.index;
616
+ return this._cellMetadata[e];
617
+ } }, { key: "getSections", value: function(o) {
618
+ for (var e = o.height, t = o.width, n = o.x, r = o.y, i = Math.floor(n / this._sectionSize), l = Math.floor((n + t - 1) / this._sectionSize), a = Math.floor(r / this._sectionSize), s = Math.floor((r + e - 1) / this._sectionSize), c = [], d = i; d <= l; d++) for (var h = a; h <= s; h++) {
619
+ var f = "".concat(d, ".").concat(h);
620
+ this._sections[f] || (this._sections[f] = new Fo({ height: this._sectionSize, width: this._sectionSize, x: d * this._sectionSize, y: h * this._sectionSize })), c.push(this._sections[f]);
621
+ }
622
+ return c;
623
+ } }, { key: "getTotalSectionCount", value: function() {
624
+ return Object.keys(this._sections).length;
625
+ } }, { key: "toString", value: function() {
626
+ var o = this;
627
+ return Object.keys(this._sections).map(function(e) {
628
+ return o._sections[e].toString();
629
+ });
630
+ } }, { key: "registerCell", value: function(o) {
631
+ var e = o.cellMetadatum, t = o.index;
632
+ this._cellMetadata[t] = e, this.getSections(e).forEach(function(n) {
633
+ return n.addCellIndex({ index: t });
634
+ });
635
+ } }]);
636
+ function Ke(o) {
637
+ var e = o.align, t = e === void 0 ? "auto" : e, n = o.cellOffset, r = o.cellSize, i = o.containerSize, l = o.currentOffset, a = n, s = a - i + r;
638
+ switch (t) {
639
+ case "start":
640
+ return a;
641
+ case "end":
642
+ return s;
643
+ case "center":
644
+ return a - (i - r) / 2;
645
+ default:
646
+ return Math.max(s, Math.min(a, l));
647
+ }
648
+ }
649
+ function Mt() {
650
+ try {
651
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
652
+ }));
653
+ } catch {
654
+ }
655
+ return (Mt = function() {
656
+ return !!o;
657
+ })();
658
+ }
659
+ var Xe = function() {
660
+ function o(e, t) {
661
+ var n, r, i, l;
662
+ return G(this, o), r = this, l = [e, t], i = O(i = o), (n = W(r, Mt() ? Reflect.construct(i, l || [], O(r).constructor) : i.apply(r, l)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
663
+ }
664
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
665
+ this._collectionView !== void 0 && this._collectionView.forceUpdate();
666
+ } }, { key: "recomputeCellSizesAndPositions", value: function() {
667
+ this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
668
+ } }, { key: "render", value: function() {
669
+ var e = U({}, (function(t) {
670
+ if (t == null) throw new TypeError("Cannot destructure " + t);
671
+ }(this.props), this.props));
672
+ return x.createElement(ge, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
673
+ } }, { key: "calculateSizeAndPositionData", value: function() {
674
+ var e = this.props, t = function(n) {
675
+ for (var r = n.cellCount, i = n.cellSizeAndPositionGetter, l = [], a = new No(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
676
+ var h = i({ index: d });
677
+ if (h.height == null || isNaN(h.height) || h.width == null || isNaN(h.width) || h.x == null || isNaN(h.x) || h.y == null || isNaN(h.y)) throw Error("Invalid metadata returned for cell ".concat(d, `:
678
+ x:`).concat(h.x, ", y:").concat(h.y, ", width:").concat(h.width, ", height:").concat(h.height));
679
+ s = Math.max(s, h.y + h.height), c = Math.max(c, h.x + h.width), l[d] = h, a.registerCell({ cellMetadatum: h, index: d });
680
+ }
681
+ return { cellMetadata: l, height: s, sectionManager: a, width: c };
682
+ }({ cellCount: e.cellCount, cellSizeAndPositionGetter: e.cellSizeAndPositionGetter, sectionSize: e.sectionSize });
683
+ this._cellMetadata = t.cellMetadata, this._sectionManager = t.sectionManager, this._height = t.height, this._width = t.width;
684
+ } }, { key: "getLastRenderedIndices", value: function() {
685
+ return this._lastRenderedCellIndices;
686
+ } }, { key: "getScrollPositionForCell", value: function(e) {
687
+ var t = e.align, n = e.cellIndex, r = e.height, i = e.scrollLeft, l = e.scrollTop, a = e.width, s = this.props.cellCount;
688
+ if (n >= 0 && n < s) {
689
+ var c = this._cellMetadata[n];
690
+ i = Ke({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: i }), l = Ke({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: l });
691
+ }
692
+ return { scrollLeft: i, scrollTop: l };
693
+ } }, { key: "getTotalSize", value: function() {
694
+ return { height: this._height, width: this._width };
695
+ } }, { key: "cellRenderers", value: function(e) {
696
+ var t = this, n = e.height, r = e.isScrolling, i = e.width, l = e.x, a = e.y, s = this.props, c = s.cellGroupRenderer, d = s.cellRenderer;
697
+ return this._lastRenderedCellIndices = this._sectionManager.getCellIndices({ height: n, width: i, x: l, y: a }), c({ cellCache: this._cellCache, cellRenderer: d, cellSizeAndPositionGetter: function(h) {
698
+ var f = h.index;
699
+ return t._sectionManager.getCellMetadata({ index: f });
700
+ }, indices: this._lastRenderedCellIndices, isScrolling: r });
701
+ } }, { key: "_isScrollingChange", value: function(e) {
702
+ e || (this._cellCache = []);
703
+ } }, { key: "_setCollectionViewRef", value: function(e) {
704
+ this._collectionView = e;
705
+ } }]);
706
+ }();
707
+ function Lt() {
708
+ try {
709
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
710
+ }));
711
+ } catch {
712
+ }
713
+ return (Lt = function() {
714
+ return !!o;
715
+ })();
716
+ }
717
+ function Ye(o) {
718
+ var e = o.cellCount, t = o.cellSize, n = o.computeMetadataCallback, r = o.computeMetadataCallbackProps, i = o.nextCellsCount, l = o.nextCellSize, a = o.nextScrollToIndex, s = o.scrollToIndex, c = o.updateScrollOffsetForScrollToIndex;
719
+ e === i && (typeof t != "number" && typeof l != "number" || t === l) || (n(r), s >= 0 && s === a && c());
720
+ }
721
+ function ne(o, e) {
722
+ if (o == null) return {};
723
+ var t, n, r = zo(o, e);
724
+ if (Object.getOwnPropertySymbols) {
725
+ var i = Object.getOwnPropertySymbols(o);
726
+ for (n = 0; n < i.length; n++) t = i[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
727
+ }
728
+ return r;
729
+ }
730
+ p(Xe, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
731
+ var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices, i = o.isScrolling;
732
+ return r.map(function(l) {
733
+ var a = n({ index: l }), s = { index: l, isScrolling: i, key: l, style: { height: a.height, left: a.x, position: "absolute", top: a.y, width: a.width } };
734
+ return i ? (l in e || (e[l] = t(s)), e[l]) : t(s);
735
+ }).filter(function(l) {
736
+ return !!l;
737
+ });
738
+ } }), Xe.propTypes = {}, function() {
739
+ function o(e, t) {
740
+ var n, r, i, l;
741
+ return G(this, o), r = this, l = [e, t], i = O(i = o), (n = W(r, Lt() ? Reflect.construct(i, l || [], O(r).constructor) : i.apply(r, l)))._registerChild = n._registerChild.bind(n), n;
742
+ }
743
+ return D(o, x.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
744
+ var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, i = t.columnCount, l = t.width;
745
+ n === e.columnMaxWidth && r === e.columnMinWidth && i === e.columnCount && l === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
746
+ } }, { key: "render", value: function() {
747
+ var e = this.props, t = e.children, n = e.columnMaxWidth, r = e.columnMinWidth, i = e.columnCount, l = e.width, a = r || 1, s = n ? Math.min(n, l) : l, c = l / i;
748
+ return c = Math.max(a, c), c = Math.min(s, c), c = Math.floor(c), t({ adjustedWidth: Math.min(l, c * i), columnWidth: c, getColumnWidth: function() {
749
+ return c;
750
+ }, registerChild: this._registerChild });
751
+ } }, { key: "_registerChild", value: function(e) {
752
+ if (e && typeof e.recomputeGridSize != "function") throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");
753
+ this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
754
+ } }]);
755
+ }().propTypes = {};
756
+ var F, Bo = A(function o(e) {
757
+ var t = e.cellCount, n = e.cellSizeGetter, r = e.estimatedCellSize;
758
+ G(this, o), p(this, "_cellSizeAndPositionData", {}), p(this, "_lastMeasuredIndex", -1), p(this, "_lastBatchedIndex", -1), p(this, "_cellCount", void 0), p(this, "_cellSizeGetter", void 0), p(this, "_estimatedCellSize", void 0), this._cellSizeGetter = n, this._cellCount = t, this._estimatedCellSize = r;
759
+ }, [{ key: "areOffsetsAdjusted", value: function() {
760
+ return !1;
761
+ } }, { key: "configure", value: function(o) {
762
+ var e = o.cellCount, t = o.estimatedCellSize, n = o.cellSizeGetter;
763
+ this._cellCount = e, this._estimatedCellSize = t, this._cellSizeGetter = n;
764
+ } }, { key: "getCellCount", value: function() {
765
+ return this._cellCount;
766
+ } }, { key: "getEstimatedCellSize", value: function() {
767
+ return this._estimatedCellSize;
768
+ } }, { key: "getLastMeasuredIndex", value: function() {
769
+ return this._lastMeasuredIndex;
770
+ } }, { key: "getOffsetAdjustment", value: function() {
771
+ return 0;
772
+ } }, { key: "getSizeAndPositionOfCell", value: function(o) {
773
+ if (o < 0 || o >= this._cellCount) throw Error("Requested index ".concat(o, " is outside of range 0..").concat(this._cellCount));
774
+ if (o > this._lastMeasuredIndex) for (var e = this.getSizeAndPositionOfLastMeasuredCell(), t = e.offset + e.size, n = this._lastMeasuredIndex + 1; n <= o; n++) {
775
+ var r = this._cellSizeGetter({ index: n });
776
+ if (r === void 0 || isNaN(r)) throw Error("Invalid size returned for cell ".concat(n, " of value ").concat(r));
777
+ r === null ? (this._cellSizeAndPositionData[n] = { offset: t, size: 0 }, this._lastBatchedIndex = o) : (this._cellSizeAndPositionData[n] = { offset: t, size: r }, t += r, this._lastMeasuredIndex = o);
778
+ }
779
+ return this._cellSizeAndPositionData[o];
780
+ } }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
781
+ return this._lastMeasuredIndex >= 0 ? this._cellSizeAndPositionData[this._lastMeasuredIndex] : { offset: 0, size: 0 };
782
+ } }, { key: "getTotalSize", value: function() {
783
+ var o = this.getSizeAndPositionOfLastMeasuredCell();
784
+ return o.offset + o.size + (this._cellCount - this._lastMeasuredIndex - 1) * this._estimatedCellSize;
785
+ } }, { key: "getUpdatedOffsetForIndex", value: function(o) {
786
+ var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset, i = o.targetIndex;
787
+ if (n <= 0) return 0;
788
+ var l, a = this.getSizeAndPositionOfCell(i), s = a.offset, c = s - n + a.size;
789
+ switch (t) {
790
+ case "start":
791
+ l = s;
792
+ break;
793
+ case "end":
794
+ l = c;
795
+ break;
796
+ case "center":
797
+ l = s - (n - a.size) / 2;
798
+ break;
799
+ default:
800
+ l = Math.max(c, Math.min(s, r));
801
+ }
802
+ var d = this.getTotalSize();
803
+ return Math.max(0, Math.min(d - n, l));
804
+ } }, { key: "getVisibleCellRange", value: function(o) {
805
+ var e = o.containerSize, t = o.offset;
806
+ if (this.getTotalSize() === 0) return {};
807
+ var n = t + e, r = this._findNearestCell(t), i = this.getSizeAndPositionOfCell(r);
808
+ t = i.offset + i.size;
809
+ for (var l = r; t < n && l < this._cellCount - 1; ) l++, t += this.getSizeAndPositionOfCell(l).size;
810
+ return { start: r, stop: l };
811
+ } }, { key: "resetCell", value: function(o) {
812
+ this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex, o - 1);
813
+ } }, { key: "_binarySearch", value: function(o, e, t) {
814
+ for (; e <= o; ) {
815
+ var n = e + Math.floor((o - e) / 2), r = this.getSizeAndPositionOfCell(n).offset;
816
+ if (r === t) return n;
817
+ r < t ? e = n + 1 : r > t && (o = n - 1);
818
+ }
819
+ return e > 0 ? e - 1 : 0;
820
+ } }, { key: "_exponentialSearch", value: function(o, e) {
821
+ for (var t = 1; o < this._cellCount && this.getSizeAndPositionOfCell(o).offset < e; ) o += t, t *= 2;
822
+ return this._binarySearch(Math.min(o, this._cellCount - 1), Math.floor(o / 2), e);
823
+ } }, { key: "_findNearestCell", value: function(o) {
824
+ if (isNaN(o)) throw Error("Invalid offset ".concat(o, " specified"));
825
+ o = Math.max(0, o);
826
+ var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
827
+ return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
828
+ } }]), Uo = ["maxScrollSize"], Je = A(function o(e) {
829
+ var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = ne(e, Uo);
830
+ G(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new Bo(r), this._maxScrollSize = n;
831
+ }, [{ key: "areOffsetsAdjusted", value: function() {
832
+ return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
833
+ } }, { key: "configure", value: function(o) {
834
+ this._cellSizeAndPositionManager.configure(o);
835
+ } }, { key: "getCellCount", value: function() {
836
+ return this._cellSizeAndPositionManager.getCellCount();
837
+ } }, { key: "getEstimatedCellSize", value: function() {
838
+ return this._cellSizeAndPositionManager.getEstimatedCellSize();
839
+ } }, { key: "getLastMeasuredIndex", value: function() {
840
+ return this._cellSizeAndPositionManager.getLastMeasuredIndex();
841
+ } }, { key: "getOffsetAdjustment", value: function(o) {
842
+ var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize(), i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
843
+ return Math.round(i * (r - n));
844
+ } }, { key: "getSizeAndPositionOfCell", value: function(o) {
845
+ return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o);
846
+ } }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
847
+ return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell();
848
+ } }, { key: "getTotalSize", value: function() {
849
+ return Math.min(this._maxScrollSize, this._cellSizeAndPositionManager.getTotalSize());
850
+ } }, { key: "getUpdatedOffsetForIndex", value: function(o) {
851
+ var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset, i = o.targetIndex;
852
+ r = this._safeOffsetToOffset({ containerSize: n, offset: r });
853
+ var l = this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({ align: t, containerSize: n, currentOffset: r, targetIndex: i });
854
+ return this._offsetToSafeOffset({ containerSize: n, offset: l });
855
+ } }, { key: "getVisibleCellRange", value: function(o) {
856
+ var e = o.containerSize, t = o.offset;
857
+ return t = this._safeOffsetToOffset({ containerSize: e, offset: t }), this._cellSizeAndPositionManager.getVisibleCellRange({ containerSize: e, offset: t });
858
+ } }, { key: "resetCell", value: function(o) {
859
+ this._cellSizeAndPositionManager.resetCell(o);
860
+ } }, { key: "_getOffsetPercentage", value: function(o) {
861
+ var e = o.containerSize, t = o.offset, n = o.totalSize;
862
+ return n <= e ? 0 : t / (n - e);
863
+ } }, { key: "_offsetToSafeOffset", value: function(o) {
864
+ var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
865
+ if (n === r) return t;
866
+ var i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: n });
867
+ return Math.round(i * (r - e));
868
+ } }, { key: "_safeOffsetToOffset", value: function(o) {
869
+ var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
870
+ if (n === r) return t;
871
+ var i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
872
+ return Math.round(i * (n - e));
873
+ } }]);
874
+ function Ze(o) {
875
+ var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, i = o.previousScrollToAlignment, l = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, _ = t.getCellCount(), m = d >= 0 && d < _;
876
+ m && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !m && _ > 0 && (h < a || _ < n) && s > t.getTotalSize() - h && u(_ - 1);
877
+ }
878
+ var Vo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
879
+ return F.setTimeout(o, 1e3 / 60);
880
+ }, $o = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
881
+ F.clearTimeout(o);
882
+ }, Qe = Vo, qo = $o, ee = function(o) {
883
+ return qo(o.id);
884
+ }, Me = function(o, e) {
885
+ var t;
886
+ Promise.resolve().then(function() {
887
+ t = Date.now();
888
+ });
889
+ var n = function() {
890
+ Date.now() - t >= e ? o.call() : r.id = Qe(n);
891
+ }, r = { id: Qe(n) };
892
+ return r;
893
+ };
894
+ function et(o, e) {
895
+ var t = Object.keys(o);
896
+ if (Object.getOwnPropertySymbols) {
897
+ var n = Object.getOwnPropertySymbols(o);
898
+ e && (n = n.filter(function(r) {
899
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
900
+ })), t.push.apply(t, n);
901
+ }
902
+ return t;
903
+ }
904
+ function j(o) {
905
+ for (var e = 1; e < arguments.length; e++) {
906
+ var t = arguments[e] != null ? arguments[e] : {};
907
+ e % 2 ? et(Object(t), !0).forEach(function(n) {
908
+ p(o, n, t[n]);
909
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
910
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
911
+ });
912
+ }
913
+ return o;
914
+ }
915
+ function Gt() {
916
+ try {
917
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
918
+ }));
919
+ } catch {
920
+ }
921
+ return (Gt = function() {
922
+ return !!o;
923
+ })();
924
+ }
925
+ var tt = "requested", V = function() {
926
+ function o(e) {
927
+ var t, n, r, i;
928
+ G(this, o), n = this, i = [e], r = O(r = o), p(t = W(n, Gt() ? Reflect.construct(r, i || [], O(n).constructor) : r.apply(n, i)), "_onGridRenderedMemoizer", Q()), p(t, "_onScrollMemoizer", Q(!1)), p(t, "_deferredInvalidateColumnIndex", null), p(t, "_deferredInvalidateRowIndex", null), p(t, "_recomputeScrollLeftFlag", !1), p(t, "_recomputeScrollTopFlag", !1), p(t, "_horizontalScrollBarSize", 0), p(t, "_verticalScrollBarSize", 0), p(t, "_scrollbarPresenceChanged", !1), p(t, "_scrollingContainer", void 0), p(t, "_childrenToDisplay", void 0), p(t, "_columnStartIndex", void 0), p(t, "_columnStopIndex", void 0), p(t, "_rowStartIndex", void 0), p(t, "_rowStopIndex", void 0), p(t, "_renderedColumnStartIndex", 0), p(t, "_renderedColumnStopIndex", 0), p(t, "_renderedRowStartIndex", 0), p(t, "_renderedRowStopIndex", 0), p(t, "_initialScrollTop", void 0), p(t, "_initialScrollLeft", void 0), p(t, "_disablePointerEventsTimeoutId", void 0), p(t, "_styleCache", {}), p(t, "_cellCache", {}), p(t, "_debounceScrollEndedCallback", function() {
929
+ t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
930
+ }), p(t, "_invokeOnGridRenderedHelper", function() {
931
+ var s = t.props.onSectionRendered;
932
+ t._onGridRenderedMemoizer({ callback: s, indices: { columnOverscanStartIndex: t._columnStartIndex, columnOverscanStopIndex: t._columnStopIndex, columnStartIndex: t._renderedColumnStartIndex, columnStopIndex: t._renderedColumnStopIndex, rowOverscanStartIndex: t._rowStartIndex, rowOverscanStopIndex: t._rowStopIndex, rowStartIndex: t._renderedRowStartIndex, rowStopIndex: t._renderedRowStopIndex } });
933
+ }), p(t, "_setScrollingContainerRef", function(s) {
934
+ t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : Z(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
935
+ }), p(t, "_onScroll", function(s) {
936
+ s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
937
+ });
938
+ var l = new Je({ cellCount: e.columnCount, cellSizeGetter: function(s) {
939
+ return o._wrapSizeGetter(e.columnWidth)(s);
940
+ }, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Je({ cellCount: e.rowCount, cellSizeGetter: function(s) {
941
+ return o._wrapSizeGetter(e.rowHeight)(s);
942
+ }, estimatedCellSize: o._getEstimatedRowSize(e) });
943
+ return t.state = { instanceProps: { columnSizeAndPositionManager: l, rowSizeAndPositionManager: a, prevColumnWidth: e.columnWidth, prevRowHeight: e.rowHeight, prevColumnCount: e.columnCount, prevRowCount: e.rowCount, prevIsScrolling: e.isScrolling === !0, prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow, scrollbarSize: 0, scrollbarSizeMeasured: !1 }, isScrolling: !1, scrollDirectionHorizontal: 1, scrollDirectionVertical: 1, scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: null, needToResetStyleCache: !1 }, e.scrollToRow > 0 && (t._initialScrollTop = t._getCalculatedScrollTop(e, t.state)), e.scrollToColumn > 0 && (t._initialScrollLeft = t._getCalculatedScrollLeft(e, t.state)), t;
944
+ }
945
+ return D(o, x.PureComponent), A(o, [{ key: "getOffsetForCell", value: function() {
946
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.alignment, n = t === void 0 ? this.props.scrollToAlignment : t, r = e.columnIndex, i = r === void 0 ? this.props.scrollToColumn : r, l = e.rowIndex, a = l === void 0 ? this.props.scrollToRow : l, s = j(j({}, this.props), {}, { scrollToAlignment: n, scrollToColumn: i, scrollToRow: a });
947
+ return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
948
+ } }, { key: "getTotalRowsHeight", value: function() {
949
+ return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize();
950
+ } }, { key: "getTotalColumnsWidth", value: function() {
951
+ return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize();
952
+ } }, { key: "handleScrollEvent", value: function(e) {
953
+ var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, i = r === void 0 ? 0 : r;
954
+ if (!(i < 0)) {
955
+ this._debounceScrollEnded();
956
+ var l = this.props, a = l.autoHeight, s = l.autoWidth, c = l.height, d = l.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), _ = h.columnSizeAndPositionManager.getTotalSize(), m = Math.min(Math.max(0, _ - d + f), n), g = Math.min(Math.max(0, u - c + f), i);
957
+ if (this.state.scrollLeft !== m || this.state.scrollTop !== g) {
958
+ var S = { isScrolling: !0, scrollDirectionHorizontal: m !== this.state.scrollLeft ? m > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: g !== this.state.scrollTop ? g > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: "observed" };
959
+ a || (S.scrollTop = g), s || (S.scrollLeft = m), S.needToResetStyleCache = !1, this.setState(S);
960
+ }
961
+ this._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: g, totalColumnsWidth: _, totalRowsHeight: u });
962
+ }
963
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
964
+ var t = e.columnIndex, n = e.rowIndex;
965
+ this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, t) : t, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, n) : n;
966
+ } }, { key: "measureAllCells", value: function() {
967
+ var e = this.props, t = e.columnCount, n = e.rowCount, r = this.state.instanceProps;
968
+ r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t - 1), r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n - 1);
969
+ } }, { key: "recomputeGridSize", value: function() {
970
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r, l = this.props, a = l.scrollToColumn, s = l.scrollToRow, c = this.state.instanceProps;
971
+ c.columnSizeAndPositionManager.resetCell(n), c.rowSizeAndPositionManager.resetCell(i), this._recomputeScrollLeftFlag = a >= 0 && (this.state.scrollDirectionHorizontal === 1 ? n <= a : n >= a), this._recomputeScrollTopFlag = s >= 0 && (this.state.scrollDirectionVertical === 1 ? i <= s : i >= s), this._styleCache = {}, this._cellCache = {}, this.forceUpdate();
972
+ } }, { key: "scrollToCell", value: function(e) {
973
+ var t = e.columnIndex, n = e.rowIndex, r = this.props.columnCount, i = this.props;
974
+ r > 1 && t !== void 0 && this._updateScrollLeftForScrollToColumn(j(j({}, i), {}, { scrollToColumn: t })), n !== void 0 && this._updateScrollTopForScrollToRow(j(j({}, i), {}, { scrollToRow: n }));
975
+ } }, { key: "componentDidMount", value: function() {
976
+ var e = this.props, t = e.getScrollbarSize, n = e.height, r = e.scrollLeft, i = e.scrollToColumn, l = e.scrollTop, a = e.scrollToRow, s = e.width, c = this.state.instanceProps;
977
+ if (this._initialScrollTop = 0, this._initialScrollLeft = 0, this._handleInvalidatedGridSize(), c.scrollbarSizeMeasured || this.setState(function(f) {
978
+ var u = j(j({}, f), {}, { needToResetStyleCache: !1 });
979
+ return u.instanceProps.scrollbarSize = t(), u.instanceProps.scrollbarSizeMeasured = !0, u;
980
+ }), typeof r == "number" && r >= 0 || typeof l == "number" && l >= 0) {
981
+ var d = o._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: r, scrollTop: l });
982
+ d && (d.needToResetStyleCache = !1, this.setState(d));
983
+ }
984
+ this._scrollingContainer && (this._scrollingContainer.scrollLeft !== this.state.scrollLeft && (this._scrollingContainer.scrollLeft = this.state.scrollLeft), this._scrollingContainer.scrollTop !== this.state.scrollTop && (this._scrollingContainer.scrollTop = this.state.scrollTop));
985
+ var h = n > 0 && s > 0;
986
+ i >= 0 && h && this._updateScrollLeftForScrollToColumn(), a >= 0 && h && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: l || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
987
+ } }, { key: "componentDidUpdate", value: function(e, t) {
988
+ var n = this, r = this.props, i = r.autoHeight, l = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, _ = this.state, m = _.scrollLeft, g = _.scrollPositionChangeReason, S = _.scrollTop, y = _.instanceProps;
989
+ this._handleInvalidatedGridSize();
990
+ var v = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
991
+ g === tt && (!l && m >= 0 && (m !== this._scrollingContainer.scrollLeft || v) && (this._scrollingContainer.scrollLeft = m), !i && S >= 0 && (S !== this._scrollingContainer.scrollTop || v) && (this._scrollingContainer.scrollTop = S));
992
+ var C = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
993
+ if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ze({ cellSizeAndPositionManager: y.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: m, scrollToAlignment: d, scrollToIndex: h, size: u, sizeJustIncreasedFromZero: C, updateScrollIndexCallback: function() {
994
+ return n._updateScrollLeftForScrollToColumn(n.props);
995
+ } }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ze({ cellSizeAndPositionManager: y.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: d, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: C, updateScrollIndexCallback: function() {
996
+ return n._updateScrollTopForScrollToRow(n.props);
997
+ } }), this._invokeOnGridRenderedHelper(), m !== t.scrollLeft || S !== t.scrollTop) {
998
+ var w = y.rowSizeAndPositionManager.getTotalSize(), b = y.columnSizeAndPositionManager.getTotalSize();
999
+ this._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: S, totalColumnsWidth: b, totalRowsHeight: w });
1000
+ }
1001
+ this._maybeCallOnScrollbarPresenceChange();
1002
+ } }, { key: "componentWillUnmount", value: function() {
1003
+ this._disablePointerEventsTimeoutId && ee(this._disablePointerEventsTimeoutId);
1004
+ } }, { key: "render", value: function() {
1005
+ var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, i = e.className, l = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, _ = e.tabIndex, m = e.width, g = this.state, S = g.instanceProps, y = g.needToResetStyleCache, v = this._isScrolling(), C = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : m, WebkitOverflowScrolling: "touch", willChange: "transform" };
1006
+ y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
1007
+ var w = S.columnSizeAndPositionManager.getTotalSize(), b = S.rowSizeAndPositionManager.getTotalSize(), R = b > c ? S.scrollbarSize : 0, T = w > m ? S.scrollbarSize : 0;
1008
+ T === this._horizontalScrollBarSize && R === this._verticalScrollBarSize || (this._horizontalScrollBarSize = T, this._verticalScrollBarSize = R, this._scrollbarPresenceChanged = !0), C.overflowX = w + R <= m ? "hidden" : "auto", C.overflowY = b + T <= c ? "hidden" : "auto";
1009
+ var I = this._childrenToDisplay, k = I.length === 0 && c > 0 && m > 0;
1010
+ return x.createElement("div", U({ ref: this._setScrollingContainerRef }, l, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", i), id: d, onScroll: this._onScroll, role: f, style: j(j({}, C), u), tabIndex: _ }), I.length > 0 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : w, height: b, maxWidth: w, maxHeight: b, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" }, s) }, I), k && h());
1011
+ } }, { key: "_calculateChildrenToRender", value: function() {
1012
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, i = e.columnCount, l = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, _ = t.scrollDirectionHorizontal, m = t.scrollDirectionVertical, g = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, y = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, v = this._isScrolling(e, t);
1013
+ if (this._childrenToDisplay = [], a > 0 && f > 0) {
1014
+ var C = g.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }), w = g.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), b = g.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: y }), R = g.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
1015
+ this._renderedColumnStartIndex = C.start, this._renderedColumnStopIndex = C.stop, this._renderedRowStartIndex = w.start, this._renderedRowStopIndex = w.stop;
1016
+ var T = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection: _, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), I = c({ direction: "vertical", cellCount: h, overscanCellsCount: d, scrollDirection: m, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.stop : -1 }), k = T.overscanStartIndex, z = T.overscanStopIndex, P = I.overscanStartIndex, M = I.overscanStopIndex;
1017
+ if (l) {
1018
+ if (!l.hasFixedHeight()) {
1019
+ for (var H = P; H <= M; H++) if (!l.has(H, 0)) {
1020
+ k = 0, z = i - 1;
1021
+ break;
1022
+ }
1023
+ }
1024
+ if (!l.hasFixedWidth()) {
1025
+ for (var K = k; K <= z; K++) if (!l.has(0, K)) {
1026
+ P = 0, M = h - 1;
1027
+ break;
1028
+ }
1029
+ }
1030
+ }
1031
+ this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: g.columnSizeAndPositionManager, columnStartIndex: k, columnStopIndex: z, deferredMeasurementCache: l, horizontalOffsetAdjustment: b, isScrolling: v, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: g.rowSizeAndPositionManager, rowStartIndex: P, rowStopIndex: M, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: R, visibleColumnIndices: C, visibleRowIndices: w }), this._columnStartIndex = k, this._columnStopIndex = z, this._rowStartIndex = P, this._rowStopIndex = M;
1032
+ }
1033
+ } }, { key: "_debounceScrollEnded", value: function() {
1034
+ var e = this.props.scrollingResetTimeInterval;
1035
+ this._disablePointerEventsTimeoutId && ee(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = Me(this._debounceScrollEndedCallback, e);
1036
+ } }, { key: "_handleInvalidatedGridSize", value: function() {
1037
+ if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
1038
+ var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
1039
+ this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t });
1040
+ }
1041
+ } }, { key: "_invokeOnScrollMemoizer", value: function(e) {
1042
+ var t = this, n = e.scrollLeft, r = e.scrollTop, i = e.totalColumnsWidth, l = e.totalRowsHeight;
1043
+ this._onScrollMemoizer({ callback: function(a) {
1044
+ var s = a.scrollLeft, c = a.scrollTop, d = t.props, h = d.height;
1045
+ (0, d.onScroll)({ clientHeight: h, clientWidth: d.width, scrollHeight: l, scrollLeft: s, scrollTop: c, scrollWidth: i });
1046
+ }, indices: { scrollLeft: n, scrollTop: r } });
1047
+ } }, { key: "_isScrolling", value: function() {
1048
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
1049
+ return Object.hasOwnProperty.call(e, "isScrolling") ? !!e.isScrolling : !!t.isScrolling;
1050
+ } }, { key: "_maybeCallOnScrollbarPresenceChange", value: function() {
1051
+ if (this._scrollbarPresenceChanged) {
1052
+ var e = this.props.onScrollbarPresenceChange;
1053
+ this._scrollbarPresenceChanged = !1, e({ horizontal: this._horizontalScrollBarSize > 0, size: this.state.instanceProps.scrollbarSize, vertical: this._verticalScrollBarSize > 0 });
1054
+ }
1055
+ } }, { key: "scrollToPosition", value: function(e) {
1056
+ var t = e.scrollLeft, n = e.scrollTop, r = o._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: t, scrollTop: n });
1057
+ r && (r.needToResetStyleCache = !1, this.setState(r));
1058
+ } }, { key: "_getCalculatedScrollLeft", value: function() {
1059
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
1060
+ return o._getCalculatedScrollLeft(e, t);
1061
+ } }, { key: "_updateScrollLeftForScrollToColumn", value: function() {
1062
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
1063
+ n && (n.needToResetStyleCache = !1, this.setState(n));
1064
+ } }, { key: "_getCalculatedScrollTop", value: function() {
1065
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
1066
+ return o._getCalculatedScrollTop(e, t);
1067
+ } }, { key: "_resetStyleCache", value: function() {
1068
+ var e = this._styleCache, t = this._cellCache, n = this.props.isScrollingOptOut;
1069
+ this._cellCache = {}, this._styleCache = {};
1070
+ for (var r = this._rowStartIndex; r <= this._rowStopIndex; r++) for (var i = this._columnStartIndex; i <= this._columnStopIndex; i++) {
1071
+ var l = "".concat(r, "-").concat(i);
1072
+ this._styleCache[l] = e[l], n && (this._cellCache[l] = t[l]);
1073
+ }
1074
+ } }, { key: "_updateScrollTopForScrollToRow", value: function() {
1075
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = o._getScrollTopForScrollToRowStateUpdate(e, t);
1076
+ n && (n.needToResetStyleCache = !1, this.setState(n));
1077
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1078
+ var n = {};
1079
+ e.columnCount === 0 && t.scrollLeft !== 0 || e.rowCount === 0 && t.scrollTop !== 0 ? (n.scrollLeft = 0, n.scrollTop = 0) : (e.scrollLeft !== t.scrollLeft && e.scrollToColumn < 0 || e.scrollTop !== t.scrollTop && e.scrollToRow < 0) && Object.assign(n, o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }));
1080
+ var r, i, l = t.instanceProps;
1081
+ return n.needToResetStyleCache = !1, e.columnWidth === l.prevColumnWidth && e.rowHeight === l.prevRowHeight || (n.needToResetStyleCache = !0), l.columnSizeAndPositionManager.configure({ cellCount: e.columnCount, estimatedCellSize: o._getEstimatedColumnSize(e), cellSizeGetter: o._wrapSizeGetter(e.columnWidth) }), l.rowSizeAndPositionManager.configure({ cellCount: e.rowCount, estimatedCellSize: o._getEstimatedRowSize(e), cellSizeGetter: o._wrapSizeGetter(e.rowHeight) }), l.prevColumnCount !== 0 && l.prevRowCount !== 0 || (l.prevColumnCount = 0, l.prevRowCount = 0), e.autoHeight && e.isScrolling === !1 && l.prevIsScrolling === !0 && Object.assign(n, { isScrolling: !1 }), Ye({ cellCount: l.prevColumnCount, cellSize: typeof l.prevColumnWidth == "number" ? l.prevColumnWidth : null, computeMetadataCallback: function() {
1082
+ return l.columnSizeAndPositionManager.resetCell(0);
1083
+ }, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: l.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
1084
+ r = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
1085
+ } }), Ye({ cellCount: l.prevRowCount, cellSize: typeof l.prevRowHeight == "number" ? l.prevRowHeight : null, computeMetadataCallback: function() {
1086
+ return l.rowSizeAndPositionManager.resetCell(0);
1087
+ }, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: l.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
1088
+ i = o._getScrollTopForScrollToRowStateUpdate(e, t);
1089
+ } }), l.prevColumnCount = e.columnCount, l.prevColumnWidth = e.columnWidth, l.prevIsScrolling = e.isScrolling === !0, l.prevRowCount = e.rowCount, l.prevRowHeight = e.rowHeight, l.prevScrollToColumn = e.scrollToColumn, l.prevScrollToRow = e.scrollToRow, l.scrollbarSize = e.getScrollbarSize(), l.scrollbarSize === void 0 ? (l.scrollbarSizeMeasured = !1, l.scrollbarSize = 0) : l.scrollbarSizeMeasured = !0, n.instanceProps = l, j(j(j({}, n), r), i);
1090
+ } }, { key: "_getEstimatedColumnSize", value: function(e) {
1091
+ return typeof e.columnWidth == "number" ? e.columnWidth : e.estimatedColumnSize;
1092
+ } }, { key: "_getEstimatedRowSize", value: function(e) {
1093
+ return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
1094
+ } }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
1095
+ var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, i = { scrollPositionChangeReason: tt };
1096
+ return typeof n == "number" && n >= 0 && (i.scrollDirectionHorizontal = n > t.scrollLeft ? 1 : -1, i.scrollLeft = n), typeof r == "number" && r >= 0 && (i.scrollDirectionVertical = r > t.scrollTop ? 1 : -1, i.scrollTop = r), typeof n == "number" && n >= 0 && n !== t.scrollLeft || typeof r == "number" && r >= 0 && r !== t.scrollTop ? i : {};
1097
+ } }, { key: "_wrapSizeGetter", value: function(e) {
1098
+ return typeof e == "function" ? e : function() {
1099
+ return e;
1100
+ };
1101
+ } }, { key: "_getCalculatedScrollLeft", value: function(e, t) {
1102
+ var n = e.columnCount, r = e.height, i = e.scrollToAlignment, l = e.scrollToColumn, a = e.width, s = t.scrollLeft, c = t.instanceProps;
1103
+ if (n > 0) {
1104
+ var d = n - 1, h = l < 0 ? d : Math.min(d, l), f = c.rowSizeAndPositionManager.getTotalSize(), u = c.scrollbarSizeMeasured && f > r ? c.scrollbarSize : 0;
1105
+ return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({ align: i, containerSize: a - u, currentOffset: s, targetIndex: h });
1106
+ }
1107
+ return 0;
1108
+ } }, { key: "_getScrollLeftForScrollToColumnStateUpdate", value: function(e, t) {
1109
+ var n = t.scrollLeft, r = o._getCalculatedScrollLeft(e, t);
1110
+ return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: r, scrollTop: -1 }) : {};
1111
+ } }, { key: "_getCalculatedScrollTop", value: function(e, t) {
1112
+ var n = e.height, r = e.rowCount, i = e.scrollToAlignment, l = e.scrollToRow, a = e.width, s = t.scrollTop, c = t.instanceProps;
1113
+ if (r > 0) {
1114
+ var d = r - 1, h = l < 0 ? d : Math.min(d, l), f = c.columnSizeAndPositionManager.getTotalSize(), u = c.scrollbarSizeMeasured && f > a ? c.scrollbarSize : 0;
1115
+ return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({ align: i, containerSize: n - u, currentOffset: s, targetIndex: h });
1116
+ }
1117
+ return 0;
1118
+ } }, { key: "_getScrollTopForScrollToRowStateUpdate", value: function(e, t) {
1119
+ var n = t.scrollTop, r = o._getCalculatedScrollTop(e, t);
1120
+ return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
1121
+ } }]);
1122
+ }();
1123
+ function At(o) {
1124
+ var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
1125
+ return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, i + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, i + 1) };
1126
+ }
1127
+ function Re(o, e) {
1128
+ (e == null || e > o.length) && (e = o.length);
1129
+ for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
1130
+ return n;
1131
+ }
1132
+ function Et(o, e) {
1133
+ if (o) {
1134
+ if (typeof o == "string") return Re(o, e);
1135
+ var t = {}.toString.call(o).slice(8, -1);
1136
+ return t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set" ? Array.from(o) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Re(o, e) : void 0;
1137
+ }
1138
+ }
1139
+ function Ht() {
1140
+ try {
1141
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1142
+ }));
1143
+ } catch {
1144
+ }
1145
+ return (Ht = function() {
1146
+ return !!o;
1147
+ })();
1148
+ }
1149
+ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
1150
+ for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, i = o.columnStopIndex, l = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, _ = o.styleCache, m = o.verticalOffsetAdjustment, g = o.visibleColumnIndices, S = o.visibleRowIndices, y = [], v = n.areOffsetsAdjusted() || h.areOffsetsAdjusted(), C = !s && !v, w = f; w <= u; w++) for (var b = h.getSizeAndPositionOfCell(w), R = r; R <= i; R++) {
1151
+ var T = n.getSizeAndPositionOfCell(R), I = R >= g.start && R <= g.stop && w >= S.start && w <= S.stop, k = "".concat(w, "-").concat(R), z = void 0;
1152
+ C && _[k] ? z = _[k] : l && !l.has(w, R) ? z = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (z = { height: b.size, left: T.offset + a, position: "absolute", top: b.offset + m, width: T.size }, _[k] = z);
1153
+ var P = { columnIndex: R, isScrolling: s, isVisible: I, key: k, parent: d, rowIndex: w, style: z }, M = void 0;
1154
+ !c && !s || a || m ? M = t(P) : (e[k] || (e[k] = t(P)), M = e[k]), M != null && M !== !1 && (M.props.role || (M = yt.cloneElement(M, { role: "gridcell" })), y.push(M));
1155
+ }
1156
+ return y;
1157
+ }, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: be, noContentRenderer: function() {
1158
+ return null;
1159
+ }, onScroll: function() {
1160
+ }, onScrollbarPresenceChange: function() {
1161
+ }, onSectionRendered: function() {
1162
+ }, overscanColumnCount: 0, overscanIndicesGetter: function(o) {
1163
+ var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
1164
+ return n === 1 ? { overscanStartIndex: Math.max(0, r), overscanStopIndex: Math.min(e - 1, i + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, i) };
1165
+ }, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), ce(V);
1166
+ var ot = function() {
1167
+ function o(e, t) {
1168
+ var n, r, i, l;
1169
+ return G(this, o), r = this, l = [e, t], i = O(i = o), (n = W(r, Ht() ? Reflect.construct(i, l || [], O(r).constructor) : i.apply(r, l)))._loadMoreRowsMemoizer = Q(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
1170
+ }
1171
+ return D(o, x.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
1172
+ this._loadMoreRowsMemoizer = Q(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1173
+ } }, { key: "render", value: function() {
1174
+ return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
1175
+ } }, { key: "_loadUnloadedRanges", value: function(e) {
1176
+ var t = this, n = this.props.loadMoreRows;
1177
+ e.forEach(function(r) {
1178
+ var i = n(r);
1179
+ i && i.then(function() {
1180
+ var l;
1181
+ (l = { lastRenderedStartIndex: t._lastRenderedStartIndex, lastRenderedStopIndex: t._lastRenderedStopIndex, startIndex: r.startIndex, stopIndex: r.stopIndex }).startIndex > l.lastRenderedStopIndex || l.stopIndex < l.lastRenderedStartIndex || t._registeredChild && function(a) {
1182
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, c = typeof a.recomputeGridSize == "function" ? a.recomputeGridSize : a.recomputeRowHeights;
1183
+ c ? c.call(a, s) : a.forceUpdate();
1184
+ }(t._registeredChild, t._lastRenderedStartIndex);
1185
+ });
1186
+ });
1187
+ } }, { key: "_onRowsRendered", value: function(e) {
1188
+ var t = e.startIndex, n = e.stopIndex;
1189
+ this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
1190
+ } }, { key: "_doStuff", value: function(e, t) {
1191
+ var n, r = this, i = this.props, l = i.isRowLoaded, a = i.minimumBatchSize, s = i.rowCount, c = i.threshold, d = function(f) {
1192
+ for (var u = f.isRowLoaded, _ = f.minimumBatchSize, m = f.rowCount, g = f.stopIndex, S = [], y = null, v = null, C = f.startIndex; C <= g; C++) u({ index: C }) ? v !== null && (S.push({ startIndex: y, stopIndex: v }), y = v = null) : (v = C, y === null && (y = C));
1193
+ if (v !== null) {
1194
+ for (var w = Math.min(Math.max(v, y + _ - 1), m - 1), b = v + 1; b <= w && !u({ index: b }); b++) v = b;
1195
+ S.push({ startIndex: y, stopIndex: v });
1196
+ }
1197
+ if (S.length) for (var R = S[0]; R.stopIndex - R.startIndex + 1 < _ && R.startIndex > 0; ) {
1198
+ var T = R.startIndex - 1;
1199
+ if (u({ index: T })) break;
1200
+ R.startIndex = T;
1201
+ }
1202
+ return S;
1203
+ }({ isRowLoaded: l, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), h = (n = []).concat.apply(n, function(f) {
1204
+ return function(u) {
1205
+ if (Array.isArray(u)) return Re(u);
1206
+ }(f) || function(u) {
1207
+ if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
1208
+ }(f) || Et(f) || function() {
1209
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1210
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1211
+ }();
1212
+ }(d.map(function(f) {
1213
+ return [f.startIndex, f.stopIndex];
1214
+ })));
1215
+ this._loadMoreRowsMemoizer({ callback: function() {
1216
+ r._loadUnloadedRanges(d);
1217
+ }, indices: { squashedUnloadedRanges: h } });
1218
+ } }, { key: "_registerChild", value: function(e) {
1219
+ this._registeredChild = e;
1220
+ } }]);
1221
+ }();
1222
+ function Wt() {
1223
+ try {
1224
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1225
+ }));
1226
+ } catch {
1227
+ }
1228
+ return (Wt = function() {
1229
+ return !!o;
1230
+ })();
1231
+ }
1232
+ p(ot, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), ot.propTypes = {};
1233
+ var Ko = function() {
1234
+ function o() {
1235
+ var e, t, n, r;
1236
+ G(this, o);
1237
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
1238
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Wt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
1239
+ var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, _ = s.key, m = e.props.rowRenderer, g = Object.getOwnPropertyDescriptor(h, "width");
1240
+ return g && g.writable && (h.width = "100%"), m({ index: d, style: h, isScrolling: f, isVisible: u, key: _, parent: c });
1241
+ }), p(e, "_setRef", function(s) {
1242
+ e.Grid = s;
1243
+ }), p(e, "_onScroll", function(s) {
1244
+ var c = s.clientHeight, d = s.scrollHeight, h = s.scrollTop;
1245
+ (0, e.props.onScroll)({ clientHeight: c, scrollHeight: d, scrollTop: h });
1246
+ }), p(e, "_onSectionRendered", function(s) {
1247
+ var c = s.rowOverscanStartIndex, d = s.rowOverscanStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
1248
+ (0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: h, stopIndex: f });
1249
+ }), e;
1250
+ }
1251
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
1252
+ this.Grid && this.Grid.forceUpdate();
1253
+ } }, { key: "getOffsetForRow", value: function(e) {
1254
+ var t = e.alignment, n = e.index;
1255
+ return this.Grid ? this.Grid.getOffsetForCell({ alignment: t, rowIndex: n, columnIndex: 0 }).scrollTop : 0;
1256
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1257
+ var t = e.columnIndex, n = e.rowIndex;
1258
+ this.Grid && this.Grid.invalidateCellSizeAfterRender({ rowIndex: n, columnIndex: t });
1259
+ } }, { key: "measureAllRows", value: function() {
1260
+ this.Grid && this.Grid.measureAllCells();
1261
+ } }, { key: "recomputeGridSize", value: function() {
1262
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r;
1263
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: i, columnIndex: n });
1264
+ } }, { key: "recomputeRowHeights", value: function() {
1265
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1266
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: e, columnIndex: 0 });
1267
+ } }, { key: "scrollToPosition", value: function() {
1268
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1269
+ this.Grid && this.Grid.scrollToPosition({ scrollTop: e });
1270
+ } }, { key: "scrollToRow", value: function() {
1271
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1272
+ this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
1273
+ } }, { key: "render", value: function() {
1274
+ var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, i = e.width, l = N("ReactVirtualized__List", t);
1275
+ return x.createElement(V, U({}, this.props, { autoContainerWidth: !0, cellRenderer: this._cellRenderer, className: l, columnWidth: i, columnCount: 1, noContentRenderer: n, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, scrollToRow: r }));
1276
+ } }]);
1277
+ }();
1278
+ p(Ko, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
1279
+ }, noRowsRenderer: function() {
1280
+ return null;
1281
+ }, onRowsRendered: function() {
1282
+ }, overscanIndicesGetter: At, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
1283
+ const pe = function(o, e, t, n, r) {
1284
+ return typeof t == "function" ? function(i, l, a, s, c) {
1285
+ for (var d = a + 1; l <= a; ) {
1286
+ var h = l + a >>> 1;
1287
+ c(i[h], s) >= 0 ? (d = h, a = h - 1) : l = h + 1;
1288
+ }
1289
+ return d;
1290
+ }(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(i, l, a, s) {
1291
+ for (var c = a + 1; l <= a; ) {
1292
+ var d = l + a >>> 1;
1293
+ i[d] >= s ? (c = d, a = d - 1) : l = d + 1;
1294
+ }
1295
+ return c;
1296
+ }(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
1297
+ };
1298
+ function Le(o, e, t, n, r) {
1299
+ this.mid = o, this.left = e, this.right = t, this.leftPoints = n, this.rightPoints = r, this.count = (e ? e.count : 0) + (t ? t.count : 0) + n.length;
1300
+ }
1301
+ var oe = Le.prototype;
1302
+ function ye(o, e) {
1303
+ o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
1304
+ }
1305
+ function Dt(o, e) {
1306
+ var t = se(e);
1307
+ o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
1308
+ }
1309
+ function nt(o, e) {
1310
+ var t = o.intervals([]);
1311
+ t.push(e), Dt(o, t);
1312
+ }
1313
+ function rt(o, e) {
1314
+ var t = o.intervals([]), n = t.indexOf(e);
1315
+ return n < 0 ? 0 : (t.splice(n, 1), Dt(o, t), 1);
1316
+ }
1317
+ function it(o, e, t) {
1318
+ for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
1319
+ var r = t(o[n]);
1320
+ if (r) return r;
1321
+ }
1322
+ }
1323
+ function lt(o, e, t) {
1324
+ for (var n = o.length - 1; n >= 0 && o[n][1] >= e; --n) {
1325
+ var r = t(o[n]);
1326
+ if (r) return r;
1327
+ }
1328
+ }
1329
+ function st(o, e) {
1330
+ for (var t = 0; t < o.length; ++t) {
1331
+ var n = e(o[t]);
1332
+ if (n) return n;
1333
+ }
1334
+ }
1335
+ function Xo(o, e) {
1336
+ return o - e;
1337
+ }
1338
+ function Te(o, e) {
1339
+ return o[0] - e[0] || o[1] - e[1];
1340
+ }
1341
+ function ze(o, e) {
1342
+ return o[1] - e[1] || o[0] - e[0];
1343
+ }
1344
+ function se(o) {
1345
+ if (o.length === 0) return null;
1346
+ for (var e = [], t = 0; t < o.length; ++t) e.push(o[t][0], o[t][1]);
1347
+ e.sort(Xo);
1348
+ var n = e[e.length >> 1], r = [], i = [], l = [];
1349
+ for (t = 0; t < o.length; ++t) {
1350
+ var a = o[t];
1351
+ a[1] < n ? r.push(a) : n < a[0] ? i.push(a) : l.push(a);
1352
+ }
1353
+ var s = l, c = l.slice();
1354
+ return s.sort(Te), c.sort(ze), new Le(n, se(r), se(i), s, c);
1355
+ }
1356
+ function jt(o) {
1357
+ this.root = o;
1358
+ }
1359
+ oe.intervals = function(o) {
1360
+ return o.push.apply(o, this.leftPoints), this.left && this.left.intervals(o), this.right && this.right.intervals(o), o;
1361
+ }, oe.insert = function(o) {
1362
+ var e = this.count - this.leftPoints.length;
1363
+ if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? nt(this, o) : this.left.insert(o) : this.left = se([o]);
1364
+ else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? nt(this, o) : this.right.insert(o) : this.right = se([o]);
1365
+ else {
1366
+ var t = pe(this.leftPoints, o, Te), n = pe(this.rightPoints, o, ze);
1367
+ this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
1368
+ }
1369
+ }, oe.remove = function(o) {
1370
+ var e = this.count - this.leftPoints;
1371
+ if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? rt(this, o) : (i = this.left.remove(o)) === 2 ? (this.left = null, this.count -= 1, 1) : (i === 1 && (this.count -= 1), i) : 0;
1372
+ if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? rt(this, o) : (i = this.right.remove(o)) === 2 ? (this.right = null, this.count -= 1, 1) : (i === 1 && (this.count -= 1), i) : 0;
1373
+ if (this.count === 1) return this.leftPoints[0] === o ? 2 : 0;
1374
+ if (this.leftPoints.length === 1 && this.leftPoints[0] === o) {
1375
+ if (this.left && this.right) {
1376
+ for (var t = this, n = this.left; n.right; ) t = n, n = n.right;
1377
+ if (t === this) n.right = this.right;
1378
+ else {
1379
+ var r = this.left, i = this.right;
1380
+ t.count -= n.count, t.right = n.left, n.left = r, n.right = i;
1381
+ }
1382
+ ye(this, n), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
1383
+ } else this.left ? ye(this, this.left) : ye(this, this.right);
1384
+ return 1;
1385
+ }
1386
+ for (r = pe(this.leftPoints, o, Te); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
1387
+ for (this.count -= 1, this.leftPoints.splice(r, 1), i = pe(this.rightPoints, o, ze); i < this.rightPoints.length && this.rightPoints[i][1] === o[1]; ++i) if (this.rightPoints[i] === o) return this.rightPoints.splice(i, 1), 1;
1388
+ }
1389
+ return 0;
1390
+ }, oe.queryPoint = function(o, e) {
1391
+ return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t : it(this.leftPoints, o, e) : o > this.mid ? this.right && (t = this.right.queryPoint(o, e)) ? t : lt(this.rightPoints, o, e) : st(this.leftPoints, e);
1392
+ var t;
1393
+ }, oe.queryInterval = function(o, e, t) {
1394
+ var n;
1395
+ return o < this.mid && this.left && (n = this.left.queryInterval(o, e, t)) || e > this.mid && this.right && (n = this.right.queryInterval(o, e, t)) ? n : e < this.mid ? it(this.leftPoints, e, t) : o > this.mid ? lt(this.rightPoints, o, t) : st(this.leftPoints, t);
1396
+ };
1397
+ var X = jt.prototype;
1398
+ X.insert = function(o) {
1399
+ this.root ? this.root.insert(o) : this.root = new Le(o[0], null, null, [o], [o]);
1400
+ }, X.remove = function(o) {
1401
+ if (this.root) {
1402
+ var e = this.root.remove(o);
1403
+ return e === 2 && (this.root = null), e !== 0;
1404
+ }
1405
+ return !1;
1406
+ }, X.queryPoint = function(o, e) {
1407
+ if (this.root) return this.root.queryPoint(o, e);
1408
+ }, X.queryInterval = function(o, e, t) {
1409
+ if (o <= e && this.root) return this.root.queryInterval(o, e, t);
1410
+ }, Object.defineProperty(X, "count", { get: function() {
1411
+ return this.root ? this.root.count : 0;
1412
+ } }), Object.defineProperty(X, "intervals", { get: function() {
1413
+ return this.root ? this.root.intervals([]) : [];
1414
+ } });
1415
+ var we = A(function o() {
1416
+ G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new jt(null)), p(this, "_leftMap", {});
1417
+ }, [{ key: "estimateTotalHeight", value: function(o, e, t) {
1418
+ var n = o - this.count;
1419
+ return this.tallestColumnSize + Math.ceil(n / e) * t;
1420
+ } }, { key: "range", value: function(o, e, t) {
1421
+ var n = this;
1422
+ this._intervalTree.queryInterval(o, o + e, function(r) {
1423
+ var i = function(s, c) {
1424
+ return function(d) {
1425
+ if (Array.isArray(d)) return d;
1426
+ }(s) || function(d, h) {
1427
+ var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
1428
+ if (f != null) {
1429
+ var u, _, m, g, S = [], y = !0, v = !1;
1430
+ try {
1431
+ if (m = (f = f.call(d)).next, h !== 0) for (; !(y = (u = m.call(f)).done) && (S.push(u.value), S.length !== h); y = !0) ;
1432
+ } catch (C) {
1433
+ v = !0, _ = C;
1434
+ } finally {
1435
+ try {
1436
+ if (!y && f.return != null && (g = f.return(), Object(g) !== g)) return;
1437
+ } finally {
1438
+ if (v) throw _;
1439
+ }
1440
+ }
1441
+ return S;
1442
+ }
1443
+ }(s, c) || Et(s, c) || function() {
1444
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1445
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1446
+ }();
1447
+ }(r, 3), l = i[0];
1448
+ i[1];
1449
+ var a = i[2];
1450
+ return t(a, n._leftMap[a], l);
1451
+ });
1452
+ } }, { key: "setPosition", value: function(o, e, t, n) {
1453
+ this._intervalTree.insert([t, t + n, o]), this._leftMap[o] = e;
1454
+ var r = this._columnSizeMap, i = r[e];
1455
+ r[e] = i === void 0 ? t + n : Math.max(i, t + n);
1456
+ } }, { key: "count", get: function() {
1457
+ return this._intervalTree.count;
1458
+ } }, { key: "shortestColumnSize", get: function() {
1459
+ var o = this._columnSizeMap, e = 0;
1460
+ for (var t in o) {
1461
+ var n = o[t];
1462
+ e = e === 0 ? n : Math.min(e, n);
1463
+ }
1464
+ return e;
1465
+ } }, { key: "tallestColumnSize", get: function() {
1466
+ var o = this._columnSizeMap, e = 0;
1467
+ for (var t in o) {
1468
+ var n = o[t];
1469
+ e = Math.max(e, n);
1470
+ }
1471
+ return e;
1472
+ } }]);
1473
+ function at(o, e) {
1474
+ var t = Object.keys(o);
1475
+ if (Object.getOwnPropertySymbols) {
1476
+ var n = Object.getOwnPropertySymbols(o);
1477
+ e && (n = n.filter(function(r) {
1478
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
1479
+ })), t.push.apply(t, n);
1480
+ }
1481
+ return t;
1482
+ }
1483
+ function Yo(o) {
1484
+ for (var e = 1; e < arguments.length; e++) {
1485
+ var t = arguments[e] != null ? arguments[e] : {};
1486
+ e % 2 ? at(Object(t), !0).forEach(function(n) {
1487
+ p(o, n, t[n]);
1488
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : at(Object(t)).forEach(function(n) {
1489
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1490
+ });
1491
+ }
1492
+ return o;
1493
+ }
1494
+ function Ft() {
1495
+ try {
1496
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1497
+ }));
1498
+ } catch {
1499
+ }
1500
+ return (Ft = function() {
1501
+ return !!o;
1502
+ })();
1503
+ }
1504
+ var ct = function() {
1505
+ function o() {
1506
+ var e, t, n, r;
1507
+ G(this, o);
1508
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
1509
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Ft() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollTop: 0 }), p(e, "_debounceResetIsScrollingId", void 0), p(e, "_invalidateOnUpdateStartIndex", null), p(e, "_invalidateOnUpdateStopIndex", null), p(e, "_positionCache", new we()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
1510
+ e.setState({ isScrolling: !1 });
1511
+ }), p(e, "_setScrollingContainerRef", function(s) {
1512
+ e._scrollingContainer = s;
1513
+ }), p(e, "_onScroll", function(s) {
1514
+ var c = e.props.height, d = s.currentTarget.scrollTop, h = Math.min(Math.max(0, e._getEstimatedTotalHeight() - c), d);
1515
+ d === h && (e._debounceResetIsScrolling(), e.state.scrollTop !== h && e.setState({ isScrolling: !0, scrollTop: h }));
1516
+ }), e;
1517
+ }
1518
+ return D(o, x.PureComponent), A(o, [{ key: "clearCellPositions", value: function() {
1519
+ this._positionCache = new we(), this.forceUpdate();
1520
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1521
+ var t = e.rowIndex;
1522
+ this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
1523
+ } }, { key: "recomputeCellPositions", value: function() {
1524
+ var e = this._positionCache.count - 1;
1525
+ this._positionCache = new we(), this._populatePositionCache(0, e), this.forceUpdate();
1526
+ } }, { key: "componentDidMount", value: function() {
1527
+ this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
1528
+ } }, { key: "componentDidUpdate", value: function(e, t) {
1529
+ this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback(), this.props.scrollTop !== e.scrollTop && this._debounceResetIsScrolling();
1530
+ } }, { key: "componentWillUnmount", value: function() {
1531
+ this._debounceResetIsScrollingId && ee(this._debounceResetIsScrollingId);
1532
+ } }, { key: "render", value: function() {
1533
+ var e, t = this, n = this.props, r = n.autoHeight, i = n.cellCount, l = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, _ = n.style, m = n.tabIndex, g = n.width, S = n.rowDirection, y = this.state, v = y.isScrolling, C = y.scrollTop, w = [], b = this._getEstimatedTotalHeight(), R = this._positionCache.shortestColumnSize, T = this._positionCache.count, I = 0;
1534
+ if (this._positionCache.range(Math.max(0, C - f), c + 2 * f, function(P, M, H) {
1535
+ e === void 0 ? (I = P, e = P) : (I = Math.min(I, P), e = Math.max(e, P)), w.push(a({ index: P, isScrolling: v, key: h(P), parent: t, style: p(p(p(p({ height: l.getHeight(P) }, S === "ltr" ? "left" : "right", M), "position", "absolute"), "top", H), "width", l.getWidth(P)) }));
1536
+ }), R < C + c + f && T < i) for (var k = Math.min(i - T, Math.ceil((C + c + f - R) / l.defaultHeight * g / l.defaultWidth)), z = T; z < T + k; z++) e = z, w.push(a({ index: z, isScrolling: v, key: h(z), parent: this, style: { width: l.getWidth(z) } }));
1537
+ return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Yo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: b < c ? "hidden" : "auto", position: "relative", width: g, WebkitOverflowScrolling: "touch", willChange: "transform" }, _), tabIndex: m }, x.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: b, maxWidth: "100%", maxHeight: b, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" } }, w));
1538
+ } }, { key: "_checkInvalidateOnUpdate", value: function() {
1539
+ if (typeof this._invalidateOnUpdateStartIndex == "number") {
1540
+ var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
1541
+ this._invalidateOnUpdateStartIndex = null, this._invalidateOnUpdateStopIndex = null, this._populatePositionCache(e, t), this.forceUpdate();
1542
+ }
1543
+ } }, { key: "_debounceResetIsScrolling", value: function() {
1544
+ var e = this.props.scrollingResetTimeInterval;
1545
+ this._debounceResetIsScrollingId && ee(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = Me(this._debounceResetIsScrollingCallback, e);
1546
+ } }, { key: "_getEstimatedTotalHeight", value: function() {
1547
+ var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width, i = Math.max(1, Math.floor(r / n.defaultWidth));
1548
+ return this._positionCache.estimateTotalHeight(t, i, n.defaultHeight);
1549
+ } }, { key: "_invokeOnScrollCallback", value: function() {
1550
+ var e = this.props, t = e.height, n = e.onScroll, r = this.state.scrollTop;
1551
+ this._onScrollMemoized !== r && (n({ clientHeight: t, scrollHeight: this._getEstimatedTotalHeight(), scrollTop: r }), this._onScrollMemoized = r);
1552
+ } }, { key: "_invokeOnCellsRenderedCallback", value: function() {
1553
+ this._startIndexMemoized === this._startIndex && this._stopIndexMemoized === this._stopIndex || ((0, this.props.onCellsRendered)({ startIndex: this._startIndex, stopIndex: this._stopIndex }), this._startIndexMemoized = this._startIndex, this._stopIndexMemoized = this._stopIndex);
1554
+ } }, { key: "_populatePositionCache", value: function(e, t) {
1555
+ for (var n = this.props, r = n.cellMeasurerCache, i = n.cellPositioner, l = e; l <= t; l++) {
1556
+ var a = i(l), s = a.left, c = a.top;
1557
+ this._positionCache.setPosition(l, s, c, r.getHeight(l));
1558
+ }
1559
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1560
+ return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
1561
+ } }]);
1562
+ }();
1563
+ function dt() {
1564
+ }
1565
+ p(ct, "defaultProps", { autoHeight: !1, keyMapper: function(o) {
1566
+ return o;
1567
+ }, onCellsRendered: dt, onScroll: dt, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), ce(ct);
1568
+ var Ce = A(function o() {
1569
+ var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1570
+ G(this, o), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
1571
+ var c = s.index;
1572
+ e._cellMeasurerCache.columnWidth({ index: c + e._columnIndexOffset });
1573
+ }), p(this, "rowHeight", function(s) {
1574
+ var c = s.index;
1575
+ e._cellMeasurerCache.rowHeight({ index: c + e._rowIndexOffset });
1576
+ });
1577
+ var n = t.cellMeasurerCache, r = t.columnIndexOffset, i = r === void 0 ? 0 : r, l = t.rowIndexOffset, a = l === void 0 ? 0 : l;
1578
+ this._cellMeasurerCache = n, this._columnIndexOffset = i, this._rowIndexOffset = a;
1579
+ }, [{ key: "clear", value: function(o, e) {
1580
+ this._cellMeasurerCache.clear(o + this._rowIndexOffset, e + this._columnIndexOffset);
1581
+ } }, { key: "clearAll", value: function() {
1582
+ this._cellMeasurerCache.clearAll();
1583
+ } }, { key: "defaultHeight", get: function() {
1584
+ return this._cellMeasurerCache.defaultHeight;
1585
+ } }, { key: "defaultWidth", get: function() {
1586
+ return this._cellMeasurerCache.defaultWidth;
1587
+ } }, { key: "hasFixedHeight", value: function() {
1588
+ return this._cellMeasurerCache.hasFixedHeight();
1589
+ } }, { key: "hasFixedWidth", value: function() {
1590
+ return this._cellMeasurerCache.hasFixedWidth();
1591
+ } }, { key: "getHeight", value: function(o) {
1592
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1593
+ return this._cellMeasurerCache.getHeight(o + this._rowIndexOffset, e + this._columnIndexOffset);
1594
+ } }, { key: "getWidth", value: function(o) {
1595
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1596
+ return this._cellMeasurerCache.getWidth(o + this._rowIndexOffset, e + this._columnIndexOffset);
1597
+ } }, { key: "has", value: function(o) {
1598
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1599
+ return this._cellMeasurerCache.has(o + this._rowIndexOffset, e + this._columnIndexOffset);
1600
+ } }, { key: "set", value: function(o, e, t, n) {
1601
+ this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
1602
+ } }]), Jo = ["rowIndex"], Zo = ["columnIndex", "rowIndex"], Qo = ["columnIndex"], en = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
1603
+ function ut(o, e) {
1604
+ var t = Object.keys(o);
1605
+ if (Object.getOwnPropertySymbols) {
1606
+ var n = Object.getOwnPropertySymbols(o);
1607
+ e && (n = n.filter(function(r) {
1608
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
1609
+ })), t.push.apply(t, n);
1610
+ }
1611
+ return t;
1612
+ }
1613
+ function L(o) {
1614
+ for (var e = 1; e < arguments.length; e++) {
1615
+ var t = arguments[e] != null ? arguments[e] : {};
1616
+ e % 2 ? ut(Object(t), !0).forEach(function(n) {
1617
+ p(o, n, t[n]);
1618
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ut(Object(t)).forEach(function(n) {
1619
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1620
+ });
1621
+ }
1622
+ return o;
1623
+ }
1624
+ function Nt() {
1625
+ try {
1626
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1627
+ }));
1628
+ } catch {
1629
+ }
1630
+ return (Nt = function() {
1631
+ return !!o;
1632
+ })();
1633
+ }
1634
+ var xe = function() {
1635
+ function o(e, t) {
1636
+ var n, r, i, l;
1637
+ G(this, o), r = this, l = [e, t], i = O(i = o), p(n = W(r, Nt() ? Reflect.construct(i, l || [], O(r).constructor) : i.apply(r, l)), "state", { scrollLeft: 0, scrollTop: 0, scrollbarSize: 0, showHorizontalScrollbar: !1, showVerticalScrollbar: !1 }), p(n, "_deferredInvalidateColumnIndex", null), p(n, "_deferredInvalidateRowIndex", null), p(n, "_bottomLeftGridRef", function(d) {
1638
+ n._bottomLeftGrid = d;
1639
+ }), p(n, "_bottomRightGridRef", function(d) {
1640
+ n._bottomRightGrid = d;
1641
+ }), p(n, "_cellRendererBottomLeftGrid", function(d) {
1642
+ var h = d.rowIndex, f = ne(d, Jo), u = n.props, _ = u.cellRenderer, m = u.fixedRowCount;
1643
+ return h === u.rowCount - m ? x.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { height: 20 }) }) : _(L(L({}, f), {}, { parent: n, rowIndex: h + m }));
1644
+ }), p(n, "_cellRendererBottomRightGrid", function(d) {
1645
+ var h = d.columnIndex, f = d.rowIndex, u = ne(d, Zo), _ = n.props, m = _.cellRenderer, g = _.fixedColumnCount, S = _.fixedRowCount;
1646
+ return m(L(L({}, u), {}, { columnIndex: h + g, parent: n, rowIndex: f + S }));
1647
+ }), p(n, "_cellRendererTopRightGrid", function(d) {
1648
+ var h = d.columnIndex, f = ne(d, Qo), u = n.props, _ = u.cellRenderer, m = u.columnCount, g = u.fixedColumnCount;
1649
+ return h === m - g ? x.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { width: 20 }) }) : _(L(L({}, f), {}, { columnIndex: h + g, parent: n }));
1650
+ }), p(n, "_columnWidthRightGrid", function(d) {
1651
+ var h = d.index, f = n.props, u = f.columnCount, _ = f.fixedColumnCount, m = f.columnWidth, g = n.state, S = g.scrollbarSize;
1652
+ return g.showHorizontalScrollbar && h === u - _ ? S : typeof m == "function" ? m({ index: h + _ }) : m;
1653
+ }), p(n, "_onScroll", function(d) {
1654
+ var h = d.scrollLeft, f = d.scrollTop;
1655
+ n.setState({ scrollLeft: h, scrollTop: f });
1656
+ var u = n.props.onScroll;
1657
+ u && u(d);
1658
+ }), p(n, "_onScrollbarPresenceChange", function(d) {
1659
+ var h = d.horizontal, f = d.size, u = d.vertical, _ = n.state, m = _.showHorizontalScrollbar, g = _.showVerticalScrollbar;
1660
+ if (h !== m || u !== g) {
1661
+ n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
1662
+ var S = n.props.onScrollbarPresenceChange;
1663
+ typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
1664
+ }
1665
+ }), p(n, "_onScrollLeft", function(d) {
1666
+ var h = d.scrollLeft;
1667
+ n._onScroll({ scrollLeft: h, scrollTop: n.state.scrollTop });
1668
+ }), p(n, "_onScrollTop", function(d) {
1669
+ var h = d.scrollTop;
1670
+ n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
1671
+ }), p(n, "_rowHeightBottomGrid", function(d) {
1672
+ var h = d.index, f = n.props, u = f.fixedRowCount, _ = f.rowCount, m = f.rowHeight, g = n.state, S = g.scrollbarSize;
1673
+ return g.showVerticalScrollbar && h === _ - u ? S : typeof m == "function" ? m({ index: h + u }) : m;
1674
+ }), p(n, "_topLeftGridRef", function(d) {
1675
+ n._topLeftGrid = d;
1676
+ }), p(n, "_topRightGridRef", function(d) {
1677
+ n._topRightGrid = d;
1678
+ });
1679
+ var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
1680
+ return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new Ce({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, n._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new Ce({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, n._deferredMeasurementCacheTopRightGrid = s > 0 ? new Ce({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), n;
1681
+ }
1682
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrids", value: function() {
1683
+ this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
1684
+ } }, { key: "invalidateCellSizeAfterRender", value: function() {
1685
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r;
1686
+ this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, n) : n, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, i) : i;
1687
+ } }, { key: "measureAllCells", value: function() {
1688
+ this._bottomLeftGrid && this._bottomLeftGrid.measureAllCells(), this._bottomRightGrid && this._bottomRightGrid.measureAllCells(), this._topLeftGrid && this._topLeftGrid.measureAllCells(), this._topRightGrid && this._topRightGrid.measureAllCells();
1689
+ } }, { key: "recomputeGridSize", value: function() {
1690
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r, l = this.props, a = l.fixedColumnCount, s = l.fixedRowCount, c = Math.max(0, n - a), d = Math.max(0, i - s);
1691
+ this._bottomLeftGrid && this._bottomLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: d }), this._bottomRightGrid && this._bottomRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: d }), this._topLeftGrid && this._topLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: i }), this._topRightGrid && this._topRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: i }), this._leftGridWidth = null, this._topGridHeight = null, this._maybeCalculateCachedStyles(!0);
1692
+ } }, { key: "componentDidMount", value: function() {
1693
+ var e = this.props, t = e.scrollLeft, n = e.scrollTop;
1694
+ if (t > 0 || n > 0) {
1695
+ var r = {};
1696
+ t > 0 && (r.scrollLeft = t), n > 0 && (r.scrollTop = n), this.setState(r);
1697
+ }
1698
+ this._handleInvalidatedGridSize();
1699
+ } }, { key: "componentDidUpdate", value: function() {
1700
+ this._handleInvalidatedGridSize();
1701
+ } }, { key: "render", value: function() {
1702
+ var e = this.props, t = e.onScroll, n = e.onSectionRendered;
1703
+ e.onScrollbarPresenceChange, e.scrollLeft;
1704
+ var r = e.scrollToColumn;
1705
+ e.scrollTop;
1706
+ var i = e.scrollToRow, l = ne(e, en);
1707
+ if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
1708
+ var a = this.state, s = a.scrollLeft, c = a.scrollTop;
1709
+ return x.createElement("div", { style: this._containerOuterStyle }, x.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(l), this._renderTopRightGrid(L(L({}, l), {}, { onScroll: t, scrollLeft: s }))), x.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(L(L({}, l), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(L(L({}, l), {}, { onScroll: t, onSectionRendered: n, scrollLeft: s, scrollToColumn: r, scrollToRow: i, scrollTop: c }))));
1710
+ } }, { key: "_getBottomGridHeight", value: function(e) {
1711
+ return e.height - this._getTopGridHeight(e);
1712
+ } }, { key: "_getLeftGridWidth", value: function(e) {
1713
+ var t = e.fixedColumnCount, n = e.columnWidth;
1714
+ if (this._leftGridWidth == null) if (typeof n == "function") {
1715
+ for (var r = 0, i = 0; i < t; i++) r += n({ index: i });
1716
+ this._leftGridWidth = r;
1717
+ } else this._leftGridWidth = n * t;
1718
+ return this._leftGridWidth;
1719
+ } }, { key: "_getRightGridWidth", value: function(e) {
1720
+ return e.width - this._getLeftGridWidth(e);
1721
+ } }, { key: "_getTopGridHeight", value: function(e) {
1722
+ var t = e.fixedRowCount, n = e.rowHeight;
1723
+ if (this._topGridHeight == null) if (typeof n == "function") {
1724
+ for (var r = 0, i = 0; i < t; i++) r += n({ index: i });
1725
+ this._topGridHeight = r;
1726
+ } else this._topGridHeight = n * t;
1727
+ return this._topGridHeight;
1728
+ } }, { key: "_handleInvalidatedGridSize", value: function() {
1729
+ if (typeof this._deferredInvalidateColumnIndex == "number") {
1730
+ var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
1731
+ this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
1732
+ }
1733
+ } }, { key: "_maybeCalculateCachedStyles", value: function(e) {
1734
+ var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, i = t.enableFixedRowScroll, l = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, _ = t.styleTopRightGrid, m = t.width, g = e || l !== this._lastRenderedHeight || m !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, y = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
1735
+ (e || g || d !== this._lastRenderedStyle) && (this._containerOuterStyle = L({ height: l, overflow: "visible", width: m }, d)), (e || g || y) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: m }, this._containerBottomStyle = { height: l - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: m }), (e || h !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = L({ left: 0, overflowX: "hidden", overflowY: r ? "auto" : "hidden", position: "absolute" }, h)), (e || S || f !== this._lastRenderedStyleBottomRightGrid) && (this._bottomRightGridStyle = L({ left: this._getLeftGridWidth(this.props), position: "absolute" }, f)), (e || u !== this._lastRenderedStyleTopLeftGrid) && (this._topLeftGridStyle = L({ left: 0, overflowX: "hidden", overflowY: "hidden", position: "absolute", top: 0 }, u)), (e || S || _ !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = L({ left: this._getLeftGridWidth(this.props), overflowX: i ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, _)), this._lastRenderedColumnWidth = n, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = l, this._lastRenderedRowHeight = c, this._lastRenderedStyle = d, this._lastRenderedStyleBottomLeftGrid = h, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = u, this._lastRenderedStyleTopRightGrid = _, this._lastRenderedWidth = m;
1736
+ } }, { key: "_prepareForRender", value: function() {
1737
+ this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
1738
+ } }, { key: "_renderBottomLeftGrid", value: function(e) {
1739
+ var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
1740
+ if (!n) return null;
1741
+ var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = l ? d + h : d, u = x.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomLeftGrid, className: this.props.classNameBottomLeftGrid, columnCount: n, deferredMeasurementCache: this._deferredMeasurementCacheBottomLeftGrid, height: c, onScroll: t ? this._onScrollTop : void 0, ref: this._bottomLeftGridRef, rowCount: Math.max(0, i - r) + s, rowHeight: this._rowHeightBottomGrid, style: this._bottomLeftGridStyle, tabIndex: null, width: f }));
1742
+ return l ? x.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: L(L({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, u) : u;
1743
+ } }, { key: "_renderBottomRightGrid", value: function(e) {
1744
+ var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.scrollToColumn, a = e.scrollToRow;
1745
+ return x.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomRightGrid, className: this.props.classNameBottomRightGrid, columnCount: Math.max(0, t - n), columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheBottomRightGrid, height: this._getBottomGridHeight(e), onScroll: this._onScroll, onScrollbarPresenceChange: this._onScrollbarPresenceChange, ref: this._bottomRightGridRef, rowCount: Math.max(0, i - r), rowHeight: this._rowHeightBottomGrid, scrollToColumn: l - n, scrollToRow: a - r, style: this._bottomRightGridStyle, width: this._getRightGridWidth(e) }));
1746
+ } }, { key: "_renderTopLeftGrid", value: function(e) {
1747
+ var t = e.fixedColumnCount, n = e.fixedRowCount;
1748
+ return t && n ? x.createElement(V, U({}, e, { className: this.props.classNameTopLeftGrid, columnCount: t, height: this._getTopGridHeight(e), ref: this._topLeftGridRef, rowCount: n, style: this._topLeftGridStyle, tabIndex: null, width: this._getLeftGridWidth(e) })) : null;
1749
+ } }, { key: "_renderTopRightGrid", value: function(e) {
1750
+ var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount, i = e.fixedRowCount, l = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, d = s.scrollbarSize;
1751
+ if (!i) return null;
1752
+ var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), _ = c ? d : 0, m = f, g = this._topRightGridStyle;
1753
+ a && (m = f + _, g = L(L({}, this._topRightGridStyle), {}, { left: 0 }));
1754
+ var S = x.createElement(V, U({}, e, { cellRenderer: this._cellRendererTopRightGrid, className: this.props.classNameTopRightGrid, columnCount: Math.max(0, t - r) + h, columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheTopRightGrid, height: m, onScroll: n ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: i, scrollLeft: l, style: g, tabIndex: null, width: u }));
1755
+ return a ? x.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: L(L({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
1756
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1757
+ return e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null && e.scrollLeft >= 0 ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null && e.scrollTop >= 0 ? e.scrollTop : t.scrollTop } : null;
1758
+ } }]);
1759
+ }();
1760
+ function Bt() {
1761
+ try {
1762
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1763
+ }));
1764
+ } catch {
1765
+ }
1766
+ return (Bt = function() {
1767
+ return !!o;
1768
+ })();
1769
+ }
1770
+ p(xe, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "", classNameTopLeftGrid: "", classNameTopRightGrid: "", enableFixedColumnScroll: !1, enableFixedRowScroll: !1, fixedColumnCount: 0, fixedRowCount: 0, scrollToColumn: -1, scrollToRow: -1, style: {}, styleBottomLeftGrid: {}, styleBottomRightGrid: {}, styleTopLeftGrid: {}, styleTopRightGrid: {}, hideTopRightGridScrollbar: !1, hideBottomLeftGridScrollbar: !1 }), xe.propTypes = {}, ce(xe), function() {
1771
+ function o(e, t) {
1772
+ var n, r, i, l;
1773
+ return G(this, o), r = this, l = [e, t], i = O(i = o), (n = W(r, Bt() ? Reflect.construct(i, l || [], O(r).constructor) : i.apply(r, l))).state = { clientHeight: 0, clientWidth: 0, scrollHeight: 0, scrollLeft: 0, scrollTop: 0, scrollWidth: 0 }, n._onScroll = n._onScroll.bind(n), n;
1774
+ }
1775
+ return D(o, x.PureComponent), A(o, [{ key: "render", value: function() {
1776
+ var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth, i = t.scrollHeight, l = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
1777
+ return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: i, scrollLeft: l, scrollTop: a, scrollWidth: s });
1778
+ } }, { key: "_onScroll", value: function(e) {
1779
+ var t = e.clientHeight, n = e.clientWidth, r = e.scrollHeight, i = e.scrollLeft, l = e.scrollTop, a = e.scrollWidth;
1780
+ this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft: i, scrollTop: l, scrollWidth: a });
1781
+ } }]);
1782
+ }().propTypes = {};
1783
+ var ae = "ASC", Ie = "DESC";
1784
+ function Ut(o) {
1785
+ var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === ae, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === Ie });
1786
+ return x.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === ae ? x.createElement("path", { d: "M7 14l5-5 5 5z" }) : x.createElement("path", { d: "M7 10l5 5 5-5z" }), x.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
1787
+ }
1788
+ function Vt() {
1789
+ try {
1790
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1791
+ }));
1792
+ } catch {
1793
+ }
1794
+ return (Vt = function() {
1795
+ return !!o;
1796
+ })();
1797
+ }
1798
+ Ut.propTypes = {};
1799
+ var ve = function() {
1800
+ function o() {
1801
+ return G(this, o), e = this, n = arguments, t = O(t = o), W(e, Vt() ? Reflect.construct(t, n || [], O(e).constructor) : t.apply(e, n));
1802
+ var e, t, n;
1803
+ }
1804
+ return D(o, x.Component), A(o);
1805
+ }();
1806
+ function ht(o, e) {
1807
+ var t = Object.keys(o);
1808
+ if (Object.getOwnPropertySymbols) {
1809
+ var n = Object.getOwnPropertySymbols(o);
1810
+ e && (n = n.filter(function(r) {
1811
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
1812
+ })), t.push.apply(t, n);
1813
+ }
1814
+ return t;
1815
+ }
1816
+ function B(o) {
1817
+ for (var e = 1; e < arguments.length; e++) {
1818
+ var t = arguments[e] != null ? arguments[e] : {};
1819
+ e % 2 ? ht(Object(t), !0).forEach(function(n) {
1820
+ p(o, n, t[n]);
1821
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
1822
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1823
+ });
1824
+ }
1825
+ return o;
1826
+ }
1827
+ function $t() {
1828
+ try {
1829
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1830
+ }));
1831
+ } catch {
1832
+ }
1833
+ return ($t = function() {
1834
+ return !!o;
1835
+ })();
1836
+ }
1837
+ p(ve, "defaultProps", { cellDataGetter: function(o) {
1838
+ var e = o.dataKey, t = o.rowData;
1839
+ return typeof t.get == "function" ? t.get(e) : t[e];
1840
+ }, cellRenderer: function(o) {
1841
+ var e = o.cellData;
1842
+ return e == null ? "" : String(e);
1843
+ }, defaultSortDirection: ae, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
1844
+ var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, i = n === e, l = [x.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
1845
+ return i && l.push(x.createElement(Ut, { key: "SortIndicator", sortDirection: r })), l;
1846
+ }, style: {} }), ve.propTypes = {};
1847
+ var Pe = function() {
1848
+ function o(e) {
1849
+ var t, n, r, i;
1850
+ return G(this, o), n = this, i = [e], r = O(r = o), (t = W(n, $t() ? Reflect.construct(r, i || [], O(n).constructor) : r.apply(n, i))).state = { scrollbarWidth: 0 }, t._createColumn = t._createColumn.bind(t), t._createRow = t._createRow.bind(t), t._onScroll = t._onScroll.bind(t), t._onSectionRendered = t._onSectionRendered.bind(t), t._setRef = t._setRef.bind(t), t._setGridElementRef = t._setGridElementRef.bind(t), t;
1851
+ }
1852
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
1853
+ this.Grid && this.Grid.forceUpdate();
1854
+ } }, { key: "getOffsetForRow", value: function(e) {
1855
+ var t = e.alignment, n = e.index;
1856
+ return this.Grid ? this.Grid.getOffsetForCell({ alignment: t, rowIndex: n }).scrollTop : 0;
1857
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1858
+ var t = e.columnIndex, n = e.rowIndex;
1859
+ this.Grid && this.Grid.invalidateCellSizeAfterRender({ rowIndex: n, columnIndex: t });
1860
+ } }, { key: "measureAllRows", value: function() {
1861
+ this.Grid && this.Grid.measureAllCells();
1862
+ } }, { key: "recomputeGridSize", value: function() {
1863
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r;
1864
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: i, columnIndex: n });
1865
+ } }, { key: "recomputeRowHeights", value: function() {
1866
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1867
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: e });
1868
+ } }, { key: "scrollToPosition", value: function() {
1869
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1870
+ this.Grid && this.Grid.scrollToPosition({ scrollTop: e });
1871
+ } }, { key: "scrollToRow", value: function() {
1872
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1873
+ this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
1874
+ } }, { key: "getScrollbarWidth", value: function() {
1875
+ if (this.GridElement) {
1876
+ var e = this.GridElement, t = e.clientWidth || 0;
1877
+ return (e.offsetWidth || 0) - t;
1878
+ }
1879
+ return 0;
1880
+ } }, { key: "componentDidMount", value: function() {
1881
+ this._setScrollbarWidth();
1882
+ } }, { key: "componentDidUpdate", value: function() {
1883
+ this._setScrollbarWidth();
1884
+ } }, { key: "render", value: function() {
1885
+ var e = this, t = this.props, n = t.children, r = t.className, i = t.disableHeader, l = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, _ = t.rowStyle, m = t.scrollToIndex, g = t.style, S = t.width, y = this.state.scrollbarWidth, v = i ? d : d - s, C = typeof u == "function" ? u({ index: -1 }) : u, w = typeof _ == "function" ? _({ index: -1 }) : _;
1886
+ return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(b, R) {
1887
+ var T = e._getFlexStyleForColumn(b, b.props.style || ve.defaultProps.style);
1888
+ e._cachedColumnStyles[R] = B({ overflow: "hidden" }, T);
1889
+ }), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: g }, !i && c({ className: N("ReactVirtualized__Table__headerRow", C), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: y, width: S }, w) }), x.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", l), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: v, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: y, scrollToRow: m, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
1890
+ } }, { key: "_createColumn", value: function(e) {
1891
+ var t = e.column, n = e.columnIndex, r = e.isScrolling, i = e.parent, l = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, _ = c.dataKey, m = c.id, g = h({ cellData: d({ columnData: u, dataKey: _, rowData: l }), columnData: u, columnIndex: n, dataKey: _, isScrolling: r, parent: i, rowData: l, rowIndex: a }), S = this._cachedColumnStyles[n], y = typeof g == "string" ? g : null;
1892
+ return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": m, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(v) {
1893
+ s && s({ columnData: u, dataKey: _, event: v });
1894
+ }, role: "gridcell", style: S, title: y }, g);
1895
+ } }, { key: "_createHeader", value: function(e) {
1896
+ var t, n, r, i, l, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, _ = c.sortBy, m = c.sortDirection, g = a.props, S = g.columnData, y = g.dataKey, v = g.defaultSortDirection, C = g.disableSort, w = g.headerRenderer, b = g.id, R = g.label, T = !C && u, I = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: T }), k = this._getFlexStyleForColumn(a, B(B({}, h), a.props.headerStyle)), z = w({ columnData: S, dataKey: y, disableSort: C, label: R, sortBy: _, sortDirection: m });
1897
+ if (T || f) {
1898
+ var P = _ !== y ? v : m === Ie ? ae : Ie, M = function(H) {
1899
+ T && u({ defaultSortDirection: v, event: H, sortBy: y, sortDirection: P }), f && f({ columnData: S, dataKey: y, event: H });
1900
+ };
1901
+ l = a.props["aria-label"] || R || y, i = "none", r = 0, t = M, n = function(H) {
1902
+ H.key !== "Enter" && H.key !== " " || M(H);
1903
+ };
1904
+ }
1905
+ return _ === y && (i = m === ae ? "ascending" : "descending"), x.createElement("div", { "aria-label": l, "aria-sort": i, className: I, id: b, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: k, tabIndex: r }, z);
1906
+ } }, { key: "_createRow", value: function(e) {
1907
+ var t = this, n = e.rowIndex, r = e.isScrolling, i = e.key, l = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, _ = s.onRowMouseOut, m = s.rowClassName, g = s.rowGetter, S = s.rowRenderer, y = s.rowStyle, v = this.state.scrollbarWidth, C = typeof m == "function" ? m({ index: n }) : m, w = typeof y == "function" ? y({ index: n }) : y, b = g({ index: n }), R = x.Children.toArray(c).map(function(k, z) {
1908
+ return t._createColumn({ column: k, columnIndex: z, isScrolling: r, parent: l, rowData: b, rowIndex: n, scrollbarWidth: v });
1909
+ }), T = N("ReactVirtualized__Table__row", C), I = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: v }, w);
1910
+ return S({ className: T, columns: R, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: _, rowData: b, style: I });
1911
+ } }, { key: "_getFlexStyleForColumn", value: function(e) {
1912
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: n, msFlex: n, WebkitFlex: n });
1913
+ return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
1914
+ } }, { key: "_getHeaderColumns", value: function() {
1915
+ var e = this, t = this.props, n = t.children;
1916
+ return (t.disableHeader ? [] : x.Children.toArray(n)).map(function(r, i) {
1917
+ return e._createHeader({ column: r, index: i });
1918
+ });
1919
+ } }, { key: "_getRowHeight", value: function(e) {
1920
+ var t = this.props.rowHeight;
1921
+ return typeof t == "function" ? t({ index: e }) : t;
1922
+ } }, { key: "_onScroll", value: function(e) {
1923
+ var t = e.clientHeight, n = e.scrollHeight, r = e.scrollTop;
1924
+ (0, this.props.onScroll)({ clientHeight: t, scrollHeight: n, scrollTop: r });
1925
+ } }, { key: "_onSectionRendered", value: function(e) {
1926
+ var t = e.rowOverscanStartIndex, n = e.rowOverscanStopIndex, r = e.rowStartIndex, i = e.rowStopIndex;
1927
+ (0, this.props.onRowsRendered)({ overscanStartIndex: t, overscanStopIndex: n, startIndex: r, stopIndex: i });
1928
+ } }, { key: "_setRef", value: function(e) {
1929
+ this.Grid = e;
1930
+ } }, { key: "_setGridElementRef", value: function(e) {
1931
+ this.GridElement = e;
1932
+ } }, { key: "_setScrollbarWidth", value: function() {
1933
+ var e = this.getScrollbarWidth();
1934
+ this.setState({ scrollbarWidth: e });
1935
+ } }]);
1936
+ }();
1937
+ p(Pe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0, headerStyle: {}, noRowsRenderer: function() {
1938
+ return null;
1939
+ }, onRowsRendered: function() {
1940
+ return null;
1941
+ }, onScroll: function() {
1942
+ return null;
1943
+ }, overscanIndicesGetter: At, overscanRowCount: 10, rowRenderer: function(o) {
1944
+ var e = o.className, t = o.columns, n = o.index, r = o.key, i = o.onRowClick, l = o.onRowDoubleClick, a = o.onRowMouseOut, s = o.onRowMouseOver, c = o.onRowRightClick, d = o.rowData, h = o.style, f = { "aria-rowindex": n + 1 };
1945
+ return (i || l || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, i && (f.onClick = function(u) {
1946
+ return i({ event: u, index: n, rowData: d });
1947
+ }), l && (f.onDoubleClick = function(u) {
1948
+ return l({ event: u, index: n, rowData: d });
1949
+ }), a && (f.onMouseOut = function(u) {
1950
+ return a({ event: u, index: n, rowData: d });
1951
+ }), s && (f.onMouseOver = function(u) {
1952
+ return s({ event: u, index: n, rowData: d });
1953
+ }), c && (f.onContextMenu = function(u) {
1954
+ return c({ event: u, index: n, rowData: d });
1955
+ })), x.createElement("div", U({}, f, { className: e, key: r, role: "row", style: h }), t);
1956
+ }, headerRowRenderer: function(o) {
1957
+ var e = o.className, t = o.columns, n = o.style;
1958
+ return x.createElement("div", { className: e, role: "row", style: n }, t);
1959
+ }, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), Pe.propTypes = {};
1960
+ var q = [], le = null, $ = null;
1961
+ function qt() {
1962
+ $ && ($ = null, document.body && le != null && (document.body.style.pointerEvents = le), le = null);
1963
+ }
1964
+ function tn() {
1965
+ qt(), q.forEach(function(o) {
1966
+ return o.__resetIsScrolling();
1967
+ });
1968
+ }
1969
+ function Kt(o) {
1970
+ o.currentTarget === window && le == null && document.body && (le = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
1971
+ $ && ee($);
1972
+ var e = 0;
1973
+ q.forEach(function(t) {
1974
+ e = Math.max(e, t.props.scrollingResetTimeInterval);
1975
+ }), $ = Me(tn, e);
1976
+ }(), q.forEach(function(e) {
1977
+ e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
1978
+ });
1979
+ }
1980
+ function ft(o, e) {
1981
+ q.some(function(t) {
1982
+ return t.props.scrollElement === e;
1983
+ }) || e.addEventListener("scroll", Kt), q.push(o);
1984
+ }
1985
+ function pt(o, e) {
1986
+ (q = q.filter(function(t) {
1987
+ return t !== o;
1988
+ })).length || (e.removeEventListener("scroll", Kt), $ && (ee($), qt()));
1989
+ }
1990
+ var Ge = function(o) {
1991
+ return o === window;
1992
+ }, re = function(o) {
1993
+ return o.getBoundingClientRect();
1994
+ };
1995
+ function mt(o, e) {
1996
+ if (o) {
1997
+ if (Ge(o)) {
1998
+ var t = window, n = t.innerHeight, r = t.innerWidth;
1999
+ return { height: typeof n == "number" ? n : 0, width: typeof r == "number" ? r : 0 };
2000
+ }
2001
+ return re(o);
2002
+ }
2003
+ return { height: e.serverHeight, width: e.serverWidth };
2004
+ }
2005
+ function gt(o) {
2006
+ return Ge(o) && document.documentElement ? { top: "scrollY" in window ? window.scrollY : document.documentElement.scrollTop, left: "scrollX" in window ? window.scrollX : document.documentElement.scrollLeft } : { top: o.scrollTop, left: o.scrollLeft };
2007
+ }
2008
+ function vt(o, e) {
2009
+ var t = Object.keys(o);
2010
+ if (Object.getOwnPropertySymbols) {
2011
+ var n = Object.getOwnPropertySymbols(o);
2012
+ e && (n = n.filter(function(r) {
2013
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
2014
+ })), t.push.apply(t, n);
2015
+ }
2016
+ return t;
2017
+ }
2018
+ function _t(o) {
2019
+ for (var e = 1; e < arguments.length; e++) {
2020
+ var t = arguments[e] != null ? arguments[e] : {};
2021
+ e % 2 ? vt(Object(t), !0).forEach(function(n) {
2022
+ p(o, n, t[n]);
2023
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : vt(Object(t)).forEach(function(n) {
2024
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
2025
+ });
2026
+ }
2027
+ return o;
2028
+ }
2029
+ function Xt() {
2030
+ try {
2031
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2032
+ }));
2033
+ } catch {
2034
+ }
2035
+ return (Xt = function() {
2036
+ return !!o;
2037
+ })();
2038
+ }
2039
+ var Yt = function() {
2040
+ return typeof window < "u" ? window : void 0;
2041
+ }, on = function() {
2042
+ function o() {
2043
+ var e, t, n, r;
2044
+ G(this, o);
2045
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
2046
+ return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Xt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_window", Yt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", _t(_t({}, mt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
2047
+ !s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
2048
+ }), p(e, "_onChildScroll", function(s) {
2049
+ var c = s.scrollTop;
2050
+ if (e.state.scrollTop !== c) {
2051
+ var d = e.props.scrollElement;
2052
+ d && (typeof d.scrollTo == "function" ? d.scrollTo(0, c + e._positionFromTop) : d.scrollTop = c + e._positionFromTop);
2053
+ }
2054
+ }), p(e, "_registerResizeListener", function(s) {
2055
+ s === window ? window.addEventListener("resize", e._onResize, !1) : e._detectElementResize.addResizeListener(s, e._onResize);
2056
+ }), p(e, "_unregisterResizeListener", function(s) {
2057
+ s === window ? window.removeEventListener("resize", e._onResize, !1) : s && e._detectElementResize.removeResizeListener(s, e._onResize);
2058
+ }), p(e, "_onResize", function() {
2059
+ e.updatePosition();
2060
+ }), p(e, "__handleWindowScrollEvent", function() {
2061
+ if (e._isMounted) {
2062
+ var s = e.props.onScroll, c = e.props.scrollElement;
2063
+ if (c) {
2064
+ var d = gt(c), h = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
2065
+ e.setState({ isScrolling: !0, scrollLeft: h, scrollTop: f }), s({ scrollLeft: h, scrollTop: f });
2066
+ }
2067
+ }
2068
+ }), p(e, "__resetIsScrolling", function() {
2069
+ e.setState({ isScrolling: !1 });
2070
+ }), e;
2071
+ }
2072
+ return D(o, x.PureComponent), A(o, [{ key: "updatePosition", value: function() {
2073
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, n = this.state, r = n.height, i = n.width, l = this._child || this._windowScrollerRef.current;
2074
+ if (l instanceof Element && e) {
2075
+ var a = function(c, d) {
2076
+ if (Ge(d) && document.documentElement) {
2077
+ var h = document.documentElement, f = re(c), u = re(h);
2078
+ return { top: f.top - u.top, left: f.left - u.left };
2079
+ }
2080
+ var _ = gt(d), m = re(c), g = re(d);
2081
+ return { top: m.top + _.top - g.top, left: m.left + _.left - g.left };
2082
+ }(l, e);
2083
+ this._positionFromTop = a.top, this._positionFromLeft = a.left;
2084
+ }
2085
+ var s = mt(e, this.props);
2086
+ r === s.height && i === s.width || (this.setState({ height: s.height, width: s.width }), t({ height: s.height, width: s.width })), this.props.updateScrollTopOnUpdatePosition === !0 && (this.__handleWindowScrollEvent(), this.__resetIsScrolling());
2087
+ } }, { key: "componentDidMount", value: function() {
2088
+ var e = this.props.scrollElement;
2089
+ this._detectElementResize = zt(), this.updatePosition(e), e && (ft(this, e), this._registerResizeListener(e)), this._isMounted = !0;
2090
+ } }, { key: "componentDidUpdate", value: function(e, t) {
2091
+ var n = this.props.scrollElement, r = e.scrollElement;
2092
+ r !== n && r != null && n != null && (this.updatePosition(n), pt(this, r), ft(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
2093
+ } }, { key: "componentWillUnmount", value: function() {
2094
+ var e = this.props.scrollElement;
2095
+ e && (pt(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
2096
+ } }, { key: "render", value: function() {
2097
+ var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, i = t.scrollLeft, l = t.height, a = t.width;
2098
+ return x.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: l, isScrolling: n, scrollLeft: i, scrollTop: r, width: a }));
2099
+ } }]);
2100
+ }();
2101
+ p(on, "defaultProps", { onResize: function() {
2102
+ }, onScroll: function() {
2103
+ }, scrollingResetTimeInterval: 150, scrollElement: Yt(), serverHeight: 0, serverWidth: 0 });
2104
+ const ie = "ReactVirtualizedDemo-flexContainer", Jt = "ReactVirtualizedDemo-tableRow", Zt = "ReactVirtualizedDemo-tableRowHover", ke = "ReactVirtualizedDemo-tableCell", Oe = "ReactVirtualizedDemo-noClick";
2105
+ class nn extends yt.PureComponent {
2106
+ constructor() {
2107
+ super(...arguments), this.getRowClassName = ({ index: e }) => {
2108
+ const { onRowClick: t } = this.props;
2109
+ return _e(Jt, ie, { [Zt]: e !== -1 && t != null });
2110
+ }, this.cellRenderer = ({ cellData: e, columnIndex: t, dataKey: n }) => {
2111
+ const { columns: r, rowHeight: i, onRowClick: l } = this.props;
2112
+ let a = e, s = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
2113
+ return n === "shortcut" ? a = bo(e) : n === "description" && (s = { ...s, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), E(De, { component: "div", className: _e(ke, ie, { [Oe]: l == null }), variant: "body", style: s, align: t != null && r[t].numeric ? "right" : "left", children: a });
2114
+ }, this.headerRenderer = ({ label: e, columnIndex: t }) => {
2115
+ const { headerHeight: n, columns: r } = this.props;
2116
+ return E(De, { component: "div", className: _e(ke, ie, Oe), variant: "head", sx: { height: n, backgroundColor: (i) => i.palette.grey[300] }, align: r[t].numeric ? "right" : "left", children: E("span", { children: e }) });
2117
+ };
2118
+ }
2119
+ static {
2120
+ this.defaultProps = { headerHeight: 40, rowHeight: 48 };
2121
+ }
2122
+ render() {
2123
+ const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
2124
+ return E(Pt, { children: ({ height: i, width: l }) => E(Pe, { height: i, width: l, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...d }, h) => {
2125
+ const f = c ? l - c : s;
2126
+ return E(ve, { headerRenderer: (u) => this.headerRenderer({ ...u, columnIndex: h }), className: ie, cellRenderer: this.cellRenderer, dataKey: a, width: f, ...d }, a);
2127
+ }) }) });
2128
+ }
2129
+ }
2130
+ const rn = Wo(nn)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${ie}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Jt}`]: { cursor: "pointer" }, [`& .${Zt}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${ke}`]: { flex: 1 }, [`& .${Oe}`]: { cursor: "initial" } }));
2131
+ function ln(o) {
2132
+ const { commands: e, ...t } = o, [n, r] = he(!1), [i, l] = he(""), a = Io(() => {
2133
+ let u = e.getAllCommands();
2134
+ n || (u = u.filter((g) => g.command.shortcut())), u.sort((g, S) => g.command.label().localeCompare(S.command.label()));
2135
+ const _ = [], m = (g) => g.replace(/\n\n/g, `
2136
+ `);
2137
+ for (let g = 0; g < u.length; g++) {
2138
+ const S = u[g].command, y = S.shortcut();
2139
+ if (Array.isArray(y)) {
2140
+ const v = y;
2141
+ for (let C = 0; C < v.length; C++) _.push({ label: S.label(), description: m(S.description()), shortcut: v[C] });
2142
+ } else _.push({ label: S.label(), description: m(S.description()), shortcut: S.shortcut() });
2143
+ }
2144
+ return _;
2145
+ }, [n, e]), [s, c] = he(null);
2146
+ We(() => {
2147
+ import("./DToiYU1jffn1g7TH.mjs").then((u) => {
2148
+ c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
2149
+ });
2150
+ }, [a]);
2151
+ const [d, h] = he(a), f = i.length > 0 && d.length === 0;
2152
+ return We(() => {
2153
+ s && uo.debounce(() => {
2154
+ if (i.trim().length === 0) return void h(a);
2155
+ const u = s.search(i.trim()), _ = new Array(u.length);
2156
+ for (let m = 0; m < u.length; m++) _[m] = u[m].item;
2157
+ h(_);
2158
+ }, 90)();
2159
+ }, [s, i]), Ae(de, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ae(de, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [E(ho, { InputProps: { sx: { backgroundImage: `linear-gradient(${Y("#fff", ue(5))}, ${Y("#fff", ue(5))})` }, inputProps: { className: "input", autoFocus: !0, spellCheck: !1, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (u) => u.spacing(1), paddingBottom: (u) => u.spacing(1) } }, endAdornment: E(fo, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: E(po, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: E(mo, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (u) => u.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (u) => f ? `${u.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (u) => f ? `${u.palette.error.main} !important` : void 0 } }, value: i, onChange: (u) => {
2160
+ l(u.target.value);
2161
+ }, onKeyDown: (u) => {
2162
+ u.which === St.Escape && i.length > 0 && (l(""), u.stopPropagation(), u.preventDefault());
2163
+ }, onContextMenu: (u) => {
2164
+ u.stopPropagation();
2165
+ } }), E(go, { sx: { flex: "1 1 60%" }, control: E(vo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), E(de, { sx: { flex: "1 1 100%", borderRadius: (u) => `${u.shape.borderRadius}px`, border: (u) => `solid ${u.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (u) => u.palette.background.paper, backgroundImage: `linear-gradient(${Y("#fff", ue(5))}, ${Y("#fff", ue(5))})` } }, children: E(rn, { rowCount: d.length, rowGetter: (u) => d[u.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), E(de, { sx: { display: "flex", flexShrink: "0", paddingLeft: (u) => u.spacing(1), paddingTop: (u) => u.spacing(1), paddingRight: (u) => u.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: E(_o, { noWrap: !0, component: "div", sx: { color: (u) => f ? u.palette.error.main : u.palette.text.secondary }, children: `${d.length === 0 ? "No" : d.length} shortcut key${d.length === 1 ? "" : "s"}${i.length > 0 ? " found" : ""}` }) })] });
2166
+ }
2167
+ const un = (o) => {
2168
+ const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
2169
+ return E(ao, { isModal: !0, onKeyDown: (i) => {
2170
+ i.keyCode === St.F1 && i.preventDefault();
2171
+ }, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: E(co, { dividers: !0, children: E(ln, { commands: t, sx: { marginBottom: "8px" } }) }) });
2172
+ };
2173
+ export {
2174
+ un as default
2175
+ };