@sheetxl/studio-vanilla 0.4.21 → 0.5.0

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