@sheetxl/studio-vanilla 0.7.28-beta.3 → 0.8.0-beta.1

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 (339) hide show
  1. package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +7 -0
  2. package/browser/cjs/{CN8lXPB3rJ4Ux6jN.cjs → B19QM3SGmPKKwD_o.cjs} +1 -1
  3. package/browser/cjs/{BYp7-QW_AGEONvMr.cjs → B5YBx0GqLor3i0O1.cjs} +1 -1
  4. package/browser/cjs/{Eja0Zsmdah-At3rJ.cjs → B9EI7wviSkHS9ZkH.cjs} +1 -1
  5. package/browser/cjs/BC2gCQkR1iykfAuC.cjs +1 -0
  6. package/browser/cjs/{Cf902jiI4KmAo0xm.cjs → BEJFcqVMDMKOvs11.cjs} +1 -1
  7. package/browser/cjs/{Bf__CHuG3Xml-c51.cjs → BEVqcFGFU6Ri9y8T.cjs} +2 -2
  8. package/browser/cjs/{CwBld2h5K_-uk804.cjs → BEzaum_kgG4yAOx0.cjs} +1 -1
  9. package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +1 -0
  10. package/browser/cjs/{BOLM1QOvxUKhYbK5.cjs → BIQZDBQfv3Qm5iC8.cjs} +2 -2
  11. package/browser/cjs/BSCgCfORdZz1Ii5S.cjs +2 -0
  12. package/browser/cjs/{QH2fF4MqkcvdkNjz.cjs → BZr-IqNS1skh1hr6.cjs} +1 -1
  13. package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +3 -0
  14. package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +1 -0
  15. package/browser/cjs/{udZZuwSKdGYCjFsn.cjs → BziOCn_XEGT4ynN5.cjs} +1 -1
  16. package/browser/cjs/C-HOJozu5NgCil1q.cjs +1 -0
  17. package/browser/cjs/{hI9m9CzcSN-spUI2.cjs → C2oTW2DjZypuqq7x.cjs} +1 -1
  18. package/browser/cjs/{DOkSIS6STTVNDKfk.cjs → C5rQELB0TUeXY6VM.cjs} +1 -1
  19. package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +33 -0
  20. package/browser/cjs/{BHgdQUCqHS6ORa7c.cjs → CPgCih_KEqnUZ9Rv.cjs} +1 -1
  21. package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +5 -0
  22. package/browser/cjs/{Y0B5_Kqc0UL2taRO.cjs → CcneNtiqtKppCa-p.cjs} +2 -2
  23. package/browser/cjs/Ci8Uu7_b4lwwRLAD2.cjs +1 -0
  24. package/browser/cjs/{KzrnzN7NeOPdB-Ic.cjs → Cm21F18ga8TluA9h.cjs} +1 -1
  25. package/browser/cjs/{DP0yIsjVWme5C-UE.cjs → CojEXZgX08waZOoq.cjs} +1 -1
  26. package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +88 -0
  27. package/browser/cjs/{CLb55xtEE2qOnXPJ2.cjs → CvV18ZJgssoHMkdf2.cjs} +1 -1
  28. package/browser/cjs/{BC9dJX0j0S8cLlfd.cjs → Cy-4IMt-AbR-ifP3.cjs} +1 -1
  29. package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +7 -0
  30. package/browser/cjs/CzgwTfy2072Dmt5u.cjs +1 -0
  31. package/browser/cjs/{CJGPlP_eqUiNvS8J2.cjs → D19RglhKiroWfpQn2.cjs} +1 -1
  32. package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +1 -0
  33. package/browser/cjs/DH3WXPfGHwWJW0nH.cjs +1 -0
  34. package/browser/cjs/DNy-UU3NKNqQQngF.cjs +1 -0
  35. package/browser/cjs/{COpCKLHQ5jF_IoiS2.cjs → DPjEO7dwhCFd8DHR2.cjs} +1 -1
  36. package/browser/cjs/{CAEF_wXnxI6o5BkS.cjs → DfMJOaJ0GcUiSn4Q.cjs} +1 -1
  37. package/browser/cjs/{DCoIIJyPtSyIsTJb.cjs → DiZDRPIgbO3sQ8Vb.cjs} +1 -1
  38. package/browser/cjs/{D2KFRZ75pzopfyVC.cjs → DsIHLUKUrSrYhFHl.cjs} +1 -1
  39. package/browser/cjs/{BDSt3etlKFP344pX2.cjs → DvSvfeo9V0Abfd3q2.cjs} +1 -1
  40. package/browser/cjs/{BhZ21zg_gpygQ79x2.cjs → DxQkFYAFNZubVdn22.cjs} +1 -1
  41. package/browser/cjs/{CctPhNbQyX8s8ExI.cjs → E-IqDztfMb_xdszH.cjs} +1 -1
  42. package/browser/cjs/{BHpypCDUD5cP3vR92.cjs → ElcoSB--cCpS6i7R2.cjs} +1 -1
  43. package/browser/cjs/KNCocKN9uPR0tvUS.cjs +1 -0
  44. package/browser/cjs/{DuLz-mXv6patMuVn2.cjs → Kr8f1inOTt-MICaP2.cjs} +1 -1
  45. package/browser/cjs/{DMJpPocVk36TEmfa.cjs → PM3PrEWG3WHKxaDx.cjs} +1 -1
  46. package/browser/cjs/{DtgmpiVT0_CaM-eU2.cjs → YG320hBA20Dl3HoU2.cjs} +1 -1
  47. package/browser/cjs/{Dl_WSCZ-dmkNHosq.cjs → _H5j4dU7HOBYTawU.cjs} +1 -1
  48. package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +1 -0
  49. package/browser/cjs/{1KM7qHlz__nQ218X2.cjs → aYuNpndpwcZG5eik2.cjs} +1 -1
  50. package/browser/cjs/{BzvKaJw-3G3FMhao2.cjs → bGMaev70Zd_NXqLM2.cjs} +1 -1
  51. package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +1 -0
  52. package/browser/cjs/{BCax8eUosvZxqJum2.cjs → hzUo76TXMOBqsI3U2.cjs} +1 -1
  53. package/browser/cjs/i2VboqjlOcozI9MQ.cjs +12 -0
  54. package/browser/cjs/index.cjs +2 -2
  55. package/browser/cjs/xBcvszV6x7ys-m532.cjs +1 -0
  56. package/browser/esm/{CecKVsBMvvKuk2Og.mjs → -vgNEEXiEad4bltZ.mjs} +4467 -3814
  57. package/browser/esm/{BIboUJ6YhTe0O5Ep.mjs → 1guzFZp1LHz_FwfL.mjs} +1 -1
  58. package/browser/esm/{C39fSQO6blxFky052.mjs → 3y_bCend8tkaewDG2.mjs} +7 -7
  59. package/browser/esm/{D7-Zv2k1IJkmQoxc.mjs → 47Yv4X226-93If7L.mjs} +1 -1
  60. package/browser/esm/{Ci7qcrvyeBaD36sR.mjs → 7rixDGGrR72lXkMV.mjs} +5 -5
  61. package/{cdn/assets/BM3Fxh1DBzKRDnJ-.js → browser/esm/8V-VceXEjpADM8qK2.mjs} +1 -1
  62. package/browser/esm/{DX0xvH5nQ8MjqsA02.mjs → 8f9hCbpXTTYEgG312.mjs} +2 -2
  63. package/browser/esm/{DqfIf41HljTIhC84.mjs → 9_bymSfTn_rR_v6W.mjs} +5 -5
  64. package/{cdn/assets/Cwee8HXWwJj0ASk32.js → browser/esm/At60x9FEPePwPP_J.mjs} +7589 -6421
  65. package/browser/esm/{CsK0x9jgM8z_DOl1.mjs → B0HA_dHcr0kKfudQ.mjs} +43 -43
  66. package/browser/esm/{CtZ4wSjG6QUWs7Nn.mjs → B1NoGosH2YQh01g7.mjs} +6 -6
  67. package/browser/esm/{rnntZ_PYlojxr5c4.mjs → B4h6iO7hQ9lCR7kj.mjs} +1828 -1445
  68. package/browser/esm/{BzilGTs3oFGxJ5uB.mjs → B4iT_CduJeJunwBc.mjs} +2 -2
  69. package/browser/esm/{CqSxZiLos0nQa69t2.mjs → B4vYIE3kSPTxCgpf2.mjs} +5 -5
  70. package/{cdn/assets/BG-wTTfaCHaJMI5b.js → browser/esm/B5ZqqASTcBEV5L9K2.mjs} +1 -1
  71. package/browser/esm/{MZKwwgG9APikaCAg.mjs → BBtOlJMVlsWorNJH.mjs} +184 -184
  72. package/browser/esm/{Bpp8p7LJo9K-1Tm-.mjs → BCZjYGV8AqIZghBH.mjs} +1 -1
  73. package/browser/esm/{sIWoD1UYd1XgTrIs2.mjs → BCkXtOM3yKocv7L-2.mjs} +1 -1
  74. package/{cdn/assets/DHd5k_mCX2iTwwRi.js → browser/esm/BD7RxHQgrqy_4tb5.mjs} +2 -2
  75. package/{cdn/assets/Bk-F9XzxhuyAOQqK2.js → browser/esm/BDkVAo0CDCTE04ZJ2.mjs} +1 -1
  76. package/browser/esm/{CdV0VXnaW6UyTd8E.mjs → BHBJtVTiQByD_y9j.mjs} +1 -1
  77. package/{cdn/assets/BMlDCj6kw-JTuDJ9.js → browser/esm/BHmYoIIbNW3GdcqV2.mjs} +1 -1
  78. package/{cdn/assets/Bk8tTxRXYv1v5QpX.js → browser/esm/BLcn1kGRsjURZSzk.mjs} +2 -2
  79. package/{cdn/assets/YGKMD1YfDLoo18Sy2.js → browser/esm/BMRav2VAqEzDSp3r2.mjs} +1 -1
  80. package/browser/esm/{HQv1oLV3ax-NKXZG.mjs → BOl4FzJRD7MplCU72.mjs} +1 -1
  81. package/browser/esm/{Bk13V_C0eSaqMClU.mjs → BPv6Pw1hW-sV5Fya.mjs} +1 -1
  82. package/browser/esm/{nBRFIzaPeMPPvIMQ2.mjs → BQDXkeSabbxB5DUB2.mjs} +6 -6
  83. package/browser/esm/{DjwllBVpUWlaltMT.mjs → BUCKq_2lHPd1ndvw.mjs} +6 -6
  84. package/browser/esm/{DUpHK7eGlzF6E3h5.mjs → BVRzmIk5PujkT_Ap.mjs} +12 -8
  85. package/{cdn/assets/DJzMm5FQXuMWHNom2.js → browser/esm/BVjXdv_wkL1x_8ZJ2.mjs} +1 -1
  86. package/browser/esm/{BT1lb0BHqaMUHJEH.mjs → BX4f6i2WMBMKFVCq.mjs} +4 -4
  87. package/browser/esm/{De-RIk_tQ6xW8NH2.mjs → BZsx0QHg1RZlM9ZN.mjs} +1 -1
  88. package/browser/esm/{BbgnnZj965cf_RAV2.mjs → BceIETi6JJRW6Ss62.mjs} +7 -7
  89. package/browser/esm/{BKX_mnqOl4t0M7Q-.mjs → Be4QC65cR8N84rTn.mjs} +1 -1
  90. package/browser/esm/{BamGz0uoayfOfFJD.mjs → BhxX7CZWSOlV2Dsz.mjs} +7 -7
  91. package/browser/esm/{DZyZNxEMnIWr2n8S.mjs → BhzLZRz2N8RxjQ_U.mjs} +3 -3
  92. package/browser/esm/{swjGzqq7IK8YnHrV.mjs → BjTf3XA9Swj0ngpH.mjs} +2 -2
  93. package/browser/esm/{Sm94kpOe8UUYLpaZ.mjs → BkSb_vyWe-AhyEDa.mjs} +3 -3
  94. package/browser/esm/{CC52ynv81P-LwXRT.mjs → Bl6bX86tSq8hfyb2.mjs} +6 -6
  95. package/browser/esm/{yFD3mg0KbvkE3s1Y2.mjs → Blc1T4zLkp8bRC_n2.mjs} +7 -7
  96. package/browser/esm/{CWQXDC8Qk5PH757v.mjs → Bp9qFBIcpIGXvMgo.mjs} +13 -13
  97. package/{cdn/assets/CxJliRXAfjf-8FJL.js → browser/esm/BqTFwWLbXXJ0Fu-X2.mjs} +1 -1
  98. package/browser/esm/{yqwkS9EO5146-Xhf2.mjs → BqwvP0318zI2izeL2.mjs} +9 -9
  99. package/{cdn/assets/CUj7kwIeQGAqyb6V.js → browser/esm/Bv_96nwOEMHN9Sa02.mjs} +1 -1
  100. package/browser/esm/{uk2_KQhVX77MWa7A2.mjs → BykiUmcpDgSRNQI12.mjs} +1 -1
  101. package/browser/esm/{Bpypf56n7jOOW7Ys.mjs → C0rS1uBqfsj-gPR8.mjs} +7 -7
  102. package/{cdn/assets/Nj1DgowT0KN0un7b.js → browser/esm/C1ZePT2B182vSnxW2.mjs} +1 -1
  103. package/browser/esm/{CI92jUOrJIKUlfGx2.mjs → C6CK_4GD9IpxKglV2.mjs} +1436 -1398
  104. package/browser/esm/{BEF8kcbXgMjyCP4C2.mjs → CAPgMrAKg07EREFD.mjs} +1 -1
  105. package/browser/esm/{Cjq-G2Seyww6IMSH.mjs → CEN8dYSpN2oew8HH.mjs} +1 -1
  106. package/{cdn/assets/BG8zQEmkmTTw8LXE.js → browser/esm/CG5v2hAwGR5Ptufn.mjs} +1 -1
  107. package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +87 -0
  108. package/browser/esm/{CX0QhwSYuHoImWlY2.mjs → CGqvy5LwQ4z9J2oD2.mjs} +1 -1
  109. package/{cdn/assets/Dt8IOrB4ifUVtTff.js → browser/esm/CGyydD3tRb0ik50l2.mjs} +1 -1
  110. package/browser/esm/{DbGc-QtQMWI-VyUe.mjs → CH0of3GZTzHviuQV.mjs} +1 -1
  111. package/browser/esm/{CI8YyVegXUBlHR61.mjs → CJPemkFUzhcAD_qR.mjs} +1 -1
  112. package/browser/esm/{DgGF1ZaI3ti0c_Nz.mjs → COA_SZY2x8q6t4BD.mjs} +1 -1
  113. package/browser/esm/{jvvKubD9MdvZCawH2.mjs → CPUlpDM6aAzZzCat2.mjs} +11 -11
  114. package/{cdn/assets/DAN4gSLpoicGd0oX2.js → browser/esm/CQM87ZBN7Yzn4Yxr.mjs} +3 -3
  115. package/browser/esm/{Bynpw8CnO-1JkFdZ2.mjs → CR3jgkduTLczbMjH2.mjs} +1 -1
  116. package/browser/esm/{BV1A7fanbtryQZdr.mjs → CU1d8OvDv5TU6fSd.mjs} +254 -236
  117. package/browser/esm/{CEWWFcwu4AyqL0cQ.mjs → CY1zykikO58_ADk8.mjs} +250 -247
  118. package/browser/esm/{Bxt5fHMZXudQ1QHA.mjs → CZWIS7FuqNjbheSw.mjs} +6 -6
  119. package/browser/esm/Cb-FUOYcyRSkHG6u2.mjs +238 -0
  120. package/{cdn/assets/DNXCAcVGHeeoKPcx.js → browser/esm/Cbw0JeJURvQyxIoa.mjs} +1 -1
  121. package/browser/esm/{l9SSIWXeR5tPN95-.mjs → Cc5IufffX4N-8QpE.mjs} +3 -3
  122. package/browser/esm/{CEgIZKMC4XoMmPp5.mjs → Cd8HXAJlflkkTXxc.mjs} +3 -3
  123. package/browser/esm/{BC9RLqAWMPRx_1rS.mjs → CdMv3f8Gyxh8q2RR2.mjs} +1 -1
  124. package/browser/esm/{B3CqIagnCvfOrLBT.mjs → CfuhUkrvOq11d9FR.mjs} +7 -7
  125. package/{cdn/assets/y07oKUx2vGjEEZ0w2.js → browser/esm/CfvrjQGuf7vXiQCB.mjs} +1 -1
  126. package/browser/esm/{UOfj2s5X9yjL1iLF2.mjs → Ckl3FLCOeqw7yhkP2.mjs} +8 -8
  127. package/{cdn/assets/C_Kd0CPQvZsJLD6b.js → browser/esm/Clfp7SznkOrJoQvL.mjs} +1 -1
  128. package/browser/esm/{53p_EWlOxGgrMq-q.mjs → CpjX81WsWJbXMUoT.mjs} +908 -870
  129. package/browser/esm/{DwEiTFl_RN5oQzfh.mjs → CsufM5aF6VTLKDWM.mjs} +7 -7
  130. package/browser/esm/{5XtgjihhVCzNqyYJ2.mjs → CtXoSHbCUKMY-tSJ.mjs} +1 -1
  131. package/browser/esm/{CNZeWICVX0x6E3-Z.mjs → D3G3tI3DVCUF3Gdk.mjs} +1 -1
  132. package/browser/esm/{Clu5SMZriAkKa_np2.mjs → D4VqLbEWag8lTWzC2.mjs} +13 -13
  133. package/browser/esm/{2dJqxS99uENpvAC92.mjs → D6SKy2BtcWkhfiA02.mjs} +1 -1
  134. package/{cdn/assets/BbRZ0cO4t2haGX-o.js → browser/esm/D9-wpGVbTS9rRpxx.mjs} +1 -1
  135. package/{cdn/assets/DSY8maNeFb51KgKe.js → browser/esm/DBL3Qp5jyPrFg7KI2.mjs} +1 -1
  136. package/{cdn/assets/SNsjWQUbxOQzdnCT.js → browser/esm/DDOO4tcrO4OfMUDe.mjs} +1 -1
  137. package/browser/esm/DDUYQ8FPeh1TJU24.mjs +538 -0
  138. package/browser/esm/{BDHrIbkTx7Ii0RYb.mjs → DFdU1DsC1lXOrejZ.mjs} +950 -945
  139. package/browser/esm/{Dcbf_tge-hZbUfUD.mjs → DMLwXmjo28k_iNEU.mjs} +1120 -1052
  140. package/{cdn/assets/BHmeRWtpqOMknkon.js → browser/esm/DMX-ZlC_ljcf7oUN.mjs} +1 -1
  141. package/{cdn/assets/CtaapT_7WuEvy48w2.js → browser/esm/DQ-0yyFAwoWtxmhV2.mjs} +1 -1
  142. package/{cdn/assets/BmZX5BqczMfR2VlT.js → browser/esm/DQ4o4dG7gWbL1X8F2.mjs} +1 -1
  143. package/{cdn/assets/DDg-fxiIqpuutuyu.js → browser/esm/DRc_Wi5c7WdKHTVN2.mjs} +1 -1
  144. package/{cdn/assets/DyPUmQ-x13kFTQyg.js → browser/esm/DTaVECXVrgvC48BE.mjs} +3 -3
  145. package/browser/esm/{CKc-IOHYDEuo2FhB.mjs → DVJd6McdAG5udItH.mjs} +5 -5
  146. package/browser/esm/{IMAnmKax7yp8adEP2.mjs → DVQNQmjI2PKkwiOw2.mjs} +15 -15
  147. package/browser/esm/{CCvvNbrMzlFHlAbr2.mjs → DVZ_UnchuMRveDG32.mjs} +12 -4
  148. package/{cdn/assets/DR4uNNkaArYCuvNg.js → browser/esm/DW72HwfnJtQxzoGa.mjs} +2 -2
  149. package/browser/esm/{MJIl3u3WexRfuRxx.mjs → DXWmgQSeh0_HDxZj.mjs} +4 -4
  150. package/{cdn/assets/DT8AGfoENVVMPsi3.js → browser/esm/DZbR5R1fNikjgqYb.mjs} +1 -1
  151. package/{cdn/assets/DhnxpW56CJ43gVOI2.js → browser/esm/D_t53-8k73CNpV-p.mjs} +72 -46
  152. package/browser/esm/{B1AbnDun66mq_S2f.mjs → D_zNx76HGunFi7xJ.mjs} +12 -12
  153. package/browser/esm/{R3YBWWwMJAzbuwie2.mjs → Dc0BDcQUGy_WIVFa.mjs} +1 -1
  154. package/browser/esm/{CSlBZF1ezptA1LSS2.mjs → DfRGH6mEtIVDWEYN2.mjs} +1 -1
  155. package/{cdn/assets/B5G5aOCiy3kn0ADy.js → browser/esm/Dg5wjQp0fArKXlM3.mjs} +2 -2
  156. package/{cdn/assets/4Z5QgDDHi93cqy332.js → browser/esm/DnuaqN0xfgqzl8qG.mjs} +684 -622
  157. package/browser/esm/{BXf0y-wp2FQ5btCG2.mjs → Dnx3_xXfRlD6ECfZ2.mjs} +1 -1
  158. package/browser/esm/{BwekjT1bXcBAV6hi2.mjs → DrUEYcXg6N2D2s1Z2.mjs} +1 -1
  159. package/{cdn/assets/CAgzNDmM7lJZAN5m.js → browser/esm/DtXC6uPF2LLktqFE.mjs} +2 -2
  160. package/browser/esm/{B4094aQR3Q4KhALV2.mjs → DuPdSe-EXFTx9dsc2.mjs} +8 -8
  161. package/browser/esm/{Byl6FdOyv58rFwxZ.mjs → DzDwSOBdJh_lx_NM.mjs} +5 -5
  162. package/{cdn/assets/iKMg-svZQSvoVzqO.js → browser/esm/EwzqnZl1lTr56hH-2.mjs} +1 -1
  163. package/browser/esm/{Jw068AbKaxWlv8HJ2.mjs → Gy0CHZTvn4hY-rkx2.mjs} +1 -1
  164. package/browser/esm/{BEgQWG98wq54oeau2.mjs → NekeSGoazNCraGNC2.mjs} +7 -7
  165. package/browser/esm/{B7kOoeXeYeZqA_mU.mjs → R5bs6kCQSZmsCXz-.mjs} +1 -1
  166. package/browser/esm/{Be2V19M8IxytN_Aa.mjs → RW23HF8taEtW8q9D.mjs} +2 -2
  167. package/browser/esm/{DD-_f0jEXDy0dn6z.mjs → fJ1McMt7xzRA_lUX.mjs} +6 -6
  168. package/{cdn/assets/DKLwRgsx1WelayB62.js → browser/esm/hFSDx-LnUOObv-6h2.mjs} +1 -1
  169. package/browser/esm/index.mjs +6 -6
  170. package/browser/esm/{4-QoxOhoR614u5tO.mjs → nguMxPB9LKexKBRX.mjs} +12 -12
  171. package/browser/esm/{CNgKTif3Jo9FLV7d.mjs → oYdWyqsKo9ejAdVm.mjs} +2 -2
  172. package/browser/esm/{CsqtbHllm56zw5xh2.mjs → qG5zdZZAe6mQIJo32.mjs} +1 -1
  173. package/{cdn/assets/DL_Jd5k5JINA7woQ.js → browser/esm/qzhFT2j-mpQEQnKs.mjs} +2723 -2575
  174. package/{cdn/assets/DYaHqG1Xx-r7mlLq2.js → browser/esm/vcRSnmAqjwKglEkY.mjs} +1 -1
  175. package/cdn/assets/{BWcc3hnnAhelxjOr2.js → -2S675KWulPRlVNb2.js} +8 -8
  176. package/{browser/esm/BHmeRWtpqOMknkon.mjs → cdn/assets/1guzFZp1LHz_FwfL2.js} +1 -1
  177. package/cdn/assets/{BNU2ZqxIegIJr-572.js → 2CuCH0wi9XPgVzE42.js} +7 -7
  178. package/cdn/assets/{Dhmpgvzx9S-LYXr82.js → 2UHIeioUPXrwtZy-2.js} +9 -9
  179. package/cdn/assets/{D7-Zv2k1IJkmQoxc.js → 47Yv4X226-93If7L2.js} +1 -1
  180. package/{browser/esm/BM3Fxh1DBzKRDnJ-2.mjs → cdn/assets/8V-VceXEjpADM8qK.js} +1 -1
  181. package/cdn/assets/{DX0xvH5nQ8MjqsA0.js → 8f9hCbpXTTYEgG31.js} +2 -2
  182. package/{browser/esm/CVDNfe5yVj7xYGeO.mjs → cdn/assets/B55nrhIK6gAAu4ZA.js} +2 -2
  183. package/{browser/esm/BG-wTTfaCHaJMI5b2.mjs → cdn/assets/B5ZqqASTcBEV5L9K.js} +1 -1
  184. package/cdn/assets/{TO6gumfUOp2BgIlL.js → BAhvL7M7ZcgZ8eDc2.js} +7 -7
  185. package/cdn/assets/{Bpp8p7LJo9K-1Tm-2.js → BCZjYGV8AqIZghBH.js} +1 -1
  186. package/cdn/assets/{sIWoD1UYd1XgTrIs.js → BCkXtOM3yKocv7L-.js} +1 -1
  187. package/{browser/esm/Bk-F9XzxhuyAOQqK.mjs → cdn/assets/BDkVAo0CDCTE04ZJ.js} +1 -1
  188. package/cdn/assets/{CdV0VXnaW6UyTd8E.js → BHBJtVTiQByD_y9j2.js} +1 -1
  189. package/{browser/esm/BMlDCj6kw-JTuDJ92.mjs → cdn/assets/BHmYoIIbNW3GdcqV.js} +1 -1
  190. package/cdn/assets/{F-Y7Aw8fXxuX1LhE2.js → BJEpPEyFWtLzMIq-2.js} +1007 -969
  191. package/cdn/assets/{B1WYofA6cHbr8sxv2.js → BKEzd89UphJ8q1pp2.js} +277 -259
  192. package/cdn/assets/{rFTMJ-_CKVUSpQ9x2.js → BM7OqAUEUk-up7_82.js} +13 -13
  193. package/{browser/esm/YGKMD1YfDLoo18Sy.mjs → cdn/assets/BMRav2VAqEzDSp3r.js} +1 -1
  194. package/cdn/assets/{BSUsQ6-YD40bvOdG2.js → BNuoKAzs4zkxSocG2.js} +7 -7
  195. package/cdn/assets/{D-bML_q46je0p2os.js → BNybEGR813e3aNIv.js} +953 -948
  196. package/cdn/assets/{HQv1oLV3ax-NKXZG2.js → BOl4FzJRD7MplCU7.js} +1 -1
  197. package/cdn/assets/{Bk13V_C0eSaqMClU.js → BPv6Pw1hW-sV5Fya.js} +1 -1
  198. package/cdn/assets/{dywzP082Q24_9Q5U2.js → BU6uQhQhpaLElTT82.js} +8 -8
  199. package/cdn/assets/{BGlQEwuUWK6Oz7bC.js → BVgTMDEoPgsWFmku.js} +105 -105
  200. package/{browser/esm/DJzMm5FQXuMWHNom2.mjs → cdn/assets/BVjXdv_wkL1x_8ZJ2.js} +1 -1
  201. package/cdn/assets/BWlMK76Aj2d4ygsH.js +538 -0
  202. package/cdn/assets/{De-RIk_tQ6xW8NH22.js → BZsx0QHg1RZlM9ZN2.js} +1 -1
  203. package/cdn/assets/{BKX_mnqOl4t0M7Q-2.js → Be4QC65cR8N84rTn2.js} +1 -1
  204. package/cdn/assets/{ykS_w8WDHugwGY9S2.js → BhDLR-jtbOOG-tl12.js} +25 -25
  205. package/cdn/assets/{BhNQRWnlFUA4eX9Z2.js → BixsQGDDf3Iv_PtW2.js} +1120 -1052
  206. package/cdn/assets/Bl6C6xWT8E6b7OwJ2.js +239 -0
  207. package/{browser/esm/CxJliRXAfjf-8FJL2.mjs → cdn/assets/BqTFwWLbXXJ0Fu-X.js} +1 -1
  208. package/{browser/esm/CUj7kwIeQGAqyb6V.mjs → cdn/assets/Bv_96nwOEMHN9Sa0.js} +1 -1
  209. package/cdn/assets/{uk2_KQhVX77MWa7A.js → BykiUmcpDgSRNQI1.js} +1 -1
  210. package/cdn/assets/{_5fYV4ZbX0S6MIpD2.js → BzUU8y1IFjREzgog2.js} +8 -8
  211. package/{browser/esm/Nj1DgowT0KN0un7b2.mjs → cdn/assets/C1ZePT2B182vSnxW.js} +1 -1
  212. package/cdn/assets/{HT9FFYzSOuRaDcHS2.js → C8mUyjJ26jsHGl_D.js} +6 -6
  213. package/cdn/assets/{BEF8kcbXgMjyCP4C.js → CAPgMrAKg07EREFD2.js} +1 -1
  214. package/cdn/assets/{BDZq-VDymQAePI7X.js → CBuvbUg67ah_3BOZ.js} +2 -2
  215. package/cdn/assets/{Cjq-G2Seyww6IMSH2.js → CEN8dYSpN2oew8HH2.js} +1 -1
  216. package/{browser/esm/D99KkptfLQp60ECI.mjs → cdn/assets/CF8m5SqeMaRkGIYM.js} +2 -2
  217. package/{browser/esm/BG8zQEmkmTTw8LXE2.mjs → cdn/assets/CG5v2hAwGR5Ptufn2.js} +1 -1
  218. package/cdn/assets/{CX0QhwSYuHoImWlY.js → CGqvy5LwQ4z9J2oD.js} +1 -1
  219. package/{browser/esm/Dt8IOrB4ifUVtTff2.mjs → cdn/assets/CGyydD3tRb0ik50l.js} +1 -1
  220. package/cdn/assets/CH0of3GZTzHviuQV.js +24 -0
  221. package/cdn/assets/CH0of3GZTzHviuQV2.js +24 -0
  222. package/cdn/assets/{s2fSOFCKUPsjfoxR.js → CHttngK66Ido5dWW.js} +7 -7
  223. package/cdn/assets/{CI8YyVegXUBlHR61.js → CJPemkFUzhcAD_qR.js} +1 -1
  224. package/cdn/assets/{DgGF1ZaI3ti0c_Nz.js → COA_SZY2x8q6t4BD.js} +1 -1
  225. package/cdn/assets/{Bynpw8CnO-1JkFdZ.js → CR3jgkduTLczbMjH.js} +1 -1
  226. package/cdn/assets/{CK4ZQnpkZHN03RHP2.js → CT3G9YRPVfKtHWwf2.js} +9 -9
  227. package/{browser/esm/RFuzM5jhOgjn2C_7.mjs → cdn/assets/C_Io1QC4CeLGRBrz.js} +2 -2
  228. package/{browser/esm/DNXCAcVGHeeoKPcx2.mjs → cdn/assets/Cbw0JeJURvQyxIoa.js} +1 -1
  229. package/cdn/assets/{BC9RLqAWMPRx_1rS.js → CdMv3f8Gyxh8q2RR.js} +1 -1
  230. package/cdn/assets/{Cb1n0HtvwfvZOwZz.js → Ce5A_D4YBgi_s2KF.js} +8 -8
  231. package/{browser/esm/y07oKUx2vGjEEZ0w.mjs → cdn/assets/CfvrjQGuf7vXiQCB2.js} +1 -1
  232. package/cdn/assets/{ClWQjK8wtCNyfHiY.js → Chq4BwbjH0sbIkJN2.js} +2 -2
  233. package/{browser/esm/C_Kd0CPQvZsJLD6b2.mjs → cdn/assets/Clfp7SznkOrJoQvL.js} +1 -1
  234. package/{browser/esm/CmcKdn-U2ywgYm_9.mjs → cdn/assets/CopfZ7Y1Zn_PDNXK.js} +2 -2
  235. package/cdn/assets/{DmfSfK3IDzXPHkJL2.js → CpYlf4dXa_V2v-iS2.js} +602 -599
  236. package/cdn/assets/{v2SkWlVj3d1y2tfT2.js → CpnA5TZRkPDt4HnM2.js} +2 -2
  237. package/{browser/esm/Bs6uuY3i689nSdNa.mjs → cdn/assets/Crkvq5j5KIa6eTLI2.js} +13380 -12212
  238. package/cdn/assets/{5XtgjihhVCzNqyYJ.js → CtXoSHbCUKMY-tSJ2.js} +1 -1
  239. package/cdn/assets/{DBDr4dkaPZ8Gd8CD.js → Cv-KXN9kl0UeMezQ.js} +202 -202
  240. package/{browser/esm/BlC4_SZ2XYvtnkHw.mjs → cdn/assets/CvtkpvGzCHhNuwTm.js} +2274 -2126
  241. package/cdn/assets/{B8kiZt5i9HOHYeAo.js → D-fJXasEYyfRUcj2.js} +3 -3
  242. package/cdn/assets/{C0ioCmY0K9GI3SiM.js → D1MA2ed2cLMt7hV9.js} +7 -7
  243. package/cdn/assets/{CNZeWICVX0x6E3-Z.js → D3G3tI3DVCUF3Gdk2.js} +1 -1
  244. package/cdn/assets/{2dJqxS99uENpvAC9.js → D6SKy2BtcWkhfiA0.js} +1 -1
  245. package/{browser/esm/BbRZ0cO4t2haGX-o.mjs → cdn/assets/D9-wpGVbTS9rRpxx.js} +1 -1
  246. package/cdn/assets/{COaJqYKx8CJ595fz2.js → D9gETGi23d14kT7u2.js} +15 -15
  247. package/cdn/assets/{B4aainAlYLn-Q5H62.js → D9joTG0Z2zdWHAEa2.js} +3 -3
  248. package/{browser/esm/DSY8maNeFb51KgKe2.mjs → cdn/assets/DBL3Qp5jyPrFg7KI.js} +1 -1
  249. package/cdn/assets/{-wn5AXVsNdciGzNx.js → DC9obE_EVmxtvXCf.js} +2418 -2035
  250. package/cdn/assets/{BzNZfg3RJdx9PRAg2.js → DCnA2-zB7W_QB-tD2.js} +16 -12
  251. package/{browser/esm/CZy1bU6cVChuZKag.mjs → cdn/assets/DDNivpFWzQ3AIJia.js} +774 -712
  252. package/{browser/esm/SNsjWQUbxOQzdnCT.mjs → cdn/assets/DDOO4tcrO4OfMUDe.js} +1 -1
  253. package/cdn/assets/{Dm0riUQ_5Wg9oFgO.js → DEUY_zuVwmptMX4l.js} +7 -7
  254. package/cdn/assets/{CeD6pRhoV1LfiJjD.js → DIQf1pX-j-dWQu_e.js} +12 -12
  255. package/cdn/assets/{BITxO-ILVNOqgbA7.js → DJwQ9abZkyFO9Doy.js} +4 -4
  256. package/cdn/assets/{BV3cgeOVx6QLl85F.js → DKeLjEJPO9nT3bpr.js} +6 -6
  257. package/cdn/assets/{rT3DomLULA1xJhfY2.js → DLEdaT0MmrOxMa2h2.js} +16 -16
  258. package/cdn/assets/{ClkL86jz-4Gf_Uwg2.js → DOsbSsKsexrBoeXa2.js} +10 -10
  259. package/{browser/esm/CtaapT_7WuEvy48w2.mjs → cdn/assets/DQ-0yyFAwoWtxmhV2.js} +1 -1
  260. package/{browser/esm/BmZX5BqczMfR2VlT2.mjs → cdn/assets/DQ4o4dG7gWbL1X8F.js} +1 -1
  261. package/{browser/esm/DDg-fxiIqpuutuyu2.mjs → cdn/assets/DRc_Wi5c7WdKHTVN.js} +1 -1
  262. package/cdn/assets/{CsfLKTLGWgDLWY2z.js → DTCtbG90ip7Z7LaG.js} +6 -6
  263. package/cdn/assets/{BZbIcyw3tiUx7ztK2.js → DVS_5oDniuAFH3vT2.js} +1576 -1538
  264. package/cdn/assets/{CJMMds78eEvd6ivG2.js → DW7JlG-SQEdLYNar2.js} +11 -3
  265. package/{browser/esm/DbfFQif7awKrcxxB.mjs → cdn/assets/DZDynaLqNeVaDoiH2.js} +3 -3
  266. package/{browser/esm/DT8AGfoENVVMPsi3.mjs → cdn/assets/DZbR5R1fNikjgqYb.js} +1 -1
  267. package/cdn/assets/{wBchGa30DBwJnPZQ2.js → D_HeH7AJqWoxehn52.js} +3 -3
  268. package/{browser/esm/DhnxpW56CJ43gVOI.mjs → cdn/assets/D_t53-8k73CNpV-p2.js} +72 -46
  269. package/{browser/esm/BLq8q4tpQq7lW0jg.mjs → cdn/assets/DaBczM5xU9ev5_or.js} +2 -2
  270. package/cdn/assets/{CcJHQ6UROltFQL2I.js → DbEGszSW_J_k96KJ.js} +2 -2
  271. package/cdn/assets/{R3YBWWwMJAzbuwie.js → Dc0BDcQUGy_WIVFa.js} +1 -1
  272. package/cdn/assets/{CSlBZF1ezptA1LSS.js → DfRGH6mEtIVDWEYN.js} +1 -1
  273. package/cdn/assets/{BXf0y-wp2FQ5btCG.js → Dnx3_xXfRlD6ECfZ.js} +1 -1
  274. package/cdn/assets/{UtYZqTCpvZMQKdR8.js → DnzDlqizzNkbhJP7.js} +2 -2
  275. package/cdn/assets/{BwekjT1bXcBAV6hi.js → DrUEYcXg6N2D2s1Z.js} +1 -1
  276. package/cdn/assets/{3QC61uhcIBmRDR9w.js → DvItgGbf8IOWPyxd.js} +6901 -6248
  277. package/cdn/assets/{ZQsrI5kqNG_ZOdZD2.js → DvlpP6sUZ9Qzl9s22.js} +44 -44
  278. package/cdn/assets/{Bv8Sjub_HtVCmnyZ.js → EjOJX5m8OEL-IjPB.js} +6 -6
  279. package/{browser/esm/iKMg-svZQSvoVzqO2.mjs → cdn/assets/EwzqnZl1lTr56hH-.js} +1 -1
  280. package/cdn/assets/{Jw068AbKaxWlv8HJ.js → Gy0CHZTvn4hY-rkx.js} +1 -1
  281. package/cdn/assets/{B7kOoeXeYeZqA_mU2.js → R5bs6kCQSZmsCXz-2.js} +1 -1
  282. package/cdn/assets/{-OScuzLTidF7HNaK2.js → UYgwKnPX3US3Cj2k2.js} +14 -14
  283. package/cdn/assets/{DfMvz_tU8vJuV2Wl.js → WLUhtyUNK5QJ7Pff.js} +3 -3
  284. package/cdn/assets/{DupOTk4J52hzKr6p.js → c6VvwMHfXubjjtyj.js} +7 -7
  285. package/cdn/assets/{CjO9u_nQjtCD7xTH2.js → c7aIqKLOO4pvUsV12.js} +72 -72
  286. package/cdn/assets/{DQrSW7F6xwljb9vw2.js → gspQcUnmlRIwG609.js} +5 -5
  287. package/{browser/esm/DKLwRgsx1WelayB6.mjs → cdn/assets/hFSDx-LnUOObv-6h.js} +1 -1
  288. package/cdn/assets/{CaLQ8stna0cEenbY.js → iXWgTu3qpYZHcx1J.js} +8 -8
  289. package/cdn/assets/{BdI4wcd4XWPgeQnl.js → j8nXVEYbO2kPuEYQ.js} +3 -3
  290. package/cdn/assets/{ClHDdBXrC_nobC_N.js → mtI43hWjdp4E3Z_-.js} +7 -7
  291. package/{browser/esm/BTiq0pI-MmNI9sx6.mjs → cdn/assets/mtrwY1hjJeYlmzC-.js} +3 -3
  292. package/cdn/assets/{Bt-Xdgz1GdP9i0KH.js → nmR_PgTW7GrlbHHZ.js} +5 -5
  293. package/cdn/assets/{CsqtbHllm56zw5xh.js → qG5zdZZAe6mQIJo3.js} +1 -1
  294. package/cdn/assets/{ChBa56MbB_cDd9LM2.js → tVOVNvOs6ro8FXqa2.js} +8 -8
  295. package/cdn/assets/vTCuFafvRlSaT9wy.js +87 -0
  296. package/{browser/esm/DYaHqG1Xx-r7mlLq.mjs → cdn/assets/vcRSnmAqjwKglEkY2.js} +1 -1
  297. package/cdn/index.js +2 -2
  298. package/package.json +3 -3
  299. package/browser/cjs/B2cX7nid45K1XRcB.cjs +0 -1
  300. package/browser/cjs/BIcGM64pW8jzwXoR.cjs +0 -1
  301. package/browser/cjs/BQEk2bmRsrTs-zJu2.cjs +0 -7
  302. package/browser/cjs/BVN0uo1XwTCtE2mh.cjs +0 -7
  303. package/browser/cjs/BW4gFAFA5vc1x_8G.cjs +0 -1
  304. package/browser/cjs/Bq7bgCz2WfVwfQSv.cjs +0 -2
  305. package/browser/cjs/BxP_CBFuJxlFVfJP2.cjs +0 -1
  306. package/browser/cjs/C1tO7v57UD8xmj2X.cjs +0 -86
  307. package/browser/cjs/C9K6gYebhUCoGcyy.cjs +0 -5
  308. package/browser/cjs/CObKFza7rEOQcteD2.cjs +0 -1
  309. package/browser/cjs/CcBPECGj-X0W9a3_.cjs +0 -3
  310. package/browser/cjs/ChMPHLE_jFKu0JmZ2.cjs +0 -1
  311. package/browser/cjs/CtEazH3mA0Tj8qrG.cjs +0 -1
  312. package/browser/cjs/CxY5iqVeCdKKTzDq.cjs +0 -1
  313. package/browser/cjs/D6cjnwWR_iUSe1f62.cjs +0 -1
  314. package/browser/cjs/D9OGD2b5RCuNVkVt.cjs +0 -1
  315. package/browser/cjs/DDGqSmEUwpCyj2-T.cjs +0 -12
  316. package/browser/cjs/DDPxHIqx8aIbqTRE.cjs +0 -1
  317. package/browser/cjs/Dmdcgm3pqGKmXPGb.cjs +0 -33
  318. package/browser/cjs/Ds8fgjqVz8xPRHog.cjs +0 -1
  319. package/browser/cjs/gOdLq87FmaB-hTTZ.cjs +0 -1
  320. package/browser/esm/BibrryjUsSysyTSD2.mjs +0 -193
  321. package/browser/esm/D5MuKMXqFbc9B8JP.mjs +0 -87
  322. package/browser/esm/DA0VxVTFcWvrEQEv.mjs +0 -518
  323. package/cdn/assets/BHmeRWtpqOMknkon2.js +0 -24
  324. package/cdn/assets/BqA9-X1PlqRSSWll.js +0 -518
  325. package/cdn/assets/C8lUc_Lc03y-Whne2.js +0 -194
  326. package/cdn/assets/DbGc-QtQMWI-VyUe2.js +0 -24
  327. package/cdn/assets/i6PnYkX2rfHQQEvF.js +0 -87
  328. /package/browser/cjs/{BAxVLKkxFgI6cXnR2.cjs → BAxVLKkxFgI6cXnR.cjs} +0 -0
  329. /package/browser/cjs/{C9C-pr-T_ThweQX9.cjs → C9C-pr-T_ThweQX92.cjs} +0 -0
  330. /package/browser/cjs/{CJYewYJ5Z3iojl7J2.cjs → CJYewYJ5Z3iojl7J.cjs} +0 -0
  331. /package/browser/cjs/{CRx1WvmgBjT8WVyB.cjs → CRx1WvmgBjT8WVyB2.cjs} +0 -0
  332. /package/browser/cjs/{CW-b31_-r-_raT8Y.cjs → CW-b31_-r-_raT8Y2.cjs} +0 -0
  333. /package/browser/cjs/{CnZfa45XxA-9Jhmp2.cjs → CnZfa45XxA-9Jhmp.cjs} +0 -0
  334. /package/browser/cjs/{CpJJh4UnFl1_qFui2.cjs → CpJJh4UnFl1_qFui.cjs} +0 -0
  335. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  336. /package/browser/cjs/{DDnGLOLTqLFsdUDS.cjs → DDnGLOLTqLFsdUDS2.cjs} +0 -0
  337. /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
  338. /package/browser/cjs/{JfM6P_qoQQTWakZf2.cjs → JfM6P_qoQQTWakZf.cjs} +0 -0
  339. /package/browser/cjs/{h3dw1jAp2J5Pu4p3.cjs → h3dw1jAp2J5Pu4p32.cjs} +0 -0
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.3
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.1
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 { A as e, C as t, F as n, O as r, P as i, T as a, V as o, _ as s, d as c, l, m as u, r as d, s as f, t as p, v as m } from "./Cjq-G2Seyww6IMSH2.js";
8
- import { r as h } from "./DbGc-QtQMWI-VyUe2.js";
9
- import { a as g, n as _ } from "./DhnxpW56CJ43gVOI2.js";
10
- import { A as v, At as y, B as b, C as x, E as S, F as ee, Ft as C, H as te, Ht as ne, J as w, K as re, Kt as T, L as ie, Lt as ae, M as oe, Mt as E, Ot as D, P as O, Pt as se, Q as ce, Rt as le, T as ue, Tt as k, U as de, W as fe, X as pe, Yt as me, Z as he, _ as A, _t as ge, b as _e, cn as ve, dn as ye, dt as be, en as xe, et as Se, fn as Ce, g as we, gt as Te, h as Ee, ht as De, i as Oe, in as j, j as ke, jt as Ae, k as M, kt as je, l as Me, ln as Ne, m as Pe, nt as Fe, o as Ie, on as Le, ot as N, pn as P, r as Re, rt as ze, s as Be, u as Ve, un as F, ut as I, w as L, wt as R, x as He, yt as Ue } from "./Cwee8HXWwJj0ASk32.js";
11
- import { r as We } from "./B4aainAlYLn-Q5H62.js";
7
+ import { r as e } from "./CH0of3GZTzHviuQV2.js";
8
+ import { o as t, t as n } from "./D_t53-8k73CNpV-p2.js";
9
+ import { A as r, C as i, F as a, O as o, P as s, T as c, V as l, _ as u, d, l as f, m as p, r as m, s as h, t as g, v as _ } from "./CEN8dYSpN2oew8HH2.js";
10
+ import { $ as v, $t as y, A as b, At as x, C as S, Ct as C, Dt as w, Et as T, F as ee, Ft as te, Gt as ne, Ht as re, J as ie, K as ae, L as oe, Lt as se, Mt as E, Nt as D, O, Pt as ce, Q as k, Qt as le, R as ue, Rt as A, St as de, Tt as fe, Ut as pe, V as j, W as me, X as he, Y as ge, Yt as _e, Z as M, Zt as ve, _t as N, at as ye, bt as be, c as xe, ct as Se, dn as P, dt as Ce, f as F, fn as I, gt as we, h as Te, i as Ee, in as L, k as De, ln as Oe, lt as ke, mt as Ae, n as je, nt as Me, on as Ne, ot as Pe, pn as Fe, rn as Ie, sn as Le, ut as Re, vt as ze, w as R, xt as Be, y as Ve, yt as He, zt as Ue } from "./Crkvq5j5KIa6eTLI2.js";
11
+ import { r as We } from "./D9joTG0Z2zdWHAEa2.js";
12
12
  var Ge;
13
13
  Ge ||= {};
14
- var Ke = class extends u {
14
+ var Ke = class extends p {
15
15
  constructor(e, t = 50) {
16
16
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
17
17
  }
@@ -106,7 +106,7 @@ var Ke = class extends u {
106
106
  }
107
107
  }, qe = class {
108
108
  constructor(e, t) {
109
- this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new k(this);
109
+ this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new x(this);
110
110
  let n = this;
111
111
  this._removeStoreListener = e.addListener({
112
112
  onCommitEnd() {
@@ -143,7 +143,7 @@ var Ke = class extends u {
143
143
  }
144
144
  }, z = class e {
145
145
  constructor(t, n = {}) {
146
- this._password = null, this._emitter = new k(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
146
+ 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._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
147
147
  }
148
148
  static _defaultCanWrite(e) {
149
149
  return !!e && !/^(https?:|data:|blob:)/i.test(e);
@@ -154,7 +154,7 @@ var Ke = class extends u {
154
154
  getName() {
155
155
  if (this._name !== null && this._name !== void 0) return this._name;
156
156
  let e = this._cleanPath();
157
- return e && I(e) || null;
157
+ return e && N(e) || null;
158
158
  }
159
159
  getPath() {
160
160
  return this._path;
@@ -217,22 +217,22 @@ var Ke = class extends u {
217
217
  this._defaultStringSourceType = "filepath";
218
218
  }
219
219
  async read(e) {
220
- let t = e.options ?? {}, r = e.source;
221
- if (typeof r == "function" && (r = r()), r && typeof r == "object" && typeof r.then == "function" && (r = await Promise.resolve(r)), r == null && (r = await this.resolveSource(e), r == null)) return null;
222
- let i = t.format, a = this._detectSourceType(r);
223
- if (!a) throw Error("Unable to detect source type from provided input.");
220
+ let t = e.options ?? {}, n = e.source;
221
+ if (typeof n == "function" && (n = n()), n && typeof n == "object" && typeof n.then == "function" && (n = await Promise.resolve(n)), n == null && (n = await this.resolveSource(e), n == null)) return null;
222
+ let r = t.format, i = this._detectSourceType(n);
223
+ if (!i) throw Error("Unable to detect source type from provided input.");
224
224
  let o, s, c = !1;
225
- if (a === "filepath") {
226
- let e = typeof r == "string" && r.startsWith("file://") ? r.slice(7) : r;
227
- r = await this.filePathToFile(e), a = "file", c = !0;
225
+ if (i === "filepath") {
226
+ let e = typeof n == "string" && n.startsWith("file://") ? n.slice(7) : n;
227
+ n = await this.filePathToFile(e), i = "file", c = !0;
228
228
  }
229
- switch (a) {
229
+ switch (i) {
230
230
  case "file": {
231
- let e = r, t = e?.name, n = t ? `${I(t)}` : "";
231
+ let e = n, t = e?.name, i = t ? `${N(t)}` : "";
232
232
  o = await e.arrayBuffer(), s = {
233
- format: i,
233
+ format: r,
234
234
  ext: D(t),
235
- name: n,
235
+ name: i,
236
236
  absolutePath: t,
237
237
  size: e.size,
238
238
  canWrite: c && this._canWriteLocalPath()
@@ -240,49 +240,49 @@ var Ke = class extends u {
240
240
  break;
241
241
  }
242
242
  case "blob": {
243
- let e = r;
243
+ let e = n;
244
244
  o = await e.arrayBuffer(), s = {
245
- format: i,
245
+ format: r,
246
246
  size: e.size
247
247
  };
248
248
  break;
249
249
  }
250
250
  case "base64": {
251
251
  let e;
252
- if (r && typeof r == "object" && "base64" in r) e = r.base64;
253
- else if (typeof r == "string" && r.startsWith("data:")) {
254
- let [, t] = r.split(",");
252
+ if (n && typeof n == "object" && "base64" in n) e = n.base64;
253
+ else if (typeof n == "string" && n.startsWith("data:")) {
254
+ let [, t] = n.split(",");
255
255
  e = t;
256
- } else e = r;
257
- o = n.base64ToArrayBuffer(e), s = {
258
- format: i,
256
+ } else e = n;
257
+ o = a.base64ToArrayBuffer(e), s = {
258
+ format: r,
259
259
  size: e.length
260
260
  };
261
261
  break;
262
262
  }
263
263
  case "fetch": {
264
- let e, t, n;
265
- if (typeof r == "string") e = r;
264
+ let e, t, i;
265
+ if (typeof n == "string") e = n;
266
266
  else {
267
- if (!r || typeof r != "object" || !("input" in r)) throw Error("Invalid fetch source provided.");
267
+ if (!n || typeof n != "object" || !("input" in n)) throw Error("Invalid fetch source provided.");
268
268
  {
269
- let i = r;
270
- e = i.input, t = i.init, n = i.timeout;
269
+ let r = n;
270
+ e = r.input, t = r.init, i = r.timeout;
271
271
  }
272
272
  }
273
- let a = n || 3e4, c = new AbortController(), l = setTimeout(() => c.abort(), a), u = typeof e == "string" ? e : e.toString(), d = D(u);
273
+ let a = i || 3e4, c = new AbortController(), l = setTimeout(() => c.abort(), a), u = typeof e == "string" ? e : e.toString(), d = D(u);
274
274
  try {
275
275
  let n = await fetch(e, {
276
276
  ...t,
277
277
  signal: c.signal
278
278
  });
279
279
  if (clearTimeout(l), !n.ok) throw Error(`Failed to fetch: ${n.status} ${n.statusText}`);
280
- let r = await n.arrayBuffer();
281
- if (!r) throw Error(`Unable to fetched content: ${u}`);
282
- o = r, s = {
283
- format: i,
280
+ let i = await n.arrayBuffer();
281
+ if (!i) throw Error(`Unable to fetched content: ${u}`);
282
+ o = i, s = {
283
+ format: r,
284
284
  ext: d,
285
- name: I(u, !0),
285
+ name: N(u, !0),
286
286
  absolutePath: u
287
287
  };
288
288
  } catch (e) {
@@ -291,31 +291,31 @@ var Ke = class extends u {
291
291
  break;
292
292
  }
293
293
  case "buffer":
294
- o = r, s = { format: i };
294
+ o = n, s = { format: r };
295
295
  break;
296
296
  case "stream": {
297
- let e = r.getReader(), t = [], n = 0;
297
+ let e = n.getReader(), t = [], i = 0;
298
298
  try {
299
299
  for (;;) {
300
- let { done: r, value: i } = await e.read();
301
- if (r) break;
302
- t.push(i), n += i.length;
300
+ let { done: n, value: r } = await e.read();
301
+ if (n) break;
302
+ t.push(r), i += r.length;
303
303
  }
304
304
  } finally {
305
305
  e.releaseLock();
306
306
  }
307
- let a = new ArrayBuffer(n), c = new Uint8Array(a), l = 0;
307
+ let a = new ArrayBuffer(i), c = new Uint8Array(a), l = 0;
308
308
  for (let e of t) c.set(e, l), l += e.length;
309
- o = a, s = { format: i };
309
+ o = a, s = { format: r };
310
310
  break;
311
311
  }
312
- default: throw Error(`Unsupported source type: ${a}`);
312
+ default: throw Error(`Unsupported source type: ${i}`);
313
313
  }
314
314
  let l = await e.decode(o, {
315
- sourceType: a,
315
+ sourceType: i,
316
316
  ...s
317
317
  });
318
- return l ? (await this.onWorkbookRead(l, r), l) : null;
318
+ return l ? (await this.onWorkbookRead(l, n), l) : null;
319
319
  }
320
320
  async resolveSource(e) {
321
321
  return null;
@@ -336,8 +336,8 @@ var Ke = class extends u {
336
336
  }
337
337
  if (typeof File < "u" && e instanceof File) return "file";
338
338
  if (typeof Blob < "u" && e instanceof Blob) return "blob";
339
- let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", r = ArrayBuffer.isView(e), i = n.isNodeBuffer(e);
340
- return t || r || i ? "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;
339
+ let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = a.isNodeBuffer(e);
340
+ 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;
341
341
  }
342
342
  }, Ye = class extends Je {
343
343
  constructor(e, t) {
@@ -369,7 +369,7 @@ var Ke = class extends u {
369
369
  throw e;
370
370
  }
371
371
  let t = e.flatMap((e) => e.exts.map((e) => "." + e)).join(", ");
372
- return p.openFileDialog(t);
372
+ return g.openFileDialog(t);
373
373
  }
374
374
  async onWorkbookRead(e) {
375
375
  if (this._pendingOpenHandle) {
@@ -475,10 +475,10 @@ var $e = class {
475
475
  get isIFont() {
476
476
  return !0;
477
477
  }
478
- }, et = h({
479
- findBestMatch: () => it,
480
- getFontList: () => rt,
481
- setFontList: () => U
478
+ }, et = e({
479
+ findBestMatch: () => at,
480
+ getFontList: () => it,
481
+ setFontList: () => H
482
482
  }), tt = [
483
483
  "Arial",
484
484
  "Arial Black",
@@ -496,19 +496,19 @@ var $e = class {
496
496
  "Trebuchet MS",
497
497
  "Verdana"
498
498
  ], B = /* @__PURE__ */ new Map();
499
- B.set(w.GenericName.Serif, ["Tahoma"]), B.set(w.GenericName.SanSerif, ["Calibri"]), B.set(w.GenericName.MonoSpace, ["Courier New"]), B.set(w.GenericName.Cursive, ["Comic Sans MS"]), B.set(w.GenericName.Fantasy, ["Luminari"]), B.set(w.GenericName.UISystem, ["Arial"]), B.set(w.GenericName.UISerif, ["Tahoma"]), B.set(w.GenericName.UISanSerif, ["Arial"]), B.set(w.GenericName.UIMonoSpace, ["Courier New"]), B.set(w.GenericName.UIRounded, ["Arial"]), B.set(w.GenericName.Math, []), B.set(w.GenericName.Emoji, []), B.set(w.GenericName.Fangsong, []);
500
- var V = /* @__PURE__ */ new Map(), H = [];
501
- U(tt);
502
- var nt = eval;
503
- function U(e) {
504
- e || U(tt);
499
+ B.set(k.GenericName.Serif, ["Tahoma"]), B.set(k.GenericName.SanSerif, ["Calibri"]), B.set(k.GenericName.MonoSpace, ["Courier New"]), B.set(k.GenericName.Cursive, ["Comic Sans MS"]), B.set(k.GenericName.Fantasy, ["Luminari"]), B.set(k.GenericName.UISystem, ["Arial"]), B.set(k.GenericName.UISerif, ["Tahoma"]), B.set(k.GenericName.UISanSerif, ["Arial"]), B.set(k.GenericName.UIMonoSpace, ["Courier New"]), B.set(k.GenericName.UIRounded, ["Arial"]), B.set(k.GenericName.Math, []), B.set(k.GenericName.Emoji, []), B.set(k.GenericName.Fangsong, []);
500
+ var V = /* @__PURE__ */ new Map(), nt = [];
501
+ H(tt);
502
+ var rt = eval;
503
+ function H(e) {
504
+ e || H(tt);
505
505
  let t = [];
506
506
  for (let n = 0; n < e.length; n++) {
507
507
  let r = e[n];
508
508
  typeof r == "string" && (r = new $e(r));
509
509
  let i = !0;
510
510
  try {
511
- i = nt(`document.fonts.check('12px ${r.getFamily()}')`);
511
+ i = rt(`document.fonts.check('12px ${r.getFamily()}')`);
512
512
  } catch {}
513
513
  let a = {
514
514
  fontRef: r,
@@ -516,14 +516,14 @@ function U(e) {
516
516
  };
517
517
  t.push(a), V.set(r.getFamily(), a);
518
518
  }
519
- H = Object.freeze(t);
519
+ nt = Object.freeze(t);
520
520
  }
521
- function rt() {
522
- return H;
521
+ function it() {
522
+ return nt;
523
523
  }
524
- var W, G, K, q, J = /* @__PURE__ */ new Map();
525
- function it(e, t) {
526
- let n = J.get(e);
524
+ var U, W, G, K, q = /* @__PURE__ */ new Map();
525
+ function at(e, t) {
526
+ let n = q.get(e);
527
527
  if (n) return n.fontRef === null ? null : n;
528
528
  let r = [e];
529
529
  t?.fallbacks && (r = r.concat(t.fallbacks));
@@ -535,15 +535,15 @@ function it(e, t) {
535
535
  if (e) for (let t = 0; !i && t < e.length; t++) i = V.get(e[t]);
536
536
  }
537
537
  }
538
- return i ? J.set(e, i) : J.set(e, {
538
+ return i ? q.set(e, i) : q.set(e, {
539
539
  fontRef: null,
540
540
  loaded: !1
541
541
  }), i;
542
542
  }
543
- var at = h({
544
- DefaultFontSizes: () => ot,
545
- findNextFontSize: () => st
546
- }), ot = Object.freeze([
543
+ var ot = e({
544
+ DefaultFontSizes: () => st,
545
+ findNextFontSize: () => ct
546
+ }), st = Object.freeze([
547
547
  8,
548
548
  9,
549
549
  10,
@@ -562,42 +562,42 @@ var at = h({
562
562
  48,
563
563
  72
564
564
  ]);
565
- function st(t, n = !0, r = ot) {
566
- if (!r || r.length === 0) return t;
567
- if (t === void 0) return r[0];
568
- if (n && t >= r[r.length - 1] || !n && t <= r[0]) return t;
569
- let i = e.findEqualOrGreater(r, t);
570
- return n ? (r[i] === t && (i += 1), r[i] || --i, r[i]) : (--i, r[i]);
565
+ function ct(e, t = !0, n = st) {
566
+ if (!n || n.length === 0) return e;
567
+ if (e === void 0) return n[0];
568
+ if (t && e >= n[n.length - 1] || !t && e <= n[0]) return e;
569
+ let i = r.findEqualOrGreater(n, e);
570
+ return t ? (n[i] === e && (i += 1), n[i] || --i, n[i]) : (--i, n[i]);
571
571
  }
572
- (W ||= {}).SortOn = {
572
+ (U ||= {}).SortOn = {
573
573
  Value: "value",
574
574
  FillColor: "fillColor",
575
575
  FontColor: "fontColor",
576
576
  Icon: "icon"
577
- }, (K = G ||= {}).Compound = {
577
+ }, (G = W ||= {}).Compound = {
578
578
  Single: "sng",
579
579
  Double: "dbl",
580
580
  ThickThin: "thickThin",
581
581
  ThinThick: "thinThick",
582
582
  Triple: "tri"
583
- }, K.Align = {
583
+ }, G.Align = {
584
584
  Center: "ctr",
585
585
  Inset: "in",
586
586
  Outset: "outset"
587
- }, K.LineCap = {
587
+ }, G.LineCap = {
588
588
  Butt: "butt",
589
589
  Round: "round",
590
590
  Square: "square"
591
- }, K.LineJoin = {
591
+ }, G.LineJoin = {
592
592
  Bevel: "bevel",
593
593
  Miter: "miter",
594
594
  Round: "round"
595
- }, K.PresetMarkerShape = {
595
+ }, G.PresetMarkerShape = {
596
596
  Single: "none",
597
597
  Double: "double",
598
598
  ThickThin: "thickThin",
599
599
  ThinThick: "thickThin"
600
- }, K.StrokeStyle = {
600
+ }, G.StrokeStyle = {
601
601
  None: "none",
602
602
  Dashed: "dashed",
603
603
  Dotted: "dotted",
@@ -609,7 +609,7 @@ function st(t, n = !0, r = ot) {
609
609
  SysDashDot: "sysDashDot",
610
610
  SysDashDotDot: "sysDashDotDot",
611
611
  SysDot: "sysDot"
612
- }, (q ||= {}).Type = {
612
+ }, (K ||= {}).Type = {
613
613
  OuterShadow: "outerShadow",
614
614
  InnerShadow: "innerShadow",
615
615
  PresetShadow: "presetShadow",
@@ -617,64 +617,64 @@ function st(t, n = !0, r = ot) {
617
617
  SoftEdge: "softEdge",
618
618
  Reflection: "reflection"
619
619
  };
620
- var ct, lt, ut, dt, Y = Fe.BuiltInName, ft = {
621
- [Y.Normal]: m("style.builtin.normal"),
622
- [Y.Comma]: m("style.builtin.comma"),
623
- [Y.Currency]: m("style.builtin.currency"),
624
- [Y.Percent]: m("style.builtin.percent"),
625
- [Y.Comma0]: m("style.builtin.comma0"),
626
- [Y.Currency0]: m("style.builtin.currency0"),
627
- [Y.Hyperlink]: m("style.builtin.hyperlink"),
628
- [Y.FollowedHyperlink]: m("style.builtin.followedHyperlink"),
629
- [Y.Note]: m("style.builtin.note"),
630
- [Y.WarningText]: m("style.builtin.warningText"),
631
- [Y.Title]: m("style.builtin.title"),
632
- [Y.Input]: m("style.builtin.input"),
633
- [Y.Output]: m("style.builtin.output"),
634
- [Y.Calculation]: m("style.builtin.calculation"),
635
- [Y.CheckCell]: m("style.builtin.checkCell"),
636
- [Y.LinkedCell]: m("style.builtin.linkedCell"),
637
- [Y.Total]: m("style.builtin.total"),
638
- [Y.Good]: m("style.builtin.good"),
639
- [Y.Bad]: m("style.builtin.bad"),
640
- [Y.Neutral]: m("style.builtin.neutral"),
641
- [Y.ExplanatoryText]: m("style.builtin.explanatoryText")
642
- }, pt = m("style.builtin.heading"), mt = m("style.builtin.accent"), ht = m("style.builtin.accentTint"), gt = /^Heading ([1-4])$/, _t = /^Accent([1-6])$/, vt = /^(20|40|60)% - Accent([1-6])$/;
643
- function yt(e) {
644
- let t = ft[e];
620
+ var lt, ut, dt, ft, J = Se.BuiltInName, pt = {
621
+ [J.Normal]: _("style.builtin.normal"),
622
+ [J.Comma]: _("style.builtin.comma"),
623
+ [J.Currency]: _("style.builtin.currency"),
624
+ [J.Percent]: _("style.builtin.percent"),
625
+ [J.Comma0]: _("style.builtin.comma0"),
626
+ [J.Currency0]: _("style.builtin.currency0"),
627
+ [J.Hyperlink]: _("style.builtin.hyperlink"),
628
+ [J.FollowedHyperlink]: _("style.builtin.followedHyperlink"),
629
+ [J.Note]: _("style.builtin.note"),
630
+ [J.WarningText]: _("style.builtin.warningText"),
631
+ [J.Title]: _("style.builtin.title"),
632
+ [J.Input]: _("style.builtin.input"),
633
+ [J.Output]: _("style.builtin.output"),
634
+ [J.Calculation]: _("style.builtin.calculation"),
635
+ [J.CheckCell]: _("style.builtin.checkCell"),
636
+ [J.LinkedCell]: _("style.builtin.linkedCell"),
637
+ [J.Total]: _("style.builtin.total"),
638
+ [J.Good]: _("style.builtin.good"),
639
+ [J.Bad]: _("style.builtin.bad"),
640
+ [J.Neutral]: _("style.builtin.neutral"),
641
+ [J.ExplanatoryText]: _("style.builtin.explanatoryText")
642
+ }, mt = _("style.builtin.heading"), ht = _("style.builtin.accent"), gt = _("style.builtin.accentTint"), _t = /^Heading ([1-4])$/, vt = /^Accent([1-6])$/, yt = /^(20|40|60)% - Accent([1-6])$/;
643
+ function bt(e) {
644
+ let t = pt[e];
645
645
  if (t) return { key: t };
646
- let n = gt.exec(e);
646
+ let n = _t.exec(e);
647
647
  return n ? {
648
- key: pt,
649
- params: { n: +n[1] }
650
- } : (n = _t.exec(e), n ? {
651
648
  key: mt,
652
649
  params: { n: +n[1] }
653
650
  } : (n = vt.exec(e), n ? {
654
651
  key: ht,
652
+ params: { n: +n[1] }
653
+ } : (n = yt.exec(e), n ? {
654
+ key: gt,
655
655
  params: {
656
656
  pct: +n[1],
657
657
  n: +n[2]
658
658
  }
659
659
  } : null));
660
660
  }
661
- var bt = (e, t, n, r, i) => {
661
+ var xt = (e, t, n, r, i) => {
662
662
  let a = JSON.parse(JSON.stringify(e.definition));
663
663
  a.adjs ||= [];
664
- let o = "", c = 0, l = 0;
665
- t > 0 ? (l = t, c = 100 - t, o = s("op.lighterPercent", { percent: t })) : t < 0 && (c = 100 + t, o = s("op.darkerPercent", { percent: -t })), c && a.adjs.push({ [L.AdjustmentType.LumMod]: c }), l && a.adjs.push({ [L.AdjustmentType.LumOff]: l });
666
- let u = new ue({
664
+ let o = "", s = 0, c = 0;
665
+ t > 0 ? (c = t, s = 100 - t, o = u("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = u("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [S.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [S.AdjustmentType.LumOff]: c });
666
+ let l = new ge({
667
667
  val: a.val,
668
668
  adjs: a.adjs
669
- }, n), d = u.toString();
670
- r?.set(d, u);
671
- let f = u.toRGBA().toString();
672
- return i?.set(f, u), {
669
+ }, n), d = l.toString();
670
+ r?.set(d, l);
671
+ let f = l.toRGBA().toString();
672
+ return i?.set(f, l), {
673
673
  description: e.description + ", " + o,
674
674
  definition: a
675
675
  };
676
676
  };
677
- function xt(e) {
677
+ function St(e) {
678
678
  let t, n = e.trim();
679
679
  if (!n) return;
680
680
  try {
@@ -696,40 +696,40 @@ function xt(e) {
696
696
  case "NumberToken":
697
697
  case "ScientificDigit":
698
698
  case "DigitToken": {
699
- let e = Ae(o).value;
699
+ let e = De(o).value;
700
700
  return r === 0 ? e : r * e;
701
701
  }
702
- case "StringToken": return r === 0 ? je(o).value : void 0;
703
- case "BooleanToken": return r === 0 ? ye(o).value : void 0;
702
+ case "StringToken": return r === 0 ? _e(o).value : void 0;
703
+ case "BooleanToken": return r === 0 ? ke(o).value : void 0;
704
704
  case "LiteralError":
705
- case "RefError": return r === 0 ? Te(o).value : void 0;
705
+ case "RefError": return r === 0 ? Ae(o).value : void 0;
706
706
  default: return;
707
707
  }
708
708
  } catch {
709
709
  return;
710
710
  }
711
711
  }
712
- function St(e, t) {
713
- let n = Ct(e), r = Ct(t);
714
- return n === r ? e === t ? 0 : typeof e == "number" && typeof t == "number" ? e < t ? -1 : 1 : typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : typeof e == "boolean" ? e ? 1 : -1 : g.isError(e) && g.isError(t) ? e.getCode() - t.getCode() : 0 : n - r;
712
+ function Ct(e, n) {
713
+ let r = wt(e), i = wt(n);
714
+ return r === i ? e === n ? 0 : typeof e == "number" && typeof n == "number" ? e < n ? -1 : 1 : typeof e == "string" && typeof n == "string" ? e < n ? -1 : +(e > n) : typeof e == "boolean" ? e ? 1 : -1 : t.isError(e) && t.isError(n) ? e.getCode() - n.getCode() : 0 : r - i;
715
715
  }
716
- function Ct(e) {
716
+ function wt(e) {
717
717
  if (e === null) return 0;
718
718
  switch (typeof e) {
719
719
  case "number": return 1;
720
720
  case "string": return 2;
721
721
  case "boolean": return 3;
722
- default: return g.isError(e) ? 4 : 5;
722
+ default: return t.isError(e) ? 4 : 5;
723
723
  }
724
724
  }
725
- (ct ||= {}).buildPalette = function(e, t, n, r) {
725
+ (lt ||= {}).buildPalette = function(e, t, n, r) {
726
726
  let i = [];
727
727
  for (let a = 0; a < e.length; a++) {
728
728
  let o = [];
729
729
  i.push(o);
730
730
  let s = (i) => {
731
- for (let s = 0; s < i.length; s++) o.push(bt(e[a], i[s], t, n, r));
732
- }, c = new ue({
731
+ for (let s = 0; s < i.length; s++) o.push(xt(e[a], i[s], t, n, r));
732
+ }, c = new ge({
733
733
  val: e[a].definition.val,
734
734
  adjs: e[a].definition.adjs
735
735
  }, t).toHSLA().lum;
@@ -766,8 +766,8 @@ function Ct(e) {
766
766
  ]);
767
767
  }
768
768
  return i;
769
- }, lt ||= {}, ut ||= {}, dt ||= {};
770
- var wt = class {
769
+ }, ut ||= {}, dt ||= {}, ft ||= {};
770
+ var Tt = class {
771
771
  constructor(e) {
772
772
  this._children = e;
773
773
  }
@@ -799,19 +799,19 @@ var wt = class {
799
799
  let n = t[e].getSortedNumbers().getValues();
800
800
  n.length > 0 && r.push(n);
801
801
  }
802
- e = new de(function(e) {
802
+ e = new oe(function(e) {
803
803
  let t = e.length;
804
- if (t === 0) return Tt;
804
+ if (t === 0) return Et;
805
805
  if (t === 1) return e[0];
806
806
  let n = e[0];
807
- for (let r = 1; r < t; r++) n = Et(n, e[r]);
807
+ for (let r = 1; r < t; r++) n = Dt(n, e[r]);
808
808
  return Object.freeze(n);
809
809
  }(r)), this._sortedNumbers = e;
810
810
  }
811
811
  return e;
812
812
  }
813
813
  getRanked(e) {
814
- return Ne(this._children, e, St)[Symbol.iterator]();
814
+ return Ue(this._children, e, Ct)[Symbol.iterator]();
815
815
  }
816
816
  getFrequencies(e) {
817
817
  if (e) return this._mergeFrequencies(e);
@@ -819,7 +819,7 @@ var wt = class {
819
819
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
820
820
  }
821
821
  _mergeFrequencies(e) {
822
- let t = e?.keyFn ?? Ve, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
822
+ let t = e?.keyFn ?? le, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
823
823
  for (let l = 0; l < a; l++) {
824
824
  let a = i[l].getFrequencies(e);
825
825
  o += a.getVisitedCount(), s += a.getTotalCount(), c ||= a.isTruncated();
@@ -832,35 +832,35 @@ var wt = class {
832
832
  }) : c = !0, d = u.next();
833
833
  }
834
834
  }
835
- return re.fromGroups(r, t, e, St, o, s, c);
835
+ return ne.fromGroups(r, t, e, Ct, o, s, c);
836
836
  }
837
837
  getTypedCounts(e) {
838
838
  let t = this._typedCounts;
839
839
  if (!t) {
840
840
  let e = {
841
- [_.Number]: 0,
842
- [_.String]: 0,
843
- [_.Boolean]: 0,
844
- [_.Error]: 0,
845
- [_.RichData]: 0,
846
- [_.Null]: 0
847
- }, n = this._children, r = n.length;
848
- for (let t = 0; t < r; t++) {
849
- let r = n[t].getTypedCounts();
850
- e[_.Number] += r[_.Number] ?? 0, e[_.String] += r[_.String] ?? 0, e[_.Boolean] += r[_.Boolean] ?? 0, e[_.Error] += r[_.Error] ?? 0, e[_.RichData] += r[_.RichData] ?? 0, e[_.Null] += r[_.Null] ?? 0;
841
+ [n.Number]: 0,
842
+ [n.String]: 0,
843
+ [n.Boolean]: 0,
844
+ [n.Error]: 0,
845
+ [n.RichData]: 0,
846
+ [n.Null]: 0
847
+ }, r = this._children, i = r.length;
848
+ for (let t = 0; t < i; t++) {
849
+ let i = r[t].getTypedCounts();
850
+ e[n.Number] += i[n.Number] ?? 0, e[n.String] += i[n.String] ?? 0, e[n.Boolean] += i[n.Boolean] ?? 0, e[n.Error] += i[n.Error] ?? 0, e[n.RichData] += i[n.RichData] ?? 0, e[n.Null] += i[n.Null] ?? 0;
851
851
  }
852
852
  t = Object.freeze(e), this._typedCounts = t;
853
853
  }
854
854
  if (e === void 0) return t;
855
- let n = {}, r = e.length;
856
- for (let i = 0; i < r; i++) n[e[i]] = t[e[i]] ?? 0;
857
- return n;
855
+ let r = {}, i = e.length;
856
+ for (let n = 0; n < i; n++) r[e[n]] = t[e[n]] ?? 0;
857
+ return r;
858
858
  }
859
859
  get isIRangeStats() {
860
860
  return !0;
861
861
  }
862
862
  _mergeAggregates(e) {
863
- let t = this._children, n = t.length, r = {
863
+ let t = this._children, r = t.length, i = {
864
864
  count: 0,
865
865
  min: void 0,
866
866
  max: void 0,
@@ -868,31 +868,31 @@ var wt = class {
868
868
  sum: 0,
869
869
  sumSq: 0,
870
870
  typed: {
871
- [_.Number]: 0,
872
- [_.String]: 0,
873
- [_.Boolean]: 0,
874
- [_.Error]: 0,
875
- [_.RichData]: 0,
876
- [_.Null]: 0
871
+ [n.Number]: 0,
872
+ [n.String]: 0,
873
+ [n.Boolean]: 0,
874
+ [n.Error]: 0,
875
+ [n.RichData]: 0,
876
+ [n.Null]: 0
877
877
  }
878
878
  };
879
- for (let i = 0; i < n; i++) {
880
- let n = t[i].getAggregates(e);
881
- r.count += n.count;
882
- let a = n.numericalCount;
883
- 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));
879
+ for (let n = 0; n < r; n++) {
880
+ let r = t[n].getAggregates(e);
881
+ i.count += r.count;
882
+ let a = r.numericalCount;
883
+ a <= 0 || (i.numericalCount += a, i.sum += r.sum, i.sumSq += r.varP * a + r.sum * r.sum / a, (i.min === void 0 || r.min < i.min) && (i.min = r.min), (i.max === void 0 || r.max > i.max) && (i.max = r.max));
884
884
  }
885
- return me(r);
885
+ return Le(i);
886
886
  }
887
- }, Tt = Object.freeze([]);
888
- function Et(e, t) {
887
+ }, Et = Object.freeze([]);
888
+ function Dt(e, t) {
889
889
  let n = e.length, r = t.length, i = Array(n + r), a = 0, o = 0, s = 0;
890
890
  for (; a < n && o < r;) i[s++] = e[a] <= t[o] ? e[a++] : t[o++];
891
891
  for (; a < n;) i[s++] = e[a++];
892
892
  for (; o < r;) i[s++] = t[o++];
893
893
  return i;
894
894
  }
895
- var Dt = class {
895
+ var Ot = class {
896
896
  constructor(e) {
897
897
  this.isIExternalBook = !0, this._json = e;
898
898
  }
@@ -911,9 +911,9 @@ var Dt = class {
911
911
  toJSON() {
912
912
  return this._json;
913
913
  }
914
- }, Ot = class {
914
+ }, kt = class {
915
915
  constructor(e) {
916
- this.isIExternalBookCollection = !0, this._items = (e?.json ?? []).map((e) => e ? new Dt(e) : null);
916
+ this.isIExternalBookCollection = !0, this._items = (e?.json ?? []).map((e) => e ? new Ot(e) : null);
917
917
  }
918
918
  [Symbol.iterator]() {
919
919
  return this.getItems()[Symbol.iterator]();
@@ -935,13 +935,13 @@ var Dt = class {
935
935
  toJSON() {
936
936
  return this._items.length === 0 ? null : this._items.map((e) => e?.toJSON() ?? null);
937
937
  }
938
- }, kt = class {
938
+ }, At = class {
939
939
  constructor(e) {
940
940
  this._closed = !1, this._options = { ...e };
941
941
  let t = this;
942
- this._transactions = this._options.transactions ?? new ge({ transient: !0 }), this._stateId = this._transactions.create(), this._transactionsRemoveListener = this._transactions.addStateListener(this._stateId, { onAfterStateChange(e, n, r) {
942
+ this._transactions = this._options.transactions ?? new fe({ transient: !0 }), this._stateId = this._transactions.create(), this._transactionsRemoveListener = this._transactions.addStateListener(this._stateId, { onAfterStateChange(e, n, r) {
943
943
  t._emitter.notify("onCollectionChange");
944
- } }), this._emitter = new k(this, this._transactions), this._initState(e?.initial);
944
+ } }), this._emitter = new x(this, this._transactions), this._initState(e?.initial);
945
945
  }
946
946
  add(e, t, n) {
947
947
  let r = this;
@@ -954,27 +954,27 @@ var Dt = class {
954
954
  return r._options.onRemove?.(e, n), r._emitter.notify("onCollectionChange"), delete i.modules[e], i;
955
955
  }
956
956
  return t;
957
- }, m("op.deleteModule"));
957
+ }, _("op.deleteModule"));
958
958
  } }, { once: !0 });
959
959
  let i = this._getState()?.modules, a = i?.[e], o = n?.replace ?? !1;
960
960
  if (a && !o) throw Error(`Already existing '${e}'`);
961
961
  let s = { ...i };
962
- t ? (s[e] = t, r._options.onAdd?.(e, t), this._updateState({ modules: s }, m(o ? "op.saveScripts" : "op.addScript"))) : (delete s[e], r._options.onRemove?.(e, null), this._updateState({ modules: s }, m("op.removeScript"))), r._emitter.notify("onCollectionChange");
962
+ t ? (s[e] = t, r._options.onAdd?.(e, t), this._updateState({ modules: s }, _(o ? "op.saveScripts" : "op.addScript"))) : (delete s[e], r._options.onRemove?.(e, null), this._updateState({ modules: s }, _("op.removeScript"))), r._emitter.notify("onCollectionChange");
963
963
  }
964
964
  *[Symbol.iterator]() {
965
965
  yield* this.getItems();
966
966
  }
967
- getItems(t) {
968
- let n = this._getState();
969
- if (!n) return e.EmptyArray;
970
- let r = n.modules, i = Object.keys(r), a = i.length;
971
- if (a === 0) return e.EmptyArray;
972
- let o = [], s = t?.name ? t.name.toUpperCase() : null;
967
+ getItems(e) {
968
+ let t = this._getState();
969
+ if (!t) return r.EmptyArray;
970
+ let n = t.modules, i = Object.keys(n), a = i.length;
971
+ if (a === 0) return r.EmptyArray;
972
+ let o = [], s = e?.name ? e.name.toUpperCase() : null;
973
973
  for (let e = 0; e < a; e++) {
974
- let t = i[e], n = r[t], a = !0;
975
- s && s !== t.toUpperCase() && (a = !1), a && o.push(n);
974
+ let t = i[e], r = n[t], a = !0;
975
+ s && s !== t.toUpperCase() && (a = !1), a && o.push(r);
976
976
  }
977
- return o ?? e.EmptyArray;
977
+ return o ?? r.EmptyArray;
978
978
  }
979
979
  getByName(e) {
980
980
  if (!e) return null;
@@ -995,13 +995,13 @@ var Dt = class {
995
995
  return this._beginCommit(e);
996
996
  }
997
997
  _getState() {
998
- if (this._closed) throw Error(s("error.model.modelClosed"));
998
+ if (this._closed) throw Error(u("error.model.modelClosed"));
999
999
  return this._transactions.getState(this._stateId);
1000
1000
  }
1001
1001
  _beginCommit(e) {
1002
1002
  return this._transactions.beginCommit(typeof e == "string" ? { description: e } : e);
1003
1003
  }
1004
- _updateState(e, t = m("op.update"), n) {
1004
+ _updateState(e, t = _("op.update"), n) {
1005
1005
  if (!e) return;
1006
1006
  let r = this._beginCommit(t);
1007
1007
  try {
@@ -1012,7 +1012,7 @@ var Dt = class {
1012
1012
  }
1013
1013
  _initState(e) {
1014
1014
  let t = e ?? {};
1015
- this._updateState({ modules: t }, m("op.initialize"), { forceAmend: !0 });
1015
+ this._updateState({ modules: t }, _("op.initialize"), { forceAmend: !0 });
1016
1016
  let n = this._options.onAdd;
1017
1017
  if (n) {
1018
1018
  let e = Object.keys(t), r = e.length;
@@ -1026,12 +1026,12 @@ var Dt = class {
1026
1026
  return this._emitter.addListeners(e, t);
1027
1027
  }
1028
1028
  toJSON() {
1029
- let t = this._getState();
1030
- if (!t) return e.EmptyArray;
1031
- let n = t.modules, r = Object.keys(n), i = r.length, a = {};
1029
+ let e = this._getState();
1030
+ if (!e) return r.EmptyArray;
1031
+ let t = e.modules, n = Object.keys(t), i = n.length, a = {};
1032
1032
  for (let e = 0; e < i; e++) {
1033
- let t = r[e];
1034
- a[t] = n[t].toJSON();
1033
+ let r = n[e];
1034
+ a[r] = t[r].toJSON();
1035
1035
  }
1036
1036
  return a;
1037
1037
  }
@@ -1044,9 +1044,9 @@ var Dt = class {
1044
1044
  get isFunctionCollection() {
1045
1045
  return !0;
1046
1046
  }
1047
- }, At = class {
1047
+ }, jt = class {
1048
1048
  constructor(e) {
1049
- this._options = e, this._emitter = new k(this), this._initState();
1049
+ this._options = e, this._emitter = new x(this), this._initState();
1050
1050
  }
1051
1051
  _initState() {}
1052
1052
  getModules() {
@@ -1054,27 +1054,27 @@ var Dt = class {
1054
1054
  }
1055
1055
  _builtInNames() {
1056
1056
  try {
1057
- let t = this._options.getBuiltInFunctions?.();
1058
- if (!t) return e.EmptyArray;
1059
- let n = [];
1060
- for (let e of t.getItems()) e.isBuiltIn() && n.push(e.getName());
1061
- return n;
1057
+ let e = this._options.getBuiltInFunctions?.();
1058
+ if (!e) return r.EmptyArray;
1059
+ let t = [];
1060
+ for (let n of e.getItems()) n.isBuiltIn() && t.push(n.getName());
1061
+ return t;
1062
1062
  } catch {
1063
- return e.EmptyArray;
1063
+ return r.EmptyArray;
1064
1064
  }
1065
1065
  }
1066
1066
  async createModule(e) {
1067
- let t = await (await import("./BSUsQ6-YD40bvOdG2.js").then((e) => e.t)).ScriptCompiler.compile({
1067
+ let t = await (await import("./BNuoKAzs4zkxSocG2.js").then((e) => e.t)).ScriptCompiler.compile({
1068
1068
  builtInNames: this._builtInNames(),
1069
1069
  ...e
1070
1070
  });
1071
- return t.module ? await M("scripts", t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1071
+ return t.module ? await L("scripts", t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1072
1072
  }
1073
1073
  addModule(e, t, n) {
1074
1074
  this._modules.add(e, t, n);
1075
1075
  }
1076
1076
  async addModuleFromJSON(e, t, n) {
1077
- let r = await M(e, t);
1077
+ let r = await L(e, t);
1078
1078
  return this.addModule(e, r, n), r;
1079
1079
  }
1080
1080
  executeMacro(e, t, n) {
@@ -1090,7 +1090,7 @@ var Dt = class {
1090
1090
  }
1091
1091
  async run(e, t) {
1092
1092
  try {
1093
- let n = typeof e == "string" ? await this.createModule({ source: e }) : await M("scripts", e), r = typeof e == "string" ? e : e?.source ?? "";
1093
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await L("scripts", e), r = typeof e == "string" ? e : e?.source ?? "";
1094
1094
  return await this._runModule(n, r, t);
1095
1095
  } catch (e) {
1096
1096
  return {
@@ -1152,52 +1152,52 @@ var Dt = class {
1152
1152
  for (let e = 0; e < a; e++) t.push(i[e].getFunctions());
1153
1153
  return t;
1154
1154
  }
1155
- async searchFunctions(t) {
1155
+ async searchFunctions(e) {
1156
1156
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1157
- let n = await this._searchable(t);
1158
- if (n.length === 0) return e.EmptyArray;
1159
- let r, i = t?.limit, a = i === void 0 ? t : {
1160
- ...t,
1157
+ let t = await this._searchable(e);
1158
+ if (t.length === 0) return r.EmptyArray;
1159
+ let n, i = e?.limit, a = i === void 0 ? e : {
1160
+ ...e,
1161
1161
  limit: void 0
1162
1162
  }, o = /* @__PURE__ */ new Set();
1163
- for (let e = 0; e < n.length; e++) {
1164
- let t = await n[e].search(a);
1165
- if (t.length !== 0) {
1166
- r ||= [];
1167
- for (let e = 0; e < t.length; e++) {
1168
- let n = t[e], i = n.getName().toUpperCase();
1169
- o.has(i) || (o.add(i), r.push(n));
1163
+ for (let e = 0; e < t.length; e++) {
1164
+ let r = await t[e].search(a);
1165
+ if (r.length !== 0) {
1166
+ n ||= [];
1167
+ for (let e = 0; e < r.length; e++) {
1168
+ let t = r[e], i = t.getName().toUpperCase();
1169
+ o.has(i) || (o.add(i), n.push(t));
1170
1170
  }
1171
1171
  }
1172
1172
  }
1173
- if (!r || r.length === 0) return e.EmptyArray;
1174
- let s = t?.text ? t.text.trim().toUpperCase() : null;
1175
- return s && n.length > 1 && ke(r, s), i !== void 0 && r.length > i ? r.slice(0, i) : r;
1173
+ if (!n || n.length === 0) return r.EmptyArray;
1174
+ let s = e?.text ? e.text.trim().toUpperCase() : null;
1175
+ return s && t.length > 1 && He(n, s), i !== void 0 && n.length > i ? n.slice(0, i) : n;
1176
1176
  }
1177
- async getFunctionCategories(t) {
1177
+ async getFunctionCategories(e) {
1178
1178
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1179
- let n = await this._searchable(t);
1180
- if (n.length === 0) return e.EmptyArray;
1181
- if (n.length === 1) return n[0].getCategories(t);
1182
- let r = t?.includeDeprecated ?? !1, i = /* @__PURE__ */ new Map(), a = (e) => {
1179
+ let t = await this._searchable(e);
1180
+ if (t.length === 0) return r.EmptyArray;
1181
+ if (t.length === 1) return t[0].getCategories(e);
1182
+ let n = e?.includeDeprecated ?? !1, i = /* @__PURE__ */ new Map(), a = (e) => {
1183
1183
  let t = e.toUpperCase(), n = i.get(t);
1184
1184
  n ? n.count++ : i.set(t, {
1185
1185
  name: e,
1186
1186
  count: 1
1187
1187
  });
1188
1188
  };
1189
- for (let e of await n[0].getCategories(t)) i.set(e.name.toUpperCase(), {
1190
- name: e.name,
1191
- count: e.count
1189
+ for (let n of await t[0].getCategories(e)) i.set(n.name.toUpperCase(), {
1190
+ name: n.name,
1191
+ count: n.count
1192
1192
  });
1193
- for (let e = 1; e < n.length; e++) {
1194
- let i = await n[e].search(t?.type ? { type: t.type } : void 0);
1195
- for (let t = 0; t < i.length; t++) {
1196
- let o = i[t], s = o.getName().toUpperCase(), c = !1;
1197
- for (let t = 0; t < e && !c; t++) c = !!n[t].getByName(s);
1193
+ for (let r = 1; r < t.length; r++) {
1194
+ let i = await t[r].search(e?.type ? { type: e.type } : void 0);
1195
+ for (let e = 0; e < i.length; e++) {
1196
+ let o = i[e], s = o.getName().toUpperCase(), c = !1;
1197
+ for (let e = 0; e < r && !c; e++) c = !!t[e].getByName(s);
1198
1198
  if (c) continue;
1199
1199
  let l = await o.getDescriptor().catch(() => null);
1200
- !r && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1200
+ !n && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1201
1201
  }
1202
1202
  }
1203
1203
  let o = Array.from(i.values());
@@ -1209,21 +1209,21 @@ var Dt = class {
1209
1209
  })), this._startPromise;
1210
1210
  }
1211
1211
  async _doStart() {
1212
- let t = this._options?.workbook, n = this._options?.json, r = {};
1213
- if (n) {
1214
- let e = Object.keys(n);
1215
- for (let t = 0; t < e.length; t++) {
1216
- let i = e[t], a = n[i];
1212
+ let e = this._options?.workbook, t = this._options?.json, n = {};
1213
+ if (t) {
1214
+ let e = Object.keys(t);
1215
+ for (let r = 0; r < e.length; r++) {
1216
+ let i = e[r], a = t[i];
1217
1217
  try {
1218
- r[i] = await M(i, a);
1218
+ n[i] = await L(i, a);
1219
1219
  } catch (e) {
1220
- o.error(`Could not load script '${i}'; it will be unavailable.`, e);
1220
+ l.error(`Could not load script '${i}'; it will be unavailable.`, e);
1221
1221
  }
1222
1222
  }
1223
1223
  }
1224
- let i = this, a = new kt({
1224
+ let i = this, a = new At({
1225
1225
  transactions: this._options?.transactions,
1226
- initial: r,
1226
+ initial: n,
1227
1227
  onRemove: (e, t) => {
1228
1228
  i._options?.onRemove?.(e, t);
1229
1229
  },
@@ -1232,16 +1232,16 @@ var Dt = class {
1232
1232
  }
1233
1233
  });
1234
1234
  this._modules = a;
1235
- let s = a.getItems();
1236
- if (s.length === 0) return Promise.resolve(e.EmptyArray);
1237
- let c = s.length;
1238
- for (let e = 0; e < c; e++) {
1239
- let n = s[e];
1235
+ let o = a.getItems();
1236
+ if (o.length === 0) return Promise.resolve(r.EmptyArray);
1237
+ let s = o.length;
1238
+ for (let t = 0; t < s; t++) {
1239
+ let n = o[t];
1240
1240
  try {
1241
- let e = await n.getFunctions().search({ type: "autoRun" }), r = e.length;
1242
- for (let n = 0; n < r; n++) await e[n].execute(t);
1241
+ let t = await n.getFunctions().search({ type: "autoRun" }), r = t.length;
1242
+ for (let n = 0; n < r; n++) await t[n].execute(e);
1243
1243
  } catch (e) {
1244
- o.error("Error executing autoRun script:", e);
1244
+ l.error("Error executing autoRun script:", e);
1245
1245
  }
1246
1246
  }
1247
1247
  }
@@ -1257,9 +1257,9 @@ var Dt = class {
1257
1257
  if (!e) throw Error("Scripts is initializing.");
1258
1258
  return e.toJSON();
1259
1259
  }
1260
- }, jt = class {
1260
+ }, Mt = class {
1261
1261
  constructor(e, t, n, r) {
1262
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? l.EmptyCell, this._sheet = new E({
1262
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? f.EmptyCell, this._sheet = new E({
1263
1263
  runtime: e,
1264
1264
  styles: this._styles,
1265
1265
  container: {
@@ -1279,35 +1279,35 @@ var Dt = class {
1279
1279
  e.includes(r) && delete i[r];
1280
1280
  }
1281
1281
  }
1282
- let a = se(i.fontFamily);
1282
+ let a = ze(i.fontFamily);
1283
1283
  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;
1284
- let o = x(i.textDecoration);
1285
- r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = v(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = ne(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = P.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = P.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = P.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = w.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = w.VerticalAlignment.Sub : r.alignment.vertical = Ue(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = P.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" ? P.Overflow.Visible : P.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = P.Overflow.Shrink);
1284
+ let o = Ie(i.textDecoration);
1285
+ r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = w(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = ue(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 = k.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = k.VerticalAlignment.Sub : r.alignment.vertical = Ve(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);
1286
1286
  let s = null;
1287
1287
  if (i.background ? s = i.background : i.backgroundColor && (s = i.backgroundColor), s && (r.fill = { color: s }), i.msoPattern) {
1288
- let e = ae(i.msoPattern);
1289
- e && (e.patternType === N.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== N.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1288
+ let e = ve(i.msoPattern);
1289
+ e && (e.patternType === Ce.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== Ce.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1290
1290
  }
1291
- i.msoRotate !== void 0 && (r.alignment.rotation = Oe(i.msoRotate));
1291
+ i.msoRotate !== void 0 && (r.alignment.rotation = se(i.msoRotate));
1292
1292
  let c = (e, t) => {
1293
1293
  e && (r.border ||= {}, r.border[e] = t);
1294
1294
  };
1295
1295
  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);
1296
1296
  let l = r.numberFormat;
1297
- i.msoNumberFormat && (l = He(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = A.Styles.lookupStyle(r.numberFormat).formatType === A.Type.Number ? null : A.Type.Number : l === "Percent" && (l = A.Styles.lookupStyle(r.numberFormat).formatType === A.Type.Percentage ? null : A.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1297
+ i.msoNumberFormat && (l = ce(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = O.Styles.lookupStyle(r.numberFormat).formatType === O.Type.Number ? null : O.Type.Number : l === "Percent" && (l = O.Styles.lookupStyle(r.numberFormat).formatType === O.Type.Percentage ? null : O.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1298
1298
  }
1299
1299
  onCell(e, t, n, r, i) {
1300
1300
  let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
1301
1301
  if (typeof o.value == "string" && o.value.length === 0 && (o.value = void 0), a && this.applyCSSStyle(o, a), i?.tagName.toUpperCase() === "TD") {
1302
1302
  let e = o.style, t = e?.font ?? {};
1303
- (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = w.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = w.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = w.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = w.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
1303
+ (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = k.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = k.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = k.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = k.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
1304
1304
  let n = i.querySelectorAll("a");
1305
1305
  if (n.length > 0) {
1306
1306
  let e = n[0].getAttribute("href");
1307
1307
  e && (o.hyperlink = e);
1308
1308
  }
1309
1309
  }
1310
- if (!l.isSingleCell(e)) {
1310
+ if (!f.isSingleCell(e)) {
1311
1311
  let t = {
1312
1312
  rowStart: this._topLeft.rowIndex + e.rowStart,
1313
1313
  colStart: this._topLeft.colIndex + e.colStart,
@@ -1318,7 +1318,7 @@ var Dt = class {
1318
1318
  }
1319
1319
  if (o.value === void 0 && !o.style && Object.keys(o).length <= 1) return;
1320
1320
  let s = this._builder, c = this._topLeft;
1321
- if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !l.isSingleCell(e) && a.msoIgnore) {
1321
+ if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !f.isSingleCell(e) && a.msoIgnore) {
1322
1322
  if (a.msoIgnore.includes("colspan")) {
1323
1323
  let t = {};
1324
1324
  a && this.applyCSSStyle(t, a);
@@ -1356,7 +1356,7 @@ var Dt = class {
1356
1356
  min: this._topLeft.rowIndex + e,
1357
1357
  max: this._topLeft.rowIndex + e + t - 1
1358
1358
  },
1359
- update: { size: o * w.getDeviceScale() }
1359
+ update: { size: o * k.getDeviceScale() }
1360
1360
  });
1361
1361
  }
1362
1362
  onColumn(e, t, n, r) {
@@ -1368,7 +1368,7 @@ var Dt = class {
1368
1368
  min: this._topLeft.colIndex + e,
1369
1369
  max: this._topLeft.colIndex + e + t - 1
1370
1370
  },
1371
- update: { size: o * w.getDeviceScale() }
1371
+ update: { size: o * k.getDeviceScale() }
1372
1372
  });
1373
1373
  }
1374
1374
  onDone() {
@@ -1379,9 +1379,9 @@ var Dt = class {
1379
1379
  sheet() {
1380
1380
  return this._sheet;
1381
1381
  }
1382
- }, Mt = class {
1382
+ }, Nt = class {
1383
1383
  constructor(e) {
1384
- if (!e) throw new r("snapshot is required.");
1384
+ if (!e) throw new o("snapshot is required.");
1385
1385
  this._snapshot = e;
1386
1386
  }
1387
1387
  getItemType() {
@@ -1411,10 +1411,10 @@ var Dt = class {
1411
1411
  get isClipboardItem() {
1412
1412
  return !0;
1413
1413
  }
1414
- }, Nt = class {
1415
- constructor(e, t, n, i, a) {
1416
- if (this._parsed = void 0, this._runtime = e, !t) throw new r("nativeItems are required.");
1417
- this._topLeft = n ?? l.EmptyCell, this._native = t, this._markOptions = Object.freeze(i ?? {}), this._styles = a;
1414
+ }, Pt = class {
1415
+ constructor(e, t, n, r, i) {
1416
+ if (this._parsed = void 0, this._runtime = e, !t) throw new o("nativeItems are required.");
1417
+ this._topLeft = n ?? f.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1418
1418
  }
1419
1419
  getItemType() {
1420
1420
  return "range";
@@ -1455,17 +1455,17 @@ var Dt = class {
1455
1455
  async parse() {
1456
1456
  let e, t = this._native?.text, n = this._native.html;
1457
1457
  if (n === null && t && t.includes("<table")) try {
1458
- let e = new DOMParser().parseFromString(t, d.Html), r = e.querySelector("parsererror");
1459
- if (r) throw new f("Unable to parse: " + r);
1458
+ let e = new DOMParser().parseFromString(t, m.Html), r = e.querySelector("parsererror");
1459
+ if (r) throw new h("Unable to parse: " + r);
1460
1460
  n = e, t = null;
1461
1461
  } catch {
1462
1462
  console.warn("Discovered text as html table but could could not parse.");
1463
1463
  }
1464
1464
  try {
1465
- let r = new jt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text");
1465
+ let r = new Mt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text");
1466
1466
  await r.sheet().getCalculation().ready(), await r.sheet().getCalculation().stop();
1467
- let i, a = await Promise.resolve(t ? C(t) : [[]]);
1468
- if (ee(n, a, r) ? (e = r.sheet(), i = e.getUsedRange()) : n = null, i) return this._parsed = {
1467
+ let i, a = await Promise.resolve(t ? we(t) : [[]]);
1468
+ if (be(n, a, r) ? (e = r.sheet(), i = e.getUsedRange()) : n = null, i) return this._parsed = {
1469
1469
  copyTo: async (e, t) => (await e.copyFrom(i, t))?.getCoords() ?? null,
1470
1470
  getCoords: () => i.getCoords(),
1471
1471
  getSource: () => e,
@@ -1480,7 +1480,7 @@ var Dt = class {
1480
1480
  async copyTo(t, n) {
1481
1481
  let r = t.getSheet(), i = await e._native.image.arrayBuffer(), a = await r.getMovables().addPicture({ source: { buffer: i } }, {
1482
1482
  type: "picture",
1483
- description: m("op.copyImageFromClipboard")
1483
+ description: _("op.copyImageFromClipboard")
1484
1484
  });
1485
1485
  return r.getView().selectMovables([a]), null;
1486
1486
  },
@@ -1492,7 +1492,7 @@ var Dt = class {
1492
1492
  get isClipboardItem() {
1493
1493
  return !0;
1494
1494
  }
1495
- }, X = {
1495
+ }, Y = {
1496
1496
  showFormulaBar: !0,
1497
1497
  showTabs: !0,
1498
1498
  tabRatio: 600,
@@ -1500,9 +1500,9 @@ var Dt = class {
1500
1500
  showVerticalScrollbar: !0,
1501
1501
  showStatusBar: !0,
1502
1502
  activeSheetId: 0
1503
- }, Pt = class {
1503
+ }, Ft = class {
1504
1504
  constructor(e) {
1505
- this._emitter = new k(this), this._state = { ...X }, e?.json && this._fromJSON(e?.json);
1505
+ this._emitter = new x(this), this._state = { ...Y }, e?.json && this._fromJSON(e?.json);
1506
1506
  }
1507
1507
  isShowFormulaBar() {
1508
1508
  return this._state.showFormulaBar;
@@ -1554,7 +1554,7 @@ var Dt = class {
1554
1554
  let e = {}, t = Object.keys(this._state), n = t.length;
1555
1555
  for (let r = 0; r < n; r++) {
1556
1556
  let n = t[r], i = this._state[n];
1557
- i != null && i !== X[n] && (e[n] = i);
1557
+ i != null && i !== Y[n] && (e[n] = i);
1558
1558
  }
1559
1559
  return Object.keys(e).length === 0 && (e = null), e;
1560
1560
  }
@@ -1564,7 +1564,7 @@ var Dt = class {
1564
1564
  }
1565
1565
  update(e, t = !0) {
1566
1566
  this._state = {
1567
- ...X,
1567
+ ...Y,
1568
1568
  ...this._state,
1569
1569
  ...e
1570
1570
  }, t && this._emitter.notify("onViewChange");
@@ -1576,13 +1576,13 @@ var Dt = class {
1576
1576
  let e = this.toJSON();
1577
1577
  return e ? JSON.stringify(e) : "DefaultWorkbookView";
1578
1578
  }
1579
- }, Ft = Object.freeze({
1579
+ }, It = Object.freeze({
1580
1580
  structure: !1,
1581
1581
  windows: !1,
1582
1582
  revision: !1,
1583
1583
  password: null,
1584
1584
  revisionsPassword: null
1585
- }), It = class extends _e {
1585
+ }), Lt = class extends te {
1586
1586
  isWindowsAllowed() {
1587
1587
  return this._isPropertyAllowed("windows");
1588
1588
  }
@@ -1605,7 +1605,7 @@ var Dt = class {
1605
1605
  let n = Object.keys(t), r = n.length;
1606
1606
  for (let i = 0; i < r; i++) {
1607
1607
  let r = n[i], a = t[r];
1608
- a != null && a !== Ft[r] && (e[r] = a);
1608
+ a != null && a !== It[r] && (e[r] = a);
1609
1609
  }
1610
1610
  }
1611
1611
  return super._toJSON(e);
@@ -1614,10 +1614,10 @@ var Dt = class {
1614
1614
  return "[WorkbookProtection]";
1615
1615
  }
1616
1616
  };
1617
- function Z(e) {
1618
- return s("error.workbook.invalidSheetKey", { key: e });
1617
+ function X(e) {
1618
+ return u("error.workbook.invalidSheetKey", { key: e });
1619
1619
  }
1620
- var Lt, Rt, zt = class {
1620
+ var Rt, zt, Bt = class {
1621
1621
  constructor(e, t) {
1622
1622
  this._add = e, this._get = t;
1623
1623
  }
@@ -1636,39 +1636,39 @@ var Lt, Rt, zt = class {
1636
1636
  getCount() {
1637
1637
  return this._get().length;
1638
1638
  }
1639
- }, Q = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), Bt = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1640
- function Vt(e) {
1641
- let t = s(m("workbook.defaultSheetName"), { n: e + 1 });
1639
+ }, Z = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), Vt = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1640
+ function Ht(e) {
1641
+ let t = u(_("workbook.defaultSheetName"), { n: e + 1 });
1642
1642
  return t === "workbook.defaultSheetName" ? `Sheet${e + 1}` : t;
1643
1643
  }
1644
- function Ht(e, t) {
1644
+ function Ut(e, t) {
1645
1645
  return {
1646
- ...ce,
1646
+ ...je,
1647
1647
  getSheet: () => null,
1648
- toString: () => O(e, t)
1648
+ toString: () => F(e, t)
1649
1649
  };
1650
1650
  }
1651
- function Ut(e, t = !1) {
1652
- if (!e) throw Error(s("error.workbook.sheetNameBlank"));
1653
- if (Q.test(e)) {
1651
+ function Wt(e, t = !1) {
1652
+ if (!e) throw Error(u("error.workbook.sheetNameBlank"));
1653
+ if (Z.test(e)) {
1654
1654
  if (!t) throw Error(function(e) {
1655
- return e ? s("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : s("error.workbook.sheetNameInvalidChars");
1655
+ return e ? u("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : u("error.workbook.sheetNameInvalidChars");
1656
1656
  }(e));
1657
- e = e.replace(Q, "");
1657
+ e = e.replace(Z, "");
1658
1658
  }
1659
- if (e.length === 0) throw Error(s("error.workbook.sheetNameBlank"));
1659
+ if (e.length === 0) throw Error(u("error.workbook.sheetNameBlank"));
1660
1660
  let n = e.length;
1661
1661
  if (n > 31) {
1662
- if (!t) throw Error(s("error.workbook.sheetNameTooLong"));
1662
+ if (!t) throw Error(u("error.workbook.sheetNameTooLong"));
1663
1663
  e = e.substring(0, 31);
1664
1664
  }
1665
1665
  if (e.charAt(0) === "'" || e.charAt(n - 1) === "'") {
1666
- if (!t) throw Error(s("error.workbook.sheetNameQuotes"));
1666
+ if (!t) throw Error(u("error.workbook.sheetNameQuotes"));
1667
1667
  e = e.replace(/^'|'$/g, "");
1668
1668
  }
1669
1669
  return e;
1670
1670
  }
1671
- var Wt, $ = class e extends Me {
1671
+ var Gt, Q = class e extends me {
1672
1672
  constructor(e, t, n, r) {
1673
1673
  super(e, t, r), this._workbook = n;
1674
1674
  }
@@ -1679,23 +1679,23 @@ var Wt, $ = class e extends Me {
1679
1679
  let r = this._options;
1680
1680
  return n && (r = {
1681
1681
  ...this._options,
1682
- getOptions: R(this._options?.getOptions, n)
1682
+ getOptions: M(this._options?.getOptions, n)
1683
1683
  }), new e(t, this._internal, this._workbook, r);
1684
1684
  }
1685
1685
  _createRange(e, t) {
1686
- let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, T.Visibility.VeryHidden) : null;
1686
+ let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, R.Visibility.VeryHidden) : null;
1687
1687
  if (!r) {
1688
1688
  let e = this._workbook.getSelectedSheet();
1689
- return delete n?.scope, Ht(n, n ? {
1690
- scope: F,
1689
+ return delete n?.scope, Ut(n, n ? {
1690
+ scope: C,
1691
1691
  ...e.getEntireRange().getCoords()
1692
1692
  } : null);
1693
1693
  }
1694
1694
  let i = this._options;
1695
1695
  return t && (i = {
1696
1696
  ...this._options,
1697
- getOptions: R(this._options.getOptions, t)
1698
- }), new Gt(e, S(r.sheet), this._workbook, i);
1697
+ getOptions: M(this._options.getOptions, t)
1698
+ }), new Kt(e, A(r.sheet), this._workbook, i);
1699
1699
  }
1700
1700
  async select(e) {
1701
1701
  let t = [], n = null, r = this.getCoords();
@@ -1719,15 +1719,15 @@ var Wt, $ = class e extends Me {
1719
1719
  }
1720
1720
  getAddress(e) {
1721
1721
  let t = this._internal.getSheet(), n = t.getEntireRange().getCoords();
1722
- return Ie(this.getCoords(), {
1722
+ return Me(this.getCoords(), {
1723
1723
  ...n,
1724
1724
  scope: t.getName()
1725
- }, O, Be, e);
1725
+ }, F, ee, e);
1726
1726
  }
1727
1727
  toString() {
1728
1728
  return this.getAddress();
1729
1729
  }
1730
- }, Gt = class e extends Se {
1730
+ }, Kt = class e extends Ne {
1731
1731
  constructor(e, t, n, r) {
1732
1732
  super(e, t, r), this._workbook = n;
1733
1733
  }
@@ -1735,17 +1735,17 @@ var Wt, $ = class e extends Me {
1735
1735
  let n = this._options;
1736
1736
  return t && (n = {
1737
1737
  ...this._options,
1738
- getOptions: R(this._options?.getOptions, t)
1739
- }), new $(e, this._internal, this._workbook, n);
1738
+ getOptions: M(this._options?.getOptions, t)
1739
+ }), new Q(e, this._internal, this._workbook, n);
1740
1740
  }
1741
1741
  _createRange(t, n) {
1742
1742
  let r = this._internal;
1743
- if (!t) return ze(r.getSheet(), r.getSheet().getEntireCoords());
1744
- if (r.validateCoords(t), r.getSheet().isClosed()) return ze(null, r.getSheet().getEntireCoords(), t);
1743
+ if (!t) return T(r.getSheet(), r.getSheet().getEntireCoords());
1744
+ if (r.validateCoords(t), r.getSheet().isClosed()) return T(null, r.getSheet().getEntireCoords(), t);
1745
1745
  let i = this._options;
1746
1746
  return n && (i = {
1747
1747
  ...this._options,
1748
- getOptions: R(this._options?.getOptions, n)
1748
+ getOptions: M(this._options?.getOptions, n)
1749
1749
  }), new e(t, this._internal, this._workbook, i);
1750
1750
  }
1751
1751
  addListener(e, t) {
@@ -1758,7 +1758,7 @@ var Wt, $ = class e extends Me {
1758
1758
  }
1759
1759
  getAddress(e) {
1760
1760
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
1761
- return O(this.getCoords(), {
1761
+ return F(this.getCoords(), {
1762
1762
  ...n,
1763
1763
  scope: t.getName()
1764
1764
  });
@@ -1766,28 +1766,28 @@ var Wt, $ = class e extends Me {
1766
1766
  toString() {
1767
1767
  return this.getAddress();
1768
1768
  }
1769
- }, Kt = class {
1770
- constructor(t) {
1769
+ }, $ = class {
1770
+ constructor(e) {
1771
1771
  this._lastTransactionUUID = null, this._closed = !1, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._isDate1904 = !1, this._locale = null, this._localeOverrides = null;
1772
- let n = typeof t == "string" ? { origin: t } : { ...t }, r = n.origin;
1773
- this._origin = typeof r == "string" ? new z(null, { name: r }) : r ?? new z(null), delete n.origin, this._lastOriginName = this._origin.getName(), this._listenerOrigin = this._origin.addListeners({ onChange: () => {
1772
+ let t = typeof e == "string" ? { origin: e } : { ...e }, n = t.origin;
1773
+ this._origin = typeof n == "string" ? new z(null, { name: n }) : n ?? new z(null), delete t.origin, this._lastOriginName = this._origin.getName(), this._listenerOrigin = this._origin.addListeners({ onChange: () => {
1774
1774
  if (this._closed) return;
1775
1775
  let e = this._origin.getName();
1776
1776
  e !== this._lastOriginName && (this._lastOriginName = e, this._emitter.notify("onNameChange"));
1777
1777
  } });
1778
- let i = n.json;
1779
- delete n.json, this._transactions = n.transactions ?? new ge(), this._id = this._transactions.create(), this._ownTransactions = !n.transactions, this._emitter = new k(this, this._transactions), this._runtime = n.runtime ?? new te("Workbook Runtime", {
1778
+ let i = t.json;
1779
+ delete t.json, this._transactions = t.transactions ?? new fe(), this._id = this._transactions.create(), this._ownTransactions = !t.transactions, this._emitter = new x(this, this._transactions), this._runtime = t.runtime ?? new xe("Workbook Runtime", {
1780
1780
  isDate1904: () => this._isDate1904,
1781
- getLocale: () => this._locale ?? Le() ?? ve(),
1781
+ getLocale: () => this._locale ?? ie() ?? de(),
1782
1782
  getLocaleOverrides: () => this._localeOverrides
1783
- }), this._listenerLanguage = c.addChangeListener(() => {
1783
+ }), this._listenerLanguage = d.addChangeListener(() => {
1784
1784
  this._locale !== null || this._closed || this._notifyAllChange();
1785
1785
  });
1786
- let a = this, o = this._beginCommit({ description: m(i ? "op.openWorkbook" : "op.newWorkbook") });
1786
+ let a = this, o = this._beginCommit({ description: _(i ? "op.openWorkbook" : "op.newWorkbook") });
1787
1787
  try {
1788
- this._strings = n.strings ?? new xe(), this._ownStrings = !n.strings, this._externalBooks = new Ot({ json: i?.externalBooks }), this._resources = n.resources ?? new le(), this._ownResources = !n.resources, this._createSheetName = n.createSheetNameCallback ?? Vt;
1789
- let t = n.createSheetCallback;
1790
- t ||= (e) => new E(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, n, r, i, o) => {
1788
+ this._strings = t.strings ?? new ae(), this._ownStrings = !t.strings, this._externalBooks = new kt({ json: i?.externalBooks }), this._resources = t.resources ?? new b(), this._ownResources = !t.resources, this._createSheetName = t.createSheetNameCallback ?? Ht;
1789
+ let e = t.createSheetCallback;
1790
+ e ||= (e) => new E(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, i, o) => {
1791
1791
  let s = null, c = {
1792
1792
  runtime: a._runtime,
1793
1793
  readonly: a._options.readonly ?? !1,
@@ -1803,12 +1803,12 @@ var Wt, $ = class e extends Me {
1803
1803
  calculation: a._calculation,
1804
1804
  resolveRange: (e) => a._options.resolveRange?.(e) ?? a.getRange(e),
1805
1805
  container: {
1806
- beforeFromJSON: (t) => {
1807
- s = t, a._addSheetRef({
1806
+ beforeFromJSON: (e) => {
1807
+ s = e, a._addSheetRef({
1808
1808
  name: n,
1809
- id: e,
1810
- visibility: r ?? T.Visibility.Visible,
1811
- sheet: t
1809
+ id: t,
1810
+ visibility: r ?? R.Visibility.Visible,
1811
+ sheet: e
1812
1812
  }, i);
1813
1813
  },
1814
1814
  getName: () => {
@@ -1818,30 +1818,30 @@ var Wt, $ = class e extends Me {
1818
1818
  setName: (e, t) => {
1819
1819
  a._getSheetRef(s) && a._setSheetName(s, e, t);
1820
1820
  },
1821
- setNameChangeCallback: (t) => {
1822
- a._sheetOnNameChange.set(e, t);
1821
+ setNameChangeCallback: (e) => {
1822
+ a._sheetOnNameChange.set(t, e);
1823
1823
  },
1824
1824
  getVisibility: () => {
1825
1825
  let e = a._getSheetRef(s);
1826
- return e ? e.visibility : T.Visibility.Visible;
1826
+ return e ? e.visibility : R.Visibility.Visible;
1827
1827
  },
1828
1828
  setVisibility: (e, t) => {
1829
1829
  a._setSheetVisibility(s, e, t);
1830
1830
  },
1831
- setVisibilityCallback: (t) => {
1832
- a._sheetOnVisibilityChange.set(e, t);
1831
+ setVisibilityCallback: (e) => {
1832
+ a._sheetOnVisibilityChange.set(t, e);
1833
1833
  },
1834
1834
  duplicate: () => a._duplicateSheet(s),
1835
1835
  getIndex: () => {
1836
1836
  let e = a._getSheetRef(s);
1837
- return e ? a._getOffsetForId(e.id, a._getSheetRefs(T.Visibility.VeryHidden)) : i;
1837
+ return e ? a._getOffsetForId(e.id, a._getSheetRefs(R.Visibility.VeryHidden)) : i;
1838
1838
  },
1839
1839
  setIndex: (e, t) => {
1840
- let n = a._getSheetRef(s, T.Visibility.VeryHidden);
1840
+ let n = a._getSheetRef(s, R.Visibility.VeryHidden);
1841
1841
  return !!n && (a._moveSheet(n, e, t), !0);
1842
1842
  },
1843
- setIndexCallback: (t) => {
1844
- a._sheetOnIndexChange.set(e, t);
1843
+ setIndexCallback: (e) => {
1844
+ a._sheetOnIndexChange.set(t, e);
1845
1845
  },
1846
1846
  requestSelect: async () => (a._setSelectedSheet(s), await this._emitter.notify("onRequestSelect", {
1847
1847
  source: a,
@@ -1850,19 +1850,20 @@ var Wt, $ = class e extends Me {
1850
1850
  }), a.getSelectedSheet() === s)
1851
1851
  }
1852
1852
  };
1853
- return o && (c.json = o), s = t(c, n, i, r), s;
1854
- }, this._namedTableSource = new fe({
1855
- getSheets: () => a._sheets ? a.getSheets().getItems() : e.EmptyArray,
1853
+ return o && (c.json = o), s = e(c, n, i, r), s;
1854
+ }, this._namedTableSource = new Ee({
1855
+ getSheets: () => a._sheets ? a.getSheets().getItems() : r.EmptyArray,
1856
1856
  addSheetsListener: (e, t) => a.addListeners({ onSheetsChange: e }, t)
1857
- }), this._names = n.names ?? new oe({
1857
+ }), this._names = t.names ?? new pe({
1858
1858
  addressToRanges: (e) => a.getRanges(e),
1859
1859
  getCurrentScope: () => a.getSelectedSheet().getName(),
1860
1860
  isReadOnly: () => a._options.readonly ?? !1,
1861
1861
  transactions: a._transactions,
1862
- getSources: () => a._calculation ? [a._calculation.getNamedFormulas(), a._namedTableSource] : e.EmptyArray
1863
- }), this._ownNames = !n.names, this._calculation = n.calculation ?? new ie({
1862
+ getSources: () => a._calculation ? [a._calculation.getNamedFormulas(), a._namedTableSource] : r.EmptyArray
1863
+ }), this._ownNames = !t.names, this._calculation = t.calculation ?? new re({
1864
1864
  runtime: a._runtime,
1865
- functions: n.functions,
1865
+ functions: t.functions,
1866
+ json: i?.calc,
1866
1867
  getActiveCell: () => {
1867
1868
  let e = a.getSelectedSheet(), t = e?.getSelectedRange()?.getCoords();
1868
1869
  return t ? {
@@ -1877,9 +1878,9 @@ var Wt, $ = class e extends Me {
1877
1878
  getSheetIndex: (e) => {
1878
1879
  if (e === void 0) {
1879
1880
  let e = a.getSelectedSheet();
1880
- return e ? this._getSheetRefs(T.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1881
+ return e ? this._getSheetRefs(R.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1881
1882
  }
1882
- let t = this._getSheetRefs(T.Visibility.VeryHidden);
1883
+ let t = this._getSheetRefs(R.Visibility.VeryHidden);
1883
1884
  e = e.toLowerCase();
1884
1885
  let n = t.length;
1885
1886
  for (let r = 0; r < n; r++) if (t[r].name.toLowerCase() === e) return r;
@@ -1889,7 +1890,7 @@ var Wt, $ = class e extends Me {
1889
1890
  if (!t || t.length === 0) return -1;
1890
1891
  let n = t[0].getRanges?.()?.getCoords()?.[0]?.scope;
1891
1892
  if (!n) return -1;
1892
- let r = this._getSheetRefs(T.Visibility.VeryHidden);
1893
+ let r = this._getSheetRefs(R.Visibility.VeryHidden);
1893
1894
  n = n.toLowerCase();
1894
1895
  let i = r.length;
1895
1896
  for (let e = 0; e < i; e++) if (r[e].name.toLowerCase() === n) return e;
@@ -1898,9 +1899,9 @@ var Wt, $ = class e extends Me {
1898
1899
  }
1899
1900
  return -1;
1900
1901
  },
1901
- getSheetCount: () => a.getSheets().getItems({ visibility: T.Visibility.VeryHidden }).length,
1902
+ getSheetCount: () => a.getSheets().getItems({ visibility: R.Visibility.VeryHidden }).length,
1902
1903
  getSheetById: (e) => {
1903
- let t = a.getSheets().getItems({ visibility: T.Visibility.VeryHidden }), n = t.length;
1904
+ let t = a.getSheets().getItems({ visibility: R.Visibility.VeryHidden }), n = t.length;
1904
1905
  for (let r = 0; r < n; r++) if (t[r].getId() === e) return t[r];
1905
1906
  return null;
1906
1907
  },
@@ -1915,17 +1916,17 @@ var Wt, $ = class e extends Me {
1915
1916
  strings: a._strings,
1916
1917
  transactions: a._transactions,
1917
1918
  names: i?.names,
1918
- formulaTransform: n.formulaTransform
1919
- }), this._ownCalculation = !n.calculation, this._scripts = this._createScripts(), this._ownNames = !n.names, this._options = Object.freeze({ ...n });
1920
- let r = async () => {
1919
+ formulaTransform: t.formulaTransform
1920
+ }), this._ownCalculation = !t.calculation, this._scripts = this._createScripts(), this._ownNames = !t.names, this._options = Object.freeze({ ...t });
1921
+ let n = async () => {
1921
1922
  this._ownCalculation && await this._calculation.start(), await this._scripts.start(), this._starting = null;
1922
1923
  };
1923
- this._starting = r(), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new zt((e) => a._addSheetOptions(e), (t, n) => {
1924
- if (t) {
1925
- let r = this._getSheetRef(t, n);
1926
- return r ? [r.sheet] : e.EmptyArray;
1924
+ this._starting = n(), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new Bt((e) => a._addSheetOptions(e), (e, t) => {
1925
+ if (e) {
1926
+ let n = this._getSheetRef(e, t);
1927
+ return n ? [n.sheet] : r.EmptyArray;
1927
1928
  }
1928
- return this._getSheets(n);
1929
+ return this._getSheets(t);
1929
1930
  }), this._ownCalculation && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), o.commit({ forceAmend: this._ownTransactions });
1930
1931
  } catch (e) {
1931
1932
  throw o.rollback(), e;
@@ -1936,7 +1937,7 @@ var Wt, $ = class e extends Me {
1936
1937
  let e = this._getSheetRefs();
1937
1938
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
1938
1939
  let t = this._options;
1939
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new be().getDefaultTheme(), this._styles = t?.styles ?? new we(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Pt()), this._listenerProtection?.(), this._protection = new It(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1940
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new Te().getDefaultTheme(), this._styles = t?.styles ?? new Oe(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Ft()), this._listenerProtection?.(), this._protection = new Lt(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1940
1941
  n._emitter.notify("onProtectionChange");
1941
1942
  } });
1942
1943
  let n = this;
@@ -1990,8 +1991,8 @@ var Wt, $ = class e extends Me {
1990
1991
  return this._view;
1991
1992
  }
1992
1993
  setView(e) {
1993
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
1994
- if (!e) throw new f(s("error.sheet.emptyView"));
1994
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
1995
+ if (!e) throw new h(u("error.sheet.emptyView"));
1995
1996
  this._listenerWorkbookView?.();
1996
1997
  let t = this, n = -1;
1997
1998
  return this._listenerWorkbookView = e.addListeners({ onViewChange: (e) => {
@@ -2003,7 +2004,7 @@ var Wt, $ = class e extends Me {
2003
2004
  return this._runtime;
2004
2005
  }
2005
2006
  setDate1904(e) {
2006
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2007
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2007
2008
  return this._isDate1904 = e, this._notifyAllChange(), this;
2008
2009
  }
2009
2010
  getLocale() {
@@ -2013,11 +2014,11 @@ var Wt, $ = class e extends Me {
2013
2014
  return this._locale;
2014
2015
  }
2015
2016
  setLocale(e) {
2016
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2017
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2017
2018
  if (e) try {
2018
2019
  new Intl.Locale(e);
2019
2020
  } catch {
2020
- throw Error(s("error.workbook.invalidLocale", { locale: e }));
2021
+ throw Error(u("error.workbook.invalidLocale", { locale: e }));
2021
2022
  }
2022
2023
  return this._locale === e || (this._locale = e, this._notifyAllChange()), this;
2023
2024
  }
@@ -2025,7 +2026,7 @@ var Wt, $ = class e extends Me {
2025
2026
  return this._localeOverrides;
2026
2027
  }
2027
2028
  setLocaleOverrides(e) {
2028
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2029
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2029
2030
  let t = e && Object.keys(e).length > 0 ? e : null;
2030
2031
  return this._localeOverrides = t, this._notifyAllChange(), this;
2031
2032
  }
@@ -2048,8 +2049,8 @@ var Wt, $ = class e extends Me {
2048
2049
  return this._theme;
2049
2050
  }
2050
2051
  setTheme(e) {
2051
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2052
- if (!e) throw new f(s("error.workbook.notSetValue"));
2052
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2053
+ if (!e) throw new h(u("error.workbook.notSetValue"));
2053
2054
  let t = this._theme;
2054
2055
  return this._theme = e, this.getStyles().setTheme(e), this._emitter.notify("onThemeChange"), t;
2055
2056
  }
@@ -2060,19 +2061,19 @@ var Wt, $ = class e extends Me {
2060
2061
  let e = this._getSheetRef(this.getSelectedSheetIndex());
2061
2062
  return e ? e?.sheet : null;
2062
2063
  }
2063
- getSheet(e, n = T.Visibility.Visible) {
2064
+ getSheet(e, t = R.Visibility.Visible) {
2064
2065
  if (e === void 0) return this.getSelectedSheet();
2065
- if (!e) throw Error(s("error.workbook.sheetNameNotProvided"));
2066
- let r = this._getSheetRef(e, n);
2067
- if (!r) throw new t(s("error.workbook.sheetNameNotFound", { sheetName: e }));
2068
- return r.sheet;
2069
- }
2070
- getSheetAt(e, n = T.Visibility.Visible) {
2071
- let r = this._getSheetRef(e, n);
2072
- if (!r) throw new t(function(e) {
2073
- return s("error.workbook.sheetIndexNotFound", { index: e });
2066
+ if (!e) throw Error(u("error.workbook.sheetNameNotProvided"));
2067
+ let n = this._getSheetRef(e, t);
2068
+ if (!n) throw new i(u("error.workbook.sheetNameNotFound", { sheetName: e }));
2069
+ return n.sheet;
2070
+ }
2071
+ getSheetAt(e, t = R.Visibility.Visible) {
2072
+ let n = this._getSheetRef(e, t);
2073
+ if (!n) throw new i(function(e) {
2074
+ return u("error.workbook.sheetIndexNotFound", { index: e });
2074
2075
  }(e));
2075
- return r.sheet;
2076
+ return n.sheet;
2076
2077
  }
2077
2078
  getSheets() {
2078
2079
  return this._sheets;
@@ -2080,32 +2081,32 @@ var Wt, $ = class e extends Me {
2080
2081
  addSheet(e) {
2081
2082
  return this.getSheets().add(e);
2082
2083
  }
2083
- _getSheets(e = T.Visibility.Visible) {
2084
+ _getSheets(e = R.Visibility.Visible) {
2084
2085
  let t = this._getSheetRefs(e), n = [], r = t.length;
2085
2086
  for (let e = 0; e < r; e++) n.push(t[e].sheet);
2086
2087
  return n;
2087
2088
  }
2088
- _getSheetRefs(t = T.Visibility.Visible) {
2089
- let n = this._getState();
2090
- return n ? t === T.Visibility.Visible ? n.sheetRefsVisible : t === T.Visibility.Hidden ? n.sheetRefsVisibleAndHidden : t === T.Visibility.VeryHidden ? n.sheetRefsAll : e.EmptyArray : [];
2089
+ _getSheetRefs(e = R.Visibility.Visible) {
2090
+ let t = this._getState();
2091
+ return t ? e === R.Visibility.Visible ? t.sheetRefsVisible : e === R.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === R.Visibility.VeryHidden ? t.sheetRefsAll : r.EmptyArray : [];
2091
2092
  }
2092
- _getSheetRef(e, t = T.Visibility.Visible) {
2093
+ _getSheetRef(e, t = R.Visibility.Visible) {
2093
2094
  let n = null;
2094
2095
  return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof E ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2095
2096
  }
2096
2097
  _validateNewSheetName(e, t = !0) {
2097
2098
  if (e == null) return e;
2098
- if (Ut(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new f(s("error.workbook.nameTaken"));
2099
+ if (Wt(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new h(u("error.workbook.nameTaken"));
2099
2100
  return e.substring(0, 31);
2100
2101
  }
2101
2102
  findValidSheetName(e) {
2102
- e &&= Ut(e, !0);
2103
+ e &&= Wt(e, !0);
2103
2104
  try {
2104
2105
  return function(e, t) {
2105
2106
  try {
2106
2107
  if (t(e)) return e;
2107
2108
  } catch {}
2108
- let n, r, i = Bt.exec(e);
2109
+ let n, r, i = Vt.exec(e);
2109
2110
  for (i === null ? (n = e + " ", r = 1) : (n = e.substring(0, i.index), r = parseFloat(i[1])); r < 256;) {
2110
2111
  r++;
2111
2112
  let e = "(" + r + ")", i = n.substring(0, 31 - e.length) + e;
@@ -2120,15 +2121,15 @@ var Wt, $ = class e extends Me {
2120
2121
  }
2121
2122
  }
2122
2123
  isValidSheetNameCharacter(e) {
2123
- return !Q.test(e);
2124
+ return !Z.test(e);
2124
2125
  }
2125
2126
  _addSheetOptions(e) {
2126
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2127
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2127
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2128
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2128
2129
  let t, n = null;
2129
2130
  t = typeof e == "string" ? { name: e } : typeof e == "number" ? { index: e } : e, t = {
2130
2131
  ...t,
2131
- description: t?.description ?? m("op.addSheet")
2132
+ description: t?.description ?? _("op.addSheet")
2132
2133
  };
2133
2134
  let r = this.beginCommit(t);
2134
2135
  try {
@@ -2146,7 +2147,7 @@ var Wt, $ = class e extends Me {
2146
2147
  });
2147
2148
  }
2148
2149
  if (r.commit({
2149
- description: s("op.addSheetNamed", { name: n.getName() }),
2150
+ description: u("op.addSheetNamed", { name: n.getName() }),
2150
2151
  viewBefore: i,
2151
2152
  viewAfter: a
2152
2153
  }), !1 !== e) {
@@ -2160,8 +2161,8 @@ var Wt, $ = class e extends Me {
2160
2161
  }
2161
2162
  _nextSheetName(e = null) {
2162
2163
  let t = e ? e.toLowerCase() : null, n = this._getState(), r = n.sheetsByLowerCaseName;
2163
- if (e && r.has(t)) throw new f(function(e) {
2164
- return s("error.workbook.nameDuplicate", { sheetName: e });
2164
+ if (e && r.has(t)) throw new h(function(e) {
2165
+ return u("error.workbook.nameDuplicate", { sheetName: e });
2165
2166
  }(e));
2166
2167
  t = (e = this._validateNewSheetName(e)) ? e.toLowerCase() : null;
2167
2168
  let i = n.lastId + 1;
@@ -2173,15 +2174,15 @@ var Wt, $ = class e extends Me {
2173
2174
  }
2174
2175
  _addSheet(e, t = null, n = null) {
2175
2176
  t = this._nextSheetName(t);
2176
- let r = this._getState(), i = this._createSheet(r.lastId, t, T.Visibility.Visible, n, null);
2177
- if (!i) throw new f(s("error.workbook.sheetNameBlank"));
2177
+ let r = this._getState(), i = this._createSheet(r.lastId, t, R.Visibility.Visible, n, null);
2178
+ if (!i) throw new h(u("error.workbook.sheetNameBlank"));
2178
2179
  return e && this._emitter.notify("onSheetsChange"), i;
2179
2180
  }
2180
2181
  _updateSheetRefStates(e) {
2181
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2182
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2182
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2183
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2183
2184
  let t = e, n = [], r = [], i = t.length;
2184
- for (let e = 0; e < i; e++) t[e].visibility === T.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === T.Visibility.Hidden && r.push(t[e]);
2185
+ for (let e = 0; e < i; e++) t[e].visibility === R.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === R.Visibility.Hidden && r.push(t[e]);
2185
2186
  this._updateState({
2186
2187
  sheetRefsAll: t,
2187
2188
  sheetRefsVisible: n,
@@ -2195,16 +2196,16 @@ var Wt, $ = class e extends Me {
2195
2196
  ...r.slice(i)
2196
2197
  ];
2197
2198
  this._updateSheetRefStates(a);
2198
- let o = e.sheet, c = e.name.toLowerCase(), l = new Map(n.refsById);
2199
- l.set(e.id, e);
2200
- let u = new Map(n.refsByLowerCaseName);
2201
- u.set(c, e);
2199
+ let o = e.sheet, s = e.name.toLowerCase(), c = new Map(n.refsById);
2200
+ c.set(e.id, e);
2201
+ let l = new Map(n.refsByLowerCaseName);
2202
+ l.set(s, e);
2202
2203
  let d = new Map(n.refsByInstance);
2203
2204
  d.set(o, e);
2204
2205
  let f = new Map(n.sheetsById);
2205
2206
  f.set(e.id, o);
2206
2207
  let p = new Map(n.sheetsByLowerCaseName);
2207
- p.set(c, o);
2208
+ p.set(s, o);
2208
2209
  let m = this, h = n.listenersSheets;
2209
2210
  if (o !== void 0) {
2210
2211
  let t = o.addListeners({
@@ -2212,9 +2213,9 @@ var Wt, $ = class e extends Me {
2212
2213
  m._validateDeleteSheet(e);
2213
2214
  },
2214
2215
  onDelete(e) {
2215
- let t = m._getSheetRef(e, T.Visibility.VeryHidden);
2216
+ let t = m._getSheetRef(e, R.Visibility.VeryHidden);
2216
2217
  if (!t) return;
2217
- let n = m._beginCommit({ description: s("op.deleteSheet", { name: t.name }) });
2218
+ let n = m._beginCommit({ description: u("op.deleteSheet", { name: t.name }) });
2218
2219
  try {
2219
2220
  let r = m._getState(), i = r.sheetRefsAll, a = m._getOffsetForId(t.id, i), s = [...i];
2220
2221
  s.splice(a, 1), m._updateSheetRefStates(s);
@@ -2256,8 +2257,8 @@ var Wt, $ = class e extends Me {
2256
2257
  }
2257
2258
  let g = n.lastId;
2258
2259
  g !== -1 && (g = Math.max(g, e.id)), this._updateState({ lastId: g }), this._updateState({
2259
- refsById: l,
2260
- refsByLowerCaseName: u,
2260
+ refsById: c,
2261
+ refsByLowerCaseName: l,
2261
2262
  refsByInstance: d,
2262
2263
  sheetsById: f,
2263
2264
  sheetsByLowerCaseName: p,
@@ -2278,55 +2279,55 @@ var Wt, $ = class e extends Me {
2278
2279
  let n = this._view.getActiveSheetId();
2279
2280
  n ??= (this._view.setActiveSheetId(t), t);
2280
2281
  let r = e.refsById.get(n);
2281
- r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === T.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2282
+ r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === R.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2282
2283
  }
2283
2284
  _validateDeleteSheet(e) {
2284
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2285
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2285
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2286
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2286
2287
  let t = this._getSheetRef(e);
2287
- if (!t) throw new f(function(e) {
2288
- return s("error.workbook.deleteKey", { key: e });
2288
+ if (!t) throw new h(function(e) {
2289
+ return u("error.workbook.deleteKey", { key: e });
2289
2290
  }(e));
2290
2291
  let n = this._getState().sheetRefsVisible;
2291
- if (n.length === 1 && n[0].id === t.id) throw new f(s("error.workbook.sheetOne"));
2292
+ if (n.length === 1 && n[0].id === t.id) throw new h(u("error.workbook.sheetOne"));
2292
2293
  }
2293
2294
  _getOffsetForId(e, t) {
2294
2295
  let n = t.length;
2295
2296
  for (let r = 0; r < n; r++) if (t[r].id === e) return r;
2296
- throw new f(s("error.workbook.noVisibleRefs"));
2297
+ throw new h(u("error.workbook.noVisibleRefs"));
2297
2298
  }
2298
2299
  find(e) {
2299
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2300
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2300
2301
  let t = this._getSheets();
2301
2302
  if (t.length === 1) return t[0].find(e);
2302
2303
  typeof e == "string" && (e = { text: e });
2303
- let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, o = t[a], c = !1;
2304
+ let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, o = t[a], s = !1;
2304
2305
  e = {
2305
2306
  ...e,
2306
2307
  disableWrap: !0
2307
2308
  };
2308
- let u, d = o.find(e), f = d.next(), p = !1;
2309
+ let c, l = o.find(e), d = l.next(), p = !1;
2309
2310
  if (e?.from) {
2310
2311
  let t = this._rangesAddressToCoords(e?.from);
2311
- u = {
2312
+ c = {
2312
2313
  colIndex: t[0].colStart,
2313
2314
  rowIndex: t[0].rowStart
2314
2315
  };
2315
2316
  }
2316
- let m = l.createCellComparator(e?.axis, e?.reverse);
2317
+ let m = f.createCellComparator(e?.axis, e?.reverse);
2317
2318
  delete (e = { ...e }).from;
2318
2319
  let h = () => {
2319
- if (!p && f.done && (c && a === i ? p = !0 : n ? (a++, a > t.length - 1 && (a = 0, c = !0)) : (a--, a < 0 && (a = t.length - 1, c = !0)), r && c && (p = !0), p || u || !c || a !== i || (p = !0), !p)) {
2320
- o = t[a], d = o.find(e);
2321
- let n = f;
2322
- return f = d.next(), n;
2320
+ if (!p && d.done && (s && a === i ? p = !0 : n ? (a++, a > t.length - 1 && (a = 0, s = !0)) : (a--, a < 0 && (a = t.length - 1, s = !0)), r && s && (p = !0), p || c || !s || a !== i || (p = !0), !p)) {
2321
+ o = t[a], l = o.find(e);
2322
+ let n = d;
2323
+ return d = l.next(), n;
2323
2324
  }
2324
- if (!p && c && a === i && (f.done || !u || !f.done && m(f.value.getCoords(), u) >= 0) && (p = !0), p) {
2325
- let e = f;
2326
- return f = pe, e;
2325
+ if (!p && s && a === i && (d.done || !c || !d.done && m(d.value.getCoords(), c) >= 0) && (p = !0), p) {
2326
+ let e = d;
2327
+ return d = ye, e;
2327
2328
  }
2328
- let s = f;
2329
- return f = d.next(), s;
2329
+ let u = d;
2330
+ return d = l.next(), u;
2330
2331
  };
2331
2332
  return { next: () => {
2332
2333
  let e = h();
@@ -2335,23 +2336,23 @@ var Wt, $ = class e extends Me {
2335
2336
  } };
2336
2337
  }
2337
2338
  replace(e, t, n) {
2338
- let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, c = !n?.maxCount, l = "", u = typeof t == "string" ? De(t) : null, d = n?.description ?? m("op.replace"), f = this._transactions.beginCommit({ description: d });
2339
+ let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? Be(t) : null, d = n?.description ?? _("op.replace"), f = this._transactions.beginCommit({ description: d });
2339
2340
  try {
2340
- let d = null, p = null, h = e.next();
2341
- for (; !h.done && r < o;) {
2342
- let o = h.value, s = o.getSheet();
2341
+ let d = null, p = null, m = e.next();
2342
+ for (; !m.done && r < o;) {
2343
+ let o = m.value, s = o.getSheet();
2343
2344
  s !== d && (d = s, p !== null && p.apply(), p = d.getEntireRange().createSparseBuilder({
2344
2345
  axis: n?.axis,
2345
2346
  allowUnorderedWrites: !0
2346
2347
  }));
2347
2348
  let c = a ? t(o) : t;
2348
- c !== void 0 && c !== o && (p.push(o, c), r++, i = o), h = e.next();
2349
+ c !== void 0 && c !== o && (p.push(o, c), r++, i = o), m = e.next();
2349
2350
  }
2350
- p?.apply(), r === 1 && o === 1 && i && (l = i.getAddress()), r === 0 ? f.rollback() : f.commit({
2351
- description: n?.description ?? (c ? u === null ? m("op.replaceAll") : s("op.replaceAllWith", { value: u }) : l ? u === null ? s("op.replaceAt", { address: l }) : s("op.replaceAtWith", {
2352
- address: l,
2353
- value: u
2354
- }) : u === null ? m("op.replace") : s("op.replaceWith", { value: u })),
2351
+ p?.apply(), r === 1 && o === 1 && i && (c = i.getAddress()), r === 0 ? f.rollback() : f.commit({
2352
+ description: n?.description ?? (s ? l === null ? _("op.replaceAll") : u("op.replaceAllWith", { value: l }) : c ? l === null ? u("op.replaceAt", { address: c }) : u("op.replaceAtWith", {
2353
+ address: c,
2354
+ value: l
2355
+ }) : l === null ? _("op.replace") : u("op.replaceWith", { value: l })),
2355
2356
  viewAfter: { selection: null }
2356
2357
  });
2357
2358
  } catch (e) {
@@ -2371,87 +2372,87 @@ var Wt, $ = class e extends Me {
2371
2372
  return n === 1 ? 0 : (e === void 0 && (e = this.getSelectedSheetIndex()), (e = Math.max(0, Math.min(e, n - 1))) <= 0 ? n - 1 : e - 1);
2372
2373
  }
2373
2374
  getNextSheet(e) {
2374
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2375
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2375
2376
  let t = this._getSheetRefs();
2376
2377
  return t[this._nextSheetIndex(e, t)]?.sheet ?? null;
2377
2378
  }
2378
2379
  getPreviousSheet(e) {
2379
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2380
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2380
2381
  let t = this._getSheetRefs();
2381
2382
  return t[this._prevSheetIndex(e, t)]?.sheet ?? null;
2382
2383
  }
2383
2384
  async _duplicateSheet(e) {
2384
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2385
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2385
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2386
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2386
2387
  let t = this._getSheetRefs(), n = this.getSelectedSheetIndex(), r = null;
2387
2388
  if (e) {
2388
- if (r = this._getSheetRef(e), !r) throw new f(Z(r));
2389
+ if (r = this._getSheetRef(e), !r) throw new h(X(r));
2389
2390
  } else r = t[n];
2390
2391
  if (!r) return null;
2391
- let i = r.sheet, a = this._strings.beginPersist(), o = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), l = null, u = this.beginCommit(s("op.duplicateNamed", { name: i.getName() }));
2392
+ let i = r.sheet, a = this._strings.beginPersist(), o = this.getResources().beginPersist(), s = this.getStyles().beginPersist(), c = null, l = this.beginCommit(u("op.duplicateNamed", { name: i.getName() }));
2392
2393
  try {
2393
2394
  let e = this._getState().refsByInstance.get(i), r = await i.toJSON(), a = t.length + 1, o = this.findValidSheetName(e.name), s = this._createSheet(a, o, e.visibility, n, r);
2394
- this._emitter.notify("onSheetsChange"), l = s, u.commit();
2395
+ this._emitter.notify("onSheetsChange"), c = s, l.commit();
2395
2396
  } catch (e) {
2396
- throw u.rollback(), e;
2397
+ throw l.rollback(), e;
2397
2398
  } finally {
2398
- c.endPersist(), o.endPersist(), a.endPersist();
2399
+ s.endPersist(), o.endPersist(), a.endPersist();
2399
2400
  }
2400
- return l;
2401
+ return c;
2401
2402
  }
2402
2403
  _createRange(e, t) {
2403
- let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, T.Visibility.VeryHidden) : null;
2404
+ let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, R.Visibility.VeryHidden) : null;
2404
2405
  if (!r) {
2405
2406
  let e = this.getSelectedSheet();
2406
- return e ? (delete n?.scope, Ht(n, n ? {
2407
- scope: F,
2407
+ return e ? (delete n?.scope, Ut(n, n ? {
2408
+ scope: C,
2408
2409
  ...e.getEntireRange().getCoords()
2409
- } : null)) : void console.warn(s("error.workbook.noVisibleRefs"));
2410
+ } : null)) : void console.warn(u("error.workbook.noVisibleRefs"));
2410
2411
  }
2411
2412
  let i = r.sheet, a = null;
2412
- return t && (a = { getOptions: t }), new Gt(e, S(i), this, a);
2413
+ return t && (a = { getOptions: t }), new Kt(e, A(i), this, a);
2413
2414
  }
2414
2415
  _createRanges(e, t) {
2415
2416
  let n = this.getSelectedSheet(), r = null;
2416
- return t && (r = { getOptions: t }), new $(e, S(n), this, r);
2417
+ return t && (r = { getOptions: t }), new Q(e, A(n), this, r);
2417
2418
  }
2418
- getRange(e, n) {
2419
- if (e === void 0) return this.getSelectedRange(n);
2419
+ getRange(e, t) {
2420
+ if (e === void 0) return this.getSelectedRange(t);
2420
2421
  try {
2421
- let t = this._rangesAddressToCoords(e);
2422
- if (t.length !== 1) throw new f(s("error.address.singleRangeOnlyAlt"));
2423
- return this._createRange(t[0], n);
2424
- } catch (n) {
2425
- throw n instanceof t ? new t(n.message) : new f(n.message ?? Pe(e));
2422
+ let n = this._rangesAddressToCoords(e);
2423
+ if (n.length !== 1) throw new h(u("error.address.singleRangeOnlyAlt"));
2424
+ return this._createRange(n[0], t);
2425
+ } catch (t) {
2426
+ throw t instanceof i ? new i(t.message) : new h(t.message ?? P(e));
2426
2427
  }
2427
2428
  }
2428
2429
  getCell(e) {
2429
2430
  if (e === void 0) return this.getSelectedCell();
2430
2431
  let t = this.getRange(e);
2431
- if (t.size > 1) throw new f(s("error.address.singleCellOnly"));
2432
+ if (t.size > 1) throw new h(u("error.address.singleCellOnly"));
2432
2433
  return t.getCell();
2433
2434
  }
2434
2435
  getRanges(e, t) {
2435
2436
  let n = this._rangesAddressToCoords(e);
2436
- if (n.length === 0) throw new f(Pe(e));
2437
+ if (n.length === 0) throw new h(P(e));
2437
2438
  return this._createRanges(n, t);
2438
2439
  }
2439
2440
  _createGraphRanges(e, t) {
2440
2441
  let n = [];
2441
2442
  for (let e = 0; e < t.length; e++) {
2442
- let r = t[e], i = (r.sheetName ? this._getSheetRef(r.sheetName, T.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2443
- i && n.push(new Ee(r, S(i), null));
2443
+ let r = t[e], i = (r.sheetName ? this._getSheetRef(r.sheetName, R.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2444
+ i && n.push(new he(r, A(i), null));
2444
2445
  }
2445
2446
  for (let t = 0; t < e.length; t++) n.push(e[t]);
2446
- return n.length === 0 ? null : new $(n, S(this.getSelectedSheet()), this, null);
2447
+ return n.length === 0 ? null : new Q(n, A(this.getSelectedSheet()), this, null);
2447
2448
  }
2448
2449
  getStats(e) {
2449
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2450
- let t = this._getSheets(T.Visibility.VeryHidden), n = t.length;
2450
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2451
+ let t = this._getSheets(R.Visibility.VeryHidden), n = t.length;
2451
2452
  if (n === 1) return t[0].getStats(e);
2452
2453
  let r = Array(n);
2453
2454
  for (let i = 0; i < n; i++) r[i] = t[i].getStats(e);
2454
- return new wt(r);
2455
+ return new Tt(r);
2455
2456
  }
2456
2457
  _activeRangeCoords() {
2457
2458
  let e = this.getSelectedSheet(), t = e.getSelection().getRanges().getCoords(), n = e.getName(), r = t.length, i = Array(r);
@@ -2476,8 +2477,8 @@ var Wt, $ = class e extends Me {
2476
2477
  getSelectedCell() {
2477
2478
  return this.getSelectedSheet().getSelectedCell();
2478
2479
  }
2479
- _rangesAddressToCoords(e, t = !0, n = T.Visibility.Hidden) {
2480
- if (!e) throw new f(s("error.address.noAddress"));
2480
+ _rangesAddressToCoords(e, t = !0, n = R.Visibility.Hidden) {
2481
+ if (!e) throw new h(u("error.address.noAddress"));
2481
2482
  let r = this.getSelectedSheet(), i = { ...r?.getEntireRange().getCoords() }, a = r?.getName();
2482
2483
  if (a && (i.scope = a), typeof e == "string") {
2483
2484
  let t = e.trim().toLowerCase();
@@ -2486,22 +2487,22 @@ var Wt, $ = class e extends Me {
2486
2487
  t === "r" ? r.rowStart = r.rowEnd = n.rowIndex : r.colStart = r.colEnd = n.colIndex, e = r;
2487
2488
  }
2488
2489
  }
2489
- let o = this, c = he(e, i, b, (e) => {
2490
+ let o = this, s = Pe(e, i, Fe, (e) => {
2490
2491
  if (!t) return null;
2491
2492
  if (typeof e == "string") {
2492
2493
  let t = o.getNames().getByName(e)?.getRanges?.();
2493
2494
  if (t) return t.getCoords();
2494
2495
  }
2495
- throw new f(`Invalid sheet reference '${e}'.`);
2496
- }), l = c.length;
2497
- for (let e = 0; e < l; e++) this._validateCoords(c[e], n);
2498
- return c;
2496
+ throw new h(`Invalid sheet reference '${e}'.`);
2497
+ }), c = s.length;
2498
+ for (let e = 0; e < c; e++) this._validateCoords(s[e], n);
2499
+ return s;
2499
2500
  }
2500
- _validateCoords(e, n = T.Visibility.Visible, r = s("error.sheet.oobRange")) {
2501
+ _validateCoords(e, t = R.Visibility.Visible, n = u("error.sheet.oobRange")) {
2501
2502
  if (e === null) return;
2502
- let i = this.getSheet(e.scope, n).getEntireRange().getCoords();
2503
- if (!l.isRangeWithinRange(e, i)) throw new t(r);
2504
- if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new f(s("error.address.invalidRangeInverted"));
2503
+ let r = this.getSheet(e.scope, t).getEntireRange().getCoords();
2504
+ if (!f.isRangeWithinRange(e, r)) throw new i(n);
2505
+ if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new h(u("error.address.invalidRangeInverted"));
2505
2506
  }
2506
2507
  _updateSheetRef(e, t) {
2507
2508
  let n = this._getState(), r = [...n.sheetRefsAll];
@@ -2521,16 +2522,16 @@ var Wt, $ = class e extends Me {
2521
2522
  }), t;
2522
2523
  }
2523
2524
  _setSheetName(e, t, n) {
2524
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2525
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2525
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2526
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2526
2527
  let r = this._getSheetRef(e);
2527
- if (!r) throw new f(Z(e));
2528
+ if (!r) throw new h(X(e));
2528
2529
  if (t === r.name) return r.sheet;
2529
- if ((t = this._validateNewSheetName(t)) == null) throw new f(s("error.workbook.sheetNameNotProvided"));
2530
+ if ((t = this._validateNewSheetName(t)) == null) throw new h(u("error.workbook.sheetNameNotProvided"));
2530
2531
  let i = Object.freeze({
2531
2532
  ...r,
2532
2533
  name: t
2533
- }), a = null, o = this.beginCommit(m("op.renameSheet"));
2534
+ }), a = null, o = this.beginCommit(_("op.renameSheet"));
2534
2535
  try {
2535
2536
  let e = this._updateSheetRef(r, i);
2536
2537
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((e, t) => {
@@ -2541,23 +2542,23 @@ var Wt, $ = class e extends Me {
2541
2542
  }
2542
2543
  return a;
2543
2544
  }
2544
- _setSheetVisibility(e, t = T.Visibility.Visible, n) {
2545
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2546
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2547
- let r = this._getSheetRef(e, T.Visibility.VeryHidden);
2545
+ _setSheetVisibility(e, t = R.Visibility.Visible, n) {
2546
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2547
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2548
+ let r = this._getSheetRef(e, R.Visibility.VeryHidden);
2548
2549
  if (!r) return null;
2549
2550
  if (t === r.visibility) return;
2550
2551
  let i = null, a = "";
2551
- t === T.Visibility.Visible ? a = m("op.unhideSheet") : t === T.Visibility.Hidden ? a = m("op.hideSheet") : t === T.Visibility.VeryHidden && (a = m("op.veryHideSheet"));
2552
+ t === R.Visibility.Visible ? a = _("op.unhideSheet") : t === R.Visibility.Hidden ? a = _("op.hideSheet") : t === R.Visibility.VeryHidden && (a = _("op.veryHideSheet"));
2552
2553
  let o = this.beginCommit(a);
2553
2554
  try {
2554
2555
  let e = this._getState().sheetRefsVisible;
2555
- if (t !== T.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new f(s("error.workbook.sheetOne"));
2556
+ if (t !== R.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new h(u("error.workbook.sheetOne"));
2556
2557
  let a = {
2557
2558
  ...r,
2558
2559
  visibility: t
2559
- }, c = -1;
2560
- t !== T.Visibility.Visible && (c = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== T.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2560
+ }, s = -1;
2561
+ t !== R.Visibility.Visible && (s = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== R.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2561
2562
  } catch (e) {
2562
2563
  throw o.rollback(), e;
2563
2564
  }
@@ -2566,19 +2567,19 @@ var Wt, $ = class e extends Me {
2566
2567
  }), this._emitter.notify("onSheetsChange"), i;
2567
2568
  }
2568
2569
  _moveSheet(e, t, n) {
2569
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2570
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2571
- let r = null, i = this.beginCommit(s("op.moveSheetNamed", { name: e.name }));
2570
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2571
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2572
+ let r = null, i = this.beginCommit(u("op.moveSheetNamed", { name: e.name }));
2572
2573
  try {
2573
2574
  let a = this._getState(), o = a.sheetRefsVisible;
2574
- if (t < 0 || t > o.length - 1) throw new f(`Invalid to index: ${t}`);
2575
+ if (t < 0 || t > o.length - 1) throw new h(`Invalid to index: ${t}`);
2575
2576
  let s = {
2576
2577
  view: this.getView(),
2577
2578
  activeSheetId: this.getView().getActiveSheetId()
2578
2579
  }, c = a.sheetRefsAll, l = this._getOffsetForId(e.id, c), u = this._getOffsetForId(o[t].id, c);
2579
2580
  if (l === u) return;
2580
- let d = c[l], p = [...c];
2581
- p.splice(l, 1), p.splice(u, 0, d), this._updateSheetRefStates(p), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2581
+ let d = c[l], f = [...c];
2582
+ f.splice(l, 1), f.splice(u, 0, d), this._updateSheetRefStates(f), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2582
2583
  t >= l && t <= u && e();
2583
2584
  }), this._emitter.notify("onSheetsChange"), r = d.sheet, i.commit({
2584
2585
  ...n,
@@ -2594,11 +2595,11 @@ var Wt, $ = class e extends Me {
2594
2595
  return r;
2595
2596
  }
2596
2597
  _setSelectedSheet(e) {
2597
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2598
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2598
2599
  let t = this._getSheetRef(e);
2599
- if (!t) throw new f(Z(e));
2600
+ if (!t) throw new h(X(e));
2600
2601
  let n = null;
2601
- return t.visibility !== T.Visibility.Visible && this._setSheetVisibility(t, T.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2602
+ return t.visibility !== R.Visibility.Visible && this._setSheetVisibility(t, R.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2602
2603
  }
2603
2604
  getProtection() {
2604
2605
  return this._protection;
@@ -2665,8 +2666,8 @@ var Wt, $ = class e extends Me {
2665
2666
  };
2666
2667
  }
2667
2668
  _fromJSON(e) {
2668
- if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new f(s("error.workbook.sheetOne"));
2669
- e.theme && (this._theme = new y(e.theme), this._styles.setTheme(this._theme));
2669
+ if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new h(u("error.workbook.sheetOne"));
2670
+ e.theme && (this._theme = new v(e.theme), this._styles.setTheme(this._theme));
2670
2671
  let t = this._strings.beginPersist(), n = this._resources.beginPersist(), r = this._styles.beginPersist();
2671
2672
  try {
2672
2673
  t.fromJSON(e.strings), n.fromJSON(e.resources), r.fromJSON(e.styles), e.date1904 && (this._isDate1904 = !0), e.locale && (this._locale = e.locale), e.localeOverrides && (this._localeOverrides = e.localeOverrides), e.view ||= {};
@@ -2674,12 +2675,12 @@ var Wt, $ = class e extends Me {
2674
2675
  o !== null && (o = Math.min(Math.max(0, o), a - 1));
2675
2676
  let s = null, c = null, l = -1;
2676
2677
  for (let e = 0; e < a; e++) {
2677
- let t = i[e], n = t.visibility || T.Visibility.Visible, r = e;
2678
- c = r, n === T.Visibility.Visible ? (l++, s === null && (s = r)) : o !== null && o === r && (o = null), this._createSheet(r, t.name, n, l, t.sheet);
2678
+ let t = i[e], n = t.visibility || R.Visibility.Visible, r = e;
2679
+ c = r, n === R.Visibility.Visible ? (l++, s === null && (s = r)) : o !== null && o === r && (o = null), this._createSheet(r, t.name, n, l, t.sheet);
2679
2680
  }
2680
- this._updateState({ lastId: c }), e.view.activeSheetId = o ?? s, this.setView(new Pt({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
2681
+ this._updateState({ lastId: c }), e.view.activeSheetId = o ?? s, this.setView(new Ft({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
2681
2682
  let u = this;
2682
- this._protection = new It(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2683
+ this._protection = new Lt(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2683
2684
  u._emitter.notify("onProtectionChange", { source: e });
2684
2685
  } }), e.scripts && (this._scripts = this._createScripts(e.scripts)), this._emitter.notify("onLoad");
2685
2686
  } finally {
@@ -2688,21 +2689,21 @@ var Wt, $ = class e extends Me {
2688
2689
  }
2689
2690
  _createScripts(e) {
2690
2691
  let t = this;
2691
- return new At({
2692
+ return new jt({
2692
2693
  transactions: this._transactions,
2693
2694
  json: e,
2694
2695
  workbook: t,
2695
2696
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
2696
2697
  onAdd: (e, n) => {
2697
2698
  let r = t._calculation;
2698
- r.getStatus() !== Re.Status.Off && r.start().then(async () => {
2699
+ r.getStatus() !== y.Status.Off && r.start().then(async () => {
2699
2700
  let e = n.getFunctions().getItems({ type: "formula" }), t = e.length;
2700
2701
  for (let n = 0; n < t; n++) {
2701
2702
  let t = e[n];
2702
2703
  try {
2703
2704
  await this._calculation.getFunctions().add(t);
2704
2705
  } catch (e) {
2705
- o.error(e?.message ?? String(e), e);
2706
+ l.error(e?.message ?? String(e), e);
2706
2707
  }
2707
2708
  }
2708
2709
  }).catch(() => {});
@@ -2711,7 +2712,7 @@ var Wt, $ = class e extends Me {
2711
2712
  });
2712
2713
  }
2713
2714
  async toJSON(e) {
2714
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2715
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2715
2716
  await Promise.resolve(this._starting), await this._emitter.notify("onBeforeSave", { async: !0 });
2716
2717
  let t = { sheets: [] }, n = e?.ignoreStyles ?? !1;
2717
2718
  if (!n) {
@@ -2731,7 +2732,7 @@ var Wt, $ = class e extends Me {
2731
2732
  name: r.name,
2732
2733
  sheet: a
2733
2734
  };
2734
- r.visibility === T.Visibility.Visible ? l === null && (l = i) : o.visibility = r.visibility, r.id === s && (c = i), t.sheets.push(o);
2735
+ r.visibility === R.Visibility.Visible ? l === null && (l = i) : o.visibility = r.visibility, r.id === s && (c = i), t.sheets.push(o);
2735
2736
  }
2736
2737
  if (!n) {
2737
2738
  let e = o.toJSON();
@@ -2739,17 +2740,19 @@ var Wt, $ = class e extends Me {
2739
2740
  }
2740
2741
  let m = this.getProtection().toJSON();
2741
2742
  m && (t.protection = m);
2742
- let h = await i.toJSONAsync();
2743
- h && h.length > 0 && (t.strings = h);
2744
- let g = this._externalBooks.toJSON();
2745
- if (g && (t.externalBooks = g), !r) {
2743
+ let h = this._calculation.toJSON();
2744
+ Object.keys(h).length > 0 && (t.calc = h);
2745
+ let g = await i.toJSONAsync();
2746
+ g && g.length > 0 && (t.strings = g);
2747
+ let _ = this._externalBooks.toJSON();
2748
+ if (_ && (t.externalBooks = _), !r) {
2746
2749
  let e = await a.toJSONAsync();
2747
2750
  e && e.length > 0 && (t.resources = e);
2748
2751
  }
2749
- let _ = this._calculation.getNamedFormulas().toJSON();
2750
- _ && _.length > 0 && (t.names = _);
2751
- let v = this._view.toJSON();
2752
- v && (c === l ? delete v.activeSheetId : v.activeSheetId = c, Object.keys(v).length > 0 && (t.view = v));
2752
+ let v = this._calculation.getNamedFormulas().toJSON();
2753
+ v && v.length > 0 && (t.names = v);
2754
+ let y = this._view.toJSON();
2755
+ y && (c === l ? delete y.activeSheetId : y.activeSheetId = c, Object.keys(y).length > 0 && (t.view = y));
2753
2756
  } finally {
2754
2757
  o.endPersist(), r || a.endPersist(), i.endPersist();
2755
2758
  }
@@ -2774,13 +2777,13 @@ var Wt, $ = class e extends Me {
2774
2777
  this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._closed = !0;
2775
2778
  }
2776
2779
  beginCommit(e) {
2777
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2780
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2778
2781
  return this._beginCommit(typeof e == "string" ? { description: e } : e);
2779
2782
  }
2780
2783
  doBatch(e, t) {
2781
2784
  let n = this;
2782
2785
  return t = typeof t == "string" ? { description: t } : {
2783
- description: m("op.updateWorkbook"),
2786
+ description: _("op.updateWorkbook"),
2784
2787
  ...t
2785
2788
  }, this._transactions.doBatch(e, t, (e, t) => {
2786
2789
  e.getDepth() === 0 && (n._lastTransactionUUID = e.getId());
@@ -2795,7 +2798,7 @@ var Wt, $ = class e extends Me {
2795
2798
  _getState() {
2796
2799
  return this._transactions.getState(this._id);
2797
2800
  }
2798
- _updateState(e, t = m("op.updateWorkbook"), n) {
2801
+ _updateState(e, t = _("op.updateWorkbook"), n) {
2799
2802
  if (!e) return;
2800
2803
  let r = this._beginCommit(t);
2801
2804
  try {
@@ -2894,7 +2897,7 @@ var Wt, $ = class e extends Me {
2894
2897
  }
2895
2898
  }, Yt = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", Xt = new class {
2896
2899
  constructor() {
2897
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new k(this), this._registry = new Jt(), this._defaultStore = new Ye(() => this.getWriteFormats(), () => this.getReadFormats());
2900
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new x(this), this._registry = new Jt(), this._defaultStore = new Ye(() => this.getWriteFormats(), () => this.getReadFormats());
2898
2901
  }
2899
2902
  getBackingStore() {
2900
2903
  return this._backingStore ?? this._defaultStore;
@@ -2953,12 +2956,12 @@ var Wt, $ = class e extends Me {
2953
2956
  search: i,
2954
2957
  ext: a
2955
2958
  }))[0];
2956
- if (!o) throw new f(s("error.io.readFormatUnavailable", { format: i ?? a }));
2957
- let c = n?.typedCreateWorkbookOptions, l = c ? Object.keys(c).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, u = {
2959
+ if (!o) throw new h(u("error.io.readFormatUnavailable", { format: i ?? a }));
2960
+ let s = n?.typedCreateWorkbookOptions, c = s ? Object.keys(s).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, l = {
2958
2961
  ...n,
2959
- ...l === void 0 ? void 0 : c[l]
2962
+ ...c === void 0 ? void 0 : s[c]
2960
2963
  };
2961
- delete u.typedCreateWorkbookOptions, delete u.source;
2964
+ delete l.typedCreateWorkbookOptions, delete l.source;
2962
2965
  let d = r ?? new z(t.absolutePath ?? null, {
2963
2966
  name: t.name ?? null,
2964
2967
  format: o.key,
@@ -2968,24 +2971,24 @@ var Wt, $ = class e extends Me {
2968
2971
  r instanceof z && r.update({
2969
2972
  format: o.key,
2970
2973
  size: t.size ?? null
2971
- }), u.createWorkbookOptions = {
2972
- ...u.createWorkbookOptions || {},
2974
+ }), l.createWorkbookOptions = {
2975
+ ...l.createWorkbookOptions || {},
2973
2976
  origin: d
2974
- }, u.readonly !== void 0 && (u.createWorkbookOptions = {
2975
- readonly: u.readonly,
2976
- ...u.createWorkbookOptions
2977
- }, delete u.readonly), u.calcOnly && (u.createWorkbookOptions = {
2977
+ }, l.readonly !== void 0 && (l.createWorkbookOptions = {
2978
+ readonly: l.readonly,
2979
+ ...l.createWorkbookOptions
2980
+ }, delete l.readonly), l.calcOnly && (l.createWorkbookOptions = {
2978
2981
  disableLoadAutoFit: !0,
2979
- ...u.createWorkbookOptions
2982
+ ...l.createWorkbookOptions
2980
2983
  });
2981
- let p = await this._decrypt(e, d, u);
2982
- if (p === null) return null;
2983
- e = p.bytes;
2984
- let m = u?.progress?.onStart?.bind(u.progress);
2985
- m && await Promise.resolve(m(d, t.size));
2984
+ let f = await this._decrypt(e, d, l);
2985
+ if (f === null) return null;
2986
+ e = f.bytes;
2987
+ let p = l?.progress?.onStart?.bind(l.progress);
2988
+ p && await Promise.resolve(p(d, t.size));
2986
2989
  try {
2987
- let t = await this._readArrayBuffer(e, o, u);
2988
- return p.password !== null && d.setPassword(p.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
2990
+ let t = await this._readArrayBuffer(e, o, l);
2991
+ return f.password !== null && d.setPassword(f.password), l?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
2989
2992
  params: {
2990
2993
  workbook: t,
2991
2994
  origin: d
@@ -2993,7 +2996,7 @@ var Wt, $ = class e extends Me {
2993
2996
  transactional: !1
2994
2997
  }), t;
2995
2998
  } catch (e) {
2996
- throw u?.progress?.onError?.(e), u?.progress?.onComplete?.(null), e;
2999
+ throw l?.progress?.onError?.(e), l?.progress?.onComplete?.(null), e;
2997
3000
  }
2998
3001
  }
2999
3002
  async _decrypt(e, t, n) {
@@ -3002,38 +3005,38 @@ var Wt, $ = class e extends Me {
3002
3005
  bytes: e,
3003
3006
  password: null
3004
3007
  };
3005
- let o = null, c = async (t) => {
3008
+ let i = null, a = async (t) => {
3006
3009
  try {
3007
- return o = await r.decode(e, t), !0;
3010
+ return i = await r.decode(e, t), !0;
3008
3011
  } catch (e) {
3009
- if (!(e instanceof i)) throw e;
3012
+ if (!(e instanceof s)) throw e;
3010
3013
  return !1;
3011
3014
  }
3012
3015
  };
3013
- if (n?.password && await c(n.password)) return {
3014
- bytes: o,
3016
+ if (n?.password && await a(n.password)) return {
3017
+ bytes: i,
3015
3018
  password: n.password
3016
3019
  };
3017
3020
  if (!n?.onPassword) {
3018
3021
  let e = t.getName();
3019
- throw new a(e ? s("error.io.passwordRequired", { name: e }) : s("error.io.passwordRequiredUnnamed"));
3022
+ throw new c(e ? u("error.io.passwordRequired", { name: e }) : u("error.io.passwordRequiredUnnamed"));
3020
3023
  }
3021
- let l = await Promise.resolve(n.onPassword({
3024
+ let o = await Promise.resolve(n.onPassword({
3022
3025
  origin: t,
3023
3026
  encryption: r.key,
3024
- validate: c
3027
+ validate: a
3025
3028
  }));
3026
- if (l == null) return null;
3027
- if (o !== null || await c(l)) return {
3028
- bytes: o,
3029
- password: l
3029
+ if (o == null) return null;
3030
+ if (i !== null || await a(o)) return {
3031
+ bytes: i,
3032
+ password: o
3030
3033
  };
3031
- throw new i(s("error.io.passwordIncorrect"));
3034
+ throw new s(u("error.io.passwordIncorrect"));
3032
3035
  }
3033
3036
  async writeArrayBuffer(e, t) {
3034
3037
  if (!t?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
3035
3038
  let n = (await this._registry.getWriteFormats({ search: t.format }))[0];
3036
- if (!n) throw new f(s("error.io.writeFormatUnavailable", { format: t.format }));
3039
+ if (!n) throw new h(u("error.io.writeFormatUnavailable", { format: t.format }));
3037
3040
  return this._writeArrayBuffer(e, n, t);
3038
3041
  }
3039
3042
  async write(e, t, n) {
@@ -3041,55 +3044,55 @@ var Wt, $ = class e extends Me {
3041
3044
  if (!e.isIWorkbook) throw Error("Invalid workbook model provided. Must be an instance of IWorkbook.");
3042
3045
  let r = n, i = null;
3043
3046
  typeof t == "string" ? i = this.getOrigin(t) : Yt(t) ? i = t : t && (r = t);
3044
- let o, c = !i, l = i ?? e.getOrigin(), u = l.getFormat();
3045
- if ((r?.format || u) && (o = (await this._registry.getWriteFormats({ search: r?.format ?? u ?? void 0 }))[0]), o || l.getPath() && l.canWrite() && l.getExtension() || (o = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !o) throw new f(s("error.io.writeFormatUnresolved"));
3047
+ let a, o = !i, s = i ?? e.getOrigin(), l = s.getFormat();
3048
+ if ((r?.format || l) && (a = (await this._registry.getWriteFormats({ search: r?.format ?? l ?? 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 h(u("error.io.writeFormatUnresolved"));
3046
3049
  if (i && typeof t == "string") {
3047
3050
  let e = i.getPath();
3048
- e && !D(e) && i.update?.({ path: `${e}.${o.exts[0]}` });
3051
+ e && !D(e) && i.update?.({ path: `${e}.${a.exts[0]}` });
3049
3052
  }
3050
- let d = l.getEncryption(), p = e.getOrigin?.(), m = (l instanceof z ? l.getPassword() : null) ?? (p instanceof z ? p.getPassword() : null), h = l.isEncrypted() || (p?.isEncrypted() ?? !1), g = r?.password === void 0 ? m ?? (h ? void 0 : null) : r.password, _ = null;
3053
+ let d = s.getEncryption(), f = e.getOrigin?.(), p = (s instanceof z ? s.getPassword() : null) ?? (f instanceof z ? f.getPassword() : null), m = s.isEncrypted() || (f?.isEncrypted() ?? !1), g = r?.password === void 0 ? p ?? (m ? void 0 : null) : r.password, _ = null;
3051
3054
  if (g === void 0) {
3052
- if (h) {
3053
- let e = l.getName();
3054
- throw new a(e ? s("error.io.passwordRequiredSave", { name: e }) : s("error.io.passwordRequiredSaveUnnamed"));
3055
+ if (m) {
3056
+ let e = s.getName();
3057
+ throw new c(e ? u("error.io.passwordRequiredSave", { name: e }) : u("error.io.passwordRequiredSaveUnnamed"));
3055
3058
  }
3056
- } else if (g !== null && (_ = await this._registry.getEncryption(d), !_)) throw new f(s("error.io.encryptionUnavailable"));
3057
- let v = `${l.getName() ?? s("workbook.defaultName")}.${o.exts[0]}`, y = r?.progress, b = !1, x = this, S = null, ee = {
3059
+ } else if (g !== null && (_ = await this._registry.getEncryption(d), !_)) throw new h(u("error.io.encryptionUnavailable"));
3060
+ let v = `${s.getName() ?? u("workbook.defaultName")}.${a.exts[0]}`, y = r?.progress, b = !1, x = this, S = null, C = {
3058
3061
  workbook: e,
3059
- format: o,
3060
- origin: l,
3062
+ format: a,
3063
+ origin: s,
3061
3064
  suggestedName: v,
3062
3065
  prompt: r?.prompt,
3063
3066
  async encode(t) {
3064
3067
  await (async () => {
3065
- b || (b = !0, y?.onStart && await Promise.resolve(y.onStart(l)));
3068
+ b || (b = !0, y?.onStart && await Promise.resolve(y.onStart(s)));
3066
3069
  })(), S = e.getTransactions?.()?.getCurrentCommit() ?? S;
3067
- let n = t ? (await x._registry.getWriteFormats({ search: t }))[0] ?? o : o, i = await x._writeArrayBuffer(e, n, r);
3070
+ let n = t ? (await x._registry.getWriteFormats({ search: t }))[0] ?? a : a, i = await x._writeArrayBuffer(e, n, r);
3068
3071
  return _ ? _.encode(i, g) : i;
3069
3072
  }
3070
- }, C = null;
3073
+ }, w = null;
3071
3074
  try {
3072
3075
  let t = this.getBackingStore();
3073
3076
  if (!t.write) throw Error("The active backing store is read-only (no write implementation).");
3074
- if (C = await t.write(ee), C) {
3075
- g !== void 0 && C instanceof z && (C.setPassword(g), C.update({ encryption: _ ? _.key : null }));
3077
+ if (w = await t.write(C), w) {
3078
+ g !== void 0 && w instanceof z && (w.setPassword(g), w.update({ encryption: _ ? _.key : null }));
3076
3079
  let t = S ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3077
3080
  this._emitter.notify("onWrite", {
3078
3081
  params: {
3079
3082
  workbook: e,
3080
- origin: C,
3083
+ origin: w,
3081
3084
  commitId: t?.getId() ?? null,
3082
- save: c
3085
+ save: o
3083
3086
  },
3084
3087
  transactional: !1
3085
3088
  });
3086
3089
  }
3087
- y?.onComplete && await Promise.resolve(y.onComplete(C));
3090
+ y?.onComplete && await Promise.resolve(y.onComplete(w));
3088
3091
  } catch (e) {
3089
3092
  let t = e instanceof Error ? e : Error(String(e));
3090
- throw y?.onError && await Promise.resolve(y.onError(t)), y?.onComplete && await Promise.resolve(y.onComplete(null)), t instanceof f ? t : Error(s("error.io.writeFailed", { reason: t.message }), { cause: e });
3093
+ throw y?.onError && await Promise.resolve(y.onError(t)), y?.onComplete && await Promise.resolve(y.onComplete(null)), t instanceof h ? t : Error(u("error.io.writeFailed", { reason: t.message }), { cause: e });
3091
3094
  }
3092
- return C;
3095
+ return w;
3093
3096
  }
3094
3097
  async writeAs(e, t, n) {
3095
3098
  if (!t) throw Error("A target must be provided for writeAs (use write(workbook) for a plain save).");
@@ -3136,13 +3139,13 @@ var Wt, $ = class e extends Me {
3136
3139
  async _readArrayBuffer(e, t, n) {
3137
3140
  if (!e) throw Error("ArrayBuffer must be specified.");
3138
3141
  if (!t) throw Error("format must be specified.");
3139
- if (e.byteLength === 0) return new Kt(n?.createWorkbookOptions);
3142
+ if (e.byteLength === 0) return new $(n?.createWorkbookOptions);
3140
3143
  let r, i = t.handler;
3141
3144
  if (!i) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
3142
3145
  try {
3143
3146
  r = await i(e, n);
3144
3147
  } catch (e) {
3145
- throw e instanceof f ? e : new f(s("error.io.readFailed", {
3148
+ throw e instanceof h ? e : new h(u("error.io.readFailed", {
3146
3149
  format: t.description ?? t.key,
3147
3150
  reason: e?.message ?? String(e)
3148
3151
  }), { cause: e });
@@ -3159,13 +3162,13 @@ var Wt, $ = class e extends Me {
3159
3162
  ].map((e) => ({
3160
3163
  suffix: e,
3161
3164
  place: (e, t) => t ? `${t}/${e}` : e
3162
- })), Lt ||= {}, Rt ||= {};
3163
- var Zt = h({ nowWithPrecision: () => Qt });
3165
+ })), Rt ||= {}, zt ||= {};
3166
+ var Zt = e({ nowWithPrecision: () => Qt });
3164
3167
  function Qt(e = 6e4) {
3165
3168
  return new Date(Math.floor(Date.now() / e) * e);
3166
3169
  }
3167
- Wt ||= {};
3168
- var $t = class extends Ce {
3170
+ Gt ||= {};
3171
+ var $t = class extends Re {
3169
3172
  constructor(e) {
3170
3173
  super(e);
3171
3174
  }
@@ -3182,4 +3185,4 @@ var $t = class extends Ce {
3182
3185
  }, super._initializeOptions(e);
3183
3186
  }
3184
3187
  };
3185
- export { Ke as _, yt as a, at as c, ct as d, Nt as f, xt as g, et as h, G as i, qe as l, Kt as m, W as n, q as o, Mt as p, $t as r, Xt as s, Zt as t, z as u };
3188
+ export { Ke as _, bt as a, ot as c, lt as d, Pt as f, St as g, et as h, W as i, qe as l, $ as m, U as n, K as o, Nt as p, $t as r, Xt as s, Zt as t, z as u };