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

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 (350) hide show
  1. package/browser/cjs/00npLPxW7DhY7cIJ.cjs +5 -0
  2. package/browser/cjs/{D8tkBbkGH5cZzIJP2.cjs → 1gbSV4OYBoEWTygY2.cjs} +1 -1
  3. package/browser/cjs/{DLtFM988NCD-jeBV.cjs → 7SCJ4vwRZW4B71kq.cjs} +2 -2
  4. package/browser/cjs/{D-N5oLosHPjoj-oG.cjs → 9LTjOB1_w-bikScD.cjs} +1 -1
  5. package/browser/cjs/{9rXsWW4SnEpudhfh.cjs → AVUt0iNPhRf4R5xb.cjs} +1 -1
  6. package/browser/cjs/{DHL7SVvz96-5zSWE2.cjs → B2fdTYeKGNugWRgn2.cjs} +1 -1
  7. package/browser/cjs/{D5Gp16-G3pjMtypl2.cjs → B7oyN0rn95Kyes8D2.cjs} +1 -1
  8. package/browser/cjs/{DCRe7NqRclU-Jr7p.cjs → BArvhvpcrQEcbcyY.cjs} +1 -1
  9. package/browser/cjs/{Dk1WS0vM-LQJx_EO2.cjs → BC3OSmoFNyA52TRp2.cjs} +1 -1
  10. package/browser/cjs/{CTDN-AYeejrfopDC.cjs → BDmBYZigchoACsQx.cjs} +1 -1
  11. package/browser/cjs/BFmgMQoM5sQsWIxf2.cjs +1 -0
  12. package/browser/cjs/BIN8L9V0hoUwMh64.cjs +1 -0
  13. package/browser/cjs/{BdJvn1vLXMZvE-8h.cjs → BjjAQLiorKWXy3g5.cjs} +2 -2
  14. package/browser/cjs/{CX7VUEYca9dtWS0N.cjs → BoRfsJCaLzUHQseD.cjs} +1 -1
  15. package/browser/cjs/{ClVLjLIRgWqX3Q-F.cjs → BqQgEaUREvuFHYoW.cjs} +1 -1
  16. package/browser/cjs/{DsqHxG-lGZxL1XgQ.cjs → BtAs67e7WBCglqc5.cjs} +1 -1
  17. package/browser/cjs/{Dg5fR9uTvYHyxOX62.cjs → BxFSy-hOEbyllj-r2.cjs} +2 -2
  18. package/browser/cjs/{BylqpwnwQYDHIWjX.cjs → C0xAhPzztP9a24zR.cjs} +1 -1
  19. package/browser/cjs/{CKEselBM-qmMpQBW2.cjs → C2SohnuJK8Urc7Fx2.cjs} +2 -2
  20. package/browser/cjs/{GPlG4lbMP89VDHYJ.cjs → C3scwi-q2KqEM39H.cjs} +3 -3
  21. package/browser/cjs/{C1tOH7BEpO_ANMsa.cjs → CBLwtHFYNB1BTpSS.cjs} +1 -1
  22. package/browser/cjs/CGtG2pvGgTAnImBg2.cjs +8 -0
  23. package/browser/cjs/{TZQc-szdIVnHDH6F.cjs → CH0vbLpwoyU7oOFk.cjs} +2 -2
  24. package/browser/cjs/CKtdmbeMjJ2udO8s.cjs +1 -0
  25. package/browser/cjs/{ibvsavYh4kU-xxL8.cjs → CQ-W9AUNHdts8pmY.cjs} +1 -1
  26. package/browser/cjs/{DHMQnssVXWjGBSs-.cjs → CQ5x8oFPDaU6OCJf.cjs} +1 -1
  27. package/browser/cjs/{DIdPQwECld6gubdK2.cjs → CTObzk4r7C71x9Ep2.cjs} +1 -1
  28. package/browser/cjs/{DA0nGLC0bEkOhh7G2.cjs → CUyKbhM67853Rnt22.cjs} +1 -1
  29. package/browser/cjs/CVHRh1RGDSgqfAm4.cjs +2 -0
  30. package/browser/cjs/{DTZiRVEB3kVK7eK-2.cjs → CcqhH_Ign02tLFbU2.cjs} +1 -1
  31. package/browser/cjs/{BsJHSGeWLskirGXg.cjs → CdsreHc3A0wBhEy9.cjs} +4 -4
  32. package/browser/cjs/{CA_ZsYjkTHSpGK0j.cjs → CgyU8XPzm6O1a93m.cjs} +11 -11
  33. package/browser/cjs/CzGNIWwu8KL3tcCO2.cjs +1 -0
  34. package/browser/cjs/D-8QQWC-67PplJdV2.cjs +1 -0
  35. package/browser/cjs/D6XEHfNbKx-9qZye.cjs +32 -0
  36. package/browser/cjs/{Dg3GaW0QWwnlqetX2.cjs → D6YaqporVrSewZpm2.cjs} +1 -1
  37. package/browser/cjs/{C-xC6h1TOBr5ZDSe2.cjs → D6m2M4H6JZaYZ4El2.cjs} +1 -1
  38. package/browser/cjs/{p3PYFz7cN2z4XQoU.cjs → D9SdUvJVa64UoGj9.cjs} +1 -1
  39. package/browser/cjs/DCVnwgmc5HuYp_iv2.cjs +1 -0
  40. package/browser/cjs/{xTT7lHV4HUjeNdMs2.cjs → DOEhH2HGT1Zv0irr2.cjs} +1 -1
  41. package/browser/cjs/{CH7BUjrXIKDIE7XE.cjs → DQOt8XSpXyhsrF9N.cjs} +43 -43
  42. package/browser/cjs/{C_T-ehCAzjaVRmTk.cjs → DUXRl3eYfSwbhAfx.cjs} +1 -1
  43. package/browser/cjs/{D_IilnLuy_hDaBmI.cjs → DWdUSWl4MXn2-MLU.cjs} +1 -1
  44. package/browser/cjs/{BvVzIzXLyLxpBcia2.cjs → DWyoF5GqKXce_GmT2.cjs} +1 -1
  45. package/browser/cjs/{aBulzIf4cHnL7sbw.cjs → Df3jw0eHS0X-qFvT.cjs} +1 -1
  46. package/browser/cjs/{9vk-L6rRvx20jeQj.cjs → Doiqeo4Qlie45lbl.cjs} +1 -1
  47. package/browser/cjs/Dp2fPEReFhDsI01j.cjs +3 -0
  48. package/browser/cjs/{CtsduUtTrkcWM02v.cjs → P0AUOlaMi9tyE0vN.cjs} +1 -1
  49. package/browser/cjs/{D2ZPx3v4EVejvhR2.cjs → Qp04O3ALK3M9d3At.cjs} +3 -3
  50. package/browser/cjs/{C19UoK2TTtKU_faS.cjs → Z_6RasaVpnIv1MHk.cjs} +1 -1
  51. package/browser/cjs/{BhcbKFKbSWEavYJm.cjs → Zz5dLT_2gLI18Jmx.cjs} +2 -2
  52. package/browser/cjs/{3a3qEmdJWFXfGW0q.cjs → ge8Wd-0WC6oMuJZR.cjs} +1 -1
  53. package/browser/cjs/index.cjs +1 -1
  54. package/browser/cjs/{Bo7EQ8niKmwtAwo_2.cjs → kj_kwD7S9uUbhKiz2.cjs} +1 -1
  55. package/browser/cjs/qA_ElZ6f49Un56OC.cjs +1 -0
  56. package/browser/cjs/{CoCKYtBIVeDXxSIq2.cjs → s2c8Pr4obSACz8Lu2.cjs} +1 -1
  57. package/browser/cjs/{VgwyOcXDHhEp_NvH2.cjs → uAWsHfi-JD_ZQIT82.cjs} +1 -1
  58. package/browser/cjs/{BQWmn92gYmxC8eWt.cjs → uRXkwHKoe-2HtXuR.cjs} +1 -1
  59. package/browser/cjs/{B0FCH1gFfg2bQiPi2.cjs → y4KFnuCKf8r5oFal2.cjs} +1 -1
  60. package/browser/esm/{DeSDYBzD8e5XXnvq.mjs → 2eBMkUK0-HxaCmDY.mjs} +6 -6
  61. package/browser/esm/{DBTB0moKfwOu0F47.mjs → 53nnk5W22gJW7Ddx.mjs} +5 -5
  62. package/{cdn/assets/DoCYcvHzw3S0MDCW.js → browser/esm/5SHS088DeaZ82qmD2.mjs} +1 -1
  63. package/browser/esm/{rxlYDHBsenoxRx-K2.mjs → 5shGy9JSRzvoIfDE2.mjs} +5 -5
  64. package/browser/esm/{j-9DpYsIlTN1mwql.mjs → 74Ynqpv5NPbb_8vB.mjs} +2971 -2971
  65. package/browser/esm/{CYU_-DiQXjh1SEU1.mjs → B-VKr_KwiWjDeAP5.mjs} +39 -39
  66. package/browser/esm/{Dn8Z0WK2Hwi8MRnQ.mjs → B08GCyGdLNiXtb_R.mjs} +1 -1
  67. package/browser/esm/{DHzdEqMCGL_JPh9w2.mjs → B0F5gtNQjANAfRw32.mjs} +7 -7
  68. package/{cdn/assets/CAVONPXgoytyiNK-.js → browser/esm/B0gZ5e38MXWbEDS_.mjs} +1 -1
  69. package/{cdn/assets/B0FNPu0uhX_WW-aJ2.js → browser/esm/B45vVm2Ma1i2b6_F.mjs} +1 -1
  70. package/browser/esm/{BZZ2IOkVKppFWNLE.mjs → B5z-uoALcLY2ABTo.mjs} +5 -5
  71. package/browser/esm/{AAHsV9V95k39t9SD.mjs → B72sK2NRGAke-aCk2.mjs} +1 -1
  72. package/browser/esm/{BBaNqp1ZjuO25FQg2.mjs → B8q1hrKv7LAL4xmM2.mjs} +1 -1
  73. package/browser/esm/{bvuPDJZmI2O5oihy2.mjs → BCQJVniXgm81YQ0v2.mjs} +15 -15
  74. package/{cdn/assets/CPgOplnn6NuHwsZ_2.js → browser/esm/BCcbek_TFOdgqxXq.mjs} +1 -1
  75. package/browser/esm/{C6X4CmElTpPxrad6.mjs → BEb3QhWwGW8rErZy.mjs} +1 -1
  76. package/{cdn/assets/C7ZHXwoL2A_nxZjl.js → browser/esm/BGRNyE5ar4c3ggrS.mjs} +133 -133
  77. package/browser/esm/{DMMtONCySdMHoaMU.mjs → BHIVjD6BdBS3BAWp.mjs} +6 -6
  78. package/browser/esm/{Bc8-re9biUn57kdl.mjs → BH_qL-oGqwG-7JKF.mjs} +9673 -9704
  79. package/browser/esm/{BuSBBEiK_3KnBr632.mjs → BJ26E2DhS1Jz4nUY2.mjs} +15 -15
  80. package/browser/esm/{Dd80tsdITZsotoCX2.mjs → BJVcTpMN-u5XhMVE2.mjs} +1 -1
  81. package/browser/esm/{sfOREE_huDAOcfYs.mjs → BNgf4HZDOKYBkvL3.mjs} +748 -748
  82. package/browser/esm/{BhGgNWNVYntkJYgU.mjs → BOMJTicRKnx01hw-.mjs} +12 -12
  83. package/browser/esm/{Bokc-Wu4XBPWKmdt.mjs → BPZxx-OH0wACHLsN2.mjs} +1 -1
  84. package/browser/esm/{S2_pz0y2RTJFpXkS.mjs → BQIRHi8T3P5MZtan.mjs} +1 -1
  85. package/{cdn/assets/Be2-C5U5LlfLTmyo.js → browser/esm/BQhVWbI9uag9iRfX2.mjs} +1 -1
  86. package/browser/esm/{B50P0gSziuG68Umu.mjs → BSWXx2rKOMPxLLs8.mjs} +1 -1
  87. package/browser/esm/{Bcjus_Q6f72kE1MK.mjs → BUjTEjAeByh6MKpn.mjs} +1 -1
  88. package/{cdn/assets/CQBSLdAdR53c7BVh.js → browser/esm/BUokT-PbfvYzD63f2.mjs} +1 -1
  89. package/{cdn/assets/WFkg-W8MQ-V6F1Fu.js → browser/esm/BYAZ3XZq8XXkOulw.mjs} +3 -3
  90. package/browser/esm/{iYNN3Px9AekrMEfu2.mjs → BYPIn5AkddMzMcsa2.mjs} +9 -9
  91. package/browser/esm/{DmPq6SwNcX1qXKct.mjs → BcPnGFFKCddWgOch.mjs} +1 -1
  92. package/{cdn/assets/DtQu3vHaJfA5KM2H.js → browser/esm/BgwzL8v2pmR5HJXW.mjs} +1 -1
  93. package/{cdn/assets/13CH9sjvoEqt6nbt.js → browser/esm/BiomOxscV1M0Uw2n.mjs} +1 -1
  94. package/browser/esm/{ZJ32DJlBpN_9fAph.mjs → Bj42pxe5AuY4bF2e.mjs} +3 -3
  95. package/browser/esm/{eTXmezPFvAwM_L-D2.mjs → BmC-_QeQ-53oyorq2.mjs} +1 -1
  96. package/browser/esm/{Bvy9LWN5UHwJXV9i2.mjs → BnHE1Z6WkOfTWheU2.mjs} +2 -2
  97. package/browser/esm/{D-egzesxukW7Z_e3.mjs → BoWCDK44X4tp02_4.mjs} +1 -1
  98. package/browser/esm/{YC83lJ3yRZP57lBl2.mjs → Bq7qy-C7tVkiIaDE2.mjs} +4 -4
  99. package/browser/esm/{04mVsW7CTmUlxnOa.mjs → BrzXFBoYDjcG3ct8.mjs} +3 -3
  100. package/{cdn/assets/jQ5c7MGwQOZq4s5w2.js → browser/esm/BsY_DyFxoqjRHTv02.mjs} +1 -1
  101. package/{cdn/assets/CnvlkxK0pS02Z3gZ.js → browser/esm/Bsfof8nD-exhrNwn.mjs} +1 -1
  102. package/browser/esm/{C3qSUuVA-FII3rMU2.mjs → BtC6lEbd98TeKGsX2.mjs} +14 -14
  103. package/browser/esm/{QNvOHujamKYSXWWA2.mjs → BuoHLVUSwf-mq0hg2.mjs} +1 -1
  104. package/{cdn/assets/BF842ZtkvebA1LgR2.js → browser/esm/BwbR2Dao5LgLYQgV.mjs} +1 -1
  105. package/browser/esm/{CcK4ACF7d5ogFpAS.mjs → ByQakLd0YFwc0Lgl.mjs} +8 -8
  106. package/browser/esm/{BnFriW2cIcOJkXU42.mjs → C-97pwItkHA3s5rD2.mjs} +8 -8
  107. package/browser/esm/{apjOZ6N9KbmyErGz.mjs → C02og4vKxq9qpIUA.mjs} +47 -47
  108. package/{cdn/assets/LfHB39-nf7mi9XC7.js → browser/esm/C0HHZ3XLqp0LgRuW.mjs} +1 -1
  109. package/{cdn/assets/7lIMFL11BRZrMXdc.js → browser/esm/C213T1hhBphljJTF2.mjs} +1 -1
  110. package/browser/esm/{Bl5xLu1ou-9zMIBZ2.mjs → C3A-yJ12PN-CPPnI2.mjs} +1 -1
  111. package/browser/esm/{BDZAVKSYpcOp9Dve2.mjs → C5Oex2msskTvaCQ92.mjs} +1 -1
  112. package/browser/esm/{BIab7njjwaSXjSEP2.mjs → C5u9ds7LUh9JJEbW2.mjs} +2 -2
  113. package/browser/esm/{yFldtlfN_ASKyMll.mjs → C6D3gk0GBvvDjawh.mjs} +5 -5
  114. package/browser/esm/{DTfDzhFtORWkuoRv.mjs → C7b3GyO7FCiMLeyn.mjs} +1 -1
  115. package/{cdn/assets/B_49GiUSgx96vBvq.js → browser/esm/C8qOmdaHh4WQkzEy.mjs} +1 -1
  116. package/browser/esm/{DkuK8fY8vrl7aZpf2.mjs → CD44l4eg_lxr7kgn2.mjs} +7 -7
  117. package/browser/esm/{C1EvC_qPiGiVMrkF.mjs → CDxmuF7Iay8T4cnU.mjs} +6 -6
  118. package/browser/esm/{b49cTAZ6BWPQgfYu.mjs → CS38A8yr4eKvdDZm.mjs} +10 -10
  119. package/browser/esm/{CUMu_1tXFa0LPKGV.mjs → CSu0Md4a1JIZrirV.mjs} +262 -262
  120. package/{cdn/assets/C04uI3XsvTc6Cc7w.js → browser/esm/CU1J-I76aVm-KPP6.mjs} +1 -1
  121. package/{cdn/assets/nBZATD4yR1W5D4Fi.js → browser/esm/CVbPAnmNN3TxMkq4.mjs} +1 -1
  122. package/{cdn/assets/DjNR_ZGCbg-xia15.js → browser/esm/CXvcyGN4L9iDr1LK2.mjs} +1 -1
  123. package/browser/esm/{Dz713G5R9JayR5v1.mjs → CZN6c8yBDjLVTVpH.mjs} +2 -2
  124. package/browser/esm/{CA4eJpge9meoO0rj2.mjs → C__tNzwz0i7bQrSu2.mjs} +9 -9
  125. package/browser/esm/{CTzKk6VuZTohsOIF2.mjs → CcPFyWALYlJWf17T2.mjs} +1 -1
  126. package/browser/esm/{CwDjNuGkKnVtfJo-.mjs → CcuNkPxT6rqElgbZ2.mjs} +1 -1
  127. package/{cdn/assets/CThP3jXwDzLlUOeI2.js → browser/esm/Cjbksosgv7NZFNE0.mjs} +1 -1
  128. package/browser/esm/{DYyxB53T5uaoyInL2.mjs → CjxOVBbWLFeUZza82.mjs} +2 -2
  129. package/browser/esm/{fJ0eqh3Ja3O0z1QL.mjs → CksEMRqAqI-_nekb.mjs} +12 -12
  130. package/browser/esm/{BTNqElWtYkKW47Vg.mjs → CnB5AuoIz-49NXD_.mjs} +3 -3
  131. package/{cdn/assets/CU1_-PzBC9cDsm5t.js → browser/esm/Co06Uf-tv1IuVQhe.mjs} +1 -1
  132. package/{cdn/assets/DbVSG7Uf7YDQbmc3.js → browser/esm/CpzLNwtfx0Zd0OZ0.mjs} +1 -1
  133. package/browser/esm/{DgH-AoqKDdIWg0J8.mjs → CwRAK6IVjIYuwofE.mjs} +1 -1
  134. package/{cdn/assets/CjFOk9mcZqAngWD22.js → browser/esm/CyS1VLOdAweeZsMV.mjs} +1 -1
  135. package/browser/esm/{B2vjec5TDs2ZJ1eI2.mjs → CyomJv3_vWy4trRe2.mjs} +1 -1
  136. package/browser/esm/{f9r0yTaD2YChFtEg2.mjs → D-1WiFWkKNPWXppx2.mjs} +1 -1
  137. package/browser/esm/{kcfC6hY47HklE6Om.mjs → D16eCDM3k1_Fk-MN.mjs} +11 -11
  138. package/{cdn/assets/CULlzRLL3s2Dikjg.js → browser/esm/D3Qv3--VfvVHImXW.mjs} +1 -1
  139. package/{cdn/assets/BuyRy9BcgPYo8l8W.js → browser/esm/D5j8qMZCamJQ82pi.mjs} +388 -388
  140. package/{cdn/assets/CmSATmXaMlqwTjAe.js → browser/esm/D718rIGL3d_m1mjm2.mjs} +1 -1
  141. package/browser/esm/{txVgXcuMeWVNWHnZ.mjs → DAhlDEV6ehTRvrj72.mjs} +1 -1
  142. package/{cdn/assets/DuijhgjRhgWB9sCY2.js → browser/esm/DB_I2ygTnDxYiYyc.mjs} +35 -32
  143. package/browser/esm/{R2c8rUTz1GjCQEp-2.mjs → DGde1GUi2j-ZUPJW2.mjs} +13 -13
  144. package/browser/esm/{BBzzLAeBBFbVvgph2.mjs → DJUnZsVsvwRT_Onq2.mjs} +2 -2
  145. package/browser/esm/{BiArrlzwKsOlSm00.mjs → DLgM7RXEEfx33zms.mjs} +4 -4
  146. package/browser/esm/{0YKBRd7eLIUmcKns.mjs → DNxL1aQIN6J2PLV7.mjs} +3 -3
  147. package/browser/esm/{C3M_lKSZ_Fq1SQOn.mjs → DRRx9F2h6V-Q957j.mjs} +2 -2
  148. package/browser/esm/{D13sLQRMMKrDHepu.mjs → DZGMsbIACs9TKYrM2.mjs} +1 -1
  149. package/browser/esm/{BcHN_VMA7bLNKKMO.mjs → Dcpd3kkjvidrDQuN.mjs} +53 -53
  150. package/browser/esm/{BCQgeu38866r56Dh.mjs → DevyWm6bXV7lW2dr.mjs} +5 -5
  151. package/{cdn/assets/V-oO_EfTyth0iptZ.js → browser/esm/DfIwClWz03Qw38-O.mjs} +1 -1
  152. package/{cdn/assets/Bfq8Gdqf3I7y_Hju2.js → browser/esm/Dg7wE0RZdHeJv537.mjs} +1 -1
  153. package/browser/esm/{BEWsOD2JQ8dwQCEm2.mjs → Dj_S0P34nk_fjFoh2.mjs} +10 -10
  154. package/{cdn/assets/DYCh_5thAx4qo1ns2.js → browser/esm/DjyzSKZNfvxPmFqi.mjs} +495 -495
  155. package/browser/esm/{Cvw3poNlUmn3qAh0.mjs → DlHJ7zkV6AMCtYPP.mjs} +5 -5
  156. package/browser/esm/{DyPe20tPiPVm1PLe.mjs → DnLi57ylUOd3DUek.mjs} +6 -6
  157. package/browser/esm/{ep-IjWXOPg2b-REP2.mjs → DoAKAH3cmECZGboo2.mjs} +1 -1
  158. package/browser/esm/{XB269tVMhdRHj10G.mjs → Dok4MRpMgkcsNzp4.mjs} +122 -207
  159. package/browser/esm/{BPt7dDNLBsKrZgzO2.mjs → DpORFFFF3LUx_zsT2.mjs} +7 -7
  160. package/browser/esm/{xzoxSwyGoZdH-ysh.mjs → Ds5mE3-q83ZhE-2T.mjs} +13 -13
  161. package/browser/esm/{BVtQCzVeMOJZq64r2.mjs → Du5dlbWtpboIrJk-2.mjs} +77 -77
  162. package/browser/esm/{B0aCnXuYD0ZopZdA.mjs → DuMveAGZv1j1YAwO.mjs} +2 -2
  163. package/browser/esm/{LgoljOEffsYkpZZJ2.mjs → GETgdmj9xZWcFrIC2.mjs} +551 -551
  164. package/browser/esm/{9CP_UyAqmAHE7-mv.mjs → GJUYPKfNptRZyU9r.mjs} +7 -7
  165. package/browser/esm/{BOhfbmK18Xj1P7-i.mjs → JDCQtP0lkncrmnpC2.mjs} +1 -1
  166. package/browser/esm/{gAriGKwELet15RCY2.mjs → OsRyVy3M_rNtmU472.mjs} +7 -7
  167. package/browser/esm/{lHpMVBxqkkCYD6d12.mjs → OtaDVRqZVyi7IBBa.mjs} +1 -1
  168. package/{cdn/assets/gCeoOjDjiVaX8dtF.js → browser/esm/OyyHiDjohIf4lZX62.mjs} +1 -1
  169. package/browser/esm/{Be7--zCnU6JvLkK1.mjs → QEPUcBp4VkPz75h8.mjs} +20 -20
  170. package/browser/esm/{BVOTzF7NFvB20R7D.mjs → R0Xd51SJLUebJwYv.mjs} +2 -2
  171. package/browser/esm/{CUYBRp4sHMdGwkLT.mjs → S4MMwlNd4kcK3RDU.mjs} +1 -1
  172. package/browser/esm/{B-Zf8W3s_WXgYxhN.mjs → VaST17rbOSkMsGyn.mjs} +7 -7
  173. package/browser/esm/{DtqMTXq5u5DmS5S1.mjs → WfqSQXib2MuH663g.mjs} +2 -2
  174. package/{cdn/assets/BEYY8z4FusH7S5K-2.js → browser/esm/XuGWliVSRCNi5it12.mjs} +1 -1
  175. package/browser/esm/{DeeFxCkhXDF0p1nl.mjs → Z83G4i9Tvq4z2kCB.mjs} +2 -2
  176. package/{cdn/assets/yVLsr0rcaOFel2nS.js → browser/esm/_cZz4ZhEEr54LYNe2.mjs} +1 -1
  177. package/browser/esm/{GDYIOITizuJ9xSUf2.mjs → cDMkMgN5tB-wni7c2.mjs} +7 -7
  178. package/browser/esm/{C1doaJjkCzQlB_3u2.mjs → efVOgresgMXMdh7J2.mjs} +1 -1
  179. package/{cdn/assets/D1bACCJy4F8kANLy2.js → browser/esm/gXemYPUoPvaUd055.mjs} +1 -1
  180. package/browser/esm/index.mjs +4 -4
  181. package/browser/esm/{BA6JMESdvw_1-mFg2.mjs → kef_IwcJES4VXcNa2.mjs} +11 -11
  182. package/{cdn/assets/BdCn57ENgiC2kOsF.js → browser/esm/lfNgkSweNYs6v7g2.mjs} +2 -2
  183. package/browser/esm/{BG_hG8jUkf0aMzGK2.mjs → lfNgkSweNYs6v7g22.mjs} +2 -2
  184. package/browser/esm/{BM343UBJqjbDokO62.mjs → mbUWaIl3SJkdbWx02.mjs} +1 -1
  185. package/browser/esm/{BJJBFdJaP2dMlug92.mjs → vDg2R-517z6mPR3B2.mjs} +8 -8
  186. package/browser/esm/{D5Pa9lfPfAcCGj_N.mjs → vP8Rb-lgzeerBAx4.mjs} +1 -1
  187. package/cdn/assets/{BTB79KyzSZf-h-lm2.js → 0uSu6ChH_CTmXM2q2.js} +73 -73
  188. package/{browser/esm/DoCYcvHzw3S0MDCW.mjs → cdn/assets/5SHS088DeaZ82qmD.js} +1 -1
  189. package/cdn/assets/{DvfekR32WVFv_WrS.js → 8rILuc7bVIGEeb97.js} +101 -101
  190. package/cdn/assets/{b-o8RUlQpF1RaDgI.js → 9ra2y9Srlg_Pw7Q32.js} +146 -231
  191. package/cdn/assets/{B_sKE05xgjFFafjm.js → B-ylRvlizyArIFrd.js} +2176 -2176
  192. package/cdn/assets/{Dn8Z0WK2Hwi8MRnQ2.js → B08GCyGdLNiXtb_R2.js} +1 -1
  193. package/{browser/esm/CAVONPXgoytyiNK-.mjs → cdn/assets/B0gZ5e38MXWbEDS_.js} +1 -1
  194. package/cdn/assets/{B9hBziUoXFzKPWF02.js → B15uSTYXbbRVKP0X2.js} +6 -6
  195. package/cdn/assets/{B9oLwnLz9m-TWSPJ2.js → B1Lxf24mP-fwn03r2.js} +47 -47
  196. package/{browser/esm/B0FNPu0uhX_WW-aJ.mjs → cdn/assets/B45vVm2Ma1i2b6_F.js} +1 -1
  197. package/cdn/assets/{Bi9IWSBo7DDXROTC.js → B63SfOuKJt36aTr_.js} +2 -2
  198. package/cdn/assets/{Ifw8W-tqHjQnCWZO2.js → B69EK_yDF3V8Rq2r2.js} +42 -42
  199. package/cdn/assets/{AAHsV9V95k39t9SD.js → B72sK2NRGAke-aCk.js} +1 -1
  200. package/cdn/assets/{BB6k7f_6TCVysy8a.js → B7SJVFUHxy16UJRA.js} +3 -3
  201. package/cdn/assets/{BBaNqp1ZjuO25FQg.js → B8q1hrKv7LAL4xmM.js} +1 -1
  202. package/cdn/assets/{ByHzW_x0qXsBJMwv2.js → BAbRLjxqebqVPyto2.js} +1369 -1369
  203. package/{browser/esm/BauR0SATr44ggHRU.mjs → cdn/assets/BCOGONuWSq4hgADu.js} +485 -485
  204. package/{browser/esm/CPgOplnn6NuHwsZ_.mjs → cdn/assets/BCcbek_TFOdgqxXq2.js} +1 -1
  205. package/cdn/assets/{C6X4CmElTpPxrad6.js → BEb3QhWwGW8rErZy2.js} +1 -1
  206. package/cdn/assets/{DmQ4uKOlhrcJfgk82.js → BHpE1nCbJEbRdzIG2.js} +14 -14
  207. package/cdn/assets/{Dd80tsdITZsotoCX.js → BJVcTpMN-u5XhMVE.js} +1 -1
  208. package/cdn/assets/{CAOPlenSF-pjVfqt2.js → BLpNuslYLGia3h9t2.js} +2 -2
  209. package/cdn/assets/{Bokc-Wu4XBPWKmdt.js → BPZxx-OH0wACHLsN.js} +1 -1
  210. package/cdn/assets/{S2_pz0y2RTJFpXkS2.js → BQIRHi8T3P5MZtan2.js} +1 -1
  211. package/{browser/esm/Be2-C5U5LlfLTmyo2.mjs → cdn/assets/BQhVWbI9uag9iRfX.js} +1 -1
  212. package/cdn/assets/{B50P0gSziuG68Umu2.js → BSWXx2rKOMPxLLs82.js} +1 -1
  213. package/cdn/assets/{C3KIo0iwLXhIIMG8.js → BUeKY15yUtNX2nYg.js} +2 -2
  214. package/cdn/assets/{Bcjus_Q6f72kE1MK.js → BUjTEjAeByh6MKpn.js} +1 -1
  215. package/{browser/esm/CQBSLdAdR53c7BVh2.mjs → cdn/assets/BUokT-PbfvYzD63f.js} +1 -1
  216. package/cdn/assets/{C2JMpa_lWCs9k2ZI.js → BWbSIhQVBaXJNFgl.js} +300 -300
  217. package/cdn/assets/{Dlq2nAMNpWkqjt9Y.js → BZDRat2zTkUEg9cR.js} +8 -8
  218. package/cdn/assets/{CP0M0z_IaCwCMGNS.js → BeFqINcF0gIgBnB1.js} +7 -7
  219. package/cdn/assets/{Bqe5WbSIlCRYLcqT.js → Beyy1fJJeov2iYL4.js} +4 -4
  220. package/{browser/esm/DtQu3vHaJfA5KM2H2.mjs → cdn/assets/BgwzL8v2pmR5HJXW2.js} +1 -1
  221. package/{browser/esm/13CH9sjvoEqt6nbt2.mjs → cdn/assets/BiomOxscV1M0Uw2n.js} +1 -1
  222. package/cdn/assets/{eTXmezPFvAwM_L-D.js → BmC-_QeQ-53oyorq.js} +1 -1
  223. package/cdn/assets/{D-egzesxukW7Z_e32.js → BoWCDK44X4tp02_42.js} +1 -1
  224. package/{browser/esm/jQ5c7MGwQOZq4s5w.mjs → cdn/assets/BsY_DyFxoqjRHTv0.js} +1 -1
  225. package/{browser/esm/CnvlkxK0pS02Z3gZ.mjs → cdn/assets/Bsfof8nD-exhrNwn.js} +1 -1
  226. package/cdn/assets/{QT-5i27zeGPhkyui2.js → BsiuCRJjX2LRrDF22.js} +8 -8
  227. package/cdn/assets/{Be_TDLQucHiVwNvT.js → BuPGWNRZMMyn4fm8.js} +8 -8
  228. package/cdn/assets/{DIlrvTRlRll76TiE2.js → Bub12rk6wWVZVNx62.js} +83 -83
  229. package/cdn/assets/{QNvOHujamKYSXWWA.js → BuoHLVUSwf-mq0hg.js} +1 -1
  230. package/{browser/esm/BG_hG8jUkf0aMzGK.mjs → cdn/assets/ButSau4Lf36Oe3GD.js} +2 -2
  231. package/{browser/esm/BF842ZtkvebA1LgR.mjs → cdn/assets/BwbR2Dao5LgLYQgV2.js} +1 -1
  232. package/cdn/assets/{BaEH7HZAJkFGHtNj2.js → C-F-eIvIRbCAMD662.js} +58 -58
  233. package/cdn/assets/{B66--qmqjDI4V95v2.js → C-KWjRT0CUb-bkvj2.js} +25 -25
  234. package/{browser/esm/LfHB39-nf7mi9XC72.mjs → cdn/assets/C0HHZ3XLqp0LgRuW2.js} +1 -1
  235. package/{browser/esm/7lIMFL11BRZrMXdc2.mjs → cdn/assets/C213T1hhBphljJTF.js} +1 -1
  236. package/cdn/assets/{Bl5xLu1ou-9zMIBZ.js → C3A-yJ12PN-CPPnI.js} +1 -1
  237. package/{browser/esm/DZLyXICwEHYRnCuO.mjs → cdn/assets/C4vZWmW5DZLQTTAx.js} +231 -231
  238. package/cdn/assets/{BDZAVKSYpcOp9Dve.js → C5Oex2msskTvaCQ9.js} +1 -1
  239. package/cdn/assets/{BIab7njjwaSXjSEP.js → C5u9ds7LUh9JJEbW.js} +2 -2
  240. package/cdn/assets/{DTfDzhFtORWkuoRv2.js → C7b3GyO7FCiMLeyn2.js} +1 -1
  241. package/cdn/assets/{CUrzB9ponX7LAYXR.js → C8W7e-O1V1Mo2HOp.js} +3 -3
  242. package/{browser/esm/B_49GiUSgx96vBvq2.mjs → cdn/assets/C8qOmdaHh4WQkzEy.js} +1 -1
  243. package/cdn/assets/{C2X9NooB33IkSomz.js → CEyEKBYpjE5GGcmE.js} +8 -8
  244. package/cdn/assets/{D6Uwvg4vo1g0pWZa.js → CJoCbCtXkTbj6-nC.js} +2 -2
  245. package/cdn/assets/{BsGz_0JrhSfOZ24Q.js → CLEhV4ZVh2Jf4WLI.js} +3 -3
  246. package/{browser/esm/C04uI3XsvTc6Cc7w2.mjs → cdn/assets/CU1J-I76aVm-KPP6.js} +1 -1
  247. package/{browser/esm/nBZATD4yR1W5D4Fi.mjs → cdn/assets/CVbPAnmNN3TxMkq4.js} +1 -1
  248. package/cdn/assets/{CheDxDxt7x0CPz9P.js → CWIp4JC2SCM6lg-s.js} +7 -7
  249. package/{browser/esm/CaTmLXIsIxaOrLcZ.mjs → cdn/assets/CXKguOBpJrsoXPTQ.js} +140 -140
  250. package/cdn/assets/{Dg26zVdGlO10MX0h2.js → CXgMJ_MuMQRu0isj2.js} +25 -25
  251. package/{browser/esm/DjNR_ZGCbg-xia152.mjs → cdn/assets/CXvcyGN4L9iDr1LK.js} +1 -1
  252. package/cdn/assets/{DoBxkE57H5PfH7Or.js → CYFmWcVbnUCDPJ8m.js} +2 -2
  253. package/cdn/assets/{N5PCgig3g9yqotn9.js → C_W3L9-im26Qc-Ub.js} +2 -2
  254. package/cdn/assets/{Dz0_oXqVesISvhbJ.js → Cb7x4GW2rRvj_q2Z.js} +2 -2
  255. package/cdn/assets/{CZ3JFujrzd0iX0zL2.js → CcOMQhQN8PPKQulw2.js} +66 -66
  256. package/cdn/assets/{CTzKk6VuZTohsOIF.js → CcPFyWALYlJWf17T.js} +1 -1
  257. package/cdn/assets/{CWOPhBfYI6R0kz-p.js → CcXDdl0SsmyEFtmU.js} +8 -8
  258. package/cdn/assets/{CwDjNuGkKnVtfJo-2.js → CcuNkPxT6rqElgbZ.js} +1 -1
  259. package/cdn/assets/{CA9oxppuFcYDyylE.js → CdDTtABobc5txUF6.js} +12 -12
  260. package/cdn/assets/{588lLflWQypQVzce.js → CdTHBpWoW1Fu4Dg_.js} +5 -5
  261. package/cdn/assets/{CUTnOs5iWyc3J2cN2.js → Cdm7E0sw56lpdqRU2.js} +11 -11
  262. package/cdn/assets/{erwt6xEgCY7lDQWp.js → Cf-bndowUtxZ6tmG.js} +3 -3
  263. package/cdn/assets/{DmRqcUu6qCPcOxgW.js → CiTCEuoCSDCy9khR.js} +2 -2
  264. package/{browser/esm/CThP3jXwDzLlUOeI.mjs → cdn/assets/Cjbksosgv7NZFNE02.js} +1 -1
  265. package/cdn/assets/{CCTYceFrydwG3Vyt2.js → CmRLwDXiK3woZrVI.js} +6995 -6995
  266. package/{browser/esm/CU1_-PzBC9cDsm5t2.mjs → cdn/assets/Co06Uf-tv1IuVQhe.js} +1 -1
  267. package/cdn/assets/{CzEHYpK2SYTRpxDm2.js → Cpkl0peJbfEXl6ta2.js} +20 -20
  268. package/{browser/esm/DbVSG7Uf7YDQbmc32.mjs → cdn/assets/CpzLNwtfx0Zd0OZ02.js} +1 -1
  269. package/{browser/esm/B2nEJHcip8raAhdc.mjs → cdn/assets/CukMw9Sc4iO21aRQ2.js} +703 -703
  270. package/cdn/assets/{I2Cn0c2NkX845WIx.js → CwGEi_5ErUTrkWRj.js} +6 -6
  271. package/cdn/assets/{DgH-AoqKDdIWg0J8.js → CwRAK6IVjIYuwofE2.js} +1 -1
  272. package/cdn/assets/{CPjsJ0CY-AurDJgm2.js → Cx1HsOCOdZoKJDEN2.js} +12 -12
  273. package/cdn/assets/{BPOi08RtEmQdlbtS2.js → Cy6Cst4s2vE_WWKK2.js} +10 -10
  274. package/{browser/esm/CjFOk9mcZqAngWD2.mjs → cdn/assets/CyS1VLOdAweeZsMV2.js} +1 -1
  275. package/cdn/assets/{B2vjec5TDs2ZJ1eI.js → CyomJv3_vWy4trRe.js} +1 -1
  276. package/cdn/assets/{f9r0yTaD2YChFtEg.js → D-1WiFWkKNPWXppx.js} +1 -1
  277. package/{browser/esm/CULlzRLL3s2Dikjg.mjs → cdn/assets/D3Qv3--VfvVHImXW.js} +1 -1
  278. package/cdn/assets/{VEJV_bhNDNNyZAIA2.js → D6B6VvRh1cfT2e-M2.js} +8 -8
  279. package/{browser/esm/CmSATmXaMlqwTjAe2.mjs → cdn/assets/D718rIGL3d_m1mjm.js} +1 -1
  280. package/cdn/assets/{B_UEqzmXZIhHAEyS.js → D7WMzCfJnKIfTbdg.js} +8 -8
  281. package/cdn/assets/{_gPnIgVx33slqynA.js → D8sc6gCXnfpn7W79.js} +2 -2
  282. package/cdn/assets/{DJBTmv-rddT91Z-N2.js → DA4QV7VUyNUEfx1k2.js} +23 -23
  283. package/cdn/assets/{txVgXcuMeWVNWHnZ.js → DAhlDEV6ehTRvrj7.js} +1 -1
  284. package/cdn/assets/{BSixIKI7PxSqiUGB2.js → DBKHpCvbeQU-Y4eS2.js} +5 -5
  285. package/{browser/esm/DuijhgjRhgWB9sCY.mjs → cdn/assets/DB_I2ygTnDxYiYyc2.js} +35 -32
  286. package/cdn/assets/{BNm-ZCOBoBRceGXA2.js → DKwpjlUd2pFOI9yp2.js} +37 -37
  287. package/cdn/assets/{UNtnFd2ssTtnrqRp.js → DW3_Jr-4VdZZqNEg.js} +56 -56
  288. package/cdn/assets/{D13sLQRMMKrDHepu2.js → DZGMsbIACs9TKYrM.js} +1 -1
  289. package/{browser/esm/V-oO_EfTyth0iptZ2.mjs → cdn/assets/DfIwClWz03Qw38-O2.js} +1 -1
  290. package/{browser/esm/Bfq8Gdqf3I7y_Hju.mjs → cdn/assets/Dg7wE0RZdHeJv5372.js} +1 -1
  291. package/cdn/assets/{ep-IjWXOPg2b-REP2.js → DoAKAH3cmECZGboo2.js} +1 -1
  292. package/cdn/assets/{BsHFBjNwTzc_CKLq2.js → FAaqx6EbN4JxNuNL2.js} +13612 -13643
  293. package/cdn/assets/{BWtyERLPrUmI8Qbi2.js → FHIg3Yb5Rn05W1F22.js} +16 -16
  294. package/cdn/assets/{XFQGB8ADW__0ZBoF2.js → FbLFNYdTqRtQ7QiS.js} +3 -3
  295. package/cdn/assets/{BOhfbmK18Xj1P7-i2.js → JDCQtP0lkncrmnpC.js} +1 -1
  296. package/cdn/assets/{DPN0a43QHMUmHgo5.js → KOiR-1SNAX7AiEes.js} +3 -3
  297. package/cdn/assets/{BKouftCLbhExXXXU.js → KS5XJUWdKvEezJfs2.js} +6 -6
  298. package/cdn/assets/{CBQrIDBtf5Ibwi96.js → OTQWLENoZ1cSiDQb2.js} +2 -2
  299. package/cdn/assets/{lHpMVBxqkkCYD6d1.js → OtaDVRqZVyi7IBBa2.js} +1 -1
  300. package/{browser/esm/gCeoOjDjiVaX8dtF2.mjs → cdn/assets/OyyHiDjohIf4lZX6.js} +1 -1
  301. package/cdn/assets/{CqI09iUEId8rHfJ9.js → PLFw1pLjdLQLrlB0.js} +6 -6
  302. package/cdn/assets/S4MMwlNd4kcK3RDU.js +24 -0
  303. package/cdn/assets/S4MMwlNd4kcK3RDU2.js +24 -0
  304. package/{browser/esm/BEYY8z4FusH7S5K-.mjs → cdn/assets/XuGWliVSRCNi5it1.js} +1 -1
  305. package/{browser/esm/yVLsr0rcaOFel2nS2.mjs → cdn/assets/_cZz4ZhEEr54LYNe.js} +1 -1
  306. package/cdn/assets/{COk-0FZl3cv__3yY2.js → bQ6G23JQrt4l2Ls92.js} +9 -9
  307. package/cdn/assets/{C1doaJjkCzQlB_3u.js → efVOgresgMXMdh7J.js} +1 -1
  308. package/{browser/esm/D1bACCJy4F8kANLy.mjs → cdn/assets/gXemYPUoPvaUd055.js} +1 -1
  309. package/cdn/assets/{gJT4n5za0DqWXFK12.js → hHkEq7qn0rj2XKD82.js} +14 -14
  310. package/cdn/assets/{DI4QTfUQPCjSn0kl.js → hqW1sMr576y2S1qX.js} +7 -7
  311. package/cdn/assets/{CDijenaMI_dBIGU-.js → mI8tvfP8ed2Zerre.js} +171 -171
  312. package/cdn/assets/{BM343UBJqjbDokO6.js → mbUWaIl3SJkdbWx0.js} +1 -1
  313. package/cdn/assets/{BT3KOuPzJsNUvy4B.js → n_NkstgVVwl2iAnp.js} +2 -2
  314. package/cdn/assets/{f1iQWnLWVpKZ34XR2.js → ryzcqI-93l1HBuTe2.js} +8 -8
  315. package/cdn/assets/{D5Pa9lfPfAcCGj_N2.js → vP8Rb-lgzeerBAx42.js} +1 -1
  316. package/cdn/assets/{2QsTDWiE6SMelbNU2.js → w65zHFqjAp_NlbXg2.js} +7 -7
  317. package/cdn/index.js +2 -2
  318. package/package.json +3 -3
  319. package/browser/cjs/B3WkiDqFBfA_xxJL2.cjs +0 -1
  320. package/browser/cjs/BF8ZxFWyAAnbe4mz.cjs +0 -5
  321. package/browser/cjs/BLAG3kDSthU0SH-E.cjs +0 -2
  322. package/browser/cjs/Bqup1MCJFqTZbLDd2.cjs +0 -1
  323. package/browser/cjs/Bsl_clm06l5cwpML.cjs +0 -32
  324. package/browser/cjs/Co31kjvOPAAYbeF-.cjs +0 -1
  325. package/browser/cjs/CqPb6CbrHTRnbSKa2.cjs +0 -8
  326. package/browser/cjs/DP1pufP3NJFoDa-g.cjs +0 -3
  327. package/browser/cjs/DU2HMmI1EeHBTvuG.cjs +0 -1
  328. package/browser/cjs/DWzkpizTIJkaqf4J2.cjs +0 -1
  329. package/browser/cjs/DZBKNR9xUMTHWS_D.cjs +0 -1
  330. package/browser/cjs/DtlC63s51_88j6AY2.cjs +0 -1
  331. package/cdn/assets/C6X4CmElTpPxrad62.js +0 -24
  332. package/cdn/assets/CUYBRp4sHMdGwkLT2.js +0 -24
  333. /package/browser/cjs/{1XrWGMP3GmsQOMIX2.cjs → 1XrWGMP3GmsQOMIX.cjs} +0 -0
  334. /package/browser/cjs/{4nReftSsKWmnRdtf2.cjs → 4nReftSsKWmnRdtf.cjs} +0 -0
  335. /package/browser/cjs/{B6vy56yEA1I3B74O2.cjs → B6vy56yEA1I3B74O.cjs} +0 -0
  336. /package/browser/cjs/{BAxVLKkxFgI6cXnR.cjs → BAxVLKkxFgI6cXnR2.cjs} +0 -0
  337. /package/browser/cjs/{BWDfauDHqB6U_2ka.cjs → BWDfauDHqB6U_2ka2.cjs} +0 -0
  338. /package/browser/cjs/{C0g87ndP2zMUbX6f.cjs → C0g87ndP2zMUbX6f2.cjs} +0 -0
  339. /package/browser/cjs/{C2uDl8VIJqh58YF_.cjs → C2uDl8VIJqh58YF_2.cjs} +0 -0
  340. /package/browser/cjs/{C4cZxb9nRtzTCA40.cjs → C4cZxb9nRtzTCA402.cjs} +0 -0
  341. /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
  342. /package/browser/cjs/{CVHc_cJddJk7J3Zt2.cjs → CVHc_cJddJk7J3Zt.cjs} +0 -0
  343. /package/browser/cjs/{CfXcRa4RlFmqU0Op2.cjs → CfXcRa4RlFmqU0Op.cjs} +0 -0
  344. /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
  345. /package/browser/cjs/{DF4l8xrxkcLkgExp2.cjs → DF4l8xrxkcLkgExp.cjs} +0 -0
  346. /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
  347. /package/browser/cjs/{DNKyaSruDogoBd2H2.cjs → DNKyaSruDogoBd2H.cjs} +0 -0
  348. /package/browser/cjs/{DSXLVieENYN9qXYl2.cjs → DSXLVieENYN9qXYl.cjs} +0 -0
  349. /package/browser/cjs/{Dtxj9JR14A-uliu5.cjs → Dtxj9JR14A-uliu52.cjs} +0 -0
  350. /package/browser/cjs/{PmwvZPFhqmL4DO582.cjs → PmwvZPFhqmL4DO58.cjs} +0 -0
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.2
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.3
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 { C as e, G as t, I as n, K as r, N as i, O as a, R as o, S as s, b as c, c as l, f as u, i as d, j as f, r as p, t as m, y as h } from "./DuijhgjRhgWB9sCY2.js";
8
- import { r as g } from "./CUYBRp4sHMdGwkLT2.js";
9
- import { i as _, t as v } from "./B50P0gSziuG68Umu2.js";
10
- import { $t as y, A as b, B as x, Bt as S, C, Ct as w, D as T, E as ee, Et as te, Ft as ne, Gt as re, Ht as E, Jt as D, K as ie, Kt as ae, L as oe, M as se, Mt as O, N as k, O as ce, Ot as A, P as le, Pt as j, Q as ue, Qt as de, R as fe, Rt as pe, S as me, St as he, Tt as ge, U as _e, Vt as ve, X as ye, Y as be, Yt as xe, Z as Se, Zt as Ce, _ as we, at as Te, b as M, bt as N, c as Ee, cn as De, ct as Oe, d as ke, dn as P, dt as Ae, en as je, et as Me, gt as Ne, j as Pe, kt as Fe, m as Ie, mt as Le, nn as Re, o as F, p as ze, pt as Be, q as I, qt as Ve, r as He, rn as Ue, rt as We, s as Ge, tt as Ke, u as qe, ut as Je, vt as Ye, w as Xe, wt as Ze, xt as Qe, yt as L, zt as $e } from "./BsHFBjNwTzc_CKLq2.js";
7
+ import { C as e, K as t, L as n, M as r, P as i, a, b as o, i as s, k as c, l, n as u, p as d, q as f, w as p, x as m, z as h } from "./DB_I2ygTnDxYiYyc.mjs";
8
+ import { r as g } from "./S4MMwlNd4kcK3RDU.mjs";
9
+ import { i as _, t as v } from "./BSWXx2rKOMPxLLs8.mjs";
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 "./BH_qL-oGqwG-7JKF.mjs";
11
11
  var et, tt = class extends i {
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() });
@@ -103,7 +103,7 @@ var et, tt = class extends i {
103
103
  }
104
104
  }, nt = class {
105
105
  constructor(e, t) {
106
- this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new x(this);
106
+ this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new L(this);
107
107
  let n = this;
108
108
  this._removeStoreListener = e.addListener({
109
109
  onCommitEnd() {
@@ -142,7 +142,7 @@ var et, tt = class extends i {
142
142
  et ||= {};
143
143
  var R = class e {
144
144
  constructor(t, n = {}) {
145
- this._password = null, this._emitter = new x(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._lastModified = n.lastModified ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
145
+ this._password = null, this._emitter = new L(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._lastModified = n.lastModified ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
146
146
  }
147
147
  static _defaultCanWrite(e) {
148
148
  return !!e && !/^(https?:|data:|blob:)/i.test(e);
@@ -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 = k(e);
167
+ let t = b(e);
168
168
  return t ? t.toLowerCase() : null;
169
169
  }
170
170
  getEncryption() {
@@ -216,7 +216,7 @@ var R = class e {
216
216
  }
217
217
  }, z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new Set(), rt = (e) => z.get(e) ?? null, it = () => Array.from(B, (e) => e.getOrigin()), at = class e {
218
218
  constructor(t) {
219
- this._released = !1, e._assertFree(t), this._emitter = new x(this), this._origin = t, z.set(t, this), B.add(this);
219
+ this._released = !1, e._assertFree(t), this._emitter = new L(this), this._origin = t, z.set(t, this), B.add(this);
220
220
  }
221
221
  getOrigin() {
222
222
  return this._origin;
@@ -254,7 +254,7 @@ var R = class e {
254
254
  let e = n, r = e?.name, o = r ? `${O(r)}` : "";
255
255
  s = await e.arrayBuffer(), c = {
256
256
  format: a,
257
- ext: k(r),
257
+ ext: b(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 = m.base64ToArrayBuffer(e), c = {
281
+ s = u.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 = k(u);
297
+ let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = b(u);
298
298
  try {
299
299
  let n = await fetch(e, {
300
300
  ...t,
@@ -336,11 +336,11 @@ var R = class e {
336
336
  default: throw Error(`Unsupported source type: ${o}`);
337
337
  }
338
338
  c.canWrite && await this.findOpenOrigin(r, c) && (c.canWrite = !1);
339
- let u = await e.decode(s, {
339
+ let d = await e.decode(s, {
340
340
  sourceType: o,
341
341
  ...c
342
342
  });
343
- return u ? (await this.onWorkbookRead(u, r), u) : null;
343
+ return d ? (await this.onWorkbookRead(d, r), d) : null;
344
344
  }
345
345
  async findOpenOrigin(e, t) {
346
346
  return t.absolutePath ? this.findOpenPath(t.absolutePath) : null;
@@ -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 = m.isNodeBuffer(e);
380
+ let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = u.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 {
@@ -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: n, suggestedName: r, format: i, encode: a, prompt: o } = e, s = [i, ...(await this._getWriteFormats()).filter((e) => e.key !== i.key)], c = typeof globalThis.showSaveFilePicker == "function", l = !o && n.canWrite() ? this._handleCache.get(n) : void 0;
432
- if (c) try {
433
- if (l) {
431
+ let { origin: n, suggestedName: r, format: i, encode: a, prompt: s } = e, c = [i, ...(await this._getWriteFormats()).filter((e) => e.key !== i.key)], l = typeof globalThis.showSaveFilePicker == "function", u = !s && n.canWrite() ? this._handleCache.get(n) : void 0;
432
+ if (l) try {
433
+ if (u) {
434
434
  let e = await async function(e) {
435
435
  try {
436
436
  if (typeof e.queryPermission != "function") return "granted";
@@ -439,47 +439,47 @@ var R = class e {
439
439
  } catch {
440
440
  return "unavailable";
441
441
  }
442
- }(l);
442
+ }(u);
443
443
  if (e === "denied") return null;
444
- e !== "granted" && (l = void 0);
444
+ e !== "granted" && (u = void 0);
445
445
  }
446
- let o = !!l;
447
- if (!o) {
448
- l = await globalThis.showSaveFilePicker({
446
+ let s = !!u;
447
+ if (!s) {
448
+ u = await globalThis.showSaveFilePicker({
449
449
  suggestedName: r,
450
- types: ct(s)
450
+ types: ct(c)
451
451
  });
452
- let n = await this._findOpenHandle(l, e.workbook?.getOrigin?.());
453
- if (n) throw new h(t("error.io.openElsewhere", { name: n.getName() ?? l.name ?? "" }));
452
+ let n = await this._findOpenHandle(u, e.workbook?.getOrigin?.());
453
+ if (n) throw new o(t("error.io.openElsewhere", { name: n.getName() ?? u.name ?? "" }));
454
454
  }
455
- let c = ut(l.name ?? r), u = s.find((e) => e.exts.some((e) => e.toLowerCase() === c)) ?? i, d = o ? n : new R(l.name ?? r, {
456
- format: u.key,
455
+ let l = ut(u.name ?? r), d = c.find((e) => e.exts.some((e) => e.toLowerCase() === l)) ?? i, f = s ? n : new R(u.name ?? r, {
456
+ format: d.key,
457
457
  canWrite: !0
458
- }), f = await a(u.key, d);
459
- if (!f) return null;
460
- let p = new Blob([lt(f)], { type: u.mimeType || "application/octet-stream" }), m = await l.createWritable();
461
- if (await m.write(p), await m.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
- size: p.size,
458
+ }), p = await a(d.key, f);
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({
464
+ size: m.size,
465
465
  lastModified: e
466
466
  });
467
467
  }
468
- return d;
468
+ return f;
469
469
  } catch (e) {
470
470
  if (e?.name === "AbortError") return null;
471
- if (e instanceof h) throw e;
471
+ if (e instanceof o) throw e;
472
472
  }
473
- let u = n.getPath(), d = u ? u.split(/[/\\]/).pop() : null, f = d && i.exts.some((e) => e.toLowerCase() === ut(d)) ? d : r, p = u !== f || n.canWrite() ? new R(f, {
473
+ let d = n.getPath(), f = d ? d.split(/[/\\]/).pop() : null, p = f && i.exts.some((e) => e.toLowerCase() === ut(f)) ? f : r, m = d !== p || n.canWrite() ? new R(p, {
474
474
  format: i.key,
475
475
  canWrite: !1
476
- }) : n, m = await a(i.key, p);
477
- if (!m) return null;
478
- let g = new Blob([lt(m)], { type: i.mimeType || "application/octet-stream" });
476
+ }) : n, h = await a(i.key, m);
477
+ if (!h) return null;
478
+ let g = new Blob([lt(h)], { type: i.mimeType || "application/octet-stream" });
479
479
  return function(e, t) {
480
480
  let n = URL.createObjectURL(e), r = document.createElement("a");
481
481
  r.style.display = "none", r.href = n, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
482
- }(g, f), p instanceof R && p.update({ size: g.size }), p;
482
+ }(g, p), m instanceof R && m.update({ size: g.size }), m;
483
483
  }
484
484
  };
485
485
  function ct(e) {
@@ -548,7 +548,7 @@ var dt = class {
548
548
  "Trebuchet MS",
549
549
  "Verdana"
550
550
  ], H = /* @__PURE__ */ new Map();
551
- H.set(M.GenericName.Serif, ["Tahoma"]), H.set(M.GenericName.SanSerif, ["Calibri"]), H.set(M.GenericName.MonoSpace, ["Courier New"]), H.set(M.GenericName.Cursive, ["Comic Sans MS"]), H.set(M.GenericName.Fantasy, ["Luminari"]), H.set(M.GenericName.UISystem, ["Arial"]), H.set(M.GenericName.UISerif, ["Tahoma"]), H.set(M.GenericName.UISanSerif, ["Arial"]), H.set(M.GenericName.UIMonoSpace, ["Courier New"]), H.set(M.GenericName.UIRounded, ["Arial"]), H.set(M.GenericName.Math, []), H.set(M.GenericName.Emoji, []), H.set(M.GenericName.Fangsong, []);
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, []);
552
552
  var U = /* @__PURE__ */ new Map(), mt = [];
553
553
  W(pt);
554
554
  var ht = eval;
@@ -618,7 +618,7 @@ function Ct(e, t = !0, n = St) {
618
618
  if (!n || n.length === 0) return e;
619
619
  if (e === void 0) return n[0];
620
620
  if (t && e >= n[n.length - 1] || !t && e <= n[0]) return e;
621
- let r = o.findEqualOrGreater(n, e);
621
+ let r = h.findEqualOrGreater(n, e);
622
622
  return t ? (n[r] === e && (r += 1), n[r] || --r, n[r]) : (--r, n[r]);
623
623
  }
624
624
  (_t ||= {}).SortOn = {
@@ -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 = Ke.BuiltInName, Ot = {
673
- [q.Normal]: e("style.builtin.normal"),
674
- [q.Comma]: e("style.builtin.comma"),
675
- [q.Currency]: e("style.builtin.currency"),
676
- [q.Percent]: e("style.builtin.percent"),
677
- [q.Comma0]: e("style.builtin.comma0"),
678
- [q.Currency0]: e("style.builtin.currency0"),
679
- [q.Hyperlink]: e("style.builtin.hyperlink"),
680
- [q.FollowedHyperlink]: e("style.builtin.followedHyperlink"),
681
- [q.Note]: e("style.builtin.note"),
682
- [q.WarningText]: e("style.builtin.warningText"),
683
- [q.Title]: e("style.builtin.title"),
684
- [q.Input]: e("style.builtin.input"),
685
- [q.Output]: e("style.builtin.output"),
686
- [q.Calculation]: e("style.builtin.calculation"),
687
- [q.CheckCell]: e("style.builtin.checkCell"),
688
- [q.LinkedCell]: e("style.builtin.linkedCell"),
689
- [q.Total]: e("style.builtin.total"),
690
- [q.Good]: e("style.builtin.good"),
691
- [q.Bad]: e("style.builtin.bad"),
692
- [q.Neutral]: e("style.builtin.neutral"),
693
- [q.ExplanatoryText]: e("style.builtin.explanatoryText")
694
- }, kt = e("style.builtin.heading"), At = e("style.builtin.accent"), jt = e("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 = Oe.BuiltInName, Ot = {
673
+ [q.Normal]: p("style.builtin.normal"),
674
+ [q.Comma]: p("style.builtin.comma"),
675
+ [q.Currency]: p("style.builtin.currency"),
676
+ [q.Percent]: p("style.builtin.percent"),
677
+ [q.Comma0]: p("style.builtin.comma0"),
678
+ [q.Currency0]: p("style.builtin.currency0"),
679
+ [q.Hyperlink]: p("style.builtin.hyperlink"),
680
+ [q.FollowedHyperlink]: p("style.builtin.followedHyperlink"),
681
+ [q.Note]: p("style.builtin.note"),
682
+ [q.WarningText]: p("style.builtin.warningText"),
683
+ [q.Title]: p("style.builtin.title"),
684
+ [q.Input]: p("style.builtin.input"),
685
+ [q.Output]: p("style.builtin.output"),
686
+ [q.Calculation]: p("style.builtin.calculation"),
687
+ [q.CheckCell]: p("style.builtin.checkCell"),
688
+ [q.LinkedCell]: p("style.builtin.linkedCell"),
689
+ [q.Total]: p("style.builtin.total"),
690
+ [q.Good]: p("style.builtin.good"),
691
+ [q.Bad]: p("style.builtin.bad"),
692
+ [q.Neutral]: p("style.builtin.neutral"),
693
+ [q.ExplanatoryText]: p("style.builtin.explanatoryText")
694
+ }, kt = p("style.builtin.heading"), At = p("style.builtin.accent"), jt = p("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 };
@@ -714,8 +714,8 @@ var It = (e, n, r, i, a) => {
714
714
  let o = JSON.parse(JSON.stringify(e.definition));
715
715
  o.adjs ||= [];
716
716
  let s = "", c = 0, l = 0;
717
- n > 0 ? (l = n, c = 100 - n, s = t("op.lighterPercent", { percent: n })) : n < 0 && (c = 100 + n, s = t("op.darkerPercent", { percent: -n })), c && o.adjs.push({ [E.AdjustmentType.LumMod]: c }), l && o.adjs.push({ [E.AdjustmentType.LumOff]: l });
718
- let u = new Ue({
717
+ n > 0 ? (l = n, c = 100 - n, s = t("op.lighterPercent", { percent: n })) : n < 0 && (c = 100 + n, s = t("op.darkerPercent", { percent: -n })), c && o.adjs.push({ [ie.AdjustmentType.LumMod]: c }), l && o.adjs.push({ [ie.AdjustmentType.LumOff]: l });
718
+ let u = new Ce({
719
719
  val: o.val,
720
720
  adjs: o.adjs
721
721
  }, r), d = u.toString();
@@ -730,7 +730,7 @@ function Lt(e) {
730
730
  let t, n = e.trim();
731
731
  if (!n) return;
732
732
  try {
733
- let e = Ie.shared().tokenize(n, !1);
733
+ let e = ze.shared().tokenize(n, !1);
734
734
  if (e.errors.length > 0) return;
735
735
  t = e.tokens;
736
736
  } catch {
@@ -748,13 +748,13 @@ function Lt(e) {
748
748
  case "NumberToken":
749
749
  case "ScientificDigit":
750
750
  case "DigitToken": {
751
- let e = Ve(o).value;
751
+ let e = Te(o).value;
752
752
  return r === 0 ? e : r * e;
753
753
  }
754
- case "StringToken": return r === 0 ? ne(o).value : void 0;
755
- case "BooleanToken": return r === 0 ? te(o).value : void 0;
754
+ case "StringToken": return r === 0 ? ae(o).value : void 0;
755
+ case "BooleanToken": return r === 0 ? ve(o).value : void 0;
756
756
  case "LiteralError":
757
- case "RefError": return r === 0 ? Ae(o).value : void 0;
757
+ case "RefError": return r === 0 ? w(o).value : void 0;
758
758
  default: return;
759
759
  }
760
760
  } catch {
@@ -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 Ue({
784
+ }, c = new Ce({
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 Oe(function(e) {
867
+ e = new fe(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 T(this._children, e, Rt)[Symbol.iterator]();
879
+ return se(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 ?? Le, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
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;
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,7 +897,7 @@ var Bt = class {
897
897
  }) : c = !0, d = u.next();
898
898
  }
899
899
  }
900
- return Fe.fromGroups(r, t, e, Rt, o, s, c);
900
+ return re.fromGroups(r, t, e, Rt, o, s, c);
901
901
  }
902
902
  getTypedCounts(e) {
903
903
  let t = this._typedCounts;
@@ -947,7 +947,7 @@ var Bt = class {
947
947
  let a = n.numericalCount;
948
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 _e(r);
950
+ return He(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 qe {
994
+ }, Wt = class extends Ke {
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
  }
@@ -1015,7 +1015,7 @@ var Ut = class {
1015
1015
  let i = new Ut({
1016
1016
  ...t,
1017
1017
  displayName: r,
1018
- id: n ?? o.uuidV4().toUpperCase()
1018
+ id: n ?? h.uuidV4().toUpperCase()
1019
1019
  }, (e) => this._remove(e));
1020
1020
  return this._byId.set(i.getId(), i), r && !this._byDisplayName.has(r) && this._byDisplayName.set(r, i), this._items = null, this._notifyCollectionChange(), i;
1021
1021
  }
@@ -1057,7 +1057,7 @@ var Ut = class {
1057
1057
  }
1058
1058
  }, Gt = class {
1059
1059
  constructor(e) {
1060
- this._options = e, this._emitter = new x(this), this._initState();
1060
+ this._options = e, this._emitter = new L(this), this._initState();
1061
1061
  }
1062
1062
  _initState() {}
1063
1063
  getModules() {
@@ -1066,26 +1066,26 @@ var Ut = class {
1066
1066
  _builtInNames() {
1067
1067
  try {
1068
1068
  let e = this._options.getBuiltInFunctions?.();
1069
- if (!e) return o.EmptyArray;
1069
+ if (!e) return h.EmptyArray;
1070
1070
  let t = [];
1071
1071
  for (let n of e.getItems()) n.isBuiltIn() && t.push(n.getName());
1072
1072
  return t;
1073
1073
  } catch {
1074
- return o.EmptyArray;
1074
+ return h.EmptyArray;
1075
1075
  }
1076
1076
  }
1077
1077
  async createModule(e) {
1078
- let t = await (await import("./f1iQWnLWVpKZ34XR2.js").then((e) => e.n)).ScriptCompiler.compile({
1078
+ let t = await (await import("./ByQakLd0YFwc0Lgl.mjs").then((e) => e.n)).ScriptCompiler.compile({
1079
1079
  builtInNames: this._builtInNames(),
1080
1080
  ...e
1081
1081
  });
1082
- return t.module ? await P(ke.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1082
+ return t.module ? await A(S.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 P(e, t);
1088
+ let r = await A(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 P(ke.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1104
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await A(S.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 {
@@ -1166,7 +1166,7 @@ var Ut = class {
1166
1166
  async searchFunctions(e) {
1167
1167
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1168
1168
  let t = await this._searchable(e);
1169
- if (t.length === 0) return o.EmptyArray;
1169
+ if (t.length === 0) return h.EmptyArray;
1170
1170
  let n, r = e?.limit, i = r === void 0 ? e : {
1171
1171
  ...e,
1172
1172
  limit: void 0
@@ -1181,14 +1181,14 @@ var Ut = class {
1181
1181
  }
1182
1182
  }
1183
1183
  }
1184
- if (!n || n.length === 0) return o.EmptyArray;
1185
- let s = e?.text ? e.text.trim().toUpperCase() : null;
1186
- return s && t.length > 1 && Ge(n, s), r !== void 0 && n.length > r ? n.slice(0, r) : n;
1184
+ if (!n || n.length === 0) return h.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;
1187
1187
  }
1188
1188
  async getFunctionCategories(e) {
1189
1189
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1190
1190
  let t = await this._searchable(e);
1191
- if (t.length === 0) return o.EmptyArray;
1191
+ if (t.length === 0) return h.EmptyArray;
1192
1192
  if (t.length === 1) return t[0].getCategories(e);
1193
1193
  let n = e?.includeDeprecated ?? !1, r = /* @__PURE__ */ new Map(), i = (e) => {
1194
1194
  let t = e.toUpperCase(), n = r.get(t);
@@ -1224,15 +1224,15 @@ var Ut = class {
1224
1224
  if (t) {
1225
1225
  let r = Object.keys(t);
1226
1226
  for (let i = 0; i < r.length; i++) {
1227
- let a = r[i], o = t[a];
1227
+ let o = r[i], s = t[o];
1228
1228
  try {
1229
- n[a] = await P(a, o, !1, [], o?.scope === "workbook" ? e : null);
1229
+ n[o] = await A(o, s, !1, [], s?.scope === "workbook" ? e : null);
1230
1230
  } catch (e) {
1231
- d.error(`Could not load script '${a}'; it will be unavailable.`, e);
1231
+ a.error(`Could not load script '${o}'; it will be unavailable.`, e);
1232
1232
  }
1233
1233
  }
1234
1234
  }
1235
- let r = this, i = new ge({
1235
+ let r = this, i = new ce({
1236
1236
  transactions: this._options?.transactions,
1237
1237
  initial: n,
1238
1238
  isReadOnly: () => r.isReadOnly(),
@@ -1244,16 +1244,16 @@ var Ut = class {
1244
1244
  }
1245
1245
  });
1246
1246
  this._modules = i;
1247
- let a = i.getItems();
1248
- if (a.length === 0) return Promise.resolve(o.EmptyArray);
1249
- let s = a.length;
1247
+ let o = i.getItems();
1248
+ if (o.length === 0) return Promise.resolve(h.EmptyArray);
1249
+ let s = o.length;
1250
1250
  for (let t = 0; t < s; t++) {
1251
- let n = a[t];
1251
+ let n = o[t];
1252
1252
  try {
1253
1253
  let t = await n.getFunctions().search({ type: "autoRun" }), r = t.length;
1254
1254
  for (let n = 0; n < r; n++) await t[n].execute(e);
1255
1255
  } catch (e) {
1256
- d.error("Error executing autoRun script:", e);
1256
+ a.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 ?? u.EmptyCell, this._sheet = new L({
1277
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? d.EmptyCell, this._sheet = new y({
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 = ve(i.fontFamily);
1298
+ let a = ne(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 = y(i.textDecoration);
1301
- r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = De(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 = I.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = I.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = I.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = M.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = M.VerticalAlignment.Sub : r.alignment.vertical = Se(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = I.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" ? I.Overflow.Visible : I.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = I.Overflow.Shrink);
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);
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 = he(i.msoPattern);
1305
- e && (e.patternType === ee.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== ee.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
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));
1306
1306
  }
1307
- i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = Ze(i.msoRotate));
1307
+ i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = me(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 = Re(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = j.Styles.lookupStyle(r.numberFormat).formatType === j.Type.Number ? null : j.Type.Number : l === "Percent" && (l = j.Styles.lookupStyle(r.numberFormat).formatType === j.Type.Percentage ? null : j.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 = 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;
1314
1314
  }
1315
1315
  onCell(e, t, n, r, i) {
1316
1316
  let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
1317
1317
  if (typeof o.value == "string" && o.value.length === 0 && (o.value = void 0), a && this.applyCSSStyle(o, a), i?.tagName.toUpperCase() === "TD") {
1318
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 = M.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = M.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = M.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = M.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
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);
1320
1320
  let n = i.querySelectorAll("a");
1321
1321
  if (n.length > 0) {
1322
1322
  let e = n[0].getAttribute("href");
1323
1323
  e && (o.hyperlink = e);
1324
1324
  }
1325
1325
  }
1326
- if (!u.isSingleCell(e)) {
1326
+ if (!d.isSingleCell(e)) {
1327
1327
  let t = {
1328
1328
  rowStart: this._topLeft.rowIndex + e.rowStart,
1329
1329
  colStart: this._topLeft.colIndex + e.colStart,
@@ -1334,7 +1334,7 @@ var Ut = class {
1334
1334
  }
1335
1335
  if (o.value === void 0 && !o.style && Object.keys(o).length <= 1) return;
1336
1336
  let s = this._builder, c = this._topLeft;
1337
- if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !u.isSingleCell(e) && a.msoIgnore) {
1337
+ if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !d.isSingleCell(e) && a.msoIgnore) {
1338
1338
  if (a.msoIgnore.includes("colspan")) {
1339
1339
  let t = {};
1340
1340
  a && this.applyCSSStyle(t, a);
@@ -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 = S(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 = S(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
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");
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 * M.getDeviceScale() }
1375
+ update: { size: o * P.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 = S(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1382
+ a && (o = k(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 * M.getDeviceScale() }
1387
+ update: { size: o * P.getDeviceScale() }
1388
1388
  });
1389
1389
  }
1390
1390
  onDone() {
@@ -1396,9 +1396,9 @@ var Ut = class {
1396
1396
  return this._sheet;
1397
1397
  }
1398
1398
  }, qt = class {
1399
- constructor(e) {
1400
- if (!e) throw new s("snapshot is required.");
1401
- this._snapshot = e;
1399
+ constructor(t) {
1400
+ if (!t) throw new e("snapshot is required.");
1401
+ this._snapshot = t;
1402
1402
  }
1403
1403
  getItemType() {
1404
1404
  return "range";
@@ -1428,9 +1428,9 @@ var Ut = class {
1428
1428
  return !0;
1429
1429
  }
1430
1430
  }, Jt = class {
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 ?? u.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1431
+ constructor(t, n, r, i, a) {
1432
+ if (this._parsed = void 0, this._runtime = t, !n) throw new e("nativeItems are required.");
1433
+ this._topLeft = r ?? d.EmptyCell, this._native = n, this._markOptions = Object.freeze(i ?? {}), this._styles = a;
1434
1434
  }
1435
1435
  getItemType() {
1436
1436
  return "range";
@@ -1469,34 +1469,34 @@ var Ut = class {
1469
1469
  }, this._snapshot;
1470
1470
  }
1471
1471
  async parse() {
1472
- let t, r = this._native?.text, i = this._native.html;
1473
- if (i === null && r && r.includes("<table")) try {
1474
- let e = new DOMParser().parseFromString(r, n.Html), t = e.querySelector("parsererror");
1475
- if (t) throw new h("Unable to parse: " + t);
1476
- i = e, r = null;
1472
+ let e, t = this._native?.text, r = this._native.html;
1473
+ if (r === null && t && t.includes("<table")) try {
1474
+ let e = new DOMParser().parseFromString(t, n.Html), i = e.querySelector("parsererror");
1475
+ if (i) throw new o("Unable to parse: " + i);
1476
+ r = 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 e, n = new Kt(this._runtime, this._topLeft, this._styles, i ? "HTML" : "Text"), a = await Promise.resolve(r ? je(r) : [[]]);
1482
- if (ze(i, a, n) ? (t = n.sheet(), e = t.getUsedRange()) : i = null, e) return this._parsed = {
1483
- copyTo: async (t, n) => (await t.copyFrom(e, n))?.getCoords() ?? null,
1484
- getCoords: () => e.getCoords(),
1485
- getSource: () => t,
1486
- getName: () => t.getName()
1481
+ let n, i = new Kt(this._runtime, this._topLeft, this._styles, r ? "HTML" : "Text"), a = await Promise.resolve(t ? Ee(t) : [[]]);
1482
+ if (ke(r, a, i) ? (e = i.sheet(), n = e.getUsedRange()) : r = null, n) return this._parsed = {
1483
+ copyTo: async (e, t) => (await e.copyFrom(n, t))?.getCoords() ?? null,
1484
+ getCoords: () => n.getCoords(),
1485
+ getSource: () => e,
1486
+ getName: () => e.getName()
1487
1487
  }, !0;
1488
1488
  } catch (e) {
1489
1489
  throw e;
1490
1490
  }
1491
- if (!r && !i && this._native.image) {
1492
- let t = this;
1491
+ if (!t && !r && this._native.image) {
1492
+ let e = this;
1493
1493
  return this._parsed = {
1494
- async copyTo(n, r) {
1495
- let i = n.getSheet(), a = await t._native.image.arrayBuffer(), o = await i.getMovables().addPicture({ source: { buffer: a } }, {
1494
+ async copyTo(t, n) {
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: e("op.copyImageFromClipboard")
1497
+ description: p("op.copyImageFromClipboard")
1498
1498
  });
1499
- return i.getView().selectMovables([o]), null;
1499
+ return r.getView().selectMovables([a]), null;
1500
1500
  },
1501
1501
  getName: () => "Image"
1502
1502
  }, !0;
@@ -1516,7 +1516,7 @@ var Ut = class {
1516
1516
  activeSheetId: 0
1517
1517
  }, Yt = class {
1518
1518
  constructor(e) {
1519
- this._id = o.uuidV4(), this._emitter = new x(this), this._state = { ...J }, e?.json && this._fromJSON(e?.json);
1519
+ this._id = h.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 be {
1605
+ }), Y = class extends oe {
1606
1606
  isWindowsAllowed() {
1607
1607
  return this._isPropertyAllowed("windows");
1608
1608
  }
@@ -1639,7 +1639,7 @@ var Ut = class {
1639
1639
  function X(e) {
1640
1640
  return t("error.workbook.invalidSheetKey", { key: e });
1641
1641
  }
1642
- var Zt, Qt, $t, en, tn = class extends qe {
1642
+ var Zt, Qt, $t, en, tn = class extends Ke {
1643
1643
  constructor(e, t, n) {
1644
1644
  super(), this._add = e, this._get = t, this._addListeners = n;
1645
1645
  }
@@ -1659,15 +1659,15 @@ var Zt, Qt, $t, en, tn = class extends qe {
1659
1659
  return !0;
1660
1660
  }
1661
1661
  }, Z = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), nn = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1662
- function rn(n) {
1663
- let r = t(e("workbook.defaultSheetName"), { n: n + 1 });
1664
- return r === "workbook.defaultSheetName" ? `Sheet${n + 1}` : r;
1662
+ function rn(e) {
1663
+ let n = t(p("workbook.defaultSheetName"), { n: e + 1 });
1664
+ return n === "workbook.defaultSheetName" ? `Sheet${e + 1}` : n;
1665
1665
  }
1666
1666
  function an(e, t) {
1667
1667
  return {
1668
- ...He,
1668
+ ...te,
1669
1669
  getSheet: () => null,
1670
- toString: () => D(e, t)
1670
+ toString: () => N(e, t)
1671
1671
  };
1672
1672
  }
1673
1673
  function on(e, n = !1) {
@@ -1690,7 +1690,7 @@ function on(e, n = !1) {
1690
1690
  }
1691
1691
  return e;
1692
1692
  }
1693
- var sn, cn = "workbook.activeSheet", Q = class e extends oe {
1693
+ var sn, cn = "workbook.activeSheet", Q = class e extends ee {
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 oe {
1701
1701
  let r = this._options;
1702
1702
  return n && (r = {
1703
1703
  ...this._options,
1704
- getOptions: F(this._options?.getOptions, n)
1704
+ getOptions: E(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, N.Visibility.VeryHidden) : null;
1708
+ let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, F.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: b,
1712
+ scope: T,
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: F(this._options.getOptions, t)
1720
- }), new ln(e, A(r.sheet), this._workbook, i);
1719
+ getOptions: E(this._options.getOptions, t)
1720
+ }), new ln(e, j(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 oe {
1741
1741
  }
1742
1742
  getAddress(e) {
1743
1743
  let t = this._internal.getSheet(), n = t.getEntireRange().getCoords();
1744
- return Ye(this.getCoords(), {
1744
+ return je(this.getCoords(), {
1745
1745
  ...n,
1746
1746
  scope: t.getName()
1747
- }, D, ce, e);
1747
+ }, N, he, e);
1748
1748
  }
1749
1749
  toString() {
1750
1750
  return this.getAddress();
1751
1751
  }
1752
- }, ln = class e extends pe {
1752
+ }, ln = class e extends De {
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 oe {
1757
1757
  let n = this._options;
1758
1758
  return t && (n = {
1759
1759
  ...this._options,
1760
- getOptions: F(this._options?.getOptions, t)
1760
+ getOptions: E(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 Ne(r.getSheet(), r.getSheet().getEntireCoords());
1766
- if (r.validateCoords(t), r.getSheet().isClosed()) return Ne(null, r.getSheet().getEntireCoords(), t);
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);
1767
1767
  let i = this._options;
1768
1768
  return n && (i = {
1769
1769
  ...this._options,
1770
- getOptions: F(this._options?.getOptions, n)
1770
+ getOptions: E(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 oe {
1780
1780
  }
1781
1781
  getAddress(e) {
1782
1782
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
1783
- return D(this.getCoords(), {
1783
+ return N(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 oe {
1789
1789
  return this.getAddress();
1790
1790
  }
1791
1791
  }, un = (e) => !!e && typeof e == "object" && typeof e.getOrigin == "function", dn = class {
1792
- constructor(t) {
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 Ee(() => {
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(() => {
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 C(null, (e, t, n) => {
1797
+ }), this._people = new Wt(), this._commentCollection = new Be(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 oe {
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 n = typeof t == "string" ? { origin: t } : { ...t }, r = n.origin;
1812
- this._ownOriginProvider = !un(r), this._originProvider = un(r) ? r : new at(typeof r == "string" ? new R(null, { name: r }) : r ?? new R(null)), delete n.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
1813
- let i = n.json;
1814
- delete n.json, this._transactions = n.transactions ?? new Je(), this._id = this._transactions.create(), this._ownTransactions = !n.transactions, this._emitter = new x(this, this._transactions), this._runtime = n.runtime ?? new Be("Workbook Runtime", {
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", {
1815
1815
  isDate1904: () => this._isDate1904,
1816
1816
  getNow: () => this._transactions.getCurrentCommit().getTimestamp(),
1817
- getLocale: () => this._locale ?? ae() ?? xe(),
1817
+ getLocale: () => this._locale ?? ye() ?? Se(),
1818
1818
  getLocaleOverrides: () => this._localeOverrides
1819
- }), this._listenerLanguage = a.addChangeListener(() => {
1819
+ }), this._listenerLanguage = c.addChangeListener(() => {
1820
1820
  this._closed || this._notifyAllChange();
1821
1821
  });
1822
- let s = this, c = this._beginCommit({ description: e(i ? "op.openWorkbook" : "op.newWorkbook") });
1822
+ let i = this, a = this._beginCommit({ description: p(r ? "op.openWorkbook" : "op.newWorkbook") });
1823
1823
  try {
1824
- this._strings = n.strings ?? new fe(), this._ownStrings = !n.strings, this._resources = n.resources ?? new Pe(), this._ownResources = !n.resources, this._createSheetName = n.createSheetNameCallback ?? rn;
1825
- let e = n.createSheetCallback;
1826
- e ||= (e) => new L(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, i, a, o) => {
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) => {
1827
1827
  let c = null, l = {
1828
- runtime: s._runtime,
1829
- readonly: s._options.readonly ?? !1,
1830
- disableLoadAutoFit: s._options.disableLoadAutoFit ?? !1,
1831
- opener: s._options.opener,
1832
- transactions: s._transactions,
1833
- styles: s._styles,
1834
- strings: s._strings,
1835
- resources: s._resources,
1836
- names: s._names,
1837
- workbook: s,
1838
- calculation: s._calculation,
1839
- resolveRange: (e) => s._options.resolveRange?.(e) ?? s.getRange(e),
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),
1840
1840
  container: {
1841
1841
  beforeFromJSON: (e) => {
1842
- c = e, s._addSheetRef({
1842
+ c = e, i._addSheetRef({
1843
1843
  name: n,
1844
1844
  id: t,
1845
- visibility: r ?? N.Visibility.Visible,
1846
- sheetId: a,
1845
+ visibility: r ?? F.Visibility.Visible,
1846
+ sheetId: o,
1847
1847
  sheet: e
1848
- }, i);
1848
+ }, a);
1849
1849
  },
1850
1850
  getName: () => {
1851
- let e = s._getSheetRef(c);
1851
+ let e = i._getSheetRef(c);
1852
1852
  return e ? e.name : n;
1853
1853
  },
1854
1854
  setName: (e, t) => {
1855
- s._getSheetRef(c) && s._setSheetName(c, e, t);
1855
+ i._getSheetRef(c) && i._setSheetName(c, e, t);
1856
1856
  },
1857
1857
  setNameChangeCallback: (e) => {
1858
- s._sheetOnNameChange.set(t, e);
1858
+ i._sheetOnNameChange.set(t, e);
1859
1859
  },
1860
1860
  getVisibility: () => {
1861
- let e = s._getSheetRef(c);
1862
- return e ? e.visibility : N.Visibility.Visible;
1861
+ let e = i._getSheetRef(c);
1862
+ return e ? e.visibility : F.Visibility.Visible;
1863
1863
  },
1864
1864
  setVisibility: (e, t) => {
1865
- s._setSheetVisibility(c, e, t);
1865
+ i._setSheetVisibility(c, e, t);
1866
1866
  },
1867
1867
  setVisibilityCallback: (e) => {
1868
- s._sheetOnVisibilityChange.set(t, e);
1868
+ i._sheetOnVisibilityChange.set(t, e);
1869
1869
  },
1870
- duplicate: () => s._duplicateSheet(c),
1870
+ duplicate: () => i._duplicateSheet(c),
1871
1871
  getIndex: () => {
1872
- let e = s._getSheetRef(c);
1873
- return e ? s._getOffsetForId(e.id, s._getSheetRefs(N.Visibility.VeryHidden)) : i;
1872
+ let e = i._getSheetRef(c);
1873
+ return e ? i._getOffsetForId(e.id, i._getSheetRefs(F.Visibility.VeryHidden)) : a;
1874
1874
  },
1875
1875
  setIndex: (e, t) => {
1876
- let n = s._getSheetRef(c, N.Visibility.VeryHidden);
1877
- return !!n && (s._moveSheet(n, e, t), !0);
1876
+ let n = i._getSheetRef(c, F.Visibility.VeryHidden);
1877
+ return !!n && (i._moveSheet(n, e, t), !0);
1878
1878
  },
1879
1879
  setIndexCallback: (e) => {
1880
- s._sheetOnIndexChange.set(t, e);
1880
+ i._sheetOnIndexChange.set(t, e);
1881
1881
  },
1882
- requestSelect: async () => (s._setSelectedSheet(c), await this._emitter.notify("onRequestSelect", {
1883
- source: s,
1882
+ requestSelect: async () => (i._setSelectedSheet(c), await this._emitter.notify("onRequestSelect", {
1883
+ source: i,
1884
1884
  params: c,
1885
1885
  async: !0
1886
- }), s.getSelectedSheet() === c)
1886
+ }), i.getSelectedSheet() === c)
1887
1887
  }
1888
1888
  };
1889
- return o && (l.json = o), c = e(l, n, i, r), c;
1890
- }, this._namedTableSource = new Ce({
1891
- getSheets: () => s._sheets ? s.getSheets().getItems() : o.EmptyArray,
1892
- addSheetsListener: (e, t) => s.addListeners({ onSheetsChange: e }, t)
1893
- }), this._names = n.names ?? new Me({
1894
- addressToRanges: (e) => s.getRanges(e),
1895
- getCurrentScope: () => s.getSelectedSheet().getName(),
1896
- isReadOnly: () => (s._options.readonly ?? !1) || s._isStructureProtected(),
1897
- transactions: s._transactions,
1898
- getSources: () => s._calculation ? [s._calculation.getNamedFormulas(), s._namedTableSource] : o.EmptyArray
1899
- }), this._ownNames = !n.names, this._calculation = n.calculation ?? new ue({
1900
- runtime: s._runtime,
1901
- functions: n.functions,
1902
- json: i?.calc,
1903
- isNamesReadOnly: () => s._isStructureProtected(),
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() : h.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] : h.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(),
1904
1904
  getActiveCell: () => {
1905
- let e = s.getSelectedSheet(), t = e?.getSelectedRange()?.getCoords();
1905
+ let e = i.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: s.getRange.bind(s),
1913
- getRanges: s.getRanges.bind(s),
1914
- createGraphRanges: (e, t) => s._createGraphRanges(e, t),
1912
+ getRange: i.getRange.bind(i),
1913
+ getRanges: i.getRanges.bind(i),
1914
+ createGraphRanges: (e, t) => i._createGraphRanges(e, t),
1915
1915
  getSheetIndex: (e) => {
1916
1916
  if (e === void 0) {
1917
- let e = s.getSelectedSheet();
1918
- return e ? this._getSheetRefs(N.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1917
+ let e = i.getSelectedSheet();
1918
+ return e ? this._getSheetRefs(F.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1919
1919
  }
1920
- let t = this._getSheetRefs(N.Visibility.VeryHidden);
1920
+ let t = this._getSheetRefs(F.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 oe {
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(N.Visibility.VeryHidden);
1930
+ let r = this._getSheetRefs(F.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 oe {
1936
1936
  }
1937
1937
  return -1;
1938
1938
  },
1939
- getSheetCount: () => s.getSheets().getItems({ visibility: N.Visibility.VeryHidden }).length,
1940
- getSheetIds: () => s._sheets?.getItems({ visibility: N.Visibility.VeryHidden }).map((e) => e.getId()) ?? [],
1941
- addSheetsListener: (e, t) => s.addListeners({ onSheetsChange: () => {
1942
- s._restoringSheets || e();
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();
1943
1943
  } }, t),
1944
1944
  getSheetById: (e) => {
1945
- let t = s.getSheets().getItems({ visibility: N.Visibility.VeryHidden }), n = t.length;
1945
+ let t = i.getSheets().getItems({ visibility: F.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: i?.externalBooks,
1950
- externalBookResolver: n.externalBookResolver,
1951
- namedCollection: s._names,
1952
- strings: s._strings,
1953
- transactions: s._transactions,
1954
- names: i?.names
1955
- }), this._ownCalculation = !n.calculation, this._scripts = this._createScripts(i?.modules), this._ownNames = !n.names, this._options = Object.freeze({ ...n });
1956
- let t = n.calcOnLoad ?? "auto", r = !1, a = (async () => {
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 () => {
1957
1957
  try {
1958
- if (this._ownCalculation && t !== "none" && (t === "full" || t === "auto" && !0 === i?.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 === r?.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
- r = !0, this._starting = null;
1961
+ o = !0, this._starting = null;
1962
1962
  }
1963
1963
  })();
1964
- r || (this._starting = a), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new tn((e) => s._addSheetOptions(e), (e, t) => {
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) => {
1965
1965
  if (e) {
1966
1966
  let n = this._getSheetRef(e, t);
1967
- return n ? [n.sheet] : o.EmptyArray;
1967
+ return n ? [n.sheet] : h.EmptyArray;
1968
1968
  }
1969
1969
  return this._getSheets(t);
1970
1970
  }, (e, t) => {
1971
1971
  let n = e.onCollectionChange, r = e.onInvalidated;
1972
- return s._emitter.addListeners({
1972
+ return i._emitter.addListeners({
1973
1973
  onSheetsChange: n ? () => {
1974
- n(s._sheets);
1974
+ n(i._sheets);
1975
1975
  } : void 0,
1976
1976
  onInvalidated: r ? () => {
1977
- r(s._sheets);
1977
+ r(i._sheets);
1978
1978
  } : void 0
1979
1979
  }, t);
1980
- }), this._ownCalculation && (n.calcOnLoad ?? "auto") !== "none" && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), this._ownTransactions ? c.amend() : c.commit();
1980
+ }), this._ownCalculation && (t.calcOnLoad ?? "auto") !== "none" && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), this._ownTransactions ? a.amend() : a.commit();
1981
1981
  } catch (e) {
1982
- throw c.rollback(), e;
1982
+ throw a.rollback(), e;
1983
1983
  }
1984
1984
  this._initializing = !1;
1985
1985
  }
@@ -1987,7 +1987,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
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 Te().getDefaultTheme(), this._styles = t?.styles ?? new ie(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 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) => {
1991
1991
  n._emitter.notify("onProtectionChange");
1992
1992
  } });
1993
1993
  let n = this;
@@ -2057,7 +2057,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2057
2057
  }
2058
2058
  setView(e) {
2059
2059
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2060
- if (!e) throw new h(t("error.sheet.emptyView"));
2060
+ if (!e) throw new o(t("error.sheet.emptyView"));
2061
2061
  this._listenerWorkbookView?.();
2062
2062
  let n = this, r = -1;
2063
2063
  return this._listenerWorkbookView = e.addListeners({ onViewChange: (e) => {
@@ -2131,7 +2131,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2131
2131
  }
2132
2132
  setTheme(e) {
2133
2133
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2134
- if (!e) throw new h(t("error.workbook.notSetValue"));
2134
+ if (!e) throw new o(t("error.workbook.notSetValue"));
2135
2135
  let n = this._theme;
2136
2136
  return this._theme = e, this.getStyles().setTheme(e), this._emitter.notify("onThemeChange"), n;
2137
2137
  }
@@ -2142,19 +2142,19 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2142
2142
  let e = this._getSheetRef(this.getSelectedSheetIndex());
2143
2143
  return e ? e?.sheet : null;
2144
2144
  }
2145
- getSheet(e, n = N.Visibility.Visible) {
2145
+ getSheet(e, n = F.Visibility.Visible) {
2146
2146
  if (e === void 0) return this.getSelectedSheet();
2147
2147
  if (!e) throw Error(t("error.workbook.sheetNameNotProvided"));
2148
- let i = this._getSheetRef(e, n);
2149
- if (!i) throw new r(t("error.workbook.sheetNameNotFound", { sheetName: e }));
2150
- return i.sheet;
2148
+ let r = this._getSheetRef(e, n);
2149
+ if (!r) throw new f(t("error.workbook.sheetNameNotFound", { sheetName: e }));
2150
+ return r.sheet;
2151
2151
  }
2152
- getSheetAt(e, n = N.Visibility.Visible) {
2153
- let i = this._getSheetRef(e, n);
2154
- if (!i) throw new r(function(e) {
2152
+ getSheetAt(e, n = F.Visibility.Visible) {
2153
+ let r = this._getSheetRef(e, n);
2154
+ if (!r) throw new f(function(e) {
2155
2155
  return t("error.workbook.sheetIndexNotFound", { index: e });
2156
2156
  }(e));
2157
- return i.sheet;
2157
+ return r.sheet;
2158
2158
  }
2159
2159
  getSheets() {
2160
2160
  return this._sheets;
@@ -2162,22 +2162,22 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2162
2162
  addSheet(e) {
2163
2163
  return this.getSheets().add(e);
2164
2164
  }
2165
- _getSheets(e = N.Visibility.Visible) {
2165
+ _getSheets(e = F.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 = N.Visibility.Visible) {
2170
+ _getSheetRefs(e = F.Visibility.Visible) {
2171
2171
  let t = this._getState();
2172
- return t ? e === N.Visibility.Visible ? t.sheetRefsVisible : e === N.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === N.Visibility.VeryHidden ? t.sheetRefsAll : o.EmptyArray : [];
2172
+ return t ? e === F.Visibility.Visible ? t.sheetRefsVisible : e === F.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === F.Visibility.VeryHidden ? t.sheetRefsAll : h.EmptyArray : [];
2173
2173
  }
2174
- _getSheetRef(e, t = N.Visibility.Visible) {
2174
+ _getSheetRef(e, t = F.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 L ? 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 y ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2177
2177
  }
2178
2178
  _validateNewSheetName(e, n = !0) {
2179
2179
  if (e == null) return e;
2180
- if (on(e), n && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new h(t("error.workbook.nameTaken"));
2180
+ if (on(e), n && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new o(t("error.workbook.nameTaken"));
2181
2181
  return e.substring(0, 31);
2182
2182
  }
2183
2183
  findValidSheetName(e) {
@@ -2207,20 +2207,20 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2207
2207
  _isStructureProtected() {
2208
2208
  return !this._initializing && !this.getProtection().isStructureAllowed();
2209
2209
  }
2210
- _addSheetOptions(n) {
2210
+ _addSheetOptions(e) {
2211
2211
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2212
- if (!this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2213
- let r, i = null;
2214
- r = typeof n == "string" ? { name: n } : typeof n == "number" ? { index: n } : n, r = {
2215
- ...r,
2216
- description: r?.description ?? e("op.addSheet")
2212
+ if (!this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2213
+ let n, i = null;
2214
+ n = typeof e == "string" ? { name: e } : typeof e == "number" ? { index: e } : e, n = {
2215
+ ...n,
2216
+ description: n?.description ?? p("op.addSheet")
2217
2217
  };
2218
- let a = this.beginCommit(r);
2218
+ let a = this.beginCommit(n);
2219
2219
  try {
2220
- let e = r?.autoSelect ?? !1;
2221
- i = this._addSheet(!0, r.name, r.index ?? null);
2222
- let n = this.getView().getActiveSheetId();
2223
- if (e && this._recordActiveSheet(a, n, this._getSheetRef(i).id), a.commit({ description: t("op.addSheetNamed", { name: i.getName() }) }), !1 !== e) {
2220
+ let e = n?.autoSelect ?? !1;
2221
+ i = this._addSheet(!0, n.name, n.index ?? null);
2222
+ let r = this.getView().getActiveSheetId();
2223
+ if (e && this._recordActiveSheet(a, r, this._getSheetRef(i).id), a.commit({ description: t("op.addSheetNamed", { name: i.getName() }) }), !1 !== e) {
2224
2224
  let t = typeof e == "boolean" ? void 0 : e;
2225
2225
  i.select(t);
2226
2226
  }
@@ -2231,7 +2231,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2231
2231
  }
2232
2232
  _nextSheetName(e = null) {
2233
2233
  let n = e ? e.toLowerCase() : null, r = this._getState(), i = r.sheetsByLowerCaseName;
2234
- if (e && i.has(n)) throw new h(function(e) {
2234
+ if (e && i.has(n)) throw new o(function(e) {
2235
2235
  return t("error.workbook.nameDuplicate", { sheetName: e });
2236
2236
  }(e));
2237
2237
  n = (e = this._validateNewSheetName(e)) ? e.toLowerCase() : null;
@@ -2244,19 +2244,19 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2244
2244
  }
2245
2245
  _addSheet(e, n = null, r = null) {
2246
2246
  n = this._nextSheetName(n);
2247
- let i = this._getState(), a = this._createSheet(i.lastId, n, N.Visibility.Visible, r, void 0, null);
2248
- if (!a) throw new h(t("error.workbook.sheetNameBlank"));
2247
+ let i = this._getState(), a = this._createSheet(i.lastId, n, F.Visibility.Visible, r, void 0, null);
2248
+ if (!a) throw new o(t("error.workbook.sheetNameBlank"));
2249
2249
  return e && this._emitter.notify("onSheetsChange"), a;
2250
2250
  }
2251
2251
  _updateSheetRefStates(e) {
2252
2252
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2253
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2254
- let n = e, r = [], i = [], a = n.length;
2255
- for (let e = 0; e < a; e++) n[e].visibility === N.Visibility.Visible ? (r.push(n[e]), i.push(n[e])) : n[e].visibility === N.Visibility.Hidden && i.push(n[e]);
2253
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2254
+ let n = e, i = [], a = [], o = n.length;
2255
+ for (let e = 0; e < o; e++) n[e].visibility === F.Visibility.Visible ? (i.push(n[e]), a.push(n[e])) : n[e].visibility === F.Visibility.Hidden && a.push(n[e]);
2256
2256
  this._updateState({
2257
2257
  sheetRefsAll: n,
2258
- sheetRefsVisible: r,
2259
- sheetRefsVisibleAndHidden: i
2258
+ sheetRefsVisible: i,
2259
+ sheetRefsVisibleAndHidden: a
2260
2260
  });
2261
2261
  }
2262
2262
  _addSheetRef(e, n = null) {
@@ -2283,7 +2283,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2283
2283
  m._validateDeleteSheet(e);
2284
2284
  },
2285
2285
  onDelete(e) {
2286
- let n = m._getSheetRef(e, N.Visibility.VeryHidden);
2286
+ let n = m._getSheetRef(e, F.Visibility.VeryHidden);
2287
2287
  if (!n) return;
2288
2288
  let r = m._beginCommit({ description: t("op.deleteSheet", { name: n.name }) });
2289
2289
  try {
@@ -2369,22 +2369,22 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
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 === N.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
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));
2373
2373
  }
2374
2374
  _validateDeleteSheet(e) {
2375
2375
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2376
- if (!this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2376
+ if (!this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2377
2377
  let n = this._getSheetRef(e);
2378
- if (!n) throw new h(function(e) {
2378
+ if (!n) throw new o(function(e) {
2379
2379
  return t("error.workbook.deleteKey", { key: e });
2380
2380
  }(e));
2381
- let r = this._getState().sheetRefsVisible;
2382
- if (r.length === 1 && r[0].id === n.id) throw new h(t("error.workbook.sheetOne"));
2381
+ let i = this._getState().sheetRefsVisible;
2382
+ if (i.length === 1 && i[0].id === n.id) throw new o(t("error.workbook.sheetOne"));
2383
2383
  }
2384
2384
  _getOffsetForId(e, n) {
2385
2385
  let r = n.length;
2386
2386
  for (let t = 0; t < r; t++) if (n[t].id === e) return t;
2387
- throw new h(t("error.workbook.noVisibleRefs"));
2387
+ throw new o(t("error.workbook.noVisibleRefs"));
2388
2388
  }
2389
2389
  find(e) {
2390
2390
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
@@ -2396,7 +2396,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2396
2396
  ...e,
2397
2397
  disableWrap: !0
2398
2398
  };
2399
- let l, d = s.find(e), f = d.next(), p = !1;
2399
+ let l, u = s.find(e), f = u.next(), p = !1;
2400
2400
  if (e?.from) {
2401
2401
  let t = this._rangesAddressToCoords(e?.from);
2402
2402
  l = {
@@ -2404,20 +2404,20 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2404
2404
  rowIndex: t[0].rowStart
2405
2405
  };
2406
2406
  }
2407
- let m = u.createCellComparator(e?.axis, e?.reverse);
2407
+ let m = d.createCellComparator(e?.axis, e?.reverse);
2408
2408
  delete (e = { ...e }).from;
2409
2409
  let h = () => {
2410
2410
  if (!p && f.done && (c && o === a ? p = !0 : r ? (o++, o > n.length - 1 && (o = 0, c = !0)) : (o--, o < 0 && (o = n.length - 1, c = !0)), i && c && (p = !0), p || l || !c || o !== a || (p = !0), !p)) {
2411
- s = n[o], d = s.find(e);
2411
+ s = n[o], u = s.find(e);
2412
2412
  let t = f;
2413
- return f = d.next(), t;
2413
+ return f = u.next(), t;
2414
2414
  }
2415
2415
  if (!p && c && o === a && (f.done || !l || !f.done && m(f.value.getCoords(), l) >= 0) && (p = !0), p) {
2416
2416
  let e = f;
2417
- return f = we, e;
2417
+ return f = Me, e;
2418
2418
  }
2419
2419
  let t = f;
2420
- return f = d.next(), t;
2420
+ return f = u.next(), t;
2421
2421
  };
2422
2422
  return { next: () => {
2423
2423
  let e = h();
@@ -2425,29 +2425,29 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2425
2425
  return e;
2426
2426
  } };
2427
2427
  }
2428
- replace(n, r, i) {
2429
- let a = 0, o = null, s = typeof r == "function", c = i?.maxCount ?? 2 ** 53 - 1, l = !i?.maxCount, u = "", d = typeof r == "string" ? se(r) : null, f = i?.description ?? e("op.replace"), p = this._transactions.beginCommit({ description: f });
2428
+ replace(e, n, r) {
2429
+ let i = 0, a = null, o = typeof n == "function", s = r?.maxCount ?? 2 ** 53 - 1, c = !r?.maxCount, l = "", u = typeof n == "string" ? Pe(n) : null, d = r?.description ?? p("op.replace"), f = this._transactions.beginCommit({ description: d });
2430
2430
  try {
2431
- let f = null, m = null, h = n.next();
2432
- for (; !h.done && a < c;) {
2433
- let e = h.value, t = e.getSheet();
2434
- t !== f && (f = t, m !== null && m.apply(), m = f.getEntireRange().createSparseBuilder({
2435
- axis: i?.axis,
2431
+ let d = null, m = null, h = e.next();
2432
+ for (; !h.done && i < s;) {
2433
+ let t = h.value, s = t.getSheet();
2434
+ s !== d && (d = s, m !== null && m.apply(), m = d.getEntireRange().createSparseBuilder({
2435
+ axis: r?.axis,
2436
2436
  allowUnorderedWrites: !0
2437
2437
  }));
2438
- let c = s ? r(e) : r;
2439
- c !== void 0 && c !== e && (m.push(e, c), a++, o = e), h = n.next();
2438
+ let c = o ? n(t) : n;
2439
+ c !== void 0 && c !== t && (m.push(t, c), i++, a = t), h = e.next();
2440
2440
  }
2441
- m?.apply(), a === 1 && c === 1 && o && (u = o.getAddress()), a === 0 ? p.rollback() : p.commit({ description: i?.description ?? (l ? d === null ? e("op.replaceAll") : t("op.replaceAllWith", { value: d }) : u ? d === null ? t("op.replaceAt", { address: u }) : t("op.replaceAtWith", {
2442
- address: u,
2443
- value: d
2444
- }) : d === null ? e("op.replace") : t("op.replaceWith", { value: d })) });
2441
+ m?.apply(), i === 1 && s === 1 && a && (l = a.getAddress()), i === 0 ? f.rollback() : f.commit({ description: r?.description ?? (c ? u === null ? p("op.replaceAll") : t("op.replaceAllWith", { value: u }) : l ? u === null ? t("op.replaceAt", { address: l }) : t("op.replaceAtWith", {
2442
+ address: l,
2443
+ value: u
2444
+ }) : u === null ? p("op.replace") : t("op.replaceWith", { value: u })) });
2445
2445
  } catch (e) {
2446
- throw p.rollback(), e;
2446
+ throw f.rollback(), e;
2447
2447
  }
2448
2448
  return {
2449
- count: a,
2450
- last: o
2449
+ count: i,
2450
+ last: a
2451
2451
  };
2452
2452
  }
2453
2453
  _nextSheetIndex(e, t = this._getSheetRefs()) {
@@ -2470,72 +2470,72 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2470
2470
  }
2471
2471
  async _duplicateSheet(e) {
2472
2472
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2473
- if (!this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2474
- let n = this._getSheetRefs(), r = this.getSelectedSheetIndex(), i = null;
2473
+ if (!this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2474
+ let n = this._getSheetRefs(), i = this.getSelectedSheetIndex(), a = null;
2475
2475
  if (e) {
2476
- if (i = this._getSheetRef(e), !i) throw new h(X(i));
2477
- } else i = n[r];
2478
- if (!i) return null;
2479
- let a = i.sheet, o = this._strings.beginPersist(), s = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), l = null, u = this.beginCommit(t("op.duplicateNamed", { name: a.getName() }));
2476
+ if (a = this._getSheetRef(e), !a) throw new o(X(a));
2477
+ } else a = n[i];
2478
+ if (!a) return null;
2479
+ let s = a.sheet, c = this._strings.beginPersist(), l = this.getResources().beginPersist(), u = this.getStyles().beginPersist(), d = null, f = this.beginCommit(t("op.duplicateNamed", { name: s.getName() }));
2480
2480
  try {
2481
- let e = this._getState().refsByInstance.get(a), t = await a.toJSON(), i = n.length + 1, o = this.findValidSheetName(e.name), s = this._createSheet(i, o, e.visibility, r, void 0, t);
2482
- this._emitter.notify("onSheetsChange"), l = s, u.commit();
2481
+ let e = this._getState().refsByInstance.get(s), t = await s.toJSON(), r = n.length + 1, a = this.findValidSheetName(e.name), o = this._createSheet(r, a, e.visibility, i, void 0, t);
2482
+ this._emitter.notify("onSheetsChange"), d = o, f.commit();
2483
2483
  } catch (e) {
2484
- throw u.rollback(), e;
2484
+ throw f.rollback(), e;
2485
2485
  } finally {
2486
- c.endPersist(), s.endPersist(), o.endPersist();
2486
+ u.endPersist(), l.endPersist(), c.endPersist();
2487
2487
  }
2488
- return l;
2488
+ return d;
2489
2489
  }
2490
2490
  _createRange(e, n) {
2491
- let r = e ? { ...e } : null, i = r ? this._getSheetRef(r.scope, N.Visibility.VeryHidden) : null;
2491
+ let r = e ? { ...e } : null, i = r ? this._getSheetRef(r.scope, F.Visibility.VeryHidden) : null;
2492
2492
  if (!i) {
2493
2493
  let e = this.getSelectedSheet();
2494
2494
  return e ? (delete r?.scope, an(r, r ? {
2495
- scope: b,
2495
+ scope: T,
2496
2496
  ...e.getEntireRange().getCoords()
2497
2497
  } : null)) : void console.warn(t("error.workbook.noVisibleRefs"));
2498
2498
  }
2499
2499
  let a = i.sheet, o = null;
2500
- return n && (o = { getOptions: n }), new ln(e, A(a), this, o);
2500
+ return n && (o = { getOptions: n }), new ln(e, j(a), this, o);
2501
2501
  }
2502
2502
  _createRanges(e, t) {
2503
2503
  let n = this.getSelectedSheet(), r = null;
2504
- return t && (r = { getOptions: t }), new Q(e, A(n), this, r);
2504
+ return t && (r = { getOptions: t }), new Q(e, j(n), this, r);
2505
2505
  }
2506
2506
  getRange(e, n) {
2507
2507
  if (e === void 0) return this.getSelectedRange(n);
2508
2508
  try {
2509
2509
  let r = this._rangesAddressToCoords(e);
2510
- if (r.length !== 1) throw new h(t("error.address.singleRangeOnlyAlt"));
2510
+ if (r.length !== 1) throw new o(t("error.address.singleRangeOnlyAlt"));
2511
2511
  return this._createRange(r[0], n);
2512
2512
  } catch (t) {
2513
- throw t instanceof r ? new r(t.message) : new h(t.message ?? ye(e));
2513
+ throw t instanceof f ? new f(t.message) : new o(t.message ?? xe(e));
2514
2514
  }
2515
2515
  }
2516
2516
  getCell(e) {
2517
2517
  if (e === void 0) return this.getSelectedCell();
2518
2518
  let n = this.getRange(e);
2519
- if (n.size > 1) throw new h(t("error.address.singleCellOnly"));
2519
+ if (n.size > 1) throw new o(t("error.address.singleCellOnly"));
2520
2520
  return n.getCell();
2521
2521
  }
2522
2522
  getRanges(e, t) {
2523
2523
  let n = this._rangesAddressToCoords(e);
2524
- if (n.length === 0) throw new h(ye(e));
2524
+ if (n.length === 0) throw new o(xe(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, N.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2531
- a && n.push(new de(i, r, A(a), null));
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));
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, A(this.getSelectedSheet()), this, null);
2534
+ return n.length === 0 ? null : new Q(n, j(this.getSelectedSheet()), this, null);
2535
2535
  }
2536
2536
  getStats(e) {
2537
2537
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2538
- let n = this._getSheets(N.Visibility.VeryHidden), r = n.length;
2538
+ let n = this._getSheets(F.Visibility.VeryHidden), r = n.length;
2539
2539
  if (r === 1) return n[0].getStats(e);
2540
2540
  let i = Array(r);
2541
2541
  for (let t = 0; t < r; t++) i[t] = n[t].getStats(e);
@@ -2564,32 +2564,32 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2564
2564
  getSelectedCell() {
2565
2565
  return this.getSelectedSheet().getSelectedCell();
2566
2566
  }
2567
- _rangesAddressToCoords(e, n = !0, r = N.Visibility.Hidden) {
2568
- if (!e) throw new h(t("error.address.noAddress"));
2569
- let i = this.getSelectedSheet(), a = { ...i?.getEntireRange().getCoords() }, o = i?.getName();
2570
- if (o && (a.scope = o), typeof e == "string") {
2567
+ _rangesAddressToCoords(e, n = !0, r = F.Visibility.Hidden) {
2568
+ if (!e) throw new o(t("error.address.noAddress"));
2569
+ let i = this.getSelectedSheet(), a = { ...i?.getEntireRange().getCoords() }, s = i?.getName();
2570
+ if (s && (a.scope = s), 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 = Qe(e, a, $e, (e) => {
2577
+ let c = this, l = Je(e, a, ue, (e) => {
2578
2578
  if (!n) return null;
2579
2579
  if (typeof e == "string") {
2580
- let t = s.getNames().getByName(e)?.getRanges?.();
2580
+ let t = c.getNames().getByName(e)?.getRanges?.();
2581
2581
  if (t) return t.getCoords();
2582
2582
  }
2583
- throw new h(`Invalid sheet reference '${e}'.`);
2584
- }), l = c.length;
2585
- for (let e = 0; e < l; e++) this._validateCoords(c[e], r);
2586
- return c;
2583
+ throw new o(`Invalid sheet reference '${e}'.`);
2584
+ }), u = l.length;
2585
+ for (let e = 0; e < u; e++) this._validateCoords(l[e], r);
2586
+ return l;
2587
2587
  }
2588
- _validateCoords(e, n = N.Visibility.Visible, i = t("error.sheet.oobRange")) {
2588
+ _validateCoords(e, n = F.Visibility.Visible, r = t("error.sheet.oobRange")) {
2589
2589
  if (e === null) return;
2590
- let a = this.getSheet(e.scope, n).getEntireRange().getCoords();
2591
- if (!u.isRangeWithinRange(e, a)) throw new r(i);
2592
- if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new h(t("error.address.invalidRangeInverted"));
2590
+ let i = this.getSheet(e.scope, n).getEntireRange().getCoords();
2591
+ if (!d.isRangeWithinRange(e, i)) throw new f(r);
2592
+ if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new o(t("error.address.invalidRangeInverted"));
2593
2593
  }
2594
2594
  _updateSheetRef(e, t) {
2595
2595
  let n = this._getState(), r = [...n.sheetRefsAll];
@@ -2608,75 +2608,75 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2608
2608
  refsByInstance: u
2609
2609
  }), t;
2610
2610
  }
2611
- _setSheetName(n, r, i) {
2611
+ _setSheetName(e, n, i) {
2612
2612
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2613
- if (!this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2614
- let a = this._getSheetRef(n);
2615
- if (!a) throw new h(X(n));
2616
- if (r === a.name) return a.sheet;
2617
- if ((r = this._validateNewSheetName(r)) == null) throw new h(t("error.workbook.sheetNameNotProvided"));
2618
- let o = Object.freeze({
2613
+ if (!this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2614
+ let a = this._getSheetRef(e);
2615
+ if (!a) throw new o(X(e));
2616
+ if (n === a.name) return a.sheet;
2617
+ if ((n = this._validateNewSheetName(n)) == null) throw new o(t("error.workbook.sheetNameNotProvided"));
2618
+ let s = Object.freeze({
2619
2619
  ...a,
2620
- name: r
2621
- }), s = null, c = this.beginCommit(e("op.renameSheet"));
2620
+ name: n
2621
+ }), c = null, l = this.beginCommit(p("op.renameSheet"));
2622
2622
  try {
2623
- let e = this._updateSheetRef(a, o);
2623
+ let e = this._updateSheetRef(a, s);
2624
2624
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((e, t) => {
2625
2625
  a.id === t && e();
2626
- }), this._emitter.notify("onSheetsChange"), a.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), s = e.sheet, c.commit(i);
2626
+ }), this._emitter.notify("onSheetsChange"), a.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), c = e.sheet, l.commit(i);
2627
2627
  } catch (e) {
2628
- throw c.rollback(), e;
2628
+ throw l.rollback(), e;
2629
2629
  }
2630
- return s;
2630
+ return c;
2631
2631
  }
2632
- _setSheetVisibility(n, r = N.Visibility.Visible, i) {
2632
+ _setSheetVisibility(e, n = F.Visibility.Visible, i) {
2633
2633
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2634
- if (!this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2635
- let a = this._getSheetRef(n, N.Visibility.VeryHidden);
2634
+ if (!this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2635
+ let a = this._getSheetRef(e, F.Visibility.VeryHidden);
2636
2636
  if (!a) return null;
2637
- if (r === a.visibility) return;
2638
- let o = null, s = "";
2639
- r === N.Visibility.Visible ? s = e("op.unhideSheet") : r === N.Visibility.Hidden ? s = e("op.hideSheet") : r === N.Visibility.VeryHidden && (s = e("op.veryHideSheet"));
2640
- let c = this.beginCommit(s);
2637
+ if (n === a.visibility) return;
2638
+ let s = null, c = "";
2639
+ n === F.Visibility.Visible ? c = p("op.unhideSheet") : n === F.Visibility.Hidden ? c = p("op.hideSheet") : n === F.Visibility.VeryHidden && (c = p("op.veryHideSheet"));
2640
+ let l = this.beginCommit(c);
2641
2641
  try {
2642
2642
  let e = this._getState().sheetRefsVisible;
2643
- if (r !== N.Visibility.Visible && e.length === 1 && e[0].id === a.id) throw new h(t("error.workbook.sheetOne"));
2644
- let n = {
2643
+ if (n !== F.Visibility.Visible && e.length === 1 && e[0].id === a.id) throw new o(t("error.workbook.sheetOne"));
2644
+ let r = {
2645
2645
  ...a,
2646
- visibility: r
2647
- }, s = -1;
2648
- r !== N.Visibility.Visible && (s = this._getOffsetForId(a.id, e)), o = this._updateSheetRef(a, n).sheet, r !== N.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, a.id), this._adjustSheetNamesIfRequired(), c.commit(i);
2646
+ visibility: n
2647
+ }, c = -1;
2648
+ n !== F.Visibility.Visible && (c = this._getOffsetForId(a.id, e)), s = this._updateSheetRef(a, r).sheet, n !== F.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, a.id), this._adjustSheetNamesIfRequired(), l.commit(i);
2649
2649
  } catch (e) {
2650
- throw c.rollback(), e;
2650
+ throw l.rollback(), e;
2651
2651
  }
2652
2652
  return this._sheetOnVisibilityChange.forEach((e, t) => {
2653
2653
  a.id === t && e();
2654
- }), this._emitter.notify("onSheetsChange"), o;
2654
+ }), this._emitter.notify("onSheetsChange"), s;
2655
2655
  }
2656
- _moveSheet(e, n, r) {
2656
+ _moveSheet(e, n, i) {
2657
2657
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2658
- if (!this.getProtection().isStructureAllowed()) throw new f(t("error.workbook.protection"));
2659
- let i = null, a = this.beginCommit(t("op.moveSheetNamed", { name: e.name }));
2658
+ if (!this.getProtection().isStructureAllowed()) throw new r(t("error.workbook.protection"));
2659
+ let a = null, s = this.beginCommit(t("op.moveSheetNamed", { name: e.name }));
2660
2660
  try {
2661
- let t = this._getState(), o = t.sheetRefsVisible;
2662
- if (n < 0 || n > o.length - 1) throw new h(`Invalid to index: ${n}`);
2663
- let s = this.getView().getActiveSheetId(), c = t.sheetRefsAll, l = this._getOffsetForId(e.id, c), u = this._getOffsetForId(o[n].id, c);
2664
- if (l === u) return;
2665
- let d = c[l], f = [...c];
2666
- f.splice(l, 1), f.splice(u, 0, d), this._updateSheetRefStates(f), this._calculation._replaceSheetSpans?.(c.map((e) => e.sheet.getId()), f.map((e) => e.sheet.getId()), d.sheet.getId()), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2667
- t >= l && t <= u && e();
2668
- }), this._emitter.notify("onSheetsChange"), i = d.sheet, this._recordActiveSheet(a, s, this.getView().getActiveSheetId()), a.commit(r);
2661
+ let t = this._getState(), r = t.sheetRefsVisible;
2662
+ if (n < 0 || n > r.length - 1) throw new o(`Invalid to index: ${n}`);
2663
+ let c = this.getView().getActiveSheetId(), l = t.sheetRefsAll, u = this._getOffsetForId(e.id, l), d = this._getOffsetForId(r[n].id, l);
2664
+ if (u === d) return;
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
+ t >= u && t <= d && e();
2668
+ }), this._emitter.notify("onSheetsChange"), a = f.sheet, this._recordActiveSheet(s, c, this.getView().getActiveSheetId()), s.commit(i);
2669
2669
  } catch (e) {
2670
- throw a.rollback(), e;
2670
+ throw s.rollback(), e;
2671
2671
  }
2672
- return i;
2672
+ return a;
2673
2673
  }
2674
2674
  _setSelectedSheet(e) {
2675
2675
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2676
2676
  let n = this._getSheetRef(e);
2677
- if (!n) throw new h(X(e));
2677
+ if (!n) throw new o(X(e));
2678
2678
  let r = null;
2679
- return n.visibility !== N.Visibility.Visible && this._setSheetVisibility(n, N.Visibility.Visible), this._view.setActiveSheetId(n.id), r = n.sheet, r;
2679
+ return n.visibility !== F.Visibility.Visible && this._setSheetVisibility(n, F.Visibility.Visible), this._view.setActiveSheetId(n.id), r = n.sheet, r;
2680
2680
  }
2681
2681
  getProtection() {
2682
2682
  return this._protection;
@@ -2751,8 +2751,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
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 h(t("error.workbook.sheetOne"));
2755
- e.theme && (this._theme = new re(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 o(t("error.workbook.sheetOne"));
2755
+ e.theme && (this._theme = new C(e.theme), this._styles.setTheme(this._theme));
2756
2756
  let n = this._strings.beginPersist(), r = this._resources.beginPersist(), i = this._styles.beginPersist();
2757
2757
  try {
2758
2758
  n.fromJSON(e.strings), r.fromJSON(e.resources), i.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 oe {
2763
2763
  let r = a[n];
2764
2764
  r && typeof r.cacheId == "number" && t.push({
2765
2765
  cacheId: r.cacheId,
2766
- part: Xe.fromJSON(r.part, e)
2766
+ part: D.fromJSON(r.part, e)
2767
2767
  });
2768
2768
  }
2769
2769
  }
@@ -2773,8 +2773,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
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 || N.Visibility.Visible, r = e;
2777
- u = r, n === N.Visibility.Visible ? l === null && (l = r) : c !== null && c === r && (c = null);
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);
2778
2778
  try {
2779
2779
  this._createSheet(r, t.name, n, e, t.sheetId, t.sheet);
2780
2780
  } catch (e) {
@@ -2806,7 +2806,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2806
2806
  try {
2807
2807
  await this._calculation.getFunctions().add(t);
2808
2808
  } catch (e) {
2809
- d.error(e?.message ?? String(e), e);
2809
+ a.error(e?.message ?? String(e), e);
2810
2810
  }
2811
2811
  }
2812
2812
  }).catch(() => {});
@@ -2837,7 +2837,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2837
2837
  name: a.name,
2838
2838
  sheet: s
2839
2839
  };
2840
- a.sheetId !== void 0 && (c.sheetId = a.sheetId), a.visibility === N.Visibility.Visible ? u === null && (u = o) : c.visibility = a.visibility, a.id === t && (n = o), r.sheets.push(c);
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 && (n = o), r.sheets.push(c);
2841
2841
  }
2842
2842
  if (!i) {
2843
2843
  let e = l.toJSON();
@@ -2855,7 +2855,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2855
2855
  if (y.length > 0) {
2856
2856
  let e = c ? c.toResourceId.bind(c) : () => null, t = [];
2857
2857
  for (let n = 0; n < y.length; n++) {
2858
- let r = { cacheId: y[n].cacheId }, i = Xe.toJSON(y[n].part, e);
2858
+ let r = { cacheId: y[n].cacheId }, i = D.toJSON(y[n].part, e);
2859
2859
  i && (r.part = i), t.push(r);
2860
2860
  }
2861
2861
  t.length > 0 && (r.pivotCaches = t);
@@ -2896,13 +2896,13 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2896
2896
  if (this._closed) throw Error(t("error.workbook.modelClosed"));
2897
2897
  return this._beginCommit(typeof e == "string" ? { description: e } : e);
2898
2898
  }
2899
- doBatch(t, n) {
2900
- let r = this;
2901
- return n = typeof n == "string" ? { description: n } : {
2902
- description: e("op.updateWorkbook"),
2903
- ...n
2904
- }, this._transactions.doBatch(t, n, (e, t) => {
2905
- e.getDepth() === 0 && (r._lastTransactionUUID = e.getId());
2899
+ doBatch(e, t) {
2900
+ let n = this;
2901
+ return t = typeof t == "string" ? { description: t } : {
2902
+ description: p("op.updateWorkbook"),
2903
+ ...t
2904
+ }, this._transactions.doBatch(e, t, (e, t) => {
2905
+ e.getDepth() === 0 && (n._lastTransactionUUID = e.getId());
2906
2906
  });
2907
2907
  }
2908
2908
  _beginCommit(e) {
@@ -2914,13 +2914,13 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
2914
2914
  _getState() {
2915
2915
  return this._transactions.getState(this._id);
2916
2916
  }
2917
- _updateState(t, n = e("op.updateWorkbook"), r) {
2918
- if (!t) return;
2919
- let i = this._beginCommit(n);
2917
+ _updateState(e, t = p("op.updateWorkbook"), n) {
2918
+ if (!e) return;
2919
+ let r = this._beginCommit(t);
2920
2920
  try {
2921
- i.updateState(this._id, t), i.commit(r);
2921
+ r.updateState(this._id, e), r.commit(n);
2922
2922
  } catch (e) {
2923
- throw i.rollback(), e;
2923
+ throw r.rollback(), e;
2924
2924
  }
2925
2925
  }
2926
2926
  get options() {
@@ -3013,7 +3013,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3013
3013
  }
3014
3014
  }, $ = /* @__PURE__ */ new WeakMap(), mn = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", hn = new class {
3015
3015
  constructor() {
3016
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new x(this), this._registry = new pn(), this._defaultStore = new st(() => this.getWriteFormats(), () => this.getReadFormats());
3016
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new L(this), this._registry = new pn(), this._defaultStore = new st(() => this.getWriteFormats(), () => this.getReadFormats());
3017
3017
  }
3018
3018
  getBackingStore() {
3019
3019
  return this._backingStore ?? this._defaultStore;
@@ -3069,55 +3069,55 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3069
3069
  });
3070
3070
  }
3071
3071
  async _decodeBuffer(e, n = {}, r, i = null) {
3072
- let a = n.format, o = n.ext;
3073
- if (!a && !o) throw Error("Either format or file extension must be provided to determine read type.");
3074
- let s = (await this._registry.getReadFormats({
3072
+ let a = n.format, s = n.ext;
3073
+ if (!a && !s) throw Error("Either format or file extension must be provided to determine read type.");
3074
+ let c = (await this._registry.getReadFormats({
3075
3075
  search: a,
3076
- ext: o
3076
+ ext: s
3077
3077
  }))[0];
3078
- if (!s) throw new h(t("error.io.readFormatUnavailable", { format: a ?? o }));
3079
- let c = r?.typedCreateWorkbookOptions, l = c ? Object.keys(c).find((e) => e.toLowerCase() === s.key.toLowerCase()) : void 0, u = {
3078
+ if (!c) throw new o(t("error.io.readFormatUnavailable", { format: a ?? s }));
3079
+ let l = r?.typedCreateWorkbookOptions, u = l ? Object.keys(l).find((e) => e.toLowerCase() === c.key.toLowerCase()) : void 0, d = {
3080
3080
  ...r,
3081
- ...l === void 0 ? void 0 : c[l]
3081
+ ...u === void 0 ? void 0 : l[u]
3082
3082
  };
3083
- delete u.typedCreateWorkbookOptions, delete u.source, delete u.asCopy;
3084
- let d = i ?? new R(n.absolutePath ?? null, {
3083
+ delete d.typedCreateWorkbookOptions, delete d.source, delete d.asCopy;
3084
+ let f = i ?? new R(n.absolutePath ?? null, {
3085
3085
  name: n.name ?? null,
3086
- format: s.key,
3086
+ format: c.key,
3087
3087
  size: n.size ?? null,
3088
3088
  lastModified: n.lastModified ?? null,
3089
3089
  canWrite: n.canWrite ?? !1
3090
3090
  });
3091
3091
  i instanceof R && i.update({
3092
- format: s.key,
3092
+ format: c.key,
3093
3093
  size: n.size ?? null,
3094
3094
  lastModified: n.lastModified ?? null
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 = {
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 = {
3102
3102
  disableLoadAutoFit: !0,
3103
- ...u.createWorkbookOptions
3103
+ ...d.createWorkbookOptions
3104
3104
  });
3105
- let f = await this._decrypt(e, d, u);
3106
- if (f === null) return null;
3107
- e = f.bytes;
3108
- let p = u?.progress?.onStart?.bind(u.progress);
3109
- p && await Promise.resolve(p(d, n.size));
3105
+ let p = await this._decrypt(e, f, d);
3106
+ if (p === null) return null;
3107
+ e = p.bytes;
3108
+ let m = d?.progress?.onStart?.bind(d.progress);
3109
+ m && await Promise.resolve(m(f, n.size));
3110
3110
  try {
3111
- let t = await this._readArrayBuffer(e, s, u);
3112
- return f.password !== null && d.setPassword(f.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
3111
+ let t = await this._readArrayBuffer(e, c, d);
3112
+ return p.password !== null && f.setPassword(p.password), d?.progress?.onComplete?.(f), this._emitter.notify("onRead", {
3113
3113
  params: {
3114
3114
  workbook: t,
3115
- origin: d
3115
+ origin: f
3116
3116
  },
3117
3117
  transactional: !1
3118
3118
  }), t;
3119
3119
  } catch (e) {
3120
- throw u?.progress?.onError?.(e), u?.progress?.onComplete?.(null), e;
3120
+ throw d?.progress?.onError?.(e), d?.progress?.onComplete?.(null), e;
3121
3121
  }
3122
3122
  }
3123
3123
  async _decrypt(e, n, r) {
@@ -3130,7 +3130,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3130
3130
  try {
3131
3131
  return a = await i.decode(e, t), !0;
3132
3132
  } catch (e) {
3133
- if (!(e instanceof p)) throw e;
3133
+ if (!(e instanceof s)) throw e;
3134
3134
  return !1;
3135
3135
  }
3136
3136
  };
@@ -3140,24 +3140,24 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3140
3140
  };
3141
3141
  if (!r?.onPassword) {
3142
3142
  let e = n.getName();
3143
- throw new c(e ? t("error.io.passwordRequired", { name: e }) : t("error.io.passwordRequiredUnnamed"));
3143
+ throw new m(e ? t("error.io.passwordRequired", { name: e }) : t("error.io.passwordRequiredUnnamed"));
3144
3144
  }
3145
- let s = await Promise.resolve(r.onPassword({
3145
+ let c = await Promise.resolve(r.onPassword({
3146
3146
  origin: n,
3147
3147
  encryption: i.key,
3148
3148
  validate: o
3149
3149
  }));
3150
- if (s == null) return null;
3151
- if (a !== null || await o(s)) return {
3150
+ if (c == null) return null;
3151
+ if (a !== null || await o(c)) return {
3152
3152
  bytes: a,
3153
- password: s
3153
+ password: c
3154
3154
  };
3155
- throw new p(t("error.io.passwordIncorrect"));
3155
+ throw new s(t("error.io.passwordIncorrect"));
3156
3156
  }
3157
3157
  async writeArrayBuffer(e, n) {
3158
3158
  if (!n?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
3159
3159
  let r = (await this._registry.getWriteFormats({ search: n.format }))[0];
3160
- if (!r) throw new h(t("error.io.writeFormatUnavailable", { format: n.format }));
3160
+ if (!r) throw new o(t("error.io.writeFormatUnavailable", { format: n.format }));
3161
3161
  return this._writeArrayBuffer(e, r, n);
3162
3162
  }
3163
3163
  async write(e, t, n) {
@@ -3170,42 +3170,42 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3170
3170
  async _write(e, n, r, i) {
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 n == "string" ? this.getOrigin(n) : n, s = o.getFormat();
3174
- if ((i?.format || s) && (a = (await this._registry.getWriteFormats({ search: i?.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 h(t("error.io.writeFormatUnresolved"));
3175
- let l = o.getExtension();
3176
- if (i?.format && l && o.getPath() && o.canWrite() && !a.exts.includes(l)) {
3173
+ let a, s = typeof n == "string" ? this.getOrigin(n) : n, c = s.getFormat();
3174
+ if ((i?.format || c) && (a = (await this._registry.getWriteFormats({ search: i?.format ?? c ?? void 0 }))[0]), a || s.getPath() && s.canWrite() && s.getExtension() || (a = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !a) throw new o(t("error.io.writeFormatUnresolved"));
3175
+ let l = s.getExtension();
3176
+ if (i?.format && l && s.getPath() && s.canWrite() && !a.exts.includes(l)) {
3177
3177
  let e = (await this._registry.getWriteFormats({ ext: l }))[0];
3178
3178
  if (e && e.key !== a.key) {
3179
- let e = o.getPath().split(/[/\\]/).pop();
3180
- throw new h(t("error.io.writeFormatMismatch", {
3179
+ let e = s.getPath().split(/[/\\]/).pop();
3180
+ throw new o(t("error.io.writeFormatMismatch", {
3181
3181
  format: i.format,
3182
3182
  file: e
3183
3183
  }));
3184
3184
  }
3185
3185
  }
3186
3186
  if (typeof n == "string") {
3187
- let e = o.getPath();
3188
- o = new R(k(e) ? e : `${e}.${a.exts[0]}`, { format: a.key });
3187
+ let e = s.getPath();
3188
+ s = new R(b(e) ? e : `${e}.${a.exts[0]}`, { format: a.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 = i?.password === void 0 ? f ?? (p ? void 0 : null) : i.password, g = null;
3191
- if (m === void 0) {
3190
+ let u = s.getEncryption(), d = e.getOrigin?.(), f = (s instanceof R ? s.getPassword() : null) ?? (d instanceof R ? d.getPassword() : null), p = s.isEncrypted() || (d?.isEncrypted() ?? !1), h = i?.password === void 0 ? f ?? (p ? void 0 : null) : i.password, g = null;
3191
+ if (h === void 0) {
3192
3192
  if (p) {
3193
- let e = o.getName();
3194
- throw new c(e ? t("error.io.passwordRequiredSave", { name: e }) : t("error.io.passwordRequiredSaveUnnamed"));
3193
+ let e = s.getName();
3194
+ throw new m(e ? t("error.io.passwordRequiredSave", { name: e }) : t("error.io.passwordRequiredSaveUnnamed"));
3195
3195
  }
3196
- } else if (m !== null && (g = await this._registry.getEncryption(u), !g)) throw new h(t("error.io.encryptionUnavailable"));
3197
- let _ = `${o.getName() ?? t("workbook.defaultName")}.${a.exts[0]}`, v = i?.progress, y = !o.getPath() || !o.canWrite() || !!i?.prompt, b = !1, x = this, S = null, C = [], w = {
3196
+ } else if (h !== null && (g = await this._registry.getEncryption(u), !g)) throw new o(t("error.io.encryptionUnavailable"));
3197
+ let _ = `${s.getName() ?? t("workbook.defaultName")}.${a.exts[0]}`, v = i?.progress, y = !s.getPath() || !s.canWrite() || !!i?.prompt, x = !1, S = this, C = null, w = [], T = {
3198
3198
  workbook: e,
3199
3199
  format: a,
3200
- origin: o,
3200
+ origin: s,
3201
3201
  suggestedName: _,
3202
3202
  prompt: i?.prompt,
3203
3203
  async encode(t, n) {
3204
- let s = n ?? o;
3204
+ let o = n ?? s;
3205
3205
  await (async (e) => {
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] ?? a : a, l = [], u = ((e, t) => ({
3206
+ x || (x = !0, v?.onStart && await Promise.resolve(v.onStart(e)));
3207
+ })(o), C = e.getTransactions?.()?.getCurrentCommit() ?? C;
3208
+ let c = t ? (await S._registry.getWriteFormats({ search: t }))[0] ?? a : a, 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,53 +3216,53 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3216
3216
  context: r
3217
3217
  }), e?.onWarning?.(n, r);
3218
3218
  }
3219
- }))(v, l), d = await x._writeArrayBuffer(e, c, {
3219
+ }))(v, l), d = await S._writeArrayBuffer(e, c, {
3220
3220
  ...i,
3221
3221
  progress: u
3222
- }), f = $.get(s);
3222
+ }), f = $.get(o);
3223
3223
  if (l.some((e) => !f?.has(e.message)) && i?.onWarnings) {
3224
3224
  let t = await Promise.resolve(i.onWarnings({
3225
3225
  workbook: e,
3226
- origin: s,
3226
+ origin: o,
3227
3227
  warnings: l,
3228
3228
  save: r,
3229
3229
  canCancel: !y
3230
3230
  }));
3231
3231
  if (!y && !1 === t) return null;
3232
3232
  }
3233
- return C = l, g ? g.encode(d, m) : d;
3233
+ return w = l, g ? g.encode(d, h) : d;
3234
3234
  }
3235
- }, T = null;
3235
+ }, E = 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 (T = await t.write(w), T) {
3240
- if (m !== void 0 && T instanceof R && (T.setPassword(m), T.update({ encryption: g ? g.key : null })), C.length) {
3241
- let e = $.get(T) ?? /* @__PURE__ */ new Set();
3242
- for (let t of C) e.add(t.message);
3243
- $.set(T, e);
3239
+ if (E = await t.write(T), E) {
3240
+ if (h !== void 0 && E instanceof R && (E.setPassword(h), E.update({ encryption: g ? g.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);
3244
3244
  }
3245
- r && T !== e.getOrigin() && rt(e.getOrigin())?.setOrigin(T);
3246
- let t = S ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3245
+ r && E !== e.getOrigin() && rt(e.getOrigin())?.setOrigin(E);
3246
+ let t = C ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3247
3247
  this._emitter.notify("onWrite", {
3248
3248
  params: {
3249
3249
  workbook: e,
3250
- origin: T,
3250
+ origin: E,
3251
3251
  commitId: t?.getId() ?? null,
3252
3252
  save: r
3253
3253
  },
3254
3254
  transactional: !1
3255
3255
  });
3256
3256
  }
3257
- v?.onComplete && await Promise.resolve(v.onComplete(T));
3257
+ v?.onComplete && await Promise.resolve(v.onComplete(E));
3258
3258
  } catch (e) {
3259
3259
  let n = e instanceof Error ? e : Error(String(e));
3260
- throw v?.onError && await Promise.resolve(v.onError(n)), v?.onComplete && await Promise.resolve(v.onComplete(null)), n instanceof h ? n : Error(t("error.io.writeFailed", { reason: n.message }), { cause: e });
3260
+ throw v?.onError && await Promise.resolve(v.onError(n)), v?.onComplete && await Promise.resolve(v.onComplete(null)), n instanceof o ? n : Error(t("error.io.writeFailed", { reason: n.message }), { cause: e });
3261
3261
  }
3262
- return T;
3262
+ return E;
3263
3263
  }
3264
3264
  _stripExtension(e) {
3265
- let t = k(e);
3265
+ let t = b(e);
3266
3266
  return t ? e.slice(0, e.length - t.length - 1) : e;
3267
3267
  }
3268
3268
  _baseName(e) {
@@ -3288,7 +3288,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends oe {
3288
3288
  try {
3289
3289
  i = await a(e, r);
3290
3290
  } catch (e) {
3291
- throw e instanceof h ? e : new h(t("error.io.readFailed", {
3291
+ throw e instanceof o ? e : new o(t("error.io.readFailed", {
3292
3292
  format: n.description ?? n.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 oe {
3322
3322
  rtTriangle: "rtTriangle",
3323
3323
  Rect: "rect"
3324
3324
  }, sn ||= {};
3325
- var gn = class extends We {
3325
+ var gn = class extends Ye {
3326
3326
  constructor(e) {
3327
3327
  super(e);
3328
3328
  }
@@ -3335,8 +3335,8 @@ var gn = class extends We {
3335
3335
  colEnd: (e?.size?.width ?? 5) - 1,
3336
3336
  rowEnd: (e?.size?.height ?? 5) - 1
3337
3337
  },
3338
- getRanges: (e) => new w(null)
3338
+ getRanges: (e) => new Re(null)
3339
3339
  }, super._initializeOptions(e);
3340
3340
  }
3341
- }, _n = "0.8.0-beta.2";
3341
+ }, _n = "0.8.0-beta.3";
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 };