@sheetxl/studio-vanilla 0.4.10 → 0.4.12

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 (159) hide show
  1. package/browser/cjs/B35OZ0mE8aINQPP9.cjs +7 -0
  2. package/browser/cjs/BPzEQNENF-gEBkg9.cjs +7 -0
  3. package/browser/cjs/BUokV6yuzE-_8MyK.cjs +7 -0
  4. package/browser/cjs/BeZHmOKfa37mFNAu.cjs +7 -0
  5. package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +7 -0
  6. package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +7 -0
  7. package/browser/cjs/C3OizZPVuxO2fjSG.cjs +7 -0
  8. package/browser/cjs/CBL6KkiWI2RPflEN.cjs +7 -0
  9. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +7 -0
  10. package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +7 -0
  11. package/browser/cjs/CU30GVjjFXl44vEU.cjs +7 -0
  12. package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +7 -0
  13. package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +7 -0
  14. package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +7 -0
  15. package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +7 -0
  16. package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +7 -0
  17. package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +107 -0
  18. package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +7 -0
  19. package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +7 -0
  20. package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +7 -0
  21. package/browser/cjs/L1iE_VcelYZIy0wI.cjs +7 -0
  22. package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +7 -0
  23. package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +7 -0
  24. package/browser/cjs/hwDUzorB6aCvH1eL.cjs +7 -0
  25. package/browser/cjs/index.cjs +4 -3
  26. package/browser/cjs/no5c2H18QD2qmOH6.cjs +7 -0
  27. package/browser/esm/B4Mm5gczpI_k2zzN.mjs +7 -0
  28. package/browser/esm/B8ISUdOxsJMYWzNN.mjs +7 -0
  29. package/browser/esm/BnJiF38TGudjoHzT.mjs +7 -0
  30. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +7 -0
  31. package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +107 -0
  32. package/browser/esm/C4jlaVv8bELgiHyE.mjs +7 -0
  33. package/browser/esm/CYIhGb86r-kKOrP5.mjs +7 -0
  34. package/browser/esm/CcpskguvlvemArQn.mjs +7 -0
  35. package/browser/esm/CeRfALx1iU5fqOUg.mjs +7 -0
  36. package/browser/esm/CfYWmP_Hots5f0f6.mjs +7 -0
  37. package/browser/esm/CkarbqNx_lhlBnw7.mjs +7 -0
  38. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +7 -0
  39. package/browser/esm/D3KNxvnrwR6_fTJE.mjs +7 -0
  40. package/browser/esm/DIJyH94oCzUnlcNZ.mjs +7 -0
  41. package/browser/esm/DVAG1NxFe3cMjLE1.mjs +7 -0
  42. package/browser/esm/DVqga7g7j0FUiM6p.mjs +7 -0
  43. package/browser/esm/DcX8yGEBX6qi9RCe.mjs +7 -0
  44. package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +7 -0
  45. package/browser/esm/DzgM_rkwyIHsCb6I.mjs +7 -0
  46. package/browser/esm/M4hZ25330e96seUM.mjs +7 -0
  47. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +7 -0
  48. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +7 -0
  49. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +7 -0
  50. package/browser/esm/dpdy0BU4GGI5lZrX.mjs +7 -0
  51. package/browser/esm/index.mjs +2 -8
  52. package/browser/esm/oLCocGFRAwsVsOSE.mjs +7 -0
  53. package/cdn/assets/7_O6nILzn1fSVvkO.js +13449 -0
  54. package/cdn/assets/B3kbBB6oxKBErwzn.js +27 -0
  55. package/cdn/assets/BB66NDz7S3ocEfRB.js +150 -0
  56. package/cdn/assets/BCK7yhx9JfzU2rF0.js +22 -0
  57. package/{browser/esm/DIGFi66CQPMV3HsL.mjs → cdn/assets/BSAH88RG1oubICau.js} +25 -25
  58. package/cdn/assets/{B-9FcTf3xBEVGdjV.js → BT5EcMEFBsphczwC.js} +536 -534
  59. package/cdn/assets/BcWoqhD_sX85c7Mh.js +1701 -0
  60. package/cdn/assets/BoOefjrM4kZ-YXxa.js +90 -0
  61. package/cdn/assets/BtweFYnoj_aEfydW.js +1371 -0
  62. package/cdn/assets/Bv0Xb6DdcQbPYJKo.js +24 -0
  63. package/cdn/assets/CC-S4NMYhLg3WgqO.js +3875 -0
  64. package/cdn/assets/CJhyHcQcrhbtC33r.js +50 -0
  65. package/cdn/assets/CUc6gRjjRGTFWSHD.js +50 -0
  66. package/{browser/esm/D47D26mVYSAdb5C8.mjs → cdn/assets/CfObTzh8pGdd8D23.js} +560 -555
  67. package/cdn/assets/CiY3HumGDc_5bMtR.js +58 -0
  68. package/cdn/assets/CpPLN0-hDsTIFHZV.js +46 -0
  69. package/{browser/esm/C_Zx1tYjI3n7KKZH.mjs → cdn/assets/Cq94woVmlxhjWVRI.js} +2 -2
  70. package/cdn/assets/CsjftXmSYQRHNKdq.js +41 -0
  71. package/cdn/assets/DBL4jY0AVc53RGNm.js +637 -0
  72. package/cdn/assets/DDW1WJ2IM_9ZUfKm.js +36 -0
  73. package/cdn/assets/{Bt1JSlSpWXDOBfq3.js → DJQOS9qxVAlpgDMt.js} +5 -4
  74. package/cdn/assets/DWJE3K3jMKMTCi3o.js +393 -0
  75. package/cdn/assets/D_5RgqgwXsoqLJDR.js +241 -0
  76. package/cdn/assets/DfmaL8DmDaFAv8M_.js +6481 -0
  77. package/cdn/assets/DgLPO_EQ9DYoGgec.js +423 -0
  78. package/cdn/assets/{B3J6oAmsS7oLNFPd.js → DkS6quwH1okWaho6.js} +3 -3
  79. package/cdn/assets/DxMu6URURFWj9aXM.js +2373 -0
  80. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +26490 -0
  81. package/cdn/assets/MRBi3juXAW0lA_mj.js +1358 -0
  82. package/cdn/assets/dk2teWHDODYNarJY.js +27 -0
  83. package/cdn/assets/phYz0vGgqIEQ2hco.js +12 -0
  84. package/cdn/assets/qA23x9VVBL9R4qxN.js +43 -0
  85. package/cdn/index.js +8 -8
  86. package/cdn/loader.js +1 -1
  87. package/package.json +5 -5
  88. package/browser/cjs/B1UGqZP_7Z0Ewpog.cjs +0 -6
  89. package/browser/cjs/B6m9VXoFseD4zuZ5.cjs +0 -6
  90. package/browser/cjs/BKePSaEpM6Z063z-.cjs +0 -161
  91. package/browser/cjs/Bqn0ZeP_srNfL9rG.cjs +0 -6
  92. package/browser/cjs/C-izbj62pQuZjOrT.cjs +0 -304
  93. package/browser/cjs/C-w-GX8N54TxTjjf.cjs +0 -6
  94. package/browser/cjs/C1QGdcqJ-9sdGTQR.cjs +0 -6
  95. package/browser/cjs/C38aiRglHLxZ8KRY.cjs +0 -6
  96. package/browser/cjs/C4JMn_hMnlOnDpQO.cjs +0 -6
  97. package/browser/cjs/CApEj4LhhPUvQjIG.cjs +0 -16
  98. package/browser/cjs/CFcJbmmXjWjl6fQH.cjs +0 -6
  99. package/browser/cjs/CKiDbCZ6rGgXK7yN.cjs +0 -42
  100. package/browser/cjs/CM8btXQsJbnFKXUm.cjs +0 -6
  101. package/browser/cjs/Cb0K3Wzp7BAa4zni.cjs +0 -15
  102. package/browser/cjs/CiAUhPU7v1BK-8Bb.cjs +0 -7
  103. package/browser/cjs/CsXS-EN0N5SZHTnQ.cjs +0 -145
  104. package/browser/cjs/Cu2eUomoF0HToa4l.cjs +0 -6
  105. package/browser/cjs/Cy7ii9B_Vqx94pbu.cjs +0 -19
  106. package/browser/cjs/CzI4ZcsmzsyPBpWN.cjs +0 -12
  107. package/browser/cjs/DKHzUx2gKXwboKy1.cjs +0 -11
  108. package/browser/cjs/DKc8wAq8dwbDddQn.cjs +0 -11
  109. package/browser/cjs/DMyKApbUVRtNYC4e.cjs +0 -6
  110. package/browser/cjs/DROR08HMGyg7rizQ.cjs +0 -6
  111. package/browser/cjs/DfGDZlbFVknGyu_X.cjs +0 -6
  112. package/browser/cjs/OQdqVM_6m78kE5Aj.cjs +0 -7
  113. package/browser/cjs/v4OEtYXaUw_GeiXM.cjs +0 -12
  114. package/browser/esm/4uEr84M4w57AMyDg.mjs +0 -1703
  115. package/browser/esm/B8Ja5DlyKAy8xfQD.mjs +0 -1365
  116. package/browser/esm/B9bN60uAvy62vnwt.mjs +0 -22
  117. package/browser/esm/BAOzSQdzHl43K9Hd.mjs +0 -50
  118. package/browser/esm/BQYSD5Nb35y0WeeV.mjs +0 -421
  119. package/browser/esm/BVcaNvORp_uKPQgJ.mjs +0 -46
  120. package/browser/esm/BqXO_cQhrMJu7JoQ.mjs +0 -3756
  121. package/browser/esm/C18A_DcIEHNYBDvR.mjs +0 -46
  122. package/browser/esm/C7FoKZbSzjvuY3UB.mjs +0 -43
  123. package/browser/esm/CCIJpHSbFPjTEF8S.mjs +0 -1665
  124. package/browser/esm/CHNPjJxb0GY_naLa.mjs +0 -25025
  125. package/browser/esm/CKHsU9LUNYowimxS.mjs +0 -1346
  126. package/browser/esm/Cm-m3bZh0V44y0li.mjs +0 -390
  127. package/browser/esm/D1e_ccSgcNXvWHgy.mjs +0 -151
  128. package/browser/esm/D9CdO3PtV12RnK8K.mjs +0 -1467
  129. package/browser/esm/D9x-Q8y57gePf-tE.mjs +0 -944
  130. package/browser/esm/DHhXutXh7b5LsU1m.mjs +0 -2346
  131. package/browser/esm/DamiTeQsSMP2Cwld.mjs +0 -58
  132. package/browser/esm/DhD48oFrbrnZ6Zg5.mjs +0 -13208
  133. package/browser/esm/Ln2ZalJgj1CiJJue.mjs +0 -50
  134. package/browser/esm/S9fgUO7h8YgZxoKH.mjs +0 -633
  135. package/browser/esm/qVAHcpq07IhtAaQc.mjs +0 -24
  136. package/browser/esm/xrzJ8ILZHb118Oyt.mjs +0 -41
  137. package/cdn/assets/2-xJlw77WsCoyz09.js +0 -24872
  138. package/cdn/assets/B-p1i2SNRMunPXCF.js +0 -43
  139. package/cdn/assets/B8Ja5DlyKAy8xfQD.js +0 -1365
  140. package/cdn/assets/BG3YTMAzNKPRGoLs.js +0 -50
  141. package/cdn/assets/BQYSD5Nb35y0WeeV.js +0 -421
  142. package/cdn/assets/BbzUpvQOkxsN-yIH.js +0 -2346
  143. package/cdn/assets/BqXO_cQhrMJu7JoQ.js +0 -3756
  144. package/cdn/assets/CCIJpHSbFPjTEF8S.js +0 -1665
  145. package/cdn/assets/CKHsU9LUNYowimxS.js +0 -1346
  146. package/cdn/assets/CWLJZwD2GVXljoWG.js +0 -46
  147. package/cdn/assets/Cm-m3bZh0V44y0li.js +0 -390
  148. package/cdn/assets/CtQlXGkNWgI-vtGy.js +0 -2178
  149. package/cdn/assets/DIGFi66CQPMV3HsL.js +0 -84
  150. package/cdn/assets/DK4S0DbayChkfTD6.js +0 -58
  151. package/cdn/assets/DQvsBz9F1GS_S7r9.js +0 -50
  152. package/cdn/assets/DTOgv_zwXSur-yCq.js +0 -151
  153. package/cdn/assets/DYZjOnD8WWQkCYuH.js +0 -944
  154. package/cdn/assets/DhD48oFrbrnZ6Zg5.js +0 -13208
  155. package/cdn/assets/DhyAyTCDkMBf392P.js +0 -21
  156. package/cdn/assets/P7HeVw5SHROLSWBz.js +0 -24
  157. package/cdn/assets/S4Z0SN8x6EltjsHT.js +0 -22
  158. package/cdn/assets/S9fgUO7h8YgZxoKH.js +0 -633
  159. package/cdn/assets/guYe4C_6pE93QsDV.js +0 -41
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./C-izbj62pQuZjOrT.cjs"),p=require("./DKc8wAq8dwbDddQn.cjs"),d=require("@sheetxl/sdk");class G{constructor(t){this.list=t}get length(){return this.list.length}item(t){return this.list[t]}forEach(t,e){for(let s=0;s<this.list.length;s++)t(this.list[s],s,this)}}const W=u=>u===!0||u==="1"||u==="on"||u==="true"||u!==!1&&u!=="0"&&u!=="off"&&u!=="false"&&null,X=u=>{const t=parseInt(u);return isNaN(t)?null:t},$=u=>{const t=parseFloat(u);return isNaN(t)?null:t},K=new Map;class S{constructor(t,e,s,r,o,i=null,n){const l=(c,h,g)=>n?.getRef?.(c,h,g,n?.parsedRefs),a=c=>n?.getRefs?.(c,n?.parsedRefs);this._parent=t,this.sharedShared=e,this.currentPath=s,this.elemRoot=r,this.jsonRoot=o,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs):(i&&(this._fileLocation=i),l&&a&&(this._getRef=l),a&&(this._getRefs=a),this._onWarning=n?.onWarning,this._addPerson=n?.addPerson)}getRef(t,e=!1){return this._getRef?.(t,this._fileLocation,e)??null}getRelationships(){return this._getRefs(this._fileLocation)??K}getPath(){return this.currentPath}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(t){this._onWarning?this._onWarning(t):this._parent?this._parent?.warn?.(t):console.warn(t)}addPerson(t){return this._addPerson?this._addPerson(t):this._parent?this._parent?._addPerson?.(t):null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(t,e){if(!t)return e;let s=[e];const r=t.split("/");for(let o=0;o<r.length;o++){const i=r[o];if(i===""||i===".")continue;let n=[];for(let l=0;l<s.length;l++){const a=s[l],c=a.childNodes;for(let h=0;c&&h<c.length;h++){const g=a.childNodes[h];g.localName!==i&&i!=="*"||n.push(g)}}s=n}return s.length===1?s[0]:s.length===0?null:new G(s)}getFromPath(t,e){return I.Yt.getFromPath(t,e)}setToPath(t,e,s){return I.Yt.setToPath(t,e,s)}getValAttrAsString(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?s.getAttribute("val")??null:null}getValAttrAsBoolean(t,e,s=!1){let r=this.evaluate(t,e);if(!r)return null;const o=r.hasAttribute("val")?r.getAttribute("val"):void 0;return o==null?s:o==="1"||o==="on"||o==="true"||o!=="0"&&o!=="off"&&o!=="false"&&s}getValAttrAsInteger(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseInt(s.getAttribute("val"))??null:null}getValAttrAsFloat(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseFloat(s.getAttribute("val"))??null:null}get BOOLEAN_COPY(){return W}get INT_COPY(){return X}get FLOAT_COPY(){return $}copyFromAttribute(t,e,s,r=e,o=null){if(!t||!s||!t.hasAttribute(e))return;let i=t.getAttribute(e);if(o){if(Array.isArray(o)){for(let n=0;n<o.length;n++)if(i==null||(i=o[n](i),i==null))return}else if(i==null||(i=o(i),i==null))return}this.setToPath(s,r,i)}}class V{constructor(t){this.jsonKey=t}visit(t,e,s){const r={};return s[this.jsonKey]=r,r}}class H{visit(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);i.nodeType===1&&i.localName==="Relationship"&&this.processRelationship(t,i,s)}return s}processRelationship(t,e,s){const r={};t.copyFromAttribute(e,"Target",r,"target"),t.copyFromAttribute(e,"Type",r,"type"),t.copyFromAttribute(e,"TargetMode",r,"targetMode"),s[e.getAttribute("Id")]=r}}const D=(u,t)=>{if(u||!u.hasAttribute("rot"))return;const e=u.getAttribute("rot"),s=I.Yt.roundAccurately(p.p(e),2);s!==-1e3&&(t.rotation=s)},f=(u,t,e,s,r)=>{const o=u.getValAttrAsString(s,t);o!==null&&(e[r]=o)},A=(u,t,e,s,r=s,o=null)=>{const i=u.getValAttrAsBoolean(s,t,o);i!==null&&(e[r]=i)},C=(u,t,e,s,r)=>{const o=u.getValAttrAsInteger(s,t);o!==null&&(e[r]=o)},y=(u,t,e,s,r,o=1)=>{const i=u.getValAttrAsFloat(s,t);i!==null&&(e[r]=i*o)};class q{visit(t,e,s){return A(t,e,s,"roundedCorners","roundedCorners"),C(t,e,s,".//AlternateContent/Fallback/style","styleId"),s.range=null,s}afterVisit(t,e,s){let r={};s.types=r;let o={},i=0,n={},l=0,a=t.getVisitorParamsState().get("axes");const c=t.getVisitorParamsState().get("types");for(let m=0;m<c.length;m++){const b=c[m];if(b.xAxisId){const v=b.xAxisId,P=a.get(v);o[m+""]=P,b.offsetXAxis=m,delete b.xAxisId,s.xAxes=o,o.length=++i}if(b.yAxisId){const v=b.yAxisId,P=a.get(v);n[m+""]=P,b.offsetYAxis=m,delete b.yAxisId,s.yAxes=n,n.length=++l}r[m+""]=b}r.length=c.length;const h=t.getVisitorParamsState().get("series");if(!h||h.length===0)return;const g={};s.series=g;for(let m=0;m<h.length;m++)g[m+""]=h[m];g.length=h.length}}class J{visit(t,e,s){return A(t,e,s,"plotVisOnly","plotVisOnly"),f(t,e,s,"dispBlanksAs","dispBlanksAs"),A(t,e,s,".//extLst/ext/dataDisplayOptions16/dispNaAsBlank","dispNaAsBlank"),A(t,e,s,"showDLblsOverMax","showDLblsOverMax"),s}afterVisit(t,e,s){try{const r=t.getValAttrAsBoolean("autoTitleDeleted",e),o=t.evaluate("title",e);t.setToPath(s,"title.shown",!(r===!0||!o));const i=t.evaluate("legend",e);t.setToPath(s,"legend.shown",i!==null)}catch(r){throw new Error("Unexpected Error parsing Chart: "+r)}}}class Q{visit(t,e,s){let r={};return s.plotArea=r,r}}class O{EnumMappings(){}static fromOoxmlGradientType(t){return t==="circle"?"radial":t}static fromOoxmlLineCap(t){if(t==="rnd")return"round";if(t==="flat")return"butt";if(t==="sq")return"square";throw new Error("Invalid lineCap type: "+t)}static fromOoxmlCompound(t){return t==="sng"?"single":t}static fromOoxmlAlignment(t){return t==="ctr"?"center":t}}class M{visit(t,e,s){}processStroke(t,e,s){const r={},o=t.evaluate("ln",e);if(o){o.hasAttribute("algn")&&(r.align=O.fromOoxmlAlignment(o.getAttribute("algn"))),o.hasAttribute("cap")&&(r.lineCap=O.fromOoxmlLineCap(o.getAttribute("cap"))),o.hasAttribute("cmpd")&&(r.compound=O.fromOoxmlCompound(o.getAttribute("cmpd"))),o.hasAttribute("w")&&(r.width=p.t(o.getAttribute("w")));const i=t.evaluate("miter",o);i&&(r.lineJoin="miter",i.hasAttribute("lim")&&(r.miter=parseFloat(i.getAttribute("lim")))),t.evaluate("bevel",o)&&(r.lineJoin="bevel"),t.evaluate("round",o)&&(r.lineJoin="round");const n=t.evaluate("custDash",o);if(n){const c=t.evaluate("ds",n);if(c&&c.length>0){let h="";for(let g=0;g<c.length;g++){const m=c.item(g);h+=p.a(m.getAttribute("d"))+","+p.a(m.getAttribute("sp"))}r.dash=h}}const l=t.evaluate("prstDash",o);l&&l.hasAttribute("val")&&(r.dash=l.getAttribute("val")),this.parseEndElement(t,o,r,"headEnd","head"),this.parseEndElement(t,o,r,"tailEnd","tail");const a=this.processFill(t,o,s);r.fill=a}return r}parseEndElement(t,e,s,r,o){const i=t.evaluate(r,e);if(i&&(i.hasAttribute("type")&&(s[o+"Type"]=i.getAttribute("type")),i.hasAttribute("len")||i.hasAttribute("w"))){const n=i.getAttribute("len")?i.getAttribute("len"):"med",l=i.getAttribute("w")?i.getAttribute("w"):"med";s[o+"Size"]=n+"-"+l}}processFill(t,e,s){const r={};if(t.evaluate("noFill",e))return r.none=!0,r;const o=t.evaluate("solidFill",e);if(o){const a=this.processAdjColor(t,o);return a&&(r.solid=a),r}const i=t.evaluate("gradFill",e);if(i){i.hasAttribute("rotWithShape")&&(r.isRotated=i.getAttribute("rotWithShape")==="1");const a=this.processGradFill(t,i);return r.gradient=a,r}const n=t.evaluate("pattFill",e);if(n){const a=this.processPatternFill(t,n);return r.pattern=a,r}const l=t.evaluate("blipFill",e);if(l){l.hasAttribute("rotWithShape")&&(r.isRotated=p.b(l.getAttribute("rotWithShape"))),l.hasAttribute("dpi")&&(r.dpi=l.getAttribute("dpi"));const a=this.processImageFill(t,l);return r.image=a,r}return r.none=!0,r}processGradFill(t,e){const s={},r=t.evaluate("lin",e);if(r){if(s.type="linear",r.hasAttribute("ang")){const c=p.p(r.getAttribute("ang"));s.angle=c}if(r.hasAttribute("scaled")){const c=p.b(r.getAttribute("scaled"));s.scaled=c}}const o={};e.hasAttribute("flip")&&(o.mirror=e.getAttribute("flip")),Object.keys(o).length>0&&(s.tile=o);const i=t.evaluate("path",e);if(i){i.hasAttribute("path")&&(s.type=O.fromOoxmlGradientType(i.getAttribute("path")));const c=t.evaluate("fillToRect",i);c&&(s.fillTo=this.getRect(c))}const n=t.evaluate("tileRect",e);n&&(s.tile.bounds=this.getRect(n));const l=[],a=t.evaluate("gsLst/gs",e);for(let c=0;a&&c<a.length;c++){const h=a.item(c),g={offset:p.a(h.getAttribute("pos")),color:this.processAdjColor(t,h)};l.push(g)}return l.length>0&&(s.stops=l),s}getRect(t){const e={};return t.hasAttribute("t")&&(e.t=p.a(t.getAttribute("t"))),t.hasAttribute("l")&&(e.l=p.a(t.getAttribute("l"))),t.hasAttribute("b")&&(e.b=p.a(t.getAttribute("b"))),t.hasAttribute("r")&&(e.r=p.a(t.getAttribute("r"))),Object.keys(e).length===0?null:e}processImageFill(t,e){return{ref:"https://www.sheetxl.com/logo-color-padded-white.jpg",tile:!1}}processPatternFill(t,e){const s={},r=e.getAttribute("prst");s.type=r;const o=t.evaluate("bgClr",e);if(o){const n=this.processAdjColor(t,o);n&&(s.background=n)}const i=t.evaluate("fgClr",e);if(i){let n=this.processAdjColor(t,i);n&&(s.foreground=n)}return s}processAdjColor(t,e){const s=t.evaluate("hslClr",e);if(s)return this.processHslClr(t,s);const r=t.evaluate("prstClr",e);if(r)return this.processClrWithValAttribute(t,r);const o=t.evaluate("schemeClr",e);if(o)return this.processClrWithValAttribute(t,o);const i=t.evaluate("sysClr",e);if(i)return this.processClrWithValAttribute(t,i);const n=t.evaluate("scrgbClr",e);if(n)return this.processScrgbClrElement(t,n);const l=t.evaluate("srgbClr",e);return l?this.processSrgbClrElement(t,l):null}processScrgbClrElement(t,e){let s="lrgba("+p.a(e.getAttribute("r"))+","+p.a(e.getAttribute("g"))+","+p.a(e.getAttribute("b"))+")";return s+=this.processAdjustments(t,e),s}processSrgbClrElement(t,e){let s=e.getAttribute("val");return s+=this.processAdjustments(t,e),s}processHslClr(t,e){let s="hsl("+p.p(e.getAttribute("hue"))+","+p.a(e.getAttribute("sat"))+","+p.a(e.getAttribute("lum"))+")";return s+=this.processAdjustments(t,e),s}processClrWithValAttribute(t,e){const s=e.getAttribute("val");if(!s)return;let r=s;return r+=this.processAdjustments(t,e),r}processAdjustments(t,e){let s="";const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1){let n=i.localName;s+=n==="hue"||n==="hueOff"||n==="hueMod"?this.processAdjustmentElement(t,e,n,6e4):n==="gray"||n==="comp"||n==="inv"||n==="gamma"||n==="invGamma"?this.processAdjustmentElement(t,e,n,1):this.processAdjustmentElement(t,e,n)}}return s}processAdjustmentElement(t,e,s,r=1e3){const o=t.evaluate(s,e);if(!o)return"";const i=o.getAttribute("val");return i?` ${s} ${!i||parseFloat(i)/r}`:` ${s}`}}class L extends M{visit(t,e,s){try{const r=t.evaluate("xfrm",e);if(r){D(r,s);const l={x:0,y:0,width:0,height:0},a=t.evaluate("off",r);a&&(l.x=p.c(a.getAttribute("x"))??0,l.y=p.c(a.getAttribute("y"))??0);const c=t.evaluate("ext",r);a&&(l.width=p.c(c.getAttribute("cx"))??0,l.height=p.c(c.getAttribute("cy"))??0),s.bounds=l}const o=t.evaluate("prstGeom",e);o?.hasAttribute("prst")?s.geometry=o?.getAttribute("prst"):t.evaluate("customGeom",e)&&console.warn("customGeom not supported yet");const i=this.processFill(t,e,s);i&&Object.keys(i).length>0&&(s.fill=i);const n=this.processStroke(t,e,s);return n&&Object.keys(n).length>0&&(s.stroke=n),s}catch(r){throw console.warn(r),new Error("Unexpected Error parsing Shape Properties element")}}}class N{visit(t,e,s){let r={};if(f(t,e,r,"grouping","grouping"),A(t,e,r,"varyColors","varyColors"),y(t,e,r,"gapWidth","gapWidth",.01),y(t,e,r,"overlap","overlap",.01),this.parseType(t,e,r),C(t,e,r,"bubbleScale","bubbleScale"),A(t,e,r,"showNegBubbles","showNegativeBubbleValues"),A(t,e,r,"sizeRepresents","bubbleSizeRepresentsWidth"),C(t,e,r,"firstSliceAng","startAngle"),C(t,e,r,"holeSize","holeSize"),f(t,e,r,"scatterStyle","scatterStyle"),this.parseAxisIds(t,e,r),Object.keys(r).length>0){let o=t.getVisitorParamsState().get("types");o||(o=[],t.getVisitorParamsState().set("types",o)),o.push(r)}return r}parseType(t,e,s){switch(e.localName){case"areaChart":s.type="area";break;case"bubbleChart":s.type="bubble";break;case"doughnutChart":case"ofPieType":case"pieChart":s.type="pie";break;case"lineChart":s.type="line";break;case"scatterChart":s.type="scatter"}}parseAxisIds(t,e,s){const r=t.evaluate("axId",e);if(r.length===0)return;const o=r.item(0).getAttribute("val");s.xAxisId=o;const i=r.item(1).getAttribute("val");s.yAxisId=i}}class Z extends N{parseType(t,e,s){const r=t.getValAttrAsString("barDir",e);r&&(s.type=r==="col"?"column":"bar")}}class w{constructor(t){this.jsonKey=t}visit(t,e,s){let r={},o=r,i=t.getValAttrAsString("idx",e);i!==null&&(o={},o[i]=r);const n=t.getValAttrAsBoolean("delete",e);this.parseNumFormat(t,e,r),n===!0?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(A(t,e,r,"showBubbleSize","showBubbleSize"),A(t,e,r,"showCatName","showCatName"),A(t,e,r,"showLeaderLines","showLeaderLines"),A(t,e,r,"showPercent","showPercentage"),A(t,e,r,"showSerName","showSerName"),A(t,e,r,"showVal","showVal"),A(t,e,r,"showLegendKey","showLegendKey"));const l=t.evaluate("separator",e);return l!==null&&(r.separator=l.textContent),f(t,e,r,"dLblPos","position"),s[this.jsonKey]=o,r}parseNumFormat(t,e,s){const r=t.evaluate("numFmt",e);if(r){const o=r.getAttribute("formatCode");s.formatCode=o,r.hasAttribute("sourceLinked")&&(s.sourceLinked=r.getAttribute("sourceLinked")==="1")}}}const U=(u,t,e)=>{if(u.getValAttrAsBoolean("invertIfNegative",t)===!0)if(u.evaluate("extLst/ext/invertSolidFillFmt",t)){if(e.fill&&e.fillNegative){const s=u.getFromPath(e,"fill.solid.adjs");s&&u.setToPath(e,"fillNegative.solid.adjs",s)}}else{const s={val:"FFFFFF"},r={};r.solid=s,e.fillNegative=r;const o={val:"000000"},i={};i.solid=o;const n={};n.fill=i,e.strokeNegative=n}};class tt{visit(t,e,s){const r={};C(t,e,r,"explosion","explosion");let o=t.evaluate("cat/*/f",e);o||(o=t.evaluate("xVal/*/f",e));let i=null;o!==null&&o.firstChild!==null&&(i=o.firstChild.nodeValue),o||(o=t.evaluate("cat/strLit",e),o||(o=t.evaluate("cat/numLit",e)),o&&(i=this.parsePointsAsString(t,o))),i!==null&&(r.xRange=i);let n=t.evaluate("val/*/f",e);n||(n=t.evaluate("yVal/*/f",e));let l=null;n&&n.firstChild&&(l=n.firstChild.nodeValue),n||(n=t.evaluate("val/numLit",e),n!==null&&(l=this.parsePointsAsString(t,n))),l!==null&&(r.valRange=l),this.parseTitleRangeOrValue(t,e,r),C(t,e,r,"idx","idx"),A(t,e,r,"smooth","smooth");const a=t.getVisitorParamsState().get("types").length-1;r.offsetChart=a;let c=t.getVisitorParamsState().get("series");return c||(c=[],t.getVisitorParamsState().set("series",c)),c.push(r),r}parseTitleRangeOrValue(t,e,s){const r=t.evaluate("tx/strRef/f",e);if(r!==null){const o=r.firstChild.nodeValue;t.setToPath(s,"title.range",o)}else{const o=t.evaluate("tx/v",e);o!==null&&t.setToPath(s,"title.text.simpleRun",o.firstChild.nodeValue)}}parsePointsAsString(t,e){let s="{";const r=t.getValAttrAsInteger("ptCount",e),o=t.evaluate("pt",e),i=[];for(let n=0;o&&r&&n<r;n++){let l=null,a=t.evaluate("pt[@idx='"+n+"']/v",e);a instanceof Node&&(l=a.textContent),i[n]=l}for(let n=0;n<i.length;n++)n>0&&(s+=","),i[n]!==void 0&&(s+=i[n]);return s+="}",s}afterVisit(t,e,s){U(t,e,s);let r=t.getFromPath(s,"points");if(r){const o=Object.keys(r);for(let i=0;i<o.length;i++){const n=o[i],l=t.getFromPath(r,n);if(!l)continue;let a=t.getFromPath(l,"markers");a&&(t.setToPath(s,"markers.points."+n,a),delete l.markers)}}}}class et{DataPointVisitor(){}visit(t,e,s){let r=t.getFromPath(s,"points"),o=null;r?o=r:(o={},t.setToPath(s,"points",o));let i={},n=t.getValAttrAsString("idx",e);return n!==null&&(o[n]=i),A(t,e,i,"bubble3D","bubble3D"),C(t,e,i,"explosion","explosion"),U(t,e,i),i}}class rt{visit(t,e,s){const r=e.parentNode.localName;if(r==="ser"||r==="dPt"){const o={},i=t.getValAttrAsString("size",e);i!==null&&(o.size=i);const n=t.getValAttrAsString("symbol",e);return n&&(o.type=n),s.markers=o,o}return null}}class x{visit(t,e,s){let r={};this.parseScaling(t,e,r),y(t,e,r,"majorUnit","majorUnits"),y(t,e,r,"minorUnit","minorUnits"),A(t,e,r,"delete","shown"),this.parseOrientation(t,e,r),this.parseNumFormat(t,e,r),f(t,e,r,"majorTickMark","majorTickMarks"),f(t,e,r,"minorTickMark","minorTickMarks"),f(t,e,r,"crosses","crosses"),y(t,e,r,"crossesAt","crosses"),f(t,e,r,"crossBetween","crossBetween"),this.parseLabelAlign(t,e,r),C(t,e,r,"lblOffset","labelOffset"),f(t,e,r,"tickLblPos","labelPosition");const o=t.getValAttrAsInteger("noMultiLvlLbl",e);r.labelMultiLevel=o!==null&&o===0,C(t,e,r,"tickMarkSkip","tickMarkSkip"),C(t,e,r,"tickLblSkip","labelInterval"),this.parseDisplayCustOrBuiltInUnit(e,t,r),this.parseTimeUnits(t,e,r,"majorUnitDates","majorTimeUnit","majorUnit"),this.parseTimeUnits(t,e,r,"minorUnitDates","minorTimeUnit","minorUnit"),f(t,e,r,"baseTimeUnit","baseUnitDates"),t.getVisitorParamsState().get("axes")||t.getVisitorParamsState().set("axes",new Map);const i=t.getValAttrAsString("axId",e);return t.getVisitorParamsState().get("axes").set(i,r),r}parseTimeUnits(t,e,s,r,o,i){const n={};let l=t.getValAttrAsString(o,e);if(l!==null){n.dem=l;let a=t.getValAttrAsString(i,e);n.amt=a}Object.keys(n).length>0&&(s[r]=n)}parseDisplayCustOrBuiltInUnit(t,e,s){let r=e.getValAttrAsString("dispUnits/builtInUnit",t);r||(r=e.getValAttrAsString("dispUnits/custUnit",t)),r&&(s.displayUnits=r)}parseLabelAlign(t,e,s){let r=t.getValAttrAsString("lblAlgn",e);r!==null&&(r==="ctr"?s.labelAlign="center":r==="l"?s.labelAlign="left":r==="r"&&(s.labelAlign="right"))}parseOrientation(t,e,s){const r=t.getValAttrAsString("AxPos",e);r!==null&&(r==="b"?s.orientation="bottom":r==="l"?s.orientation="left":r==="r"?s.orientation="right":r==="t"&&(s.orientation="top"))}parseNumFormat(t,e,s){const r={},o=t.evaluate("numFmt",e);o!==null&&(o.hasAttribute("formatCode")&&(r.formatCode=o.getAttribute("formatCode")),o.hasAttribute("sourceLinked")&&(r.sourceLinked=o.getAttribute("sourceLinked")==="1")),Object.keys(r).length>0&&(s.labels=r)}parseScaling(t,e,s){const r=t.getValAttrAsString("scaling/orientation",e);r!==null&&(s.inverted=r!=="minMax");const o=t.getValAttrAsFloat("scaling/logBase",e);o!==null&&(s.logBase=o,s.scaleType="log"),y(t,e,s,"scaling/max","max"),y(t,e,s,"scaling/min","min")}afterVisit(t,e,s){s.fill&&s.labels&&(s.labels.fill=s.fill,delete s.fill);let r=t.getValAttrAsBoolean("delete",e);r!==null&&(t.setToPath(s,"labels.shown",r!==!0),t.setToPath(s,"shown",r!==!0));const o=t.getFromPath(s,"dispUnits.displayUnitsLabel");o&&(t.setToPath(s,"displayUnitsLabel",o),delete s.dispUnits);const i=t.evaluate("title",e);t.setToPath(s,"title.shown",i!==null);const n=t.evaluate("minorGridlines",e);t.setToPath(s,"gridLinesMinor.shown",n!==null);const l=t.evaluate("majorGridlines",e);t.setToPath(s,"gridLinesMajor.shown",l!==null)}}class F{constructor(t="text"){this._jsonKey=t}getTextPath(){return this._jsonKey}visit(t,e,s){let r=t.getFromPath(s,this.getTextPath());return r||(r={}),this.parseTextElement(t,e,r,!1),Object.keys(r).length>0&&t.setToPath(s,this.getTextPath(),r),s}parseTextElement(t,e,s,r){const o=t.evaluate("p/pPr/defRPr",e)??t.evaluate("defRPr",e);o&&(this.parseTextProperties(t,o,s),new L().visit(t,o,s));let i=[],n=t.evaluate("p/r",e)??t.evaluate("r",e);const l=c=>{const h={};let g=t.evaluate("t",c);const m=t.evaluate("rPr",c);m&&this.parseTextProperties(t,m,h),g?h.text=g.firstChild.textContent??"":c.textContent&&(h.text=c.textContent??""),i.push(h)};if(n?.length!==void 0)for(let c=0;n&&c<n.length;c++)l(n.item(c));else l(n||e);i.length>0&&(s.runs=i);const a=t.evaluate("bodyPr",e);a&&D(a,s)}parseTextProperties(t,e,s){if(!e)return;e.hasAttribute("sz")&&(s.size=parseFloat(e.getAttribute("sz"))/100),e.hasAttribute("b")&&(s.weight=e.getAttribute("b")==="1"?700:400),e.hasAttribute("i")&&(s.italic=e.getAttribute("i")==="1"),e.hasAttribute("u")&&(s.underline=e.getAttribute("u")),e.hasAttribute("strike")&&(s.strike=e.getAttribute("strike"));const r=t.evaluate("latin",e);if(r&&!r.getAttribute("typeface").startsWith("+")){const o=s.font??{};if(r.hasAttribute("typeface")&&(o.family=r.getAttribute("typeface")),r.hasAttribute("panose")){const i=r.getAttribute("panose");i&&(o.fallbacks=[d.IFont.getPanoseFallback(i)])}r.hasAttribute("pitchFamily")&&(o.pitch=r.getAttribute("pitchFamily")),r.hasAttribute("charset")&&(o.charset=r.getAttribute("charset")),Object.keys(o).length>0&&(s.font=o)}}}class st{visit(t,e,s){let r=t.getVisitorParamsState().get("series")[t.getValAttrAsInteger("idx",e)];if(r){let o=t.getFromPath(r,"title");o||(o={},t.setToPath(r,"title",o));let i=o,n=t.getValAttrAsBoolean("delete",e);return n!==null&&(i.shown=!n),i}return s}}class ot{visit(t,e,s){const r={};return A(t,e,r,"overlay","overlay"),f(t,e,r,"legendPos","position"),s.legend=r,r}}class it extends L{visit(t,e,s){const r=this.processFill(t,e,s);Object.keys(r).length>0&&(s.fillNegative=r);const o=this.processStroke(t,e,s);return Object.keys(o).length>0&&(s.strokeNegative=o),s}}class j extends F{constructor(t="title"){super(t)}parseTitleRangeOrValue(t,e,s){let r=t.evaluate("tx/strRef/f",e)??null;if(r){const o=r.firstElementChild.nodeValue;t.setToPath(s,"range",o)}}visit(t,e,s){const r={};A(t,e,r,"overlay","overlay"),s[this._jsonKey]=r;let o=t.getFromPath(r,this.getTextPath());o||(o={}),this.parseTitleRangeOrValue(t,e,r);const i=t.evaluate("txPr",e);i&&this.parseTextElement(t,i,o,!1);const n=t.evaluate("tx/rich",e);return n&&this.parseTextElement(t,n,o,!0),Object.keys(o).length>0&&t.setToPath(r,this.getTextPath(),o),r}afterVisit(t,e,s){if(s?.text){const r=s.text?.rotation??null;r!==null&&(s.rotation=parseInt(r),delete s.title.rotation)}}}class nt{visit(t,e,s){const r=t.evaluate("manualLayout",e);if(r){let o={};y(t,r,o,"x","x"),y(t,r,o,"y","y"),y(t,r,o,"w","w"),y(t,r,o,"h","h"),f(t,r,o,"xMode","xMode"),f(t,r,o,"yMode","yMode"),f(t,r,o,"wMode","wMode"),f(t,r,o,"hMode","hMode"),Object.keys(o).length>0&&(s.manualLayout=o)}return s}}class lt{visit(t,e,s){return s.name=e.getAttribute("name"),s}}class at extends M{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1){let l=n.localName;const a=t.evaluate(l,e),c=this.processAdjColor(t,a);r[l]=c}}return Object.keys(r).length>0&&(s.colors=r),r}}class ct{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=t.evaluate("majorFont",e),i=this.processFontElement(t,o,{});r.majorFont=i.family,i.fallbacks&&(r.majorFallbacks=i.fallbacks);const n=t.evaluate("minorFont",e),l=this.processFontElement(t,n,{});return r.minorFont=l.family,i.fallbacks&&(r.minorFallbacks=l.fallbacks),s.fonts=r,r}processFontElement(t,e,s){if(!e)return;const r=t.evaluate("latin",e);if(!r)return;const o=r.getAttribute("typeface");o&&(s.family=o);const i=r.getAttribute("panose");return i&&(s.fallbacks=[d.IFont.getPanoseFallback(i)]),s}}class ut{visit(t,e,s){if(!e)return;const r={},o=e.getAttribute("r:id");if(o){const i=t.getRef(o);typeof i=="string"&&(r.address=i)}return t.copyFromAttribute(e,"tooltip",r),t.copyFromAttribute(e,"history",r,"history",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tgtFrame",r,"target"),s.hyperlink=r,r}}class ht{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),this.processFilterColumns(t,e,r),Object.keys(r).length>0&&(s.filter=r),r}processColorFilter(t,e){const s={type:d.IAutoFilter.Type.Color};return t.copyFromAttribute(e,"cellColor",s,"cellColor",t.BOOLEAN_COPY),t.copyFromAttribute(e,"dxfId",s,"styleId",t.INT_COPY),s}processCustomFilter(t,e){const s={};return t.copyFromAttribute(e,"operator",s,"operator",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val"),s}processCustomFilters(t,e){const s={type:d.IAutoFilter.Type.Custom};t.copyFromAttribute(e,"and",s,"and",t.BOOLEAN_COPY);const r=e.childNodes;s.filters=[];for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType!==1)continue;let n=null;i.localName==="customFilter"&&(n=this.processCustomFilter(t,i)),n&&s.filters.push(n)}return s}processDynamicFilter(t,e){const s={type:d.IAutoFilter.Type.Dynamic};return t.copyFromAttribute(e,"type",s,"dynamicType"),t.copyFromAttribute(e,"val",s,"val",t.INT_COPY),t.copyFromAttribute(e,"maxVal",s,"maxVal",t.INT_COPY),s}processDateGroupItem(t,e){const s={};return t.copyFromAttribute(e,"dateTimeGrouping",s,"group"),t.copyFromAttribute(e,"day",s,"day",t.INT_COPY),t.copyFromAttribute(e,"hour",s,"hour",t.INT_COPY),t.copyFromAttribute(e,"minute",s,"minute",t.INT_COPY),t.copyFromAttribute(e,"month",s,"month",t.INT_COPY),t.copyFromAttribute(e,"second",s,"second",t.INT_COPY),t.copyFromAttribute(e,"year",s,"year",t.INT_COPY),s}processFilterItem(t,e){if(e.hasAttribute("val"))return e.getAttribute("val")}processFilters(t,e){const s={type:d.IAutoFilter.Type.Items};t.copyFromAttribute(e,"blank",s,"blank",t.BOOLEAN_COPY),t.copyFromAttribute(e,"calendarType",s,"calendarType");let r=[],o=[];const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1){if(l.localName==="dateGroupItem"){const a=this.processDateGroupItem(t,l);a&&r.push(a)}else if(l.localName==="filter"){const a=this.processFilterItem(t,l);a!==void 0&&o.push(a)}}}return r.length>0&&(s.dateGroups=r),o.length>0&&(s.items=o),s}processIcon(t,e){const s={type:d.IAutoFilter.Type.Icon};return t.copyFromAttribute(e,"iconId",s,"iconId",t.INT_COPY),t.copyFromAttribute(e,"iconSet",s),s}processTop10(t,e){const s={type:d.IAutoFilter.Type.Top10};return t.copyFromAttribute(e,"filterVal",s,"filterVal",t.FLOAT_COPY),t.copyFromAttribute(e,"percent",s,"percent",t.BOOLEAN_COPY),t.copyFromAttribute(e,"top",s,"top",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val",t.FLOAT_COPY),s}processFilterCriteria(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType!==1)continue;let l=null;n.localName==="colorFilter"?l=this.processColorFilter(t,n):n.localName==="customFilters"?l=this.processCustomFilters(t,n):n.localName==="dynamicFilter"?l=this.processDynamicFilter(t,n):n.localName==="filters"?l=this.processFilters(t,n):n.localName==="iconFilter"?l=this.processIcon(t,n):n.localName==="top10"&&(l=this.processTop10(t,n)),l&&o.push(l)}return o.length>0&&(s.criteria=o),o}processFilterColumn(t,e){if(!e)return null;const s={};if(!e.hasAttribute("colId"))return;s.offset=parseInt(e.getAttribute("colId"));let r=!1;return e.hasAttribute("hiddenButton")&&(r=p.b(e.getAttribute("hiddenButton"))),r&&(s.hiddenButton=!0),e.hasAttribute("showButton")&&(s.showButton=p.b(e.getAttribute("showButton"))),this.processFilterCriteria(t,e,s),s}processFilterColumns(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="filterColumn"){const l=this.processFilterColumn(t,n);l&&o.push(l)}}return o.length>0&&(s.fields=o),o}}class pt{visit(t,e,s){if(!e)return;const r={};if(t.copyFromAttribute(e,"ref",r),e.hasAttribute("caseSensitive")){const n=p.b(e.getAttribute("caseSensitive"));r.collatorOptions=n?d.Sort.CaseSensitiveOptions:d.Sort.CaseInsensitiveOptions}const o=e.getAttribute("sortMethod");o!=null&&o!=="none"&&(o==="stroke"?r.collatorOptions={...r.collatorOptions,collation:"stroke"}:o==="pinYin"&&(r.collatorOptions={...r.collatorOptions,collation:"pinyin"})),e.hasAttribute("columnSort")&&p.b(e.getAttribute("columnSort"))&&(r.orientation=d.IRange.Orientation.Column);const i=d.AddressUtils.fastStringToRange(r.ref);return this.processSortConditions(t,e,r,i),Object.keys(r).length>0&&(s.sort=r),r}processSortCondition(t,e,s){if(!e)return null;const r={};if(e.hasAttribute("ref")){if(e.hasAttribute("ref")){const o=e.getAttribute("ref"),i=d.AddressUtils.fastStringToRange(o);r.offset=s?i.colStart-s.colStart:i.colStart}return r.reverse=!1,e.hasAttribute("descending")&&(r.reverse=p.b(e.getAttribute("descending"))),t.copyFromAttribute(e,"sortBy",r,"sortOn"),t.copyFromAttribute(e,"dxfId",r),t.copyFromAttribute(e,"iconSet",r),t.copyFromAttribute(e,"customList",r),r}console.warn("no ref for sort conditional",t.getPath())}processSortConditions(t,e,s,r){if(!e)return;const o=e.childNodes,i=[];for(let n=0;n<o.length;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="sortCondition"){const a=this.processSortCondition(t,l,r);a&&i.push(a)}}return i.length>0&&(s.fields=i),i}}class z{visit(t,e,s){}processDataBarColor(t,e,s,r,o="dk1"){if(!e)return;const i=p.d(n=>e.getAttribute(n),o);return i&&(s[r]=i),s}processFonts(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="font"){const l={};this.processFont(t,n,l),s[o++]=l}}return s}processFont(t,e,s){t.getValAttrAsBoolean("b",e,!0)&&(s.weight=700),t.getValAttrAsBoolean("i",e,!0)&&(s.style=d.IFont.Style.Italic),t.getValAttrAsBoolean("strike",e,!0)&&(s.strike=!0);const r=t.evaluate("u",e);if(r){const n=r.getAttribute("val");s.underline=n||d.IFont.UnderlineStyle.Single}f(t,e,s,"vertAlign","verticalAlign"),s.verticalAlign==="superscript"?s.verticalAlign=d.IFont.VerticalAlignment.Super:s.verticalAlign==="subscript"&&(s.verticalAlign=d.IFont.VerticalAlignment.Sub),y(t,e,s,"sz","size");const o=t.evaluate("color",e);this.processDataBarColor(t,o,s,"fill"),s.fill||(s.fill="dk1"),f(t,e,s,"name","family"),f(t,e,s,"rFont","family");const i=t.evaluate("family",e);if(i){const n=i.getAttribute("val");if(n)switch(n){case"1":s.fallbacks=["serif"];break;case"2":s.fallbacks=["sans-serif"];break;case"3":s.fallbacks=["monospace"];break;case"4":s.fallbacks=["cursive"];break;case"5":s.fallbacks=["fantasy"]}}return f(t,e,s,"scheme","scheme"),A(t,e,s,"shadow","shadow",!0),A(t,e,s,"outline","outline",!0),t.getValAttrAsBoolean("condense",e,!0)&&(s.letterSpacing=-1),t.getValAttrAsBoolean("extend",e,!0)&&(s.letterSpacing=1),f(t,e,s,"charset","charset"),s}processFills(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="fill"&&this.processFill(t,n,s,o++)}return s}processFill(t,e,s,r){const o={type:d.IFill.Type.None},i=e.childNodes;let n=!1;for(let l=0;!n&&l<i.length;l++){const a=i.item(l);a.nodeType===1&&(a.localName==="gradientFill"?(this.processGradientFill(t,a,o),n=!0):a.localName==="patternFill"&&(this.processPatternFill(t,a,o),n=!0))}return s[r]=o,s}processGradientFill(t,e,s){if(!e)return;s.type=d.IFill.Type.Gradient;const r=[];s.stops=r,s.angle=90+(e.hasAttribute("degree")?parseFloat(e.getAttribute("degree")):0);const o=e.getAttribute("type");o&&(s.gradientType=o);const i=l=>{if(!l)return 0;const a=parseFloat(l);return isNaN(a)?0:a};(e.hasAttribute("left")||e.hasAttribute("top")||e.hasAttribute("right")||e.hasAttribute("bottom"))&&(s.fillTo={left:i(e.getAttribute("left")),top:i(e.getAttribute("top")),right:i(e.getAttribute("right")),bottom:i(e.getAttribute("bottom"))});const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="stop"){const c={};r.push(c);const h=parseFloat(a.getAttribute("position"));c.offset=h;const g=t.evaluate("color",a);this.processDataBarColor(t,g,c,"color")}}return s}processPatternFill(t,e,s){if(!e)return;const r=t.getVisitorParamsState().get("processingDXFs"),o=e.getAttribute("patternType")||(r?d.IFill.BuiltInSheetPattern.Solid:d.IFill.BuiltInSheetPattern.None);if(o===d.IFill.BuiltInSheetPattern.None)return{none:!0};s.type=d.IFill.Type.Pattern,o&&(s.patternType=o);let i,n="foreground",l="background";const a=s.patternType===d.IFill.BuiltInSheetPattern.Solid&&r;if(a){i="lt1";const g=n;n=l,l=g}const c=t.evaluate("fgColor",e);this.processDataBarColor(t,c,s,n,i);const h=t.evaluate("bgColor",e);return this.processDataBarColor(t,h,s,l,i),a&&!s.foreground&&(s.foreground=i),s}processBorders(t,e,s,r){if(!e)return;const o=e.childNodes;let i=0;for(let n=0;n<o.length;n++){const l=o.item(n);l.nodeType===1&&l.localName==="border"&&this.processBorder(t,l,s,i++,r)}return s}processBorder(t,e,s,r,o){if(!e)return;const i={};return this.processBorderStroke(t,e,i,d.IBorder.Edge.Left),this.processBorderStroke(t,e,i,d.IBorder.Edge.Right),o?(i.right||i.left)&&(i.right?i.vertical={...i.right}:i.vertical={...i.left}):this.processBorderStroke(t,e,i,d.IBorder.Edge.Vertical),this.processBorderStroke(t,e,i,d.IBorder.Edge.Top),this.processBorderStroke(t,e,i,d.IBorder.Edge.Bottom),o?(i.bottom||i.top)&&(i.right?i.horizontal={...i.bottom}:i.horizontal={...i.top}):this.processBorderStroke(t,e,i,d.IBorder.Edge.Horizontal),s[r]=i,s}processBorderStroke(t,e,s,r){if(!e)return;const o=t.evaluate(r,e);if(!o)return;const i={};o.hasAttribute("style")&&(i.style=o.getAttribute("style"));const n=t.evaluate("color",o);return n&&this.processDataBarColor(t,n,i,"color"),Object.keys(i).length>0?s[r]=i:null}}class gt extends z{visit(t,e,s){this.processNumFmts(t,t.evaluate("numFmts",e),null),t.getVisitorParamsState().set("colorsToProcess",new Set);const r={fills:{},fonts:{},borders:{}};this.processFonts(t,t.evaluate("fonts",e),r.fonts),this.processFills(t,t.evaluate("fills",e),r.fills),this.processBorders(t,t.evaluate("borders",e),r.borders,!0),r.fills[0]={type:d.IFill.Type.None},r.fills[1]={type:d.IFill.Type.Pattern,patternType:d.IFill.BuiltInSheetPattern.Gray125},r.borders[0]={};const o=[];this.processXFs(t,t.evaluate("cellStyleXfs",e),o,r,null,!1);const i=new Map;if(o.length>0){const a=[];this.processCellStyles(t,t.evaluate("cellStyles",e),a,o,i),s.named=a}const n=[];this.processXFs(t,t.evaluate("cellXfs",e),n,r,i),Object.keys(n).length>0&&(s.direct=n);const l=[];return this.processDXFs(t,t.evaluate("dxfs",e),l),this.processTableStyles(t,t.evaluate("tableStyles",e),s,l),this.processIndexColors(t,t.evaluate("colors/indexedColors",e),s),this.processMruColors(t,t.evaluate("colors/mruColors",e),s),s}processIndexColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="rgbColor"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}s.indexedColors=r}processMruColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="color"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}r.length>0&&(s.mruColors=r)}processNumFmts(t,e,s){if(!e)return;const r=new Map;if(t.getVisitorParamsState().set("numFmts",r),!e)return;const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="numFmt"){const l=n.getAttribute("numFmtId"),a=n.getAttribute("formatCode");if(l&&a){const c=a.replace(/\\(.)/g,"$1");r.set(parseInt(l),c)}}}}processXFs(t,e,s,r,o=null,i=!0){if(!e)return;const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="xf"){const c={};this.processXF(t,a,c,r,o,i),s.push(c)}}}processXF(t,e,s,r,o,i){if(!e)return;const n=e.getAttribute("xfId");if(n&&o){const c=o.get(parseInt(n));c&&c!==d.IStyle.BuiltInName.Normal&&(s.named=c)}const l=c=>!(!i&&e.hasAttribute(c))||p.b(e.getAttribute("applyFont"));if(l("applyFont")){const c=r.fonts[e.getAttribute("fontId")];c&&(s.font=c)}if(l("applyFill")){const c=r.fills[e.getAttribute("fillId")];c&&Object.keys(c).length>0&&(s.fill=c)}if(l("applyBorder")){const c=r.borders[e.getAttribute("borderId")];c&&Object.keys(c).length>0&&(s.border=c)}if(l("applyNumberFormat")){const c=e.getAttribute("numFmtId");if(c){const h=parseInt(c);let g;const m=t.getVisitorParamsState();if(m){const b=m.get("numFmts");b&&(g=b.get(h)),s.numberFormat=g??h}else console.warn("no visitor params state")}}l("applyAlignment")&&this.processAlignment(t,t.evaluate("alignment",e),s),l("applyProtection")&&this.processProtection(t,t.evaluate("protection",e),s);const a=p.b(e.getAttribute("quotePrefix"));a&&(s.quotePrefix=a)}processAlignment(t,e,s){const r={};if(e?.hasAttribute("horizontal")?r.horizontal=e.getAttribute("horizontal"):r.horizontal=d.ITextFrame.HorizontalAlignment.General,e?.hasAttribute("vertical")?r.vertical=e.getAttribute("vertical"):r.vertical=d.ITextFrame.VerticalAlignment.Bottom,e?.hasAttribute("indent")?r.indent=parseInt(e.getAttribute("indent")):r.indent=0,e?.hasAttribute("relativeIndent")?r.relativeIndent=parseInt(e.getAttribute("relativeIndent")):r.relativeIndent=0,p.b(e?.getAttribute("wrapText"))?r.overflow=d.ITextFrame.Overflow.Wrap:r.overflow=d.ITextFrame.Overflow.Visible,p.b(e?.getAttribute("shrinkToFit"))&&(r.overflow=d.ITextFrame.Overflow.Shrink),e?.hasAttribute("textRotation")){let i=parseFloat(e.getAttribute("textRotation"));i>0&&i<=90?i=360-i:i>90&&i<=180?i-=90:i===255&&(i=0,r.stacked=!0),r.rotation=i}else r.rotation=0;e?.hasAttribute("justifyLastLine")&&(r.justifyLastLine=p.b(e.getAttribute("justifyLastLine")));const o=e?.getAttribute("readingOrder");return o&&(o==="0"?r.readingDirection=d.ITextFrame.ReadingDirection.Auto:o==="1"?r.readingDirection=d.ITextFrame.ReadingDirection.LeftToRight:o==="2"?r.readingDirection=d.ITextFrame.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${o}`)),Object.keys(r).length>0&&(s.alignment=r),s}processProtection(t,e,s){if(!e)return;const r={},o=e.getAttribute("locked");o&&!p.b(o)&&(r.edit=!0);const i=e.getAttribute("hidden");return i&&p.b(i)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(s.protection=r),s}processDXF(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="font"){const n={};this.processFont(t,i,n),s.font=n}else if(i.nodeType===1&&i.localName==="fill"){const n=[];this.processFill(t,i,n,0),n.length>0&&n[0]&&(s.fill=n[0])}else if(i.nodeType===1&&i.localName==="border"){const n=[];this.processBorder(t,i,n,0,!1),n.length>0&&n[0]&&(s.border=n[0])}}}processDXFs(t,e,s){if(!e)return;t.getVisitorParamsState().set("processingDXFs",!0);const r=new Map;t.getVisitorParamsState().set("dxfs",r);const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="dxf"){const l={};this.processDXF(t,n,l);const a=s.length;r.set(a,l),s.push(l)}}t.getVisitorParamsState().delete("processingDXFs")}processTableStyle(t,e,s,r,o=!1){const i=e.getAttribute("name"),n={name:i};e.hasAttribute("table")&&(n.table=p.b(e.getAttribute("table"))),e.hasAttribute("pivot")&&(n.pivot=p.b(e.getAttribute("pivot"))),o&&!n.pivot&&r.unshift(null);const l=e.childNodes;for(let a=0;a<l.length;a++){const c=l.item(a);if(c.nodeType===1&&c.localName==="tableStyleElement"){const h=c.getAttribute("type"),g=c.getAttribute("dxfId");let m=r?.[g];m||(console.warn("invalid dfx id",g),m={}),n[h]=m;let b=null;c.hasAttribute("size")&&(b=parseInt(c.getAttribute("size"))),b&&!isNaN(b)&&(m.size=b)}}delete n.name,s[i]=n}processTableStyles(t,e,s,r,o){if(!e)return;const i={},n=e.getAttribute("defaultTableStyle");n&&(i.defaultTableStyle=n);const l=e.getAttribute("defaultPivotStyle");l&&(i.defaultPivotStyle=l);const a=e.childNodes,c={};for(let h=0;h<a.length;h++){const g=a.item(h);g.nodeType===1&&g.localName==="tableStyle"&&this.processTableStyle(t,g,c,r,o)}return Object.keys(c).length>0&&(i.styles=c),Object.keys(i).length>0&&(s.tables=i),s}processCellStyles(t,e,s,r,o){if(!e)return;const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1&&l.localName==="cellStyle"){const a=parseInt(l.getAttribute("xfId")),c=l.getAttribute("name");if(o.set(a,c),!r[a])continue;const h={name:c,style:r[a]};l.getAttribute("hidden")&&(h.hidden=p.b(l.getAttribute("hidden"))),l.getAttribute("iLevel")&&(h.iLevel=parseInt(l.getAttribute("iLevel"))),s.push(h)}}}afterVisit(t,e,s){}}class dt extends z{visit(t,e,s){return this.processSheetRefs(t,t.evaluate("sheets",e),s),this.processBookViews(t,t.evaluate("bookViews",e),s),this.processDefinedNames(t,t.evaluate("definedNames",e),s),this.processCalcPr(t,t.evaluate("calcPr",e),s),this.processWorkbookProtection(t,t.evaluate("workbookProtection",e),s),this.processWorkbookPr(t,t.evaluate("workbookPr",e),s),s}processPassword(t,e,s,r="password"){if(!e)return;const o={};t.copyFromAttribute(e,"algorithmName",o,"algorithmName"),t.copyFromAttribute(e,"hashValue",o,"hashValue"),t.copyFromAttribute(e,"saltValue",o,"saltValue",t.BOOLEAN_COPY),t.copyFromAttribute(e,"spinCount",o,"spinCount",t.INT_COPY),Object.keys(o).length>0&&(s[r]=o)}processWorkbookProtection(t,e,s){if(!e)return;const r={};this.processPassword(t,t.evaluate("workbookPassword",e),r),this.processPassword(t,t.evaluate("revisionsPassword",e),r,"revisionsPassword");const o=i=>i!==!0&&i!=="1"&&i!=="on"&&i!=="true"&&(i===!1||i==="0"||i==="off"||i==="false"||null);return t.copyFromAttribute(e,"lockStructure",r,"structure",o),t.copyFromAttribute(e,"lockWindows",r,"windows",o),t.copyFromAttribute(e,"lockRevision",r,"revision",o),s.protection=r,s}processCalcPr(t,e,s){e&&(s.calc={})}processSheetRefs(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="sheet"&&this.processSheetRef(t,n,r)}s.sheets=r}processSheetRef(t,e,s){const r={};t.copyFromAttribute(e,"name",r,"name"),t.copyFromAttribute(e,"state",r,"visibility");const o=e.getAttribute("r:id"),i=t.getRef(o);i&&(r.sheet=i),s.push(r)}processBookViews(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;o<1&&i<e.childNodes.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="workbookView"&&(this.processWorkbookView(t,n,s),o++)}}processWorkbookView(t,e,s){if(!e)return;const r={};t.copyFromAttribute(e,"activeTab",r,"activeSheetId",[t.INT_COPY,o=>o+1]),e.hasAttribute("activeTab")||(r.activeSheetId=1),t.copyFromAttribute(e,"showHorizontalScroll",r,"showHorizontalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showVerticalScroll",r,"showVerticalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showSheetTabs",r,"showTabs",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tabRatio",r,"tabRatio",[t.FLOAT_COPY,o=>o]),Object.keys(r).length>0&&(s.view=r)}processDefineName(t,e,s,r){if(!e)return;const o={},i=e.firstChild;if(i&&i.nodeType===3&&(o.ref=i.textContent),t.copyFromAttribute(e,"name",o),t.copyFromAttribute(e,"comment",o),t.copyFromAttribute(e,"hidden",o,"hidden",t.BOOLEAN_COPY),e.hasAttribute("localSheetId")){const n=e.getAttribute("localSheetId");if(!r[n]?.name)return void console.warn(`Defined name '${e.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);o.scope=r[n].name}t.copyFromAttribute(e,"customMenu",o),t.copyFromAttribute(e,"description",o),t.copyFromAttribute(e,"statusBar",o),t.copyFromAttribute(e,"help",o),t.copyFromAttribute(e,"shortcutKey",o),t.copyFromAttribute(e,"function",o,"function",t.BOOLEAN_COPY),t.copyFromAttribute(e,"functionGroupId",o,"functionGroupId",t.INT_COPY),t.copyFromAttribute(e,"publishToServer",o,"publishToServer",t.BOOLEAN_COPY),t.copyFromAttribute(e,"vbProcedure",o,"vbProcedure",t.BOOLEAN_COPY),t.copyFromAttribute(e,"xlm",o,"xlm",t.BOOLEAN_COPY),Object.keys(o).length>0&&s.push(o)}processDefinedNames(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="definedName"&&this.processDefineName(t,n,r,s.sheets)}r.length>0&&(s.names=r)}processWorkbookPr(t,e,s){e&&t.copyFromAttribute(e,"date1904",s,"date1904",t.BOOLEAN_COPY)}afterVisit(t,e,s){}}class mt{visit(t,e,s){return t.copyFromAttribute(e,"name",s),t.copyFromAttribute(e,"displayName",s),t.copyFromAttribute(e,"ref",s),t.copyFromAttribute(e,"headerRowCount",s,"headerRowCount",t.INT_COPY),t.copyFromAttribute(e,"totalsRowCount",s,"totalsRowCount",t.INT_COPY),this.processTableColumns(t,e,s),this.processTableStyleInfo(t,e,s),s}processTableStyleInfo(t,e,s){if(!e)return;const r=e.childNodes,o={};for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableStyleInfo"&&(t.copyFromAttribute(n,"name",o),t.copyFromAttribute(n,"showColumnStripes",o,"showColumnStripes",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showFirstColumn",o,"showFirstColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showLastColumn",o,"showLastColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showRowStripes",o,"showRowStripes",t.BOOLEAN_COPY))}Object.keys(o).length>0&&(s.styleOptions=o)}processTableColumn(t,e,s){if(!e)return null;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="tableColumn"){const n={};t.copyFromAttribute(i,"name",n),t.copyFromAttribute(i,"uniqueName",n),s.push(n)}}return s}processTableColumns(t,e,s){const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableColumns"&&this.processTableColumn(t,n,o)}o.length>0&&(s.columns=o)}}class bt{visit(t,e,s){return s}}class k{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"editAs",r,"anchorType"),r.anchor={},this.processOffsetCoord(t,t.evaluate("from",e),r.anchor,"from"),this.processOffsetCoord(t,t.evaluate("to",e),r.anchor,"to"),s.movables||(s.movables=[]),s.movables.push(r),r}processOffsetCoord(t,e,s,r){if(!e)return;const o={c:0,r:0,x:0,y:0};return t.evaluate("col",e)&&(o.c=parseInt(t.evaluate("col",e).textContent)),t.evaluate("row",e)&&(o.r=parseInt(t.evaluate("row",e).textContent)),t.evaluate("colOff",e)&&(o.x=p.c(t.evaluate("colOff",e).textContent)),t.evaluate("rowOff",e)&&(o.y=p.c(t.evaluate("rowOff",e).textContent)),r==="from"?s.tl=o:s.br=o,s}}class B{visit(t,e,s){if(!e)return;const r=t.evaluate("*/cNvPr",e);return r&&(t.copyFromAttribute(r,"name",s),t.copyFromAttribute(r,"desc",s),t.copyFromAttribute(r,"hidden",s,"hidden",t.BOOLEAN_COPY),t.copyFromAttribute(r,"id",s)),s}}class At extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGraphicFramePr/cNvGraphicFramePr",e);if(r){const n=t.evaluate("graphicFrameLocks",r);if(n){n.hasAttribute("noChangeAspect")&&(s.lockAspect=n.getAttribute("noChangeAspect")==="1");const l={};Object.keys(l).length>0&&(s.locks=l)}}let o={type:"graphicFrame",json:{}};const i=t.evaluate("graphic/graphicData",e).childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1)try{let a=l.localName;a==="chart"&&(a="chart"),o.type=a;const c=l.getAttribute("r:id");c&&(o.json=t.getRef(c))}catch(a){console.warn("Unable to parse graphicFrame",a)}}return o&&(s.content=o),o}}class _ extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvSpPr/cNvSpPr",e);if(r){const i=t.evaluate("spLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', shapes are not supported.`);const o={};return s.content={type:"sp",json:o},o}}class ft extends B{visit(t,e,s){if(!e)return;const r=super.visit(t,e,s),o=t.evaluate("nvPicPr/cNvPicPr",e);if(o){t.copyFromAttribute(e,"preferRelativeResize",r,"preferRelativeResize",t.BOOLEAN_COPY);const a=t.evaluate("picLocks",o);if(a){a.hasAttribute("noChangeAspect")&&(r.lockAspect=a.getAttribute("noChangeAspect")==="1");const c={};t.copyFromAttribute(a,"noChangeArrowheads",r,"noChangeArrowheads",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noChangeShapeType",r,"noChangeShapeType",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noEditPoints",r,"noEditPoints",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noAdjustHandles",r,"noAdjustHandles",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noCrop",r,"noCrop",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noGrp",r,"noGrp",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noMove",r,"noMove",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noResize",r,"noResize",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noRot",r,"noRot",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noSelect",r,"noSelect",t.BOOLEAN_COPY),Object.keys(c).length>0&&(r.locks=c)}}const i=t.evaluate("blipFill/blip",e);let n;if(i){const a=i.getAttribute("r:embed")??i.getAttribute("embed");if(!a)return void console.warn("no rId found for blip",i);n=t.getRef(a,!0)}const l={resId:n};return s.content={type:"picture",json:l},r}}class yt extends _{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGrpSpPr/cNvGrpSpPr",e);if(r){const i=t.evaluate("grpSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', group shapes are not supported.`);const o={};return s.content={type:"grpSp",json:o},o}}class vt extends _{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvCxnSpPr/cNvCxnSpPr",e);if(r){const i=t.evaluate("cxnSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', connection shapes are not supported.`);const o={};return s.content={type:"cxnSp",json:o},o}}const R="richTypes";class Ft{visit(t,e,s){let r=t.getVisitorParamsState().get(R);r||(r=[],t.getVisitorParamsState().set(R,r));const o=e.childNodes,i=o.length;for(let n=0;n<i;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="s"){const a={type:l.getAttribute("t")??"n",keys:[]};this.processKeys(t,l,a),r.push(a)}}return s.richTypes=r,r}processKeys(t,e,s){const r=e.childNodes,o=r.length,i=s.keys;for(let n=0;n<o;n++){const l=r.item(n);if(l.nodeType===1&&l.localName==="k"){const a=l.getAttribute("n"),c=l.getAttribute("t");i.push([a,c])}}}}const E="richData";class Ct{visit(t,e,s){let r=t.getVisitorParamsState().get("richTypes");if(!r)return void t.warn("RichValueFound but not type.");let o=t.getVisitorParamsState().get(E);o||(o=[],t.getVisitorParamsState().set(E,o));const i=e.childNodes,n=i.length;for(let l=0;l<n;l++){const a=i.item(l);if(a.nodeType===1&&a.localName==="rv"){const c=r[a.getAttribute("s")],h={type:c.type};this.processValues(t,a,h,c);const g=this.mapType(t,h);o.push(g)}}return s.richData=o,o}mapType(t,e){if(e.type==="_error"){const s=e.errorType;if(s)try{e=d.FormulaError.getBuiltInById(s+1)}catch{}}return e}processValues(t,e,s,r){const o=e.childNodes,i=o.length;r.type;const n=r.keys;for(let l=0;l<i;l++){const a=o.item(l);if(a.nodeType===1&&a.localName==="v"){const c=n[l];if(!c)return void t.warn("Invalid richData");const h=c[0],g=c[1];let m=a.textContent;g==="i"&&(m=Number(m)),s[h]=m}}}}class wt{visit(t,e,s){if(!e)return;const r=[];return this.processAuthors(t,t.evaluate("authors",e),r),r.length>0&&(s.authors=r),s.comments=[],s}processAuthors(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="author"){const n=i.firstChild;n&&n.nodeType===3&&s.push(n.textContent)}}}}class Pt{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"authorId",r,"authorId",t.INT_COPY),r.asNote=!0,s.comments||(s.comments=[]),s.comments.push(r),r}}class Nt{visit(t,e,s){if(!e)return;const r=[];return s.comments=r,r}}class Ot{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"id",r,"id",p.r),t.copyFromAttribute(e,"personId",r,"personId",p.r),t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"parentId",r,"parentId",p.r),t.copyFromAttribute(e,"dT",r),e.hasAttribute("done")&&(r.done=p.b(e.getAttribute("done"))),s.push(r),r}}class Tt{visit(t,e,s){const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="person"){const l={};t.copyFromAttribute(n,"id",l,"id",p.r),t.copyFromAttribute(n,"displayName",l),t.copyFromAttribute(n,"userId",l,"userId",p.r),t.copyFromAttribute(n,"providerId",l),r.push(l)}}return r.length>0&&(s.persons=r),r}}const St={};class Vt{constructor(t,e){this.path=t,this.visitor=e}}class Y{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor("Relationships",new H),this.registerVisitor("spPr",new L),this.registerVisitor("txBody",new F),this.registerVisitor("txPr",new F),this.registerVisitor("c:chartSpace",new q),this.registerVisitor("c:chartSpace",new J,"chart"),this.registerVisitor("c:plotArea",new Q),this.registerVisitor("c:barChart",new Z),this.registerVisitor("c:doughnutChart",new N),this.registerVisitor("c:lineChart",new N),this.registerVisitor("c:ofPieType",new N),this.registerVisitor("c:pieChart",new N),this.registerVisitor("c:scatterChart",new N),this.registerVisitor("c:barChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:doughnutChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:lineChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ofPieType",new w("dataLabels"),"dLbls"),this.registerVisitor("c:pieChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:scatterChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ser",new tt),this.registerVisitor("c:dPt",new et),this.registerVisitor("c:marker",new rt),this.registerVisitor("c:catAx",new x),this.registerVisitor("c:valAx",new x),this.registerVisitor("c:dateAx",new x),this.registerVisitor("c:majorGridlines",new V("gridLinesMajor")),this.registerVisitor("c:minorGridlines",new V("gridLinesMinor")),this.registerVisitor("c:chartSpace",null,"txPr"),this.registerVisitor("c:catAx",new F("labels.text"),"txPr"),this.registerVisitor("c:valAx",new F("labels.text"),"txPr"),this.registerVisitor("c:dateAx",new F("labels.text"),"txPr"),this.registerVisitor("c:legend",new ot),this.registerVisitor("c:legend",new F("labels.text"),"txPr"),this.registerVisitor("c:legendEntry",new st),this.registerVisitor("c:ser",new it,"extLst/ext/invertSolidFillFmt/spPr"),this.registerVisitor("c:ser",new w("labels"),"dLbls"),this.registerVisitor("c:dLbl",new w("points")),this.registerVisitor("c:title",new j),this.registerVisitor("c:title",null,"tx/rich"),this.registerVisitor("c:title",null,"txPr"),this.registerVisitor("c:layout",new nt),this.registerVisitor("c:dispUnits",new V("dispUnits")),this.registerVisitor("c:dispUnitsLbl",new j("displayUnitsLabel")),this.registerVisitor("c:dispUnitsLbl",new F,"tx/rich"),this.registerVisitor("a:theme",new lt),this.registerVisitor("a:theme",new at,"themeElements/clrScheme"),this.registerVisitor("a:theme",new ct,"themeElements/fontScheme"),this.registerVisitor("autoFilter",new ht),this.registerVisitor("sortState",new pt),this.registerVisitor("s:workbook",new dt),this.registerVisitor("styleSheet",new gt),this.registerVisitor("table",new mt),this.registerVisitor("hlinkClick",new ut),this.registerVisitor("wsDr",new bt),this.registerVisitor("twoCellAnchor",new k),this.registerVisitor("oneCellAnchor",new k),this.registerVisitor("absoluteAnchor",new k),this.registerVisitor("graphicFrame",new At),this.registerVisitor("sp",new _),this.registerVisitor("grpSp",new yt),this.registerVisitor("cxnSp",new vt),this.registerVisitor("pic",new ft),this.registerVisitor("rvStructures",new Ft),this.registerVisitor("rvData",new Ct),this.registerVisitor("comments",new wt),this.registerVisitor("commentList",new Pt,"comment"),this.registerVisitor("comment",new F("content"),"text"),this.registerVisitor("ThreadedComments",new Nt),this.registerVisitor("threadedComment",new Ot),this.registerVisitor("threadedComment",new F("content"),"text"),this.registerVisitor("personList",new Tt)}registerVisitor(t,e,s=null){t.indexOf(":")===-1&&(t="*:"+t);const r=t.split(":"),o=r.length>1?r[1]:r[0];if(!s)return this.visitorsByXmlTagName.set(o,e),void this.visitorsByXmlTagName.set(t,e);let i=this.scopedVisitorsByXmlTagName.get(o);i||(i=[],this.scopedVisitorsByXmlTagName.set(o,i),this.scopedVisitorsByXmlTagName.set(t,i)),i.push(new Vt(s,e))}getVisitorParamsState(){return this.visitorParamsState}convert(t,e,s=St){const r=t.documentElement;this.visitorParamsState&&!s?.paramMap||(this.visitorParamsState=s?.paramMap??new Map);const o={};let i=this.visitorsByXmlTagName.get(r.nodeName);if(i||(i=this.visitorsByXmlTagName.get(r.localName)),!i)throw new Error(`A visitor for the root element: '${r.nodeName}' or '${r.localName}' must be registered.`);const n="/"+r.localName,l=new S(null,this,n,r,o,e,s),a=[];this._doWalk(i,l,a,r,o,e,s);for(let c=0;c<a.length;c++){const h=a[c];try{h.visitor?.afterVisit?.(h.context,h.elemParent,h.jsonParent)}catch(g){console.warn(`Error in afterVisit: ${h.context.getPath()}`,g)}}return o}_walkScoped(t,e,s,r,o,i,n){const l=this.scopedVisitorsByXmlTagName.get(t);for(let a=0;l&&a<l.length;a++){const c=l[a];let h=null;try{h=e.evaluate(c.path,r)}catch{console.warn(`"Invalid path '${c.path}' for '${t}'.`)}if(!h)continue;const g=m=>{let b=m.localName,v=m.parentNode;for(;v&&v!==r;)b=v.localName+"/"+b,v=v.parentNode;const P=e.getPath()+"/"+b;if(c.visitor){const T=new S(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(c.visitor,T,s,m,o,i,n)}};if(h.length>0){const m=h;for(let b=0;b<m.length;b++)g(m.item(b))}else g(h)}}_doWalk(t,e,s,r,o,i,n){let l=null;t&&(s.push({visitor:t,context:e,elemParent:r,jsonParent:o}),l=t.visit(e,r,o)),l||(l=o);const a=r.localName;this._walkScoped(a,e,s,r,l,i,n);const c=r.childNodes;for(let h=0;h<c.length;h++){const g=c.item(h);if(g.nodeType===1){const m=g,b=m.localName,v=this.visitorsByXmlTagName.get(b),P=e.getPath()+"/"+b,T=new S(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(v,T,s,m,l??o,i,n)}}return l}}exports.FromOOXMLConverter=Y,exports.default=Y;
@@ -1,19 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),w=require("./C-izbj62pQuZjOrT.cjs"),B=require("react"),U=require("./CzI4ZcsmzsyPBpWN.cjs");function Ut(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const R=Ut(B),Vt=R.createContext(),$t=R.createContext();function qt(o){return w.generateUtilityClass("MuiTableCell",o)}const Kt=w.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Xt=w.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,e[t.variant],e[`size${w.capitalize(t.size)}`],t.padding!=="normal"&&e[`padding${w.capitalize(t.padding)}`],t.align!=="inherit"&&e[`align${w.capitalize(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(w.memoTheme(({theme:o})=>({...o.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:o.vars?`1px solid ${o.vars.palette.TableCell.border}`:`1px solid
7
- ${o.palette.mode==="light"?w.lighten(w.alpha(o.palette.divider,1),.88):w.darken(w.alpha(o.palette.divider,1),.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",[`&.${Kt.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(o.vars||o).palette.background.default}}]}))),Me=R.forwardRef(function(o,e){const t=w.useDefaultProps({props:o,name:"MuiTableCell"}),{align:n="inherit",className:r,component:l,padding:i,scope:a,size:s,sortDirection:c,variant:d,...h}=t,f=R.useContext(Vt),u=R.useContext($t),v=u&&u.variant==="head";let m;m=l||(v?"th":"td");let _=a;m==="td"?_=void 0:!_&&v&&(_="col");const S=d||u&&u.variant,y={...t,align:n,component:m,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},g=(x=>{const{classes:z,variant:b,align:I,padding:P,size:O,stickyHeader:k}=x,T={root:["root",b,k&&"stickyHeader",I!=="inherit"&&`align${w.capitalize(I)}`,P!=="normal"&&`padding${w.capitalize(P)}`,`size${w.capitalize(O)}`]};return w.composeClasses(T,qt,z)})(y);let C=null;return c&&(C=c==="asc"?"ascending":"descending"),E.jsx(Xt,{as:m,ref:e,className:w.clsx(g.root,r),"aria-sort":C,scope:_,ownerState:y,...h})}),Yt=w.VC();function me(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}function K(o,e){return e&&o&&typeof o=="object"&&o.styles&&!o.styles.startsWith("@layer")&&(o.styles=`@layer ${e}{${String(o.styles)}}`),o}function Jt(o){return o?(e,t)=>t[o]:null}function he(o,e,t){const n=typeof e=="function"?e(o):e;if(Array.isArray(n))return n.flatMap(r=>he(o,r,t));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=t?K(n.style,t):n.style;else{const{variants:l,...i}=n;r=t?K(w.internal_serializeStyles(i),t):i}return ht(o,n.variants,[r],t)}return n?.isProcessed?t?K(w.internal_serializeStyles(n.style),t):n.style:t?K(w.internal_serializeStyles(n),t):n}function ht(o,e,t=[],n=void 0){let r;e:for(let l=0;l<e.length;l+=1){const i=e[l];if(typeof i.props=="function"){if(r??={...o,...o.ownerState,ownerState:o.ownerState},!i.props(r))continue}else for(const a in i.props)if(o[a]!==i.props[a]&&o.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(r??={...o,...o.ownerState,ownerState:o.ownerState},t.push(n?K(w.internal_serializeStyles(i.style(r)),n):i.style(r))):t.push(n?K(w.internal_serializeStyles(i.style),n):i.style)}return t}function Zt(o){return o&&o.charAt(0).toLowerCase()+o.slice(1)}const Qt=function(o={}){const{themeId:e,defaultTheme:t=Yt,rootShouldForwardProp:n=me,slotShouldForwardProp:r=me}=o;function l(i){var a,s,c;s=e,c=t,(a=i).theme=function(d){for(const h in d)return!1;return!0}(a.theme)?c:a.theme[s]||a.theme}return(i,a={})=>{w.internal_mutateStyles(i,z=>z.filter(b=>b!==w.Ts));const{name:s,slot:c,skipVariantsResolver:d,skipSx:h,overridesResolver:f=Jt(Zt(c)),...u}=a,v=s&&s.startsWith("Mui")||c?"components":"custom",m=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,_=h||!1;let S=me;var y;c==="Root"||c==="root"?S=n:c?S=r:typeof(y=i)=="string"&&y.charCodeAt(0)>96&&(S=void 0);const g=w.styled$1(i,{shouldForwardProp:S,label:void 0,...u}),C=z=>{if(z.__emotion_real===z)return z;if(typeof z=="function")return function(b){return he(b,z,b.theme.modularCssLayers?v:void 0)};if(w.ai(z)){const b=function(I){const{variants:P,...O}=I,k={variants:P,style:w.internal_serializeStyles(O),isProcessed:!0};return k.style===O||P&&P.forEach(T=>{typeof T.style!="function"&&(T.style=w.internal_serializeStyles(T.style))}),k}(z);return function(I){return b.variants?he(I,b,I.theme.modularCssLayers?v:void 0):I.theme.modularCssLayers?K(b.style,v):b.style}}return z},x=(...z)=>{const b=[],I=z.map(C),P=[];if(b.push(l),s&&f&&P.push(function(T){const G=T.theme,A=G.components?.[s]?.styleOverrides;if(!A)return null;const V={};for(const Oe in A)V[Oe]=he(T,A[Oe],T.theme.modularCssLayers?"theme":void 0);return f(T,V)}),s&&!m&&P.push(function(T){const G=T.theme,A=G?.components?.[s]?.variants;return A?ht(T,A,[],T.theme.modularCssLayers?"theme":void 0):null}),_||P.push(w.Ts),Array.isArray(I[0])){const T=I.shift(),G=new Array(b.length).fill(""),A=new Array(P.length).fill("");let V;V=[...G,...T,...A],V.raw=[...G,...T.raw,...A],b.unshift(V)}const O=[...b,...I,...P],k=g(...O);return i.muiName&&(k.muiName=i.muiName),k};return g.withConfig&&(x.withConfig=g.withConfig),x}}({themeId:w.Vi,defaultTheme:w.JC,rootShouldForwardProp:o=>function(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}(o)&&o!=="classes"});function H(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function Z(o){return(Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}function ft(o){var e=function(t){if(Z(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,"string");if(Z(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o);return Z(e)=="symbol"?e:e+""}function Le(o,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,ft(n.key),n)}}function W(o,e,t){return e&&Le(o.prototype,e),t&&Le(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function D(o,e){if(e&&(Z(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)}function M(o){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(o)}function j(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&w.uu(o,e)}function p(o,e,t){return(e=ft(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function pt(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function mt(o){this.setState(function(e){return this.constructor.getDerivedStateFromProps(o,e)??null}.bind(this))}function gt(o,e){try{var t=this.props,n=this.state;this.props=o,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,n)}finally{this.props=t,this.state=n}}function ce(o){var e=o.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return o;var t=null,n=null,r=null;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){var l=o.displayName||o.name,i=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
8
-
9
- `+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
10
- `+t:"")+(n!==null?`
11
- `+n:"")+(r!==null?`
12
- `+r:"")+`
13
-
14
- The above lifecycles should be removed. Learn more about this warning here:
15
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(e.componentWillMount=pt,e.componentWillReceiveProps=mt),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=gt;var a=e.componentDidUpdate;e.componentDidUpdate=function(s,c,d){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,s,c,h)}}return o}function Ge(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function Ae(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ge(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function vt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vt=function(){return!!o})()}pt.__suppressDeprecationWarning=!0,mt.__suppressDeprecationWarning=!0,gt.__suppressDeprecationWarning=!0;var Ee=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,vt()?Reflect.construct(n,r||[],M(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){var c=e.props,d=c.columnCount,h=c.disabled,f=c.mode,u=c.rowCount;if(!h){var v=e._getScrollState(),m=v.scrollToColumn,_=v.scrollToRow,S=e._getScrollState(),y=S.scrollToColumn,g=S.scrollToRow;switch(s.key){case"ArrowDown":g=Math.min(f==="cells"?g+1:e._rowStopIndex+1,u-1);break;case"ArrowLeft":y=Math.max(f==="cells"?y-1:e._columnStartIndex-1,0);break;case"ArrowRight":y=Math.min(f==="cells"?y+1:e._columnStopIndex+1,d-1);break;case"ArrowUp":g=Math.max(f==="cells"?g-1:e._rowStartIndex-1,0)}y===m&&g===_||(s.preventDefault(),e._updateScrollState({scrollToColumn:y,scrollToRow:g}))}}),p(e,"_onSectionRendered",function(s){var c=s.columnStartIndex,d=s.columnStopIndex,h=s.rowStartIndex,f=s.rowStopIndex;e._columnStartIndex=c,e._columnStopIndex=d,e._rowStartIndex=h,e._rowStopIndex=f}),e}return j(o,R.PureComponent),W(o,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),l=r.scrollToColumn,i=r.scrollToRow;return R.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,l=r.isControlled,i=r.onScrollToChange;typeof i=="function"&&i({scrollToColumn:t,scrollToRow:n}),l||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?Ae(Ae({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}();function _t(o,e){var t,n,r=(t=e!==void 0?e:typeof window<"u"?window:typeof self<"u"?self:global).document!==void 0&&t.document.attachEvent;if(!r){var l=(n=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(g){return t.setTimeout(g,20)},function(g){return n(g)}),i=function(){var g=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(C){return g(C)}}(),a=function(g){var C=g.__resizeTriggers__,x=C.firstElementChild,z=C.lastElementChild,b=x.firstElementChild;z.scrollLeft=z.scrollWidth,z.scrollTop=z.scrollHeight,b.style.width=x.offsetWidth+1+"px",b.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},s=function(g){if(!(g.target.className&&typeof g.target.className.indexOf=="function"&&g.target.className.indexOf("contract-trigger")<0&&g.target.className.indexOf("expand-trigger")<0)){var C=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=l(function(){var x;((x=C).offsetWidth!=x.__resizeLast__.width||x.offsetHeight!=x.__resizeLast__.height)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(z){z.call(C,g)}))})}},c=!1,d="",h="animationstart",f="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v=t.document.createElement("fakeelement");if(v.style.animationName!==void 0&&(c=!0),c===!1){for(var m=0;m<f.length;m++)if(v.style[f[m]+"AnimationName"]!==void 0){d="-"+f[m].toLowerCase()+"-",h=u[m],c=!0;break}}var _="resizeanim",S="@"+d+"keyframes "+_+" { from { opacity: 0; } to { opacity: 0; } } ",y=d+"animation: 1ms "+_+"; "}return{addResizeListener:function(g,C){if(r)g.attachEvent("onresize",C);else{if(!g.__resizeTriggers__){var x=g.ownerDocument,z=t.getComputedStyle(g);z&&z.position=="static"&&(g.style.position="relative"),function(P){if(!P.getElementById("detectElementResize")){var O=(S||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',k=P.head||P.getElementsByTagName("head")[0],T=P.createElement("style");T.id="detectElementResize",T.type="text/css",o!=null&&T.setAttribute("nonce",o),T.styleSheet?T.styleSheet.cssText=O:T.appendChild(P.createTextNode(O)),k.appendChild(T)}}(x),g.__resizeLast__={},g.__resizeListeners__=[],(g.__resizeTriggers__=x.createElement("div")).className="resize-triggers";var b=x.createElement("div");b.className="expand-trigger",b.appendChild(x.createElement("div"));var I=x.createElement("div");I.className="contract-trigger",g.__resizeTriggers__.appendChild(b),g.__resizeTriggers__.appendChild(I),g.appendChild(g.__resizeTriggers__),a(g),g.addEventListener("scroll",s,!0),h&&(g.__resizeTriggers__.__animationListener__=function(P){P.animationName==_&&a(g)},g.__resizeTriggers__.addEventListener(h,g.__resizeTriggers__.__animationListener__))}g.__resizeListeners__.push(C)}},removeResizeListener:function(g,C){if(r)g.detachEvent("onresize",C);else if(g.__resizeListeners__.splice(g.__resizeListeners__.indexOf(C),1),!g.__resizeListeners__.length){g.removeEventListener("scroll",s,!0),g.__resizeTriggers__.__animationListener__&&(g.__resizeTriggers__.removeEventListener(h,g.__resizeTriggers__.__animationListener__),g.__resizeTriggers__.__animationListener__=null);try{g.__resizeTriggers__=!g.removeChild(g.__resizeTriggers__)}catch{}}}}}function He(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function We(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?He(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function St(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(St=function(){return!!o})()}p(Ee,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),ce(Ee);var yt=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,St()?Reflect.construct(n,r||[],M(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(){var s=e.props,c=s.disableHeight,d=s.disableWidth,h=s.onResize;if(e._parentNode){var f=e._parentNode.offsetHeight||0,u=e._parentNode.offsetWidth||0,v=(e._window||window).getComputedStyle(e._parentNode)||{},m=parseInt(v.paddingLeft,10)||0,_=parseInt(v.paddingRight,10)||0,S=parseInt(v.paddingTop,10)||0,y=parseInt(v.paddingBottom,10)||0,g=f-S-y,C=u-m-_;(!c&&e.state.height!==g||!d&&e.state.width!==C)&&(e.setState({height:f-S-y,width:u-m-_}),h({height:f,width:u}))}}),p(e,"_setRef",function(s){e._autoSizer=s}),e}return j(o,R.Component),W(o,[{key:"componentDidMount",value:function(){var e=this.props.nonce;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=_t(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){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={};return r||(d.height=0,h.height=s),l||(d.width=0,h.width=c),R.createElement("div",{className:n,ref:this._setRef,style:We(We({},d),i)},t(h))}}])}();function wt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wt=function(){return!!o})()}p(yt,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var eo=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,wt()?Reflect.construct(n,r||[],M(t).constructor):n.apply(t,r)),"_child",R.createRef()),p(e,"_measure",function(){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,m=e._getCellMeasurements(),_=m.height,S=m.width;_===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}))}),p(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),e._child.current=s,s&&e._maybeMeasureCell()}),e}return j(o,R.PureComponent),W(o,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,t=this.props.children,n=typeof t=="function"?t({measure:this._measure,registerChild:this._registerChild}):t;return n===null?n:B.cloneElement(n,{ref:function(r){typeof n.ref=="function"?n.ref(r):n.ref&&(n.ref.current=r),e._child.current=r}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child.current;if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var l=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:l,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){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;if(!t.has(a,r)){var s=this._getCellMeasurements(),c=s.height,d=s.width;t.set(a,r,d,c),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}])}();function Q(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e={};return function(t){var n=t.callback,r=t.indices,l=Object.keys(r),i=!o||l.every(function(s){var c=r[s];return Array.isArray(c)?c.length>0:c>=0}),a=l.length!==Object.keys(e).length||l.some(function(s){var c=e[s],d=r[s];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});e=r,i&&a&&n(r)}}p(eo,"__internalCellMeasurerFlag",!1);const to=!(typeof window>"u"||!window.document||!window.document.createElement);var de;function ye(o){if((!de&&de!==0||o)&&to){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),de=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return de}function De(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function je(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?De(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Ct(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ct=function(){return!!o})()}var te="requested",fe=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,Ct()?Reflect.construct(n,r||[],M(t).constructor):n.apply(t,r)),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),p(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),p(e,"_onSectionRenderedMemoizer",Q()),p(e,"_onScrollMemoizer",Q(!1)),p(e,"_invokeOnSectionRenderedHelper",function(){var s=e.props,c=s.cellLayoutManager,d=s.onSectionRendered;e._onSectionRenderedMemoizer({callback:d,indices:{indices:c.getLastRenderedIndices()}})}),p(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),p(e,"_updateScrollPositionForScrollToCell",function(){var s=e.props,c=s.cellLayoutManager,d=s.height,h=s.scrollToAlignment,f=s.scrollToCell,u=s.width,v=e.state,m=v.scrollLeft,_=v.scrollTop;if(f>=0){var S=c.getScrollPositionForCell({align:h,cellIndex:f,height:d,scrollLeft:m,scrollTop:_,width:u});S.scrollLeft===m&&S.scrollTop===_||e._setScrollPosition(S)}}),p(e,"_onScroll",function(s){if(s.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var c=e.props,d=c.cellLayoutManager,h=c.height,f=c.isScrollingChange,u=c.width,v=e._scrollbarSize,m=d.getTotalSize(),_=m.height,S=m.width,y=Math.max(0,Math.min(S-u+v,s.target.scrollLeft)),g=Math.max(0,Math.min(_-h+v,s.target.scrollTop));if(e.state.scrollLeft!==y||e.state.scrollTop!==g){var C=s.cancelable?"observed":te;e.state.isScrolling||f(!0),e.setState({isScrolling:!0,scrollLeft:y,scrollPositionChangeReason:C,scrollTop:g})}e._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:g,totalWidth:S,totalHeight:_})}}),e._scrollbarSize=ye(),e._scrollbarSize===void 0?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return j(o,R.PureComponent),W(o,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,l=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=ye(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||l>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:l}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){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;d===te&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),r===e.height&&l===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){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,m=u.scrollLeft,_=u.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var S=r.getTotalSize(),y=S.height,g=S.width,C=Math.max(0,m-a),x=Math.max(0,_-h),z=Math.min(g,m+f+a),b=Math.min(y,_+i+h),I=i>0&&f>0?r.cellRenderers({height:b-x,isScrolling:v,width:z-C,x:C,y:x}):[],P={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},O=y>i?this._scrollbarSize:0,k=g>f?this._scrollbarSize:0;return P.overflowX=g+O<=f?"hidden":"auto",P.overflowY=y+k<=i?"hidden":"auto",R.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:U.he("ReactVirtualized__Collection",l),id:s,onScroll:this._onScroll,role:"grid",style:je(je({},P),d),tabIndex:0},n>0&&R.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:g,overflow:"hidden",pointerEvents:v?"none":"",width:g}},I),n===0&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,l=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,h=d.height;(0,d.onScroll)({clientHeight:h,clientWidth:d.width,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:te};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)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.cellCount!==0||t.scrollLeft===0&&t.scrollTop===0?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null?e.scrollTop:t.scrollTop,scrollPositionChangeReason:te}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:te}}}])}();p(fe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),fe.propTypes={},ce(fe);var oo=W(function o(e){var t=e.height,n=e.width,r=e.x,l=e.y;H(this,o),this.height=t,this.width=n,this.x=r,this.y=l,this._indexMap={},this._indices=[]},[{key:"addCellIndex",value:function(o){var e=o.index;this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),no=W(function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;H(this,o),this._sectionSize=e,this._cellMetadata=[],this._sections={}},[{key:"getCellIndices",value:function(o){var e=o.height,t=o.width,n=o.x,r=o.y,l={};return this.getSections({height:e,width:t,x:n,y:r}).forEach(function(i){return i.getCellIndices().forEach(function(a){l[a]=a})}),Object.keys(l).map(function(i){return l[i]})}},{key:"getCellMetadata",value:function(o){var e=o.index;return this._cellMetadata[e]}},{key:"getSections",value:function(o){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++){var f="".concat(d,".").concat(h);this._sections[f]||(this._sections[f]=new oo({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:h*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var o=this;return Object.keys(this._sections).map(function(e){return o._sections[e].toString()})}},{key:"registerCell",value:function(o){var e=o.cellMetadatum,t=o.index;this._cellMetadata[t]=e,this.getSections(e).forEach(function(n){return n.addCellIndex({index:t})})}}]);function Fe(o){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;switch(t){case"start":return a;case"end":return s;case"center":return a-(l-r)/2;default:return Math.max(s,Math.min(a,i))}}function xt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xt=function(){return!!o})()}var Ne=function(){function o(e,t){var n,r,l,i;return H(this,o),r=this,i=[e,t],l=M(l=o),(n=D(r,xt()?Reflect.construct(l,i||[],M(r).constructor):l.apply(r,i)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(n),n._setCollectionViewRef=n._setCollectionViewRef.bind(n),n}return j(o,R.PureComponent),W(o,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=w.du({},(function(t){if(t==null)throw new TypeError("Cannot destructure "+t)}(this.props),this.props));return R.createElement(fe,w.du({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(n){for(var r=n.cellCount,l=n.cellSizeAndPositionGetter,i=[],a=new no(n.sectionSize),s=0,c=0,d=0;d<r;d++){var h=l({index:d});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,`:
16
- x:`).concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));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})}return{cellMetadata:i,height:s,sectionManager:a,width:c}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,l=e.scrollLeft,i=e.scrollTop,a=e.width,s=this.props.cellCount;if(n>=0&&n<s){var c=this._cellMetadata[n];l=Fe({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:l}),i=Fe({align:t,cellOffset:c.y,cellSize:c.height,containerSize:r,currentOffset:i})}return{scrollLeft:l,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){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;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:l,x:i,y:a}),c({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(h){var f=h.index;return t._sectionManager.getCellMetadata({index:f})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function Rt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!o})()}function Be(o){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;e===l&&(typeof t!="number"&&typeof i!="number"||t===i)||(n(r),s>=0&&s===a&&c())}function ne(o,e){if(o==null)return{};var t,n,r=w.Mm(o,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(n=0;n<l.length;n++)t=l[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(r[t]=o[t])}return r}p(Ne,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(o){var e=o.cellCache,t=o.cellRenderer,n=o.cellSizeAndPositionGetter,r=o.indices,l=o.isScrolling;return r.map(function(i){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}};return l?(i in e||(e[i]=t(s)),e[i]):t(s)}).filter(function(i){return!!i})}}),Ne.propTypes={},function(){function o(e,t){var n,r,l,i;return H(this,o),r=this,i=[e,t],l=M(l=o),(n=D(r,Rt()?Reflect.construct(l,i||[],M(r).constructor):l.apply(r,i)))._registerChild=n._registerChild.bind(n),n}return j(o,R.PureComponent),W(o,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,l=t.columnCount,i=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&l===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){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;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(){return c},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&typeof e.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])}().propTypes={};var N,ro=W(function o(e){var t=e.cellCount,n=e.cellSizeGetter,r=e.estimatedCellSize;H(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},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(o){var e=o.cellCount,t=o.estimatedCellSize,n=o.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=t,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(o){if(o<0||o>=this._cellCount)throw Error("Requested index ".concat(o," is outside of range 0..").concat(this._cellCount));if(o>this._lastMeasuredIndex)for(var e=this.getSizeAndPositionOfLastMeasuredCell(),t=e.offset+e.size,n=this._lastMeasuredIndex+1;n<=o;n++){var r=this._cellSizeGetter({index:n});if(r===void 0||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));r===null?(this._cellSizeAndPositionData[n]={offset:t,size:0},this._lastBatchedIndex=o):(this._cellSizeAndPositionData[n]={offset:t,size:r},t+=r,this._lastMeasuredIndex=o)}return this._cellSizeAndPositionData[o]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var o=this.getSizeAndPositionOfLastMeasuredCell();return o.offset+o.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,n=o.containerSize,r=o.currentOffset,l=o.targetIndex;if(n<=0)return 0;var i,a=this.getSizeAndPositionOfCell(l),s=a.offset,c=s-n+a.size;switch(t){case"start":i=s;break;case"end":i=c;break;case"center":i=s-(n-a.size)/2;break;default:i=Math.max(c,Math.min(s,r))}var d=this.getTotalSize();return Math.max(0,Math.min(d-n,i))}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;if(this.getTotalSize()===0)return{};var n=t+e,r=this._findNearestCell(t),l=this.getSizeAndPositionOfCell(r);t=l.offset+l.size;for(var i=r;t<n&&i<this._cellCount-1;)i++,t+=this.getSizeAndPositionOfCell(i).size;return{start:r,stop:i}}},{key:"resetCell",value:function(o){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,o-1)}},{key:"_binarySearch",value:function(o,e,t){for(;e<=o;){var n=e+Math.floor((o-e)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===t)return n;r<t?e=n+1:r>t&&(o=n-1)}return e>0?e-1:0}},{key:"_exponentialSearch",value:function(o,e){for(var t=1;o<this._cellCount&&this.getSizeAndPositionOfCell(o).offset<e;)o+=t,t*=2;return this._binarySearch(Math.min(o,this._cellCount-1),Math.floor(o/2),e)}},{key:"_findNearestCell",value:function(o){if(isNaN(o))throw Error("Invalid offset ".concat(o," specified"));o=Math.max(0,o);var e=this.getSizeAndPositionOfLastMeasuredCell(),t=Math.max(0,this._lastMeasuredIndex);return e.offset>=o?this._binarySearch(t,0,o):this._exponentialSearch(t,o)}}]),io=["maxScrollSize"],Ue=W(function o(e){var t=e.maxScrollSize,n=t===void 0?typeof window<"u"&&window.chrome?16777100:15e5:t,r=ne(e,io);H(this,o),p(this,"_cellSizeAndPositionManager",void 0),p(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new ro(r),this._maxScrollSize=n},[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(o){this._cellSizeAndPositionManager.configure(o)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(o){var e=o.containerSize,t=o.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(r-n))}},{key:"getSizeAndPositionOfCell",value:function(o){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,n=o.containerSize,r=o.currentOffset,l=o.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:n,currentOffset:r,targetIndex:l});return this._offsetToSafeOffset({containerSize:n,offset:i})}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;return t=this._safeOffsetToOffset({containerSize:e,offset:t}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:e,offset:t})}},{key:"resetCell",value:function(o){this._cellSizeAndPositionManager.resetCell(o)}},{key:"_getOffsetPercentage",value:function(o){var e=o.containerSize,t=o.offset,n=o.totalSize;return n<=e?0:t/(n-e)}},{key:"_offsetToSafeOffset",value:function(o){var e=o.containerSize,t=o.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(l*(r-e))}},{key:"_safeOffsetToOffset",value:function(o){var e=o.containerSize,t=o.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(n-e))}}]);function Ve(o){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(),m=d>=0&&d<v;m&&(h!==a||f||!r||typeof e=="number"&&e!==r||c!==l||d!==i)?u(d):!m&&v>0&&(h<a||v<n)&&s>t.getTotalSize()-h&&u(v-1)}var lo=(N=typeof window<"u"?window:typeof self<"u"?self:{}).requestAnimationFrame||N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||N.oRequestAnimationFrame||N.msRequestAnimationFrame||function(o){return N.setTimeout(o,1e3/60)},so=N.cancelAnimationFrame||N.webkitCancelAnimationFrame||N.mozCancelAnimationFrame||N.oCancelAnimationFrame||N.msCancelAnimationFrame||function(o){N.clearTimeout(o)},$e=lo,ao=so,ee=function(o){return ao(o.id)},Ie=function(o,e){var t;Promise.resolve().then(function(){t=Date.now()});var n=function(){Date.now()-t>=e?o.call():r.id=$e(n)},r={id:$e(n)};return r};function qe(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function F(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function bt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!o})()}var Ke="requested",q=function(){function o(e){var t,n,r,l;H(this,o),n=this,l=[e],r=M(r=o),p(t=D(n,bt()?Reflect.construct(r,l||[],M(n).constructor):r.apply(n,l)),"_onGridRenderedMemoizer",Q()),p(t,"_onScrollMemoizer",Q(!1)),p(t,"_deferredInvalidateColumnIndex",null),p(t,"_deferredInvalidateRowIndex",null),p(t,"_recomputeScrollLeftFlag",!1),p(t,"_recomputeScrollTopFlag",!1),p(t,"_horizontalScrollBarSize",0),p(t,"_verticalScrollBarSize",0),p(t,"_scrollbarPresenceChanged",!1),p(t,"_scrollingContainer",void 0),p(t,"_childrenToDisplay",void 0),p(t,"_columnStartIndex",void 0),p(t,"_columnStopIndex",void 0),p(t,"_rowStartIndex",void 0),p(t,"_rowStopIndex",void 0),p(t,"_renderedColumnStartIndex",0),p(t,"_renderedColumnStopIndex",0),p(t,"_renderedRowStartIndex",0),p(t,"_renderedRowStopIndex",0),p(t,"_initialScrollTop",void 0),p(t,"_initialScrollLeft",void 0),p(t,"_disablePointerEventsTimeoutId",void 0),p(t,"_styleCache",{}),p(t,"_cellCache",{}),p(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),p(t,"_invokeOnGridRenderedHelper",function(){var s=t.props.onSectionRendered;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}})}),p(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):Z(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),p(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var i=new Ue({cellCount:e.columnCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:o._getEstimatedColumnSize(e)}),a=new Ue({cellCount:e.rowCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.rowHeight)(s)},estimatedCellSize:o._getEstimatedRowSize(e)});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}return j(o,R.PureComponent),W(o,[{key:"getOffsetForCell",value:function(){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=F(F({},this.props),{},{scrollToAlignment:n,scrollToColumn:l,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=t===void 0?0:t,r=e.scrollTop,l=r===void 0?0:r;if(!(l<0)){this._debounceScrollEnded();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(),m=Math.min(Math.max(0,v-d+f),n),_=Math.min(Math.max(0,u-c+f),l);if(this.state.scrollLeft!==m||this.state.scrollTop!==_){var S={isScrolling:!0,scrollDirectionHorizontal:m!==this.state.scrollLeft?m>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:_!==this.state.scrollTop?_>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(S.scrollTop=_),s||(S.scrollLeft=m),S.needToResetStyleCache=!1,this.setState(S)}this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:_,totalColumnsWidth:v,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){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;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()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,l=this.props;r>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(F(F({},l),{},{scrollToColumn:t})),n!==void 0&&this._updateScrollTopForScrollToRow(F(F({},l),{},{scrollToRow:n}))}},{key:"componentDidMount",value:function(){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;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState(function(f){var u=F(F({},f),{},{needToResetStyleCache:!1});return u.instanceProps.scrollbarSize=t(),u.instanceProps.scrollbarSizeMeasured=!0,u}),typeof r=="number"&&r>=0||typeof i=="number"&&i>=0){var d=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:i});d&&(d.needToResetStyleCache=!1,this.setState(d))}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));var h=n>0&&s>0;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()}},{key:"componentDidUpdate",value:function(e,t){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,m=v.scrollLeft,_=v.scrollPositionChangeReason,S=v.scrollTop,y=v.instanceProps;this._handleInvalidatedGridSize();var g=a>0&&e.columnCount===0||c>0&&e.rowCount===0;_===Ke&&(!i&&m>=0&&(m!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=m),!l&&S>=0&&(S!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=S));var C=(e.width===0||e.height===0)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Ve({cellSizeAndPositionManager:y.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:m,scrollToAlignment:d,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Ve({cellSizeAndPositionManager:y.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:S,scrollToAlignment:d,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),m!==t.scrollLeft||S!==t.scrollTop){var x=y.rowSizeAndPositionManager.getTotalSize(),z=y.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:S,totalColumnsWidth:z,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&ee(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){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,m=e.width,_=this.state,S=_.instanceProps,y=_.needToResetStyleCache,g=this._isScrolling(),C={boxSizing:"border-box",direction:"ltr",height:n?"auto":c,position:"relative",width:r?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=S.columnSizeAndPositionManager.getTotalSize(),z=S.rowSizeAndPositionManager.getTotalSize(),b=z>c?S.scrollbarSize:0,I=x>m?S.scrollbarSize:0;I===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=I,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),C.overflowX=x+b<=m?"hidden":"auto",C.overflowY=z+I<=c?"hidden":"auto";var P=this._childrenToDisplay,O=P.length===0&&c>0&&m>0;return R.createElement("div",w.du({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:U.he("ReactVirtualized__Grid",l),id:d,onScroll:this._onScroll,role:f,style:F(F({},C),u),tabIndex:v}),P.length>0&&R.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:F({width:t?"auto":x,height:z,maxWidth:x,maxHeight:z,overflow:"hidden",pointerEvents:g?"none":"",position:"relative"},s)},P),O&&h())}},{key:"_calculateChildrenToRender",value:function(){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,m=t.scrollDirectionVertical,_=t.instanceProps,S=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,y=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,g=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var C=_.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:y}),x=_.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:S}),z=_.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:y}),b=_.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:S});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var I=c({direction:"horizontal",cellCount:l,overscanCellsCount:s,scrollDirection:v,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),P=c({direction:"vertical",cellCount:h,overscanCellsCount:d,scrollDirection:m,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),O=I.overscanStartIndex,k=I.overscanStopIndex,T=P.overscanStartIndex,G=P.overscanStopIndex;if(i){if(!i.hasFixedHeight()){for(var A=T;A<=G;A++)if(!i.has(A,0)){O=0,k=l-1;break}}if(!i.hasFixedWidth()){for(var V=O;V<=k;V++)if(!i.has(0,V)){T=0,G=h-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:_.columnSizeAndPositionManager,columnStartIndex:O,columnStopIndex:k,deferredMeasurementCache:i,horizontalOffsetAdjustment:z,isScrolling:g,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:_.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:G,scrollLeft:y,scrollTop:S,styleCache:this._styleCache,verticalOffsetAdjustment:b,visibleColumnIndices:C,visibleRowIndices:x}),this._columnStartIndex=O,this._columnStopIndex=k,this._rowStartIndex=T,this._rowStopIndex=G}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ee(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Ie(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,l=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,h=d.height;(0,d.onScroll)({clientHeight:h,clientWidth:d.width,scrollHeight:i,scrollLeft:s,scrollTop:c,scrollWidth:l})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){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;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!t.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){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;return o._getCalculatedScrollLeft(e,t)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){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);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){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;return o._getCalculatedScrollTop(e,t)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var i="".concat(r,"-").concat(l);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){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);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};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}));var r,l,i=t.instanceProps;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}),Be({cellCount:i.prevColumnCount,cellSize:typeof i.prevColumnWidth=="number"?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=o._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),Be({cellCount:i.prevRowCount,cellSize:typeof i.prevRowHeight=="number"?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=o._getScrollTopForScrollToRowStateUpdate(e,t)}}),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,F(F(F({},n),r),l)}},{key:"_getEstimatedColumnSize",value:function(e){return typeof e.columnWidth=="number"?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return typeof e.rowHeight=="number"?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,l={scrollPositionChangeReason:Ke};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:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,l=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(n>0){var d=n-1,h=i<0?d:Math.min(d,i),f=c.rowSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&f>r?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:a-u,currentOffset:s,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var n=t.scrollLeft,r=o._getCalculatedScrollLeft(e,t);return typeof r=="number"&&r>=0&&n!==r?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,l=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(r>0){var d=r-1,h=i<0?d:Math.min(d,i),f=c.columnSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&f>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:n-u,currentOffset:s,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var n=t.scrollTop,r=o._getCalculatedScrollTop(e,t);return typeof r=="number"&&r>=0&&n!==r?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:r}):{}}}])}();function zt(o){var e=o.cellCount,t=o.overscanCellsCount,n=o.scrollDirection,r=o.startIndex,l=o.stopIndex;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)}}function we(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,n=Array(e);t<e;t++)n[t]=o[t];return n}function Tt(o,e){if(o){if(typeof o=="string")return we(o,e);var t={}.toString.call(o).slice(8,-1);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)?we(o,e):void 0}}function It(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(It=function(){return!!o})()}p(q,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(o){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,m=o.verticalOffsetAdjustment,_=o.visibleColumnIndices,S=o.visibleRowIndices,y=[],g=n.areOffsetsAdjusted()||h.areOffsetsAdjusted(),C=!s&&!g,x=f;x<=u;x++)for(var z=h.getSizeAndPositionOfCell(x),b=r;b<=l;b++){var I=n.getSizeAndPositionOfCell(b),P=b>=_.start&&b<=_.stop&&x>=S.start&&x<=S.stop,O="".concat(x,"-").concat(b),k=void 0;C&&v[O]?k=v[O]:i&&!i.has(x,b)?k={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(k={height:z.size,left:I.offset+a,position:"absolute",top:z.offset+m,width:I.size},v[O]=k);var T={columnIndex:b,isScrolling:s,isVisible:P,key:O,parent:d,rowIndex:x,style:k},G=void 0;!c&&!s||a||m?G=t(T):(e[O]||(e[O]=t(T)),G=e[O]),G!=null&&G!==!1&&(G.props.role||(G=B.cloneElement(G,{role:"gridcell"})),y.push(G))}return y},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:ye,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(o){var e=o.cellCount,t=o.overscanCellsCount,n=o.scrollDirection,r=o.startIndex,l=o.stopIndex;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)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),ce(q);var Xe=function(){function o(e,t){var n,r,l,i;return H(this,o),r=this,i=[e,t],l=M(l=o),(n=D(r,It()?Reflect.construct(l,i||[],M(r).constructor):l.apply(r,i)))._loadMoreRowsMemoizer=Q(),n._onRowsRendered=n._onRowsRendered.bind(n),n._registerChild=n._registerChild.bind(n),n}return j(o,R.PureComponent),W(o,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Q(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(r){var l=n(r);l&&l.then(function(){var i;(i={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:r.startIndex,stopIndex:r.stopIndex}).startIndex>i.lastRenderedStopIndex||i.stopIndex<i.lastRenderedStartIndex||t._registeredChild&&function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=typeof a.recomputeGridSize=="function"?a.recomputeGridSize:a.recomputeRowHeights;c?c.call(a,s):a.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,l=this.props,i=l.isRowLoaded,a=l.minimumBatchSize,s=l.rowCount,c=l.threshold,d=function(f){for(var u=f.isRowLoaded,v=f.minimumBatchSize,m=f.rowCount,_=f.stopIndex,S=[],y=null,g=null,C=f.startIndex;C<=_;C++)u({index:C})?g!==null&&(S.push({startIndex:y,stopIndex:g}),y=g=null):(g=C,y===null&&(y=C));if(g!==null){for(var x=Math.min(Math.max(g,y+v-1),m-1),z=g+1;z<=x&&!u({index:z});z++)g=z;S.push({startIndex:y,stopIndex:g})}if(S.length)for(var b=S[0];b.stopIndex-b.startIndex+1<v&&b.startIndex>0;){var I=b.startIndex-1;if(u({index:I}))break;b.startIndex=I}return S}({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){return function(u){if(Array.isArray(u))return we(u)}(f)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(f)||Tt(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(d.map(function(f){return[f.startIndex,f.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function Pt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pt=function(){return!!o})()}p(Xe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Xe.propTypes={};var co=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,Pt()?Reflect.construct(n,r||[],M(t).constructor):n.apply(t,r)),"Grid",void 0),p(e,"_cellRenderer",function(s){var c=s.parent,d=s.rowIndex,h=s.style,f=s.isScrolling,u=s.isVisible,v=s.key,m=e.props.rowRenderer,_=Object.getOwnPropertyDescriptor(h,"width");return _&&_.writable&&(h.width="100%"),m({index:d,style:h,isScrolling:f,isVisible:u,key:v,parent:c})}),p(e,"_setRef",function(s){e.Grid=s}),p(e,"_onScroll",function(s){var c=s.clientHeight,d=s.scrollHeight,h=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:d,scrollTop:h})}),p(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,d=s.rowOverscanStopIndex,h=s.rowStartIndex,f=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:d,startIndex:h,stopIndex:f})}),e}return j(o,R.PureComponent),W(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){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;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,l=e.width,i=U.he("ReactVirtualized__List",t);return R.createElement(q,w.du({},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}))}}])}();p(co,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:zt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ue=function(o,e,t,n,r){return typeof t=="function"?function(l,i,a,s,c){for(var d=a+1;i<=a;){var h=i+a>>>1;c(l[h],s)>=0?(d=h,a=h-1):i=h+1}return d}(o,n===void 0?0:0|n,r===void 0?o.length-1:0|r,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var d=i+a>>>1;l[d]>=s?(c=d,a=d-1):i=d+1}return c}(o,t===void 0?0:0|t,n===void 0?o.length-1:0|n,e)};function Pe(o,e,t,n,r){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}var oe=Pe.prototype;function ge(o,e){o.mid=e.mid,o.left=e.left,o.right=e.right,o.leftPoints=e.leftPoints,o.rightPoints=e.rightPoints,o.count=e.count}function kt(o,e){var t=se(e);o.mid=t.mid,o.left=t.left,o.right=t.right,o.leftPoints=t.leftPoints,o.rightPoints=t.rightPoints,o.count=t.count}function Ye(o,e){var t=o.intervals([]);t.push(e),kt(o,t)}function Je(o,e){var t=o.intervals([]),n=t.indexOf(e);return n<0?0:(t.splice(n,1),kt(o,t),1)}function Ze(o,e,t){for(var n=0;n<o.length&&o[n][0]<=e;++n){var r=t(o[n]);if(r)return r}}function Qe(o,e,t){for(var n=o.length-1;n>=0&&o[n][1]>=e;--n){var r=t(o[n]);if(r)return r}}function et(o,e){for(var t=0;t<o.length;++t){var n=e(o[t]);if(n)return n}}function uo(o,e){return o-e}function Ce(o,e){return o[0]-e[0]||o[1]-e[1]}function xe(o,e){return o[1]-e[1]||o[0]-e[0]}function se(o){if(o.length===0)return null;for(var e=[],t=0;t<o.length;++t)e.push(o[t][0],o[t][1]);e.sort(uo);var n=e[e.length>>1],r=[],l=[],i=[];for(t=0;t<o.length;++t){var a=o[t];a[1]<n?r.push(a):n<a[0]?l.push(a):i.push(a)}var s=i,c=i.slice();return s.sort(Ce),c.sort(xe),new Pe(n,se(r),se(l),s,c)}function Ot(o){this.root=o}oe.intervals=function(o){return o.push.apply(o,this.leftPoints),this.left&&this.left.intervals(o),this.right&&this.right.intervals(o),o},oe.insert=function(o){var e=this.count-this.leftPoints.length;if(this.count+=1,o[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?Ye(this,o):this.left.insert(o):this.left=se([o]);else if(o[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?Ye(this,o):this.right.insert(o):this.right=se([o]);else{var t=ue(this.leftPoints,o,Ce),n=ue(this.rightPoints,o,xe);this.leftPoints.splice(t,0,o),this.rightPoints.splice(n,0,o)}},oe.remove=function(o){var e=this.count-this.leftPoints;if(o[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?Je(this,o):(l=this.left.remove(o))===2?(this.left=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(o[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?Je(this,o):(l=this.right.remove(o))===2?(this.right=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(this.count===1)return this.leftPoints[0]===o?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===o){if(this.left&&this.right){for(var t=this,n=this.left;n.right;)t=n,n=n.right;if(t===this)n.right=this.right;else{var r=this.left,l=this.right;t.count-=n.count,t.right=n.left,n.left=r,n.right=l}ge(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ge(this,this.left):ge(this,this.right);return 1}for(r=ue(this.leftPoints,o,Ce);r<this.leftPoints.length&&this.leftPoints[r][0]===o[0];++r)if(this.leftPoints[r]===o){for(this.count-=1,this.leftPoints.splice(r,1),l=ue(this.rightPoints,o,xe);l<this.rightPoints.length&&this.rightPoints[l][1]===o[1];++l)if(this.rightPoints[l]===o)return this.rightPoints.splice(l,1),1}return 0},oe.queryPoint=function(o,e){return o<this.mid?this.left&&(t=this.left.queryPoint(o,e))?t:Ze(this.leftPoints,o,e):o>this.mid?this.right&&(t=this.right.queryPoint(o,e))?t:Qe(this.rightPoints,o,e):et(this.leftPoints,e);var t},oe.queryInterval=function(o,e,t){var n;return o<this.mid&&this.left&&(n=this.left.queryInterval(o,e,t))||e>this.mid&&this.right&&(n=this.right.queryInterval(o,e,t))?n:e<this.mid?Ze(this.leftPoints,e,t):o>this.mid?Qe(this.rightPoints,o,t):et(this.leftPoints,t)};var J=Ot.prototype;J.insert=function(o){this.root?this.root.insert(o):this.root=new Pe(o[0],null,null,[o],[o])},J.remove=function(o){if(this.root){var e=this.root.remove(o);return e===2&&(this.root=null),e!==0}return!1},J.queryPoint=function(o,e){if(this.root)return this.root.queryPoint(o,e)},J.queryInterval=function(o,e,t){if(o<=e&&this.root)return this.root.queryInterval(o,e,t)},Object.defineProperty(J,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(J,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var ve=W(function o(){H(this,o),p(this,"_columnSizeMap",{}),p(this,"_intervalTree",new Ot(null)),p(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(o,e,t){var n=o-this.count;return this.tallestColumnSize+Math.ceil(n/e)*t}},{key:"range",value:function(o,e,t){var n=this;this._intervalTree.queryInterval(o,o+e,function(r){var l=function(s,c){return function(d){if(Array.isArray(d))return d}(s)||function(d,h){var f=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(f!=null){var u,v,m,_,S=[],y=!0,g=!1;try{if(m=(f=f.call(d)).next,h!==0)for(;!(y=(u=m.call(f)).done)&&(S.push(u.value),S.length!==h);y=!0);}catch(C){g=!0,v=C}finally{try{if(!y&&f.return!=null&&(_=f.return(),Object(_)!==_))return}finally{if(g)throw v}}return S}}(s,c)||Tt(s,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(r,3),i=l[0];l[1];var a=l[2];return t(a,n._leftMap[a],i)})}},{key:"setPosition",value:function(o,e,t,n){this._intervalTree.insert([t,t+n,o]),this._leftMap[o]=e;var r=this._columnSizeMap,l=r[e];r[e]=l===void 0?t+n:Math.max(l,t+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var n=o[t];e=e===0?n:Math.min(e,n)}return e}},{key:"tallestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var n=o[t];e=Math.max(e,n)}return e}}]);function tt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function ho(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Mt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mt=function(){return!!o})()}var ot=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,Mt()?Reflect.construct(n,r||[],M(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 ve),p(e,"_startIndex",null),p(e,"_startIndexMemoized",null),p(e,"_stopIndex",null),p(e,"_stopIndexMemoized",null),p(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),p(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),p(e,"_onScroll",function(s){var c=e.props.height,d=s.currentTarget.scrollTop,h=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),d);d===h&&(e._debounceResetIsScrolling(),e.state.scrollTop!==h&&e.setState({isScrolling:!0,scrollTop:h}))}),e}return j(o,R.PureComponent),W(o,[{key:"clearCellPositions",value:function(){this._positionCache=new ve,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new ve,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ee(this._debounceResetIsScrollingId)}},{key:"render",value:function(){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,m=n.tabIndex,_=n.width,S=n.rowDirection,y=this.state,g=y.isScrolling,C=y.scrollTop,x=[],z=this._getEstimatedTotalHeight(),b=this._positionCache.shortestColumnSize,I=this._positionCache.count,P=0;if(this._positionCache.range(Math.max(0,C-f),c+2*f,function(T,G,A){e===void 0?(P=T,e=T):(P=Math.min(P,T),e=Math.max(e,T)),x.push(a({index:T,isScrolling:g,key:h(T),parent:t,style:p(p(p(p({height:i.getHeight(T)},S==="ltr"?"left":"right",G),"position","absolute"),"top",A),"width",i.getWidth(T))}))}),b<C+c+f&&I<l)for(var O=Math.min(l-I,Math.ceil((C+c+f-b)/i.defaultHeight*_/i.defaultWidth)),k=I;k<I+O;k++)e=k,x.push(a({index:k,isScrolling:g,key:h(k),parent:this,style:{width:i.getWidth(k)}}));return this._startIndex=P,this._stopIndex=e,R.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:U.he("ReactVirtualized__Masonry",s),id:d,onScroll:this._onScroll,role:u,style:ho({boxSizing:"border-box",direction:"ltr",height:r?"auto":c,overflowX:"hidden",overflowY:z<c?"hidden":"auto",position:"relative",width:_,WebkitOverflowScrolling:"touch",willChange:"transform"},v),tabIndex:m},R.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:z,maxWidth:"100%",maxHeight:z,overflow:"hidden",pointerEvents:g?"none":"",position:"relative"}},x))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ee(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Ie(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,l=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,l,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){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)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,l=n.cellPositioner,i=e;i<=t;i++){var a=l(i),s=a.left,c=a.top;this._positionCache.setPosition(i,s,c,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function nt(){}p(ot,"defaultProps",{autoHeight:!1,keyMapper:function(o){return o},onCellsRendered:nt,onScroll:nt,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),ce(ot);var _e=W(function o(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};H(this,o),p(this,"_cellMeasurerCache",void 0),p(this,"_columnIndexOffset",void 0),p(this,"_rowIndexOffset",void 0),p(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),p(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var n=t.cellMeasurerCache,r=t.columnIndexOffset,l=r===void 0?0:r,i=t.rowIndexOffset,a=i===void 0?0:i;this._cellMeasurerCache=n,this._columnIndexOffset=l,this._rowIndexOffset=a},[{key:"clear",value:function(o,e){this._cellMeasurerCache.clear(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"getWidth",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"has",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"set",value:function(o,e,t,n){this._cellMeasurerCache.set(o+this._rowIndexOffset,e+this._columnIndexOffset,t,n)}}]),fo=["rowIndex"],po=["columnIndex","rowIndex"],mo=["columnIndex"],go=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function rt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function L(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rt(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Lt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!o})()}var Se=function(){function o(e,t){var n,r,l,i;H(this,o),r=this,i=[e,t],l=M(l=o),p(n=D(r,Lt()?Reflect.construct(l,i||[],M(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){n._bottomLeftGrid=d}),p(n,"_bottomRightGridRef",function(d){n._bottomRightGrid=d}),p(n,"_cellRendererBottomLeftGrid",function(d){var h=d.rowIndex,f=ne(d,fo),u=n.props,v=u.cellRenderer,m=u.fixedRowCount;return h===u.rowCount-m?R.createElement("div",{key:f.key,style:L(L({},f.style),{},{height:20})}):v(L(L({},f),{},{parent:n,rowIndex:h+m}))}),p(n,"_cellRendererBottomRightGrid",function(d){var h=d.columnIndex,f=d.rowIndex,u=ne(d,po),v=n.props,m=v.cellRenderer,_=v.fixedColumnCount,S=v.fixedRowCount;return m(L(L({},u),{},{columnIndex:h+_,parent:n,rowIndex:f+S}))}),p(n,"_cellRendererTopRightGrid",function(d){var h=d.columnIndex,f=ne(d,mo),u=n.props,v=u.cellRenderer,m=u.columnCount,_=u.fixedColumnCount;return h===m-_?R.createElement("div",{key:f.key,style:L(L({},f.style),{},{width:20})}):v(L(L({},f),{},{columnIndex:h+_,parent:n}))}),p(n,"_columnWidthRightGrid",function(d){var h=d.index,f=n.props,u=f.columnCount,v=f.fixedColumnCount,m=f.columnWidth,_=n.state,S=_.scrollbarSize;return _.showHorizontalScrollbar&&h===u-v?S:typeof m=="function"?m({index:h+v}):m}),p(n,"_onScroll",function(d){var h=d.scrollLeft,f=d.scrollTop;n.setState({scrollLeft:h,scrollTop:f});var u=n.props.onScroll;u&&u(d)}),p(n,"_onScrollbarPresenceChange",function(d){var h=d.horizontal,f=d.size,u=d.vertical,v=n.state,m=v.showHorizontalScrollbar,_=v.showVerticalScrollbar;if(h!==m||u!==_){n.setState({scrollbarSize:f,showHorizontalScrollbar:h,showVerticalScrollbar:u});var S=n.props.onScrollbarPresenceChange;typeof S=="function"&&S({horizontal:h,size:f,vertical:u})}}),p(n,"_onScrollLeft",function(d){var h=d.scrollLeft;n._onScroll({scrollLeft:h,scrollTop:n.state.scrollTop})}),p(n,"_onScrollTop",function(d){var h=d.scrollTop;n._onScroll({scrollTop:h,scrollLeft:n.state.scrollLeft})}),p(n,"_rowHeightBottomGrid",function(d){var h=d.index,f=n.props,u=f.fixedRowCount,v=f.rowCount,m=f.rowHeight,_=n.state,S=_.scrollbarSize;return _.showVerticalScrollbar&&h===v-u?S:typeof m=="function"?m({index:h+u}):m}),p(n,"_topLeftGridRef",function(d){n._topLeftGrid=d}),p(n,"_topRightGridRef",function(d){n._topRightGrid=d});var a=e.deferredMeasurementCache,s=e.fixedColumnCount,c=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),a&&(n._deferredMeasurementCacheBottomLeftGrid=c>0?new _e({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,n._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new _e({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,n._deferredMeasurementCacheTopRightGrid=s>0?new _e({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),n}return j(o,R.PureComponent),W(o,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){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;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){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);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)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var r=e.scrollToColumn;e.scrollTop;var l=e.scrollToRow,i=ne(e,go);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return R.createElement("div",{style:this._containerOuterStyle},R.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(L(L({},i),{},{onScroll:t,scrollLeft:s}))),R.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}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(this._leftGridWidth==null)if(typeof n=="function"){for(var r=0,l=0;l<t;l++)r+=n({index:l});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(this._topGridHeight==null)if(typeof n=="function"){for(var r=0,l=0;l<t;l++)r+=n({index:l});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){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,m=t.width,_=e||i!==this._lastRenderedHeight||m!==this._lastRenderedWidth,S=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,y=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||_||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=L({height:i,overflow:"visible",width:m},d)),(e||_||y)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:m},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:m}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=L({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},h)),(e||S||f!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=L({left:this._getLeftGridWidth(this.props),position:"absolute"},f)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=L({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||S||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=m}},{key:"_prepareForRender",value:function(){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}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,l=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;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=R.createElement(q,w.du({},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}));return i?R.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:L(L({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},u):u}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,l=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return R.createElement(q,w.du({},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)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?R.createElement(q,w.du({},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}},{key:"_renderTopRightGrid",value:function(e){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;if(!l)return null;var h=c?1:0,f=this._getTopGridHeight(e),u=this._getRightGridWidth(e),v=c?d:0,m=f,_=this._topRightGridStyle;a&&(m=f+v,_=L(L({},this._topRightGridStyle),{},{left:0}));var S=R.createElement(q,w.du({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+h,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:i,style:_,tabIndex:null,width:u}));return a?R.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:L(L({},this._topRightGridStyle),{},{height:f,width:u,overflowX:"hidden"})},S):S}}],[{key:"getDerivedStateFromProps",value:function(e,t){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}}])}();function Gt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gt=function(){return!!o})()}p(Se,"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}),Se.propTypes={},ce(Se),function(){function o(e,t){var n,r,l,i;return H(this,o),r=this,i=[e,t],l=M(l=o),(n=D(r,Gt()?Reflect.construct(l,i||[],M(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}return j(o,R.PureComponent),W(o,[{key:"render",value:function(){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;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:l,scrollLeft:i,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,l=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:l,scrollTop:i,scrollWidth:a})}}])}().propTypes={};var ae="ASC",Re="DESC";function At(o){var e=o.sortDirection,t=U.he("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===ae,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===Re});return R.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===ae?R.createElement("path",{d:"M7 14l5-5 5 5z"}):R.createElement("path",{d:"M7 10l5 5 5-5z"}),R.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Et(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Et=function(){return!!o})()}At.propTypes={};var pe=function(){function o(){return H(this,o),e=this,n=arguments,t=M(t=o),D(e,Et()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n));var e,t,n}return j(o,R.Component),W(o)}();function it(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function $(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?it(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):it(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Ht(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ht=function(){return!!o})()}p(pe,"defaultProps",{cellDataGetter:function(o){var e=o.dataKey,t=o.rowData;return typeof t.get=="function"?t.get(e):t[e]},cellRenderer:function(o){var e=o.cellData;return e==null?"":String(e)},defaultSortDirection:ae,flexGrow:0,flexShrink:1,headerRenderer:function(o){var e=o.dataKey,t=o.label,n=o.sortBy,r=o.sortDirection,l=n===e,i=[R.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return l&&i.push(R.createElement(At,{key:"SortIndicator",sortDirection:r})),i},style:{}}),pe.propTypes={};var be=function(){function o(e){var t,n,r,l;return H(this,o),n=this,l=[e],r=M(r=o),(t=D(n,Ht()?Reflect.construct(r,l||[],M(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}return j(o,R.PureComponent),W(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){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;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){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,m=t.scrollToIndex,_=t.style,S=t.width,y=this.state.scrollbarWidth,g=l?d:d-s,C=typeof u=="function"?u({index:-1}):u,x=typeof v=="function"?v({index:-1}):v;return this._cachedColumnStyles=[],R.Children.toArray(n).forEach(function(z,b){var I=e._getFlexStyleForColumn(z,z.props.style||pe.defaultProps.style);e._cachedColumnStyles[b]=$({overflow:"hidden"},I)}),R.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":R.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:U.he("ReactVirtualized__Table",r),id:h,role:"grid",style:_},!l&&c({className:U.he("ReactVirtualized__Table__headerRow",C),columns:this._getHeaderColumns(),style:$({height:s,overflow:"hidden",paddingRight:y,width:S},x)}),R.createElement(q,w.du({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:U.he("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:g,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:$($({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){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,m=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],y=typeof _=="string"?_:null;return R.createElement("div",{"aria-colindex":n+1,"aria-describedby":m,className:U.he("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+n,onClick:function(g){s&&s({columnData:u,dataKey:v,event:g})},role:"gridcell",style:S,title:y},_)}},{key:"_createHeader",value:function(e){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,m=c.sortDirection,_=a.props,S=_.columnData,y=_.dataKey,g=_.defaultSortDirection,C=_.disableSort,x=_.headerRenderer,z=_.id,b=_.label,I=!C&&u,P=U.he("ReactVirtualized__Table__headerColumn",d,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:I}),O=this._getFlexStyleForColumn(a,$($({},h),a.props.headerStyle)),k=x({columnData:S,dataKey:y,disableSort:C,label:b,sortBy:v,sortDirection:m});if(I||f){var T=v!==y?g:m===Re?ae:Re,G=function(A){I&&u({defaultSortDirection:g,event:A,sortBy:y,sortDirection:T}),f&&f({columnData:S,dataKey:y,event:A})};i=a.props["aria-label"]||b||y,l="none",r=0,t=G,n=function(A){A.key!=="Enter"&&A.key!==" "||G(A)}}return v===y&&(l=m===ae?"ascending":"descending"),R.createElement("div",{"aria-label":i,"aria-sort":l,className:P,id:z,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:O,tabIndex:r},k)}},{key:"_createRow",value:function(e){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,m=s.rowClassName,_=s.rowGetter,S=s.rowRenderer,y=s.rowStyle,g=this.state.scrollbarWidth,C=typeof m=="function"?m({index:n}):m,x=typeof y=="function"?y({index:n}):y,z=_({index:n}),b=R.Children.toArray(c).map(function(O,k){return t._createColumn({column:O,columnIndex:k,isScrolling:r,parent:i,rowData:z,rowIndex:n,scrollbarWidth:g})}),I=U.he("ReactVirtualized__Table__row",C),P=$($({},a),{},{height:this._getRowHeight(n),overflow:"hidden",paddingRight:g},x);return S({className:I,columns:b,index:n,isScrolling:r,key:l,onRowClick:d,onRowDoubleClick:h,onRowRightClick:f,onRowMouseOver:u,onRowMouseOut:v,rowData:z,style:P})}},{key:"_getFlexStyleForColumn",value:function(e){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=$($({},t),{},{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:R.Children.toArray(n)).map(function(r,l){return e._createHeader({column:r,index:l})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return typeof t=="function"?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,l=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:l})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}();p(be,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:zt,overscanRowCount:10,rowRenderer:function(o){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};return(l||i||a||s||c)&&(f["aria-label"]="row",f.tabIndex=0,l&&(f.onClick=function(u){return l({event:u,index:n,rowData:d})}),i&&(f.onDoubleClick=function(u){return i({event:u,index:n,rowData:d})}),a&&(f.onMouseOut=function(u){return a({event:u,index:n,rowData:d})}),s&&(f.onMouseOver=function(u){return s({event:u,index:n,rowData:d})}),c&&(f.onContextMenu=function(u){return c({event:u,index:n,rowData:d})})),R.createElement("div",w.du({},f,{className:e,key:r,role:"row",style:h}),t)},headerRowRenderer:function(o){var e=o.className,t=o.columns,n=o.style;return R.createElement("div",{className:e,role:"row",style:n},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),be.propTypes={};var Y=[],le=null,X=null;function Wt(){X&&(X=null,document.body&&le!=null&&(document.body.style.pointerEvents=le),le=null)}function vo(){Wt(),Y.forEach(function(o){return o.__resetIsScrolling()})}function Dt(o){o.currentTarget===window&&le==null&&document.body&&(le=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){X&&ee(X);var e=0;Y.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),X=Ie(vo,e)}(),Y.forEach(function(e){e.props.scrollElement===o.currentTarget&&e.__handleWindowScrollEvent()})}function lt(o,e){Y.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",Dt),Y.push(o)}function st(o,e){(Y=Y.filter(function(t){return t!==o})).length||(e.removeEventListener("scroll",Dt),X&&(ee(X),Wt()))}var ke=function(o){return o===window},re=function(o){return o.getBoundingClientRect()};function at(o,e){if(o){if(ke(o)){var t=window,n=t.innerHeight,r=t.innerWidth;return{height:typeof n=="number"?n:0,width:typeof r=="number"?r:0}}return re(o)}return{height:e.serverHeight,width:e.serverWidth}}function ct(o){return ke(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}}function dt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function ut(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dt(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):dt(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function jt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jt=function(){return!!o})()}var Ft=function(){return typeof window<"u"?window:void 0},_o=function(){function o(){var e,t,n,r;H(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=M(n),p(e=D(t,jt()?Reflect.construct(n,r||[],M(t).constructor):n.apply(t,r)),"_window",Ft()),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",R.createRef()),p(e,"state",ut(ut({},at(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),p(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),p(e,"_onChildScroll",function(s){var c=s.scrollTop;if(e.state.scrollTop!==c){var d=e.props.scrollElement;d&&(typeof d.scrollTo=="function"?d.scrollTo(0,c+e._positionFromTop):d.scrollTop=c+e._positionFromTop)}}),p(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),p(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),p(e,"_onResize",function(){e.updatePosition()}),p(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var d=ct(c),h=Math.max(0,d.left-e._positionFromLeft),f=Math.max(0,d.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:h,scrollTop:f}),s({scrollLeft:h,scrollTop:f})}}}),p(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return j(o,R.PureComponent),W(o,[{key:"updatePosition",value:function(){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;if(i instanceof Element&&e){var a=function(c,d){if(ke(d)&&document.documentElement){var h=document.documentElement,f=re(c),u=re(h);return{top:f.top-u.top,left:f.left-u.left}}var v=ct(d),m=re(c),_=re(d);return{top:m.top+v.top-_.top,left:m.left+v.left-_.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=at(e,this.props);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())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=_t(),this.updatePosition(e),e&&(lt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&r!=null&&n!=null&&(this.updatePosition(n),st(this,r),lt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(st(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,l=t.scrollLeft,i=t.height,a=t.width;return R.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:l,scrollTop:r,width:a}))}}])}();p(_o,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Ft(),serverHeight:0,serverWidth:0});const ie="ReactVirtualizedDemo-flexContainer",Nt="ReactVirtualizedDemo-tableRow",Bt="ReactVirtualizedDemo-tableRowHover",ze="ReactVirtualizedDemo-tableCell",Te="ReactVirtualizedDemo-noClick";class So extends B.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return w.yo(Nt,ie,{[Bt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:n,width:r})=>{const{columns:l,rowHeight:i,onRowClick:a}=this.props;let s=e,c={height:i,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${r}px`,maxWidth:`${r}px`};return t==="shortcut"?s=w.X9(e):t==="description"&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),E.jsx(Me,{component:"div",className:w.yo(ze,ie,{[Te]:a==null}),variant:"body",style:c,align:n!=null&&l[n].numeric?"right":"left",children:s})},this.headerRenderer=({label:e,columnIndex:t,width:n})=>{const{headerHeight:r,columns:l}=this.props,i=l[t];return E.jsx(Me,{component:"div",className:w.yo(ze,ie,Te),variant:"head",sx:{width:n,height:r,backgroundColor:a=>a.palette.grey[300]},align:i.numeric?"right":"left",children:E.jsx("span",{children:i.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:n,...r}=this.props;return E.jsx(yt,{children:({height:l,width:i})=>E.jsx(be,{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)=>{const f=c?i-c:s;return E.jsx(pe,{style:{flex:`1 1 ${f}px`},headerRenderer:u=>this.headerRenderer({...u,width:f,columnIndex:h}),className:ie,cellDataGetter:({rowData:u,columnData:v,dataKey:m})=>u[m],cellRenderer:u=>this.cellRenderer({...u,width:f,columnIndex:h}),dataKey:a,width:f,...d},a)})})})}}const yo=Qt(So)(({theme:o})=>({"& .ReactVirtualized__Table__headerRow":{...o.direction==="rtl"&&{paddingLeft:"0 !important"},...o.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${ie}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${Nt}`]:{cursor:"pointer"},[`& .${Bt}`]:{"&:hover:not([disabled])":{backgroundColor:o.palette.grey[200]}},[`& .${ze}`]:{flex:1},[`& .${Te}`]:{cursor:"initial"}}));function wo(o){const{commands:e,...t}=o,[n,r]=B.useState(!1),[l,i]=B.useState(""),a=B.useMemo(()=>{let u=e.getAllCommands();n||(u=u.filter(_=>_.command.shortcut())),u.sort((_,S)=>_.command.label().localeCompare(S.command.label()));const v=[],m=_=>_.replace(/\n\n/g,`
19
- `);for(let _=0;_<u.length;_++){const S=u[_].command,y=S.shortcut();if(Array.isArray(y)){const g=y;for(let C=0;C<g.length;C++)v.push({label:S.label(),description:m(S.description()),shortcut:g[C]})}else v.push({label:S.label(),description:m(S.description()),shortcut:S.shortcut()})}return v},[n,e]),[s,c]=B.useState(null);B.useEffect(()=>{Promise.resolve().then(()=>require("./Bqn0ZeP_srNfL9rG.cjs")).then(u=>{c(new u.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,h]=B.useState(a),f=l.length>0&&d.length===0;return B.useEffect(()=>{s&&w.Yt.debounce(()=>{if(l.trim().length===0)return void h(a);const u=s.search(l.trim()),v=new Array(u.length);for(let m=0;m<u.length;m++)v[m]=u[m].item;h(v)},90)()},[s,l]),E.jsxs(w.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[E.jsxs(w.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:u=>u.spacing(2),color:u=>u.palette.text.secondary},children:[E.jsx(w.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${w.alpha("#fff",w.$n(5))}, ${w.alpha("#fff",w.$n(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:u=>u.spacing(1),paddingBottom:u=>u.spacing(1)}},endAdornment:E.jsx(w.InputAdornment,{sx:{opacity:l.length>0?1:0,display:l.length>0?"flex":"none"},position:"end",children:E.jsx(w.IconButton,{"aria-label":"clear search",onClick:()=>i(""),edge:"end",children:E.jsx(w._o,{})})})},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=>{i(u.target.value)},onKeyDown:u=>{u.which===w.rn.Escape&&l.length>0&&(i(""),u.stopPropagation(),u.preventDefault())},onContextMenu:u=>{u.stopPropagation()}}),E.jsx(w.FormControlLabel,{sx:{flex:"1 1 60%"},control:E.jsx(w.Checkbox,{checked:n,onChange:()=>r(!n)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),E.jsx(w.Box,{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(${w.alpha("#fff",w.$n(5))}, ${w.alpha("#fff",w.$n(5))})`}},children:E.jsx(yo,{rowCount:d.length,rowGetter:u=>d[u.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),E.jsx(w.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:u=>u.spacing(1),paddingTop:u=>u.spacing(1),paddingRight:u=>u.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:E.jsx(w.Typography,{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":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:n,...r}=o;return E.jsx(w.dS,{isModal:!0,onKeyDown:l=>{l.keyCode===w.rn.F1&&l.preventDefault()},sx:{width:"780px",...n},title:e,autoFocusSel:".input",...r,children:E.jsx(w.DialogContent,{dividers:!0,children:E.jsx(wo,{commands:t,sx:{marginBottom:"8px"}})})})};