@sheetxl/studio-vanilla 0.8.0-beta.3 → 0.8.0-beta.5

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 (365) hide show
  1. package/browser/cjs/{Df3jw0eHS0X-qFvT.cjs → -pHZ0FglrwHVe1pv.cjs} +1 -1
  2. package/browser/cjs/{CTObzk4r7C71x9Ep2.cjs → 6V1LlorEUj_nSWnU.cjs} +1 -1
  3. package/browser/cjs/A1Gu5kAMj0Iicl_T.cjs +32 -0
  4. package/browser/cjs/{kj_kwD7S9uUbhKiz2.cjs → B-Iy-uZsTIHDkogf2.cjs} +1 -1
  5. package/browser/cjs/{uRXkwHKoe-2HtXuR.cjs → B8pxNq6Do9BXuxnW.cjs} +1 -1
  6. package/browser/cjs/BDKlnWp7xCcP65l4.cjs +1 -0
  7. package/browser/cjs/{CQ5x8oFPDaU6OCJf.cjs → BGWllzPl0ZZpYb85.cjs} +1 -1
  8. package/browser/cjs/BRikaOBjd90ZslxS2.cjs +1 -0
  9. package/browser/cjs/BVhuM-U_zQMtB3Rj2.cjs +8 -0
  10. package/browser/cjs/BeEQmpnUNjfq14ww2.cjs +1 -0
  11. package/browser/cjs/BekJlCRmg4z-bY-P2.cjs +1 -0
  12. package/browser/cjs/Bg5fDBNyBYrzvmaE2.cjs +3 -0
  13. package/browser/cjs/{7SCJ4vwRZW4B71kq.cjs → Bj3YkKmVIoQ3YtYm.cjs} +4 -4
  14. package/browser/cjs/{BArvhvpcrQEcbcyY.cjs → BmP-beLcejV6RRzL.cjs} +1 -1
  15. package/browser/cjs/BqAfQbSbXb2LOQbv.cjs +14 -0
  16. package/browser/cjs/Bvn-CsjRyKMgJe5M.cjs +2 -0
  17. package/browser/cjs/Bw82zZDnlCRZW3tT2.cjs +1 -0
  18. package/browser/cjs/C2xqrjnwNc6jmaeh.cjs +41 -0
  19. package/browser/cjs/{DWdUSWl4MXn2-MLU.cjs → C6c8mL5CgmHaGKS8.cjs} +1 -1
  20. package/browser/cjs/C93fNlONyjGB_ZQr.cjs +3 -0
  21. package/browser/cjs/{C2SohnuJK8Urc7Fx2.cjs → CAlbD-ahsKIYPLxV2.cjs} +2 -2
  22. package/browser/cjs/CClH6iclautDoj8x2.cjs +1 -0
  23. package/browser/cjs/{B2fdTYeKGNugWRgn2.cjs → CFBCm2JGyntY_T_G2.cjs} +2 -2
  24. package/browser/cjs/{P0AUOlaMi9tyE0vN.cjs → CMOeL2fuTqmW07BD.cjs} +199 -199
  25. package/browser/cjs/CPpaoS366U54RWte.cjs +1 -0
  26. package/browser/cjs/{9LTjOB1_w-bikScD.cjs → CQfkl_5YTtPzqRSg.cjs} +1 -1
  27. package/browser/cjs/{Z_6RasaVpnIv1MHk.cjs → CS4wNxH88XJVjGU0.cjs} +1 -1
  28. package/browser/cjs/{B7oyN0rn95Kyes8D2.cjs → CSWmGDsxPB7HVJiO2.cjs} +1 -1
  29. package/browser/cjs/{DUXRl3eYfSwbhAfx.cjs → CjqMMBQ8Kk0moB_z.cjs} +1 -1
  30. package/browser/cjs/{C3scwi-q2KqEM39H.cjs → Ck-uFI-6VF3NMr4v.cjs} +3 -3
  31. package/browser/cjs/CpPGKlipSfknSo2L2.cjs +1 -0
  32. package/browser/cjs/{D6YaqporVrSewZpm2.cjs → CvjJnxfMX3aal6Zj2.cjs} +1 -1
  33. package/browser/cjs/D4jFBIwyj80GDSx12.cjs +1 -0
  34. package/browser/cjs/D9H7eKWKcSjA08Zi2.cjs +1 -0
  35. package/browser/cjs/{Doiqeo4Qlie45lbl.cjs → DDFt0sUTKfAcQPPd.cjs} +1 -1
  36. package/browser/cjs/DEG5zPL5j1fLGSt42.cjs +1 -0
  37. package/browser/cjs/DWaaProrT5w4AQi4.cjs +4 -0
  38. package/browser/cjs/{C0xAhPzztP9a24zR.cjs → DWyFHz2jCB9Ej_YQ.cjs} +1 -1
  39. package/browser/cjs/DXs9xla8JSLmvscc2.cjs +1 -0
  40. package/browser/cjs/DaWlsfheBCsinBpg.cjs +1 -0
  41. package/browser/cjs/{D6m2M4H6JZaYZ4El2.cjs → DdaTLh6vF5y310CX2.cjs} +1 -1
  42. package/browser/cjs/{DQOt8XSpXyhsrF9N.cjs → DlFiaQEEJyI6gR6p.cjs} +43 -43
  43. package/browser/cjs/{ge8Wd-0WC6oMuJZR.cjs → DvbNUe-4CGh0IgQt.cjs} +1 -1
  44. package/browser/cjs/GCXpCGPZN9vgoEGL.cjs +1 -0
  45. package/browser/cjs/H7GCoq8sv5AfDWcU2.cjs +1 -0
  46. package/browser/cjs/{BtAs67e7WBCglqc5.cjs → K-menOImhm6Qcwkr.cjs} +1 -1
  47. package/browser/cjs/{BDmBYZigchoACsQx.cjs → PVM_8Czy_QchyPbY.cjs} +1 -1
  48. package/browser/cjs/{BxFSy-hOEbyllj-r2.cjs → Ugq14m_1jIROW2RN2.cjs} +2 -2
  49. package/browser/cjs/Y2E8S2qjo-X637U3.cjs +1 -0
  50. package/browser/cjs/{CUyKbhM67853Rnt22.cjs → aTngYYEK_h4_TqHo2.cjs} +1 -1
  51. package/browser/cjs/{Zz5dLT_2gLI18Jmx.cjs → axigL4G2Pi0ixZPE.cjs} +2 -2
  52. package/browser/cjs/eueRerE2mxFno4122.cjs +1 -0
  53. package/browser/cjs/{CH0vbLpwoyU7oOFk.cjs → gYAA75Xg3ecR5t-Y.cjs} +2 -2
  54. package/browser/cjs/i2rygY6lV8CpJIBa.cjs +54 -0
  55. package/browser/cjs/index.cjs +2 -2
  56. package/browser/cjs/nQZj8ROMT7RSXLoL.cjs +5 -0
  57. package/browser/cjs/{BqQgEaUREvuFHYoW.cjs → pWgqqjBa4jIrxyvw.cjs} +1 -1
  58. package/browser/cjs/{CKtdmbeMjJ2udO8s.cjs → rTqXOtDoRYaWhUWc.cjs} +1 -1
  59. package/browser/cjs/{AVUt0iNPhRf4R5xb.cjs → uwL_7o9DIJyenW1_.cjs} +1 -1
  60. package/browser/cjs/{D9SdUvJVa64UoGj9.cjs → v4gWTjOVv8h2S0zO.cjs} +1 -1
  61. package/browser/esm/{BYPIn5AkddMzMcsa2.mjs → 3GyY2zv58tP35TSP2.mjs} +12 -12
  62. package/{cdn/assets/BJVcTpMN-u5XhMVE.js → browser/esm/4s24g7BIXmb-ZsJu.mjs} +1 -1
  63. package/{cdn/assets/OyyHiDjohIf4lZX6.js → browser/esm/4uPEJOprzEht4SzA.mjs} +1 -1
  64. package/browser/esm/{DnLi57ylUOd3DUek.mjs → 6UKBDybUcMTwrAg4.mjs} +6 -6
  65. package/{cdn/assets/Cjbksosgv7NZFNE02.js → browser/esm/8CSB84e_emQV5R8x.mjs} +1 -1
  66. package/browser/esm/{BHIVjD6BdBS3BAWp.mjs → 8byAl8o3b5ERzC2f.mjs} +6 -6
  67. package/browser/esm/{BgwzL8v2pmR5HJXW.mjs → 9XdPIuWzuP_fNsMc.mjs} +1 -1
  68. package/{cdn/assets/CukMw9Sc4iO21aRQ2.js → browser/esm/AQFoTfI5MYgvP0xF.mjs} +622 -622
  69. package/browser/esm/{DGde1GUi2j-ZUPJW2.mjs → ASzAufEHRJxLynVy2.mjs} +22 -22
  70. package/browser/esm/{lfNgkSweNYs6v7g2.mjs → B0UFSNuNXaITFeUo.mjs} +2 -2
  71. package/{cdn/assets/ButSau4Lf36Oe3GD.js → browser/esm/B0UFSNuNXaITFeUo2.mjs} +2 -2
  72. package/browser/esm/{C6D3gk0GBvvDjawh.mjs → B0bZyS8PEuQdlbWK.mjs} +5 -5
  73. package/browser/esm/{BQIRHi8T3P5MZtan.mjs → B2NuZPYij8J3kTpp.mjs} +1 -1
  74. package/browser/esm/{ByQakLd0YFwc0Lgl.mjs → B4I6uEgyYNann2Ke.mjs} +8 -8
  75. package/browser/esm/{D16eCDM3k1_Fk-MN.mjs → B70US6XCCdca6Gnm.mjs} +13 -13
  76. package/browser/esm/{Bj42pxe5AuY4bF2e.mjs → B7wQkwBdwRb7kacm.mjs} +3 -3
  77. package/{cdn/assets/CU1J-I76aVm-KPP6.js → browser/esm/BAL80tfcY_xLu0G02.mjs} +1 -1
  78. package/browser/esm/{CDxmuF7Iay8T4cnU.mjs → BDC1gzaNCs82vYHQ.mjs} +111 -111
  79. package/{cdn/assets/B63SfOuKJt36aTr_.js → browser/esm/BEiZjvI9ie1V8MyZ2.mjs} +2 -2
  80. package/browser/esm/{Z83G4i9Tvq4z2kCB.mjs → BGM2QvJ-QM02j7Ry.mjs} +3 -3
  81. package/browser/esm/{CcuNkPxT6rqElgbZ2.mjs → BLqwwpQl8XESCuBb2.mjs} +1 -1
  82. package/browser/esm/{CpzLNwtfx0Zd0OZ0.mjs → BOQ_aIsihPsIbZKi2.mjs} +1 -1
  83. package/{cdn/assets/Co06Uf-tv1IuVQhe.js → browser/esm/BQaSJTMvIv7JCgD62.mjs} +1 -1
  84. package/{cdn/assets/BQhVWbI9uag9iRfX.js → browser/esm/BQkmUzRKlWiqor0q2.mjs} +1 -1
  85. package/browser/esm/{DlHJ7zkV6AMCtYPP.mjs → BRClrw1gCHOYle2g.mjs} +5 -5
  86. package/{cdn/assets/BUjTEjAeByh6MKpn.js → browser/esm/BSLpLAM29GayIcHp2.mjs} +1 -1
  87. package/browser/esm/{D-1WiFWkKNPWXppx2.mjs → BVLs5hMoDYB3C1o22.mjs} +1 -1
  88. package/browser/esm/{vDg2R-517z6mPR3B2.mjs → BVwZ0Nw8kL8sB67E2.mjs} +8 -8
  89. package/browser/esm/{vP8Rb-lgzeerBAx4.mjs → BW1dPK38H6_2KNgN.mjs} +1 -1
  90. package/{cdn/assets/BSWXx2rKOMPxLLs82.js → browser/esm/BXyAtmroS_bl4Hb1.mjs} +1 -1
  91. package/browser/esm/{OsRyVy3M_rNtmU472.mjs → BZ6fnTTLyw1RMWk32.mjs} +10 -10
  92. package/browser/esm/{BrzXFBoYDjcG3ct8.mjs → B_pRnJh0RkIyoM8I.mjs} +3 -3
  93. package/browser/esm/{53nnk5W22gJW7Ddx.mjs → BaLJfxCFTS-J7Qn3.mjs} +5 -5
  94. package/browser/esm/{C8qOmdaHh4WQkzEy.mjs → Bb2KUiusJj-R9-bL2.mjs} +1 -1
  95. package/browser/esm/{BoWCDK44X4tp02_4.mjs → BbWwG0VXcXl_hRVo.mjs} +1 -1
  96. package/browser/esm/{C5u9ds7LUh9JJEbW2.mjs → Bc6eSp3eJSBG2upN2.mjs} +2 -2
  97. package/browser/esm/{CjxOVBbWLFeUZza82.mjs → BcG0JULge5x_L8Es2.mjs} +2 -2
  98. package/{cdn/assets/BEb3QhWwGW8rErZy2.js → browser/esm/Bn0Zl7pydiHARthC.mjs} +1 -1
  99. package/{cdn/assets/BiomOxscV1M0Uw2n.js → browser/esm/BpYrVpNYxLiyvpsG2.mjs} +1 -1
  100. package/{cdn/assets/BuoHLVUSwf-mq0hg.js → browser/esm/BrBFY1fUM6isyJR72.mjs} +1 -1
  101. package/browser/esm/{D3Qv3--VfvVHImXW.mjs → BxVi9Yt82U55JbkE.mjs} +1 -1
  102. package/browser/esm/{C213T1hhBphljJTF2.mjs → BxWGBuBUE-ef4qaS2.mjs} +1 -1
  103. package/{cdn/assets/C5Oex2msskTvaCQ9.js → browser/esm/ByJEKW7Yb2GMOYw12.mjs} +1 -1
  104. package/browser/esm/{CnB5AuoIz-49NXD_.mjs → ByhPTRCEKiD7ZwZ9.mjs} +3 -3
  105. package/browser/esm/{Dj_S0P34nk_fjFoh2.mjs → C458ofhQ4Q6OuqGD2.mjs} +17 -17
  106. package/browser/esm/{Bq7qy-C7tVkiIaDE2.mjs → C62f10Gyl_4h66X22.mjs} +4 -4
  107. package/browser/esm/{BYAZ3XZq8XXkOulw.mjs → C9ThHYC9Dk1pmhfV.mjs} +3 -3
  108. package/{cdn/assets/efVOgresgMXMdh7J.js → browser/esm/CAJyOPOsOhkyreOa2.mjs} +1 -1
  109. package/{cdn/assets/DZGMsbIACs9TKYrM.js → browser/esm/CAR-0i_rg3wlCjH7.mjs} +1 -1
  110. package/browser/esm/{Dok4MRpMgkcsNzp4.mjs → CB9PVYNZz7jviPeM.mjs} +29 -29
  111. package/browser/esm/{BCQJVniXgm81YQ0v2.mjs → CDVFmdooKU1S5AYN2.mjs} +91 -91
  112. package/browser/esm/{XuGWliVSRCNi5it12.mjs → CFQz07nMv0V8904P.mjs} +1 -1
  113. package/browser/esm/{BEb3QhWwGW8rErZy.mjs → CG1w46Kqn0AmNJjP.mjs} +1 -1
  114. package/{cdn/assets/OtaDVRqZVyi7IBBa2.js → browser/esm/CGphh091pmrMF0fz.mjs} +1 -1
  115. package/browser/esm/{BnHE1Z6WkOfTWheU2.mjs → CH8HIhB841-G2xQ8.mjs} +2 -2
  116. package/browser/esm/{B0F5gtNQjANAfRw32.mjs → CL00yLGi41YYp5DU2.mjs} +11 -11
  117. package/browser/esm/{BUokT-PbfvYzD63f2.mjs → CPFAhBuBEQ2WQ1xL.mjs} +1 -1
  118. package/browser/esm/{C__tNzwz0i7bQrSu2.mjs → CQWXozGddE-bt3e02.mjs} +11 -11
  119. package/browser/esm/{C3A-yJ12PN-CPPnI2.mjs → CRZ6nMW0sPFhGN8u2.mjs} +1 -1
  120. package/browser/esm/{BtC6lEbd98TeKGsX2.mjs → CSeYl-X-bL3-wwj22.mjs} +19 -19
  121. package/browser/esm/{BsY_DyFxoqjRHTv02.mjs → CTC5YAOtLAZGGiUL.mjs} +1 -1
  122. package/{cdn/assets/B45vVm2Ma1i2b6_F.js → browser/esm/CX79dsSUsejpgy3I.mjs} +1 -1
  123. package/browser/esm/{CVbPAnmNN3TxMkq4.mjs → CYsJALdAfHsvSsfO.mjs} +1 -1
  124. package/{cdn/assets/OTQWLENoZ1cSiDQb2.js → browser/esm/C_nwA5FGYFKge7oa.mjs} +2 -2
  125. package/{cdn/assets/DoAKAH3cmECZGboo2.js → browser/esm/CaQy0UO3TARwf9lv2.mjs} +1 -1
  126. package/browser/esm/{GJUYPKfNptRZyU9r.mjs → CcwkG-z-iFoCFOt1.mjs} +7 -7
  127. package/browser/esm/{Bsfof8nD-exhrNwn.mjs → CdA4fRy3QcuvWfzj.mjs} +1 -1
  128. package/browser/esm/{BH_qL-oGqwG-7JKF.mjs → CdcmFHYIMwynrOPS.mjs} +9374 -9322
  129. package/browser/esm/{DLgM7RXEEfx33zms.mjs → ChuTJoGpKAZ1jbdn.mjs} +4 -4
  130. package/browser/esm/{DRRx9F2h6V-Q957j.mjs → CkSbV_IfAZJi0c6l.mjs} +2 -2
  131. package/browser/esm/{B5z-uoALcLY2ABTo.mjs → CpftofIbZs_pRecS.mjs} +5 -5
  132. package/browser/esm/{B72sK2NRGAke-aCk2.mjs → CqUf50LIOBNC_hcw2.mjs} +1 -1
  133. package/browser/esm/{BcPnGFFKCddWgOch.mjs → CrjTHME_ZD6LcTDU.mjs} +1 -1
  134. package/{cdn/assets/CyS1VLOdAweeZsMV2.js → browser/esm/CtwFmaqTopRJLzS-.mjs} +1 -1
  135. package/{cdn/assets/BCcbek_TFOdgqxXq2.js → browser/esm/CwIRaew_lypEkoUe.mjs} +1 -1
  136. package/browser/esm/{BOMJTicRKnx01hw-.mjs → CzgGRoHeo-ZNAb5d.mjs} +12 -12
  137. package/{cdn/assets/BmC-_QeQ-53oyorq.js → browser/esm/D13cYHehI1MFANBs.mjs} +1 -1
  138. package/{cdn/assets/BwbR2Dao5LgLYQgV2.js → browser/esm/D1ux3f7S9r50KVKs2.mjs} +1 -1
  139. package/browser/esm/{5SHS088DeaZ82qmD2.mjs → D2JDIYFefaXzh0Q72.mjs} +1 -1
  140. package/browser/esm/{CS38A8yr4eKvdDZm.mjs → D6J-1hSJ63oZwM1Y.mjs} +21 -21
  141. package/browser/esm/{D5j8qMZCamJQ82pi.mjs → DARfvNH02jVzsWOM.mjs} +453 -453
  142. package/browser/esm/{B08GCyGdLNiXtb_R.mjs → DGacyXSHaj_qFWtj.mjs} +1 -1
  143. package/browser/esm/{2eBMkUK0-HxaCmDY.mjs → DHYjpa4TQd0OyX_-.mjs} +6 -6
  144. package/browser/esm/{C-97pwItkHA3s5rD2.mjs → DKvEwaJfPWiOP8fE2.mjs} +12 -12
  145. package/browser/esm/{74Ynqpv5NPbb_8vB.mjs → DLWy3-8VQfVD6kwY.mjs} +5046 -5002
  146. package/browser/esm/{DNxL1aQIN6J2PLV7.mjs → DNlaQkWEr2q-g0dd.mjs} +3 -3
  147. package/browser/esm/{CD44l4eg_lxr7kgn2.mjs → DO_srLsUC5FrarXA2.mjs} +7 -7
  148. package/{cdn/assets/CwRAK6IVjIYuwofE2.js → browser/esm/DPFLq_i4WqawDi01.mjs} +1 -1
  149. package/browser/esm/{BJ26E2DhS1Jz4nUY2.mjs → DRZYMJA0Mk0SbohL2.mjs} +17 -17
  150. package/browser/esm/{B-VKr_KwiWjDeAP5.mjs → DTRizK5R37HoZ_f1.mjs} +333 -333
  151. package/{cdn/assets/DfIwClWz03Qw38-O2.js → browser/esm/DVKsvS22o0v0glGu.mjs} +1 -1
  152. package/browser/esm/{CZN6c8yBDjLVTVpH.mjs → DWOXBo1RfTbNiz5y.mjs} +2 -2
  153. package/browser/esm/{Ds5mE3-q83ZhE-2T.mjs → D_qsNLP-D6CrMu_6.mjs} +43 -43
  154. package/browser/esm/{CyomJv3_vWy4trRe2.mjs → DaHGI3svC3_Ne-4m2.mjs} +1 -1
  155. package/{cdn/assets/CXvcyGN4L9iDr1LK.js → browser/esm/DbHaqFzeVSgieXnR2.mjs} +1 -1
  156. package/{cdn/assets/DW3_Jr-4VdZZqNEg.js → browser/esm/DdZPPDc6wlduH_KR.mjs} +1952 -1943
  157. package/{cdn/assets/B8q1hrKv7LAL4xmM.js → browser/esm/Df4TV780zP-UkbB12.mjs} +1 -1
  158. package/browser/esm/{Du5dlbWtpboIrJk-2.mjs → DguciGbiLUEk9ta72.mjs} +78 -78
  159. package/browser/esm/{CSu0Md4a1JIZrirV.mjs → Dh7MPAd98iiUhXf2.mjs} +250 -250
  160. package/browser/esm/{C02og4vKxq9qpIUA.mjs → Dh_DQ87yyGmzCgIB.mjs} +60 -60
  161. package/browser/esm/{kef_IwcJES4VXcNa2.mjs → DmQJ8rkLCqU29r122.mjs} +17 -17
  162. package/browser/esm/{Dg7wE0RZdHeJv537.mjs → DqR9ypY2lo7NdhdA.mjs} +1 -1
  163. package/browser/esm/{cDMkMgN5tB-wni7c2.mjs → DqzA7RtNUvsLdscx2.mjs} +13 -13
  164. package/browser/esm/{BNgf4HZDOKYBkvL3.mjs → DvNptskytLmS92UC.mjs} +1745 -1745
  165. package/browser/esm/{DpORFFFF3LUx_zsT2.mjs → Eiawyv29d1WfCkp72.mjs} +7 -7
  166. package/{cdn/assets/mbUWaIl3SJkdbWx0.js → browser/esm/GJzjEL175hRFbbbB.mjs} +1 -1
  167. package/browser/esm/{DB_I2ygTnDxYiYyc.mjs → I6hoqlf8ReojOl6S.mjs} +215 -206
  168. package/browser/esm/{VaST17rbOSkMsGyn.mjs → MtvgycEqvj_iaI_a.mjs} +7 -7
  169. package/browser/esm/{C0HHZ3XLqp0LgRuW.mjs → NZMc3v4NvbbnA8fu2.mjs} +1 -1
  170. package/browser/esm/{BGRNyE5ar4c3ggrS.mjs → O-XUoWE0ea4B2z_7.mjs} +128 -128
  171. package/browser/esm/{BPZxx-OH0wACHLsN2.mjs → O8EB2u7R_rndPG2C2.mjs} +1 -1
  172. package/{cdn/assets/DAhlDEV6ehTRvrj7.js → browser/esm/OuSJblL799bkmWSG2.mjs} +1 -1
  173. package/browser/esm/{JDCQtP0lkncrmnpC2.mjs → QK8wPJEXtMpUkF5O2.mjs} +1 -1
  174. package/browser/esm/{5shGy9JSRzvoIfDE2.mjs → QWhoO1D-tt9yab9K2.mjs} +6 -6
  175. package/{cdn/assets/gXemYPUoPvaUd055.js → browser/esm/ShRab4BlbkYGaP_M2.mjs} +1 -1
  176. package/{cdn/assets/BAbRLjxqebqVPyto2.js → browser/esm/X1dNP9JuUJDTSSUz2.mjs} +1629 -1629
  177. package/browser/esm/{QEPUcBp4VkPz75h8.mjs → X5MjCuPO8Yr739vZ.mjs} +195 -195
  178. package/{cdn/assets/B0gZ5e38MXWbEDS_.js → browser/esm/YaFGb13NzomqlPhx.mjs} +1 -1
  179. package/{cdn/assets/CcPFyWALYlJWf17T.js → browser/esm/buApadOsUzJffqMK2.mjs} +1 -1
  180. package/browser/esm/{_cZz4ZhEEr54LYNe2.mjs → cIxxV_90h2dPQozO2.mjs} +1 -1
  181. package/browser/esm/index.mjs +6 -6
  182. package/browser/esm/{D718rIGL3d_m1mjm2.mjs → nY56r1ctOp0l-Cj42.mjs} +1 -1
  183. package/browser/esm/{DevyWm6bXV7lW2dr.mjs → uCF09-daiySIvpQn.mjs} +5 -5
  184. package/browser/esm/{WfqSQXib2MuH663g.mjs → uY2BXFDda7fHQFuK.mjs} +2 -2
  185. package/browser/esm/{CksEMRqAqI-_nekb.mjs → uf2cbFmQ5GH4QguP.mjs} +12 -12
  186. package/{cdn/assets/n_NkstgVVwl2iAnp.js → browser/esm/x6BOR0Zsm6T0JGoW.mjs} +2 -2
  187. package/{cdn/assets/C7b3GyO7FCiMLeyn2.js → browser/esm/zMr7JGzVhJy9UkSR.mjs} +1 -1
  188. package/{browser/esm/BJVcTpMN-u5XhMVE2.mjs → cdn/assets/4s24g7BIXmb-ZsJu.js} +1 -1
  189. package/{browser/esm/OyyHiDjohIf4lZX62.mjs → cdn/assets/4uPEJOprzEht4SzA.js} +1 -1
  190. package/cdn/assets/{C_W3L9-im26Qc-Ub.js → 6kb7eUPQPaaWHmrP.js} +2 -2
  191. package/{browser/esm/Cjbksosgv7NZFNE0.mjs → cdn/assets/8CSB84e_emQV5R8x2.js} +1 -1
  192. package/cdn/assets/{BgwzL8v2pmR5HJXW2.js → 9XdPIuWzuP_fNsMc2.js} +1 -1
  193. package/cdn/assets/{D7WMzCfJnKIfTbdg.js → B01InbzHQYdDE8i5.js} +8 -8
  194. package/cdn/assets/{BQIRHi8T3P5MZtan2.js → B2NuZPYij8J3kTpp2.js} +1 -1
  195. package/cdn/assets/{CdDTtABobc5txUF6.js → B3c7lB4rkBwYOv6w2.js} +12 -12
  196. package/cdn/assets/{CLEhV4ZVh2Jf4WLI.js → B3q6CHSdywBA_IuW.js} +3 -3
  197. package/cdn/assets/{ryzcqI-93l1HBuTe2.js → B6Sdb1B6hJzZOmK42.js} +8 -8
  198. package/cdn/assets/{Cb7x4GW2rRvj_q2Z.js → B9gOvGXhUTZKL-HS.js} +3 -3
  199. package/{browser/esm/CU1J-I76aVm-KPP6.mjs → cdn/assets/BAL80tfcY_xLu0G0.js} +1 -1
  200. package/cdn/assets/{w65zHFqjAp_NlbXg2.js → BAxsBsOz3AJuEFOH2.js} +7 -7
  201. package/cdn/assets/{9ra2y9Srlg_Pw7Q32.js → BC5-Aqh8iVN25i1L.js} +76 -76
  202. package/cdn/assets/{CcuNkPxT6rqElgbZ.js → BLqwwpQl8XESCuBb.js} +1 -1
  203. package/cdn/assets/{BsiuCRJjX2LRrDF22.js → BMBrXd8xf13n1fFf2.js} +12 -12
  204. package/cdn/assets/{DA4QV7VUyNUEfx1k2.js → BNXRa9Q6esS40zrP2.js} +23 -23
  205. package/cdn/assets/{CpzLNwtfx0Zd0OZ02.js → BOQ_aIsihPsIbZKi.js} +1 -1
  206. package/cdn/assets/{CEyEKBYpjE5GGcmE.js → BPIFGE6onebofB6E.js} +8 -8
  207. package/cdn/assets/{DKwpjlUd2pFOI9yp2.js → BPYBuLSyiHvC6HiX2.js} +38 -38
  208. package/{browser/esm/Co06Uf-tv1IuVQhe.mjs → cdn/assets/BQaSJTMvIv7JCgD6.js} +1 -1
  209. package/{browser/esm/BQhVWbI9uag9iRfX2.mjs → cdn/assets/BQkmUzRKlWiqor0q.js} +1 -1
  210. package/{browser/esm/R0Xd51SJLUebJwYv.mjs → cdn/assets/BRHP1tO4uz2mscfE2.js} +2 -2
  211. package/{browser/esm/BUjTEjAeByh6MKpn.mjs → cdn/assets/BSLpLAM29GayIcHp.js} +1 -1
  212. package/cdn/assets/{D-1WiFWkKNPWXppx.js → BVLs5hMoDYB3C1o2.js} +1 -1
  213. package/cdn/assets/{vP8Rb-lgzeerBAx42.js → BW1dPK38H6_2KNgN.js} +1 -1
  214. package/{browser/esm/BSWXx2rKOMPxLLs8.mjs → cdn/assets/BXyAtmroS_bl4Hb12.js} +1 -1
  215. package/cdn/assets/{C8qOmdaHh4WQkzEy.js → Bb2KUiusJj-R9-bL.js} +1 -1
  216. package/cdn/assets/{BoWCDK44X4tp02_42.js → BbWwG0VXcXl_hRVo.js} +1 -1
  217. package/cdn/assets/{C5u9ds7LUh9JJEbW.js → Bc6eSp3eJSBG2upN.js} +2 -2
  218. package/cdn/assets/{Cy6Cst4s2vE_WWKK2.js → Bhoz1Sbq-j_YrLg52.js} +12 -12
  219. package/cdn/assets/{FbLFNYdTqRtQ7QiS.js → BkUQ2rZTe8VAO1oB.js} +9 -9
  220. package/cdn/assets/{BHpE1nCbJEbRdzIG2.js → BlQSSKKj6whg6HxL2.js} +16 -16
  221. package/cdn/assets/{BLpNuslYLGia3h9t2.js → BmDHD3gIBb1ZRHAi2.js} +2 -2
  222. package/{browser/esm/S4MMwlNd4kcK3RDU.mjs → cdn/assets/Bn0Zl7pydiHARthC.js} +1 -1
  223. package/cdn/assets/Bn0Zl7pydiHARthC2.js +24 -0
  224. package/{browser/esm/BiomOxscV1M0Uw2n.mjs → cdn/assets/BpYrVpNYxLiyvpsG.js} +1 -1
  225. package/cdn/assets/{mI8tvfP8ed2Zerre.js → Bp_LNXqn6oIX3Fid.js} +442 -442
  226. package/{browser/esm/BuoHLVUSwf-mq0hg2.mjs → cdn/assets/BrBFY1fUM6isyJR7.js} +1 -1
  227. package/cdn/assets/{BUeKY15yUtNX2nYg.js → BtC1CaZjkCNKOB_x.js} +2 -2
  228. package/cdn/assets/{B15uSTYXbbRVKP0X2.js → BxGxLT2jIfZse_a12.js} +7 -7
  229. package/cdn/assets/{D3Qv3--VfvVHImXW.js → BxVi9Yt82U55JbkE.js} +1 -1
  230. package/cdn/assets/{C213T1hhBphljJTF.js → BxWGBuBUE-ef4qaS.js} +1 -1
  231. package/{browser/esm/C5Oex2msskTvaCQ92.mjs → cdn/assets/ByJEKW7Yb2GMOYw1.js} +1 -1
  232. package/cdn/assets/{8rILuc7bVIGEeb97.js → C4gE_UWGPgSx-l4F.js} +101 -101
  233. package/{browser/esm/efVOgresgMXMdh7J2.mjs → cdn/assets/CAJyOPOsOhkyreOa.js} +1 -1
  234. package/{browser/esm/DZGMsbIACs9TKYrM2.mjs → cdn/assets/CAR-0i_rg3wlCjH72.js} +1 -1
  235. package/{browser/esm/GETgdmj9xZWcFrIC2.mjs → cdn/assets/CED7roWwWtDJSGsI2.js} +1595 -1591
  236. package/cdn/assets/{D8sc6gCXnfpn7W79.js → CEfH1gPlh_URyXo_.js} +2 -2
  237. package/cdn/assets/{FHIg3Yb5Rn05W1F22.js → CEyHZpFHiQtmnCve2.js} +92 -92
  238. package/cdn/assets/{XuGWliVSRCNi5it1.js → CFQz07nMv0V8904P2.js} +1 -1
  239. package/cdn/assets/CG1w46Kqn0AmNJjP2.js +24 -0
  240. package/{browser/esm/OtaDVRqZVyi7IBBa.mjs → cdn/assets/CGphh091pmrMF0fz2.js} +1 -1
  241. package/cdn/assets/{C-F-eIvIRbCAMD662.js → CHS-pOLaI-3RNreZ2.js} +65 -65
  242. package/cdn/assets/{D6B6VvRh1cfT2e-M2.js → CI29ulYNfhsjjSbV2.js} +8 -8
  243. package/cdn/assets/{BWbSIhQVBaXJNFgl.js → CJDbSQUUpT8PLGGS.js} +277 -277
  244. package/cdn/assets/{Cx1HsOCOdZoKJDEN2.js → CK4fXD1IwAeSeTwV2.js} +13 -13
  245. package/cdn/assets/{C-KWjRT0CUb-bkvj2.js → CKytyHmKFv4IQWen2.js} +25 -25
  246. package/{browser/esm/lfNgkSweNYs6v7g22.mjs → cdn/assets/CLPEH9osFTX0UFh-.js} +2 -2
  247. package/cdn/assets/{CXgMJ_MuMQRu0isj2.js → COM2FF9Jardk1EZo.js} +27 -27
  248. package/cdn/assets/{BUokT-PbfvYzD63f.js → CPFAhBuBEQ2WQ1xL.js} +1 -1
  249. package/cdn/assets/{BZDRat2zTkUEg9cR.js → CQ6dwRf0tKhftmHo.js} +14 -14
  250. package/cdn/assets/{C3A-yJ12PN-CPPnI.js → CRZ6nMW0sPFhGN8u.js} +1 -1
  251. package/cdn/assets/{BsY_DyFxoqjRHTv0.js → CTC5YAOtLAZGGiUL2.js} +1 -1
  252. package/{browser/esm/B45vVm2Ma1i2b6_F.mjs → cdn/assets/CX79dsSUsejpgy3I2.js} +1 -1
  253. package/cdn/assets/{CVbPAnmNN3TxMkq4.js → CYsJALdAfHsvSsfO.js} +1 -1
  254. package/{browser/esm/DoAKAH3cmECZGboo2.mjs → cdn/assets/CaQy0UO3TARwf9lv2.js} +1 -1
  255. package/cdn/assets/{Bsfof8nD-exhrNwn.js → CdA4fRy3QcuvWfzj.js} +1 -1
  256. package/{browser/esm/DuMveAGZv1j1YAwO.mjs → cdn/assets/Cm_5b6gJsOcFsRgO.js} +2 -2
  257. package/cdn/assets/{B69EK_yDF3V8Rq2r2.js → CqEfk9KdtsnilBpc2.js} +47 -47
  258. package/cdn/assets/{B72sK2NRGAke-aCk.js → CqUf50LIOBNC_hcw.js} +1 -1
  259. package/{browser/esm/CyS1VLOdAweeZsMV.mjs → cdn/assets/CtwFmaqTopRJLzS-2.js} +1 -1
  260. package/cdn/assets/{C4vZWmW5DZLQTTAx.js → CuGd6EIdmLLIjJmy.js} +231 -231
  261. package/cdn/assets/{C8W7e-O1V1Mo2HOp.js → Cw3IdV71ouaTuRGF.js} +3 -3
  262. package/{browser/esm/BCcbek_TFOdgqxXq.mjs → cdn/assets/CwIRaew_lypEkoUe2.js} +1 -1
  263. package/cdn/assets/{CYFmWcVbnUCDPJ8m.js → CxYIPOzcP70mE8ty.js} +2 -2
  264. package/{browser/esm/BmC-_QeQ-53oyorq2.mjs → cdn/assets/D13cYHehI1MFANBs2.js} +1 -1
  265. package/{browser/esm/BwbR2Dao5LgLYQgV.mjs → cdn/assets/D1ux3f7S9r50KVKs.js} +1 -1
  266. package/cdn/assets/{5SHS088DeaZ82qmD.js → D2JDIYFefaXzh0Q7.js} +1 -1
  267. package/cdn/assets/{PLFw1pLjdLQLrlB0.js → D9LRNXQqJCBaGu0Z.js} +6 -6
  268. package/cdn/assets/{CcOMQhQN8PPKQulw2.js → D9PfBHlV1Y9_Y-zn2.js} +72 -72
  269. package/cdn/assets/{B08GCyGdLNiXtb_R2.js → DGacyXSHaj_qFWtj.js} +1 -1
  270. package/cdn/assets/{CcXDdl0SsmyEFtmU.js → DJXeHGaPVXVYlPh4.js} +113 -113
  271. package/cdn/assets/{CmRLwDXiK3woZrVI.js → DMPnZEIYOsBo9meY2.js} +6057 -6013
  272. package/cdn/assets/{0uSu6ChH_CTmXM2q2.js → DOVauj9y5INMkh2p2.js} +73 -73
  273. package/cdn/assets/{BCOGONuWSq4hgADu.js → DOl37EQPys2hSQ8A2.js} +538 -538
  274. package/{browser/esm/CwRAK6IVjIYuwofE.mjs → cdn/assets/DPFLq_i4WqawDi012.js} +1 -1
  275. package/{browser/esm/DfIwClWz03Qw38-O.mjs → cdn/assets/DVKsvS22o0v0glGu2.js} +1 -1
  276. package/cdn/assets/{CyomJv3_vWy4trRe.js → DaHGI3svC3_Ne-4m.js} +1 -1
  277. package/cdn/assets/{B7SJVFUHxy16UJRA.js → Db3jycTcoF5LNwZu.js} +3 -3
  278. package/{browser/esm/CXvcyGN4L9iDr1LK2.mjs → cdn/assets/DbHaqFzeVSgieXnR.js} +1 -1
  279. package/cdn/assets/{hqW1sMr576y2S1qX.js → DbmXbOECZu0Do014.js} +7 -7
  280. package/cdn/assets/{CwGEi_5ErUTrkWRj.js → DeBFiQAoGIJi-RTE.js} +6 -6
  281. package/cdn/assets/{CJoCbCtXkTbj6-nC.js → Deod2y9FvWRW6-1L.js} +2 -2
  282. package/{browser/esm/B8q1hrKv7LAL4xmM2.mjs → cdn/assets/Df4TV780zP-UkbB1.js} +1 -1
  283. package/cdn/assets/{BeFqINcF0gIgBnB1.js → Df4qEjXlCr78Fb20.js} +7 -7
  284. package/cdn/assets/{CiTCEuoCSDCy9khR.js → Dh6uFsw0ts9G0IzC.js} +2 -2
  285. package/cdn/assets/{Cpkl0peJbfEXl6ta2.js → DjgsfBCsDutlNfA32.js} +25 -25
  286. package/cdn/assets/{CXKguOBpJrsoXPTQ.js → Dm5N2qOf6OaXFKgs.js} +152 -152
  287. package/cdn/assets/{Dg7wE0RZdHeJv5372.js → DqR9ypY2lo7NdhdA2.js} +1 -1
  288. package/cdn/assets/{Bub12rk6wWVZVNx62.js → DwiLonfLJkGM8c_i2.js} +135 -135
  289. package/cdn/assets/{DBKHpCvbeQU-Y4eS2.js → Dyq9Ikb6bjr5wlTM2.js} +5 -5
  290. package/cdn/assets/{B1Lxf24mP-fwn03r2.js → FBT-Uj-UHaWcC9hf2.js} +60 -60
  291. package/{browser/esm/mbUWaIl3SJkdbWx02.mjs → cdn/assets/GJzjEL175hRFbbbB2.js} +1 -1
  292. package/cdn/assets/{DB_I2ygTnDxYiYyc2.js → I6hoqlf8ReojOl6S2.js} +215 -206
  293. package/cdn/assets/{BuPGWNRZMMyn4fm8.js → JXU6hMEMJG28IfSo.js} +8 -8
  294. package/cdn/assets/{Beyy1fJJeov2iYL4.js → KHBwkVymIFAD9Dbf.js} +4 -4
  295. package/cdn/assets/{C0HHZ3XLqp0LgRuW2.js → NZMc3v4NvbbnA8fu.js} +1 -1
  296. package/cdn/assets/{CWIp4JC2SCM6lg-s.js → NwbxANY_VGPKT45F.js} +7 -7
  297. package/cdn/assets/{BPZxx-OH0wACHLsN.js → O8EB2u7R_rndPG2C.js} +1 -1
  298. package/{browser/esm/DAhlDEV6ehTRvrj72.mjs → cdn/assets/OuSJblL799bkmWSG.js} +1 -1
  299. package/cdn/assets/{JDCQtP0lkncrmnpC.js → QK8wPJEXtMpUkF5O.js} +1 -1
  300. package/{browser/esm/Dcpd3kkjvidrDQuN.mjs → cdn/assets/QZtjqpJrLQtNbNwq.js} +1955 -1940
  301. package/{browser/esm/gXemYPUoPvaUd055.mjs → cdn/assets/ShRab4BlbkYGaP_M.js} +1 -1
  302. package/{browser/esm/B0gZ5e38MXWbEDS_.mjs → cdn/assets/YaFGb13NzomqlPhx.js} +1 -1
  303. package/cdn/assets/{B-ylRvlizyArIFrd.js → aa5Vge2hHXpeHQv9.js} +2218 -2218
  304. package/cdn/assets/{KS5XJUWdKvEezJfs2.js → b2vK8MBPEiSThFFJ.js} +6 -6
  305. package/{browser/esm/DjyzSKZNfvxPmFqi.mjs → cdn/assets/bY3efNg89jFPogek2.js} +786 -786
  306. package/{browser/esm/CcPFyWALYlJWf17T2.mjs → cdn/assets/buApadOsUzJffqMK.js} +1 -1
  307. package/cdn/assets/{_cZz4ZhEEr54LYNe.js → cIxxV_90h2dPQozO.js} +1 -1
  308. package/cdn/assets/{bQ6G23JQrt4l2Ls92.js → jHFW_YYMzmnHs6rB2.js} +9 -9
  309. package/cdn/assets/{hHkEq7qn0rj2XKD82.js → lA8F04dL44NCFFgB2.js} +22 -22
  310. package/cdn/assets/{FAaqx6EbN4JxNuNL2.js → lHtLCWS9jxiZzvGt2.js} +12722 -12670
  311. package/cdn/assets/{Cdm7E0sw56lpdqRU2.js → lXaq1eaUXGJUybgi2.js} +14 -14
  312. package/cdn/assets/{CdTHBpWoW1Fu4Dg_.js → mTL1l5m3_3yXiJWq.js} +5 -5
  313. package/{browser/esm/DJUnZsVsvwRT_Onq2.mjs → cdn/assets/nDh85tt1QTeI0M52.js} +2 -2
  314. package/cdn/assets/{D718rIGL3d_m1mjm.js → nY56r1ctOp0l-Cj4.js} +1 -1
  315. package/cdn/assets/{KOiR-1SNAX7AiEes.js → qiBKIZwqkjWBAX3K.js} +3 -3
  316. package/cdn/assets/{Cf-bndowUtxZ6tmG.js → u4PJnC_HIHrIUCU8.js} +3 -3
  317. package/{browser/esm/C7b3GyO7FCiMLeyn.mjs → cdn/assets/zMr7JGzVhJy9UkSR2.js} +1 -1
  318. package/cdn/index.js +2 -2
  319. package/package.json +3 -3
  320. package/browser/cjs/00npLPxW7DhY7cIJ.cjs +0 -5
  321. package/browser/cjs/1gbSV4OYBoEWTygY2.cjs +0 -1
  322. package/browser/cjs/BC3OSmoFNyA52TRp2.cjs +0 -1
  323. package/browser/cjs/BFmgMQoM5sQsWIxf2.cjs +0 -1
  324. package/browser/cjs/BIN8L9V0hoUwMh64.cjs +0 -1
  325. package/browser/cjs/BjjAQLiorKWXy3g5.cjs +0 -4
  326. package/browser/cjs/BoRfsJCaLzUHQseD.cjs +0 -1
  327. package/browser/cjs/CBLwtHFYNB1BTpSS.cjs +0 -1
  328. package/browser/cjs/CGtG2pvGgTAnImBg2.cjs +0 -8
  329. package/browser/cjs/CQ-W9AUNHdts8pmY.cjs +0 -1
  330. package/browser/cjs/CVHRh1RGDSgqfAm4.cjs +0 -2
  331. package/browser/cjs/CcqhH_Ign02tLFbU2.cjs +0 -1
  332. package/browser/cjs/CdsreHc3A0wBhEy9.cjs +0 -14
  333. package/browser/cjs/CgyU8XPzm6O1a93m.cjs +0 -41
  334. package/browser/cjs/CzGNIWwu8KL3tcCO2.cjs +0 -1
  335. package/browser/cjs/D-8QQWC-67PplJdV2.cjs +0 -1
  336. package/browser/cjs/D6XEHfNbKx-9qZye.cjs +0 -32
  337. package/browser/cjs/DCVnwgmc5HuYp_iv2.cjs +0 -1
  338. package/browser/cjs/DOEhH2HGT1Zv0irr2.cjs +0 -1
  339. package/browser/cjs/DWyoF5GqKXce_GmT2.cjs +0 -3
  340. package/browser/cjs/Dp2fPEReFhDsI01j.cjs +0 -3
  341. package/browser/cjs/Dx79LP1-YCQg8B872.cjs +0 -1
  342. package/browser/cjs/Qp04O3ALK3M9d3At.cjs +0 -54
  343. package/browser/cjs/qA_ElZ6f49Un56OC.cjs +0 -1
  344. package/browser/cjs/s2c8Pr4obSACz8Lu2.cjs +0 -1
  345. package/browser/cjs/uAWsHfi-JD_ZQIT82.cjs +0 -1
  346. package/browser/cjs/y4KFnuCKf8r5oFal2.cjs +0 -1
  347. package/cdn/assets/S4MMwlNd4kcK3RDU.js +0 -24
  348. package/cdn/assets/S4MMwlNd4kcK3RDU2.js +0 -24
  349. /package/browser/cjs/{1XrWGMP3GmsQOMIX.cjs → 1XrWGMP3GmsQOMIX2.cjs} +0 -0
  350. /package/browser/cjs/{B4ANcw0mAmhe2Aeb2.cjs → B4ANcw0mAmhe2Aeb.cjs} +0 -0
  351. /package/browser/cjs/{B6vy56yEA1I3B74O.cjs → B6vy56yEA1I3B74O2.cjs} +0 -0
  352. /package/browser/cjs/{BAxVLKkxFgI6cXnR2.cjs → BAxVLKkxFgI6cXnR.cjs} +0 -0
  353. /package/browser/cjs/{BK0SCfN_VZYqBxoQ2.cjs → BK0SCfN_VZYqBxoQ.cjs} +0 -0
  354. /package/browser/cjs/{Btc0Nzu40VYOpzLX.cjs → Btc0Nzu40VYOpzLX2.cjs} +0 -0
  355. /package/browser/cjs/{BvG8N7G_8CXIAlT-.cjs → BvG8N7G_8CXIAlT-2.cjs} +0 -0
  356. /package/browser/cjs/{C0g87ndP2zMUbX6f2.cjs → C0g87ndP2zMUbX6f.cjs} +0 -0
  357. /package/browser/cjs/{CRcv32tHTbGSGtkh2.cjs → CRcv32tHTbGSGtkh.cjs} +0 -0
  358. /package/browser/cjs/{CfXcRa4RlFmqU0Op.cjs → CfXcRa4RlFmqU0Op2.cjs} +0 -0
  359. /package/browser/cjs/{DF4l8xrxkcLkgExp.cjs → DF4l8xrxkcLkgExp2.cjs} +0 -0
  360. /package/browser/cjs/{DG2kqsWRUtVugjay2.cjs → DG2kqsWRUtVugjay.cjs} +0 -0
  361. /package/browser/cjs/{DSXLVieENYN9qXYl.cjs → DSXLVieENYN9qXYl2.cjs} +0 -0
  362. /package/browser/cjs/{PmwvZPFhqmL4DO58.cjs → PmwvZPFhqmL4DO582.cjs} +0 -0
  363. /package/browser/cjs/{aONv0Ys3C8xmnaR82.cjs → aONv0Ys3C8xmnaR8.cjs} +0 -0
  364. /package/browser/cjs/{bM25C5avKgBAJVfk2.cjs → bM25C5avKgBAJVfk.cjs} +0 -0
  365. /package/browser/cjs/{z_rZE1OHFPpdGBh4.cjs → z_rZE1OHFPpdGBh42.cjs} +0 -0
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.3
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.5
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { r as e } from "./BEb3QhWwGW8rErZy2.js";
8
- import { i as t, t as n } from "./BSWXx2rKOMPxLLs82.js";
9
- import { C as r, K as i, L as a, M as o, P as s, a as c, b as l, i as u, k as d, l as f, n as p, p as m, q as h, w as g, x as _, z as v } from "./DB_I2ygTnDxYiYyc2.js";
10
- import { $t as y, A as b, At as x, B as S, Bt as C, Ct as w, D as T, Dt as E, E as ee, F as te, Ft as ne, Gt as re, It as ie, J as D, Jt as ae, K as oe, Lt as se, Mt as ce, N as le, Nt as ue, O as de, Ot as O, Pt as k, Q as fe, R as A, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as j, Vt as ve, W as M, Wt as ye, X as be, Y as xe, Yt as N, Zt as Se, _ as P, _t as F, an as Ce, at as we, bt as Te, c as Ee, dt as De, et as Oe, f as ke, ft as Ae, gt as je, h as Me, in as Ne, jt as I, k as Pe, kt as Fe, ln as Ie, lt as Le, n as Re, p as ze, q as Be, qt as Ve, rn as He, rt as Ue, tn as We, tt as Ge, u as Ke, un as qe, vt as Je, w as Ye, x as Xe, xt as Ze, y as Qe, yt as $e, z as L } from "./FAaqx6EbN4JxNuNL2.js";
11
- var et, tt = class extends s {
7
+ import { D as e, I as t, J as n, K as r, b as i, c as a, d as o, g as s, h as c, j as l, n as u, q as d, r as f, s as p, x as m, z as h } from "./I6hoqlf8ReojOl6S.mjs";
8
+ import { r as g } from "./Bn0Zl7pydiHARthC.mjs";
9
+ import { i as _, t as v } from "./BXyAtmroS_bl4Hb1.mjs";
10
+ import { $ as y, $t as b, At as x, Bt as S, C, Ct as ee, Dt as w, Ft as te, G as T, I as E, It as ne, Kt as re, Lt as ie, Mt as ae, N as oe, Nt as se, Ot as D, P as ce, Q as le, R as ue, Rt as O, S as de, St as fe, T as pe, U as me, W as he, Wt as ge, X as _e, Xt as ve, Y as ye, Yt as be, Z as xe, Zt as k, _ as A, _t as Se, a as Ce, an as we, at as Te, b as j, cn as Ee, ct as De, dn as Oe, dt as ke, en as Ae, f as M, gt as je, h as Me, ht as N, in as P, it as F, j as Ne, k as Pe, kt as Fe, l as Ie, ln as Le, lt as Re, nn as ze, nt as Be, on as Ve, p as I, pt as He, q as Ue, qt as We, r as Ge, sn as Ke, st as qe, v as Je, vt as Ye, w as Xe, xt as Ze, yt as Qe, z as L, zt as $e } from "./CdcmFHYIMwynrOPS.mjs";
11
+ var et, tt = class extends l {
12
12
  constructor(e, t = 50) {
13
13
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
14
14
  }
@@ -153,7 +153,7 @@ var R = class e {
153
153
  getName() {
154
154
  if (this._name !== null && this._name !== void 0) return this._name;
155
155
  let e = this._cleanPath();
156
- return e && O(e) || null;
156
+ return e && D(e) || null;
157
157
  }
158
158
  getPath() {
159
159
  return this._path;
@@ -164,7 +164,7 @@ var R = class e {
164
164
  getExtension() {
165
165
  let e = this._cleanPath();
166
166
  if (!e) return null;
167
- let t = b(e);
167
+ let t = E(e);
168
168
  return t ? t.toLowerCase() : null;
169
169
  }
170
170
  getEncryption() {
@@ -251,10 +251,10 @@ var R = class e {
251
251
  }
252
252
  switch (o) {
253
253
  case "file": {
254
- let e = n, r = e?.name, o = r ? `${O(r)}` : "";
254
+ let e = n, r = e?.name, o = r ? `${D(r)}` : "";
255
255
  s = await e.arrayBuffer(), c = {
256
256
  format: a,
257
- ext: b(r),
257
+ ext: E(r),
258
258
  name: o,
259
259
  absolutePath: r,
260
260
  size: e.size,
@@ -278,7 +278,7 @@ var R = class e {
278
278
  let [, t] = n.split(",");
279
279
  e = t;
280
280
  } else e = n;
281
- s = p.base64ToArrayBuffer(e), c = {
281
+ s = h.base64ToArrayBuffer(e), c = {
282
282
  format: a,
283
283
  size: e.length
284
284
  };
@@ -294,7 +294,7 @@ var R = class e {
294
294
  e = i.input, t = i.init, r = i.timeout;
295
295
  }
296
296
  }
297
- let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = b(u);
297
+ let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = E(u);
298
298
  try {
299
299
  let n = await fetch(e, {
300
300
  ...t,
@@ -306,7 +306,7 @@ var R = class e {
306
306
  s = r, c = {
307
307
  format: a,
308
308
  ext: d,
309
- name: O(u, !0),
309
+ name: D(u, !0),
310
310
  absolutePath: u
311
311
  };
312
312
  } catch (e) {
@@ -377,7 +377,7 @@ var R = class e {
377
377
  }
378
378
  if (typeof File < "u" && e instanceof File) return "file";
379
379
  if (typeof Blob < "u" && e instanceof Blob) return "blob";
380
- let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = p.isNodeBuffer(e);
380
+ let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = h.isNodeBuffer(e);
381
381
  return t || n || r ? "buffer" : typeof ReadableStream < "u" && e instanceof ReadableStream || Object.prototype.toString.call(e) === "[object ReadableStream]" || e && typeof e.getReader == "function" && e.locked !== void 0 ? "stream" : null;
382
382
  }
383
383
  }, st = class extends ot {
@@ -406,7 +406,7 @@ var R = class e {
406
406
  throw e;
407
407
  }
408
408
  let t = e.flatMap((e) => e.exts.map((e) => "." + e)).join(", ");
409
- return f.openFileDialog(t);
409
+ return i.openFileDialog(t);
410
410
  }
411
411
  async findOpenOrigin(e) {
412
412
  return V(e) ? this._findOpenHandle(e) : null;
@@ -428,9 +428,9 @@ var R = class e {
428
428
  throw Error(`Cannot read local file path '${e}' in browser environment. Use a file input element or fetch for remote URLs.`);
429
429
  }
430
430
  async write(e) {
431
- let { origin: t, suggestedName: n, format: r, encode: a, prompt: o } = e, s = [r, ...(await this._getWriteFormats()).filter((e) => e.key !== r.key)], c = typeof globalThis.showSaveFilePicker == "function", u = !o && t.canWrite() ? this._handleCache.get(t) : void 0;
431
+ let { origin: t, suggestedName: n, format: r, encode: i, prompt: o } = e, s = [r, ...(await this._getWriteFormats()).filter((e) => e.key !== r.key)], c = typeof globalThis.showSaveFilePicker == "function", l = !o && t.canWrite() ? this._handleCache.get(t) : void 0;
432
432
  if (c) try {
433
- if (u) {
433
+ if (l) {
434
434
  let e = await async function(e) {
435
435
  try {
436
436
  if (typeof e.queryPermission != "function") return "granted";
@@ -439,41 +439,41 @@ var R = class e {
439
439
  } catch {
440
440
  return "unavailable";
441
441
  }
442
- }(u);
442
+ }(l);
443
443
  if (e === "denied") return null;
444
- e !== "granted" && (u = void 0);
444
+ e !== "granted" && (l = void 0);
445
445
  }
446
- let o = !!u;
446
+ let o = !!l;
447
447
  if (!o) {
448
- u = await globalThis.showSaveFilePicker({
448
+ l = await globalThis.showSaveFilePicker({
449
449
  suggestedName: n,
450
450
  types: ct(s)
451
451
  });
452
- let t = await this._findOpenHandle(u, e.workbook?.getOrigin?.());
453
- if (t) throw new l(i("error.io.openElsewhere", { name: t.getName() ?? u.name ?? "" }));
452
+ let t = await this._findOpenHandle(l, e.workbook?.getOrigin?.());
453
+ if (t) throw new a(f("error.io.openElsewhere", { name: t.getName() ?? l.name ?? "" }));
454
454
  }
455
- let c = ut(u.name ?? n), d = s.find((e) => e.exts.some((e) => e.toLowerCase() === c)) ?? r, f = o ? t : new R(u.name ?? n, {
456
- format: d.key,
455
+ let c = ut(l.name ?? n), u = s.find((e) => e.exts.some((e) => e.toLowerCase() === c)) ?? r, d = o ? t : new R(l.name ?? n, {
456
+ format: u.key,
457
457
  canWrite: !0
458
- }), p = await a(d.key, f);
458
+ }), p = await i(u.key, d);
459
459
  if (!p) return null;
460
- let m = new Blob([lt(p)], { type: d.mimeType || "application/octet-stream" }), h = await u.createWritable();
461
- if (await h.write(m), await h.close(), this._handleCache.set(f, u), f instanceof R) {
462
- let e = await Promise.resolve(u.getFile?.()).then((e) => e?.lastModified ?? null, () => null);
463
- f.update({
460
+ let m = new Blob([lt(p)], { type: u.mimeType || "application/octet-stream" }), h = await l.createWritable();
461
+ if (await h.write(m), await h.close(), this._handleCache.set(d, l), d instanceof R) {
462
+ let e = await Promise.resolve(l.getFile?.()).then((e) => e?.lastModified ?? null, () => null);
463
+ d.update({
464
464
  size: m.size,
465
465
  lastModified: e
466
466
  });
467
467
  }
468
- return f;
468
+ return d;
469
469
  } catch (e) {
470
470
  if (e?.name === "AbortError") return null;
471
- if (e instanceof l) throw e;
471
+ if (e instanceof a) throw e;
472
472
  }
473
- let d = t.getPath(), f = d ? d.split(/[/\\]/).pop() : null, p = f && r.exts.some((e) => e.toLowerCase() === ut(f)) ? f : n, m = d !== p || t.canWrite() ? new R(p, {
473
+ let u = t.getPath(), d = u ? u.split(/[/\\]/).pop() : null, p = d && r.exts.some((e) => e.toLowerCase() === ut(d)) ? d : n, m = u !== p || t.canWrite() ? new R(p, {
474
474
  format: r.key,
475
475
  canWrite: !1
476
- }) : t, h = await a(r.key, m);
476
+ }) : t, h = await i(r.key, m);
477
477
  if (!h) return null;
478
478
  let g = new Blob([lt(h)], { type: r.mimeType || "application/octet-stream" });
479
479
  return function(e, t) {
@@ -527,7 +527,7 @@ var dt = class {
527
527
  get isIFont() {
528
528
  return !0;
529
529
  }
530
- }, ft = e({
530
+ }, ft = g({
531
531
  findBestMatch: () => bt,
532
532
  getFontList: () => gt,
533
533
  setFontList: () => W
@@ -548,7 +548,7 @@ var dt = class {
548
548
  "Trebuchet MS",
549
549
  "Verdana"
550
550
  ], H = /* @__PURE__ */ new Map();
551
- H.set(P.GenericName.Serif, ["Tahoma"]), H.set(P.GenericName.SanSerif, ["Calibri"]), H.set(P.GenericName.MonoSpace, ["Courier New"]), H.set(P.GenericName.Cursive, ["Comic Sans MS"]), H.set(P.GenericName.Fantasy, ["Luminari"]), H.set(P.GenericName.UISystem, ["Arial"]), H.set(P.GenericName.UISerif, ["Tahoma"]), H.set(P.GenericName.UISanSerif, ["Arial"]), H.set(P.GenericName.UIMonoSpace, ["Courier New"]), H.set(P.GenericName.UIRounded, ["Arial"]), H.set(P.GenericName.Math, []), H.set(P.GenericName.Emoji, []), H.set(P.GenericName.Fangsong, []);
551
+ H.set(I.GenericName.Serif, ["Tahoma"]), H.set(I.GenericName.SanSerif, ["Calibri"]), H.set(I.GenericName.MonoSpace, ["Courier New"]), H.set(I.GenericName.Cursive, ["Comic Sans MS"]), H.set(I.GenericName.Fantasy, ["Luminari"]), H.set(I.GenericName.UISystem, ["Arial"]), H.set(I.GenericName.UISerif, ["Tahoma"]), H.set(I.GenericName.UISanSerif, ["Arial"]), H.set(I.GenericName.UIMonoSpace, ["Courier New"]), H.set(I.GenericName.UIRounded, ["Arial"]), H.set(I.GenericName.Math, []), H.set(I.GenericName.Emoji, []), H.set(I.GenericName.Fangsong, []);
552
552
  var U = /* @__PURE__ */ new Map(), mt = [];
553
553
  W(pt);
554
554
  var ht = eval;
@@ -592,7 +592,7 @@ function bt(e, t) {
592
592
  loaded: !1
593
593
  }), i;
594
594
  }
595
- var xt = e({
595
+ var xt = g({
596
596
  DefaultFontSizes: () => St,
597
597
  findNextFontSize: () => Ct
598
598
  }), St = Object.freeze([
@@ -614,12 +614,12 @@ var xt = e({
614
614
  48,
615
615
  72
616
616
  ]);
617
- function Ct(e, t = !0, n = St) {
618
- if (!n || n.length === 0) return e;
619
- if (e === void 0) return n[0];
620
- if (t && e >= n[n.length - 1] || !t && e <= n[0]) return e;
621
- let r = v.findEqualOrGreater(n, e);
622
- return t ? (n[r] === e && (r += 1), n[r] || --r, n[r]) : (--r, n[r]);
617
+ function Ct(e, n = !0, r = St) {
618
+ if (!r || r.length === 0) return e;
619
+ if (e === void 0) return r[0];
620
+ if (n && e >= r[r.length - 1] || !n && e <= r[0]) return e;
621
+ let i = t.findEqualOrGreater(r, e);
622
+ return n ? (r[i] === e && (i += 1), r[i] || --i, r[i]) : (--i, r[i]);
623
623
  }
624
624
  (_t ||= {}).SortOn = {
625
625
  Value: "value",
@@ -669,29 +669,29 @@ function Ct(e, t = !0, n = St) {
669
669
  SoftEdge: "softEdge",
670
670
  Reflection: "reflection"
671
671
  };
672
- var wt, Tt, Et, Dt, q = Oe.BuiltInName, Ot = {
673
- [q.Normal]: g("style.builtin.normal"),
674
- [q.Comma]: g("style.builtin.comma"),
675
- [q.Currency]: g("style.builtin.currency"),
676
- [q.Percent]: g("style.builtin.percent"),
677
- [q.Comma0]: g("style.builtin.comma0"),
678
- [q.Currency0]: g("style.builtin.currency0"),
679
- [q.Hyperlink]: g("style.builtin.hyperlink"),
680
- [q.FollowedHyperlink]: g("style.builtin.followedHyperlink"),
681
- [q.Note]: g("style.builtin.note"),
682
- [q.WarningText]: g("style.builtin.warningText"),
683
- [q.Title]: g("style.builtin.title"),
684
- [q.Input]: g("style.builtin.input"),
685
- [q.Output]: g("style.builtin.output"),
686
- [q.Calculation]: g("style.builtin.calculation"),
687
- [q.CheckCell]: g("style.builtin.checkCell"),
688
- [q.LinkedCell]: g("style.builtin.linkedCell"),
689
- [q.Total]: g("style.builtin.total"),
690
- [q.Good]: g("style.builtin.good"),
691
- [q.Bad]: g("style.builtin.bad"),
692
- [q.Neutral]: g("style.builtin.neutral"),
693
- [q.ExplanatoryText]: g("style.builtin.explanatoryText")
694
- }, kt = g("style.builtin.heading"), At = g("style.builtin.accent"), jt = g("style.builtin.accentTint"), Mt = /^Heading ([1-4])$/, Nt = /^Accent([1-6])$/, Pt = /^(20|40|60)% - Accent([1-6])$/;
672
+ var wt, Tt, Et, Dt, q = y.BuiltInName, Ot = {
673
+ [q.Normal]: d("style.builtin.normal"),
674
+ [q.Comma]: d("style.builtin.comma"),
675
+ [q.Currency]: d("style.builtin.currency"),
676
+ [q.Percent]: d("style.builtin.percent"),
677
+ [q.Comma0]: d("style.builtin.comma0"),
678
+ [q.Currency0]: d("style.builtin.currency0"),
679
+ [q.Hyperlink]: d("style.builtin.hyperlink"),
680
+ [q.FollowedHyperlink]: d("style.builtin.followedHyperlink"),
681
+ [q.Note]: d("style.builtin.note"),
682
+ [q.WarningText]: d("style.builtin.warningText"),
683
+ [q.Title]: d("style.builtin.title"),
684
+ [q.Input]: d("style.builtin.input"),
685
+ [q.Output]: d("style.builtin.output"),
686
+ [q.Calculation]: d("style.builtin.calculation"),
687
+ [q.CheckCell]: d("style.builtin.checkCell"),
688
+ [q.LinkedCell]: d("style.builtin.linkedCell"),
689
+ [q.Total]: d("style.builtin.total"),
690
+ [q.Good]: d("style.builtin.good"),
691
+ [q.Bad]: d("style.builtin.bad"),
692
+ [q.Neutral]: d("style.builtin.neutral"),
693
+ [q.ExplanatoryText]: d("style.builtin.explanatoryText")
694
+ }, kt = d("style.builtin.heading"), At = d("style.builtin.accent"), jt = d("style.builtin.accentTint"), Mt = /^Heading ([1-4])$/, Nt = /^Accent([1-6])$/, Pt = /^(20|40|60)% - Accent([1-6])$/;
695
695
  function Ft(e) {
696
696
  let t = Ot[e];
697
697
  if (t) return { key: t };
@@ -710,27 +710,27 @@ function Ft(e) {
710
710
  }
711
711
  } : null));
712
712
  }
713
- var It = (e, t, n, r, a) => {
714
- let o = JSON.parse(JSON.stringify(e.definition));
715
- o.adjs ||= [];
716
- let s = "", c = 0, l = 0;
717
- t > 0 ? (l = t, c = 100 - t, s = i("op.lighterPercent", { percent: t })) : t < 0 && (c = 100 + t, s = i("op.darkerPercent", { percent: -t })), c && o.adjs.push({ [ie.AdjustmentType.LumMod]: c }), l && o.adjs.push({ [ie.AdjustmentType.LumOff]: l });
718
- let u = new Ce({
719
- val: o.val,
720
- adjs: o.adjs
721
- }, n), d = u.toString();
722
- r?.set(d, u);
723
- let f = u.toRGBA().toString();
724
- return a?.set(f, u), {
725
- description: e.description + ", " + s,
726
- definition: o
713
+ var It = (e, t, n, r, i) => {
714
+ let a = JSON.parse(JSON.stringify(e.definition));
715
+ a.adjs ||= [];
716
+ let o = "", s = 0, c = 0;
717
+ t > 0 ? (c = t, s = 100 - t, o = f("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = f("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [S.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [S.AdjustmentType.LumOff]: c });
718
+ let l = new Ee({
719
+ val: a.val,
720
+ adjs: a.adjs
721
+ }, n), u = l.toString();
722
+ r?.set(u, l);
723
+ let d = l.toRGBA().toString();
724
+ return i?.set(d, l), {
725
+ description: e.description + ", " + o,
726
+ definition: a
727
727
  };
728
728
  };
729
729
  function Lt(e) {
730
730
  let t, n = e.trim();
731
731
  if (!n) return;
732
732
  try {
733
- let e = ze.shared().tokenize(n, !1);
733
+ let e = ce.shared().tokenize(n, !1);
734
734
  if (e.errors.length > 0) return;
735
735
  t = e.tokens;
736
736
  } catch {
@@ -748,22 +748,22 @@ function Lt(e) {
748
748
  case "NumberToken":
749
749
  case "ScientificDigit":
750
750
  case "DigitToken": {
751
- let e = Te(o).value;
751
+ let e = be(o).value;
752
752
  return r === 0 ? e : r * e;
753
753
  }
754
- case "StringToken": return r === 0 ? ae(o).value : void 0;
755
- case "BooleanToken": return r === 0 ? ve(o).value : void 0;
754
+ case "StringToken": return r === 0 ? Re(o).value : void 0;
755
+ case "BooleanToken": return r === 0 ? ze(o).value : void 0;
756
756
  case "LiteralError":
757
- case "RefError": return r === 0 ? w(o).value : void 0;
757
+ case "RefError": return r === 0 ? He(o).value : void 0;
758
758
  default: return;
759
759
  }
760
760
  } catch {
761
761
  return;
762
762
  }
763
763
  }
764
- function Rt(e, n) {
765
- let r = zt(e), i = zt(n);
766
- return r === i ? e === n ? 0 : typeof e == "number" && typeof n == "number" ? e < n ? -1 : 1 : typeof e == "string" && typeof n == "string" ? e < n ? -1 : +(e > n) : typeof e == "boolean" ? e ? 1 : -1 : t.isError(e) && t.isError(n) ? e.getCode() - n.getCode() : 0 : r - i;
764
+ function Rt(e, t) {
765
+ let n = zt(e), r = zt(t);
766
+ return n === r ? e === t ? 0 : typeof e == "number" && typeof t == "number" ? e < t ? -1 : 1 : typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : typeof e == "boolean" ? e ? 1 : -1 : _.isError(e) && _.isError(t) ? e.getCode() - t.getCode() : 0 : n - r;
767
767
  }
768
768
  function zt(e) {
769
769
  if (e === null) return 0;
@@ -771,7 +771,7 @@ function zt(e) {
771
771
  case "number": return 1;
772
772
  case "string": return 2;
773
773
  case "boolean": return 3;
774
- default: return t.isError(e) ? 4 : 5;
774
+ default: return _.isError(e) ? 4 : 5;
775
775
  }
776
776
  }
777
777
  (wt ||= {}).buildPalette = function(e, t, n, r) {
@@ -781,7 +781,7 @@ function zt(e) {
781
781
  i.push(o);
782
782
  let s = (i) => {
783
783
  for (let s = 0; s < i.length; s++) o.push(It(e[a], i[s], t, n, r));
784
- }, c = new Ce({
784
+ }, c = new Ee({
785
785
  val: e[a].definition.val,
786
786
  adjs: e[a].definition.adjs
787
787
  }, t).toHSLA().lum;
@@ -864,7 +864,7 @@ var Bt = class {
864
864
  let n = t[e].getSortedNumbers().getValues();
865
865
  n.length > 0 && r.push(n);
866
866
  }
867
- e = new fe(function(e) {
867
+ e = new re(function(e) {
868
868
  let t = e.length;
869
869
  if (t === 0) return Vt;
870
870
  if (t === 1) return e[0];
@@ -876,7 +876,7 @@ var Bt = class {
876
876
  return e;
877
877
  }
878
878
  getRanked(e) {
879
- return se(this._children, e, Rt)[Symbol.iterator]();
879
+ return Qe(this._children, e, Rt)[Symbol.iterator]();
880
880
  }
881
881
  getFrequencies(e) {
882
882
  if (e) return this._mergeFrequencies(e);
@@ -884,7 +884,7 @@ var Bt = class {
884
884
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
885
885
  }
886
886
  _mergeFrequencies(e) {
887
- let t = e?.keyFn ?? ge, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
887
+ let t = e?.keyFn ?? Ye, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
888
888
  for (let l = 0; l < a; l++) {
889
889
  let a = i[l].getFrequencies(e);
890
890
  o += a.getVisitedCount(), s += a.getTotalCount(), c ||= a.isTruncated();
@@ -897,35 +897,35 @@ var Bt = class {
897
897
  }) : c = !0, d = u.next();
898
898
  }
899
899
  }
900
- return re.fromGroups(r, t, e, Rt, o, s, c);
900
+ return we.fromGroups(r, t, e, Rt, o, s, c);
901
901
  }
902
902
  getTypedCounts(e) {
903
903
  let t = this._typedCounts;
904
904
  if (!t) {
905
905
  let e = {
906
- [n.Number]: 0,
907
- [n.String]: 0,
908
- [n.Boolean]: 0,
909
- [n.Error]: 0,
910
- [n.RichData]: 0,
911
- [n.Null]: 0
912
- }, r = this._children, i = r.length;
913
- for (let t = 0; t < i; t++) {
914
- let i = r[t].getTypedCounts();
915
- e[n.Number] += i[n.Number] ?? 0, e[n.String] += i[n.String] ?? 0, e[n.Boolean] += i[n.Boolean] ?? 0, e[n.Error] += i[n.Error] ?? 0, e[n.RichData] += i[n.RichData] ?? 0, e[n.Null] += i[n.Null] ?? 0;
906
+ [v.Number]: 0,
907
+ [v.String]: 0,
908
+ [v.Boolean]: 0,
909
+ [v.Error]: 0,
910
+ [v.RichData]: 0,
911
+ [v.Null]: 0
912
+ }, n = this._children, r = n.length;
913
+ for (let t = 0; t < r; t++) {
914
+ let r = n[t].getTypedCounts();
915
+ e[v.Number] += r[v.Number] ?? 0, e[v.String] += r[v.String] ?? 0, e[v.Boolean] += r[v.Boolean] ?? 0, e[v.Error] += r[v.Error] ?? 0, e[v.RichData] += r[v.RichData] ?? 0, e[v.Null] += r[v.Null] ?? 0;
916
916
  }
917
917
  t = Object.freeze(e), this._typedCounts = t;
918
918
  }
919
919
  if (e === void 0) return t;
920
- let r = {}, i = e.length;
921
- for (let n = 0; n < i; n++) r[e[n]] = t[e[n]] ?? 0;
922
- return r;
920
+ let n = {}, r = e.length;
921
+ for (let i = 0; i < r; i++) n[e[i]] = t[e[i]] ?? 0;
922
+ return n;
923
923
  }
924
924
  get isIRangeStats() {
925
925
  return !0;
926
926
  }
927
927
  _mergeAggregates(e) {
928
- let t = this._children, r = t.length, i = {
928
+ let t = this._children, n = t.length, r = {
929
929
  count: 0,
930
930
  min: void 0,
931
931
  max: void 0,
@@ -933,21 +933,21 @@ var Bt = class {
933
933
  sum: 0,
934
934
  sumSq: 0,
935
935
  typed: {
936
- [n.Number]: 0,
937
- [n.String]: 0,
938
- [n.Boolean]: 0,
939
- [n.Error]: 0,
940
- [n.RichData]: 0,
941
- [n.Null]: 0
936
+ [v.Number]: 0,
937
+ [v.String]: 0,
938
+ [v.Boolean]: 0,
939
+ [v.Error]: 0,
940
+ [v.RichData]: 0,
941
+ [v.Null]: 0
942
942
  }
943
943
  };
944
- for (let n = 0; n < r; n++) {
945
- let r = t[n].getAggregates(e);
946
- i.count += r.count;
947
- let a = r.numericalCount;
948
- a <= 0 || (i.numericalCount += a, i.sum += r.sum, i.sumSq += r.varP * a + r.sum * r.sum / a, (i.min === void 0 || r.min < i.min) && (i.min = r.min), (i.max === void 0 || r.max > i.max) && (i.max = r.max));
944
+ for (let i = 0; i < n; i++) {
945
+ let n = t[i].getAggregates(e);
946
+ r.count += n.count;
947
+ let a = n.numericalCount;
948
+ a <= 0 || (r.numericalCount += a, r.sum += n.sum, r.sumSq += n.varP * a + n.sum * n.sum / a, (r.min === void 0 || n.min < r.min) && (r.min = n.min), (r.max === void 0 || n.max > r.max) && (r.max = n.max));
949
949
  }
950
- return He(i);
950
+ return w(r);
951
951
  }
952
952
  }, Vt = Object.freeze([]);
953
953
  function Ht(e, t) {
@@ -991,7 +991,7 @@ var Ut = class {
991
991
  get isIPerson() {
992
992
  return !0;
993
993
  }
994
- }, Wt = class extends Ke {
994
+ }, Wt = class extends Ce {
995
995
  constructor(e) {
996
996
  super(), this._byId = /* @__PURE__ */ new Map(), this._byDisplayName = /* @__PURE__ */ new Map(), this._items = null, this._current = null, e && this.fromJSON(e);
997
997
  }
@@ -1002,22 +1002,22 @@ var Ut = class {
1002
1002
  return this._byId.size;
1003
1003
  }
1004
1004
  add(e) {
1005
- let t = typeof e == "string" ? { displayName: e } : e, n = t.id;
1006
- if (n) {
1007
- let e = this._byId.get(n);
1005
+ let n = typeof e == "string" ? { displayName: e } : e, r = n.id;
1006
+ if (r) {
1007
+ let e = this._byId.get(r);
1008
1008
  if (e) return e;
1009
1009
  }
1010
- let r = t.displayName ?? "";
1011
- if (!n) {
1012
- let e = this._byDisplayName.get(r);
1010
+ let i = n.displayName ?? "";
1011
+ if (!r) {
1012
+ let e = this._byDisplayName.get(i);
1013
1013
  if (e) return e;
1014
1014
  }
1015
- let i = new Ut({
1016
- ...t,
1017
- displayName: r,
1018
- id: n ?? v.uuidV4().toUpperCase()
1015
+ let a = new Ut({
1016
+ ...n,
1017
+ displayName: i,
1018
+ id: r ?? t.uuidV4().toUpperCase()
1019
1019
  }, (e) => this._remove(e));
1020
- return this._byId.set(i.getId(), i), r && !this._byDisplayName.has(r) && this._byDisplayName.set(r, i), this._items = null, this._notifyCollectionChange(), i;
1020
+ return this._byId.set(a.getId(), a), i && !this._byDisplayName.has(i) && this._byDisplayName.set(i, a), this._items = null, this._notifyCollectionChange(), a;
1021
1021
  }
1022
1022
  getById(e) {
1023
1023
  return typeof e == "string" ? this._byId.get(e) ?? null : null;
@@ -1066,26 +1066,26 @@ var Ut = class {
1066
1066
  _builtInNames() {
1067
1067
  try {
1068
1068
  let e = this._options.getBuiltInFunctions?.();
1069
- if (!e) return v.EmptyArray;
1070
- let t = [];
1071
- for (let n of e.getItems()) n.isBuiltIn() && t.push(n.getName());
1072
- return t;
1069
+ if (!e) return t.EmptyArray;
1070
+ let n = [];
1071
+ for (let t of e.getItems()) t.isBuiltIn() && n.push(t.getName());
1072
+ return n;
1073
1073
  } catch {
1074
- return v.EmptyArray;
1074
+ return t.EmptyArray;
1075
1075
  }
1076
1076
  }
1077
1077
  async createModule(e) {
1078
- let t = await (await import("./ryzcqI-93l1HBuTe2.js").then((e) => e.n)).ScriptCompiler.compile({
1078
+ let t = await (await import("./B4I6uEgyYNann2Ke.mjs").then((e) => e.n)).ScriptCompiler.compile({
1079
1079
  builtInNames: this._builtInNames(),
1080
1080
  ...e
1081
1081
  });
1082
- return t.module ? await A(S.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1082
+ return t.module ? await M(Fe.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1083
1083
  }
1084
1084
  addModule(e, t, n) {
1085
1085
  this._modules.add(e, t, n);
1086
1086
  }
1087
1087
  async addModuleFromJSON(e, t, n) {
1088
- let r = await A(e, t);
1088
+ let r = await M(e, t);
1089
1089
  return this.addModule(e, r, n), r;
1090
1090
  }
1091
1091
  executeMacro(e, t, n) {
@@ -1101,7 +1101,7 @@ var Ut = class {
1101
1101
  }
1102
1102
  async run(e, t) {
1103
1103
  try {
1104
- let n = typeof e == "string" ? await this.createModule({ source: e }) : await A(S.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1104
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await M(Fe.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1105
1105
  return await this._runModule(n, r, t);
1106
1106
  } catch (e) {
1107
1107
  return {
@@ -1165,54 +1165,54 @@ var Ut = class {
1165
1165
  }
1166
1166
  async searchFunctions(e) {
1167
1167
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1168
- let t = await this._searchable(e);
1169
- if (t.length === 0) return v.EmptyArray;
1170
- let n, r = e?.limit, i = r === void 0 ? e : {
1168
+ let n = await this._searchable(e);
1169
+ if (n.length === 0) return t.EmptyArray;
1170
+ let r, i = e?.limit, a = i === void 0 ? e : {
1171
1171
  ...e,
1172
1172
  limit: void 0
1173
- }, a = /* @__PURE__ */ new Set();
1174
- for (let e = 0; e < t.length; e++) {
1175
- let r = await t[e].search(i);
1176
- if (r.length !== 0) {
1177
- n ||= [];
1178
- for (let e = 0; e < r.length; e++) {
1179
- let t = r[e], i = t.getName().toUpperCase();
1180
- a.has(i) || (a.add(i), n.push(t));
1173
+ }, o = /* @__PURE__ */ new Set();
1174
+ for (let e = 0; e < n.length; e++) {
1175
+ let t = await n[e].search(a);
1176
+ if (t.length !== 0) {
1177
+ r ||= [];
1178
+ for (let e = 0; e < t.length; e++) {
1179
+ let n = t[e], i = n.getName().toUpperCase();
1180
+ o.has(i) || (o.add(i), r.push(n));
1181
1181
  }
1182
1182
  }
1183
1183
  }
1184
- if (!n || n.length === 0) return v.EmptyArray;
1185
- let o = e?.text ? e.text.trim().toUpperCase() : null;
1186
- return o && t.length > 1 && Fe(n, o), r !== void 0 && n.length > r ? n.slice(0, r) : n;
1184
+ if (!r || r.length === 0) return t.EmptyArray;
1185
+ let s = e?.text ? e.text.trim().toUpperCase() : null;
1186
+ return s && n.length > 1 && Je(r, s), i !== void 0 && r.length > i ? r.slice(0, i) : r;
1187
1187
  }
1188
1188
  async getFunctionCategories(e) {
1189
1189
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1190
- let t = await this._searchable(e);
1191
- if (t.length === 0) return v.EmptyArray;
1192
- if (t.length === 1) return t[0].getCategories(e);
1193
- let n = e?.includeDeprecated ?? !1, r = /* @__PURE__ */ new Map(), i = (e) => {
1194
- let t = e.toUpperCase(), n = r.get(t);
1195
- n ? n.count++ : r.set(t, {
1190
+ let n = await this._searchable(e);
1191
+ if (n.length === 0) return t.EmptyArray;
1192
+ if (n.length === 1) return n[0].getCategories(e);
1193
+ let r = e?.includeDeprecated ?? !1, i = /* @__PURE__ */ new Map(), a = (e) => {
1194
+ let t = e.toUpperCase(), n = i.get(t);
1195
+ n ? n.count++ : i.set(t, {
1196
1196
  name: e,
1197
1197
  count: 1
1198
1198
  });
1199
1199
  };
1200
- for (let n of await t[0].getCategories(e)) r.set(n.name.toUpperCase(), {
1201
- name: n.name,
1202
- count: n.count
1200
+ for (let t of await n[0].getCategories(e)) i.set(t.name.toUpperCase(), {
1201
+ name: t.name,
1202
+ count: t.count
1203
1203
  });
1204
- for (let r = 1; r < t.length; r++) {
1205
- let a = await t[r].search(e?.type ? { type: e.type } : void 0);
1206
- for (let e = 0; e < a.length; e++) {
1207
- let o = a[e], s = o.getName().toUpperCase(), c = !1;
1208
- for (let e = 0; e < r && !c; e++) c = !!t[e].getByName(s);
1204
+ for (let t = 1; t < n.length; t++) {
1205
+ let i = await n[t].search(e?.type ? { type: e.type } : void 0);
1206
+ for (let e = 0; e < i.length; e++) {
1207
+ let o = i[e], s = o.getName().toUpperCase(), c = !1;
1208
+ for (let e = 0; e < t && !c; e++) c = !!n[e].getByName(s);
1209
1209
  if (c) continue;
1210
1210
  let l = await o.getDescriptor().catch(() => null);
1211
- !n && l?.isDeprecated() || i(l?.getCategory() ?? "Uncategorized");
1211
+ !r && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1212
1212
  }
1213
1213
  }
1214
- let a = Array.from(r.values());
1215
- return a.sort((e, t) => e.name.localeCompare(t.name)), a;
1214
+ let o = Array.from(i.values());
1215
+ return o.sort((e, t) => e.name.localeCompare(t.name)), o;
1216
1216
  }
1217
1217
  async start() {
1218
1218
  if (!this._modules) return this._startPromise || (this._startPromise = this._doStart(), this._startPromise.catch(() => {
@@ -1220,40 +1220,40 @@ var Ut = class {
1220
1220
  })), this._startPromise;
1221
1221
  }
1222
1222
  async _doStart() {
1223
- let e = this._options?.workbook, t = this._options?.json, n = {};
1224
- if (t) {
1225
- let r = Object.keys(t);
1226
- for (let i = 0; i < r.length; i++) {
1227
- let a = r[i], o = t[a];
1223
+ let e = this._options?.workbook, r = this._options?.json, i = {};
1224
+ if (r) {
1225
+ let t = Object.keys(r);
1226
+ for (let a = 0; a < t.length; a++) {
1227
+ let o = t[a], s = r[o];
1228
1228
  try {
1229
- n[a] = await A(a, o, !1, [], o?.scope === "workbook" ? e : null);
1229
+ i[o] = await M(o, s, !1, [], s?.scope === "workbook" ? e : null);
1230
1230
  } catch (e) {
1231
- c.error(`Could not load script '${a}'; it will be unavailable.`, e);
1231
+ n.error(`Could not load script '${o}'; it will be unavailable.`, e);
1232
1232
  }
1233
1233
  }
1234
1234
  }
1235
- let r = this, i = new ce({
1235
+ let a = this, o = new Le({
1236
1236
  transactions: this._options?.transactions,
1237
- initial: n,
1238
- isReadOnly: () => r.isReadOnly(),
1237
+ initial: i,
1238
+ isReadOnly: () => a.isReadOnly(),
1239
1239
  onRemove: (e, t) => {
1240
- r._options?.onRemove?.(e, t);
1240
+ a._options?.onRemove?.(e, t);
1241
1241
  },
1242
1242
  onAdd: (e, t) => {
1243
- r._emitter.notify("onChange"), r._options?.onAdd?.(e, t);
1243
+ a._emitter.notify("onChange"), a._options?.onAdd?.(e, t);
1244
1244
  }
1245
1245
  });
1246
- this._modules = i;
1247
- let a = i.getItems();
1248
- if (a.length === 0) return Promise.resolve(v.EmptyArray);
1249
- let o = a.length;
1250
- for (let t = 0; t < o; t++) {
1251
- let n = a[t];
1246
+ this._modules = o;
1247
+ let s = o.getItems();
1248
+ if (s.length === 0) return Promise.resolve(t.EmptyArray);
1249
+ let c = s.length;
1250
+ for (let t = 0; t < c; t++) {
1251
+ let r = s[t];
1252
1252
  try {
1253
- let t = await n.getFunctions().search({ type: "autoRun" }), r = t.length;
1254
- for (let n = 0; n < r; n++) await t[n].execute(e);
1253
+ let t = await r.getFunctions().search({ type: "autoRun" }), n = t.length;
1254
+ for (let r = 0; r < n; r++) await t[r].execute(e);
1255
1255
  } catch (e) {
1256
- c.error("Error executing autoRun script:", e);
1256
+ n.error("Error executing autoRun script:", e);
1257
1257
  }
1258
1258
  }
1259
1259
  }
@@ -1274,7 +1274,7 @@ var Ut = class {
1274
1274
  }
1275
1275
  }, Kt = class {
1276
1276
  constructor(e, t, n, r) {
1277
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? m.EmptyCell, this._sheet = new y({
1277
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? o.EmptyCell, this._sheet = new F({
1278
1278
  runtime: e,
1279
1279
  styles: this._styles,
1280
1280
  calcOnLoad: "none",
@@ -1295,35 +1295,35 @@ var Ut = class {
1295
1295
  e.includes(r) && delete i[r];
1296
1296
  }
1297
1297
  }
1298
- let a = ne(i.fontFamily);
1298
+ let a = $e(i.fontFamily);
1299
1299
  r.font = {}, a && (r.font.family = a.family, r.font.fallbacks = a.fallbacks, r.font.size = a.size), r.font.size = i.fontSize, r.font.weight = i.fontWeight, r.font.style = i.fontStyle, r.font.color = i.color;
1300
- let o = We(i.textDecoration);
1301
- r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = Ie(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = Qe(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = M.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = M.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = M.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = P.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = P.VerticalAlignment.Sub : r.alignment.vertical = be(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = M.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? M.Overflow.Visible : M.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = M.Overflow.Shrink);
1300
+ let o = Ve(i.textDecoration);
1301
+ r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = Oe(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = Me(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = T.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = T.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = T.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = I.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = I.VerticalAlignment.Sub : r.alignment.vertical = xe(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = T.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? T.Overflow.Visible : T.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = T.Overflow.Shrink);
1302
1302
  let s = null;
1303
1303
  if (i.background ? s = i.background : i.backgroundColor && (s = i.backgroundColor), s && (r.fill = { color: s }), i.msoPattern) {
1304
- let e = $e(i.msoPattern);
1305
- e && (e.patternType === pe.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== pe.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1304
+ let e = Se(i.msoPattern);
1305
+ e && (e.patternType === j.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== j.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1306
1306
  }
1307
- i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = me(i.msoRotate));
1307
+ i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = fe(i.msoRotate));
1308
1308
  let c = (e, t) => {
1309
1309
  e && (r.borders ||= {}, r.borders[e] = t);
1310
1310
  };
1311
1311
  i.border && i.border !== "none" && (c("top", i.border), c("left", i.border), c("right", i.border), c("bottom", i.border)), i.borderTop && c("top", i.borderTop), i.borderLeft && c("left", i.borderLeft), i.borderRight && c("right", i.borderRight), i.borderBottom && c("bottom", i.borderBottom), i.msoDiagonalUp && c("diagonalUp", i.msoDiagonalUp), i.msoDiagonalDown && c("diagonalDown", i.msoDiagonalDown);
1312
1312
  let l = r.numberFormat;
1313
- i.msoNumberFormat && (l = Ne(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = I.Styles.lookupStyle(r.numberFormat).formatType === I.Type.Number ? null : I.Type.Number : l === "Percent" && (l = I.Styles.lookupStyle(r.numberFormat).formatType === I.Type.Percentage ? null : I.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1313
+ i.msoNumberFormat && (l = Ke(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = x.Styles.lookupStyle(r.numberFormat).formatType === x.Type.Number ? null : x.Type.Number : l === "Percent" && (l = x.Styles.lookupStyle(r.numberFormat).formatType === x.Type.Percentage ? null : x.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1314
1314
  }
1315
1315
  onCell(e, t, n, r, i) {
1316
- let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
1317
- if (typeof o.value == "string" && o.value.length === 0 && (o.value = void 0), a && this.applyCSSStyle(o, a), i?.tagName.toUpperCase() === "TD") {
1318
- let e = o.style, t = e?.font ?? {};
1319
- (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = P.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = P.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = P.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = P.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
1316
+ let a = r(i), s = { value: t === void 0 ? n ?? "" : t };
1317
+ if (typeof s.value == "string" && s.value.length === 0 && (s.value = void 0), a && this.applyCSSStyle(s, a), i?.tagName.toUpperCase() === "TD") {
1318
+ let e = s.style, t = e?.font ?? {};
1319
+ (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = I.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = I.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = I.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = I.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, s.style = e), e.font ||= t);
1320
1320
  let n = i.querySelectorAll("a");
1321
1321
  if (n.length > 0) {
1322
1322
  let e = n[0].getAttribute("href");
1323
- e && (o.hyperlink = e);
1323
+ e && (s.hyperlink = e);
1324
1324
  }
1325
1325
  }
1326
- if (!m.isSingleCell(e)) {
1326
+ if (!o.isSingleCell(e)) {
1327
1327
  let t = {
1328
1328
  rowStart: this._topLeft.rowIndex + e.rowStart,
1329
1329
  colStart: this._topLeft.colIndex + e.colStart,
@@ -1332,14 +1332,14 @@ var Ut = class {
1332
1332
  };
1333
1333
  this._mergedReading.push(t);
1334
1334
  }
1335
- if (o.value === void 0 && !o.style && Object.keys(o).length <= 1) return;
1336
- let s = this._builder, c = this._topLeft;
1337
- if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !m.isSingleCell(e) && a.msoIgnore) {
1335
+ if (s.value === void 0 && !s.style && Object.keys(s).length <= 1) return;
1336
+ let c = this._builder, l = this._topLeft;
1337
+ if (c.pushAt(l.rowIndex + e.rowStart, l.colIndex + e.colStart, s), !o.isSingleCell(e) && a.msoIgnore) {
1338
1338
  if (a.msoIgnore.includes("colspan")) {
1339
1339
  let t = {};
1340
1340
  a && this.applyCSSStyle(t, a);
1341
- let n = e.colEnd - e.colStart, r = c.rowIndex + e.rowStart;
1342
- for (let i = 1; i <= n; i++) s.pushAt(r, c.colIndex + e.colStart + i, t);
1341
+ let n = e.colEnd - e.colStart, r = l.rowIndex + e.rowStart;
1342
+ for (let i = 1; i <= n; i++) c.pushAt(r, l.colIndex + e.colStart + i, t);
1343
1343
  e = {
1344
1344
  ...e,
1345
1345
  colEnd: e.colStart
@@ -1363,8 +1363,8 @@ var Ut = class {
1363
1363
  let i = n(r);
1364
1364
  if (i.msoHeightSource !== "userset" || !r) return;
1365
1365
  let a = r.getAttribute("height") ?? i.height, o = null;
1366
- if (a && (o = k(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1367
- let t = r.cells[e], i = k(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1366
+ if (a && (o = O(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1367
+ let t = r.cells[e], i = O(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1368
1368
  i !== null && (o = Math.max(i, o ?? 0));
1369
1369
  }
1370
1370
  o !== null && this._rowsReading.push({
@@ -1372,19 +1372,19 @@ var Ut = class {
1372
1372
  min: this._topLeft.rowIndex + e,
1373
1373
  max: this._topLeft.rowIndex + e + t - 1
1374
1374
  },
1375
- update: { size: o * P.getDeviceScale() }
1375
+ update: { size: o * I.getDeviceScale() }
1376
1376
  });
1377
1377
  }
1378
1378
  onColumn(e, t, n, r) {
1379
1379
  let i = n(r);
1380
1380
  if (i.msoWidthSource !== "userset" || !r) return;
1381
1381
  let a = r.getAttribute("width") ?? i.width, o = null;
1382
- a && (o = k(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1382
+ a && (o = O(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1383
1383
  address: {
1384
1384
  min: this._topLeft.colIndex + e,
1385
1385
  max: this._topLeft.colIndex + e + t - 1
1386
1386
  },
1387
- update: { size: o * P.getDeviceScale() }
1387
+ update: { size: o * I.getDeviceScale() }
1388
1388
  });
1389
1389
  }
1390
1390
  onDone() {
@@ -1397,7 +1397,7 @@ var Ut = class {
1397
1397
  }
1398
1398
  }, qt = class {
1399
1399
  constructor(e) {
1400
- if (!e) throw new r("snapshot is required.");
1400
+ if (!e) throw new s("snapshot is required.");
1401
1401
  this._snapshot = e;
1402
1402
  }
1403
1403
  getItemType() {
@@ -1428,9 +1428,9 @@ var Ut = class {
1428
1428
  return !0;
1429
1429
  }
1430
1430
  }, Jt = class {
1431
- constructor(e, t, n, i, a) {
1432
- if (this._parsed = void 0, this._runtime = e, !t) throw new r("nativeItems are required.");
1433
- this._topLeft = n ?? m.EmptyCell, this._native = t, this._markOptions = Object.freeze(i ?? {}), this._styles = a;
1431
+ constructor(e, t, n, r, i) {
1432
+ if (this._parsed = void 0, this._runtime = e, !t) throw new s("nativeItems are required.");
1433
+ this._topLeft = n ?? o.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1434
1434
  }
1435
1435
  getItemType() {
1436
1436
  return "range";
@@ -1471,15 +1471,15 @@ var Ut = class {
1471
1471
  async parse() {
1472
1472
  let e, t = this._native?.text, n = this._native.html;
1473
1473
  if (n === null && t && t.includes("<table")) try {
1474
- let e = new DOMParser().parseFromString(t, a.Html), r = e.querySelector("parsererror");
1475
- if (r) throw new l("Unable to parse: " + r);
1474
+ let e = new DOMParser().parseFromString(t, c.Html), r = e.querySelector("parsererror");
1475
+ if (r) throw new a("Unable to parse: " + r);
1476
1476
  n = e, t = null;
1477
1477
  } catch {
1478
1478
  console.warn("Discovered text as html table but could could not parse.");
1479
1479
  }
1480
1480
  try {
1481
- let r, i = new Kt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text"), a = await Promise.resolve(t ? Ee(t) : [[]]);
1482
- if (ke(n, a, i) ? (e = i.sheet(), r = e.getUsedRange()) : n = null, r) return this._parsed = {
1481
+ let r, i = new Kt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text"), a = await Promise.resolve(t ? Ge(t) : [[]]);
1482
+ if (oe(n, a, i) ? (e = i.sheet(), r = e.getUsedRange()) : n = null, r) return this._parsed = {
1483
1483
  copyTo: async (e, t) => (await e.copyFrom(r, t))?.getCoords() ?? null,
1484
1484
  getCoords: () => r.getCoords(),
1485
1485
  getSource: () => e,
@@ -1494,7 +1494,7 @@ var Ut = class {
1494
1494
  async copyTo(t, n) {
1495
1495
  let r = t.getSheet(), i = await e._native.image.arrayBuffer(), a = await r.getMovables().addPicture({ source: { buffer: i } }, {
1496
1496
  type: "picture",
1497
- description: g("op.copyImageFromClipboard")
1497
+ description: d("op.copyImageFromClipboard")
1498
1498
  });
1499
1499
  return r.getView().selectMovables([a]), null;
1500
1500
  },
@@ -1516,7 +1516,7 @@ var Ut = class {
1516
1516
  activeSheetId: 0
1517
1517
  }, Yt = class {
1518
1518
  constructor(e) {
1519
- this._id = v.uuidV4(), this._emitter = new L(this), this._state = { ...J }, e?.json && this._fromJSON(e?.json);
1519
+ this._id = t.uuidV4(), this._emitter = new L(this), this._state = { ...J }, e?.json && this._fromJSON(e?.json);
1520
1520
  }
1521
1521
  getId() {
1522
1522
  return this._id;
@@ -1602,7 +1602,7 @@ var Ut = class {
1602
1602
  revision: !1,
1603
1603
  password: null,
1604
1604
  revisionsPassword: null
1605
- }), Y = class extends oe {
1605
+ }), Y = class extends Ue {
1606
1606
  isWindowsAllowed() {
1607
1607
  return this._isPropertyAllowed("windows");
1608
1608
  }
@@ -1637,9 +1637,9 @@ var Ut = class {
1637
1637
  }
1638
1638
  };
1639
1639
  function X(e) {
1640
- return i("error.workbook.invalidSheetKey", { key: e });
1640
+ return f("error.workbook.invalidSheetKey", { key: e });
1641
1641
  }
1642
- var Zt, Qt, $t, en, tn = class extends Ke {
1642
+ var Zt, Qt, $t, en, tn = class extends Ce {
1643
1643
  constructor(e, t, n) {
1644
1644
  super(), this._add = e, this._get = t, this._addListeners = n;
1645
1645
  }
@@ -1660,37 +1660,37 @@ var Zt, Qt, $t, en, tn = class extends Ke {
1660
1660
  }
1661
1661
  }, Z = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), nn = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1662
1662
  function rn(e) {
1663
- let t = i(g("workbook.defaultSheetName"), { n: e + 1 });
1663
+ let t = f(d("workbook.defaultSheetName"), { n: e + 1 });
1664
1664
  return t === "workbook.defaultSheetName" ? `Sheet${e + 1}` : t;
1665
1665
  }
1666
1666
  function an(e, t) {
1667
1667
  return {
1668
- ...te,
1668
+ ...qe,
1669
1669
  getSheet: () => null,
1670
- toString: () => N(e, t)
1670
+ toString: () => k(e, t)
1671
1671
  };
1672
1672
  }
1673
1673
  function on(e, t = !1) {
1674
- if (!e) throw Error(i("error.workbook.sheetNameBlank"));
1674
+ if (!e) throw Error(f("error.workbook.sheetNameBlank"));
1675
1675
  if (Z.test(e)) {
1676
1676
  if (!t) throw Error(function(e) {
1677
- return e ? i("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : i("error.workbook.sheetNameInvalidChars");
1677
+ return e ? f("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : f("error.workbook.sheetNameInvalidChars");
1678
1678
  }(e));
1679
1679
  e = e.replace(Z, "");
1680
1680
  }
1681
- if (e.length === 0) throw Error(i("error.workbook.sheetNameBlank"));
1681
+ if (e.length === 0) throw Error(f("error.workbook.sheetNameBlank"));
1682
1682
  let n = e.length;
1683
1683
  if (n > 31) {
1684
- if (!t) throw Error(i("error.workbook.sheetNameTooLong"));
1684
+ if (!t) throw Error(f("error.workbook.sheetNameTooLong"));
1685
1685
  e = e.substring(0, 31);
1686
1686
  }
1687
1687
  if (e.charAt(0) === "'" || e.charAt(n - 1) === "'") {
1688
- if (!t) throw Error(i("error.workbook.sheetNameQuotes"));
1688
+ if (!t) throw Error(f("error.workbook.sheetNameQuotes"));
1689
1689
  e = e.replace(/^'|'$/g, "");
1690
1690
  }
1691
1691
  return e;
1692
1692
  }
1693
- var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1693
+ var sn, cn = "workbook.activeSheet", Q = class e extends ye {
1694
1694
  constructor(e, t, n, r) {
1695
1695
  super(e, t, r), this._workbook = n;
1696
1696
  }
@@ -1701,23 +1701,23 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1701
1701
  let r = this._options;
1702
1702
  return n && (r = {
1703
1703
  ...this._options,
1704
- getOptions: E(this._options?.getOptions, n)
1704
+ getOptions: A(this._options?.getOptions, n)
1705
1705
  }), new e(t, this._internal, this._workbook, r);
1706
1706
  }
1707
1707
  _createRange(e, t) {
1708
- let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, F.Visibility.VeryHidden) : null;
1708
+ let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, N.Visibility.VeryHidden) : null;
1709
1709
  if (!r) {
1710
1710
  let e = this._workbook.getSelectedSheet();
1711
1711
  return delete n?.scope, an(n, n ? {
1712
- scope: T,
1712
+ scope: Pe,
1713
1713
  ...e.getEntireRange().getCoords()
1714
1714
  } : null);
1715
1715
  }
1716
1716
  let i = this._options;
1717
1717
  return t && (i = {
1718
1718
  ...this._options,
1719
- getOptions: E(this._options.getOptions, t)
1720
- }), new ln(e, j(r.sheet), this._workbook, i);
1719
+ getOptions: A(this._options.getOptions, t)
1720
+ }), new ln(e, P(r.sheet), this._workbook, i);
1721
1721
  }
1722
1722
  async select(e) {
1723
1723
  let t = [], n = null, r = this.getCoords();
@@ -1741,15 +1741,15 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1741
1741
  }
1742
1742
  getAddress(e) {
1743
1743
  let t = this._internal.getSheet(), n = t.getEntireRange().getCoords();
1744
- return je(this.getCoords(), {
1744
+ return ke(this.getCoords(), {
1745
1745
  ...n,
1746
1746
  scope: t.getName()
1747
- }, N, he, e);
1747
+ }, k, de, e);
1748
1748
  }
1749
1749
  toString() {
1750
1750
  return this.getAddress();
1751
1751
  }
1752
- }, ln = class e extends De {
1752
+ }, ln = class e extends Ze {
1753
1753
  constructor(e, t, n, r) {
1754
1754
  super(e, t, r), this._workbook = n;
1755
1755
  }
@@ -1757,17 +1757,17 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1757
1757
  let n = this._options;
1758
1758
  return t && (n = {
1759
1759
  ...this._options,
1760
- getOptions: E(this._options?.getOptions, t)
1760
+ getOptions: A(this._options?.getOptions, t)
1761
1761
  }), new Q(e, this._internal, this._workbook, n);
1762
1762
  }
1763
1763
  _createRange(t, n) {
1764
1764
  let r = this._internal;
1765
- if (!t) return Ve(r.getSheet(), r.getSheet().getEntireCoords());
1766
- if (r.validateCoords(t), r.getSheet().isClosed()) return Ve(null, r.getSheet().getEntireCoords(), t);
1765
+ if (!t) return ae(r.getSheet(), r.getSheet().getEntireCoords());
1766
+ if (r.validateCoords(t), r.getSheet().isClosed()) return ae(null, r.getSheet().getEntireCoords(), t);
1767
1767
  let i = this._options;
1768
1768
  return n && (i = {
1769
1769
  ...this._options,
1770
- getOptions: E(this._options?.getOptions, n)
1770
+ getOptions: A(this._options?.getOptions, n)
1771
1771
  }), new e(t, this._internal, this._workbook, i);
1772
1772
  }
1773
1773
  addListener(e, t) {
@@ -1780,7 +1780,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1780
1780
  }
1781
1781
  getAddress(e) {
1782
1782
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
1783
- return N(this.getCoords(), {
1783
+ return k(this.getCoords(), {
1784
1784
  ...n,
1785
1785
  scope: t.getName()
1786
1786
  });
@@ -1789,12 +1789,12 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1789
1789
  return this.getAddress();
1790
1790
  }
1791
1791
  }, un = (e) => !!e && typeof e == "object" && typeof e.getOrigin == "function", dn = class {
1792
- constructor(e) {
1793
- this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new qe(() => {
1792
+ constructor(n) {
1793
+ this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new pe(() => {
1794
1794
  let e = [];
1795
1795
  for (let t of this.getSheets()) e.push(...t.getPivotTables());
1796
1796
  return e;
1797
- }), this._people = new Wt(), this._commentCollection = new Be(null, (e, t, n) => {
1797
+ }), this._people = new Wt(), this._commentCollection = new C(null, (e, t, n) => {
1798
1798
  let r = [];
1799
1799
  for (let i of this.getSheets()) r.push(...i.getComments().getItems(e ? {
1800
1800
  address: e,
@@ -1808,116 +1808,116 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1808
1808
  }, (e, t) => this.addListeners({ onSheetsChange: e.onCollectionChange ? () => {
1809
1809
  e.onCollectionChange(this._commentCollection);
1810
1810
  } : void 0 }, t)), this._restoringSheets = !1, this._isDate1904 = !1, this._codeName = null, this._updateLinks = null, this._locale = null, this._localeOverrides = null;
1811
- let t = typeof e == "string" ? { origin: e } : { ...e }, n = t.origin;
1812
- this._ownOriginProvider = !un(n), this._originProvider = un(n) ? n : new at(typeof n == "string" ? new R(null, { name: n }) : n ?? new R(null)), delete t.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
1813
- let r = t.json;
1814
- delete t.json, this._transactions = t.transactions ?? new Le(), this._id = this._transactions.create(), this._ownTransactions = !t.transactions, this._emitter = new L(this, this._transactions), this._runtime = t.runtime ?? new Ae("Workbook Runtime", {
1811
+ let r = typeof n == "string" ? { origin: n } : { ...n }, i = r.origin;
1812
+ this._ownOriginProvider = !un(i), this._originProvider = un(i) ? i : new at(typeof i == "string" ? new R(null, { name: i }) : i ?? new R(null)), delete r.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
1813
+ let a = r.json;
1814
+ delete r.json, this._transactions = r.transactions ?? new Te(), this._id = this._transactions.create(), this._ownTransactions = !r.transactions, this._emitter = new L(this, this._transactions), this._runtime = r.runtime ?? new De("Workbook Runtime", {
1815
1815
  isDate1904: () => this._isDate1904,
1816
1816
  getNow: () => this._transactions.getCurrentCommit().getTimestamp(),
1817
- getLocale: () => this._locale ?? ye() ?? Se(),
1817
+ getLocale: () => this._locale ?? We() ?? Ae(),
1818
1818
  getLocaleOverrides: () => this._localeOverrides
1819
- }), this._listenerLanguage = d.addChangeListener(() => {
1819
+ }), this._listenerLanguage = e.addChangeListener(() => {
1820
1820
  this._closed || this._notifyAllChange();
1821
1821
  });
1822
- let i = this, a = this._beginCommit({ description: g(r ? "op.openWorkbook" : "op.newWorkbook") });
1822
+ let o = this, s = this._beginCommit({ description: d(a ? "op.openWorkbook" : "op.newWorkbook") });
1823
1823
  try {
1824
- this._strings = t.strings ?? new de(), this._ownStrings = !t.strings, this._resources = t.resources ?? new Xe(), this._ownResources = !t.resources, this._createSheetName = t.createSheetNameCallback ?? rn;
1825
- let e = t.createSheetCallback;
1826
- e ||= (e) => new y(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, a, o, s) => {
1824
+ this._strings = r.strings ?? new le(), this._ownStrings = !r.strings, this._resources = r.resources ?? new he(), this._ownResources = !r.resources, this._createSheetName = r.createSheetNameCallback ?? rn;
1825
+ let e = r.createSheetCallback;
1826
+ e ||= (e) => new F(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, i, a, s) => {
1827
1827
  let c = null, l = {
1828
- runtime: i._runtime,
1829
- readonly: i._options.readonly ?? !1,
1830
- disableLoadAutoFit: i._options.disableLoadAutoFit ?? !1,
1831
- opener: i._options.opener,
1832
- transactions: i._transactions,
1833
- styles: i._styles,
1834
- strings: i._strings,
1835
- resources: i._resources,
1836
- names: i._names,
1837
- workbook: i,
1838
- calculation: i._calculation,
1839
- resolveRange: (e) => i._options.resolveRange?.(e) ?? i.getRange(e),
1828
+ runtime: o._runtime,
1829
+ readonly: o._options.readonly ?? !1,
1830
+ disableLoadAutoFit: o._options.disableLoadAutoFit ?? !1,
1831
+ opener: o._options.opener,
1832
+ transactions: o._transactions,
1833
+ styles: o._styles,
1834
+ strings: o._strings,
1835
+ resources: o._resources,
1836
+ names: o._names,
1837
+ workbook: o,
1838
+ calculation: o._calculation,
1839
+ resolveRange: (e) => o._options.resolveRange?.(e) ?? o.getRange(e),
1840
1840
  container: {
1841
1841
  beforeFromJSON: (e) => {
1842
- c = e, i._addSheetRef({
1842
+ c = e, o._addSheetRef({
1843
1843
  name: n,
1844
1844
  id: t,
1845
- visibility: r ?? F.Visibility.Visible,
1846
- sheetId: o,
1845
+ visibility: r ?? N.Visibility.Visible,
1846
+ sheetId: a,
1847
1847
  sheet: e
1848
- }, a);
1848
+ }, i);
1849
1849
  },
1850
1850
  getName: () => {
1851
- let e = i._getSheetRef(c);
1851
+ let e = o._getSheetRef(c);
1852
1852
  return e ? e.name : n;
1853
1853
  },
1854
1854
  setName: (e, t) => {
1855
- i._getSheetRef(c) && i._setSheetName(c, e, t);
1855
+ o._getSheetRef(c) && o._setSheetName(c, e, t);
1856
1856
  },
1857
1857
  setNameChangeCallback: (e) => {
1858
- i._sheetOnNameChange.set(t, e);
1858
+ o._sheetOnNameChange.set(t, e);
1859
1859
  },
1860
1860
  getVisibility: () => {
1861
- let e = i._getSheetRef(c);
1862
- return e ? e.visibility : F.Visibility.Visible;
1861
+ let e = o._getSheetRef(c);
1862
+ return e ? e.visibility : N.Visibility.Visible;
1863
1863
  },
1864
1864
  setVisibility: (e, t) => {
1865
- i._setSheetVisibility(c, e, t);
1865
+ o._setSheetVisibility(c, e, t);
1866
1866
  },
1867
1867
  setVisibilityCallback: (e) => {
1868
- i._sheetOnVisibilityChange.set(t, e);
1868
+ o._sheetOnVisibilityChange.set(t, e);
1869
1869
  },
1870
- duplicate: () => i._duplicateSheet(c),
1870
+ duplicate: () => o._duplicateSheet(c),
1871
1871
  getIndex: () => {
1872
- let e = i._getSheetRef(c);
1873
- return e ? i._getOffsetForId(e.id, i._getSheetRefs(F.Visibility.VeryHidden)) : a;
1872
+ let e = o._getSheetRef(c);
1873
+ return e ? o._getOffsetForId(e.id, o._getSheetRefs(N.Visibility.VeryHidden)) : i;
1874
1874
  },
1875
1875
  setIndex: (e, t) => {
1876
- let n = i._getSheetRef(c, F.Visibility.VeryHidden);
1877
- return !!n && (i._moveSheet(n, e, t), !0);
1876
+ let n = o._getSheetRef(c, N.Visibility.VeryHidden);
1877
+ return !!n && (o._moveSheet(n, e, t), !0);
1878
1878
  },
1879
1879
  setIndexCallback: (e) => {
1880
- i._sheetOnIndexChange.set(t, e);
1880
+ o._sheetOnIndexChange.set(t, e);
1881
1881
  },
1882
- requestSelect: async () => (i._setSelectedSheet(c), await this._emitter.notify("onRequestSelect", {
1883
- source: i,
1882
+ requestSelect: async () => (o._setSelectedSheet(c), await this._emitter.notify("onRequestSelect", {
1883
+ source: o,
1884
1884
  params: c,
1885
1885
  async: !0
1886
- }), i.getSelectedSheet() === c)
1886
+ }), o.getSelectedSheet() === c)
1887
1887
  }
1888
1888
  };
1889
- return s && (l.json = s), c = e(l, n, a, r), c;
1890
- }, this._namedTableSource = new Ze({
1891
- getSheets: () => i._sheets ? i.getSheets().getItems() : v.EmptyArray,
1892
- addSheetsListener: (e, t) => i.addListeners({ onSheetsChange: e }, t)
1893
- }), this._names = t.names ?? new Ue({
1894
- addressToRanges: (e) => i.getRanges(e),
1895
- getCurrentScope: () => i.getSelectedSheet().getName(),
1896
- isReadOnly: () => (i._options.readonly ?? !1) || i._isStructureProtected(),
1897
- transactions: i._transactions,
1898
- getSources: () => i._calculation ? [i._calculation.getNamedFormulas(), i._namedTableSource] : v.EmptyArray
1899
- }), this._ownNames = !t.names, this._calculation = t.calculation ?? new Ge({
1900
- runtime: i._runtime,
1901
- functions: t.functions,
1902
- json: r?.calc,
1903
- isNamesReadOnly: () => i._isStructureProtected(),
1889
+ return s && (l.json = s), c = e(l, n, i, r), c;
1890
+ }, this._namedTableSource = new ve({
1891
+ getSheets: () => o._sheets ? o.getSheets().getItems() : t.EmptyArray,
1892
+ addSheetsListener: (e, t) => o.addListeners({ onSheetsChange: e }, t)
1893
+ }), this._names = r.names ?? new se({
1894
+ addressToRanges: (e) => o.getRanges(e),
1895
+ getCurrentScope: () => o.getSelectedSheet().getName(),
1896
+ isReadOnly: () => (o._options.readonly ?? !1) || o._isStructureProtected(),
1897
+ transactions: o._transactions,
1898
+ getSources: () => o._calculation ? [o._calculation.getNamedFormulas(), o._namedTableSource] : t.EmptyArray
1899
+ }), this._ownNames = !r.names, this._calculation = r.calculation ?? new te({
1900
+ runtime: o._runtime,
1901
+ functions: r.functions,
1902
+ json: a?.calc,
1903
+ isNamesReadOnly: () => o._isStructureProtected(),
1904
1904
  getActiveCell: () => {
1905
- let e = i.getSelectedSheet(), t = e?.getSelectedRange()?.getCoords();
1905
+ let e = o.getSelectedSheet(), t = e?.getSelectedRange()?.getCoords();
1906
1906
  return t ? {
1907
1907
  rowIndex: t.rowStart,
1908
1908
  colIndex: t.colStart,
1909
1909
  scope: e.getId()
1910
1910
  } : null;
1911
1911
  },
1912
- getRange: i.getRange.bind(i),
1913
- getRanges: i.getRanges.bind(i),
1914
- createGraphRanges: (e, t) => i._createGraphRanges(e, t),
1912
+ getRange: o.getRange.bind(o),
1913
+ getRanges: o.getRanges.bind(o),
1914
+ createGraphRanges: (e, t) => o._createGraphRanges(e, t),
1915
1915
  getSheetIndex: (e) => {
1916
1916
  if (e === void 0) {
1917
- let e = i.getSelectedSheet();
1918
- return e ? this._getSheetRefs(F.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1917
+ let e = o.getSelectedSheet();
1918
+ return e ? this._getSheetRefs(N.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1919
1919
  }
1920
- let t = this._getSheetRefs(F.Visibility.VeryHidden);
1920
+ let t = this._getSheetRefs(N.Visibility.VeryHidden);
1921
1921
  e = e.toLowerCase();
1922
1922
  let n = t.length;
1923
1923
  for (let r = 0; r < n; r++) if (t[r].name.toLowerCase() === e) return r;
@@ -1927,7 +1927,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1927
1927
  if (!t || t.length === 0) return -1;
1928
1928
  let n = t[0].getRanges?.()?.getCoords()?.[0]?.scope;
1929
1929
  if (!n) return -1;
1930
- let r = this._getSheetRefs(F.Visibility.VeryHidden);
1930
+ let r = this._getSheetRefs(N.Visibility.VeryHidden);
1931
1931
  n = n.toLowerCase();
1932
1932
  let i = r.length;
1933
1933
  for (let e = 0; e < i; e++) if (r[e].name.toLowerCase() === n) return e;
@@ -1936,50 +1936,50 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1936
1936
  }
1937
1937
  return -1;
1938
1938
  },
1939
- getSheetCount: () => i.getSheets().getItems({ visibility: F.Visibility.VeryHidden }).length,
1940
- getSheetIds: () => i._sheets?.getItems({ visibility: F.Visibility.VeryHidden }).map((e) => e.getId()) ?? [],
1941
- addSheetsListener: (e, t) => i.addListeners({ onSheetsChange: () => {
1942
- i._restoringSheets || e();
1939
+ getSheetCount: () => o.getSheets().getItems({ visibility: N.Visibility.VeryHidden }).length,
1940
+ getSheetIds: () => o._sheets?.getItems({ visibility: N.Visibility.VeryHidden }).map((e) => e.getId()) ?? [],
1941
+ addSheetsListener: (e, t) => o.addListeners({ onSheetsChange: () => {
1942
+ o._restoringSheets || e();
1943
1943
  } }, t),
1944
1944
  getSheetById: (e) => {
1945
- let t = i.getSheets().getItems({ visibility: F.Visibility.VeryHidden }), n = t.length;
1945
+ let t = o.getSheets().getItems({ visibility: N.Visibility.VeryHidden }), n = t.length;
1946
1946
  for (let r = 0; r < n; r++) if (t[r].getId() === e) return t[r];
1947
1947
  return null;
1948
1948
  },
1949
- externalBooks: r?.externalBooks,
1950
- externalBookResolver: t.externalBookResolver,
1951
- namedCollection: i._names,
1952
- strings: i._strings,
1953
- transactions: i._transactions,
1954
- names: r?.names
1955
- }), this._ownCalculation = !t.calculation, this._scripts = this._createScripts(r?.modules), this._ownNames = !t.names, this._options = Object.freeze({ ...t });
1956
- let n = t.calcOnLoad ?? "auto", o = !1, s = (async () => {
1949
+ externalBooks: a?.externalBooks,
1950
+ externalBookResolver: r.externalBookResolver,
1951
+ namedCollection: o._names,
1952
+ strings: o._strings,
1953
+ transactions: o._transactions,
1954
+ names: a?.names
1955
+ }), this._ownCalculation = !r.calculation, this._scripts = this._createScripts(a?.modules), this._ownNames = !r.names, this._options = Object.freeze({ ...r });
1956
+ let n = r.calcOnLoad ?? "auto", i = !1, c = (async () => {
1957
1957
  try {
1958
- if (this._ownCalculation && n !== "none" && (n === "full" || n === "auto" && !0 === r?.calc?.fullCalcOnLoad ? await this._calculation.calculate({ full: !0 }) : await this._calculation.start(), this._closed)) return;
1958
+ if (this._ownCalculation && n !== "none" && (n === "full" || n === "auto" && !0 === a?.calc?.fullCalcOnLoad ? await this._calculation.calculate({ full: !0 }) : await this._calculation.start(), this._closed)) return;
1959
1959
  await this._scripts.start();
1960
1960
  } finally {
1961
- o = !0, this._starting = null;
1961
+ i = !0, this._starting = null;
1962
1962
  }
1963
1963
  })();
1964
- o || (this._starting = s), this._starting?.catch(() => {}), r ? this._fromJSON(r) : (this._initState(), this._addSheet(!1)), this._sheets = new tn((e) => i._addSheetOptions(e), (e, t) => {
1964
+ i || (this._starting = c), this._starting?.catch(() => {}), a ? this._fromJSON(a) : (this._initState(), this._addSheet(!1)), this._sheets = new tn((e) => o._addSheetOptions(e), (e, n) => {
1965
1965
  if (e) {
1966
- let n = this._getSheetRef(e, t);
1967
- return n ? [n.sheet] : v.EmptyArray;
1966
+ let r = this._getSheetRef(e, n);
1967
+ return r ? [r.sheet] : t.EmptyArray;
1968
1968
  }
1969
- return this._getSheets(t);
1969
+ return this._getSheets(n);
1970
1970
  }, (e, t) => {
1971
1971
  let n = e.onCollectionChange, r = e.onInvalidated;
1972
- return i._emitter.addListeners({
1972
+ return o._emitter.addListeners({
1973
1973
  onSheetsChange: n ? () => {
1974
- n(i._sheets);
1974
+ n(o._sheets);
1975
1975
  } : void 0,
1976
1976
  onInvalidated: r ? () => {
1977
- r(i._sheets);
1977
+ r(o._sheets);
1978
1978
  } : void 0
1979
1979
  }, t);
1980
- }), this._ownCalculation && (t.calcOnLoad ?? "auto") !== "none" && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), this._ownTransactions ? a.amend() : a.commit();
1980
+ }), this._ownCalculation && (r.calcOnLoad ?? "auto") !== "none" && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), this._ownTransactions ? s.amend() : s.commit();
1981
1981
  } catch (e) {
1982
- throw a.rollback(), e;
1982
+ throw s.rollback(), e;
1983
1983
  }
1984
1984
  this._initializing = !1;
1985
1985
  }
@@ -1987,7 +1987,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
1987
1987
  let e = this._getSheetRefs();
1988
1988
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
1989
1989
  let t = this._options;
1990
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new we().getDefaultTheme(), this._styles = t?.styles ?? new _e(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Yt()), this._listenerProtection?.(), this._protection = new Y(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1990
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new Be().getDefaultTheme(), this._styles = t?.styles ?? new me(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Yt()), this._listenerProtection?.(), this._protection = new Y(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1991
1991
  n._emitter.notify("onProtectionChange");
1992
1992
  } });
1993
1993
  let n = this;
@@ -2056,8 +2056,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2056
2056
  return this._view;
2057
2057
  }
2058
2058
  setView(e) {
2059
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2060
- if (!e) throw new l(i("error.sheet.emptyView"));
2059
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2060
+ if (!e) throw new a(f("error.sheet.emptyView"));
2061
2061
  this._listenerWorkbookView?.();
2062
2062
  let t = this, n = -1;
2063
2063
  return this._listenerWorkbookView = e.addListeners({ onViewChange: (e) => {
@@ -2069,7 +2069,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2069
2069
  return this._runtime;
2070
2070
  }
2071
2071
  setDate1904(e) {
2072
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2072
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2073
2073
  return this._isDate1904 === e || (this._isDate1904 = e, this._emitter.notify("onRegionalChange")), this;
2074
2074
  }
2075
2075
  getLocale() {
@@ -2079,11 +2079,11 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2079
2079
  return this._locale;
2080
2080
  }
2081
2081
  setLocale(e) {
2082
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2082
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2083
2083
  if (e) try {
2084
2084
  new Intl.Locale(e);
2085
2085
  } catch {
2086
- throw Error(i("error.workbook.invalidLocale", { locale: e }));
2086
+ throw Error(f("error.workbook.invalidLocale", { locale: e }));
2087
2087
  }
2088
2088
  return this._locale === e || (this._locale = e, this._emitter.notify("onRegionalChange")), this;
2089
2089
  }
@@ -2091,7 +2091,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2091
2091
  return this._localeOverrides;
2092
2092
  }
2093
2093
  setLocaleOverrides(e) {
2094
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2094
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2095
2095
  let t = e && Object.keys(e).length > 0 ? e : null;
2096
2096
  return this._localeOverrides = t, this._emitter.notify("onRegionalChange"), this;
2097
2097
  }
@@ -2114,7 +2114,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2114
2114
  return this._updateLinks;
2115
2115
  }
2116
2116
  setUpdateLinks(e) {
2117
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2117
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2118
2118
  return this._updateLinks = e, this;
2119
2119
  }
2120
2120
  getPivotTables() {
@@ -2130,8 +2130,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2130
2130
  return this._theme;
2131
2131
  }
2132
2132
  setTheme(e) {
2133
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2134
- if (!e) throw new l(i("error.workbook.notSetValue"));
2133
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2134
+ if (!e) throw new a(f("error.workbook.notSetValue"));
2135
2135
  let t = this._theme;
2136
2136
  return this._theme = e, this.getStyles().setTheme(e), this._emitter.notify("onThemeChange"), t;
2137
2137
  }
@@ -2142,17 +2142,17 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2142
2142
  let e = this._getSheetRef(this.getSelectedSheetIndex());
2143
2143
  return e ? e?.sheet : null;
2144
2144
  }
2145
- getSheet(e, t = F.Visibility.Visible) {
2145
+ getSheet(e, t = N.Visibility.Visible) {
2146
2146
  if (e === void 0) return this.getSelectedSheet();
2147
- if (!e) throw Error(i("error.workbook.sheetNameNotProvided"));
2147
+ if (!e) throw Error(f("error.workbook.sheetNameNotProvided"));
2148
2148
  let n = this._getSheetRef(e, t);
2149
- if (!n) throw new h(i("error.workbook.sheetNameNotFound", { sheetName: e }));
2149
+ if (!n) throw new r(f("error.workbook.sheetNameNotFound", { sheetName: e }));
2150
2150
  return n.sheet;
2151
2151
  }
2152
- getSheetAt(e, t = F.Visibility.Visible) {
2152
+ getSheetAt(e, t = N.Visibility.Visible) {
2153
2153
  let n = this._getSheetRef(e, t);
2154
- if (!n) throw new h(function(e) {
2155
- return i("error.workbook.sheetIndexNotFound", { index: e });
2154
+ if (!n) throw new r(function(e) {
2155
+ return f("error.workbook.sheetIndexNotFound", { index: e });
2156
2156
  }(e));
2157
2157
  return n.sheet;
2158
2158
  }
@@ -2162,22 +2162,22 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2162
2162
  addSheet(e) {
2163
2163
  return this.getSheets().add(e);
2164
2164
  }
2165
- _getSheets(e = F.Visibility.Visible) {
2165
+ _getSheets(e = N.Visibility.Visible) {
2166
2166
  let t = this._getSheetRefs(e), n = [], r = t.length;
2167
2167
  for (let e = 0; e < r; e++) n.push(t[e].sheet);
2168
2168
  return n;
2169
2169
  }
2170
- _getSheetRefs(e = F.Visibility.Visible) {
2171
- let t = this._getState();
2172
- return t ? e === F.Visibility.Visible ? t.sheetRefsVisible : e === F.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === F.Visibility.VeryHidden ? t.sheetRefsAll : v.EmptyArray : [];
2170
+ _getSheetRefs(e = N.Visibility.Visible) {
2171
+ let n = this._getState();
2172
+ return n ? e === N.Visibility.Visible ? n.sheetRefsVisible : e === N.Visibility.Hidden ? n.sheetRefsVisibleAndHidden : e === N.Visibility.VeryHidden ? n.sheetRefsAll : t.EmptyArray : [];
2173
2173
  }
2174
- _getSheetRef(e, t = F.Visibility.Visible) {
2174
+ _getSheetRef(e, t = N.Visibility.Visible) {
2175
2175
  let n = null;
2176
- return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof y ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2176
+ return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof F ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2177
2177
  }
2178
2178
  _validateNewSheetName(e, t = !0) {
2179
2179
  if (e == null) return e;
2180
- if (on(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new l(i("error.workbook.nameTaken"));
2180
+ if (on(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new a(f("error.workbook.nameTaken"));
2181
2181
  return e.substring(0, 31);
2182
2182
  }
2183
2183
  findValidSheetName(e) {
@@ -2208,19 +2208,19 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2208
2208
  return !this._initializing && !this.getProtection().isStructureAllowed();
2209
2209
  }
2210
2210
  _addSheetOptions(e) {
2211
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2212
- if (!this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2211
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2212
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2213
2213
  let t, n = null;
2214
2214
  t = typeof e == "string" ? { name: e } : typeof e == "number" ? { index: e } : e, t = {
2215
2215
  ...t,
2216
- description: t?.description ?? g("op.addSheet")
2216
+ description: t?.description ?? d("op.addSheet")
2217
2217
  };
2218
2218
  let r = this.beginCommit(t);
2219
2219
  try {
2220
2220
  let e = t?.autoSelect ?? !1;
2221
2221
  n = this._addSheet(!0, t.name, t.index ?? null);
2222
- let a = this.getView().getActiveSheetId();
2223
- if (e && this._recordActiveSheet(r, a, this._getSheetRef(n).id), r.commit({ description: i("op.addSheetNamed", { name: n.getName() }) }), !1 !== e) {
2222
+ let i = this.getView().getActiveSheetId();
2223
+ if (e && this._recordActiveSheet(r, i, this._getSheetRef(n).id), r.commit({ description: f("op.addSheetNamed", { name: n.getName() }) }), !1 !== e) {
2224
2224
  let t = typeof e == "boolean" ? void 0 : e;
2225
2225
  n.select(t);
2226
2226
  }
@@ -2231,28 +2231,28 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2231
2231
  }
2232
2232
  _nextSheetName(e = null) {
2233
2233
  let t = e ? e.toLowerCase() : null, n = this._getState(), r = n.sheetsByLowerCaseName;
2234
- if (e && r.has(t)) throw new l(function(e) {
2235
- return i("error.workbook.nameDuplicate", { sheetName: e });
2234
+ if (e && r.has(t)) throw new a(function(e) {
2235
+ return f("error.workbook.nameDuplicate", { sheetName: e });
2236
2236
  }(e));
2237
2237
  t = (e = this._validateNewSheetName(e)) ? e.toLowerCase() : null;
2238
- let a = n.lastId + 1;
2238
+ let i = n.lastId + 1;
2239
2239
  for (; !e;) {
2240
- let t = this._createSheetName(a), n = t.toLowerCase();
2241
- r.has(n) ? a++ : e = t;
2240
+ let t = this._createSheetName(i), n = t.toLowerCase();
2241
+ r.has(n) ? i++ : e = t;
2242
2242
  }
2243
- return this._updateState({ lastId: a }), e;
2243
+ return this._updateState({ lastId: i }), e;
2244
2244
  }
2245
2245
  _addSheet(e, t = null, n = null) {
2246
2246
  t = this._nextSheetName(t);
2247
- let r = this._getState(), a = this._createSheet(r.lastId, t, F.Visibility.Visible, n, void 0, null);
2248
- if (!a) throw new l(i("error.workbook.sheetNameBlank"));
2249
- return e && this._emitter.notify("onSheetsChange"), a;
2247
+ let r = this._getState(), i = this._createSheet(r.lastId, t, N.Visibility.Visible, n, void 0, null);
2248
+ if (!i) throw new a(f("error.workbook.sheetNameBlank"));
2249
+ return e && this._emitter.notify("onSheetsChange"), i;
2250
2250
  }
2251
2251
  _updateSheetRefStates(e) {
2252
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2253
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2254
- let t = e, n = [], r = [], a = t.length;
2255
- for (let e = 0; e < a; e++) t[e].visibility === F.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === F.Visibility.Hidden && r.push(t[e]);
2252
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2253
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2254
+ let t = e, n = [], r = [], i = t.length;
2255
+ for (let e = 0; e < i; e++) t[e].visibility === N.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === N.Visibility.Hidden && r.push(t[e]);
2256
2256
  this._updateState({
2257
2257
  sheetRefsAll: t,
2258
2258
  sheetRefsVisible: n,
@@ -2260,35 +2260,35 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2260
2260
  });
2261
2261
  }
2262
2262
  _addSheetRef(e, t = null) {
2263
- let n = this._getState(), r = n.sheetRefsAll, a = Math.max(0, Math.min(r.length, t ?? r.length)), o = [
2264
- ...r.slice(0, a),
2263
+ let n = this._getState(), r = n.sheetRefsAll, i = Math.max(0, Math.min(r.length, t ?? r.length)), a = [
2264
+ ...r.slice(0, i),
2265
2265
  e,
2266
- ...r.slice(a)
2266
+ ...r.slice(i)
2267
2267
  ];
2268
- this._updateSheetRefStates(o);
2269
- let s = e.sheet, c = e.name.toLowerCase(), l = new Map(n.refsById);
2270
- l.set(e.id, e);
2271
- let u = new Map(n.refsByLowerCaseName);
2272
- u.set(c, e);
2273
- let d = new Map(n.refsByInstance);
2274
- d.set(s, e);
2275
- let f = new Map(n.sheetsById);
2276
- f.set(e.id, s);
2268
+ this._updateSheetRefStates(a);
2269
+ let o = e.sheet, s = e.name.toLowerCase(), c = new Map(n.refsById);
2270
+ c.set(e.id, e);
2271
+ let l = new Map(n.refsByLowerCaseName);
2272
+ l.set(s, e);
2273
+ let u = new Map(n.refsByInstance);
2274
+ u.set(o, e);
2275
+ let d = new Map(n.sheetsById);
2276
+ d.set(e.id, o);
2277
2277
  let p = new Map(n.sheetsByLowerCaseName);
2278
- p.set(c, s);
2278
+ p.set(s, o);
2279
2279
  let m = this, h = n.listenersSheets;
2280
- if (s !== void 0) {
2281
- let t = s.addListeners({
2280
+ if (o !== void 0) {
2281
+ let t = o.addListeners({
2282
2282
  onBeforeDelete: (e) => {
2283
2283
  m._validateDeleteSheet(e);
2284
2284
  },
2285
2285
  onDelete(e) {
2286
- let t = m._getSheetRef(e, F.Visibility.VeryHidden);
2286
+ let t = m._getSheetRef(e, N.Visibility.VeryHidden);
2287
2287
  if (!t) return;
2288
- let n = m._beginCommit({ description: i("op.deleteSheet", { name: t.name }) });
2288
+ let n = m._beginCommit({ description: f("op.deleteSheet", { name: t.name }) });
2289
2289
  try {
2290
- let r = m._getState(), i = r.sheetRefsAll, a = m._getOffsetForId(t.id, i), o = [...i];
2291
- o.splice(a, 1), m._updateSheetRefStates(o);
2290
+ let r = m._getState(), i = r.sheetRefsAll, a = m._getOffsetForId(t.id, i), s = [...i];
2291
+ s.splice(a, 1), m._updateSheetRefStates(s);
2292
2292
  let c = new Map(r.refsById);
2293
2293
  c.delete(t.id);
2294
2294
  let l = new Map(r.sheetsById);
@@ -2302,7 +2302,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2302
2302
  let h = new Map(r.listenersSheets);
2303
2303
  h.delete(t.id), m._adjustRemoveSelectionIfRequired(a, t.id), m._adjustSheetNamesIfRequired(), m._sheetOnNameChange.delete(t.id), m._sheetOnVisibilityChange.delete(t.id), m._sheetOnIndexChange.delete(t.id), m._emitter.notify("onSheetsChange");
2304
2304
  let g = new Set(r.sheetsCreated);
2305
- g.has(s) && g.delete(s), m._updateState({
2305
+ g.has(o) && g.delete(o), m._updateState({
2306
2306
  refsById: c,
2307
2307
  sheetsById: l,
2308
2308
  refsByLowerCaseName: d,
@@ -2315,7 +2315,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2315
2315
  throw n.rollback(), e;
2316
2316
  }
2317
2317
  }
2318
- }), r = s.addListeners({ onSelectionChange: (e) => {
2318
+ }), r = o.addListeners({ onSelectionChange: (e) => {
2319
2319
  m.getView().getActiveSheetId() === m._getSheetRef(e)?.id && m._emitter.notify("onSelectionChange", {
2320
2320
  source: m,
2321
2321
  params: e
@@ -2327,10 +2327,10 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2327
2327
  }
2328
2328
  let g = n.lastId;
2329
2329
  g !== -1 && (g = Math.max(g, e.id)), this._updateState({ lastId: g }), this._updateState({
2330
- refsById: l,
2331
- refsByLowerCaseName: u,
2332
- refsByInstance: d,
2333
- sheetsById: f,
2330
+ refsById: c,
2331
+ refsByLowerCaseName: l,
2332
+ refsByInstance: u,
2333
+ sheetsById: d,
2334
2334
  sheetsByLowerCaseName: p,
2335
2335
  listenersSheets: h
2336
2336
  }), this._adjustSheetNamesIfRequired();
@@ -2369,34 +2369,34 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2369
2369
  let n = this._view.getActiveSheetId();
2370
2370
  n ??= (this._view.setActiveSheetId(t), t);
2371
2371
  let r = e.refsById.get(n);
2372
- r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === F.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2372
+ r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === N.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2373
2373
  }
2374
2374
  _validateDeleteSheet(e) {
2375
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2376
- if (!this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2375
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2376
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2377
2377
  let t = this._getSheetRef(e);
2378
- if (!t) throw new l(function(e) {
2379
- return i("error.workbook.deleteKey", { key: e });
2378
+ if (!t) throw new a(function(e) {
2379
+ return f("error.workbook.deleteKey", { key: e });
2380
2380
  }(e));
2381
2381
  let n = this._getState().sheetRefsVisible;
2382
- if (n.length === 1 && n[0].id === t.id) throw new l(i("error.workbook.sheetOne"));
2382
+ if (n.length === 1 && n[0].id === t.id) throw new a(f("error.workbook.sheetOne"));
2383
2383
  }
2384
2384
  _getOffsetForId(e, t) {
2385
2385
  let n = t.length;
2386
2386
  for (let r = 0; r < n; r++) if (t[r].id === e) return r;
2387
- throw new l(i("error.workbook.noVisibleRefs"));
2387
+ throw new a(f("error.workbook.noVisibleRefs"));
2388
2388
  }
2389
2389
  find(e) {
2390
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2390
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2391
2391
  let t = this._getSheets();
2392
2392
  if (t.length === 1) return t[0].find(e);
2393
2393
  typeof e == "string" && (e = { text: e });
2394
- let n = !e?.reverse, r = e?.disableWrap ?? !1, a = this.getSelectedSheetIndex(), o = a, s = t[o], c = !1;
2394
+ let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, s = t[a], c = !1;
2395
2395
  e = {
2396
2396
  ...e,
2397
2397
  disableWrap: !0
2398
2398
  };
2399
- let l, u = s.find(e), d = u.next(), f = !1;
2399
+ let l, u = s.find(e), d = u.next(), p = !1;
2400
2400
  if (e?.from) {
2401
2401
  let t = this._rangesAddressToCoords(e?.from);
2402
2402
  l = {
@@ -2404,50 +2404,50 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2404
2404
  rowIndex: t[0].rowStart
2405
2405
  };
2406
2406
  }
2407
- let p = m.createCellComparator(e?.axis, e?.reverse);
2407
+ let m = o.createCellComparator(e?.axis, e?.reverse);
2408
2408
  delete (e = { ...e }).from;
2409
2409
  let h = () => {
2410
- if (!f && d.done && (c && o === a ? f = !0 : n ? (o++, o > t.length - 1 && (o = 0, c = !0)) : (o--, o < 0 && (o = t.length - 1, c = !0)), r && c && (f = !0), f || l || !c || o !== a || (f = !0), !f)) {
2411
- s = t[o], u = s.find(e);
2410
+ if (!p && d.done && (c && a === i ? p = !0 : n ? (a++, a > t.length - 1 && (a = 0, c = !0)) : (a--, a < 0 && (a = t.length - 1, c = !0)), r && c && (p = !0), p || l || !c || a !== i || (p = !0), !p)) {
2411
+ s = t[a], u = s.find(e);
2412
2412
  let n = d;
2413
2413
  return d = u.next(), n;
2414
2414
  }
2415
- if (!f && c && o === a && (d.done || !l || !d.done && p(d.value.getCoords(), l) >= 0) && (f = !0), f) {
2415
+ if (!p && c && a === i && (d.done || !l || !d.done && m(d.value.getCoords(), l) >= 0) && (p = !0), p) {
2416
2416
  let e = d;
2417
- return d = Me, e;
2417
+ return d = Ie, e;
2418
2418
  }
2419
- let i = d;
2420
- return d = u.next(), i;
2419
+ let o = d;
2420
+ return d = u.next(), o;
2421
2421
  };
2422
2422
  return { next: () => {
2423
2423
  let e = h();
2424
- for (; !f && e.done;) e = h();
2424
+ for (; !p && e.done;) e = h();
2425
2425
  return e;
2426
2426
  } };
2427
2427
  }
2428
2428
  replace(e, t, n) {
2429
- let r = 0, a = null, o = typeof t == "function", s = n?.maxCount ?? 2 ** 53 - 1, c = !n?.maxCount, l = "", u = typeof t == "string" ? Pe(t) : null, d = n?.description ?? g("op.replace"), f = this._transactions.beginCommit({ description: d });
2429
+ let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? Ne(t) : null, u = n?.description ?? d("op.replace"), p = this._transactions.beginCommit({ description: u });
2430
2430
  try {
2431
- let d = null, p = null, m = e.next();
2432
- for (; !m.done && r < s;) {
2433
- let i = m.value, s = i.getSheet();
2434
- s !== d && (d = s, p !== null && p.apply(), p = d.getEntireRange().createSparseBuilder({
2431
+ let u = null, m = null, h = e.next();
2432
+ for (; !h.done && r < o;) {
2433
+ let o = h.value, s = o.getSheet();
2434
+ s !== u && (u = s, m !== null && m.apply(), m = u.getEntireRange().createSparseBuilder({
2435
2435
  axis: n?.axis,
2436
2436
  allowUnorderedWrites: !0
2437
2437
  }));
2438
- let c = o ? t(i) : t;
2439
- c !== void 0 && c !== i && (p.push(i, c), r++, a = i), m = e.next();
2438
+ let c = a ? t(o) : t;
2439
+ c !== void 0 && c !== o && (m.push(o, c), r++, i = o), h = e.next();
2440
2440
  }
2441
- p?.apply(), r === 1 && s === 1 && a && (l = a.getAddress()), r === 0 ? f.rollback() : f.commit({ description: n?.description ?? (c ? u === null ? g("op.replaceAll") : i("op.replaceAllWith", { value: u }) : l ? u === null ? i("op.replaceAt", { address: l }) : i("op.replaceAtWith", {
2442
- address: l,
2443
- value: u
2444
- }) : u === null ? g("op.replace") : i("op.replaceWith", { value: u })) });
2441
+ m?.apply(), r === 1 && o === 1 && i && (c = i.getAddress()), r === 0 ? p.rollback() : p.commit({ description: n?.description ?? (s ? l === null ? d("op.replaceAll") : f("op.replaceAllWith", { value: l }) : c ? l === null ? f("op.replaceAt", { address: c }) : f("op.replaceAtWith", {
2442
+ address: c,
2443
+ value: l
2444
+ }) : l === null ? d("op.replace") : f("op.replaceWith", { value: l })) });
2445
2445
  } catch (e) {
2446
- throw f.rollback(), e;
2446
+ throw p.rollback(), e;
2447
2447
  }
2448
2448
  return {
2449
2449
  count: r,
2450
- last: a
2450
+ last: i
2451
2451
  };
2452
2452
  }
2453
2453
  _nextSheetIndex(e, t = this._getSheetRefs()) {
@@ -2459,83 +2459,83 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2459
2459
  return n === 1 ? 0 : (e === void 0 && (e = this.getSelectedSheetIndex()), (e = Math.max(0, Math.min(e, n - 1))) <= 0 ? n - 1 : e - 1);
2460
2460
  }
2461
2461
  getNextSheet(e) {
2462
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2462
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2463
2463
  let t = this._getSheetRefs();
2464
2464
  return t[this._nextSheetIndex(e, t)]?.sheet ?? null;
2465
2465
  }
2466
2466
  getPreviousSheet(e) {
2467
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2467
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2468
2468
  let t = this._getSheetRefs();
2469
2469
  return t[this._prevSheetIndex(e, t)]?.sheet ?? null;
2470
2470
  }
2471
2471
  async _duplicateSheet(e) {
2472
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2473
- if (!this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2472
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2473
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2474
2474
  let t = this._getSheetRefs(), n = this.getSelectedSheetIndex(), r = null;
2475
2475
  if (e) {
2476
- if (r = this._getSheetRef(e), !r) throw new l(X(r));
2476
+ if (r = this._getSheetRef(e), !r) throw new a(X(r));
2477
2477
  } else r = t[n];
2478
2478
  if (!r) return null;
2479
- let a = r.sheet, s = this._strings.beginPersist(), c = this.getResources().beginPersist(), u = this.getStyles().beginPersist(), d = null, f = this.beginCommit(i("op.duplicateNamed", { name: a.getName() }));
2479
+ let i = r.sheet, o = this._strings.beginPersist(), s = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), l = null, d = this.beginCommit(f("op.duplicateNamed", { name: i.getName() }));
2480
2480
  try {
2481
- let e = this._getState().refsByInstance.get(a), r = await a.toJSON(), i = t.length + 1, o = this.findValidSheetName(e.name), s = this._createSheet(i, o, e.visibility, n, void 0, r);
2482
- this._emitter.notify("onSheetsChange"), d = s, f.commit();
2481
+ let e = this._getState().refsByInstance.get(i), r = await i.toJSON(), a = t.length + 1, o = this.findValidSheetName(e.name), s = this._createSheet(a, o, e.visibility, n, void 0, r);
2482
+ this._emitter.notify("onSheetsChange"), l = s, d.commit();
2483
2483
  } catch (e) {
2484
- throw f.rollback(), e;
2484
+ throw d.rollback(), e;
2485
2485
  } finally {
2486
- u.endPersist(), c.endPersist(), s.endPersist();
2486
+ c.endPersist(), s.endPersist(), o.endPersist();
2487
2487
  }
2488
- return d;
2488
+ return l;
2489
2489
  }
2490
2490
  _createRange(e, t) {
2491
- let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, F.Visibility.VeryHidden) : null;
2491
+ let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, N.Visibility.VeryHidden) : null;
2492
2492
  if (!r) {
2493
2493
  let e = this.getSelectedSheet();
2494
2494
  return e ? (delete n?.scope, an(n, n ? {
2495
- scope: T,
2495
+ scope: Pe,
2496
2496
  ...e.getEntireRange().getCoords()
2497
- } : null)) : void console.warn(i("error.workbook.noVisibleRefs"));
2497
+ } : null)) : void console.warn(f("error.workbook.noVisibleRefs"));
2498
2498
  }
2499
- let a = r.sheet, o = null;
2500
- return t && (o = { getOptions: t }), new ln(e, j(a), this, o);
2499
+ let i = r.sheet, a = null;
2500
+ return t && (a = { getOptions: t }), new ln(e, P(i), this, a);
2501
2501
  }
2502
2502
  _createRanges(e, t) {
2503
2503
  let n = this.getSelectedSheet(), r = null;
2504
- return t && (r = { getOptions: t }), new Q(e, j(n), this, r);
2504
+ return t && (r = { getOptions: t }), new Q(e, P(n), this, r);
2505
2505
  }
2506
2506
  getRange(e, t) {
2507
2507
  if (e === void 0) return this.getSelectedRange(t);
2508
2508
  try {
2509
2509
  let n = this._rangesAddressToCoords(e);
2510
- if (n.length !== 1) throw new l(i("error.address.singleRangeOnlyAlt"));
2510
+ if (n.length !== 1) throw new a(f("error.address.singleRangeOnlyAlt"));
2511
2511
  return this._createRange(n[0], t);
2512
2512
  } catch (t) {
2513
- throw t instanceof h ? new h(t.message) : new l(t.message ?? xe(e));
2513
+ throw t instanceof r ? new r(t.message) : new a(t.message ?? _e(e));
2514
2514
  }
2515
2515
  }
2516
2516
  getCell(e) {
2517
2517
  if (e === void 0) return this.getSelectedCell();
2518
2518
  let t = this.getRange(e);
2519
- if (t.size > 1) throw new l(i("error.address.singleCellOnly"));
2519
+ if (t.size > 1) throw new a(f("error.address.singleCellOnly"));
2520
2520
  return t.getCell();
2521
2521
  }
2522
2522
  getRanges(e, t) {
2523
2523
  let n = this._rangesAddressToCoords(e);
2524
- if (n.length === 0) throw new l(xe(e));
2524
+ if (n.length === 0) throw new a(_e(e));
2525
2525
  return this._createRanges(n, t);
2526
2526
  }
2527
2527
  _createGraphRanges(e, t) {
2528
2528
  let n = [], r = this.getCalculation()?.getNamedFormulas() ?? null;
2529
2529
  for (let e = 0; e < t.length; e++) {
2530
- let i = t[e], a = (i.sheetName ? this._getSheetRef(i.sheetName, F.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2531
- a && n.push(new x(i, r, j(a), null));
2530
+ let i = t[e], a = (i.sheetName ? this._getSheetRef(i.sheetName, N.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2531
+ a && n.push(new ee(i, r, P(a), null));
2532
2532
  }
2533
2533
  for (let t = 0; t < e.length; t++) n.push(e[t]);
2534
- return n.length === 0 ? null : new Q(n, j(this.getSelectedSheet()), this, null);
2534
+ return n.length === 0 ? null : new Q(n, P(this.getSelectedSheet()), this, null);
2535
2535
  }
2536
2536
  getStats(e) {
2537
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2538
- let t = this._getSheets(F.Visibility.VeryHidden), n = t.length;
2537
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2538
+ let t = this._getSheets(N.Visibility.VeryHidden), n = t.length;
2539
2539
  if (n === 1) return t[0].getStats(e);
2540
2540
  let r = Array(n);
2541
2541
  for (let i = 0; i < n; i++) r[i] = t[i].getStats(e);
@@ -2564,32 +2564,32 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2564
2564
  getSelectedCell() {
2565
2565
  return this.getSelectedSheet().getSelectedCell();
2566
2566
  }
2567
- _rangesAddressToCoords(e, t = !0, n = F.Visibility.Hidden) {
2568
- if (!e) throw new l(i("error.address.noAddress"));
2569
- let r = this.getSelectedSheet(), a = { ...r?.getEntireRange().getCoords() }, o = r?.getName();
2570
- if (o && (a.scope = o), typeof e == "string") {
2567
+ _rangesAddressToCoords(e, t = !0, n = N.Visibility.Hidden) {
2568
+ if (!e) throw new a(f("error.address.noAddress"));
2569
+ let r = this.getSelectedSheet(), i = { ...r?.getEntireRange().getCoords() }, o = r?.getName();
2570
+ if (o && (i.scope = o), typeof e == "string") {
2571
2571
  let t = e.trim().toLowerCase();
2572
2572
  if (t === "r" || t === "c") {
2573
2573
  let n = this.getSelectedCell().getCoords(), r = {};
2574
2574
  t === "r" ? r.rowStart = r.rowEnd = n.rowIndex : r.colStart = r.colEnd = n.colIndex, e = r;
2575
2575
  }
2576
2576
  }
2577
- let s = this, c = Je(e, a, ue, (e) => {
2577
+ let s = this, c = je(e, i, ie, (e) => {
2578
2578
  if (!t) return null;
2579
2579
  if (typeof e == "string") {
2580
2580
  let t = s.getNames().getByName(e)?.getRanges?.();
2581
2581
  if (t) return t.getCoords();
2582
2582
  }
2583
- throw new l(`Invalid sheet reference '${e}'.`);
2584
- }), u = c.length;
2585
- for (let e = 0; e < u; e++) this._validateCoords(c[e], n);
2583
+ throw new a(`Invalid sheet reference '${e}'.`);
2584
+ }), l = c.length;
2585
+ for (let e = 0; e < l; e++) this._validateCoords(c[e], n);
2586
2586
  return c;
2587
2587
  }
2588
- _validateCoords(e, t = F.Visibility.Visible, n = i("error.sheet.oobRange")) {
2588
+ _validateCoords(e, t = N.Visibility.Visible, n = f("error.sheet.oobRange")) {
2589
2589
  if (e === null) return;
2590
- let r = this.getSheet(e.scope, t).getEntireRange().getCoords();
2591
- if (!m.isRangeWithinRange(e, r)) throw new h(n);
2592
- if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new l(i("error.address.invalidRangeInverted"));
2590
+ let i = this.getSheet(e.scope, t).getEntireRange().getCoords();
2591
+ if (!o.isRangeWithinRange(e, i)) throw new r(n);
2592
+ if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new a(f("error.address.invalidRangeInverted"));
2593
2593
  }
2594
2594
  _updateSheetRef(e, t) {
2595
2595
  let n = this._getState(), r = [...n.sheetRefsAll];
@@ -2609,74 +2609,74 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2609
2609
  }), t;
2610
2610
  }
2611
2611
  _setSheetName(e, t, n) {
2612
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2613
- if (!this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2612
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2613
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2614
2614
  let r = this._getSheetRef(e);
2615
- if (!r) throw new l(X(e));
2615
+ if (!r) throw new a(X(e));
2616
2616
  if (t === r.name) return r.sheet;
2617
- if ((t = this._validateNewSheetName(t)) == null) throw new l(i("error.workbook.sheetNameNotProvided"));
2618
- let a = Object.freeze({
2617
+ if ((t = this._validateNewSheetName(t)) == null) throw new a(f("error.workbook.sheetNameNotProvided"));
2618
+ let i = Object.freeze({
2619
2619
  ...r,
2620
2620
  name: t
2621
- }), s = null, c = this.beginCommit(g("op.renameSheet"));
2621
+ }), o = null, s = this.beginCommit(d("op.renameSheet"));
2622
2622
  try {
2623
- let e = this._updateSheetRef(r, a);
2623
+ let e = this._updateSheetRef(r, i);
2624
2624
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((e, t) => {
2625
2625
  r.id === t && e();
2626
- }), this._emitter.notify("onSheetsChange"), r.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), s = e.sheet, c.commit(n);
2626
+ }), this._emitter.notify("onSheetsChange"), r.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), o = e.sheet, s.commit(n);
2627
2627
  } catch (e) {
2628
- throw c.rollback(), e;
2628
+ throw s.rollback(), e;
2629
2629
  }
2630
- return s;
2630
+ return o;
2631
2631
  }
2632
- _setSheetVisibility(e, t = F.Visibility.Visible, n) {
2633
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2634
- if (!this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2635
- let r = this._getSheetRef(e, F.Visibility.VeryHidden);
2632
+ _setSheetVisibility(e, t = N.Visibility.Visible, n) {
2633
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2634
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2635
+ let r = this._getSheetRef(e, N.Visibility.VeryHidden);
2636
2636
  if (!r) return null;
2637
2637
  if (t === r.visibility) return;
2638
- let a = null, s = "";
2639
- t === F.Visibility.Visible ? s = g("op.unhideSheet") : t === F.Visibility.Hidden ? s = g("op.hideSheet") : t === F.Visibility.VeryHidden && (s = g("op.veryHideSheet"));
2640
- let c = this.beginCommit(s);
2638
+ let i = null, o = "";
2639
+ t === N.Visibility.Visible ? o = d("op.unhideSheet") : t === N.Visibility.Hidden ? o = d("op.hideSheet") : t === N.Visibility.VeryHidden && (o = d("op.veryHideSheet"));
2640
+ let s = this.beginCommit(o);
2641
2641
  try {
2642
2642
  let e = this._getState().sheetRefsVisible;
2643
- if (t !== F.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new l(i("error.workbook.sheetOne"));
2643
+ if (t !== N.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new a(f("error.workbook.sheetOne"));
2644
2644
  let o = {
2645
2645
  ...r,
2646
2646
  visibility: t
2647
- }, s = -1;
2648
- t !== F.Visibility.Visible && (s = this._getOffsetForId(r.id, e)), a = this._updateSheetRef(r, o).sheet, t !== F.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, r.id), this._adjustSheetNamesIfRequired(), c.commit(n);
2647
+ }, c = -1;
2648
+ t !== N.Visibility.Visible && (c = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, o).sheet, t !== N.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, r.id), this._adjustSheetNamesIfRequired(), s.commit(n);
2649
2649
  } catch (e) {
2650
- throw c.rollback(), e;
2650
+ throw s.rollback(), e;
2651
2651
  }
2652
2652
  return this._sheetOnVisibilityChange.forEach((e, t) => {
2653
2653
  r.id === t && e();
2654
- }), this._emitter.notify("onSheetsChange"), a;
2654
+ }), this._emitter.notify("onSheetsChange"), i;
2655
2655
  }
2656
2656
  _moveSheet(e, t, n) {
2657
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2658
- if (!this.getProtection().isStructureAllowed()) throw new o(i("error.workbook.protection"));
2659
- let r = null, a = this.beginCommit(i("op.moveSheetNamed", { name: e.name }));
2657
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2658
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2659
+ let r = null, i = this.beginCommit(f("op.moveSheetNamed", { name: e.name }));
2660
2660
  try {
2661
- let i = this._getState(), o = i.sheetRefsVisible;
2662
- if (t < 0 || t > o.length - 1) throw new l(`Invalid to index: ${t}`);
2663
- let s = this.getView().getActiveSheetId(), c = i.sheetRefsAll, u = this._getOffsetForId(e.id, c), d = this._getOffsetForId(o[t].id, c);
2661
+ let o = this._getState(), s = o.sheetRefsVisible;
2662
+ if (t < 0 || t > s.length - 1) throw new a(`Invalid to index: ${t}`);
2663
+ let c = this.getView().getActiveSheetId(), l = o.sheetRefsAll, u = this._getOffsetForId(e.id, l), d = this._getOffsetForId(s[t].id, l);
2664
2664
  if (u === d) return;
2665
- let f = c[u], p = [...c];
2666
- p.splice(u, 1), p.splice(d, 0, f), this._updateSheetRefStates(p), this._calculation._replaceSheetSpans?.(c.map((e) => e.sheet.getId()), p.map((e) => e.sheet.getId()), f.sheet.getId()), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2665
+ let f = l[u], p = [...l];
2666
+ p.splice(u, 1), p.splice(d, 0, f), this._updateSheetRefStates(p), this._calculation._replaceSheetSpans?.(l.map((e) => e.sheet.getId()), p.map((e) => e.sheet.getId()), f.sheet.getId()), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2667
2667
  t >= u && t <= d && e();
2668
- }), this._emitter.notify("onSheetsChange"), r = f.sheet, this._recordActiveSheet(a, s, this.getView().getActiveSheetId()), a.commit(n);
2668
+ }), this._emitter.notify("onSheetsChange"), r = f.sheet, this._recordActiveSheet(i, c, this.getView().getActiveSheetId()), i.commit(n);
2669
2669
  } catch (e) {
2670
- throw a.rollback(), e;
2670
+ throw i.rollback(), e;
2671
2671
  }
2672
2672
  return r;
2673
2673
  }
2674
2674
  _setSelectedSheet(e) {
2675
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2675
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2676
2676
  let t = this._getSheetRef(e);
2677
- if (!t) throw new l(X(e));
2677
+ if (!t) throw new a(X(e));
2678
2678
  let n = null;
2679
- return t.visibility !== F.Visibility.Visible && this._setSheetVisibility(t, F.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2679
+ return t.visibility !== N.Visibility.Visible && this._setSheetVisibility(t, N.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2680
2680
  }
2681
2681
  getProtection() {
2682
2682
  return this._protection;
@@ -2751,8 +2751,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2751
2751
  };
2752
2752
  }
2753
2753
  _fromJSON(e) {
2754
- if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new l(i("error.workbook.sheetOne"));
2755
- e.theme && (this._theme = new C(e.theme), this._styles.setTheme(this._theme));
2754
+ if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new a(f("error.workbook.sheetOne"));
2755
+ e.theme && (this._theme = new ge(e.theme), this._styles.setTheme(this._theme));
2756
2756
  let t = this._strings.beginPersist(), n = this._resources.beginPersist(), r = this._styles.beginPersist();
2757
2757
  try {
2758
2758
  t.fromJSON(e.strings), n.fromJSON(e.resources), r.fromJSON(e.styles), e.date1904 && (this._isDate1904 = !0), this._codeName = e.codeName ?? null, this._updateLinks = e.updateLinks ?? null, e.locale && (this._locale = e.locale), e.localeOverrides && (this._localeOverrides = e.localeOverrides), e.view ||= {};
@@ -2763,7 +2763,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2763
2763
  let n = a[t];
2764
2764
  n && typeof n.cacheId == "number" && i.push({
2765
2765
  cacheId: n.cacheId,
2766
- part: D.fromJSON(n.part, e)
2766
+ part: Xe.fromJSON(n.part, e)
2767
2767
  });
2768
2768
  }
2769
2769
  }
@@ -2773,8 +2773,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2773
2773
  let l = null, u = null;
2774
2774
  this._isLoadingSheets = !0;
2775
2775
  for (let e = 0; e < s; e++) {
2776
- let t = o[e], n = t.visibility || F.Visibility.Visible, r = e;
2777
- u = r, n === F.Visibility.Visible ? l === null && (l = r) : c !== null && c === r && (c = null);
2776
+ let t = o[e], n = t.visibility || N.Visibility.Visible, r = e;
2777
+ u = r, n === N.Visibility.Visible ? l === null && (l = r) : c !== null && c === r && (c = null);
2778
2778
  try {
2779
2779
  this._createSheet(r, t.name, n, e, t.sheetId, t.sheet);
2780
2780
  } catch (e) {
@@ -2797,16 +2797,16 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2797
2797
  json: e,
2798
2798
  workbook: t,
2799
2799
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
2800
- onAdd: (e, n) => {
2801
- let r = t._calculation;
2802
- r.getStatus() !== le.Status.Off && r.start().then(async () => {
2803
- let e = n.getFunctions().getItems({ type: "formula" }), t = e.length;
2804
- for (let n = 0; n < t; n++) {
2805
- let t = e[n];
2800
+ onAdd: (e, r) => {
2801
+ let i = t._calculation;
2802
+ i.getStatus() !== ue.Status.Off && i.start().then(async () => {
2803
+ let e = r.getFunctions().getItems({ type: "formula" }), t = e.length;
2804
+ for (let r = 0; r < t; r++) {
2805
+ let t = e[r];
2806
2806
  try {
2807
2807
  await this._calculation.getFunctions().add(t);
2808
2808
  } catch (e) {
2809
- c.error(e?.message ?? String(e), e);
2809
+ n.error(e?.message ?? String(e), e);
2810
2810
  }
2811
2811
  }
2812
2812
  }).catch(() => {});
@@ -2815,10 +2815,10 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2815
2815
  });
2816
2816
  }
2817
2817
  async toJSON(e) {
2818
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2818
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2819
2819
  await Promise.resolve(this._starting);
2820
2820
  let t = this.getCalculation();
2821
- t.getStatus() !== le.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
2821
+ t.getStatus() !== ue.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
2822
2822
  let n = { sheets: [] }, r = e?.ignoreStyles ?? !1;
2823
2823
  if (!r) {
2824
2824
  let e = this._theme.toJSON();
@@ -2829,48 +2829,48 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2829
2829
  e && Object.keys(e).length > 0 && (n.modules = e);
2830
2830
  }
2831
2831
  this._isDate1904 && (n.date1904 = !0), this._codeName && (n.codeName = this._codeName), this._updateLinks && (n.updateLinks = this._updateLinks), this._locale && (n.locale = this._locale), this._localeOverrides && (n.localeOverrides = this._localeOverrides);
2832
- let a = e?.resources ?? "embed", o = a === "ignore", s = this._strings.beginPersist(), c = o ? null : this._resources.beginPersist(), l = this._styles.beginPersist();
2832
+ let i = e?.resources ?? "embed", a = i === "ignore", o = this._strings.beginPersist(), s = a ? null : this._resources.beginPersist(), c = this._styles.beginPersist();
2833
2833
  try {
2834
- let t = this._getSheetRef(this.getSelectedSheetIndex()).id, i = t, u = null, d = this._getState(), f = d.sheetRefsAll, p = d.sheetsById, m = f.length;
2834
+ let t = this._getSheetRef(this.getSelectedSheetIndex()).id, l = t, u = null, d = this._getState(), f = d.sheetRefsAll, p = d.sheetsById, m = f.length;
2835
2835
  for (let r = 0; r < m; r++) {
2836
- let a = f[r], o = r + 1, s = await p.get(a.id).toJSON(e), c = {
2837
- name: a.name,
2838
- sheet: s
2836
+ let i = f[r], a = r + 1, o = await p.get(i.id).toJSON(e), s = {
2837
+ name: i.name,
2838
+ sheet: o
2839
2839
  };
2840
- a.sheetId !== void 0 && (c.sheetId = a.sheetId), a.visibility === F.Visibility.Visible ? u === null && (u = o) : c.visibility = a.visibility, a.id === t && (i = o), n.sheets.push(c);
2840
+ i.sheetId !== void 0 && (s.sheetId = i.sheetId), i.visibility === N.Visibility.Visible ? u === null && (u = a) : s.visibility = i.visibility, i.id === t && (l = a), n.sheets.push(s);
2841
2841
  }
2842
2842
  if (!r) {
2843
- let e = l.toJSON();
2843
+ let e = c.toJSON();
2844
2844
  e && Object.keys(e).length > 0 && (n.styles = e);
2845
2845
  }
2846
2846
  let h = this.getProtection().toJSON();
2847
2847
  h && (n.protection = h);
2848
2848
  let g = this._calculation.toJSON();
2849
2849
  Object.keys(g).length > 0 && (n.calc = g);
2850
- let _ = await s.toJSONAsync();
2850
+ let _ = await o.toJSONAsync();
2851
2851
  _ && _.length > 0 && (n.strings = _);
2852
2852
  let v = this._calculation.getExternalBooks().toJSON();
2853
2853
  v && (n.externalBooks = v);
2854
2854
  let y = this._pivotCaches;
2855
2855
  if (y.length > 0) {
2856
- let e = c ? c.toResourceId.bind(c) : () => null, t = [];
2856
+ let e = s ? s.toResourceId.bind(s) : () => null, t = [];
2857
2857
  for (let n = 0; n < y.length; n++) {
2858
- let r = { cacheId: y[n].cacheId }, i = D.toJSON(y[n].part, e);
2858
+ let r = { cacheId: y[n].cacheId }, i = Xe.toJSON(y[n].part, e);
2859
2859
  i && (r.part = i), t.push(r);
2860
2860
  }
2861
2861
  t.length > 0 && (n.pivotCaches = t);
2862
2862
  }
2863
2863
  let b = this._people.toJSON();
2864
- if (b && (n.people = b), !o) {
2865
- let e = await c.toJSONAsync(typeof a == "function" ? a : void 0);
2864
+ if (b && (n.people = b), !a) {
2865
+ let e = await s.toJSONAsync(typeof i == "function" ? i : void 0);
2866
2866
  e && e.length > 0 && (n.resources = e);
2867
2867
  }
2868
2868
  let x = this._calculation.getNamedFormulas().toJSON();
2869
2869
  x && x.length > 0 && (n.names = x);
2870
2870
  let S = this._view.toJSON();
2871
- S && (i === u ? delete S.activeSheetId : S.activeSheetId = i, Object.keys(S).length > 0 && (n.view = S));
2871
+ S && (l === u ? delete S.activeSheetId : S.activeSheetId = l, Object.keys(S).length > 0 && (n.view = S));
2872
2872
  } finally {
2873
- l.endPersist(), o || c.endPersist(), s.endPersist();
2873
+ c.endPersist(), a || s.endPersist(), o.endPersist();
2874
2874
  }
2875
2875
  return this._emitter.notify("onSave", { params: n }), n;
2876
2876
  }
@@ -2893,13 +2893,13 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2893
2893
  this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._listenerOriginProvider?.(), this._ownOriginProvider && this._originProvider instanceof at && this._originProvider.release(), this._closed = !0;
2894
2894
  }
2895
2895
  beginCommit(e) {
2896
- if (this._closed) throw Error(i("error.workbook.modelClosed"));
2896
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2897
2897
  return this._beginCommit(typeof e == "string" ? { description: e } : e);
2898
2898
  }
2899
2899
  doBatch(e, t) {
2900
2900
  let n = this;
2901
2901
  return t = typeof t == "string" ? { description: t } : {
2902
- description: g("op.updateWorkbook"),
2902
+ description: d("op.updateWorkbook"),
2903
2903
  ...t
2904
2904
  }, this._transactions.doBatch(e, t, (e, t) => {
2905
2905
  e.getDepth() === 0 && (n._lastTransactionUUID = e.getId());
@@ -2914,7 +2914,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
2914
2914
  _getState() {
2915
2915
  return this._transactions.getState(this._id);
2916
2916
  }
2917
- _updateState(e, t = g("op.updateWorkbook"), n) {
2917
+ _updateState(e, t = d("op.updateWorkbook"), n) {
2918
2918
  if (!e) return;
2919
2919
  let r = this._beginCommit(t);
2920
2920
  try {
@@ -3069,19 +3069,19 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3069
3069
  });
3070
3070
  }
3071
3071
  async _decodeBuffer(e, t = {}, n, r = null) {
3072
- let a = t.format, o = t.ext;
3073
- if (!a && !o) throw Error("Either format or file extension must be provided to determine read type.");
3072
+ let i = t.format, o = t.ext;
3073
+ if (!i && !o) throw Error("Either format or file extension must be provided to determine read type.");
3074
3074
  let s = (await this._registry.getReadFormats({
3075
- search: a,
3075
+ search: i,
3076
3076
  ext: o
3077
3077
  }))[0];
3078
- if (!s) throw new l(i("error.io.readFormatUnavailable", { format: a ?? o }));
3079
- let c = n?.typedCreateWorkbookOptions, u = c ? Object.keys(c).find((e) => e.toLowerCase() === s.key.toLowerCase()) : void 0, d = {
3078
+ if (!s) throw new a(f("error.io.readFormatUnavailable", { format: i ?? o }));
3079
+ let c = n?.typedCreateWorkbookOptions, l = c ? Object.keys(c).find((e) => e.toLowerCase() === s.key.toLowerCase()) : void 0, u = {
3080
3080
  ...n,
3081
- ...u === void 0 ? void 0 : c[u]
3081
+ ...l === void 0 ? void 0 : c[l]
3082
3082
  };
3083
- delete d.typedCreateWorkbookOptions, delete d.source, delete d.asCopy;
3084
- let f = r ?? new R(t.absolutePath ?? null, {
3083
+ delete u.typedCreateWorkbookOptions, delete u.source, delete u.asCopy;
3084
+ let d = r ?? new R(t.absolutePath ?? null, {
3085
3085
  name: t.name ?? null,
3086
3086
  format: s.key,
3087
3087
  size: t.size ?? null,
@@ -3092,32 +3092,32 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3092
3092
  format: s.key,
3093
3093
  size: t.size ?? null,
3094
3094
  lastModified: t.lastModified ?? null
3095
- }), d.createWorkbookOptions = {
3096
- ...d.createWorkbookOptions || {},
3097
- origin: f
3098
- }, d.readonly !== void 0 && (d.createWorkbookOptions = {
3099
- readonly: d.readonly,
3100
- ...d.createWorkbookOptions
3101
- }, delete d.readonly), d.calcOnly && (d.createWorkbookOptions = {
3095
+ }), u.createWorkbookOptions = {
3096
+ ...u.createWorkbookOptions || {},
3097
+ origin: d
3098
+ }, u.readonly !== void 0 && (u.createWorkbookOptions = {
3099
+ readonly: u.readonly,
3100
+ ...u.createWorkbookOptions
3101
+ }, delete u.readonly), u.calcOnly && (u.createWorkbookOptions = {
3102
3102
  disableLoadAutoFit: !0,
3103
- ...d.createWorkbookOptions
3103
+ ...u.createWorkbookOptions
3104
3104
  });
3105
- let p = await this._decrypt(e, f, d);
3105
+ let p = await this._decrypt(e, d, u);
3106
3106
  if (p === null) return null;
3107
3107
  e = p.bytes;
3108
- let m = d?.progress?.onStart?.bind(d.progress);
3109
- m && await Promise.resolve(m(f, t.size));
3108
+ let m = u?.progress?.onStart?.bind(u.progress);
3109
+ m && await Promise.resolve(m(d, t.size));
3110
3110
  try {
3111
- let t = await this._readArrayBuffer(e, s, d);
3112
- return p.password !== null && f.setPassword(p.password), d?.progress?.onComplete?.(f), this._emitter.notify("onRead", {
3111
+ let t = await this._readArrayBuffer(e, s, u);
3112
+ return p.password !== null && d.setPassword(p.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
3113
3113
  params: {
3114
3114
  workbook: t,
3115
- origin: f
3115
+ origin: d
3116
3116
  },
3117
3117
  transactional: !1
3118
3118
  }), t;
3119
3119
  } catch (e) {
3120
- throw d?.progress?.onError?.(e), d?.progress?.onComplete?.(null), e;
3120
+ throw u?.progress?.onError?.(e), u?.progress?.onComplete?.(null), e;
3121
3121
  }
3122
3122
  }
3123
3123
  async _decrypt(e, t, n) {
@@ -3126,38 +3126,38 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3126
3126
  bytes: e,
3127
3127
  password: null
3128
3128
  };
3129
- let a = null, o = async (t) => {
3129
+ let i = null, a = async (t) => {
3130
3130
  try {
3131
- return a = await r.decode(e, t), !0;
3131
+ return i = await r.decode(e, t), !0;
3132
3132
  } catch (e) {
3133
- if (!(e instanceof u)) throw e;
3133
+ if (!(e instanceof p)) throw e;
3134
3134
  return !1;
3135
3135
  }
3136
3136
  };
3137
- if (n?.password && await o(n.password)) return {
3138
- bytes: a,
3137
+ if (n?.password && await a(n.password)) return {
3138
+ bytes: i,
3139
3139
  password: n.password
3140
3140
  };
3141
3141
  if (!n?.onPassword) {
3142
3142
  let e = t.getName();
3143
- throw new _(e ? i("error.io.passwordRequired", { name: e }) : i("error.io.passwordRequiredUnnamed"));
3143
+ throw new m(e ? f("error.io.passwordRequired", { name: e }) : f("error.io.passwordRequiredUnnamed"));
3144
3144
  }
3145
- let s = await Promise.resolve(n.onPassword({
3145
+ let o = await Promise.resolve(n.onPassword({
3146
3146
  origin: t,
3147
3147
  encryption: r.key,
3148
- validate: o
3148
+ validate: a
3149
3149
  }));
3150
- if (s == null) return null;
3151
- if (a !== null || await o(s)) return {
3152
- bytes: a,
3153
- password: s
3150
+ if (o == null) return null;
3151
+ if (i !== null || await a(o)) return {
3152
+ bytes: i,
3153
+ password: o
3154
3154
  };
3155
- throw new u(i("error.io.passwordIncorrect"));
3155
+ throw new p(f("error.io.passwordIncorrect"));
3156
3156
  }
3157
3157
  async writeArrayBuffer(e, t) {
3158
3158
  if (!t?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
3159
3159
  let n = (await this._registry.getWriteFormats({ search: t.format }))[0];
3160
- if (!n) throw new l(i("error.io.writeFormatUnavailable", { format: t.format }));
3160
+ if (!n) throw new a(f("error.io.writeFormatUnavailable", { format: t.format }));
3161
3161
  return this._writeArrayBuffer(e, n, t);
3162
3162
  }
3163
3163
  async write(e, t, n) {
@@ -3170,14 +3170,14 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3170
3170
  async _write(e, t, n, r) {
3171
3171
  if (!e) throw Error("Workbook must be provided.");
3172
3172
  if (!e.isIWorkbook) throw Error("Invalid workbook model provided. Must be an instance of IWorkbook.");
3173
- let a, o = typeof t == "string" ? this.getOrigin(t) : t, s = o.getFormat();
3174
- if ((r?.format || s) && (a = (await this._registry.getWriteFormats({ search: r?.format ?? s ?? void 0 }))[0]), a || o.getPath() && o.canWrite() && o.getExtension() || (a = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !a) throw new l(i("error.io.writeFormatUnresolved"));
3173
+ let i, o = typeof t == "string" ? this.getOrigin(t) : t, s = o.getFormat();
3174
+ if ((r?.format || s) && (i = (await this._registry.getWriteFormats({ search: r?.format ?? s ?? void 0 }))[0]), i || o.getPath() && o.canWrite() && o.getExtension() || (i = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !i) throw new a(f("error.io.writeFormatUnresolved"));
3175
3175
  let c = o.getExtension();
3176
- if (r?.format && c && o.getPath() && o.canWrite() && !a.exts.includes(c)) {
3176
+ if (r?.format && c && o.getPath() && o.canWrite() && !i.exts.includes(c)) {
3177
3177
  let e = (await this._registry.getWriteFormats({ ext: c }))[0];
3178
- if (e && e.key !== a.key) {
3178
+ if (e && e.key !== i.key) {
3179
3179
  let e = o.getPath().split(/[/\\]/).pop();
3180
- throw new l(i("error.io.writeFormatMismatch", {
3180
+ throw new a(f("error.io.writeFormatMismatch", {
3181
3181
  format: r.format,
3182
3182
  file: e
3183
3183
  }));
@@ -3185,27 +3185,27 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3185
3185
  }
3186
3186
  if (typeof t == "string") {
3187
3187
  let e = o.getPath();
3188
- o = new R(b(e) ? e : `${e}.${a.exts[0]}`, { format: a.key });
3188
+ o = new R(E(e) ? e : `${e}.${i.exts[0]}`, { format: i.key });
3189
3189
  }
3190
- let u = o.getEncryption(), d = e.getOrigin?.(), f = (o instanceof R ? o.getPassword() : null) ?? (d instanceof R ? d.getPassword() : null), p = o.isEncrypted() || (d?.isEncrypted() ?? !1), m = r?.password === void 0 ? f ?? (p ? void 0 : null) : r.password, h = null;
3191
- if (m === void 0) {
3190
+ let l = o.getEncryption(), u = e.getOrigin?.(), d = (o instanceof R ? o.getPassword() : null) ?? (u instanceof R ? u.getPassword() : null), p = o.isEncrypted() || (u?.isEncrypted() ?? !1), h = r?.password === void 0 ? d ?? (p ? void 0 : null) : r.password, g = null;
3191
+ if (h === void 0) {
3192
3192
  if (p) {
3193
3193
  let e = o.getName();
3194
- throw new _(e ? i("error.io.passwordRequiredSave", { name: e }) : i("error.io.passwordRequiredSaveUnnamed"));
3194
+ throw new m(e ? f("error.io.passwordRequiredSave", { name: e }) : f("error.io.passwordRequiredSaveUnnamed"));
3195
3195
  }
3196
- } else if (m !== null && (h = await this._registry.getEncryption(u), !h)) throw new l(i("error.io.encryptionUnavailable"));
3197
- let g = `${o.getName() ?? i("workbook.defaultName")}.${a.exts[0]}`, v = r?.progress, y = !o.getPath() || !o.canWrite() || !!r?.prompt, x = !1, S = this, C = null, w = [], T = {
3196
+ } else if (h !== null && (g = await this._registry.getEncryption(l), !g)) throw new a(f("error.io.encryptionUnavailable"));
3197
+ let _ = `${o.getName() ?? f("workbook.defaultName")}.${i.exts[0]}`, v = r?.progress, y = !o.getPath() || !o.canWrite() || !!r?.prompt, b = !1, x = this, S = null, C = [], ee = {
3198
3198
  workbook: e,
3199
- format: a,
3199
+ format: i,
3200
3200
  origin: o,
3201
- suggestedName: g,
3201
+ suggestedName: _,
3202
3202
  prompt: r?.prompt,
3203
- async encode(t, i) {
3204
- let s = i ?? o;
3203
+ async encode(t, a) {
3204
+ let s = a ?? o;
3205
3205
  await (async (e) => {
3206
- x || (x = !0, v?.onStart && await Promise.resolve(v.onStart(e)));
3207
- })(s), C = e.getTransactions?.()?.getCurrentCommit() ?? C;
3208
- let c = t ? (await S._registry.getWriteFormats({ search: t }))[0] ?? a : a, l = [], u = ((e, t) => ({
3206
+ b || (b = !0, v?.onStart && await Promise.resolve(v.onStart(e)));
3207
+ })(s), S = e.getTransactions?.()?.getCurrentCommit() ?? S;
3208
+ let c = t ? (await x._registry.getWriteFormats({ search: t }))[0] ?? i : i, l = [], u = ((e, t) => ({
3209
3209
  onStart: e?.onStart ? (t, n) => e.onStart(t, n) : void 0,
3210
3210
  onProgress: e?.onProgress ? (t, n) => e.onProgress(t, n) : void 0,
3211
3211
  onError: e?.onError ? (t) => e.onError(t) : void 0,
@@ -3216,7 +3216,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3216
3216
  context: r
3217
3217
  }), e?.onWarning?.(n, r);
3218
3218
  }
3219
- }))(v, l), d = await S._writeArrayBuffer(e, c, {
3219
+ }))(v, l), d = await x._writeArrayBuffer(e, c, {
3220
3220
  ...r,
3221
3221
  progress: u
3222
3222
  }), f = $.get(s);
@@ -3230,39 +3230,39 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3230
3230
  }));
3231
3231
  if (!y && !1 === t) return null;
3232
3232
  }
3233
- return w = l, h ? h.encode(d, m) : d;
3233
+ return C = l, g ? g.encode(d, h) : d;
3234
3234
  }
3235
- }, E = null;
3235
+ }, w = null;
3236
3236
  try {
3237
3237
  let t = this.getBackingStore();
3238
3238
  if (!t.write) throw Error("The active backing store is read-only (no write implementation).");
3239
- if (E = await t.write(T), E) {
3240
- if (m !== void 0 && E instanceof R && (E.setPassword(m), E.update({ encryption: h ? h.key : null })), w.length) {
3241
- let e = $.get(E) ?? /* @__PURE__ */ new Set();
3242
- for (let t of w) e.add(t.message);
3243
- $.set(E, e);
3239
+ if (w = await t.write(ee), w) {
3240
+ if (h !== void 0 && w instanceof R && (w.setPassword(h), w.update({ encryption: g ? g.key : null })), C.length) {
3241
+ let e = $.get(w) ?? /* @__PURE__ */ new Set();
3242
+ for (let t of C) e.add(t.message);
3243
+ $.set(w, e);
3244
3244
  }
3245
- n && E !== e.getOrigin() && rt(e.getOrigin())?.setOrigin(E);
3246
- let t = C ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3245
+ n && w !== e.getOrigin() && rt(e.getOrigin())?.setOrigin(w);
3246
+ let t = S ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3247
3247
  this._emitter.notify("onWrite", {
3248
3248
  params: {
3249
3249
  workbook: e,
3250
- origin: E,
3250
+ origin: w,
3251
3251
  commitId: t?.getId() ?? null,
3252
3252
  save: n
3253
3253
  },
3254
3254
  transactional: !1
3255
3255
  });
3256
3256
  }
3257
- v?.onComplete && await Promise.resolve(v.onComplete(E));
3257
+ v?.onComplete && await Promise.resolve(v.onComplete(w));
3258
3258
  } catch (e) {
3259
3259
  let t = e instanceof Error ? e : Error(String(e));
3260
- throw v?.onError && await Promise.resolve(v.onError(t)), v?.onComplete && await Promise.resolve(v.onComplete(null)), t instanceof l ? t : Error(i("error.io.writeFailed", { reason: t.message }), { cause: e });
3260
+ throw v?.onError && await Promise.resolve(v.onError(t)), v?.onComplete && await Promise.resolve(v.onComplete(null)), t instanceof a ? t : Error(f("error.io.writeFailed", { reason: t.message }), { cause: e });
3261
3261
  }
3262
- return E;
3262
+ return w;
3263
3263
  }
3264
3264
  _stripExtension(e) {
3265
- let t = b(e);
3265
+ let t = E(e);
3266
3266
  return t ? e.slice(0, e.length - t.length - 1) : e;
3267
3267
  }
3268
3268
  _baseName(e) {
@@ -3283,12 +3283,12 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3283
3283
  if (!e) throw Error("ArrayBuffer must be specified.");
3284
3284
  if (!t) throw Error("format must be specified.");
3285
3285
  if (e.byteLength === 0) return new dn(n?.createWorkbookOptions);
3286
- let r, a = t.handler;
3287
- if (!a) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
3286
+ let r, i = t.handler;
3287
+ if (!i) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
3288
3288
  try {
3289
- r = await a(e, n);
3289
+ r = await i(e, n);
3290
3290
  } catch (e) {
3291
- throw e instanceof l ? e : new l(i("error.io.readFailed", {
3291
+ throw e instanceof a ? e : new a(f("error.io.readFailed", {
3292
3292
  format: t.description ?? t.key,
3293
3293
  reason: e?.message ?? String(e)
3294
3294
  }), { cause: e });
@@ -3322,7 +3322,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
3322
3322
  rtTriangle: "rtTriangle",
3323
3323
  Rect: "rect"
3324
3324
  }, sn ||= {};
3325
- var gn = class extends Ye {
3325
+ var gn = class extends b {
3326
3326
  constructor(e) {
3327
3327
  super(e);
3328
3328
  }
@@ -3335,8 +3335,8 @@ var gn = class extends Ye {
3335
3335
  colEnd: (e?.size?.width ?? 5) - 1,
3336
3336
  rowEnd: (e?.size?.height ?? 5) - 1
3337
3337
  },
3338
- getRanges: (e) => new Re(null)
3338
+ getRanges: (e) => new ne(null)
3339
3339
  }, super._initializeOptions(e);
3340
3340
  }
3341
- }, _n = "0.8.0-beta.3";
3341
+ }, _n = "0.8.0-beta.5";
3342
3342
  export { gn as _, Lt as a, R as c, hn as d, xt as f, dn as g, vt as h, nt as i, qt as l, ft as m, Jt as n, Ft as o, yt as p, tt as r, _n as s, wt as t, _t as u };