@sheetxl/studio-mui 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/LICENSE.md +11 -11
  2. package/README.md +24 -24
  3. package/browser/cjs/{UujPu4lLHc_r1SUn.cjs → 30P2pzSg1uZ4m4Zw.cjs} +1 -1
  4. package/browser/cjs/{yN56SnsUnQBVtfgk.cjs → 4WTvahGneDLqs8nK.cjs} +6 -6
  5. package/browser/cjs/{CTSBfvuw8ujfiIhJ.cjs → B4ne8Qu3ISmBz2I_.cjs} +1 -1
  6. package/browser/cjs/{3zAUf5gel2NS4NUV.cjs → BBBGyVg88HFyp_Ew.cjs} +1 -1
  7. package/browser/cjs/{CAEkkSZHeZRNQG0R.cjs → BC2yD5lEOXzHeG1Y.cjs} +3 -3
  8. package/browser/cjs/{D15axzTLoi9muhoV.cjs → BJPmztbd5VBK5mm9.cjs} +1 -1
  9. package/browser/cjs/{BNBe23lUm7EBSqnU.cjs → BQLQEJgX-sM2Sdn6.cjs} +2 -2
  10. package/browser/cjs/{Dz9oJh4P-OZOclpi.cjs → BZDyAbB3lej5Jex6.cjs} +1 -1
  11. package/browser/cjs/{DSCZW8sUuDNDkI-I.cjs → BfIfeQXC56VMrPqG.cjs} +1 -1
  12. package/browser/cjs/{DYpht4Y7eqeDO0Tl.cjs → BmsLHCvcZOJnxYBm.cjs} +3 -3
  13. package/browser/cjs/{ChmEhLoYRUPKf-5j.cjs → C8QBQtkkjvMqMVxZ.cjs} +2 -2
  14. package/browser/cjs/{CWSmzxgttibVP9hT.cjs → CADYkszzYeb1okev.cjs} +2 -2
  15. package/browser/cjs/{DzKmqf9oDbFOeDxb.cjs → CE5a4FdaHLhTxjMI.cjs} +3 -3
  16. package/browser/cjs/{C2nKG9gonw9kjf2O.cjs → CEyf06HL4OpZLe_9.cjs} +2 -2
  17. package/browser/cjs/{BZXgAF1ioKfKHVzh.cjs → CFRl9gT7qj3ENMiA.cjs} +1 -1
  18. package/browser/cjs/{rF5bS-AQMICHY6eW.cjs → CHkQq93Benc1vCpr.cjs} +2 -2
  19. package/browser/cjs/{bxpRBnb6jclokdqO.cjs → CIZNaSq0_vaZNZu9.cjs} +2 -2
  20. package/browser/cjs/{D7REGgFjpYt3dOxa.cjs → C_WGJtEWeSBOjCod.cjs} +3 -3
  21. package/browser/cjs/{DikYq-H3C1hCCkFX.cjs → C_Wcg7JI6v6vkBD-.cjs} +1 -1
  22. package/browser/cjs/{BLY9lo6Zmg1TAlWJ.cjs → CmHRyEKd83UyYJp5.cjs} +3 -3
  23. package/browser/cjs/{DpmSzzU4cyMtqbS3.cjs → Co4jRh5Lu0sSmXGC.cjs} +2 -2
  24. package/browser/cjs/{Cpf-TdXujrPnyngl.cjs → CwsoT9PB20BPWI94.cjs} +1 -1
  25. package/browser/cjs/{D4V2WiKI9QvNHQuc.cjs → CxgPiyb5-hVRdhnd.cjs} +2 -2
  26. package/browser/cjs/{C30DWhIk2ns5uMC1.cjs → D0u9_xtziw7PDcl8.cjs} +1 -1
  27. package/browser/cjs/{1l0fvuyys87pgNAk.cjs → D2MFDC-oSzPf1srP.cjs} +33 -33
  28. package/browser/cjs/{BJy4s2KejHi-1cVS.cjs → D57lYhefqT866UE1.cjs} +1 -1
  29. package/browser/cjs/{CBFtPci7d7VyZd4v.cjs → DDJTjqunlP762qFN.cjs} +5 -5
  30. package/browser/cjs/{CIXaTINkRLyFtXPo.cjs → DHmGfW6PcfPhM8oL.cjs} +1 -1
  31. package/browser/cjs/{Bubh_F2DmDJkPwtV.cjs → DJPvDosur15jRed6.cjs} +2 -2
  32. package/browser/cjs/{BSpHOdxb1pUInikp.cjs → DYpWMegNKhcIz5Xx.cjs} +2 -2
  33. package/browser/cjs/{9uKr9tlmaQ-9CTuG.cjs → DbOphBQCPCGOjcMB.cjs} +3 -3
  34. package/browser/cjs/{DrbbMh56d-sCYoq0.cjs → DbtwYi7JAHoFLILb.cjs} +7 -7
  35. package/browser/cjs/{Djdp3gf2SCDifJuL.cjs → DcE7grNkk9CxPlz7.cjs} +1 -1
  36. package/browser/cjs/{DemM8F2l2FYuwjzr.cjs → DeDq_kDsb_3oXYP3.cjs} +1 -1
  37. package/browser/cjs/{CItAz94N9xBQy4Rk.cjs → Dj7OrKe2zahSy4rW.cjs} +2 -2
  38. package/browser/cjs/{B-HLnz2e1Vhjp7vS.cjs → Dkjsd1qc-X40cksg.cjs} +1 -1
  39. package/browser/cjs/{B8TXD9qE-zqu6aPb.cjs → DoP_dQD568y-PdQR.cjs} +2 -2
  40. package/browser/cjs/{D8MAwGw2w_oMz9Yx.cjs → DqYbR5LZ21mHAb4i.cjs} +1 -1
  41. package/browser/cjs/{B-2GS172DtKpmj_A.cjs → DrfhSPGoBxXa2zrq.cjs} +1 -1
  42. package/browser/cjs/{CXUuft1vnRTZltwG.cjs → Ds4qQWfBUFy1VFRh.cjs} +4 -4
  43. package/browser/cjs/{DRfHOBOqdgqHRWGV.cjs → DthoHYaMTKWkpydK.cjs} +4 -4
  44. package/browser/cjs/{BgwfI9vW_1rUNH_P.cjs → DvBmxW9WFXe5nTOj.cjs} +1 -1
  45. package/browser/cjs/{BL_NbQbeomqRsJlM.cjs → DxscJXvrkziYQcFs.cjs} +1 -1
  46. package/browser/cjs/{CD6QJ9TS5wH_Rr8e.cjs → DyBAl2cYUIbkoWsa.cjs} +1 -1
  47. package/browser/cjs/{Cryt_DgNThP_gw6d.cjs → UZJaTSqgj_1vwBPD.cjs} +1 -1
  48. package/browser/cjs/{D-PpOzaUP7Zal0-K.cjs → WTQe6nG-0TQIsU2N.cjs} +3 -3
  49. package/browser/cjs/{BRzTX01mMdC0FUaz.cjs → WvFOw7IRc6nN3Ktw.cjs} +1 -1
  50. package/browser/cjs/{DrqyX6gooq3faDge.cjs → _GQMxgpoD4XQiStU.cjs} +1 -1
  51. package/browser/cjs/{BFUNj5L3q_vhuV6N.cjs → cjzXoPH_hX0J64QW.cjs} +4 -4
  52. package/browser/cjs/{Cw6dxbnJpI-q-o14.cjs → fSTkOlUIbVZ0w-Q2.cjs} +1 -1
  53. package/browser/cjs/{D-lEy48c-2hCmieD.cjs → iZCwzTljD4cWi5hR.cjs} +1 -1
  54. package/browser/cjs/{ugn09EOwmavVTH-g.cjs → iloxo818N9ISo1kb.cjs} +1 -1
  55. package/browser/cjs/index.cjs +3 -3
  56. package/browser/cjs/{CO-kWwxBHouumWSj.cjs → s023hbvdZPtE0ZgU.cjs} +4 -4
  57. package/browser/cjs/{XdAAu9D9a8Z9zzvb.cjs → tXdOaeSBJX_Dwtfs.cjs} +2 -2
  58. package/browser/cjs/{CSUqm9-dyP4I5KzE.cjs → u8HVgr27hT-2GVfY.cjs} +1 -1
  59. package/browser/cjs/{BsyMeDVHMTZmlodS.cjs → vavqGfGZgq5i7n4B.cjs} +2 -2
  60. package/browser/cjs/{DJeBAsriAtDWILYZ.cjs → yNZPaSNiBbCzS-ZR.cjs} +2 -2
  61. package/browser/esm/{CsGij0reQqmgPXRl.mjs → 0C6QuzGc8rTp95Os.mjs} +2 -2
  62. package/browser/esm/{T3f442MxYu26Xe3N.mjs → 4JoQwaWGy7X9v7Fv.mjs} +2 -2
  63. package/browser/esm/{CqpSDb9NGOGkCOKr.mjs → 5NrbFIuL4ezvklhf.mjs} +2 -2
  64. package/browser/esm/{RWLz095vaLbb0JSj.mjs → 5ZeTyyMjwTBT3EsV.mjs} +2 -2
  65. package/browser/esm/{DS7tOD-kaxEfLTQK.mjs → 9xTBsz6sONUyOHUW.mjs} +2 -2
  66. package/browser/esm/{DYOf14aUh_Fe4Oit.mjs → B3tAu8z_m4SfpweK.mjs} +1 -1
  67. package/browser/esm/{CTl8U_uWTQF3Pwbd.mjs → B3zRuS9CUBbywRyw.mjs} +2 -2
  68. package/{node/esm/T6OJmEi_qhAugTZY.mjs → browser/esm/B4KRBO609RwNjzvi.mjs} +2 -2
  69. package/browser/esm/{0HxVTXd8LBaH3L_n.mjs → B9OOPVMmJt7VFL6P.mjs} +2 -2
  70. package/browser/esm/{BWDOraRa-WGiwdhS.mjs → BAe4Amd0bcUlcPDo.mjs} +2 -2
  71. package/browser/esm/{CRpApSy_ip7ex-qv.mjs → BBN8odKP7v-WcPD2.mjs} +2 -2
  72. package/browser/esm/{-1qrqzzEn4JIJyH9.mjs → BBSvNtWZn99G2Sel.mjs} +2 -2
  73. package/browser/esm/{Dvd1pKNGbjMwm-8Z.mjs → BCMVtS3Laq-Xh8Di.mjs} +2 -2
  74. package/browser/esm/{ce89NS9XoRyds-94.mjs → BFDuLEYykYS1BDn_.mjs} +7 -7
  75. package/browser/esm/{DF81EIib6J75dvZc.mjs → BFcMJeN-Jx_QyCvg.mjs} +2 -2
  76. package/browser/esm/{LbM0N8dJbqwBmkKO.mjs → BKe9StZYGtgSF78N.mjs} +3 -3
  77. package/browser/esm/{Coq6MkQb7l4IYY6W.mjs → BNXkhPhojFj2qVzy.mjs} +3 -3
  78. package/browser/esm/{D5B6aEFC4XYCBkWM.mjs → BPvaz6hF_IcJuJOV.mjs} +2 -2
  79. package/{node/esm/D1Y9-GeRPcoRToCN.mjs → browser/esm/BRaRGYJwIxUVeGqc.mjs} +2 -2
  80. package/{node/esm/COwusxN75dbRD7NO.mjs → browser/esm/BbEfqkC8wcfMDYW7.mjs} +2 -2
  81. package/{node/esm/B86JZthTAeY9QTMc.mjs → browser/esm/BfEdsxDq6MOecVqq.mjs} +2 -2
  82. package/{node/esm/Bbbw-kFodPGG0WZn.mjs → browser/esm/Bl6YU6FumgUvr0UG.mjs} +2 -2
  83. package/browser/esm/{CXyJUM_lq3gVRG8D.mjs → BoyMSFQmu3xbxOlA.mjs} +5 -5
  84. package/browser/esm/{ChY_qdtDhdN1EhVO.mjs → C55fwXLJyCRvXnox.mjs} +2 -2
  85. package/browser/esm/{CkrCGTYYKmPPwJA6.mjs → C6k-LrteLTacKvUJ.mjs} +2 -2
  86. package/browser/esm/{DQdM0W8to4Ar_3DZ.mjs → C7nYvIDkdvZ1Dj4m.mjs} +5 -5
  87. package/browser/esm/{CoO-VrI8hq3i8hfO.mjs → CCk3fUZpSsFCIy8K.mjs} +4 -4
  88. package/browser/esm/{uGYtrJaPcvxjewbG.mjs → CJ0O6bKXr7qeO25m.mjs} +3 -3
  89. package/browser/esm/{CDTjoplnkma0OHrs.mjs → CPpDKazrNC3936LC.mjs} +2 -2
  90. package/{node/esm/Bw6N-It7Vfq6hnmH.mjs → browser/esm/CgUrlFh28m1acaYQ.mjs} +2 -2
  91. package/browser/esm/{CcsMB6yj-I9mQa7y.mjs → Cl0T7a1Q_gErBp0a.mjs} +2 -2
  92. package/browser/esm/{VU62OcD-yj8O_q1m.mjs → Cluz9cocEiEkoBqC.mjs} +2 -2
  93. package/browser/esm/{BaK1l0acLItlwao5.mjs → CnInDMsKLsntQ4ZW.mjs} +2 -2
  94. package/browser/esm/{BoqNtczPHJOWUaR1.mjs → CpSUrjPU9wYc3Jhg.mjs} +2 -2
  95. package/browser/esm/{9bFl7Rl8MlQyhF8w.mjs → CpoyQrYrPV0-9RPc.mjs} +2 -2
  96. package/browser/esm/{vvThZM5KCTPI2Krc.mjs → CtY7bZRPP4_KRNmt.mjs} +2 -2
  97. package/{node/esm/BSEjGLxKB6zhgQS5.mjs → browser/esm/Cx2I29WhfKMYwydX.mjs} +2 -2
  98. package/browser/esm/{BwGwxCtF1FZpwXaL.mjs → DAO7AruN1dqHKCzx.mjs} +7 -7
  99. package/browser/esm/{Yo-mN41isGYkgsCG.mjs → DB1-J0MOAeH11ZyJ.mjs} +2 -2
  100. package/browser/esm/{B7ipO3rWvN0GYmtV.mjs → DQA0GopfVCQr8XAy.mjs} +2 -2
  101. package/browser/esm/{D4M2PpLzNZZ2sRh0.mjs → DX5wv2h7KsKxTYo5.mjs} +3 -3
  102. package/browser/esm/{DSrUptgY6LA0HSue.mjs → DgAkhv_thUOpWlnL.mjs} +53 -53
  103. package/browser/esm/{D59Ply6z7IfhPbuZ.mjs → DgnVRt8VYgaSZGHj.mjs} +4 -4
  104. package/browser/esm/{CyR4ZNWbgh-KO0qi.mjs → DsWvUVuInbcvxqIu.mjs} +6 -6
  105. package/browser/esm/{CxncxHrwQqZjNri9.mjs → DsZx_Zkhn1I5H_1J.mjs} +2 -2
  106. package/browser/esm/{BRROz7jz2TsdI4W3.mjs → DwSOLCKwPflQ8oiF.mjs} +4 -4
  107. package/browser/esm/{BC5Cz3UlIL3peOXV.mjs → Dwss46fwkNYFDw8t.mjs} +2 -2
  108. package/browser/esm/{B73Ut3VUjcyjmFu3.mjs → DxDjGuX7dIrp2S15.mjs} +3 -3
  109. package/browser/esm/{LN2PvYIqQrnbE4OG.mjs → H8PuG54lnnKpLJ9K.mjs} +2 -2
  110. package/browser/esm/{BRmFGMO9lhWYgV5F.mjs → LwaL-xJmA9EnZcqb.mjs} +3 -3
  111. package/{node/esm/Cx7lwU9c3xE1sYqc.mjs → browser/esm/QzCoqfRysNMoTzb1.mjs} +2 -2
  112. package/browser/esm/{DWGYvF8yihIcnYEk.mjs → cAw1gvsUyweC9j3E.mjs} +2 -2
  113. package/browser/esm/{CchMVE8t9beQDg5K.mjs → gNrO89j_4tRIGEtM.mjs} +4 -4
  114. package/browser/esm/index.mjs +3 -3
  115. package/browser/esm/{DwH51KzV6uZGnZNL.mjs → rrGPhfv9KHmWuZ1O.mjs} +2 -2
  116. package/browser/esm/{V8i8hT5zyC8O0EDV.mjs → s1BEJnCqBOb8JJDU.mjs} +2 -2
  117. package/browser/esm/{DUC7FXZxIYiWg5qB.mjs → wefMW1XHosAljDkr.mjs} +2 -2
  118. package/browser/esm/{CL8dYrIob_nNamy9.mjs → wy5pKj7t63p_up1j.mjs} +5 -5
  119. package/licenses/dependencies.txt +77 -77
  120. package/node/assets/style.css +1 -1
  121. package/node/esm/{T3f442MxYu26Xe3N.mjs → 4JoQwaWGy7X9v7Fv.mjs} +2 -2
  122. package/node/esm/{C3KLiStsm4iem4xa.mjs → 9XZv6YbZGzXJWLjj.mjs} +2 -2
  123. package/node/esm/{DS7tOD-kaxEfLTQK.mjs → 9xTBsz6sONUyOHUW.mjs} +2 -2
  124. package/{browser/esm/T6OJmEi_qhAugTZY.mjs → node/esm/B4KRBO609RwNjzvi.mjs} +2 -2
  125. package/node/esm/{BbSRl2AQ8tNEG2z4.mjs → B6zpbEevMTArgNIt.mjs} +5 -5
  126. package/node/esm/{CrmvsIs4wdtHEUOp.mjs → BBdLL4LjdF1xMJM1.mjs} +2 -2
  127. package/node/esm/{XTb03Rq1a4JN-kPE.mjs → BCHHa-dErcBIC_0y.mjs} +1 -1
  128. package/node/esm/{BFtl3bEgu_G4W2DZ.mjs → BG0B7kW0XUOAZkPr.mjs} +1 -1
  129. package/node/esm/{CClliJM_P5RFrgVM.mjs → BOSoESJcI0P9vUHU.mjs} +5 -5
  130. package/node/esm/{D5B6aEFC4XYCBkWM.mjs → BPvaz6hF_IcJuJOV.mjs} +2 -2
  131. package/{browser/esm/D1Y9-GeRPcoRToCN.mjs → node/esm/BRaRGYJwIxUVeGqc.mjs} +2 -2
  132. package/node/esm/{YBIsfSrJz5hvmaON.mjs → BSra_FfM7URLW976.mjs} +3 -3
  133. package/node/esm/{CJjcifv2lvOZ8Jn3.mjs → B_G7O_zb-jF1PwUW.mjs} +1 -1
  134. package/node/esm/{BUPueQqX9AlTur_m.mjs → Bav2rRIN-77VagCp.mjs} +4 -4
  135. package/{browser/esm/COwusxN75dbRD7NO.mjs → node/esm/BbEfqkC8wcfMDYW7.mjs} +2 -2
  136. package/{browser/esm/B86JZthTAeY9QTMc.mjs → node/esm/BfEdsxDq6MOecVqq.mjs} +2 -2
  137. package/node/esm/{CqCivvc4T7zLASOP.mjs → Bl4s1iMUrCbnLTK6.mjs} +7 -7
  138. package/{browser/esm/Bbbw-kFodPGG0WZn.mjs → node/esm/Bl6YU6FumgUvr0UG.mjs} +2 -2
  139. package/node/esm/{qjGdM432e9rleDYr.mjs → Bt9tHh7hpw6l03MX.mjs} +2 -2
  140. package/node/esm/{D3wJENJX5zUN1RPu.mjs → ByM8BXRmy_WcnL53.mjs} +1 -1
  141. package/node/esm/{CJtQbd_R0FH6mR5o.mjs → C-OobshDolEf_YMF.mjs} +1 -1
  142. package/node/esm/{DY1ia32QeXc8HXd_.mjs → C0BuhFhvary0MrNX.mjs} +2 -2
  143. package/node/esm/{ChY_qdtDhdN1EhVO.mjs → C55fwXLJyCRvXnox.mjs} +2 -2
  144. package/node/esm/{ConCoV_bYpoIcsnn.mjs → C5U11rfhUvotCiwk.mjs} +2 -2
  145. package/node/esm/{CEHJ9FaXxq_49-AF.mjs → C6u3GsSp4e2cvW9r.mjs} +2 -2
  146. package/node/esm/{u9fLXTTtJhVBztik.mjs → C8STZ7Zt6L0KzqIE.mjs} +1 -1
  147. package/node/esm/{Cuod-Oj3xHjKJ6OH.mjs → CAMB3sLeYaDmVbRg.mjs} +1 -1
  148. package/node/esm/{BBqP9C9UZScKByYu.mjs → CF8Iw2U0KmkBM7e_.mjs} +3 -3
  149. package/node/esm/{D7MVm9Ne8YcsG9pk.mjs → CGpy_JYlJvSqi2bv.mjs} +1 -1
  150. package/node/esm/{BF6pFBd4ShbvpO2q.mjs → CMqERd7Psx-3Wfm9.mjs} +7 -7
  151. package/node/esm/{CDTjoplnkma0OHrs.mjs → CPpDKazrNC3936LC.mjs} +2 -2
  152. package/node/esm/{DYTti32dF1Vvnf75.mjs → CQza81LSbdfj4dh8.mjs} +2 -2
  153. package/{browser/esm/Bw6N-It7Vfq6hnmH.mjs → node/esm/CgUrlFh28m1acaYQ.mjs} +2 -2
  154. package/node/esm/{Cu-cFdaJItck1MkA.mjs → CgnJOwb7XTGd8SHn.mjs} +1 -1
  155. package/node/esm/{CSd0aRkkBsGPtdz9.mjs → CipoP939zaH4fcOy.mjs} +2 -2
  156. package/node/esm/{9bFl7Rl8MlQyhF8w.mjs → CpoyQrYrPV0-9RPc.mjs} +2 -2
  157. package/{browser/esm/BSEjGLxKB6zhgQS5.mjs → node/esm/Cx2I29WhfKMYwydX.mjs} +2 -2
  158. package/node/esm/{BIkEh1U5n4IIWoa4.mjs → D-5hudKxKNcxHDv4.mjs} +5 -5
  159. package/node/esm/{BqAj8zCi1ZMovGpq.mjs → DCuXbif8mI95HsNT.mjs} +2 -2
  160. package/node/esm/{D-xOXrurOxckbb7r.mjs → DdzeWAW2GHn9AEEc.mjs} +2 -2
  161. package/node/esm/{CFXj9_GpBtYjm8nr.mjs → Dfiyl6Mp0BhjlSy1.mjs} +1 -1
  162. package/node/esm/{GH_7ckSJqzjZi4s6.mjs → Dmuc2_ZKAEnSFQ4-.mjs} +3 -3
  163. package/node/esm/{CgZF9IaPYvx0Vo7k.mjs → Dzi6IQ6mIY4GUhhn.mjs} +2 -2
  164. package/{browser/esm/Cx7lwU9c3xE1sYqc.mjs → node/esm/QzCoqfRysNMoTzb1.mjs} +2 -2
  165. package/node/esm/{BRCDf456ELCZMTsi.mjs → TF4SxbxBSD3Gf9rn.mjs} +1 -1
  166. package/node/esm/{cAmr0DmE7QXFjvA6.mjs → hNQ44J3MKLhqWqDQ.mjs} +1 -1
  167. package/node/esm/{DKm7ejO85YJ0AauC.mjs → hpjhhcXZ4ox1ttj9.mjs} +4 -4
  168. package/node/esm/index.mjs +58 -58
  169. package/node/esm/{BvSNd7bBuOmnN4Sj.mjs → oOVkOZ3Xk1oEBGVF.mjs} +1 -1
  170. package/node/esm/{BcV1FWPs9cCrQn1j.mjs → qiZgtOByq0ONnESS.mjs} +1 -1
  171. package/node/esm/{DwH51KzV6uZGnZNL.mjs → rrGPhfv9KHmWuZ1O.mjs} +2 -2
  172. package/node/esm/{V8i8hT5zyC8O0EDV.mjs → s1BEJnCqBOb8JJDU.mjs} +2 -2
  173. package/node/esm/{DdaEd7nF3VwgykJB.mjs → v_xWzWUNiVGQNBoT.mjs} +1 -1
  174. package/node/esm/{BGgCGyadQIsSx2jF.mjs → wqbe04B4sEFndP3V.mjs} +4 -4
  175. package/node/esm/{BR2Qw-6eaIDdhO1m.mjs → z4aHdT3kX8QkA5WB.mjs} +2 -2
  176. package/package.json +8 -8
@@ -1,12 +1,12 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */const h=require("react/jsx-runtime"),a=require("react"),l=require("./1l0fvuyys87pgNAk.cjs"),jt=require("react-dom"),H=require("@mui/material"),Ue=require("@mui/icons-material"),Ot=a.createContext(null),Ae={didCatch:!1,error:null};class Dt extends a.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ae}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(){const{error:i}=this.state;if(i!==null){for(var r,e,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];(r=(e=this.props).onReset)===null||r===void 0||r.call(e,{args:o,reason:"imperative-api"}),this.setState(Ae)}}componentDidCatch(i,r){var e,n;(e=(n=this.props).onError)===null||e===void 0||e.call(n,i,r)}componentDidUpdate(i,r){const{didCatch:e}=this.state,{resetKeys:n}=this.props;var o,s;e&&r.error!==null&&function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return d.length!==c.length||d.some((u,p)=>!Object.is(u,c[p]))}(i.resetKeys,n)&&((o=(s=this.props).onReset)===null||o===void 0||o.call(s,{next:n,prev:i.resetKeys,reason:"keys"}),this.setState(Ae))}render(){const{children:i,fallbackRender:r,FallbackComponent:e,fallback:n}=this.props,{didCatch:o,error:s}=this.state;let d=i;if(o){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(c);else if(e)d=a.createElement(e,c);else{if(n===void 0)throw s;d=n}}return a.createElement(Ot.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}}function dt(t){var i,r,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(r=dt(t[i]))&&(e&&(e+=" "),e+=r);else for(i in t)t[i]&&(e&&(e+=" "),e+=i);return e}function te(){for(var t,i,r=0,e="";r<arguments.length;)(t=arguments[r++])&&(i=dt(t))&&(e&&(e+=" "),e+=i);return e}let Wt={data:""},Rt=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Wt,Ft=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,It=/\/\*[^]*?\*\/| +/g,Ye=/\n+/g,re=(t,i)=>{let r="",e="",n="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?r=o+" "+s+";":e+=o[1]=="f"?re(s,o):o+"{"+re(s,o[1]=="k"?"":i)+"}":typeof s=="object"?e+=re(s,i?i.replace(/([^,])+/g,d=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,d):d?d+" "+c:c)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=re.p?re.p(o,s):o+":"+s+";")}return r+(i&&n?i+"{"+n+"}":n)+e},Y={},pt=t=>{if(typeof t=="object"){let i="";for(let r in t)i+=r+pt(t[r]);return i}return t},Pt=(t,i,r,e,n)=>{let o=pt(t),s=Y[o]||(Y[o]=(c=>{let u=0,p=11;for(;u<c.length;)p=101*p+c.charCodeAt(u++)>>>0;return"go"+p})(o));if(!Y[s]){let c=o!==t?t:(u=>{let p,f,g=[{}];for(;p=Ft.exec(u.replace(It,""));)p[4]?g.shift():p[3]?(f=p[3].replace(Ye," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][p[1]]=p[2].replace(Ye," ").trim();return g[0]})(t);Y[s]=re(n?{["@keyframes "+s]:c}:c,r?"":"."+s)}let d=r&&Y.g?Y.g:null;return r&&(Y.g=Y[s]),((c,u,p,f)=>{f?u.data=u.data.replace(f,c):u.data.indexOf(c)===-1&&(u.data=p?c+u.data:u.data+c)})(Y[s],i,e,d),s};function Ke(t){let i=this||{},r=t.call?t(i.p):t;return Pt(r.unshift?r.raw?((e,n,o)=>e.reduce((s,d,c)=>{let u=n[c];if(u&&u.call){let p=u(o),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;u=f?"."+f:p&&typeof p=="object"?p.props?"":re(p,""):p===!1?"":p}return s+d+(u??"")},""))(r,[].slice.call(arguments,1),i.p):r.reduce((e,n)=>Object.assign(e,n&&n.call?n(i.p):n),{}):r,Rt(i.target),i.g,i.o,i.k)}function ft(t,i,r){return i&&function(e,n){for(var o=0;o<n.length;o++){var s=n[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(t.prototype,i),t}function L(){return L=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},L.apply(this,arguments)}function mt(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}function we(t,i){if(t==null)return{};var r,e,n={},o=Object.keys(t);for(e=0;e<o.length;e++)r=o[e],i.indexOf(r)>=0||(n[r]=t[r]);return n}function Je(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Ke.bind({g:1}),Ke.bind({k:1});var et=function(){return""},ht=a.createContext({enqueueSnackbar:et,closeSnackbar:et}),He="@media (max-width:599.95px)",We="@media (min-width:600px)",tt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ge=function(t){return""+tt(t.vertical)+tt(t.horizontal)},Se=function(t){return!!t||t===0},Te="unmounted",ce="exited",ue="entering",ge="entered",nt="exiting",$e=function(t){function i(e){var n;n=t.call(this,e)||this;var o,s=e.appear;return n.appearStatus=null,e.in?s?(o=ce,n.appearStatus=ue):o=ge:o=e.unmountOnExit||e.mountOnEnter?Te:ce,n.state={status:o},n.nextCallback=null,n}mt(i,t),i.getDerivedStateFromProps=function(e,n){return e.in&&n.status===Te?{status:ce}:null};var r=i.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var n=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==ue&&o!==ge&&(n=ue):o!==ue&&o!==ge||(n=nt)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,n=e,o=e;return e!=null&&typeof e!="number"&&typeof e!="string"&&(o=e.exit,n=e.enter),{exit:o,enter:n}},r.updateStatus=function(e,n){e===void 0&&(e=!1),n!==null?(this.cancelNextCallback(),n===ue?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:Te})},r.performEnter=function(e){var n=this,o=this.props.enter,s=e,d=this.getTimeouts();e||o?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:ue},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(d.enter,function(){n.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},r.performExit=function(){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nt},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},r.setNextCallback=function(e){var n=this,o=!0;return this.nextCallback=function(){o&&(o=!1,n.nextCallback=null,e())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var o=e==null&&!this.props.addEndListener;this.node&&!o?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),e!=null&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Te)return null;var n=this.props;return(0,n.children)(e,we(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},ft(i,[{key:"node",get:function(){var e,n=(e=this.props.nodeRef)===null||e===void 0?void 0:e.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),i}(a.Component);function de(){}function ot(t,i){typeof t=="function"?t(i):t&&(t.current=i)}function Qe(t,i){return a.useMemo(function(){return t==null&&i==null?null:function(r){ot(t,r),ot(i,r)}},[t,i])}function Re(t){var i=t.timeout,r=t.style,e=r===void 0?{}:r,n=t.mode;return{duration:typeof i=="object"?i[n]||0:i,easing:e.transitionTimingFunction,delay:e.transitionDelay}}$e.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:de,onEntering:de,onEntered:de,onExit:de,onExiting:de,onExited:de};var qt="cubic-bezier(0.4, 0, 0.2, 1)",Nt="cubic-bezier(0.0, 0, 0.2, 1)",At="cubic-bezier(0.4, 0, 0.6, 1)",gt=function(t){t.scrollTop=t.scrollTop},rt=function(t){return Math.round(t)+"ms"};function pe(t,i){t===void 0&&(t=["all"]);var r=i||{},e=r.duration,n=e===void 0?300:e,o=r.easing,s=o===void 0?qt:o,d=r.delay,c=d===void 0?0:d;return(Array.isArray(t)?t:[t]).map(function(u){var p=typeof n=="string"?n:rt(n),f=typeof c=="string"?c:rt(c);return u+" "+p+" "+s+" "+f}).join(",")}function kt(t){var i=function(r){return r&&r.ownerDocument||document}(t);return i.defaultView||window}function Le(t,i){if(i){var r=function(e,n){var o,s=n.getBoundingClientRect(),d=kt(n);if(n.fakeTransform)o=n.fakeTransform;else{var c=d.getComputedStyle(n);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var u=0,p=0;if(o&&o!=="none"&&typeof o=="string"){var f=o.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),p=parseInt(f[5],10)}switch(e){case"left":return"translateX("+(d.innerWidth+u-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-u)+"px)";case"up":return"translateY("+(d.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(t,i);r&&(i.style.webkitTransform=r,i.style.transform=r)}}var bt=a.forwardRef(function(t,i){var r=t.children,e=t.direction,n=e===void 0?"down":e,o=t.in,s=t.style,d=t.timeout,c=d===void 0?0:d,u=t.onEnter,p=t.onEntered,f=t.onExit,g=t.onExited,y=we(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=a.useRef(null),w=Qe(r.ref,v),E=Qe(w,i),b=a.useCallback(function(){v.current&&Le(n,v.current)},[n]);return a.useEffect(function(){if(!o&&n!=="down"&&n!=="right"){var k=function(T,Z){var A;function B(){for(var V=this,U=arguments.length,_=new Array(U),G=0;G<U;G++)_[G]=arguments[G];clearTimeout(A),A=setTimeout(function(){T.apply(V,_)},Z)}return Z===void 0&&(Z=166),B.clear=function(){clearTimeout(A)},B}(function(){v.current&&Le(n,v.current)}),D=kt(v.current);return D.addEventListener("resize",k),function(){k.clear(),D.removeEventListener("resize",k)}}},[n,o]),a.useEffect(function(){o||b()},[o,b]),a.createElement($e,Object.assign({appear:!0,nodeRef:v,onEnter:function(k,D){Le(n,k),gt(k),u&&u(k,D)},onEntered:p,onEntering:function(k){var D=s?.transitionTimingFunction||Nt,T=Re({timeout:c,mode:"enter",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),k.style.webkitTransform="none",k.style.transform="none"},onExit:function(k){var D=s?.transitionTimingFunction||At,T=Re({timeout:c,mode:"exit",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),Le(n,k),f&&f(k)},onExited:function(k){k.style.webkitTransition="",k.style.transition="",g&&g(k)},in:o,timeout:c},y),function(k,D){return a.cloneElement(r,L({ref:E,style:L({visibility:k!=="exited"||o?void 0:"hidden"},s,{},r.props.style)},D))})});bt.displayName="Slide";var Fe=function(t){return a.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Ht=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
6
+ */const h=require("react/jsx-runtime"),a=require("react"),l=require("./D2MFDC-oSzPf1srP.cjs"),jt=require("react-dom"),H=require("@mui/material"),Ue=require("@mui/icons-material"),Ot=a.createContext(null),Ae={didCatch:!1,error:null};class Dt extends a.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ae}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(){const{error:i}=this.state;if(i!==null){for(var r,e,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];(r=(e=this.props).onReset)===null||r===void 0||r.call(e,{args:o,reason:"imperative-api"}),this.setState(Ae)}}componentDidCatch(i,r){var e,n;(e=(n=this.props).onError)===null||e===void 0||e.call(n,i,r)}componentDidUpdate(i,r){const{didCatch:e}=this.state,{resetKeys:n}=this.props;var o,s;e&&r.error!==null&&function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return d.length!==c.length||d.some((u,p)=>!Object.is(u,c[p]))}(i.resetKeys,n)&&((o=(s=this.props).onReset)===null||o===void 0||o.call(s,{next:n,prev:i.resetKeys,reason:"keys"}),this.setState(Ae))}render(){const{children:i,fallbackRender:r,FallbackComponent:e,fallback:n}=this.props,{didCatch:o,error:s}=this.state;let d=i;if(o){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(c);else if(e)d=a.createElement(e,c);else{if(n===void 0)throw s;d=n}}return a.createElement(Ot.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}}function dt(t){var i,r,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(r=dt(t[i]))&&(e&&(e+=" "),e+=r);else for(i in t)t[i]&&(e&&(e+=" "),e+=i);return e}function te(){for(var t,i,r=0,e="";r<arguments.length;)(t=arguments[r++])&&(i=dt(t))&&(e&&(e+=" "),e+=i);return e}let Wt={data:""},Rt=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Wt,Ft=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,It=/\/\*[^]*?\*\/| +/g,Ye=/\n+/g,re=(t,i)=>{let r="",e="",n="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?r=o+" "+s+";":e+=o[1]=="f"?re(s,o):o+"{"+re(s,o[1]=="k"?"":i)+"}":typeof s=="object"?e+=re(s,i?i.replace(/([^,])+/g,d=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,d):d?d+" "+c:c)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=re.p?re.p(o,s):o+":"+s+";")}return r+(i&&n?i+"{"+n+"}":n)+e},Y={},pt=t=>{if(typeof t=="object"){let i="";for(let r in t)i+=r+pt(t[r]);return i}return t},Pt=(t,i,r,e,n)=>{let o=pt(t),s=Y[o]||(Y[o]=(c=>{let u=0,p=11;for(;u<c.length;)p=101*p+c.charCodeAt(u++)>>>0;return"go"+p})(o));if(!Y[s]){let c=o!==t?t:(u=>{let p,f,g=[{}];for(;p=Ft.exec(u.replace(It,""));)p[4]?g.shift():p[3]?(f=p[3].replace(Ye," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][p[1]]=p[2].replace(Ye," ").trim();return g[0]})(t);Y[s]=re(n?{["@keyframes "+s]:c}:c,r?"":"."+s)}let d=r&&Y.g?Y.g:null;return r&&(Y.g=Y[s]),((c,u,p,f)=>{f?u.data=u.data.replace(f,c):u.data.indexOf(c)===-1&&(u.data=p?c+u.data:u.data+c)})(Y[s],i,e,d),s};function Ke(t){let i=this||{},r=t.call?t(i.p):t;return Pt(r.unshift?r.raw?((e,n,o)=>e.reduce((s,d,c)=>{let u=n[c];if(u&&u.call){let p=u(o),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;u=f?"."+f:p&&typeof p=="object"?p.props?"":re(p,""):p===!1?"":p}return s+d+(u??"")},""))(r,[].slice.call(arguments,1),i.p):r.reduce((e,n)=>Object.assign(e,n&&n.call?n(i.p):n),{}):r,Rt(i.target),i.g,i.o,i.k)}function ft(t,i,r){return i&&function(e,n){for(var o=0;o<n.length;o++){var s=n[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(t.prototype,i),t}function L(){return L=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},L.apply(this,arguments)}function mt(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}function we(t,i){if(t==null)return{};var r,e,n={},o=Object.keys(t);for(e=0;e<o.length;e++)r=o[e],i.indexOf(r)>=0||(n[r]=t[r]);return n}function Je(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Ke.bind({g:1}),Ke.bind({k:1});var et=function(){return""},ht=a.createContext({enqueueSnackbar:et,closeSnackbar:et}),He="@media (max-width:599.95px)",We="@media (min-width:600px)",tt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ge=function(t){return""+tt(t.vertical)+tt(t.horizontal)},Se=function(t){return!!t||t===0},Te="unmounted",ce="exited",ue="entering",ge="entered",nt="exiting",$e=function(t){function i(e){var n;n=t.call(this,e)||this;var o,s=e.appear;return n.appearStatus=null,e.in?s?(o=ce,n.appearStatus=ue):o=ge:o=e.unmountOnExit||e.mountOnEnter?Te:ce,n.state={status:o},n.nextCallback=null,n}mt(i,t),i.getDerivedStateFromProps=function(e,n){return e.in&&n.status===Te?{status:ce}:null};var r=i.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var n=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==ue&&o!==ge&&(n=ue):o!==ue&&o!==ge||(n=nt)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,n=e,o=e;return e!=null&&typeof e!="number"&&typeof e!="string"&&(o=e.exit,n=e.enter),{exit:o,enter:n}},r.updateStatus=function(e,n){e===void 0&&(e=!1),n!==null?(this.cancelNextCallback(),n===ue?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:Te})},r.performEnter=function(e){var n=this,o=this.props.enter,s=e,d=this.getTimeouts();e||o?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:ue},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(d.enter,function(){n.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},r.performExit=function(){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nt},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},r.setNextCallback=function(e){var n=this,o=!0;return this.nextCallback=function(){o&&(o=!1,n.nextCallback=null,e())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var o=e==null&&!this.props.addEndListener;this.node&&!o?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),e!=null&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Te)return null;var n=this.props;return(0,n.children)(e,we(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},ft(i,[{key:"node",get:function(){var e,n=(e=this.props.nodeRef)===null||e===void 0?void 0:e.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),i}(a.Component);function de(){}function ot(t,i){typeof t=="function"?t(i):t&&(t.current=i)}function Qe(t,i){return a.useMemo(function(){return t==null&&i==null?null:function(r){ot(t,r),ot(i,r)}},[t,i])}function Re(t){var i=t.timeout,r=t.style,e=r===void 0?{}:r,n=t.mode;return{duration:typeof i=="object"?i[n]||0:i,easing:e.transitionTimingFunction,delay:e.transitionDelay}}$e.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:de,onEntering:de,onEntered:de,onExit:de,onExiting:de,onExited:de};var qt="cubic-bezier(0.4, 0, 0.2, 1)",Nt="cubic-bezier(0.0, 0, 0.2, 1)",At="cubic-bezier(0.4, 0, 0.6, 1)",gt=function(t){t.scrollTop=t.scrollTop},rt=function(t){return Math.round(t)+"ms"};function pe(t,i){t===void 0&&(t=["all"]);var r=i||{},e=r.duration,n=e===void 0?300:e,o=r.easing,s=o===void 0?qt:o,d=r.delay,c=d===void 0?0:d;return(Array.isArray(t)?t:[t]).map(function(u){var p=typeof n=="string"?n:rt(n),f=typeof c=="string"?c:rt(c);return u+" "+p+" "+s+" "+f}).join(",")}function kt(t){var i=function(r){return r&&r.ownerDocument||document}(t);return i.defaultView||window}function Le(t,i){if(i){var r=function(e,n){var o,s=n.getBoundingClientRect(),d=kt(n);if(n.fakeTransform)o=n.fakeTransform;else{var c=d.getComputedStyle(n);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var u=0,p=0;if(o&&o!=="none"&&typeof o=="string"){var f=o.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),p=parseInt(f[5],10)}switch(e){case"left":return"translateX("+(d.innerWidth+u-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-u)+"px)";case"up":return"translateY("+(d.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(t,i);r&&(i.style.webkitTransform=r,i.style.transform=r)}}var bt=a.forwardRef(function(t,i){var r=t.children,e=t.direction,n=e===void 0?"down":e,o=t.in,s=t.style,d=t.timeout,c=d===void 0?0:d,u=t.onEnter,p=t.onEntered,f=t.onExit,g=t.onExited,y=we(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=a.useRef(null),w=Qe(r.ref,v),E=Qe(w,i),b=a.useCallback(function(){v.current&&Le(n,v.current)},[n]);return a.useEffect(function(){if(!o&&n!=="down"&&n!=="right"){var k=function(T,Z){var A;function B(){for(var V=this,U=arguments.length,_=new Array(U),G=0;G<U;G++)_[G]=arguments[G];clearTimeout(A),A=setTimeout(function(){T.apply(V,_)},Z)}return Z===void 0&&(Z=166),B.clear=function(){clearTimeout(A)},B}(function(){v.current&&Le(n,v.current)}),D=kt(v.current);return D.addEventListener("resize",k),function(){k.clear(),D.removeEventListener("resize",k)}}},[n,o]),a.useEffect(function(){o||b()},[o,b]),a.createElement($e,Object.assign({appear:!0,nodeRef:v,onEnter:function(k,D){Le(n,k),gt(k),u&&u(k,D)},onEntered:p,onEntering:function(k){var D=s?.transitionTimingFunction||Nt,T=Re({timeout:c,mode:"enter",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),k.style.webkitTransform="none",k.style.transform="none"},onExit:function(k){var D=s?.transitionTimingFunction||At,T=Re({timeout:c,mode:"exit",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),Le(n,k),f&&f(k)},onExited:function(k){k.style.webkitTransition="",k.style.transition="",g&&g(k)},in:o,timeout:c},y),function(k,D){return a.cloneElement(r,L({ref:E,style:L({visibility:k!=="exited"||o?void 0:"hidden"},s,{},r.props.style)},D))})});bt.displayName="Slide";var Fe=function(t){return a.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Ht=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
7
7
  10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Bt=function(){return a.createElement(Fe,null,a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Vt=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
8
8
  6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
9
9
  13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},_t=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
10
- 0 22,12A10,10 0 0,0 12,2Z`}))},oe={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:a.createElement(Ht,null),warning:a.createElement(Bt,null),error:a.createElement(Vt,null),info:a.createElement(_t,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:bt,transitionDuration:{enter:225,exit:195}},zt=function(t,i){return function(r,e){return e===void 0&&(e=!1),e?L({},oe[r],{},i[r],{},t[r]):r==="autoHideDuration"?(n=t.autoHideDuration,o=i.autoHideDuration,(s=function(d){return typeof d=="number"||d===null})(n)?n:s(o)?o:oe.autoHideDuration):r==="transitionDuration"?function(d,c){var u=function(p,f){return f.some(function(g){return typeof p===g})};return u(d,["string","number"])?d:u(d,["object"])?L({},oe.transitionDuration,{},u(c,["object"])&&c,{},d):u(c,["string","number"])?c:u(c,["object"])?L({},oe.transitionDuration,{},c):oe.transitionDuration}(t.transitionDuration,i.transitionDuration):t[r]||i[r]||oe[r];var n,o,s}};function ve(t){return Object.entries(t).reduce(function(i,r){var e,n=r[0],o=r[1];return L({},i,((e={})[n]=Ke(o),e))},{})}var Ut="notistack-SnackbarContainer",Kt="notistack-Snackbar",xt="notistack-CollapseWrapper",Qt="notistack-MuiContent",Gt=function(t){return"notistack-MuiContent-"+t},it=ve({root:{height:0},entered:{height:"auto"}}),Be="0px",yt=a.forwardRef(function(t,i){var r=t.children,e=t.in,n=t.onExited,o=a.useRef(null),s=a.useRef(null),d=Qe(i,s),c=function(){return o.current?o.current.clientHeight:0};return a.createElement($e,{in:e,unmountOnExit:!0,onEnter:function(u){u.style.height=Be},onEntered:function(u){u.style.height="auto"},onEntering:function(u){var p=c(),f=Re({timeout:175,mode:"enter"}),g=f.duration,y=f.easing;u.style.transitionDuration=typeof g=="string"?g:g+"ms",u.style.height=p+"px",u.style.transitionTimingFunction=y||""},onExit:function(u){u.style.height=c()+"px"},onExited:n,onExiting:function(u){gt(u);var p=Re({timeout:175,mode:"exit"}),f=p.duration,g=p.easing;u.style.transitionDuration=typeof f=="string"?f:f+"ms",u.style.height=Be,u.style.transitionTimingFunction=g||""},nodeRef:s,timeout:175},function(u,p){return a.createElement("div",Object.assign({ref:d,className:te(it.root,u==="entered"&&it.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:pe("height")},u==="entered"&&{overflow:"visible"},{},u==="exited"&&!e&&{visibility:"hidden"})},p),a.createElement("div",{ref:o,className:xt,style:{display:"flex",width:"100%"}},r))})});yt.displayName="Collapse";var at={right:"left",left:"right",bottom:"up",top:"down"},$t=function(t){return"anchorOrigin"+Ge(t)},Zt=function(){};function ye(t,i){return t.reduce(function(r,e){return e==null?r:function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var d=[].concat(o);i&&d.indexOf(i)===-1&&d.push(i),r.apply(this,d),e.apply(this,d)}},Zt)}var Xt=typeof window<"u"?a.useLayoutEffect:a.useEffect;function st(t){var i=a.useRef(t);return Xt(function(){i.current=t}),a.useCallback(function(){return i.current.apply(void 0,arguments)},[])}var Ve,wt=a.forwardRef(function(t,i){var r=t.children,e=t.className,n=t.autoHideDuration,o=t.disableWindowBlurListener,s=o!==void 0&&o,d=t.onClose,c=t.id,u=t.open,p=t.SnackbarProps,f=p===void 0?{}:p,g=a.useRef(),y=st(function(){d&&d.apply(void 0,arguments)}),v=st(function(b){d&&b!=null&&(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){y(null,"timeout",c)},b))});a.useEffect(function(){return u&&v(n),function(){g.current&&clearTimeout(g.current)}},[u,n,v]);var w=function(){g.current&&clearTimeout(g.current)},E=a.useCallback(function(){n!=null&&v(.5*n)},[n,v]);return a.useEffect(function(){if(!s&&u)return window.addEventListener("focus",E),window.addEventListener("blur",w),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",w)}},[s,E,u]),a.createElement("div",Object.assign({ref:i},f,{className:te(Kt,e),onMouseEnter:function(b){f.onMouseEnter&&f.onMouseEnter(b),w()},onMouseLeave:function(b){f.onMouseLeave&&f.onMouseLeave(b),E()}}),r)});wt.displayName="Snackbar";var Yt=ve({root:(Ve={display:"flex",flexWrap:"wrap",flexGrow:1},Ve[We]={flexGrow:"initial",minWidth:"288px"},Ve)}),Ze=a.forwardRef(function(t,i){var r=t.className,e=we(t,["className"]);return a.createElement("div",Object.assign({ref:i,className:te(Yt.root,r)},e))});Ze.displayName="SnackbarContent";var ke=ve({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),lt="notistack-snackbar",vt=a.forwardRef(function(t,i){var r=t.id,e=t.message,n=t.action,o=t.iconVariant,s=t.variant,d=t.hideIconVariant,c=t.style,u=t.className,p=o[s],f=n;return typeof f=="function"&&(f=f(r)),a.createElement(Ze,{ref:i,role:"alert","aria-describedby":lt,style:c,className:te(Qt,Gt(s),ke.root,ke[s],u,!d&&p&&ke.lessPadding)},a.createElement("div",{id:lt,className:ke.message},d?null:p,e),f&&a.createElement("div",{className:ke.action},f))});vt.displayName="MaterialDesignContent";var be,_e,Me,je,ze,Jt=a.memo(vt),en=ve({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),tn=function(t){var i=a.useRef(),r=a.useState(!0),e=r[0],n=r[1],o=ye([t.snack.onClose,t.onClose]),s=a.useCallback(function(){i.current=setTimeout(function(){n(function(V){return!V})},125)},[]);a.useEffect(function(){return function(){i.current&&clearTimeout(i.current)}},[]);var d,c=t.snack,u=t.classes,p=t.Component,f=p===void 0?Jt:p,g=a.useMemo(function(){return function(V){V===void 0&&(V={});var U={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(V).filter(function(_){return!U[_]}).reduce(function(_,G){var ie;return L({},_,((ie={})[G]=V[G],ie))},{})}(u)},[u]),y=c.open,v=c.SnackbarProps,w=c.TransitionComponent,E=c.TransitionProps,b=c.transitionDuration,k=c.disableWindowBlurListener,D=c.content,T=we(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),Z=L({direction:(d=T.anchorOrigin,d.horizontal!=="center"?at[d.horizontal]:at[d.vertical]),timeout:b},E),A=D;typeof A=="function"&&(A=A(T.id,T.message));var B=["onEnter","onEntered","onExit","onExited"].reduce(function(V,U){var _;return L({},V,((_={})[U]=ye([t.snack[U],t[U]],T.id),_))},{});return a.createElement(yt,{in:e,onExited:B.onExited},a.createElement(wt,{open:y,id:T.id,disableWindowBlurListener:k,autoHideDuration:T.autoHideDuration,className:te(en.wrappedRoot,g.root,g[$t(T.anchorOrigin)]),SnackbarProps:v,onClose:o},a.createElement(w,Object.assign({},Z,{appear:!0,in:y,onExit:B.onExit,onExited:s,onEnter:B.onEnter,onEntered:ye([B.onEntered,function(){t.snack.requestClose&&o(null,"instructed",t.snack.id)}],T.id)}),A||a.createElement(f,Object.assign({},T)))))},xe={default:20},Oe={default:6,dense:2},ct="."+xt,De=ve({root:(be={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:pe(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},be[ct]={padding:Oe.default+"px 0px",transition:"padding 300ms ease 0ms"},be.maxWidth="calc(100% - "+2*xe.default+"px)",be[He]={width:"100%",maxWidth:"calc(100% - 32px)"},be),rootDense:(_e={},_e[ct]={padding:Oe.dense+"px 0px"},_e),top:{top:xe.default-Oe.default+"px",flexDirection:"column"},bottom:{bottom:xe.default-Oe.default+"px",flexDirection:"column-reverse"},left:(Me={left:xe.default+"px"},Me[We]={alignItems:"flex-start"},Me[He]={left:"16px"},Me),right:(je={right:xe.default+"px"},je[We]={alignItems:"flex-end"},je[He]={right:"16px"},je),center:(ze={left:"50%",transform:"translateX(-50%)"},ze[We]={alignItems:"center"},ze)}),nn=function(t){var i=t.classes,r=i===void 0?{}:i,e=t.anchorOrigin,n=t.dense,o=t.children,s=te(Ut,De[e.vertical],De[e.horizontal],De.root,r.containerRoot,r["containerAnchorOrigin"+Ge(e)],n&&De.rootDense);return a.createElement("div",{className:s},o)},on=a.memo(nn),ut=function(t){return!(typeof t=="string"||a.isValidElement(t))},rn=function(t){function i(r){var e;return(e=t.call(this,r)||this).enqueueSnackbar=function(n,o){if(o===void 0&&(o={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=ut(n)?n:o,d=ut(n)?n.message:n,c=s.key,u=s.preventDuplicate,p=we(s,["key","preventDuplicate"]),f=Se(c),g=f?c:new Date().getTime()+Math.random(),y=zt(p,e.props),v=L({id:g},p,{message:d,open:!0,entered:!1,requestClose:!1,persist:y("persist"),action:y("action"),content:y("content"),variant:y("variant"),anchorOrigin:y("anchorOrigin"),disableWindowBlurListener:y("disableWindowBlurListener"),autoHideDuration:y("autoHideDuration"),hideIconVariant:y("hideIconVariant"),TransitionComponent:y("TransitionComponent"),transitionDuration:y("transitionDuration"),TransitionProps:y("TransitionProps",!0),iconVariant:y("iconVariant",!0),style:y("style",!0),SnackbarProps:y("SnackbarProps",!0),className:te(e.props.className,p.className)});return v.persist&&(v.autoHideDuration=void 0),e.setState(function(w){if(u===void 0&&e.props.preventDuplicate||u){var E=function(D){return f?D.id===g:D.message===d},b=w.queue.findIndex(E)>-1,k=w.snacks.findIndex(E)>-1;if(b||k)return w}return e.handleDisplaySnack(L({},w,{queue:[].concat(w.queue,[v])}))}),g},e.handleDisplaySnack=function(n){return n.snacks.length>=e.maxSnack?e.handleDismissOldest(n):e.processQueue(n)},e.processQueue=function(n){var o=n.queue,s=n.snacks;return o.length>0?L({},n,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):n},e.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var o=!1,s=!1;n.snacks.reduce(function(c,u){return c+(u.open&&u.persist?1:0)},0)===e.maxSnack&&(s=!0);var d=n.snacks.map(function(c){return o||c.persist&&!s?L({},c):(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),e.props.onClose&&e.props.onClose(null,"maxsnack",c.id),L({},c,{open:!1})):L({},c,{requestClose:!0}))});return L({},n,{snacks:d})},e.handleEnteredSnack=function(n,o,s){if(!Se(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");e.setState(function(d){return{snacks:d.snacks.map(function(c){return c.id===s?L({},c,{entered:!0}):L({},c)})}})},e.handleCloseSnack=function(n,o,s){e.props.onClose&&e.props.onClose(n,o,s);var d=s===void 0;e.setState(function(c){var u=c.snacks,p=c.queue;return{snacks:u.map(function(f){return d||f.id===s?f.entered?L({},f,{open:!1}):L({},f,{requestClose:!0}):L({},f)}),queue:p.filter(function(f){return f.id!==s})}})},e.closeSnackbar=function(n){var o=e.state.snacks.find(function(s){return s.id===n});Se(n)&&o&&o.onClose&&o.onClose(null,"instructed",n),e.handleCloseSnack(null,"instructed",n)},e.handleExitedSnack=function(n,o){if(!Se(o))throw new Error("handleExitedSnack Cannot be called with undefined key");e.setState(function(s){var d=e.processQueue(L({},s,{snacks:s.snacks.filter(function(c){return c.id!==o})}));return d.queue.length===0?d:e.handleDismissOldest(d)})},e.enqueueSnackbar,e.closeSnackbar,e.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:e.enqueueSnackbar.bind(Je(e)),closeSnackbar:e.closeSnackbar.bind(Je(e))}},e}return mt(i,t),i.prototype.render=function(){var r=this,e=this.state.contextValue,n=this.props,o=n.domRoot,s=n.children,d=n.dense,c=d!==void 0&&d,u=n.Components,p=u===void 0?{}:u,f=n.classes,g=this.state.snacks.reduce(function(v,w){var E,b=Ge(w.anchorOrigin),k=v[b]||[];return L({},v,((E={})[b]=[].concat(k,[w]),E))},{}),y=Object.keys(g).map(function(v){var w=g[v],E=w[0];return a.createElement(on,{key:v,dense:c,anchorOrigin:E.anchorOrigin,classes:f},w.map(function(b){return a.createElement(tn,{key:b.id,snack:b,classes:f,Component:p[b.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:ye([r.handleExitedSnack,r.props.onExited],b.id),onEntered:ye([r.handleEnteredSnack,r.props.onEntered],b.id)})}))});return a.createElement(ht.Provider,{value:e},s,o?jt.createPortal(y,o):y)},ft(i,[{key:"maxSnack",get:function(){return this.props.maxSnack||oe.maxSnack}}]),i}(a.Component),Et=function(){return a.useContext(ht)};const J={card:"_card_r6a8n_13",actionRoot:"_actionRoot_r6a8n_21",icons:"_icons_r6a8n_31",expand:"_expand_r6a8n_43",expandOpen:"_expandOpen_r6a8n_57",stackTraceContainer:"_stackTraceContainer_r6a8n_65"},Ct=a.forwardRef((t,i)=>{const{id:r,message:e,iconVariant:n,error:o,hideIconVariant:s,...d}=t,{closeSnackbar:c}=Et(),u=l.useTheme(),[p,f]=a.useState(!1),g=a.useCallback(()=>{f(w=>!w)},[]),y=a.useCallback(()=>{c(r)},[r,c]),v=o?.message||String(e);return h.jsx(Ze,{ref:i,className:l.clsx(J.root,"error-snackbar"),children:h.jsxs(H.Card,{className:J.card,style:{backgroundColor:u.palette.error.dark,border:`1px solid ${u.palette.error.dark}`},children:[h.jsxs(H.CardActions,{className:J.actionRoot,children:[s?null:n?.error,h.jsx(H.Typography,{variant:"body2",component:"div",className:J.typography,style:{color:u.palette.text.primary},children:v}),h.jsx("div",{style:{flex:"1 1 auto"}}),h.jsxs("div",{className:J.icons,children:[o?h.jsx(H.IconButton,{"aria-label":"Show more",size:"small",className:l.clsx(J.expand,{[J.expandOpen]:p}),style:{color:u.palette.action.active},onClick:g,children:h.jsx(Ue.ExpandMore,{})}):null,h.jsx(H.IconButton,{size:"small",className:J.expand,style:{color:u.palette.action.active},onClick:y,children:h.jsx(Ue.Close,{fontSize:"small"})})]})]}),o?h.jsx(H.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:h.jsx("div",{className:J.stackTraceContainer,style:{backgroundColor:u.palette.error.light,borderTop:`1px solid ${u.palette.error.main}`},children:h.jsx(l.V7,{error:o,hideLineNumbers:!0})})}):null]})})});Ct.displayName="ToastError";const St=a.memo(a.forwardRef((t,i)=>{const{commands:r,commandHook:e,scope:n="workbook",disabled:o=!1,...s}=t,d=l.T(u=>{const p={variant:l.vo.Menuitem,parentFloat:u.floatReference,commandHook:e,scope:n,disabled:o},f=h.jsxs(h.Fragment,{children:[h.jsx(l.fr,{...p,command:r.getCommand("newWorkbook"),icon:l.y5(h.jsx(l.Si,{}))}),h.jsx(l.At,{orientation:"horizontal"}),h.jsx(l.fr,{...p,command:r.getCommand("openWorkbook"),icon:l.y5(h.jsx(l._i,{}))}),h.jsx(l.f4,{...p,commands:r,quickCommand:"saveWorkbook",icon:l.y5(h.jsx(l.Mi,{})),createPopupPanel:g=>{const y={...p,parentFloat:g.floatReference,scope:"saveWorkbook"},v=[];return l.WorkbookIO.getWriteFormats().forEach(w=>{if(w.isDefault)return;let E=null;w.key==="CSV"?E=l.y5(h.jsx(l.Vi$1,{})):w.key==="Excel"&&(E=l.y5(h.jsx(l.zi,{})));const b=r.getCommand(`saveWorkbookAs${w.key}`);b?v.push(a.createElement(l.fr,{...y,key:w.key,command:b,icon:E})):console.warn(`Unable to resolve command: 'saveWorkbookAs${w.key}'`)}),l.V5({...g,children:v,onClick:()=>{g.closeFloatAll()}})}})]});return l.V5({...u,children:f,onClick:g=>{g.isDefaultPrevented||u.closeFloatAll()}})},[o,r,e,n]),c="File";return h.jsx(l.f4,{commands:r,disabled:o,commandHook:e,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:u=>`calc(1.25rem + ${u.spacing(2)}px)`}},...s,createPopupPanel:d,icon:h.jsx(l.sl,{className:"label",icon:null,label:c})})}));St.displayName="StandaloneFileCommandButton";const an=h.jsx(l.e2,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:h.jsx(H.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:h.jsx(l.td,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=a.memo(a.forwardRef((t,i)=>{const{commands:r,workbook:e,logo:n=an,mainElement:o,showFileMenu:s=!0,showAppearanceMenu:d=!0,...c}=t,{reference:u}=l.v3(),[p,{width:f}]=l.useMeasure(),g=f<530,y=s?h.jsx(St,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,v=d?h.jsx(l.AppearanceCommandButton,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,w=a.useMemo(()=>({paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)}),[]),E=a.useRef(null);return h.jsx(H.Box,{ref:l.mergeRefs([E,p,i]),...c,children:l.renderWorkbookToolbars({commands:r,renderCompact:g,workbook:e,selectWrapper:b=>h.jsxs(H.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:k=>k.spacing(1),paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)},children:[h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:k=>k.spacing(.5)},children:[n,h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:k=>k.spacing(.25)},children:[y,b]})]}),h.jsx(H.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:o}),h.jsx(H.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:g&&!v?"0 0 auto":"1 1 100%"},children:v})]}),selectProps:w,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StandaloneWorkbookToolbar";const Lt=a.memo(a.forwardRef((t,i)=>{const{workbook:r,setWorkbook:e,refWorkbookTitle:n,titleWorkbook:o,setWorkbookTitle:s,titlePlaceHolder:d,children:c,undoManager:u,commands:p,importExportDisabled:f,themeModeOptions:g}=t,y=Et(),v=y?y.enqueueSnackbar:()=>{},w=y?y.closeSnackbar:()=>{},[E,b]=a.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),k=a.useCallback(()=>{b(O=>({...O,isMounted:!0}))},[]),D=a.useCallback(()=>{b(O=>({...O,isMounted:!1}))},[]),T=l.ol(),Z=l.il(),A=l.al(),B=a.useRef(new Set),V=a.useMemo(()=>{const O=(C,S)=>{if(S?.onceKey){if(B.current.has(S.onceKey))return;const M=new Set(B.current);M.add(S.onceKey),B.current=M}const W={variant:S?.type??l.ye.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:S?.preventDuplicate,persist:S?.persist??S?.type===l.ye.Error,action:M=>h.jsx(H.IconButton,{onClick:()=>w(M),children:h.jsx(Ue.CancelOutlined,{})})};S?.enqueueProps&&Object.assign(W,S.enqueueProps),C||console.log("message is 'null'",S),v(C??"Alert",W)};return{showMessage:O,showBusy:(C,S)=>{let W=null;const M=new Promise(N=>{W=N});return b(N=>{const P=new Map(N.starting);return P.set(M,W),{...N,label:C,starting:P}}),M},showWindow:(C,S,W)=>{const M={...S,onKeyDown:N=>{p?.dispatchToFocusedCommand(N),N.isDefaultPrevented()||N.isPropagationStopped()||S?.onKeyDown?.(N)}};return T(C,{sort:()=>Promise.resolve().then(()=>require("./BsyMeDVHMTZmlodS.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./BNBe23lUm7EBSqnU.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./bxpRBnb6jclokdqO.cjs")),comments:()=>Promise.resolve().then(()=>require("./XdAAu9D9a8Z9zzvb.cjs")),find:()=>Promise.resolve().then(()=>require("./D4V2WiKI9QvNHQuc.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./C2nKG9gonw9kjf2O.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./DpmSzzU4cyMtqbS3.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./BSpHOdxb1pUInikp.cjs"))}[C],M,W)},showOptions:Z,showInputOptions:A,showError:C=>{let S,W=l.ye.Error,M="Unknown Error";typeof C=="string"?M=C:C instanceof Error&&(S=C,C.message&&(M=C.message)),C instanceof l.zf&&(W=l.ye.Info),O(M,{type:W,enqueueProps:{error:S}})}}},[]),U=a.useCallback(()=>{},[]),_=(O=>{const{workbook:C,setWorkbook:S,importExportDisabled:W,workbookTitle:M="export",setWorkbookTitle:N,notifier:P,requestWorkbookTitle:X,themeModeOptions:R,undoManager:Ee,commands:$,onExecute:se}=O,Ce=l.T(R?.onForceModeChange,[R?.onForceModeChange]),Ie=l.T(R?.onForceLightGridChange,[R?.onForceLightGridChange]),le=l.T(R?.onForceLightImagesChange,[R?.onForceLightImagesChange]),Pe=l.T(async(j=null,K=null)=>{const m=[];let x,F=null,Q=null;if(typeof j=="string"?Q=j:F=j,x=F?j:await l.Yt$1.openFileDialog(Q??l.WorkbookIO.getAllReadFormatTypeAsString().join(",")),!x)return null;const ee={source:x,constructorOptions:K,onWarning:Ne=>{m.push(Ne)}},he=await l.WorkbookIO.read(ee,P);return m.length>0&&(P?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
10
+ 0 22,12A10,10 0 0,0 12,2Z`}))},oe={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:a.createElement(Ht,null),warning:a.createElement(Bt,null),error:a.createElement(Vt,null),info:a.createElement(_t,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:bt,transitionDuration:{enter:225,exit:195}},zt=function(t,i){return function(r,e){return e===void 0&&(e=!1),e?L({},oe[r],{},i[r],{},t[r]):r==="autoHideDuration"?(n=t.autoHideDuration,o=i.autoHideDuration,(s=function(d){return typeof d=="number"||d===null})(n)?n:s(o)?o:oe.autoHideDuration):r==="transitionDuration"?function(d,c){var u=function(p,f){return f.some(function(g){return typeof p===g})};return u(d,["string","number"])?d:u(d,["object"])?L({},oe.transitionDuration,{},u(c,["object"])&&c,{},d):u(c,["string","number"])?c:u(c,["object"])?L({},oe.transitionDuration,{},c):oe.transitionDuration}(t.transitionDuration,i.transitionDuration):t[r]||i[r]||oe[r];var n,o,s}};function ve(t){return Object.entries(t).reduce(function(i,r){var e,n=r[0],o=r[1];return L({},i,((e={})[n]=Ke(o),e))},{})}var Ut="notistack-SnackbarContainer",Kt="notistack-Snackbar",xt="notistack-CollapseWrapper",Qt="notistack-MuiContent",Gt=function(t){return"notistack-MuiContent-"+t},it=ve({root:{height:0},entered:{height:"auto"}}),Be="0px",yt=a.forwardRef(function(t,i){var r=t.children,e=t.in,n=t.onExited,o=a.useRef(null),s=a.useRef(null),d=Qe(i,s),c=function(){return o.current?o.current.clientHeight:0};return a.createElement($e,{in:e,unmountOnExit:!0,onEnter:function(u){u.style.height=Be},onEntered:function(u){u.style.height="auto"},onEntering:function(u){var p=c(),f=Re({timeout:175,mode:"enter"}),g=f.duration,y=f.easing;u.style.transitionDuration=typeof g=="string"?g:g+"ms",u.style.height=p+"px",u.style.transitionTimingFunction=y||""},onExit:function(u){u.style.height=c()+"px"},onExited:n,onExiting:function(u){gt(u);var p=Re({timeout:175,mode:"exit"}),f=p.duration,g=p.easing;u.style.transitionDuration=typeof f=="string"?f:f+"ms",u.style.height=Be,u.style.transitionTimingFunction=g||""},nodeRef:s,timeout:175},function(u,p){return a.createElement("div",Object.assign({ref:d,className:te(it.root,u==="entered"&&it.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:pe("height")},u==="entered"&&{overflow:"visible"},{},u==="exited"&&!e&&{visibility:"hidden"})},p),a.createElement("div",{ref:o,className:xt,style:{display:"flex",width:"100%"}},r))})});yt.displayName="Collapse";var at={right:"left",left:"right",bottom:"up",top:"down"},$t=function(t){return"anchorOrigin"+Ge(t)},Zt=function(){};function ye(t,i){return t.reduce(function(r,e){return e==null?r:function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var d=[].concat(o);i&&d.indexOf(i)===-1&&d.push(i),r.apply(this,d),e.apply(this,d)}},Zt)}var Xt=typeof window<"u"?a.useLayoutEffect:a.useEffect;function st(t){var i=a.useRef(t);return Xt(function(){i.current=t}),a.useCallback(function(){return i.current.apply(void 0,arguments)},[])}var Ve,wt=a.forwardRef(function(t,i){var r=t.children,e=t.className,n=t.autoHideDuration,o=t.disableWindowBlurListener,s=o!==void 0&&o,d=t.onClose,c=t.id,u=t.open,p=t.SnackbarProps,f=p===void 0?{}:p,g=a.useRef(),y=st(function(){d&&d.apply(void 0,arguments)}),v=st(function(b){d&&b!=null&&(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){y(null,"timeout",c)},b))});a.useEffect(function(){return u&&v(n),function(){g.current&&clearTimeout(g.current)}},[u,n,v]);var w=function(){g.current&&clearTimeout(g.current)},E=a.useCallback(function(){n!=null&&v(.5*n)},[n,v]);return a.useEffect(function(){if(!s&&u)return window.addEventListener("focus",E),window.addEventListener("blur",w),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",w)}},[s,E,u]),a.createElement("div",Object.assign({ref:i},f,{className:te(Kt,e),onMouseEnter:function(b){f.onMouseEnter&&f.onMouseEnter(b),w()},onMouseLeave:function(b){f.onMouseLeave&&f.onMouseLeave(b),E()}}),r)});wt.displayName="Snackbar";var Yt=ve({root:(Ve={display:"flex",flexWrap:"wrap",flexGrow:1},Ve[We]={flexGrow:"initial",minWidth:"288px"},Ve)}),Ze=a.forwardRef(function(t,i){var r=t.className,e=we(t,["className"]);return a.createElement("div",Object.assign({ref:i,className:te(Yt.root,r)},e))});Ze.displayName="SnackbarContent";var ke=ve({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),lt="notistack-snackbar",vt=a.forwardRef(function(t,i){var r=t.id,e=t.message,n=t.action,o=t.iconVariant,s=t.variant,d=t.hideIconVariant,c=t.style,u=t.className,p=o[s],f=n;return typeof f=="function"&&(f=f(r)),a.createElement(Ze,{ref:i,role:"alert","aria-describedby":lt,style:c,className:te(Qt,Gt(s),ke.root,ke[s],u,!d&&p&&ke.lessPadding)},a.createElement("div",{id:lt,className:ke.message},d?null:p,e),f&&a.createElement("div",{className:ke.action},f))});vt.displayName="MaterialDesignContent";var be,_e,Me,je,ze,Jt=a.memo(vt),en=ve({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),tn=function(t){var i=a.useRef(),r=a.useState(!0),e=r[0],n=r[1],o=ye([t.snack.onClose,t.onClose]),s=a.useCallback(function(){i.current=setTimeout(function(){n(function(V){return!V})},125)},[]);a.useEffect(function(){return function(){i.current&&clearTimeout(i.current)}},[]);var d,c=t.snack,u=t.classes,p=t.Component,f=p===void 0?Jt:p,g=a.useMemo(function(){return function(V){V===void 0&&(V={});var U={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(V).filter(function(_){return!U[_]}).reduce(function(_,G){var ie;return L({},_,((ie={})[G]=V[G],ie))},{})}(u)},[u]),y=c.open,v=c.SnackbarProps,w=c.TransitionComponent,E=c.TransitionProps,b=c.transitionDuration,k=c.disableWindowBlurListener,D=c.content,T=we(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),Z=L({direction:(d=T.anchorOrigin,d.horizontal!=="center"?at[d.horizontal]:at[d.vertical]),timeout:b},E),A=D;typeof A=="function"&&(A=A(T.id,T.message));var B=["onEnter","onEntered","onExit","onExited"].reduce(function(V,U){var _;return L({},V,((_={})[U]=ye([t.snack[U],t[U]],T.id),_))},{});return a.createElement(yt,{in:e,onExited:B.onExited},a.createElement(wt,{open:y,id:T.id,disableWindowBlurListener:k,autoHideDuration:T.autoHideDuration,className:te(en.wrappedRoot,g.root,g[$t(T.anchorOrigin)]),SnackbarProps:v,onClose:o},a.createElement(w,Object.assign({},Z,{appear:!0,in:y,onExit:B.onExit,onExited:s,onEnter:B.onEnter,onEntered:ye([B.onEntered,function(){t.snack.requestClose&&o(null,"instructed",t.snack.id)}],T.id)}),A||a.createElement(f,Object.assign({},T)))))},xe={default:20},Oe={default:6,dense:2},ct="."+xt,De=ve({root:(be={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:pe(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},be[ct]={padding:Oe.default+"px 0px",transition:"padding 300ms ease 0ms"},be.maxWidth="calc(100% - "+2*xe.default+"px)",be[He]={width:"100%",maxWidth:"calc(100% - 32px)"},be),rootDense:(_e={},_e[ct]={padding:Oe.dense+"px 0px"},_e),top:{top:xe.default-Oe.default+"px",flexDirection:"column"},bottom:{bottom:xe.default-Oe.default+"px",flexDirection:"column-reverse"},left:(Me={left:xe.default+"px"},Me[We]={alignItems:"flex-start"},Me[He]={left:"16px"},Me),right:(je={right:xe.default+"px"},je[We]={alignItems:"flex-end"},je[He]={right:"16px"},je),center:(ze={left:"50%",transform:"translateX(-50%)"},ze[We]={alignItems:"center"},ze)}),nn=function(t){var i=t.classes,r=i===void 0?{}:i,e=t.anchorOrigin,n=t.dense,o=t.children,s=te(Ut,De[e.vertical],De[e.horizontal],De.root,r.containerRoot,r["containerAnchorOrigin"+Ge(e)],n&&De.rootDense);return a.createElement("div",{className:s},o)},on=a.memo(nn),ut=function(t){return!(typeof t=="string"||a.isValidElement(t))},rn=function(t){function i(r){var e;return(e=t.call(this,r)||this).enqueueSnackbar=function(n,o){if(o===void 0&&(o={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=ut(n)?n:o,d=ut(n)?n.message:n,c=s.key,u=s.preventDuplicate,p=we(s,["key","preventDuplicate"]),f=Se(c),g=f?c:new Date().getTime()+Math.random(),y=zt(p,e.props),v=L({id:g},p,{message:d,open:!0,entered:!1,requestClose:!1,persist:y("persist"),action:y("action"),content:y("content"),variant:y("variant"),anchorOrigin:y("anchorOrigin"),disableWindowBlurListener:y("disableWindowBlurListener"),autoHideDuration:y("autoHideDuration"),hideIconVariant:y("hideIconVariant"),TransitionComponent:y("TransitionComponent"),transitionDuration:y("transitionDuration"),TransitionProps:y("TransitionProps",!0),iconVariant:y("iconVariant",!0),style:y("style",!0),SnackbarProps:y("SnackbarProps",!0),className:te(e.props.className,p.className)});return v.persist&&(v.autoHideDuration=void 0),e.setState(function(w){if(u===void 0&&e.props.preventDuplicate||u){var E=function(D){return f?D.id===g:D.message===d},b=w.queue.findIndex(E)>-1,k=w.snacks.findIndex(E)>-1;if(b||k)return w}return e.handleDisplaySnack(L({},w,{queue:[].concat(w.queue,[v])}))}),g},e.handleDisplaySnack=function(n){return n.snacks.length>=e.maxSnack?e.handleDismissOldest(n):e.processQueue(n)},e.processQueue=function(n){var o=n.queue,s=n.snacks;return o.length>0?L({},n,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):n},e.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var o=!1,s=!1;n.snacks.reduce(function(c,u){return c+(u.open&&u.persist?1:0)},0)===e.maxSnack&&(s=!0);var d=n.snacks.map(function(c){return o||c.persist&&!s?L({},c):(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),e.props.onClose&&e.props.onClose(null,"maxsnack",c.id),L({},c,{open:!1})):L({},c,{requestClose:!0}))});return L({},n,{snacks:d})},e.handleEnteredSnack=function(n,o,s){if(!Se(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");e.setState(function(d){return{snacks:d.snacks.map(function(c){return c.id===s?L({},c,{entered:!0}):L({},c)})}})},e.handleCloseSnack=function(n,o,s){e.props.onClose&&e.props.onClose(n,o,s);var d=s===void 0;e.setState(function(c){var u=c.snacks,p=c.queue;return{snacks:u.map(function(f){return d||f.id===s?f.entered?L({},f,{open:!1}):L({},f,{requestClose:!0}):L({},f)}),queue:p.filter(function(f){return f.id!==s})}})},e.closeSnackbar=function(n){var o=e.state.snacks.find(function(s){return s.id===n});Se(n)&&o&&o.onClose&&o.onClose(null,"instructed",n),e.handleCloseSnack(null,"instructed",n)},e.handleExitedSnack=function(n,o){if(!Se(o))throw new Error("handleExitedSnack Cannot be called with undefined key");e.setState(function(s){var d=e.processQueue(L({},s,{snacks:s.snacks.filter(function(c){return c.id!==o})}));return d.queue.length===0?d:e.handleDismissOldest(d)})},e.enqueueSnackbar,e.closeSnackbar,e.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:e.enqueueSnackbar.bind(Je(e)),closeSnackbar:e.closeSnackbar.bind(Je(e))}},e}return mt(i,t),i.prototype.render=function(){var r=this,e=this.state.contextValue,n=this.props,o=n.domRoot,s=n.children,d=n.dense,c=d!==void 0&&d,u=n.Components,p=u===void 0?{}:u,f=n.classes,g=this.state.snacks.reduce(function(v,w){var E,b=Ge(w.anchorOrigin),k=v[b]||[];return L({},v,((E={})[b]=[].concat(k,[w]),E))},{}),y=Object.keys(g).map(function(v){var w=g[v],E=w[0];return a.createElement(on,{key:v,dense:c,anchorOrigin:E.anchorOrigin,classes:f},w.map(function(b){return a.createElement(tn,{key:b.id,snack:b,classes:f,Component:p[b.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:ye([r.handleExitedSnack,r.props.onExited],b.id),onEntered:ye([r.handleEnteredSnack,r.props.onEntered],b.id)})}))});return a.createElement(ht.Provider,{value:e},s,o?jt.createPortal(y,o):y)},ft(i,[{key:"maxSnack",get:function(){return this.props.maxSnack||oe.maxSnack}}]),i}(a.Component),Et=function(){return a.useContext(ht)};const J={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},Ct=a.forwardRef((t,i)=>{const{id:r,message:e,iconVariant:n,error:o,hideIconVariant:s,...d}=t,{closeSnackbar:c}=Et(),u=l.useTheme(),[p,f]=a.useState(!1),g=a.useCallback(()=>{f(w=>!w)},[]),y=a.useCallback(()=>{c(r)},[r,c]),v=o?.message||String(e);return h.jsx(Ze,{ref:i,className:l.clsx(J.root,"error-snackbar"),children:h.jsxs(H.Card,{className:J.card,style:{backgroundColor:u.palette.error.dark,border:`1px solid ${u.palette.error.dark}`},children:[h.jsxs(H.CardActions,{className:J.actionRoot,children:[s?null:n?.error,h.jsx(H.Typography,{variant:"body2",component:"div",className:J.typography,style:{color:u.palette.text.primary},children:v}),h.jsx("div",{style:{flex:"1 1 auto"}}),h.jsxs("div",{className:J.icons,children:[o?h.jsx(H.IconButton,{"aria-label":"Show more",size:"small",className:l.clsx(J.expand,{[J.expandOpen]:p}),style:{color:u.palette.action.active},onClick:g,children:h.jsx(Ue.ExpandMore,{})}):null,h.jsx(H.IconButton,{size:"small",className:J.expand,style:{color:u.palette.action.active},onClick:y,children:h.jsx(Ue.Close,{fontSize:"small"})})]})]}),o?h.jsx(H.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:h.jsx("div",{className:J.stackTraceContainer,style:{backgroundColor:u.palette.error.light,borderTop:`1px solid ${u.palette.error.main}`},children:h.jsx(l.V7,{error:o,hideLineNumbers:!0})})}):null]})})});Ct.displayName="ToastError";const St=a.memo(a.forwardRef((t,i)=>{const{commands:r,commandHook:e,scope:n="workbook",disabled:o=!1,...s}=t,d=l.T(u=>{const p={variant:l.vo.Menuitem,parentFloat:u.floatReference,commandHook:e,scope:n,disabled:o},f=h.jsxs(h.Fragment,{children:[h.jsx(l.fr,{...p,command:r.getCommand("newWorkbook"),icon:l.y5(h.jsx(l.Si,{}))}),h.jsx(l.At,{orientation:"horizontal"}),h.jsx(l.fr,{...p,command:r.getCommand("openWorkbook"),icon:l.y5(h.jsx(l._i,{}))}),h.jsx(l.f4,{...p,commands:r,quickCommand:"saveWorkbook",icon:l.y5(h.jsx(l.Mi,{})),createPopupPanel:g=>{const y={...p,parentFloat:g.floatReference,scope:"saveWorkbook"},v=[];return l.WorkbookIO.getWriteFormats().forEach(w=>{if(w.isDefault)return;let E=null;w.key==="CSV"?E=l.y5(h.jsx(l.Vi$1,{})):w.key==="Excel"&&(E=l.y5(h.jsx(l.zi,{})));const b=r.getCommand(`saveWorkbookAs${w.key}`);b?v.push(a.createElement(l.fr,{...y,key:w.key,command:b,icon:E})):console.warn(`Unable to resolve command: 'saveWorkbookAs${w.key}'`)}),l.V5({...g,children:v,onClick:()=>{g.closeFloatAll()}})}})]});return l.V5({...u,children:f,onClick:g=>{g.isDefaultPrevented||u.closeFloatAll()}})},[o,r,e,n]),c="File";return h.jsx(l.f4,{commands:r,disabled:o,commandHook:e,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:u=>`calc(1.25rem + ${u.spacing(2)}px)`}},...s,createPopupPanel:d,icon:h.jsx(l.sl,{className:"label",icon:null,label:c})})}));St.displayName="StandaloneFileCommandButton";const an=h.jsx(l.e2,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:h.jsx(H.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:h.jsx(l.td,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=a.memo(a.forwardRef((t,i)=>{const{commands:r,workbook:e,logo:n=an,mainElement:o,showFileMenu:s=!0,showAppearanceMenu:d=!0,...c}=t,{reference:u}=l.v3(),[p,{width:f}]=l.useMeasure(),g=f<530,y=s?h.jsx(St,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,v=d?h.jsx(l.AppearanceCommandButton,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,w=a.useMemo(()=>({paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)}),[]),E=a.useRef(null);return h.jsx(H.Box,{ref:l.mergeRefs([E,p,i]),...c,children:l.renderWorkbookToolbars({commands:r,renderCompact:g,workbook:e,selectWrapper:b=>h.jsxs(H.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:k=>k.spacing(1),paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)},children:[h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:k=>k.spacing(.5)},children:[n,h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:k=>k.spacing(.25)},children:[y,b]})]}),h.jsx(H.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:o}),h.jsx(H.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:g&&!v?"0 0 auto":"1 1 100%"},children:v})]}),selectProps:w,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StandaloneWorkbookToolbar";const Lt=a.memo(a.forwardRef((t,i)=>{const{workbook:r,setWorkbook:e,refWorkbookTitle:n,titleWorkbook:o,setWorkbookTitle:s,titlePlaceHolder:d,children:c,undoManager:u,commands:p,importExportDisabled:f,themeModeOptions:g}=t,y=Et(),v=y?y.enqueueSnackbar:()=>{},w=y?y.closeSnackbar:()=>{},[E,b]=a.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),k=a.useCallback(()=>{b(O=>({...O,isMounted:!0}))},[]),D=a.useCallback(()=>{b(O=>({...O,isMounted:!1}))},[]),T=l.ol(),Z=l.il(),A=l.al(),B=a.useRef(new Set),V=a.useMemo(()=>{const O=(C,S)=>{if(S?.onceKey){if(B.current.has(S.onceKey))return;const M=new Set(B.current);M.add(S.onceKey),B.current=M}const W={variant:S?.type??l.ye.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:S?.preventDuplicate,persist:S?.persist??S?.type===l.ye.Error,action:M=>h.jsx(H.IconButton,{onClick:()=>w(M),children:h.jsx(Ue.CancelOutlined,{})})};S?.enqueueProps&&Object.assign(W,S.enqueueProps),C||console.log("message is 'null'",S),v(C??"Alert",W)};return{showMessage:O,showBusy:(C,S)=>{let W=null;const M=new Promise(N=>{W=N});return b(N=>{const P=new Map(N.starting);return P.set(M,W),{...N,label:C,starting:P}}),M},showWindow:(C,S,W)=>{const M={...S,onKeyDown:N=>{p?.dispatchToFocusedCommand(N),N.isDefaultPrevented()||N.isPropagationStopped()||S?.onKeyDown?.(N)}};return T(C,{sort:()=>Promise.resolve().then(()=>require("./vavqGfGZgq5i7n4B.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./BQLQEJgX-sM2Sdn6.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./CIZNaSq0_vaZNZu9.cjs")),comments:()=>Promise.resolve().then(()=>require("./tXdOaeSBJX_Dwtfs.cjs")),find:()=>Promise.resolve().then(()=>require("./CxgPiyb5-hVRdhnd.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./CEyf06HL4OpZLe_9.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./Co4jRh5Lu0sSmXGC.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./DYpWMegNKhcIz5Xx.cjs"))}[C],M,W)},showOptions:Z,showInputOptions:A,showError:C=>{let S,W=l.ye.Error,M="Unknown Error";typeof C=="string"?M=C:C instanceof Error&&(S=C,C.message&&(M=C.message)),C instanceof l.zf&&(W=l.ye.Info),O(M,{type:W,enqueueProps:{error:S}})}}},[]),U=a.useCallback(()=>{},[]),_=(O=>{const{workbook:C,setWorkbook:S,importExportDisabled:W,workbookTitle:M="export",setWorkbookTitle:N,notifier:P,requestWorkbookTitle:X,themeModeOptions:R,undoManager:Ee,commands:$,onExecute:se}=O,Ce=l.T(R?.onForceModeChange,[R?.onForceModeChange]),Ie=l.T(R?.onForceLightGridChange,[R?.onForceLightGridChange]),le=l.T(R?.onForceLightImagesChange,[R?.onForceLightImagesChange]),Pe=l.T(async(j=null,K=null)=>{const m=[];let x,F=null,Q=null;if(typeof j=="string"?Q=j:F=j,x=F?j:await l.Yt$1.openFileDialog(Q??l.WorkbookIO.getAllReadFormatTypeAsString().join(",")),!x)return null;const ee={source:x,constructorOptions:K,onWarning:Ne=>{m.push(Ne)}},he=await l.WorkbookIO.read(ee,P);return m.length>0&&(P?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
11
11
  `+m.join(`
12
- `))),he},[se,P,C]),fe=l.T(async(j,K,m)=>{if(!K&&X){const x=await X("Enter Workbook name to "+(m.isDefault?"Save.":`Export as ${m.description}.`));return x!==null&&l.WorkbookIO.writeFile(x,j,{formatType:m.key})}return l.WorkbookIO.writeFile(K,j,{formatType:m.key})},[P,C,X]),q=a.useCallback(()=>({contains:j=>!0,focus(){}}),[]),ne=a.useMemo(()=>{const j=[];W||(l.WorkbookIO.getWriteFormats().forEach(m=>{const x=m.isDefault,F={label:x?"Save Workbook":`Save Workbook as ${m.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${m.description}`},tags:m.tags,description:`Save the workbook to the desktop${x?"":` as ${m.description}`}.`};x&&(F.shortcut={key:"S",modifiers:[l.Z.Ctrl]},j.push(new l.Qt("saveWorkbookAs",q,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[l.Z.Shift,l.Z.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{fe(C,null,m).catch(ee=>{P?.showError?.(ee)})})));const Q=x?"saveWorkbook":`saveWorkbookAs${m.key}`;j.push(new l.Qt(Q,q,F,ee=>{fe(C,ee??M,m).catch(he=>{P?.showError?.(he)})}))}),j.push(new l.Qt("openWorkbook",q,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[l.Z.Ctrl]}},async(m=null)=>{const x={date1904:C.isDate1904(),...C.options};try{const F=await Pe(m,x);if(!F)return;const Q=F.title,ee=F.workbook,he=ee.getSelectedSheet();if(F.formatType.mimeType==="text/csv"){const Ne=C.findValidSheetName(Q);await C.doBatch(async()=>{const Xe=he.getUsedRange();if(!Xe)return void P?.showMessage("The file appears to be blank.");await C.getSheets().add({name:Ne,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Xe)},`Import CSV '${Q}'`)}else C?.close(),N?.(Q),S(ee)}catch(F){P?.showError?.(F)}})),j.push(new l.Qt("openWorkbookFromUrl",q,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(m){if(!m){const x=await P?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(x.option!=="Open")return;m=x.input}m&&console.log("openWorkbookFromUrl",m)})));let K=[];return R&&(K=[new l.Qt("themeMode",q,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new l.Qt("defaultThemeMode",q,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new l.Qt("forceLightGrid",q,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new l.Qt("forceLightImages",q,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...j,...K,new l.Xt("help",q,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new l.Xt("showKeyboardShortcuts",q,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[l.Z.Ctrl]}},()=>{}),new l.Qt("gotoUrlGithub",q,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new l.Qt("gotoUrlDiscord",q,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new l.Qt("gotoUrlDocumentation",q,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new l.Qt("gotoUrlIssue",q,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[C,M,P,W,R,$,Ee]),z=a.useMemo(()=>{let j=null;return j=$?$.createChildGroup(q,"standaloneWorkbook",!1):new l.He(q,"standaloneWorkbook"),j.addCommands(ne,!0),j},[$,ne]);l.So({manager:Ee,commands:z,notifier:P});const{themeMode:me}=l.useResolvedThemeMode();a.useEffect(()=>{if(!R||!z)return;const j=R.forceMode==="dark"||!R.forceMode&&me==="dark";z.getCommand("themeMode").update({state:R.forceMode??null,label:j?"Dark Mode":"Light Mode",scopedLabels:{appearance:j?"Dark Mode":"Light Mode"}}).updateCallback(()=>{Ce(j?l.ThemeMode.Light:l.ThemeMode.Dark)}),z.getCommand("defaultThemeMode").update({state:!R.forceMode}).updateCallback(()=>{Ce(null)}),z.getCommand("forceLightGrid").update({state:R.forceLightGrid}).updateCallback(()=>{Ie(!R.forceLightGrid)}),z.getCommand("forceLightImages").update({state:R.forceLightImages}).updateCallback(()=>{le(!R.forceLightImages)})},[me,R,ne]);const{showModal:qe}=l.L5();return a.useEffect(()=>{const j=()=>new Promise((K,m)=>{const x=a.lazy(()=>Promise.resolve().then(()=>require("./DzKmqf9oDbFOeDxb.cjs"))),F=qe(x,{title:"Shortcut Keys Reference",commands:z,onDone:()=>{F.hide()},TransitionProps:{onExited:()=>{K(!0)}}})});z.getCommand("showKeyboardShortcuts").updateCallback(()=>j()),z.getCommand("help").updateCallback(()=>j())},[ne,z]),z})({workbook:r,setWorkbook:e,importExportDisabled:f,workbookTitle:o,setWorkbookTitle:s,commands:p,requestWorkbookTitle:O=>new Promise(C=>{n.current?n.current.requestWorkbookTitle((S,W)=>{C(S)},{selectAll:!0,requestReason:O}):C(d)}),themeModeOptions:g,undoManager:u,notifier:V,onExecute:U});a.useEffect(()=>{E.starting.size<=0||!E.isMounted||b(O=>{const C=new Map(O.running);return O.starting.forEach((S,W)=>{const M=()=>{b(N=>{const P=new Map(N.running);return P.delete(W),{...N,running:P}})};C.set(W,M),S(M)}),{...O,starting:new Map,running:C}})},[E]);const[G,ie]=a.useState(null);a.useEffect(()=>{E.starting.size!==0||E.running.size!==0?ie(h.jsx(l.It,{icon:h.jsx(l.qa,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:E.label,onMount:k,onUnmount:D,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):ie(null)},[E.starting,E.running]);const I=a.useMemo(()=>h.jsx(l.HelpCommandButton,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),ae={notifier:V,commands:_};return r&&(ae.statusBarProps={childrenEnd:I}),h.jsxs(h.Fragment,{children:[G,c?a.cloneElement(c,ae):null]})}));Lt.displayName="SnackbarAndCommandsWrapper";const Mt=a.memo(a.forwardRef((t,i)=>{const{className:r,sx:e,style:n,onElementLoad:o,onError:s,undoManager:d,errorPanel:c=l.Bt,onKeyDown:u,workbook:p,createWorkbookOptions:f,onWorkbookChange:g,logo:y,importExportDisabled:v=!1,themeModeOptions:w,autoFocus:E=!1,commands:b,title:k,onTitleChange:D,titleProps:T,...Z}=t,A=a.useRef(null),B=l.T(g,[g]),V=l.T(D??T?.onTitleChange,[D??T?.onTitleChange]),U=T?.placeHolder??"Untitled",_=w?.forceMode,{themeMode:G,source:ie}=l.useResolvedThemeMode({mode:_}),I=a.useMemo(()=>({...w,light:l.Qa(!1,l.F.deepMerge(w?.theme??{},w?.light??{})),dark:l.Qa(!0,l.F.deepMerge(w?.theme??{},w?.dark??{}))}),[w]),ae=G===l.ThemeMode.Dark,[O,C]=a.useState(null);a.useEffect(()=>{C(d??new l.jf)},[d]);const[S,W]=a.useState(null),[M,N]=a.useState(null),P=l.Td();a.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!l.F.isPromiseLike(p)){const m={theme:P.getDefaultTheme(),...f};N(new l.Ky(m))}else N(p)},[p]),a.useLayoutEffect(()=>{if(M){if(M instanceof l.Ky)return W({workbook:M}),void(p!==M&&B?.(M));(async()=>{try{let m,x=await Promise.resolve(M);x&&x.source&&(x=await l.WorkbookIO.read(x)),x.workbook?(se(x.title),m=x.workbook):m=x,B?.(m),W({workbook:m})}catch(m){B?.(null),W({error:m})}})()}},[M]);const[X,R]=a.useState(null);a.useEffect(()=>{if(!O||!S)return;O.clear();const m=S?.workbook?.getTransactions();if(m)return m.addListener({onCommitEnd:x=>{x.getDescription()?O.addUndoOperation({description:x.getDescription(),undo:()=>(m.revert(x.getId()),X.source?.focus(),()=>{m.restore(x.getId()),X.source?.focus()})}):console.warn("commit has no description",x)}})},[O,S,X]);const Ee=l.T(m=>{m?O.setRepeatableOperation({description:m.label(),repeat:async()=>m.execute()}):O.setRepeatableOperation(null)},[O]),[$,se]=a.useState(k??T?.title??"");a.useEffect(()=>{se(k??T?.title??"")},[k??T?.title]),a.useEffect(()=>{V?.($)},[$]);const[Ce,Ie]=a.useState(null),le=a.useMemo(()=>{const m=()=>({contains:x=>!0,focus(){}});return b?b.createChildGroup(m,"application",!1):new l.He(m,"application")},[b]),Pe=l.T(m=>{Ie(m.source.getViewportElement()),R(m),le.activate("sheet"),o?.(m)},[le]);a.useEffect(()=>{X&&E&&X.source?.focus(typeof E=="object"?E:void 0)},[X]);const fe=a.useRef(null),q=a.useCallback(m=>{let x=null;return T?.hidden||(x=h.jsx(l.WorkbookTitle,{...T,style:{maxWidth:"100%",...T?.style},workbook:A.current,ref:fe,title:$,placeHolder:U,onTitleChange:F=>{se(F)}})),h.jsx(Tt,{...m,logo:y,mainElement:x,showFileMenu:!v,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[y,$,T,I,v,le]);a.useEffect(()=>{const m=x=>x.preventDefault();return A.current?.addEventListener("wheel",m,{passive:!1}),()=>{A.current?.removeEventListener("wheel",m)}},[]);const ne=a.useMemo(()=>h.jsx(l.It,{transparentBackground:!0,sx:e,style:n}),[e,n]),z=a.useCallback(({error:m})=>(s?.(m),h.jsx(c,{sx:e,style:n,error:m??"Unable to display empty workbook."})),[e,n,s]),me=a.useMemo(()=>({...e,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:m=>m.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[e]),qe=l.mergeRefs([A,i]),j=a.useMemo(()=>{if(!S)return ne;if(S.error||!S.workbook)return z({error:S.error});let m=null,x=null,F=!1;return I&&(m=ae?I.dark:I.light,x=ae&&!I.forceLightGrid?I.dark:I.light,F=I.forceLightImages),h.jsx(l.WorkbookElement,{sx:me,style:n,tabIndex:0,autoFocus:!0,workbook:S.workbook,ref:qe,renderToolbar:q,onElementLoad:Pe,onRepeatCommandChange:Ee,onKeyDown:Q=>{u?.(Q)},gridTheme:x,headersTheme:m,forceLightImages:F,className:l.clsx(r,"sheetxl-workbook"),onContextMenu:Q=>Q.preventDefault(),...Z},"WorkbookElement")},[S,$,O,ne,I,Z,q,me]);let K=h.jsx(Dt,{fallbackRender:z,children:h.jsx(rn,{maxSnack:3,domRoot:Ce,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(m,x,F)=>{A.current?.focus()},Components:{error:Ct},iconVariant:{success:h.jsx(H.SvgIcon,{style:{marginRight:"8px"},children:h.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:h.jsx(l.oa,{style:{marginRight:"8px"}})},children:h.jsx(l.nl,{children:h.jsx(Lt,{workbook:S?.workbook,setWorkbook:N,importExportDisabled:v,titlePlaceHolder:U,titleWorkbook:$,setWorkbookTitle:se,refWorkbookTitle:fe,commands:le,undoManager:O,themeModeOptions:I,children:j})})})});return I&&(K=h.jsxs(l.ThemeProvider,{theme:ae?I.dark:I.light,children:[I.cssBaseline?h.jsx(H.CssBaseline,{}):null,K]})),K}));Mt.displayName="EagerStandaloneWorkbook";const sn=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));exports.EagerStandaloneWorkbook=sn,exports.clsx=te;
12
+ `))),he},[se,P,C]),fe=l.T(async(j,K,m)=>{if(!K&&X){const x=await X("Enter Workbook name to "+(m.isDefault?"Save.":`Export as ${m.description}.`));return x!==null&&l.WorkbookIO.writeFile(x,j,{formatType:m.key})}return l.WorkbookIO.writeFile(K,j,{formatType:m.key})},[P,C,X]),q=a.useCallback(()=>({contains:j=>!0,focus(){}}),[]),ne=a.useMemo(()=>{const j=[];W||(l.WorkbookIO.getWriteFormats().forEach(m=>{const x=m.isDefault,F={label:x?"Save Workbook":`Save Workbook as ${m.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${m.description}`},tags:m.tags,description:`Save the workbook to the desktop${x?"":` as ${m.description}`}.`};x&&(F.shortcut={key:"S",modifiers:[l.Z.Ctrl]},j.push(new l.Qt("saveWorkbookAs",q,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[l.Z.Shift,l.Z.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{fe(C,null,m).catch(ee=>{P?.showError?.(ee)})})));const Q=x?"saveWorkbook":`saveWorkbookAs${m.key}`;j.push(new l.Qt(Q,q,F,ee=>{fe(C,ee??M,m).catch(he=>{P?.showError?.(he)})}))}),j.push(new l.Qt("openWorkbook",q,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[l.Z.Ctrl]}},async(m=null)=>{const x={date1904:C.isDate1904(),...C.options};try{const F=await Pe(m,x);if(!F)return;const Q=F.title,ee=F.workbook,he=ee.getSelectedSheet();if(F.formatType.mimeType==="text/csv"){const Ne=C.findValidSheetName(Q);await C.doBatch(async()=>{const Xe=he.getUsedRange();if(!Xe)return void P?.showMessage("The file appears to be blank.");await C.getSheets().add({name:Ne,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Xe)},`Import CSV '${Q}'`)}else C?.close(),N?.(Q),S(ee)}catch(F){P?.showError?.(F)}})),j.push(new l.Qt("openWorkbookFromUrl",q,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(m){if(!m){const x=await P?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(x.option!=="Open")return;m=x.input}m&&console.log("openWorkbookFromUrl",m)})));let K=[];return R&&(K=[new l.Qt("themeMode",q,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new l.Qt("defaultThemeMode",q,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new l.Qt("forceLightGrid",q,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new l.Qt("forceLightImages",q,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...j,...K,new l.jt("help",q,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new l.jt("showKeyboardShortcuts",q,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[l.Z.Ctrl]}},()=>{}),new l.Qt("gotoUrlGithub",q,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new l.Qt("gotoUrlDiscord",q,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new l.Qt("gotoUrlDocumentation",q,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new l.Qt("gotoUrlIssue",q,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[C,M,P,W,R,$,Ee]),z=a.useMemo(()=>{let j=null;return j=$?$.createChildGroup(q,"standaloneWorkbook",!1):new l.He(q,"standaloneWorkbook"),j.addCommands(ne,!0),j},[$,ne]);l.So({manager:Ee,commands:z,notifier:P});const{themeMode:me}=l.useResolvedThemeMode();a.useEffect(()=>{if(!R||!z)return;const j=R.forceMode==="dark"||!R.forceMode&&me==="dark";z.getCommand("themeMode").update({state:R.forceMode??null,label:j?"Dark Mode":"Light Mode",scopedLabels:{appearance:j?"Dark Mode":"Light Mode"}}).updateCallback(()=>{Ce(j?l.ThemeMode.Light:l.ThemeMode.Dark)}),z.getCommand("defaultThemeMode").update({state:!R.forceMode}).updateCallback(()=>{Ce(null)}),z.getCommand("forceLightGrid").update({state:R.forceLightGrid}).updateCallback(()=>{Ie(!R.forceLightGrid)}),z.getCommand("forceLightImages").update({state:R.forceLightImages}).updateCallback(()=>{le(!R.forceLightImages)})},[me,R,ne]);const{showModal:qe}=l.L5();return a.useEffect(()=>{const j=()=>new Promise((K,m)=>{const x=a.lazy(()=>Promise.resolve().then(()=>require("./CE5a4FdaHLhTxjMI.cjs"))),F=qe(x,{title:"Shortcut Keys Reference",commands:z,onDone:()=>{F.hide()},TransitionProps:{onExited:()=>{K(!0)}}})});z.getCommand("showKeyboardShortcuts").updateCallback(()=>j()),z.getCommand("help").updateCallback(()=>j())},[ne,z]),z})({workbook:r,setWorkbook:e,importExportDisabled:f,workbookTitle:o,setWorkbookTitle:s,commands:p,requestWorkbookTitle:O=>new Promise(C=>{n.current?n.current.requestWorkbookTitle((S,W)=>{C(S)},{selectAll:!0,requestReason:O}):C(d)}),themeModeOptions:g,undoManager:u,notifier:V,onExecute:U});a.useEffect(()=>{E.starting.size<=0||!E.isMounted||b(O=>{const C=new Map(O.running);return O.starting.forEach((S,W)=>{const M=()=>{b(N=>{const P=new Map(N.running);return P.delete(W),{...N,running:P}})};C.set(W,M),S(M)}),{...O,starting:new Map,running:C}})},[E]);const[G,ie]=a.useState(null);a.useEffect(()=>{E.starting.size!==0||E.running.size!==0?ie(h.jsx(l.It,{icon:h.jsx(l.qa,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:E.label,onMount:k,onUnmount:D,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):ie(null)},[E.starting,E.running]);const I=a.useMemo(()=>h.jsx(l.HelpCommandButton,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),ae={notifier:V,commands:_};return r&&(ae.statusBarProps={childrenEnd:I}),h.jsxs(h.Fragment,{children:[G,c?a.cloneElement(c,ae):null]})}));Lt.displayName="SnackbarAndCommandsWrapper";const Mt=a.memo(a.forwardRef((t,i)=>{const{className:r,sx:e,style:n,onElementLoad:o,onError:s,undoManager:d,errorPanel:c=l.Bt,onKeyDown:u,workbook:p,createWorkbookOptions:f,onWorkbookChange:g,logo:y,importExportDisabled:v=!1,themeModeOptions:w,autoFocus:E=!1,commands:b,title:k,onTitleChange:D,titleProps:T,...Z}=t,A=a.useRef(null),B=l.T(g,[g]),V=l.T(D??T?.onTitleChange,[D??T?.onTitleChange]),U=T?.placeHolder??"Untitled",_=w?.forceMode,{themeMode:G,source:ie}=l.useResolvedThemeMode({mode:_}),I=a.useMemo(()=>({...w,light:l.Qa(!1,l.F.deepMerge(w?.theme??{},w?.light??{})),dark:l.Qa(!0,l.F.deepMerge(w?.theme??{},w?.dark??{}))}),[w]),ae=G===l.ThemeMode.Dark,[O,C]=a.useState(null);a.useEffect(()=>{C(d??new l.jf)},[d]);const[S,W]=a.useState(null),[M,N]=a.useState(null),P=l.Td();a.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!l.F.isPromiseLike(p)){const m={theme:P.getDefaultTheme(),...f};N(new l.Ky(m))}else N(p)},[p]),a.useLayoutEffect(()=>{if(M){if(M instanceof l.Ky)return W({workbook:M}),void(p!==M&&B?.(M));(async()=>{try{let m,x=await Promise.resolve(M);x&&x.source&&(x=await l.WorkbookIO.read(x)),x.workbook?(se(x.title),m=x.workbook):m=x,B?.(m),W({workbook:m})}catch(m){B?.(null),W({error:m})}})()}},[M]);const[X,R]=a.useState(null);a.useEffect(()=>{if(!O||!S)return;O.clear();const m=S?.workbook?.getTransactions();if(m)return m.addListener({onCommitEnd:x=>{x.getDescription()?O.addUndoOperation({description:x.getDescription(),undo:()=>(m.revert(x.getId()),X.source?.focus(),()=>{m.restore(x.getId()),X.source?.focus()})}):console.warn("commit has no description",x)}})},[O,S,X]);const Ee=l.T(m=>{m?O.setRepeatableOperation({description:m.label(),repeat:async()=>m.execute()}):O.setRepeatableOperation(null)},[O]),[$,se]=a.useState(k??T?.title??"");a.useEffect(()=>{se(k??T?.title??"")},[k??T?.title]),a.useEffect(()=>{V?.($)},[$]);const[Ce,Ie]=a.useState(null),le=a.useMemo(()=>{const m=()=>({contains:x=>!0,focus(){}});return b?b.createChildGroup(m,"application",!1):new l.He(m,"application")},[b]),Pe=l.T(m=>{Ie(m.source.getViewportElement()),R(m),le.activate("sheet"),o?.(m)},[le]);a.useEffect(()=>{X&&E&&X.source?.focus(typeof E=="object"?E:void 0)},[X]);const fe=a.useRef(null),q=a.useCallback(m=>{let x=null;return T?.hidden||(x=h.jsx(l.WorkbookTitle,{...T,style:{maxWidth:"100%",...T?.style},workbook:A.current,ref:fe,title:$,placeHolder:U,onTitleChange:F=>{se(F)}})),h.jsx(Tt,{...m,logo:y,mainElement:x,showFileMenu:!v,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[y,$,T,I,v,le]);a.useEffect(()=>{const m=x=>x.preventDefault();return A.current?.addEventListener("wheel",m,{passive:!1}),()=>{A.current?.removeEventListener("wheel",m)}},[]);const ne=a.useMemo(()=>h.jsx(l.It,{transparentBackground:!0,sx:e,style:n}),[e,n]),z=a.useCallback(({error:m})=>(s?.(m),h.jsx(c,{sx:e,style:n,error:m??"Unable to display empty workbook."})),[e,n,s]),me=a.useMemo(()=>({...e,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:m=>m.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[e]),qe=l.mergeRefs([A,i]),j=a.useMemo(()=>{if(!S)return ne;if(S.error||!S.workbook)return z({error:S.error});let m=null,x=null,F=!1;return I&&(m=ae?I.dark:I.light,x=ae&&!I.forceLightGrid?I.dark:I.light,F=I.forceLightImages),h.jsx(l.WorkbookElement,{sx:me,style:n,tabIndex:0,autoFocus:!0,workbook:S.workbook,ref:qe,renderToolbar:q,onElementLoad:Pe,onRepeatCommandChange:Ee,onKeyDown:Q=>{u?.(Q)},gridTheme:x,headersTheme:m,forceLightImages:F,className:l.clsx(r,"sheetxl-workbook"),onContextMenu:Q=>Q.preventDefault(),...Z},"WorkbookElement")},[S,$,O,ne,I,Z,q,me]);let K=h.jsx(Dt,{fallbackRender:z,children:h.jsx(rn,{maxSnack:3,domRoot:Ce,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(m,x,F)=>{A.current?.focus()},Components:{error:Ct},iconVariant:{success:h.jsx(H.SvgIcon,{style:{marginRight:"8px"},children:h.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:h.jsx(l.oa,{style:{marginRight:"8px"}})},children:h.jsx(l.nl,{children:h.jsx(Lt,{workbook:S?.workbook,setWorkbook:N,importExportDisabled:v,titlePlaceHolder:U,titleWorkbook:$,setWorkbookTitle:se,refWorkbookTitle:fe,commands:le,undoManager:O,themeModeOptions:I,children:j})})})});return I&&(K=h.jsxs(l.ThemeProvider,{theme:ae?I.dark:I.light,children:[I.cssBaseline?h.jsx(H.CssBaseline,{}):null,K]})),K}));Mt.displayName="EagerStandaloneWorkbook";const sn=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));exports.EagerStandaloneWorkbook=sn,exports.clsx=te;
@@ -1,7 +1,7 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),l=require("react"),m=require("@mui/material"),a=require("./1l0fvuyys87pgNAk.cjs"),O=require("@mui/system"),I=["Ok","Cancel"],T=l.memo(y=>{const{initialComments:v=null,onUpdateComments:g,context:F,onOption:x,onValidateOption:p,onDone:u,options:f=I,defaultOption:d=f?.[0],cancelOption:i="Cancel",sx:b,...P}=y,h=l.useMemo(()=>{const e=v??F?.()?.getComments();let t="";if(e&&e.content&&e.content.runs){const o=e.content.runs;for(let r=0;r<o.length;r++){const s=o[r];t+=s?.text}}return t},[]),[n,j]=l.useState(h),[k,q]=l.useState(!1),C=l.useCallback(async(e,t)=>null,[]),w=a.T(async e=>{const t=n===""?[]:n.split(`
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),l=require("react"),m=require("@mui/material"),a=require("./D2MFDC-oSzPf1srP.cjs"),O=require("@mui/system"),I=["Ok","Cancel"],T=l.memo(y=>{const{initialComments:v=null,onUpdateComments:g,context:F,onOption:x,onValidateOption:p,onDone:u,options:f=I,defaultOption:d=f?.[0],cancelOption:i="Cancel",sx:b,...P}=y,h=l.useMemo(()=>{const e=v??F?.()?.getComments();let t="";if(e&&e.content&&e.content.runs){const o=e.content.runs;for(let r=0;r<o.length;r++){const s=o[r];t+=s?.text}}return t},[]),[n,j]=l.useState(h),[k,q]=l.useState(!1),C=l.useCallback(async(e,t)=>null,[]),w=a.T(async e=>{const t=n===""?[]:n.split(`
7
7
  `);if(e!==i){const o=[];for(let s=0;s<t.length;s++)o.push({text:t[s]});g?.({content:{runs:o}})}x?.(e,e===i,e===d),u?.()},[n,g,u,x,d,i]),S=a.T(e=>{j(e.target.value),C(e.target.value,null)},[p]),D=a.T(async e=>{let t=await Promise.resolve(p?.(e));try{t!==!1&&(t=await C(n,e))}catch{}return t??!0},[p,n]);return c.jsx(a.E8,{title:(h?"Edit":"Insert")+" Comments",options:f,onDone:u,onOption:e=>w(e),onValidateOption:D,defaultOption:d,cancelOption:i,autoFocusSel:".autoFocus",sx:{width:"480px",...b},...P,children:c.jsx(m.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:c.jsx(m.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:c.jsx(m.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:e=>{k||e.target?.select(),q(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${O.alpha("#fff",a.getOverlayAlpha(5))}, ${O.alpha("#fff",a.getOverlayAlpha(5))})`}}},value:n,onChange:S,onContextMenu:e=>{e.stopPropagation()}})})})})});exports.CommentsDialog=T,exports.default=T;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),o=require("@mui/material"),t=require("./1l0fvuyys87pgNAk.cjs"),c=({range:d,options:s,cell:C,onDone:a,...b})=>{const[i,l]=x.useState(s??t.Lr.DefaultRangeOptions),u=t.T(e=>{let r=null;e==="Sort"&&(r={...s,options:i}),a?.(r)},[i,a,s]);return n.jsx(t.E8,{title:"Sort",options:["Sort","Cancel"],onDone:u,...b,children:n.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column"},children:[n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:!i.reverse,onChange:()=>l(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.hasHeader,onChange:()=>l(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.collatorOptions?.sensitivity===t.Lr.CaseSensitiveOptions.sensitivity,onChange:()=>l(e=>({...e,collatorOptions:i.collatorOptions?.sensitivity===t.Lr.CaseSensitiveOptions.sensitivity?t.Lr.CaseInsensitiveOptions:t.Lr.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.orientation===t.k.Orientation.Row,onChange:()=>l(e=>{const r=e.orientation===t.k.Orientation.Row?t.k.Orientation.Column:t.k.Orientation.Row;return{...d.getDefaultSortCriteria(r,C).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:r}})}),label:"Row Sort",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.includeHidden,onChange:()=>l(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=c,exports.default=c;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),o=require("@mui/material"),t=require("./D2MFDC-oSzPf1srP.cjs"),c=({range:d,options:s,cell:C,onDone:a,...b})=>{const[i,l]=x.useState(s??t.Lr.DefaultRangeOptions),u=t.T(e=>{let r=null;e==="Sort"&&(r={...s,options:i}),a?.(r)},[i,a,s]);return n.jsx(t.E8,{title:"Sort",options:["Sort","Cancel"],onDone:u,...b,children:n.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column"},children:[n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:!i.reverse,onChange:()=>l(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.hasHeader,onChange:()=>l(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.collatorOptions?.sensitivity===t.Lr.CaseSensitiveOptions.sensitivity,onChange:()=>l(e=>({...e,collatorOptions:i.collatorOptions?.sensitivity===t.Lr.CaseSensitiveOptions.sensitivity?t.Lr.CaseInsensitiveOptions:t.Lr.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.orientation===t.k.Orientation.Row,onChange:()=>l(e=>{const r=e.orientation===t.k.Orientation.Row?t.k.Orientation.Column:t.k.Orientation.Row;return{...d.getDefaultSortCriteria(r,C).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:r}})}),label:"Row Sort",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.includeHidden,onChange:()=>l(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=c,exports.default=c;
@@ -1,10 +1,10 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
7
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.2.0
7
+ * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,9 +1,9 @@
1
1
  import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
3
  import { Box as O, FormControlLabel as a, Checkbox as s } from "@mui/material";
4
- import { ay as l, T as b, am as H, k as r } from "./DSrUptgY6LA0HSue.mjs";
4
+ import { ay as l, T as b, am as H, k as r } from "./DgAkhv_thUOpWlnL.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,10 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { memo as E, useMemo as M, useState as h, useCallback as j } from "react";
3
3
  import { Box as S, FormControl as V, TextField as $ } from "@mui/material";
4
- import { T as m, am as z, aA as C } from "./DSrUptgY6LA0HSue.mjs";
4
+ import { T as m, am as z, aA as C } from "./DgAkhv_thUOpWlnL.mjs";
5
5
  import { alpha as O } from "@mui/system";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.2.0
8
+ * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.2.0
8
+ * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.2.0
8
+ * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.2.0
8
+ * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,24 +1,24 @@
1
- import { $ as he } from "./DQdM0W8to4Ar_3DZ.mjs";
1
+ import { $ as he } from "./C7nYvIDkdvZ1Dj4m.mjs";
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
8
  /**
9
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
9
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
10
10
  *
11
11
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
12
  * License: The license can be found at https://www.sheetxl.com/license.
13
13
  */
14
14
  /**
15
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.0
15
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.0
16
16
  *
17
17
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
18
18
  * License: The license can be found at https://www.sheetxl.com/license.
19
19
  */
20
20
  /**
21
- * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.2.0
21
+ * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.0
22
22
  *
23
23
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
24
24
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -252,7 +252,7 @@ let W = null;
252
252
  async function Te() {
253
253
  if (W) return W;
254
254
  try {
255
- return await (await import("./D4M2PpLzNZZ2sRh0.mjs")).initialize();
255
+ return await (await import("./DX5wv2h7KsKxTYo5.mjs")).initialize();
256
256
  } catch (e) {
257
257
  throw W = null, e;
258
258
  } finally {
@@ -446,7 +446,7 @@ interface Promise<T> {
446
446
  g = o, m = h;
447
447
  });
448
448
  try {
449
- const { initialize: o } = await import("./LbM0N8dJbqwBmkKO.mjs");
449
+ const { initialize: o } = await import("./BKe9StZYGtgSF78N.mjs");
450
450
  return A = await o(), g(), A;
451
451
  } catch (o) {
452
452
  throw console.error("Failed to import or initialize esbuild:", o), H = null, m(o), o;
@@ -1,9 +1,9 @@
1
1
  import { jsx as o, jsxs as k } from "react/jsx-runtime";
2
2
  import { memo as D, useState as i, useCallback as N } from "react";
3
3
  import { Box as w, FormControlLabel as F, Checkbox as j } from "@mui/material";
4
- import { T as v, am as y, aP as B } from "./DSrUptgY6LA0HSue.mjs";
4
+ import { T as v, am as y, aP as B } from "./DgAkhv_thUOpWlnL.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  /**
8
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
8
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
12
12
  */
13
13
  /**
14
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.0
14
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.0
15
15
  *
16
16
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
17
17
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,12 +1,12 @@
1
- import { L as Gs, Y as D, F as ft, f as Ye, p as Ks, D as Xt, q as jn, a as zs, s as Vs, V as Xe, x as Hs, J as se, b as Ue, m as Fe } from "./DSrUptgY6LA0HSue.mjs";
1
+ import { L as Gs, Y as D, F as ft, f as Ye, p as Ks, D as Xt, q as jn, a as zs, s as Vs, V as Xe, x as Hs, J as se, b as Ue, m as Fe } from "./DgAkhv_thUOpWlnL.mjs";
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
8
  /**
9
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
9
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
10
10
  *
11
11
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
12
  * License: The license can be found at https://www.sheetxl.com/license.