@sheetxl/studio-vanilla 0.4.11 → 0.4.13

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