@sheetxl/studio-vanilla 0.8.0-beta.6 → 0.8.0-beta.9

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 (375) hide show
  1. package/browser/cjs/{pWgqqjBa4jIrxyvw.cjs → 1bLr8XHpEtM2MjCk.cjs} +1 -1
  2. package/browser/cjs/71t68tthCqAyqS9Y2.cjs +1 -0
  3. package/browser/cjs/9zyLp_qEwt9GphA82.cjs +1 -0
  4. package/browser/cjs/B0bpKoi26UcJy-yx2.cjs +1 -0
  5. package/browser/cjs/B7gx_G60ELU_MwHQ.cjs +3 -0
  6. package/browser/cjs/{DcpQZyU6Dg7WiWza2.cjs → B8k2Nobs3xsYk1La2.cjs} +1 -1
  7. package/browser/cjs/{Dnnr8nzAEuAjhOeE.cjs → BBev0dLbf1fU-lfA.cjs} +1 -1
  8. package/browser/cjs/{vjMDGGRVqaFnYj5r2.cjs → BLm90Fq3PHyJcuuD2.cjs} +1 -1
  9. package/browser/cjs/BMUUPjFWJpJ0LI3i.cjs +6 -0
  10. package/browser/cjs/{C6LCqtqoz6Kag2h42.cjs → BOEw2nlucWPfxCYp2.cjs} +1 -1
  11. package/browser/cjs/BOVrNOPvNrCm6yRB.cjs +44 -0
  12. package/browser/cjs/BPtsVWnUZPVQBm21.cjs +22 -0
  13. package/browser/cjs/{D9hGhZ8wId9qKZlT.cjs → BRRCf1dPEVEMuZg_.cjs} +1 -1
  14. package/browser/cjs/{B4VCKO11wngJjEO92.cjs → BWMBI4f0SjoI_Oin2.cjs} +1 -1
  15. package/browser/cjs/BaC5cgF10fBwJBaK.cjs +3 -0
  16. package/browser/cjs/{CMOeL2fuTqmW07BD.cjs → Be1L2JmTBCRa52VW.cjs} +650 -694
  17. package/browser/cjs/{9A9bktS1huVGPy37.cjs → BfSQzdZII1qouGSA.cjs} +1 -1
  18. package/browser/cjs/Bks6NqUor4BlAszo2.cjs +1 -0
  19. package/browser/cjs/{Df-fdT9Ac1c258zN.cjs → BlqNnPvPXlfr1uiQ.cjs} +1 -1
  20. package/browser/cjs/Brhq9xC0-0nktknO2.cjs +1 -0
  21. package/browser/cjs/{CZSCuGkDSx0WPqjF.cjs → BzZ4-FYClxQ8ujtx.cjs} +1 -1
  22. package/browser/cjs/C5ysAU-f5AXrrCUy2.cjs +1 -0
  23. package/browser/cjs/C60FQCTpuPODGMns2.cjs +1 -0
  24. package/browser/cjs/{Xd62BMjBfdi9qJzV.cjs → CAlhyBtLwTQbCNjD.cjs} +1 -1
  25. package/browser/cjs/{eCs1q0PICk1snU-12.cjs → CMr_-nDgsJMujQie2.cjs} +1 -1
  26. package/browser/cjs/COX7Y3Wht4v_4upT2.cjs +1 -0
  27. package/browser/cjs/{B1yQqy3iSI5uZPt3.cjs → CW6uYgYnFALF8Wep.cjs} +1 -1
  28. package/browser/cjs/{6V1LlorEUj_nSWnU.cjs → CZTLmhvlTal7rnXb2.cjs} +1 -1
  29. package/browser/cjs/Cs08_432tXlhmIvU.cjs +90 -0
  30. package/browser/cjs/{DFfYZJqlytuKuwBJ.cjs → D0OGlOZBsNUXBigZ.cjs} +1 -1
  31. package/browser/cjs/{CCJvU8Lb84A0y65M.cjs → D1q4dPaaoZjeLyfe.cjs} +1 -1
  32. package/browser/cjs/D7mCXmc268F393wh2.cjs +8 -0
  33. package/browser/cjs/{KMBs7XyoINajcR-L2.cjs → DCOqoH-T4Ux_1dQj2.cjs} +1 -1
  34. package/browser/cjs/{BDkTCsmZyozmgWz4.cjs → DDPnnW8pKC_2zw9B.cjs} +3 -3
  35. package/browser/cjs/DEeKo15ZqUcmFDOr2.cjs +1 -0
  36. package/browser/cjs/DHkk0JkwMtD44kS3.cjs +1 -0
  37. package/browser/cjs/{BUm56uGV9gjkjukY.cjs → DHqatAcjRnNrazeD.cjs} +1 -1
  38. package/browser/cjs/{CRe8XsjS3Z5BTMZY.cjs → DKZA4pMye4Pmg1RA.cjs} +1 -1
  39. package/browser/cjs/DLAAtKRVBbSpGhxl.cjs +1 -0
  40. package/browser/cjs/{DUCViiS92Z2CCWkA2.cjs → DToMNH3wGi3n2uzu2.cjs} +1 -1
  41. package/browser/cjs/DZjJnyrLugwcGEp_.cjs +1 -0
  42. package/browser/cjs/{Csx2sg-1yBljNBbj.cjs → DfEVusmtxqWAEEiY.cjs} +1 -1
  43. package/browser/cjs/DfFRdD4_C7I-6yMX.cjs +30 -0
  44. package/browser/cjs/Dki3Dmf6EPdM8LlM.cjs +6 -0
  45. package/browser/cjs/DkmumL9n_dH_hGQM.cjs +15 -0
  46. package/browser/cjs/Dl78hBFh7yqtDkqK.cjs +1 -0
  47. package/browser/cjs/{BbXbe-bwCJLD279F.cjs → DmLfFV_n8G4X8mrz.cjs} +1 -1
  48. package/browser/cjs/{D-8fngmgZJyw1BQz2.cjs → DqPfiDmZbBXEaCP_2.cjs} +1 -1
  49. package/browser/cjs/DsXQ2l8FnovrZHUY.cjs +1 -0
  50. package/browser/cjs/{CiJ7AoUXfIEucqrd.cjs → Dw0B6dMDxbb1xfgd.cjs} +1 -1
  51. package/browser/cjs/Dx79LP1-YCQg8B872.cjs +1 -0
  52. package/browser/cjs/{BnXCqfKX491kQrtl.cjs → Dyh_1aZCy-1UzCsZ.cjs} +1 -1
  53. package/browser/cjs/GYpazpfoUjLOoCiK.cjs +1 -0
  54. package/browser/cjs/{BmdFT-Ie0SY8YqFf.cjs → On1UFwmi1jBdIPHA.cjs} +2 -2
  55. package/browser/cjs/{BkTSml2am1P7ZUlu2.cjs → VzSM9peK6m7Un51q2.cjs} +1 -1
  56. package/browser/cjs/YXZX8u8UAJjC65if2.cjs +1 -0
  57. package/browser/cjs/index.cjs +1 -1
  58. package/browser/cjs/ukoyeeBQoyNfdkag.cjs +32 -0
  59. package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +1 -0
  60. package/browser/cjs/yWKtR8OoFhtOqU0C.cjs +2 -0
  61. package/{cdn/assets/BH_TN28AGDJoWsiz.js → browser/esm/0aKGd26gK-kyYQpJ.mjs} +2 -2
  62. package/browser/esm/{DlZq7EB3pYTCoBZR2.mjs → 1YNqnAQLBD6Rbh-J2.mjs} +1 -1
  63. package/browser/esm/{Do4OOIYh99i3VXc5.mjs → 2F7YZkGv5ARgpyZp.mjs} +1 -1
  64. package/browser/esm/{C2Mtau_YqokRY_Xs.mjs → 2wA_KrUFQ1jrFBd9.mjs} +80 -79
  65. package/browser/esm/{DadeKQvFAZsAqr0O2.mjs → 33yirHl3UNk6hI0k.mjs} +2 -2
  66. package/browser/esm/{DadeKQvFAZsAqr0O.mjs → 33yirHl3UNk6hI0k2.mjs} +2 -2
  67. package/{cdn/assets/BXlBCVkeDEYvDBJB.js → browser/esm/4Ah98p4lGiqrlbx6.mjs} +1 -1
  68. package/browser/esm/{wr5fEooS-ldJhkIW.mjs → B6hXpbUeJ5Oyyttd.mjs} +7455 -6974
  69. package/{cdn/assets/Cum9BHrpjoznUf1x.js → browser/esm/BCGMvpUPFTYcKGbk.mjs} +1 -1
  70. package/browser/esm/{iaMUH1DY_mh9eilR2.mjs → BFrhIhjN1UwpjBcV2.mjs} +12 -12
  71. package/{cdn/assets/B2bYjv0KEa2vjuau2.js → browser/esm/BFv3n-8UY0C32OsF2.mjs} +1 -1
  72. package/browser/esm/{CnMODHX8BiX4JiLR.mjs → BGgqNYvM_RAz4jrA.mjs} +3 -3
  73. package/browser/esm/{Bo5_yVXoppQHxkAs.mjs → BSyEOmiRvJDj0_4_2.mjs} +1 -1
  74. package/browser/esm/{0oEGfdAHhaLHKSti.mjs → BT_Wxatn8mtmQ5qD.mjs} +1 -1
  75. package/browser/esm/{CDelk7_2mgy_puiR.mjs → BU7mp3uhAKScJeIR.mjs} +11 -11
  76. package/browser/esm/{BcdW5Jtz-XtqlpNg2.mjs → BV4Vqj3NFgB6gT0a2.mjs} +88 -88
  77. package/browser/esm/{clnF8RB-rpJTNpPY2.mjs → BVJrNnBCgG9jP7JN2.mjs} +7 -7
  78. package/browser/esm/{CRCjjm1HOTdtQ62k.mjs → BWpXJ2OCAVkNOxJs.mjs} +5 -5
  79. package/browser/esm/{D3X5GNunddfnKs212.mjs → BXBYzUCo-8Y2kvih.mjs} +1 -1
  80. package/browser/esm/{BGFPUYyanO54TIB42.mjs → BZ860rgIJYeM_mZk2.mjs} +10 -10
  81. package/browser/esm/{DTJrlUtokRNyzKgl.mjs → BZKWCpLfrzdLKWH3.mjs} +12 -12
  82. package/browser/esm/{D8IjVu2OXXsBZUqt2.mjs → Ba8XCzy9ufDNa_mw.mjs} +1 -1
  83. package/browser/esm/{DfsFfH7JQJvdJWFk2.mjs → BcaaTjcuVt3Oji-Y2.mjs} +17 -17
  84. package/browser/esm/{BDn_jC98FsiXZwGr2.mjs → Beb-71pldLN9-lkZ2.mjs} +1 -1
  85. package/browser/esm/{DbqBX9ozs-Ibg67w.mjs → Bh63JoX4eBlOHfnf.mjs} +5 -5
  86. package/browser/esm/{CP--voqAl30cGmBl2.mjs → Biy4xNo0ds01Jy6T2.mjs} +7 -7
  87. package/browser/esm/{DDA9KIxPv8iiAvvy2.mjs → BjcfDORFDLJVCh9M2.mjs} +1 -1
  88. package/browser/esm/{Tg2o581Nj1mxbygb.mjs → BnzryntYV2vpXfKO.mjs} +3 -3
  89. package/browser/esm/{4UIqAp3dgLTz_jQl2.mjs → BoWxoDcx70L4pgIG2.mjs} +1 -1
  90. package/browser/esm/{DEhdjB_Iw2iMcmZh2.mjs → BouasW9i4KF5ayiD2.mjs} +2 -2
  91. package/browser/esm/{BCECU4i5lxfS0Udy.mjs → BpSYpeutbljnZDCG.mjs} +1 -1
  92. package/{cdn/assets/Bis-2jH6YBF6g66T2.js → browser/esm/Bsfmz9sSNYL1bur2.mjs} +1 -1
  93. package/browser/esm/{4CqOm3frZRd9UZP4.mjs → BuZnLC96IH7EKmDo.mjs} +2 -2
  94. package/browser/esm/{Bhz4-fERBAhVf8ze.mjs → BwpeFsNLJ6sOyg-V.mjs} +1 -1
  95. package/browser/esm/{D1n9gH9C8i-si_ty2.mjs → ByGJD0lWglnYtMOB2.mjs} +9 -9
  96. package/{cdn/assets/CBrZYomkgb7qvYFr2.js → browser/esm/Byeb25yVhxGAjZjs.mjs} +2 -2
  97. package/{cdn/assets/DUGWe5q5hsRZixNX2.js → browser/esm/Bzbxw_NHYqY5MOhk2.mjs} +1 -1
  98. package/browser/esm/{DNvbB1BNwBuI3ZDp.mjs → C-5IXNwUVn75K6U_.mjs} +8 -8
  99. package/browser/esm/{C_VwHa0tEc_OcSRF2.mjs → C-_7D2KLIoDlB5ZW2.mjs} +1 -1
  100. package/browser/esm/{DNTtMdjOWrGcqQGh.mjs → C1qj_93tElwUAeIR.mjs} +112 -111
  101. package/{cdn/assets/B-_shlNzdU5vK6-F.js → browser/esm/C6kRIEgNpvwokXS62.mjs} +1 -1
  102. package/browser/esm/{DqCCvSVY6MZWH0Z3.mjs → C8_izylh6h0mCmn0.mjs} +243 -239
  103. package/browser/esm/{ChAYrf_SM2XZlpZ9.mjs → C8rk3b1et4kn4nmh.mjs} +10 -10
  104. package/browser/esm/{BGp2qrSP8wpHTmzp2.mjs → CBC4DPaH9zC8bgtR2.mjs} +5 -5
  105. package/browser/esm/{CCAmUEfkNvVwKNOo2.mjs → CBHMqMbfHpto8A1O2.mjs} +1 -1
  106. package/browser/esm/{EIHzG71M5NOvWayY.mjs → CFw_lEfCjWsjFmod.mjs} +8 -8
  107. package/browser/esm/{zW5-tVai7f63Nz_O.mjs → CI2gMVZhmhMTMxzw.mjs} +7307 -5043
  108. package/browser/esm/{zvbdtZ85j__-6Pqt2.mjs → CK37hazurRQUhGh82.mjs} +11 -11
  109. package/browser/esm/{CRD6T2pongEp74eX.mjs → CL6HRP8ocSnYryNh.mjs} +4 -4
  110. package/browser/esm/{BE7zDEWoGoldNMWX2.mjs → CNanescYL9L5uras2.mjs} +2 -2
  111. package/browser/esm/{DZZ6PVue8DUBcarK2.mjs → CQBwlTSXDAUWu4W9.mjs} +1 -1
  112. package/browser/esm/{XR6551Psdm-EtuN0.mjs → CQWSMhxAOeTXp9Kx2.mjs} +2 -2
  113. package/browser/esm/{Bx_8Vgu2B9rmr3So.mjs → CQyt-UVizZgazLy5.mjs} +1 -1
  114. package/browser/esm/{CBXVfpoYV_x0IHcp.mjs → CRFwpUUcSI_tqcjz.mjs} +2 -2
  115. package/{cdn/assets/Dg79tbN27bDhGeRt.js → browser/esm/CXgg3tQvJDJO6SSm2.mjs} +1 -1
  116. package/browser/esm/{Cw3vteUwx6OB-6Iy.mjs → C_0vyfGPMnLDdlSb.mjs} +1 -1
  117. package/{cdn/assets/OPJN-aKuq0geLnJ8.js → browser/esm/Cag5TarcS7KgHsRo2.mjs} +1 -1
  118. package/browser/esm/{BiSNhmfge2gLrdUM.mjs → CfdMPj-NygDGMh04.mjs} +3 -3
  119. package/{cdn/assets/COLxuIHK4CwKSCmM.js → browser/esm/CgddS2k-SBQbGu-q.mjs} +1 -1
  120. package/browser/esm/{C0vo8lE4bLKFYxkh2.mjs → ChMJWEuVIDRtM4F-2.mjs} +1 -1
  121. package/{cdn/assets/AlSePay9xNV3_6bb2.js → browser/esm/CiwAp4s68xfZm7za2.mjs} +1 -1
  122. package/browser/esm/ClKovUJdtYnSDXcU.mjs +2298 -0
  123. package/browser/esm/{CCauT418WamqPMCO2.mjs → CmbsN81GDpmY3RPO.mjs} +1 -1
  124. package/browser/esm/{DJt8usFidNohlcHI.mjs → Cn4jB4Paw7SdIEXJ.mjs} +1 -1
  125. package/browser/esm/{KwY2kcMBX2jKweTI.mjs → CnGCJJ5xiRobAWcX.mjs} +13 -12
  126. package/browser/esm/{DGsj2g4x9odoy93a.mjs → CoVIoxu1xnlKd2HA2.mjs} +1 -1
  127. package/{cdn/assets/DJ1m0LQ8vRMX16Tx2.js → browser/esm/Cp2HULnAKhE-UPLK.mjs} +846 -826
  128. package/browser/esm/CpHxcPS-3EVZkuEF.mjs +87 -0
  129. package/browser/esm/{i3SHwvlGdsJN8P5k.mjs → CpWlrwsyFr5LDXzk.mjs} +1 -1
  130. package/browser/esm/{B_bAeABEjj7U2zzq.mjs → CshbEuB1T3tTBKsg.mjs} +41 -51
  131. package/browser/esm/{B89OWCXpyImxK0eb2.mjs → CvzmHqRHrWQRXCU4.mjs} +1 -1
  132. package/{cdn/assets/D_0WWqsqXJL1liYE.js → browser/esm/CwRejmwDTGehmz3r.mjs} +3 -3
  133. package/browser/esm/{BYk8t-CVbU8h5jS6.mjs → CzCX-Wad3yMcEHob.mjs} +1 -1
  134. package/browser/esm/{Q53pq80r1Yi_tt2g2.mjs → D1Jl06sXpn8zZgdb2.mjs} +11 -11
  135. package/browser/esm/{CuV98lDmbEhW59Ae2.mjs → D1jTquzDJ_dOLWn32.mjs} +1352 -1622
  136. package/{cdn/assets/CZQe_58fmtS0SgdD2.js → browser/esm/D1rCmgzPQzy6VXMS.mjs} +1 -1
  137. package/browser/esm/{CNYIGTIynWaiXpHk2.mjs → D2Fopvel0AE5OMJ82.mjs} +18 -18
  138. package/{cdn/assets/D94ChP2mwu_ThODV.js → browser/esm/D70qxLxD0ZWgLmBs2.mjs} +1 -1
  139. package/{cdn/assets/CiKHaK_kIAhKfCdO2.js → browser/esm/DBYgTlTpZKZGoP3J.mjs} +1 -1
  140. package/{cdn/assets/B7DAcnxzPv0cz6GS2.js → browser/esm/DFQANFiqOXXHBhY6.mjs} +1 -1
  141. package/{cdn/assets/CIT0V8cmnyP4zirK2.js → browser/esm/DGb0H5-84FuMTt7D.mjs} +1 -1
  142. package/browser/esm/{Cluu6edX1vMT0APV.mjs → DIqQkABlFa6ThxBq.mjs} +12 -12
  143. package/browser/esm/{acwoMYe1beI5Wrq12.mjs → DOrZ1rQOO7y7wy_m2.mjs} +1 -1
  144. package/{cdn/assets/DVdhEB3_SE9GEpGw.js → browser/esm/DR-J6OnvqplpkxjY2.mjs} +1 -1
  145. package/browser/esm/{BSXumetIfmtutIwR.mjs → DW3HvTGIMKSU5-rE.mjs} +5 -5
  146. package/{cdn/assets/C06Yqqvfz4f-vnXA.js → browser/esm/D_wBIcd-JG6pjL6X.mjs} +675 -726
  147. package/{cdn/assets/DTNjbBBLszx7DUAS2.js → browser/esm/Db0wkQr-gcaXZ-xF2.mjs} +1 -1
  148. package/browser/esm/{SVBLkue4Zu6FnHvb.mjs → Dc-ACeeHSIUlPwwK.mjs} +9 -7
  149. package/browser/esm/{DTvl6pZYgFJuU2Pu.mjs → DhElOu55OpNI63fY.mjs} +13 -13
  150. package/{cdn/assets/D8jCy3zoIlOA1GAR2.js → browser/esm/DiC8s-5zqDT2bSX_.mjs} +1 -1
  151. package/browser/esm/{BprRTOQ5s6y4jMpw.mjs → Dj99WdDE0W4pbL9Z.mjs} +5 -5
  152. package/browser/esm/{CJVG0Axu4gbcyT_I2.mjs → DkzeehP-6WrvoENP2.mjs} +8 -8
  153. package/browser/esm/{UWBAgk6dmyMdUUrv.mjs → Dmnc6PGw0oZha0MF.mjs} +2617 -1420
  154. package/{cdn/assets/CUQpAR2c-_Pwu2Eu.js → browser/esm/DnIM43F01HIS9vrs2.mjs} +1 -1
  155. package/browser/esm/{Cifhu0Tx_Qo7pYUo2.mjs → Do9KFjmpgHDzEREb2.mjs} +9 -9
  156. package/browser/esm/{BQemec4LLoAl92_B.mjs → DonKewYwnXajr7vb.mjs} +1 -1
  157. package/{cdn/assets/C7svWLuGopr_jw0t.js → browser/esm/DqrAn9WP17T4sX4k.mjs} +1 -1
  158. package/{cdn/assets/BG5ptu1QVVE32_SU.js → browser/esm/DtgxDfYXDdgRF8CP2.mjs} +1 -1
  159. package/{cdn/assets/Gj5vl7eMC5BSe_81.js → browser/esm/DwcvG_p7iZ2TOYkO2.mjs} +1 -1
  160. package/browser/esm/{h-_FZQM0bW_2jNsi.mjs → Dx_rx7X79sTRpl4o.mjs} +5 -5
  161. package/browser/esm/{BoEpW3VXHHDA7k4Y2.mjs → Dy92PkC2HNPr3NUS2.mjs} +21 -21
  162. package/browser/esm/F2DxvTu1OtKx4KOu.mjs +62 -0
  163. package/browser/esm/{iV1cp5WFOBxaJU3W2.mjs → FzT0Kg_BbOdmREpX2.mjs} +1 -1
  164. package/browser/esm/{CnaNnCl2QaqlLn8r.mjs → I660lM4WXwKByUBN.mjs} +612 -286
  165. package/browser/esm/{Bw8V5WPmS2yA3Nli2.mjs → LcWP7jwFTbFV8PXB.mjs} +1 -1
  166. package/browser/esm/NICR6e-cHnVuaN672.mjs +68 -0
  167. package/browser/esm/{BoUvCwncdWQjAB6z.mjs → Oi3vEmqVfUYeowoU.mjs} +11 -11
  168. package/browser/esm/{DEVCQtXhk-o9aGOV2.mjs → XVb52lYk0hnvaibx2.mjs} +2 -2
  169. package/{cdn/assets/CeT8chcNlkKehyJE.js → browser/esm/_umvY0i6yb5YBaQW2.mjs} +1 -1
  170. package/browser/esm/{Cz7kfadeRVZBAMZ_.mjs → eCn_J58pIBQwzSFQ.mjs} +1 -1
  171. package/browser/esm/{CMA4SISwnTv_lg9j.mjs → eb55UkMxnvKhZf7Y.mjs} +43 -43
  172. package/{cdn/assets/DhJ6QuQLZNVmamW_.js → browser/esm/enNXuXOMFvwqMrMF2.mjs} +1 -1
  173. package/{cdn/assets/BlYbn-3NJeiQ8dVU.js → browser/esm/f4dduywnnZ6uE-MZ.mjs} +1 -1
  174. package/browser/esm/{Dbr_OAl6EZskoqcA2.mjs → i81eZYR434OTxzFp2.mjs} +16 -16
  175. package/browser/esm/ilaSvZy5MHqAeVhr.mjs +236 -0
  176. package/browser/esm/index.mjs +4 -4
  177. package/browser/esm/{Cfob6FEkwxaSK3jd2.mjs → jBZULYj6alt6xc0v2.mjs} +1 -1
  178. package/browser/esm/{yCxQIbbRhwpsIqJu2.mjs → jt7Pndny1ddX66eh2.mjs} +37 -7
  179. package/browser/esm/{ISZRBrb20f_6C_zc.mjs → ms6uwR8n8YkKj8qd.mjs} +1403 -1006
  180. package/browser/esm/{4DbJWOjJvf-TOYkv2.mjs → n6xdiChPzW0alL9f2.mjs} +1 -1
  181. package/browser/esm/{BmJfxZPHfm_cMD4l.mjs → naRjzZqPt0JSdeaD.mjs} +4395 -3144
  182. package/browser/esm/{b3BWQGDBSQ4mCgD22.mjs → qG3Ardi8Sem7RxlS2.mjs} +1 -1
  183. package/browser/esm/{DlWcxpzc1O-m1M2B.mjs → rkgkqx2vOlkYHUxK2.mjs} +1 -1
  184. package/browser/esm/{DM4ub7OPobMAcSmy.mjs → ro6GeRkPlX0NJeiX.mjs} +2 -2
  185. package/browser/esm/sq1ZQBDrjmOCMkE8.mjs +2624 -0
  186. package/browser/esm/{CIwWrEXfSN_3khPI.mjs → wcldfedI_9KDEtaN.mjs} +1 -1
  187. package/browser/esm/{DhCFbzZIeOF7kqNn.mjs → xmD5IJJziRqUIbkU.mjs} +1 -1
  188. package/cdn/assets/{DAUF2tc_qrKzAbp32.js → -0ZWO-sILmjXhdUn2.js} +13 -13
  189. package/cdn/assets/{B6QNFqmlZvu6dS4Z2.js → 0ytlp68IedQ03SxN2.js} +10 -10
  190. package/cdn/assets/{DlZq7EB3pYTCoBZR.js → 1YNqnAQLBD6Rbh-J.js} +1 -1
  191. package/cdn/assets/{Do4OOIYh99i3VXc52.js → 2F7YZkGv5ARgpyZp2.js} +1 -1
  192. package/{browser/esm/BXlBCVkeDEYvDBJB.mjs → cdn/assets/4Ah98p4lGiqrlbx6.js} +1 -1
  193. package/{browser/esm/BOwbDihjRpkwOyYg.mjs → cdn/assets/5fk4i8-157Ur23Jd.js} +676 -725
  194. package/cdn/assets/{DEgXvxiW0vq9ppwM2.js → B3g1fc-3zQH4IhzA2.js} +18869 -18388
  195. package/{browser/esm/Cum9BHrpjoznUf1x.mjs → cdn/assets/BCGMvpUPFTYcKGbk2.js} +1 -1
  196. package/cdn/assets/{WkWv2DINRHwBdTOP.js → BCunHjPgizrAsDXf.js} +12 -12
  197. package/cdn/assets/{Cjrrmg-P0lKlzEfq2.js → BE8QpwvUMA9nmViB2.js} +132 -131
  198. package/{browser/esm/B2bYjv0KEa2vjuau.mjs → cdn/assets/BFv3n-8UY0C32OsF.js} +1 -1
  199. package/cdn/assets/BJNI25e2dCdq29AM.js +62 -0
  200. package/cdn/assets/{DR7GcNKO8jkJSCQs.js → BLSwh5Hqlo-b8LTp.js} +3 -3
  201. package/cdn/assets/{5frl5yk1BX9u5Bd42.js → BOVd36GaYwk1m1gs2.js} +26 -26
  202. package/cdn/assets/{BP16A2unTwME_JUN.js → BPdZCt3a5bggHnmC.js} +2 -2
  203. package/cdn/assets/{Bo5_yVXoppQHxkAs.js → BSyEOmiRvJDj0_4_.js} +1 -1
  204. package/cdn/assets/{Dy9SlSZp3B0IfxZM.js → BWv9YMAIb4d7yeRr.js} +81 -80
  205. package/cdn/assets/{D3X5GNunddfnKs21.js → BXBYzUCo-8Y2kvih2.js} +1 -1
  206. package/cdn/assets/{AwPuLKuYMSM7s2v_2.js → BXCPrm92ipaRS1ge2.js} +22 -22
  207. package/cdn/assets/{BHQdCxqlomq-292-.js → BY3exqKgwDNCbdrG.js} +112 -112
  208. package/cdn/assets/{D8IjVu2OXXsBZUqt.js → Ba8XCzy9ufDNa_mw2.js} +1 -1
  209. package/cdn/assets/BbQdrdBSar3saQX32.js +149 -0
  210. package/cdn/assets/{BDn_jC98FsiXZwGr.js → Beb-71pldLN9-lkZ.js} +1 -1
  211. package/cdn/assets/{DDA9KIxPv8iiAvvy.js → BjcfDORFDLJVCh9M.js} +1 -1
  212. package/cdn/assets/{4UIqAp3dgLTz_jQl.js → BoWxoDcx70L4pgIG.js} +1 -1
  213. package/cdn/assets/{DEhdjB_Iw2iMcmZh.js → BouasW9i4KF5ayiD.js} +2 -2
  214. package/cdn/assets/{BCECU4i5lxfS0Udy.js → BpSYpeutbljnZDCG2.js} +1 -1
  215. package/cdn/assets/{BmcgeYHDyFh865ey.js → Br5sDsj8RypYlTfI.js} +4433 -3182
  216. package/cdn/assets/{BUHOArLYzXBeYzXy.js → BrY06ew6SWC_tvAK.js} +12 -12
  217. package/{browser/esm/Bis-2jH6YBF6g66T.mjs → cdn/assets/Bsfmz9sSNYL1bur2.js} +1 -1
  218. package/cdn/assets/{BrZcNYdz3ufxcsyF2.js → Bu2WNghK3j0fB5oh2.js} +10 -10
  219. package/cdn/assets/{Bhz4-fERBAhVf8ze2.js → BwpeFsNLJ6sOyg-V2.js} +1 -1
  220. package/cdn/assets/{BUxPCLlW-ZMhy0kO.js → BxwJ2xXpa1-_Ji8R.js} +2 -2
  221. package/cdn/assets/{BRVkA5J9pds0HKNi2.js → BzWz5q7aXaBHYtCY2.js} +2 -2
  222. package/{browser/esm/DUGWe5q5hsRZixNX.mjs → cdn/assets/Bzbxw_NHYqY5MOhk.js} +1 -1
  223. package/cdn/assets/{C_VwHa0tEc_OcSRF.js → C-_7D2KLIoDlB5ZW.js} +1 -1
  224. package/cdn/assets/{NaYNBS42-TDUcEoM.js → C3FTMx72bE115RW8.js} +8 -8
  225. package/cdn/assets/{BPzCgPCFw6OXBqtP2.js → C4CBg5NXA83M7-rF2.js} +11 -11
  226. package/{browser/esm/B-_shlNzdU5vK6-F2.mjs → cdn/assets/C6kRIEgNpvwokXS6.js} +1 -1
  227. package/cdn/assets/{DFvNGCdvSx5VASsE.js → CAz1eWlfMv2L6OpC.js} +2 -2
  228. package/cdn/assets/{CCAmUEfkNvVwKNOo.js → CBHMqMbfHpto8A1O.js} +1 -1
  229. package/cdn/assets/{aFMcUoW7eSrX_WvX.js → CDCQpPgRQ4H7KmfY.js} +2 -2
  230. package/cdn/assets/{95Rg6-R77DB8vhtt2.js → CJD_9GC-kZb-DHuw2.js} +12 -12
  231. package/cdn/assets/{tEVV1QDIj2xjwhXe.js → CJSzKVgSGEQCyJfx.js} +3 -3
  232. package/{browser/esm/BdqrEMXaXGIMDZbw.mjs → cdn/assets/CKKWAZkEaZ4JpBOq.js} +687 -667
  233. package/cdn/assets/{Bb2eLL0IUxmGT8uG2.js → CMV31zC7ULkWMF6V2.js} +8 -8
  234. package/cdn/assets/CNTCzYCjbg0XYQ9w.js +87 -0
  235. package/cdn/assets/{B1rPJEAA5dgS-yuD2.js → COMdPpJxQ9_y8qIb2.js} +9 -9
  236. package/cdn/assets/{DZZ6PVue8DUBcarK.js → CQBwlTSXDAUWu4W9.js} +1 -1
  237. package/cdn/assets/{Bx_8Vgu2B9rmr3So.js → CQyt-UVizZgazLy5.js} +1 -1
  238. package/cdn/assets/{DOFrZ-RMlv0mEbr62.js → CXdK3ceNb39xu59l2.js} +44 -44
  239. package/{browser/esm/Dg79tbN27bDhGeRt2.mjs → cdn/assets/CXgg3tQvJDJO6SSm.js} +1 -1
  240. package/cdn/assets/CXtZMG9g-9oTtiqL.js +2298 -0
  241. package/cdn/assets/{Cw3vteUwx6OB-6Iy.js → C_0vyfGPMnLDdlSb2.js} +1 -1
  242. package/cdn/assets/{DHAWMS42nJvjdtuv2.js → C_OzUxYG2SGBaAUf2.js} +25 -25
  243. package/{browser/esm/OPJN-aKuq0geLnJ82.mjs → cdn/assets/Cag5TarcS7KgHsRo.js} +1 -1
  244. package/cdn/assets/{JGftuh24rk6BMfkr2.js → CdCDTqyTm5N2EY4W2.js} +140 -140
  245. package/{browser/esm/COLxuIHK4CwKSCmM2.mjs → cdn/assets/CgddS2k-SBQbGu-q2.js} +1 -1
  246. package/cdn/assets/{C0vo8lE4bLKFYxkh2.js → ChMJWEuVIDRtM4F-2.js} +1 -1
  247. package/{browser/esm/AlSePay9xNV3_6bb.mjs → cdn/assets/CiwAp4s68xfZm7za.js} +1 -1
  248. package/cdn/assets/{XCCi1PHPbJ6YaXx3.js → Cl-N5g_1yS1UniCt.js} +2 -2
  249. package/cdn/assets/{CCauT418WamqPMCO.js → CmbsN81GDpmY3RPO2.js} +1 -1
  250. package/cdn/assets/{DJt8usFidNohlcHI2.js → Cn4jB4Paw7SdIEXJ.js} +1 -1
  251. package/cdn/assets/{Cjeb-kMHzEUFlM_l.js → CnUBHUIkRZCIWgUa.js} +8 -8
  252. package/cdn/assets/{DGsj2g4x9odoy93a.js → CoVIoxu1xnlKd2HA.js} +1 -1
  253. package/cdn/assets/{i3SHwvlGdsJN8P5k2.js → CpWlrwsyFr5LDXzk2.js} +1 -1
  254. package/cdn/assets/{Oh10DZZ2Ac49rAQC.js → CtugyaJ11FwQN-WY.js} +5 -5
  255. package/cdn/assets/{bTb_qWNZ9gqpiDKP2.js → CuV6xULcGiHONmem2.js} +6 -6
  256. package/cdn/assets/{DdtqpY-XqWQemNlu.js → CvEz12Ffb2RavW2v.js} +6 -6
  257. package/cdn/assets/{v49CyNYkIHP85Zly2.js → CvjnhhM1I_Frxrat2.js} +73 -73
  258. package/cdn/assets/{B89OWCXpyImxK0eb.js → CvzmHqRHrWQRXCU4.js} +1 -1
  259. package/cdn/assets/{D4a2UOIcVrZtupKH.js → CyC5uu-ajw6189Hf.js} +8669 -6405
  260. package/cdn/assets/{BYk8t-CVbU8h5jS62.js → CzCX-Wad3yMcEHob2.js} +1 -1
  261. package/cdn/assets/{-w9ufIOw-Om_-Wms2.js → CzPNVSaAd-17U2N-.js} +7 -7
  262. package/cdn/assets/{CB2GXUrOhyLmnsVF2.js → D0-ySZmNB4p2PDsi2.js} +2617 -1420
  263. package/cdn/assets/{IfWL5kbc_82yS9Ek2.js → D03MDxsDGQS9hgbm2.js} +17 -17
  264. package/{browser/esm/CZQe_58fmtS0SgdD.mjs → cdn/assets/D1rCmgzPQzy6VXMS2.js} +1 -1
  265. package/cdn/assets/D5RE0juCP5H8JlAH.js +236 -0
  266. package/cdn/assets/{B2PZWx8od3IEHy4E2.js → D69bFt0qiJ0Banpu2.js} +9 -9
  267. package/{browser/esm/D94ChP2mwu_ThODV2.mjs → cdn/assets/D70qxLxD0ZWgLmBs.js} +1 -1
  268. package/cdn/assets/{CAC_xDUcFxj4WkGc.js → D8K4Srn2tnQLWkPz.js} +1564 -1167
  269. package/{browser/esm/CiKHaK_kIAhKfCdO.mjs → cdn/assets/DBYgTlTpZKZGoP3J2.js} +1 -1
  270. package/{browser/esm/B7DAcnxzPv0cz6GS.mjs → cdn/assets/DFQANFiqOXXHBhY62.js} +1 -1
  271. package/cdn/assets/{B4o5v-hrdGJbyWK4.js → DFTnRj9--tQc-vef.js} +2 -2
  272. package/{browser/esm/CIT0V8cmnyP4zirK.mjs → cdn/assets/DGb0H5-84FuMTt7D.js} +1 -1
  273. package/{browser/esm/DwhwEhNA_QFs_EaZ.mjs → cdn/assets/DGb0H5-84FuMTt7D2.js} +1 -1
  274. package/cdn/assets/{acwoMYe1beI5Wrq1.js → DOrZ1rQOO7y7wy_m.js} +1 -1
  275. package/cdn/assets/{Mo49UfLrLCgf_5pV2.js → DQSmYw6FezlICa7N2.js} +945 -619
  276. package/cdn/assets/{DRJzNrQ15sOSjd2e2.js → DQ_DJLXBiyohjB3S2.js} +12 -12
  277. package/{browser/esm/DVdhEB3_SE9GEpGw2.mjs → cdn/assets/DR-J6OnvqplpkxjY.js} +1 -1
  278. package/cdn/assets/{I2O4wgRVKQfD0EvR.js → DXJtK3wLsbICIvRL.js} +3 -3
  279. package/cdn/assets/{CPrgeFAwr7BHqmHu.js → DaKYN7vgEkjwgprw.js} +12 -12
  280. package/{browser/esm/DTNjbBBLszx7DUAS.mjs → cdn/assets/Db0wkQr-gcaXZ-xF.js} +1 -1
  281. package/cdn/assets/{BRXqd83y_8Jm2IXn.js → DdmPDp4-0_yTeGr_.js} +231 -231
  282. package/cdn/assets/{B4ij2yZFJa5IX7Gk2.js → Der1-GUNSJF4NUBK2.js} +9 -9
  283. package/{browser/esm/D8jCy3zoIlOA1GAR.mjs → cdn/assets/DiC8s-5zqDT2bSX_2.js} +1 -1
  284. package/cdn/assets/{GABbnj9qIWyEbare2.js → DiVecFg4Jh_suq0_.js} +124 -125
  285. package/{browser/esm/DIzd82jYSriheVOz.mjs → cdn/assets/DiygIQUaTrLizj_A.js} +3 -3
  286. package/cdn/assets/{DXLCCNbizOqKHb2c.js → Dn2VJNfytUlF_IF_.js} +2 -2
  287. package/{browser/esm/CUQpAR2c-_Pwu2Eu.mjs → cdn/assets/DnIM43F01HIS9vrs.js} +1 -1
  288. package/cdn/assets/{BQemec4LLoAl92_B.js → DonKewYwnXajr7vb.js} +1 -1
  289. package/cdn/assets/{BZSwuzPkthzsadzX.js → DpIsyNPsRdTDh1cq.js} +14 -13
  290. package/cdn/assets/{BC5CAuRYyJJli2nd.js → Dq8SI2oQstCKO-GY.js} +2 -2
  291. package/{browser/esm/C7svWLuGopr_jw0t2.mjs → cdn/assets/DqrAn9WP17T4sX4k.js} +1 -1
  292. package/cdn/assets/{DsDi-rMPWyWzWitl.js → Drh6Y-moeT0GOGRL.js} +4 -4
  293. package/cdn/assets/{gB5jSIc2WRvZWgrs2.js → Ds-D_rdIJs76l1CW2.js} +5 -5
  294. package/cdn/assets/{BgJZVus3WAJnbiwZ2.js → DtHIi5l5w6HWQF2d2.js} +22 -22
  295. package/{browser/esm/BG5ptu1QVVE32_SU2.mjs → cdn/assets/DtgxDfYXDdgRF8CP.js} +1 -1
  296. package/{browser/esm/Gj5vl7eMC5BSe_812.mjs → cdn/assets/DwcvG_p7iZ2TOYkO.js} +1 -1
  297. package/cdn/assets/{C8XBql0-rVxPPgdF.js → DweB8FS7VFYAmdcv.js} +11 -9
  298. package/cdn/assets/{iV1cp5WFOBxaJU3W.js → FzT0Kg_BbOdmREpX.js} +1 -1
  299. package/cdn/assets/IC-gXSmNOKyQGB9f2.js +69 -0
  300. package/cdn/assets/{Bw8V5WPmS2yA3Nli.js → LcWP7jwFTbFV8PXB2.js} +1 -1
  301. package/cdn/assets/{C2cKoe4Zik7iVYe42.js → Qd6QBUsP7YTAXYvh2.js} +23 -23
  302. package/{browser/esm/DL_3sKPWBfJtpaG3.mjs → cdn/assets/TuDsLDkXtOjxtleY2.js} +2 -2
  303. package/{browser/esm/Dyt46qi3aJZ-CbpB.mjs → cdn/assets/YDdOHwur-KHnZcch2.js} +2 -2
  304. package/cdn/assets/{DQJgLUaP7Ha_fkvr2.js → _BhaDNMLX3Da5J122.js} +1477 -1747
  305. package/{browser/esm/CeT8chcNlkKehyJE2.mjs → cdn/assets/_umvY0i6yb5YBaQW.js} +1 -1
  306. package/cdn/assets/{CqFpYuZRY1Oa6Kdj.js → b-G7BadS13tqu4Pu.js} +11 -11
  307. package/cdn/assets/{Cz7kfadeRVZBAMZ_2.js → eCn_J58pIBQwzSFQ2.js} +1 -1
  308. package/{browser/esm/DhJ6QuQLZNVmamW_2.mjs → cdn/assets/enNXuXOMFvwqMrMF.js} +1 -1
  309. package/{browser/esm/BlYbn-3NJeiQ8dVU.mjs → cdn/assets/f4dduywnnZ6uE-MZ.js} +1 -1
  310. package/cdn/assets/{Cfob6FEkwxaSK3jd.js → jBZULYj6alt6xc0v.js} +1 -1
  311. package/cdn/assets/{4DbJWOjJvf-TOYkv.js → n6xdiChPzW0alL9f.js} +1 -1
  312. package/cdn/assets/{b3BWQGDBSQ4mCgD2.js → qG3Ardi8Sem7RxlS.js} +1 -1
  313. package/cdn/assets/{DlWcxpzc1O-m1M2B.js → rkgkqx2vOlkYHUxK.js} +1 -1
  314. package/cdn/assets/sq1ZQBDrjmOCMkE8.js +2624 -0
  315. package/cdn/assets/{CIwWrEXfSN_3khPI2.js → wcldfedI_9KDEtaN2.js} +1 -1
  316. package/cdn/assets/{DhCFbzZIeOF7kqNn2.js → xmD5IJJziRqUIbkU2.js} +1 -1
  317. package/cdn/assets/{DxzX_-E3wr0c8-0b.js → yHDAaNbolW5pTQRd.js} +36 -6
  318. package/cdn/index.js +2 -2
  319. package/package.json +3 -3
  320. package/browser/cjs/2nTOupSTLJfwR2Xr2.cjs +0 -1
  321. package/browser/cjs/B-t_DeDrhWtCFPcI.cjs +0 -93
  322. package/browser/cjs/B3dsg6O4Ka8NpEf32.cjs +0 -1
  323. package/browser/cjs/B5Fa5-cHf1VTfozN.cjs +0 -1
  324. package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
  325. package/browser/cjs/BbMNM5e-lfDFkOvn2.cjs +0 -1
  326. package/browser/cjs/BjYqVy9NYB3ZmGEY.cjs +0 -32
  327. package/browser/cjs/BqFUfIMN5tnsMTIi.cjs +0 -3
  328. package/browser/cjs/BvUcpUKYVrCK5n2U.cjs +0 -14
  329. package/browser/cjs/C0PxB67bYqsO7V1G2.cjs +0 -1
  330. package/browser/cjs/C0_3HFQaCnHzWrhv.cjs +0 -2
  331. package/browser/cjs/C0m8l7d1fHu9CO2M.cjs +0 -24
  332. package/browser/cjs/C2XU-hUt1ESe-Lym2.cjs +0 -8
  333. package/browser/cjs/CClH6iclautDoj8x2.cjs +0 -1
  334. package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
  335. package/browser/cjs/CXIJNqmAzn6OpqX5.cjs +0 -5
  336. package/browser/cjs/CXsFagVr04vhY7Uo.cjs +0 -42
  337. package/browser/cjs/CYXi2zJwNRVFBiL12.cjs +0 -1
  338. package/browser/cjs/Ce0Jppzi_9bXU35v2.cjs +0 -1
  339. package/browser/cjs/Cez2y8M7jx35Vxwz.cjs +0 -3
  340. package/browser/cjs/Cgf6tLDBJ3BvtYtr.cjs +0 -1
  341. package/browser/cjs/CraHFKICbV6fuCQ-2.cjs +0 -1
  342. package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
  343. package/browser/cjs/JrW6on2mNQQ3NXKs.cjs +0 -1
  344. package/browser/cjs/LZG5aDIiIkN0mGFD.cjs +0 -1
  345. package/browser/cjs/NZ9JmwEmwyGM6S7n2.cjs +0 -1
  346. package/browser/cjs/O9HAYiw9e8V75pJ92.cjs +0 -1
  347. package/browser/cjs/U7_s3uvd0_Kashf9.cjs +0 -1
  348. package/browser/cjs/Ugq14m_1jIROW2RN2.cjs +0 -22
  349. package/browser/esm/BC57lU_SIXKxcZkP2.mjs +0 -280
  350. package/browser/esm/CTuUdSmxH6QxGmNK.mjs +0 -6104
  351. package/browser/esm/CfIyCu9_WLgJL_UT.mjs +0 -87
  352. package/browser/esm/CrIcPnRynBYfe_Pk.mjs +0 -2402
  353. package/cdn/assets/9zNnsHPCP6dNE6dt.js +0 -6104
  354. package/cdn/assets/Bcwk_FRKVLyPomW4.js +0 -2402
  355. package/cdn/assets/CjYlIFqHaDFiZlal2.js +0 -159
  356. package/cdn/assets/D14aC0o9d5RZrVJo.js +0 -280
  357. package/cdn/assets/DwhwEhNA_QFs_EaZ.js +0 -24
  358. package/cdn/assets/DwhwEhNA_QFs_EaZ2.js +0 -24
  359. package/cdn/assets/EcoVJH4is9c6hPnS.js +0 -87
  360. /package/browser/cjs/{4nReftSsKWmnRdtf2.cjs → 4nReftSsKWmnRdtf.cjs} +0 -0
  361. /package/browser/cjs/{507hQYooKKjnRzsZ2.cjs → 507hQYooKKjnRzsZ.cjs} +0 -0
  362. /package/browser/cjs/{B6IXpae7f0J8Ocq62.cjs → B6IXpae7f0J8Ocq6.cjs} +0 -0
  363. /package/browser/cjs/{BvG8N7G_8CXIAlT-2.cjs → BvG8N7G_8CXIAlT-.cjs} +0 -0
  364. /package/browser/cjs/{C0g87ndP2zMUbX6f2.cjs → C0g87ndP2zMUbX6f.cjs} +0 -0
  365. /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
  366. /package/browser/cjs/{CV4KQsHluMqo1I2Q2.cjs → CV4KQsHluMqo1I2Q.cjs} +0 -0
  367. /package/browser/cjs/{CW-b31_-r-_raT8Y.cjs → CW-b31_-r-_raT8Y2.cjs} +0 -0
  368. /package/browser/cjs/{CXlzsh_WHCOsErJ1.cjs → CXlzsh_WHCOsErJ12.cjs} +0 -0
  369. /package/browser/cjs/{CaJGoNwTL6pAJ6a4.cjs → CaJGoNwTL6pAJ6a42.cjs} +0 -0
  370. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  371. /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
  372. /package/browser/cjs/{DNKyaSruDogoBd2H.cjs → DNKyaSruDogoBd2H2.cjs} +0 -0
  373. /package/browser/cjs/{DRmo6uoGoqtiVff82.cjs → DRmo6uoGoqtiVff8.cjs} +0 -0
  374. /package/browser/cjs/{DSXLVieENYN9qXYl.cjs → DSXLVieENYN9qXYl2.cjs} +0 -0
  375. /package/browser/cjs/{a4xpA8d_d22-GKos.cjs → a4xpA8d_d22-GKos2.cjs} +0 -0
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.6
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.9
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { r as e } from "./CIT0V8cmnyP4zirK2.js";
8
- import { i as t, t as n } from "./Do4OOIYh99i3VXc52.js";
9
- import { D as r, I as i, J as a, K as o, b as s, c, d as l, g as u, h as d, j as f, n as p, q as m, r as h, s as g, x as _, z as v } from "./BYk8t-CVbU8h5jS62.js";
10
- import { $ as y, $t as b, A as x, At as S, C, Dt as ee, Et as w, F as te, Ft as ne, G as re, Gt as ie, Ht as ae, I as oe, It as se, J as ce, K as T, Kt as le, L as E, M as ue, Nt as de, O as fe, Ot as pe, P as me, Pt as he, Q as ge, R as D, Rt as O, T as _e, U as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Zt as Ee, _ as De, _t as Oe, at as ke, b as Ae, bt as je, cn as k, ct as Me, dn as Ne, dt as Pe, en as Fe, et as A, ft as Ie, gt as Le, h as j, ht as M, in as Re, it as ze, jt as Be, ln as Ve, n as He, nt as N, ot as Ue, p as We, pt as P, r as Ge, s as Ke, sn as qe, st as Je, u as Ye, ut as F, v as I, wt as Xe, x as Ze, yt as L, z as Qe, zt as $e } from "./DEgXvxiW0vq9ppwM2.js";
11
- var et, tt = class extends f {
7
+ import { D as e, I as t, J as n, K as r, b as i, c as a, d as o, g as s, h as c, j as l, n as u, q as d, r as f, s as p, x as m, z as h } from "./CzCX-Wad3yMcEHob2.js";
8
+ import { r as g } from "./DGb0H5-84FuMTt7D2.js";
9
+ import { i as _, t as v } from "./2F7YZkGv5ARgpyZp2.js";
10
+ import { $t as y, A as b, At as x, B as S, C, Ct as ee, Dt as w, Et as te, Ft as ne, G as T, Gt as re, Ht as ie, I as ae, Kt as oe, Lt as se, M as ce, Mt as le, Nt as E, O as D, Ot as O, P as ue, Pt as de, Qt as fe, R as k, S as pe, St as me, T as he, Tt as ge, U as _e, Vt as ve, Wt as A, X as ye, Yt as be, Z as xe, Zt as Se, _ as j, _t as M, a as Ce, an as we, at as Te, b as Ee, c as De, cn as Oe, ct as ke, d as Ae, dt as je, et as Me, g as Ne, gt as N, i as Pe, in as Fe, it as Ie, j as P, ln as Le, lt as Re, m as F, mt as ze, n as Be, nn as Ve, o as He, on as Ue, p as We, pt as Ge, sn as Ke, st as I, tt as qe, un as Je, vt as Ye, x as Xe, xt as Ze, yt as Qe, z as L, zt as $e } from "./B3g1fc-3zQH4IhzA2.js";
11
+ var et, tt = class extends l {
12
12
  constructor(e, t = 50) {
13
13
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
14
14
  }
@@ -103,7 +103,7 @@ var et, tt = class extends f {
103
103
  }
104
104
  }, nt = class {
105
105
  constructor(e, t) {
106
- this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new T(this);
106
+ this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new k(this);
107
107
  let n = this;
108
108
  this._removeStoreListener = e.addListener({
109
109
  onCommitEnd() {
@@ -142,7 +142,7 @@ var et, tt = class extends f {
142
142
  et ||= {};
143
143
  var R = class e {
144
144
  constructor(t, n = {}) {
145
- this._password = null, this._emitter = new T(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._lastModified = n.lastModified ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
145
+ this._password = null, this._emitter = new k(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._lastModified = n.lastModified ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
146
146
  }
147
147
  static _defaultCanWrite(e) {
148
148
  return !!e && !/^(https?:|data:|blob:)/i.test(e);
@@ -153,7 +153,7 @@ var R = class e {
153
153
  getName() {
154
154
  if (this._name !== null && this._name !== void 0) return this._name;
155
155
  let e = this._cleanPath();
156
- return e && w(e) || null;
156
+ return e && E(e) || null;
157
157
  }
158
158
  getPath() {
159
159
  return this._path;
@@ -164,7 +164,7 @@ var R = class e {
164
164
  getExtension() {
165
165
  let e = this._cleanPath();
166
166
  if (!e) return null;
167
- let t = E(e);
167
+ let t = P(e);
168
168
  return t ? t.toLowerCase() : null;
169
169
  }
170
170
  getEncryption() {
@@ -216,7 +216,7 @@ var R = class e {
216
216
  }
217
217
  }, z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new Set(), rt = (e) => z.get(e) ?? null, it = () => Array.from(B, (e) => e.getOrigin()), at = class e {
218
218
  constructor(t) {
219
- this._released = !1, e._assertFree(t), this._emitter = new T(this), this._origin = t, z.set(t, this), B.add(this);
219
+ this._released = !1, e._assertFree(t), this._emitter = new k(this), this._origin = t, z.set(t, this), B.add(this);
220
220
  }
221
221
  getOrigin() {
222
222
  return this._origin;
@@ -251,10 +251,10 @@ var R = class e {
251
251
  }
252
252
  switch (o) {
253
253
  case "file": {
254
- let e = n, r = e?.name, o = r ? `${w(r)}` : "";
254
+ let e = n, r = e?.name, o = r ? `${E(r)}` : "";
255
255
  s = await e.arrayBuffer(), c = {
256
256
  format: a,
257
- ext: E(r),
257
+ ext: P(r),
258
258
  name: o,
259
259
  absolutePath: r,
260
260
  size: e.size,
@@ -278,7 +278,7 @@ var R = class e {
278
278
  let [, t] = n.split(",");
279
279
  e = t;
280
280
  } else e = n;
281
- s = v.base64ToArrayBuffer(e), c = {
281
+ s = h.base64ToArrayBuffer(e), c = {
282
282
  format: a,
283
283
  size: e.length
284
284
  };
@@ -294,7 +294,7 @@ var R = class e {
294
294
  e = i.input, t = i.init, r = i.timeout;
295
295
  }
296
296
  }
297
- let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = E(u);
297
+ let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = P(u);
298
298
  try {
299
299
  let n = await fetch(e, {
300
300
  ...t,
@@ -306,7 +306,7 @@ var R = class e {
306
306
  s = r, c = {
307
307
  format: a,
308
308
  ext: d,
309
- name: w(u, !0),
309
+ name: E(u, !0),
310
310
  absolutePath: u
311
311
  };
312
312
  } catch (e) {
@@ -377,7 +377,7 @@ var R = class e {
377
377
  }
378
378
  if (typeof File < "u" && e instanceof File) return "file";
379
379
  if (typeof Blob < "u" && e instanceof Blob) return "blob";
380
- let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = v.isNodeBuffer(e);
380
+ let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = h.isNodeBuffer(e);
381
381
  return t || n || r ? "buffer" : typeof ReadableStream < "u" && e instanceof ReadableStream || Object.prototype.toString.call(e) === "[object ReadableStream]" || e && typeof e.getReader == "function" && e.locked !== void 0 ? "stream" : null;
382
382
  }
383
383
  }, st = class extends ot {
@@ -406,7 +406,7 @@ var R = class e {
406
406
  throw e;
407
407
  }
408
408
  let t = e.flatMap((e) => e.exts.map((e) => "." + e)).join(", ");
409
- return s.openFileDialog(t);
409
+ return i.openFileDialog(t);
410
410
  }
411
411
  async findOpenOrigin(e) {
412
412
  return V(e) ? this._findOpenHandle(e) : null;
@@ -428,8 +428,8 @@ var R = class e {
428
428
  throw Error(`Cannot read local file path '${e}' in browser environment. Use a file input element or fetch for remote URLs.`);
429
429
  }
430
430
  async write(e) {
431
- let { origin: t, suggestedName: n, format: r, encode: i, prompt: a } = e, o = [r, ...(await this._getWriteFormats()).filter((e) => e.key !== r.key)], s = typeof globalThis.showSaveFilePicker == "function", l = !a && t.canWrite() ? this._handleCache.get(t) : void 0;
432
- if (s) try {
431
+ let { origin: t, suggestedName: n, format: r, encode: i, prompt: o } = e, s = [r, ...(await this._getWriteFormats()).filter((e) => e.key !== r.key)], c = typeof globalThis.showSaveFilePicker == "function", l = !o && t.canWrite() ? this._handleCache.get(t) : void 0;
432
+ if (c) try {
433
433
  if (l) {
434
434
  let e = await async function(e) {
435
435
  try {
@@ -443,43 +443,43 @@ var R = class e {
443
443
  if (e === "denied") return null;
444
444
  e !== "granted" && (l = void 0);
445
445
  }
446
- let a = !!l;
447
- if (!a) {
446
+ let o = !!l;
447
+ if (!o) {
448
448
  l = await globalThis.showSaveFilePicker({
449
449
  suggestedName: n,
450
- types: ct(o)
450
+ types: ct(s)
451
451
  });
452
452
  let t = await this._findOpenHandle(l, e.workbook?.getOrigin?.());
453
- if (t) throw new c(h("error.io.openElsewhere", { name: t.getName() ?? l.name ?? "" }));
453
+ if (t) throw new a(f("error.io.openElsewhere", { name: t.getName() ?? l.name ?? "" }));
454
454
  }
455
- let s = ut(l.name ?? n), u = o.find((e) => e.exts.some((e) => e.toLowerCase() === s)) ?? r, d = a ? t : new R(l.name ?? n, {
455
+ let c = ut(l.name ?? n), u = s.find((e) => e.exts.some((e) => e.toLowerCase() === c)) ?? r, d = o ? t : new R(l.name ?? n, {
456
456
  format: u.key,
457
457
  canWrite: !0
458
- }), f = await i(u.key, d);
459
- if (!f) return null;
460
- let p = new Blob([lt(f)], { type: u.mimeType || "application/octet-stream" }), m = await l.createWritable();
461
- if (await m.write(p), await m.close(), this._handleCache.set(d, l), d instanceof R) {
458
+ }), p = await i(u.key, d);
459
+ if (!p) return null;
460
+ let m = new Blob([lt(p)], { type: u.mimeType || "application/octet-stream" }), h = await l.createWritable();
461
+ if (await h.write(m), await h.close(), this._handleCache.set(d, l), d instanceof R) {
462
462
  let e = await Promise.resolve(l.getFile?.()).then((e) => e?.lastModified ?? null, () => null);
463
463
  d.update({
464
- size: p.size,
464
+ size: m.size,
465
465
  lastModified: e
466
466
  });
467
467
  }
468
468
  return d;
469
469
  } catch (e) {
470
470
  if (e?.name === "AbortError") return null;
471
- if (e instanceof c) throw e;
471
+ if (e instanceof a) throw e;
472
472
  }
473
- let u = t.getPath(), d = u ? u.split(/[/\\]/).pop() : null, f = d && r.exts.some((e) => e.toLowerCase() === ut(d)) ? d : n, p = u !== f || t.canWrite() ? new R(f, {
473
+ let u = t.getPath(), d = u ? u.split(/[/\\]/).pop() : null, p = d && r.exts.some((e) => e.toLowerCase() === ut(d)) ? d : n, m = u !== p || t.canWrite() ? new R(p, {
474
474
  format: r.key,
475
475
  canWrite: !1
476
- }) : t, m = await i(r.key, p);
477
- if (!m) return null;
478
- let g = new Blob([lt(m)], { type: r.mimeType || "application/octet-stream" });
476
+ }) : t, h = await i(r.key, m);
477
+ if (!h) return null;
478
+ let g = new Blob([lt(h)], { type: r.mimeType || "application/octet-stream" });
479
479
  return function(e, t) {
480
480
  let n = URL.createObjectURL(e), r = document.createElement("a");
481
481
  r.style.display = "none", r.href = n, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
482
- }(g, f), p instanceof R && p.update({ size: g.size }), p;
482
+ }(g, p), m instanceof R && m.update({ size: g.size }), m;
483
483
  }
484
484
  };
485
485
  function ct(e) {
@@ -527,7 +527,7 @@ var dt = class {
527
527
  get isIFont() {
528
528
  return !0;
529
529
  }
530
- }, ft = e({
530
+ }, ft = g({
531
531
  findBestMatch: () => bt,
532
532
  getFontList: () => gt,
533
533
  setFontList: () => W
@@ -548,7 +548,7 @@ var dt = class {
548
548
  "Trebuchet MS",
549
549
  "Verdana"
550
550
  ], H = /* @__PURE__ */ new Map();
551
- H.set(I.GenericName.Serif, ["Tahoma"]), H.set(I.GenericName.SanSerif, ["Calibri"]), H.set(I.GenericName.MonoSpace, ["Courier New"]), H.set(I.GenericName.Cursive, ["Comic Sans MS"]), H.set(I.GenericName.Fantasy, ["Luminari"]), H.set(I.GenericName.UISystem, ["Arial"]), H.set(I.GenericName.UISerif, ["Tahoma"]), H.set(I.GenericName.UISanSerif, ["Arial"]), H.set(I.GenericName.UIMonoSpace, ["Courier New"]), H.set(I.GenericName.UIRounded, ["Arial"]), H.set(I.GenericName.Math, []), H.set(I.GenericName.Emoji, []), H.set(I.GenericName.Fangsong, []);
551
+ H.set(F.GenericName.Serif, ["Tahoma"]), H.set(F.GenericName.SanSerif, ["Calibri"]), H.set(F.GenericName.MonoSpace, ["Courier New"]), H.set(F.GenericName.Cursive, ["Comic Sans MS"]), H.set(F.GenericName.Fantasy, ["Luminari"]), H.set(F.GenericName.UISystem, ["Arial"]), H.set(F.GenericName.UISerif, ["Tahoma"]), H.set(F.GenericName.UISanSerif, ["Arial"]), H.set(F.GenericName.UIMonoSpace, ["Courier New"]), H.set(F.GenericName.UIRounded, ["Arial"]), H.set(F.GenericName.Math, []), H.set(F.GenericName.Emoji, []), H.set(F.GenericName.Fangsong, []);
552
552
  var U = /* @__PURE__ */ new Map(), mt = [];
553
553
  W(pt);
554
554
  var ht = eval;
@@ -592,7 +592,7 @@ function bt(e, t) {
592
592
  loaded: !1
593
593
  }), i;
594
594
  }
595
- var xt = e({
595
+ var xt = g({
596
596
  DefaultFontSizes: () => St,
597
597
  findNextFontSize: () => Ct
598
598
  }), St = Object.freeze([
@@ -614,19 +614,30 @@ var xt = e({
614
614
  48,
615
615
  72
616
616
  ]);
617
- function Ct(e, t = !0, n = St) {
618
- if (!n || n.length === 0) return e;
619
- if (e === void 0) return n[0];
620
- if (t && e >= n[n.length - 1] || !t && e <= n[0]) return e;
621
- let r = i.findEqualOrGreater(n, e);
622
- return t ? (n[r] === e && (r += 1), n[r] || --r, n[r]) : (--r, n[r]);
617
+ function Ct(e, n = !0, r = St) {
618
+ if (!r || r.length === 0) return e;
619
+ if (e === void 0) return r[0];
620
+ if (n && e >= r[r.length - 1] || !n && e <= r[0]) return e;
621
+ let i = t.findEqualOrGreater(r, e);
622
+ return n ? (r[i] === e && (i += 1), r[i] || --i, r[i]) : (--i, r[i]);
623
623
  }
624
624
  (_t ||= {}).SortOn = {
625
625
  Value: "value",
626
626
  FillColor: "fillColor",
627
627
  FontColor: "fontColor",
628
628
  Icon: "icon"
629
- }, (G = vt ||= {}).Compound = {
629
+ }, (G = vt ||= {}).LineEndType = {
630
+ None: "none",
631
+ Triangle: "triangle",
632
+ Stealth: "stealth",
633
+ Diamond: "diamond",
634
+ Oval: "oval",
635
+ Arrow: "arrow"
636
+ }, G.LineEndSize = {
637
+ Small: "sm",
638
+ Medium: "med",
639
+ Large: "lg"
640
+ }, G.Compound = {
630
641
  Single: "sng",
631
642
  Double: "dbl",
632
643
  ThickThin: "thickThin",
@@ -644,11 +655,6 @@ function Ct(e, t = !0, n = St) {
644
655
  Bevel: "bevel",
645
656
  Miter: "miter",
646
657
  Round: "round"
647
- }, G.PresetMarkerShape = {
648
- Single: "none",
649
- Double: "double",
650
- ThickThin: "thickThin",
651
- ThinThick: "thinThick"
652
658
  }, G.StrokeStyle = {
653
659
  None: "none",
654
660
  Dashed: "dashed",
@@ -669,29 +675,29 @@ function Ct(e, t = !0, n = St) {
669
675
  SoftEdge: "softEdge",
670
676
  Reflection: "reflection"
671
677
  };
672
- var wt, Tt, Et, Dt, q = Je.BuiltInName, Ot = {
673
- [q.Normal]: m("style.builtin.normal"),
674
- [q.Comma]: m("style.builtin.comma"),
675
- [q.Currency]: m("style.builtin.currency"),
676
- [q.Percent]: m("style.builtin.percent"),
677
- [q.Comma0]: m("style.builtin.comma0"),
678
- [q.Currency0]: m("style.builtin.currency0"),
679
- [q.Hyperlink]: m("style.builtin.hyperlink"),
680
- [q.FollowedHyperlink]: m("style.builtin.followedHyperlink"),
681
- [q.Note]: m("style.builtin.note"),
682
- [q.WarningText]: m("style.builtin.warningText"),
683
- [q.Title]: m("style.builtin.title"),
684
- [q.Input]: m("style.builtin.input"),
685
- [q.Output]: m("style.builtin.output"),
686
- [q.Calculation]: m("style.builtin.calculation"),
687
- [q.CheckCell]: m("style.builtin.checkCell"),
688
- [q.LinkedCell]: m("style.builtin.linkedCell"),
689
- [q.Total]: m("style.builtin.total"),
690
- [q.Good]: m("style.builtin.good"),
691
- [q.Bad]: m("style.builtin.bad"),
692
- [q.Neutral]: m("style.builtin.neutral"),
693
- [q.ExplanatoryText]: m("style.builtin.explanatoryText")
694
- }, kt = m("style.builtin.heading"), At = m("style.builtin.accent"), jt = m("style.builtin.accentTint"), Mt = /^Heading ([1-4])$/, Nt = /^Accent([1-6])$/, Pt = /^(20|40|60)% - Accent([1-6])$/;
678
+ var wt, Tt, Et, Dt, q = xe.BuiltInName, Ot = {
679
+ [q.Normal]: d("style.builtin.normal"),
680
+ [q.Comma]: d("style.builtin.comma"),
681
+ [q.Currency]: d("style.builtin.currency"),
682
+ [q.Percent]: d("style.builtin.percent"),
683
+ [q.Comma0]: d("style.builtin.comma0"),
684
+ [q.Currency0]: d("style.builtin.currency0"),
685
+ [q.Hyperlink]: d("style.builtin.hyperlink"),
686
+ [q.FollowedHyperlink]: d("style.builtin.followedHyperlink"),
687
+ [q.Note]: d("style.builtin.note"),
688
+ [q.WarningText]: d("style.builtin.warningText"),
689
+ [q.Title]: d("style.builtin.title"),
690
+ [q.Input]: d("style.builtin.input"),
691
+ [q.Output]: d("style.builtin.output"),
692
+ [q.Calculation]: d("style.builtin.calculation"),
693
+ [q.CheckCell]: d("style.builtin.checkCell"),
694
+ [q.LinkedCell]: d("style.builtin.linkedCell"),
695
+ [q.Total]: d("style.builtin.total"),
696
+ [q.Good]: d("style.builtin.good"),
697
+ [q.Bad]: d("style.builtin.bad"),
698
+ [q.Neutral]: d("style.builtin.neutral"),
699
+ [q.ExplanatoryText]: d("style.builtin.explanatoryText")
700
+ }, kt = d("style.builtin.heading"), At = d("style.builtin.accent"), jt = d("style.builtin.accentTint"), Mt = /^Heading ([1-4])$/, Nt = /^Accent([1-6])$/, Pt = /^(20|40|60)% - Accent([1-6])$/;
695
701
  function Ft(e) {
696
702
  let t = Ot[e];
697
703
  if (t) return { key: t };
@@ -710,11 +716,11 @@ function Ft(e) {
710
716
  }
711
717
  } : null));
712
718
  }
713
- var It = (e, t, n, r, i) => {
719
+ var J, It, Y, Lt = (e, t, n, r, i) => {
714
720
  let a = JSON.parse(JSON.stringify(e.definition));
715
721
  a.adjs ||= [];
716
722
  let o = "", s = 0, c = 0;
717
- t > 0 ? (c = t, s = 100 - t, o = h("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = h("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [le.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [le.AdjustmentType.LumOff]: c });
723
+ t > 0 ? (c = t, s = 100 - t, o = f("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = f("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [oe.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [oe.AdjustmentType.LumOff]: c });
718
724
  let l = new Ce({
719
725
  val: a.val,
720
726
  adjs: a.adjs
@@ -726,11 +732,11 @@ var It = (e, t, n, r, i) => {
726
732
  definition: a
727
733
  };
728
734
  };
729
- function Lt(e) {
735
+ function Rt(e) {
730
736
  let t, n = e.trim();
731
737
  if (!n) return;
732
738
  try {
733
- let e = me.shared().tokenize(n, !1);
739
+ let e = Ae.shared().tokenize(n, !1);
734
740
  if (e.errors.length > 0) return;
735
741
  t = e.tokens;
736
742
  } catch {
@@ -748,39 +754,26 @@ function Lt(e) {
748
754
  case "NumberToken":
749
755
  case "ScientificDigit":
750
756
  case "DigitToken": {
751
- let e = be(o).value;
757
+ let e = de(o).value;
752
758
  return r === 0 ? e : r * e;
753
759
  }
754
- case "StringToken": return r === 0 ? Ee(o).value : void 0;
755
- case "BooleanToken": return r === 0 ? pe(o).value : void 0;
760
+ case "StringToken": return r === 0 ? Ve(o).value : void 0;
761
+ case "BooleanToken": return r === 0 ? Qe(o).value : void 0;
756
762
  case "LiteralError":
757
- case "RefError": return r === 0 ? Re(o).value : void 0;
763
+ case "RefError": return r === 0 ? ie(o).value : void 0;
758
764
  default: return;
759
765
  }
760
766
  } catch {
761
767
  return;
762
768
  }
763
769
  }
764
- function Rt(e, n) {
765
- let r = zt(e), i = zt(n);
766
- return r === i ? e === n ? 0 : typeof e == "number" && typeof n == "number" ? e < n ? -1 : 1 : typeof e == "string" && typeof n == "string" ? e < n ? -1 : +(e > n) : typeof e == "boolean" ? e ? 1 : -1 : t.isError(e) && t.isError(n) ? e.getCode() - n.getCode() : 0 : r - i;
767
- }
768
- function zt(e) {
769
- if (e === null) return 0;
770
- switch (typeof e) {
771
- case "number": return 1;
772
- case "string": return 2;
773
- case "boolean": return 3;
774
- default: return t.isError(e) ? 4 : 5;
775
- }
776
- }
777
770
  (wt ||= {}).buildPalette = function(e, t, n, r) {
778
771
  let i = [];
779
772
  for (let a = 0; a < e.length; a++) {
780
773
  let o = [];
781
774
  i.push(o);
782
775
  let s = (i) => {
783
- for (let s = 0; s < i.length; s++) o.push(It(e[a], i[s], t, n, r));
776
+ for (let s = 0; s < i.length; s++) o.push(Lt(e[a], i[s], t, n, r));
784
777
  }, c = new Ce({
785
778
  val: e[a].definition.val,
786
779
  adjs: e[a].definition.adjs
@@ -818,8 +811,346 @@ function zt(e) {
818
811
  ]);
819
812
  }
820
813
  return i;
821
- }, Tt ||= {}, Et ||= {}, Dt ||= {};
822
- var Bt = class {
814
+ }, Tt ||= {}, Et ||= {}, Dt ||= {}, (J ||= {}).Type = {
815
+ Shape: "shape",
816
+ Connector: "connector",
817
+ Group: "group",
818
+ Picture: "picture"
819
+ };
820
+ var zt = Object.freeze({
821
+ AccentBorderCallout1: "accentBorderCallout1",
822
+ AccentBorderCallout2: "accentBorderCallout2",
823
+ AccentBorderCallout3: "accentBorderCallout3",
824
+ AccentCallout1: "accentCallout1",
825
+ AccentCallout2: "accentCallout2",
826
+ AccentCallout3: "accentCallout3",
827
+ ActionButtonBackPrevious: "actionButtonBackPrevious",
828
+ ActionButtonBeginning: "actionButtonBeginning",
829
+ ActionButtonBlank: "actionButtonBlank",
830
+ ActionButtonDocument: "actionButtonDocument",
831
+ ActionButtonEnd: "actionButtonEnd",
832
+ ActionButtonForwardNext: "actionButtonForwardNext",
833
+ ActionButtonHelp: "actionButtonHelp",
834
+ ActionButtonHome: "actionButtonHome",
835
+ ActionButtonInformation: "actionButtonInformation",
836
+ ActionButtonMovie: "actionButtonMovie",
837
+ ActionButtonReturn: "actionButtonReturn",
838
+ ActionButtonSound: "actionButtonSound",
839
+ Arc: "arc",
840
+ BentArrow: "bentArrow",
841
+ BentConnector2: "bentConnector2",
842
+ BentConnector3: "bentConnector3",
843
+ BentConnector4: "bentConnector4",
844
+ BentConnector5: "bentConnector5",
845
+ BentUpArrow: "bentUpArrow",
846
+ Bevel: "bevel",
847
+ BlockArc: "blockArc",
848
+ BorderCallout1: "borderCallout1",
849
+ BorderCallout2: "borderCallout2",
850
+ BorderCallout3: "borderCallout3",
851
+ BracePair: "bracePair",
852
+ BracketPair: "bracketPair",
853
+ Callout1: "callout1",
854
+ Callout2: "callout2",
855
+ Callout3: "callout3",
856
+ Can: "can",
857
+ ChartPlus: "chartPlus",
858
+ ChartStar: "chartStar",
859
+ ChartX: "chartX",
860
+ Chevron: "chevron",
861
+ Chord: "chord",
862
+ CircularArrow: "circularArrow",
863
+ Cloud: "cloud",
864
+ CloudCallout: "cloudCallout",
865
+ Corner: "corner",
866
+ CornerTabs: "cornerTabs",
867
+ Cube: "cube",
868
+ CurvedConnector2: "curvedConnector2",
869
+ CurvedConnector3: "curvedConnector3",
870
+ CurvedConnector4: "curvedConnector4",
871
+ CurvedConnector5: "curvedConnector5",
872
+ CurvedDownArrow: "curvedDownArrow",
873
+ CurvedLeftArrow: "curvedLeftArrow",
874
+ CurvedRightArrow: "curvedRightArrow",
875
+ CurvedUpArrow: "curvedUpArrow",
876
+ Decagon: "decagon",
877
+ DiagStripe: "diagStripe",
878
+ Diamond: "diamond",
879
+ Dodecagon: "dodecagon",
880
+ Donut: "donut",
881
+ DoubleWave: "doubleWave",
882
+ DownArrow: "downArrow",
883
+ DownArrowCallout: "downArrowCallout",
884
+ Ellipse: "ellipse",
885
+ EllipseRibbon: "ellipseRibbon",
886
+ EllipseRibbon2: "ellipseRibbon2",
887
+ FlowChartAlternateProcess: "flowChartAlternateProcess",
888
+ FlowChartCollate: "flowChartCollate",
889
+ FlowChartConnector: "flowChartConnector",
890
+ FlowChartDecision: "flowChartDecision",
891
+ FlowChartDelay: "flowChartDelay",
892
+ FlowChartDisplay: "flowChartDisplay",
893
+ FlowChartDocument: "flowChartDocument",
894
+ FlowChartExtract: "flowChartExtract",
895
+ FlowChartInputOutput: "flowChartInputOutput",
896
+ FlowChartInternalStorage: "flowChartInternalStorage",
897
+ FlowChartMagneticDisk: "flowChartMagneticDisk",
898
+ FlowChartMagneticDrum: "flowChartMagneticDrum",
899
+ FlowChartMagneticTape: "flowChartMagneticTape",
900
+ FlowChartManualInput: "flowChartManualInput",
901
+ FlowChartManualOperation: "flowChartManualOperation",
902
+ FlowChartMerge: "flowChartMerge",
903
+ FlowChartMultidocument: "flowChartMultidocument",
904
+ FlowChartOfflineStorage: "flowChartOfflineStorage",
905
+ FlowChartOffpageConnector: "flowChartOffpageConnector",
906
+ FlowChartOnlineStorage: "flowChartOnlineStorage",
907
+ FlowChartOr: "flowChartOr",
908
+ FlowChartPredefinedProcess: "flowChartPredefinedProcess",
909
+ FlowChartPreparation: "flowChartPreparation",
910
+ FlowChartProcess: "flowChartProcess",
911
+ FlowChartPunchedCard: "flowChartPunchedCard",
912
+ FlowChartPunchedTape: "flowChartPunchedTape",
913
+ FlowChartSort: "flowChartSort",
914
+ FlowChartSummingJunction: "flowChartSummingJunction",
915
+ FlowChartTerminator: "flowChartTerminator",
916
+ FoldedCorner: "foldedCorner",
917
+ Frame: "frame",
918
+ Funnel: "funnel",
919
+ Gear6: "gear6",
920
+ Gear9: "gear9",
921
+ HalfFrame: "halfFrame",
922
+ Heart: "heart",
923
+ Heptagon: "heptagon",
924
+ Hexagon: "hexagon",
925
+ HomePlate: "homePlate",
926
+ HorizontalScroll: "horizontalScroll",
927
+ IrregularSeal1: "irregularSeal1",
928
+ IrregularSeal2: "irregularSeal2",
929
+ LeftArrow: "leftArrow",
930
+ LeftArrowCallout: "leftArrowCallout",
931
+ LeftBrace: "leftBrace",
932
+ LeftBracket: "leftBracket",
933
+ LeftCircularArrow: "leftCircularArrow",
934
+ LeftRightArrow: "leftRightArrow",
935
+ LeftRightArrowCallout: "leftRightArrowCallout",
936
+ LeftRightCircularArrow: "leftRightCircularArrow",
937
+ LeftRightRibbon: "leftRightRibbon",
938
+ LeftRightUpArrow: "leftRightUpArrow",
939
+ LeftUpArrow: "leftUpArrow",
940
+ LightningBolt: "lightningBolt",
941
+ Line: "line",
942
+ LineInv: "lineInv",
943
+ MathDivide: "mathDivide",
944
+ MathEqual: "mathEqual",
945
+ MathMinus: "mathMinus",
946
+ MathMultiply: "mathMultiply",
947
+ MathNotEqual: "mathNotEqual",
948
+ MathPlus: "mathPlus",
949
+ Moon: "moon",
950
+ NoSmoking: "noSmoking",
951
+ NonIsoscelesTrapezoid: "nonIsoscelesTrapezoid",
952
+ NotchedRightArrow: "notchedRightArrow",
953
+ Octagon: "octagon",
954
+ Parallelogram: "parallelogram",
955
+ Pentagon: "pentagon",
956
+ Pie: "pie",
957
+ PieWedge: "pieWedge",
958
+ Plaque: "plaque",
959
+ PlaqueTabs: "plaqueTabs",
960
+ Plus: "plus",
961
+ QuadArrow: "quadArrow",
962
+ QuadArrowCallout: "quadArrowCallout",
963
+ Rect: "rect",
964
+ Ribbon: "ribbon",
965
+ Ribbon2: "ribbon2",
966
+ RightArrow: "rightArrow",
967
+ RightArrowCallout: "rightArrowCallout",
968
+ RightBrace: "rightBrace",
969
+ RightBracket: "rightBracket",
970
+ Round1Rect: "round1Rect",
971
+ Round2DiagRect: "round2DiagRect",
972
+ Round2SameRect: "round2SameRect",
973
+ RoundRect: "roundRect",
974
+ RtTriangle: "rtTriangle",
975
+ SmileyFace: "smileyFace",
976
+ Snip1Rect: "snip1Rect",
977
+ Snip2DiagRect: "snip2DiagRect",
978
+ Snip2SameRect: "snip2SameRect",
979
+ SnipRoundRect: "snipRoundRect",
980
+ SquareTabs: "squareTabs",
981
+ Star10: "star10",
982
+ Star12: "star12",
983
+ Star16: "star16",
984
+ Star24: "star24",
985
+ Star32: "star32",
986
+ Star4: "star4",
987
+ Star5: "star5",
988
+ Star6: "star6",
989
+ Star7: "star7",
990
+ Star8: "star8",
991
+ StraightConnector1: "straightConnector1",
992
+ StripedRightArrow: "stripedRightArrow",
993
+ Sun: "sun",
994
+ SwooshArrow: "swooshArrow",
995
+ Teardrop: "teardrop",
996
+ Trapezoid: "trapezoid",
997
+ Triangle: "triangle",
998
+ UpArrow: "upArrow",
999
+ UpArrowCallout: "upArrowCallout",
1000
+ UpDownArrow: "upDownArrow",
1001
+ UpDownArrowCallout: "upDownArrowCallout",
1002
+ UturnArrow: "uturnArrow",
1003
+ VerticalScroll: "verticalScroll",
1004
+ Wave: "wave",
1005
+ WedgeEllipseCallout: "wedgeEllipseCallout",
1006
+ WedgeRectCallout: "wedgeRectCallout",
1007
+ WedgeRoundRectCallout: "wedgeRoundRectCallout"
1008
+ });
1009
+ (Y = It ||= {}).Preset = zt, Y.PathLayer = {
1010
+ Fill: "fill",
1011
+ Stroke: "stroke",
1012
+ Marker: "marker"
1013
+ }, Y.FillTransfer = Object.freeze({
1014
+ norm: [1, 0],
1015
+ darken: [.6, 0],
1016
+ darkenLess: [.8, 0],
1017
+ lighten: [.6, .4],
1018
+ lightenLess: [.8, .2]
1019
+ }), Y.HandleType = {
1020
+ XY: "xy",
1021
+ Polar: "polar"
1022
+ };
1023
+ var Bt = g({
1024
+ TEXT_DEFAULTS: () => Jt,
1025
+ defaultStyleRefs: () => Z,
1026
+ inheritedTextSize: () => Yt,
1027
+ resolve: () => $t,
1028
+ withoutDefaultStyleRefs: () => qt
1029
+ }), Vt = .75, X = {
1030
+ type: j.Type.Solid,
1031
+ color: "phClr"
1032
+ }, Ht = [
1033
+ X,
1034
+ X,
1035
+ X
1036
+ ], Ut = [
1037
+ .5,
1038
+ 1,
1039
+ 1.5
1040
+ ].map((e) => ({
1041
+ width: e,
1042
+ fill: X
1043
+ })), Wt = Object.freeze({
1044
+ fill: {
1045
+ index: 1,
1046
+ color: "accent1"
1047
+ },
1048
+ stroke: {
1049
+ index: 2,
1050
+ color: "accent1 shade 15"
1051
+ },
1052
+ effect: {
1053
+ index: 0,
1054
+ color: "accent1"
1055
+ },
1056
+ font: {
1057
+ index: F.Scheme.Minor,
1058
+ color: "lt1"
1059
+ }
1060
+ }), Gt = Object.freeze({
1061
+ fill: {
1062
+ index: 0,
1063
+ color: "accent1"
1064
+ },
1065
+ stroke: {
1066
+ index: 1,
1067
+ color: "accent1"
1068
+ },
1069
+ effect: {
1070
+ index: 0,
1071
+ color: "accent1"
1072
+ },
1073
+ font: {
1074
+ index: F.Scheme.Minor,
1075
+ color: "tx1"
1076
+ }
1077
+ }), Kt = Object.freeze({});
1078
+ function Z(e) {
1079
+ return e?.type === J.Type.Connector ? Gt : e?.type === J.Type.Picture ? Kt : Wt;
1080
+ }
1081
+ function qt(e) {
1082
+ let t = e.style;
1083
+ if (!t) return t;
1084
+ let n = Z(e), r = {};
1085
+ for (let e of [
1086
+ "fill",
1087
+ "stroke",
1088
+ "effect",
1089
+ "font"
1090
+ ]) {
1091
+ let i = t[e], a = n[e];
1092
+ !i || a && i.index === a.index && i.color === a.color || (r[e] = i);
1093
+ }
1094
+ return Object.keys(r).length > 0 ? r : void 0;
1095
+ }
1096
+ var Jt = Object.freeze({
1097
+ verticalOverflow: T.Overflow.Clip,
1098
+ horizontalOverflow: T.Overflow.Clip,
1099
+ size: 11
1100
+ });
1101
+ function Yt(e, t) {
1102
+ let n = e.listStyle;
1103
+ return t.defaultRun?.size ?? n?.levels?.[t.level ?? 0]?.defaultRun?.size ?? n?.default?.defaultRun?.size;
1104
+ }
1105
+ var Q = (e, t) => typeof e == "string" && e.startsWith("phClr") ? (t ?? "tx1") + e.slice(5) : e, Xt = (e, t) => {
1106
+ let n = { ...e };
1107
+ return "color" in n && (n.color = Q(n.color, t)), "foreground" in n && (n.foreground = Q(n.foreground, t)), "background" in n && (n.background = Q(n.background, t)), Array.isArray(n.stops) && (n.stops = n.stops.map((e) => typeof e == "string" ? Q(e, t) : {
1108
+ ...e,
1109
+ color: Q(e.color, t)
1110
+ })), n;
1111
+ }, Zt = (e, t) => {
1112
+ if (!e) return;
1113
+ if (e.index <= 0) return { type: j.Type.None };
1114
+ let n = t?.fillStyleLst?.length ? t.fillStyleLst : Ht, r = n[Math.min(e.index, n.length) - 1];
1115
+ return r ? Xt(r, e.color) : void 0;
1116
+ }, Qt = (e, t) => {
1117
+ if (!e) return;
1118
+ if (e.index <= 0) return { fill: { type: j.Type.None } };
1119
+ let n = t?.lnStyleLst?.length ? t.lnStyleLst : Ut, r = n[Math.min(e.index, n.length) - 1];
1120
+ if (!r) return;
1121
+ let i = { ...r };
1122
+ return i.fill &&= Xt(i.fill, e.color), i;
1123
+ };
1124
+ function $t(e, t) {
1125
+ let n = e?.style === null ? {} : {
1126
+ ...Z(e),
1127
+ ...e?.style
1128
+ }, r = e?.fill ?? Zt(n.fill, t), i = Qt(n.stroke, t), a = e?.stroke, o = a || i ? {
1129
+ ...i,
1130
+ ...a,
1131
+ fill: a?.fill ?? i?.fill
1132
+ } : void 0;
1133
+ return {
1134
+ fill: r,
1135
+ stroke: o,
1136
+ strokeWidth: typeof o?.width == "number" ? o.width : Vt,
1137
+ fontColor: n.font?.color ?? (r && r.type !== j.Type.None ? "lt1" : "tx1")
1138
+ };
1139
+ }
1140
+ function en(e, t) {
1141
+ let n = tn(e), r = tn(t);
1142
+ return n === r ? e === t ? 0 : typeof e == "number" && typeof t == "number" ? e < t ? -1 : 1 : typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : typeof e == "boolean" ? e ? 1 : -1 : _.isError(e) && _.isError(t) ? e.getCode() - t.getCode() : 0 : n - r;
1143
+ }
1144
+ function tn(e) {
1145
+ if (e === null) return 0;
1146
+ switch (typeof e) {
1147
+ case "number": return 1;
1148
+ case "string": return 2;
1149
+ case "boolean": return 3;
1150
+ default: return _.isError(e) ? 4 : 5;
1151
+ }
1152
+ }
1153
+ var nn = class {
823
1154
  constructor(e) {
824
1155
  this._children = e;
825
1156
  }
@@ -864,19 +1195,19 @@ var Bt = class {
864
1195
  let n = t[e].getSortedNumbers().getValues();
865
1196
  n.length > 0 && r.push(n);
866
1197
  }
867
- e = new C(function(e) {
1198
+ e = new De(function(e) {
868
1199
  let t = e.length;
869
- if (t === 0) return Vt;
1200
+ if (t === 0) return rn;
870
1201
  if (t === 1) return e[0];
871
1202
  let n = e[0];
872
- for (let r = 1; r < t; r++) n = Ht(n, e[r]);
1203
+ for (let r = 1; r < t; r++) n = an(n, e[r]);
873
1204
  return Object.freeze(n);
874
1205
  }(r)), this._sortedNumbers = e;
875
1206
  }
876
1207
  return e;
877
1208
  }
878
1209
  getRanked(e) {
879
- return oe(this._children, e, Rt)[Symbol.iterator]();
1210
+ return Ke(this._children, e, en)[Symbol.iterator]();
880
1211
  }
881
1212
  getFrequencies(e) {
882
1213
  if (e) return this._mergeFrequencies(e);
@@ -884,7 +1215,7 @@ var Bt = class {
884
1215
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
885
1216
  }
886
1217
  _mergeFrequencies(e) {
887
- let t = e?.keyFn ?? Ve, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
1218
+ let t = e?.keyFn ?? re, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
888
1219
  for (let l = 0; l < a; l++) {
889
1220
  let a = i[l].getFrequencies(e);
890
1221
  o += a.getVisitedCount(), s += a.getTotalCount(), c ||= a.isTruncated();
@@ -897,35 +1228,35 @@ var Bt = class {
897
1228
  }) : c = !0, d = u.next();
898
1229
  }
899
1230
  }
900
- return de.fromGroups(r, t, e, Rt, o, s, c);
1231
+ return ee.fromGroups(r, t, e, en, o, s, c);
901
1232
  }
902
1233
  getTypedCounts(e) {
903
1234
  let t = this._typedCounts;
904
1235
  if (!t) {
905
1236
  let e = {
906
- [n.Number]: 0,
907
- [n.String]: 0,
908
- [n.Boolean]: 0,
909
- [n.Error]: 0,
910
- [n.RichData]: 0,
911
- [n.Null]: 0
912
- }, r = this._children, i = r.length;
913
- for (let t = 0; t < i; t++) {
914
- let i = r[t].getTypedCounts();
915
- e[n.Number] += i[n.Number] ?? 0, e[n.String] += i[n.String] ?? 0, e[n.Boolean] += i[n.Boolean] ?? 0, e[n.Error] += i[n.Error] ?? 0, e[n.RichData] += i[n.RichData] ?? 0, e[n.Null] += i[n.Null] ?? 0;
1237
+ [v.Number]: 0,
1238
+ [v.String]: 0,
1239
+ [v.Boolean]: 0,
1240
+ [v.Error]: 0,
1241
+ [v.RichData]: 0,
1242
+ [v.Null]: 0
1243
+ }, n = this._children, r = n.length;
1244
+ for (let t = 0; t < r; t++) {
1245
+ let r = n[t].getTypedCounts();
1246
+ e[v.Number] += r[v.Number] ?? 0, e[v.String] += r[v.String] ?? 0, e[v.Boolean] += r[v.Boolean] ?? 0, e[v.Error] += r[v.Error] ?? 0, e[v.RichData] += r[v.RichData] ?? 0, e[v.Null] += r[v.Null] ?? 0;
916
1247
  }
917
1248
  t = Object.freeze(e), this._typedCounts = t;
918
1249
  }
919
1250
  if (e === void 0) return t;
920
- let r = {}, i = e.length;
921
- for (let n = 0; n < i; n++) r[e[n]] = t[e[n]] ?? 0;
922
- return r;
1251
+ let n = {}, r = e.length;
1252
+ for (let i = 0; i < r; i++) n[e[i]] = t[e[i]] ?? 0;
1253
+ return n;
923
1254
  }
924
1255
  get isIRangeStats() {
925
1256
  return !0;
926
1257
  }
927
1258
  _mergeAggregates(e) {
928
- let t = this._children, r = t.length, i = {
1259
+ let t = this._children, n = t.length, r = {
929
1260
  count: 0,
930
1261
  min: void 0,
931
1262
  max: void 0,
@@ -933,31 +1264,31 @@ var Bt = class {
933
1264
  sum: 0,
934
1265
  sumSq: 0,
935
1266
  typed: {
936
- [n.Number]: 0,
937
- [n.String]: 0,
938
- [n.Boolean]: 0,
939
- [n.Error]: 0,
940
- [n.RichData]: 0,
941
- [n.Null]: 0
1267
+ [v.Number]: 0,
1268
+ [v.String]: 0,
1269
+ [v.Boolean]: 0,
1270
+ [v.Error]: 0,
1271
+ [v.RichData]: 0,
1272
+ [v.Null]: 0
942
1273
  }
943
1274
  };
944
- for (let n = 0; n < r; n++) {
945
- let r = t[n].getAggregates(e);
946
- i.count += r.count;
947
- let a = r.numericalCount;
948
- a <= 0 || (i.numericalCount += a, i.sum += r.sum, i.sumSq += r.varP * a + r.sum * r.sum / a, (i.min === void 0 || r.min < i.min) && (i.min = r.min), (i.max === void 0 || r.max > i.max) && (i.max = r.max));
1275
+ for (let i = 0; i < n; i++) {
1276
+ let n = t[i].getAggregates(e);
1277
+ r.count += n.count;
1278
+ let a = n.numericalCount;
1279
+ a <= 0 || (r.numericalCount += a, r.sum += n.sum, r.sumSq += n.varP * a + n.sum * n.sum / a, (r.min === void 0 || n.min < r.min) && (r.min = n.min), (r.max === void 0 || n.max > r.max) && (r.max = n.max));
949
1280
  }
950
- return qe(i);
1281
+ return fe(r);
951
1282
  }
952
- }, Vt = Object.freeze([]);
953
- function Ht(e, t) {
1283
+ }, rn = Object.freeze([]);
1284
+ function an(e, t) {
954
1285
  let n = e.length, r = t.length, i = Array(n + r), a = 0, o = 0, s = 0;
955
1286
  for (; a < n && o < r;) i[s++] = e[a] <= t[o] ? e[a++] : t[o++];
956
1287
  for (; a < n;) i[s++] = e[a++];
957
1288
  for (; o < r;) i[s++] = t[o++];
958
1289
  return i;
959
1290
  }
960
- var Ut = class {
1291
+ var on = class {
961
1292
  constructor(e, t) {
962
1293
  this._deleted = !1, this._json = { ...e }, this._deleteFromCollection = t ?? null;
963
1294
  }
@@ -991,7 +1322,7 @@ var Ut = class {
991
1322
  get isIPerson() {
992
1323
  return !0;
993
1324
  }
994
- }, Wt = class extends Ke {
1325
+ }, sn = class extends He {
995
1326
  constructor(e) {
996
1327
  super(), this._byId = /* @__PURE__ */ new Map(), this._byDisplayName = /* @__PURE__ */ new Map(), this._items = null, this._current = null, e && this.fromJSON(e);
997
1328
  }
@@ -1002,22 +1333,22 @@ var Ut = class {
1002
1333
  return this._byId.size;
1003
1334
  }
1004
1335
  add(e) {
1005
- let t = typeof e == "string" ? { displayName: e } : e, n = t.id;
1006
- if (n) {
1007
- let e = this._byId.get(n);
1336
+ let n = typeof e == "string" ? { displayName: e } : e, r = n.id;
1337
+ if (r) {
1338
+ let e = this._byId.get(r);
1008
1339
  if (e) return e;
1009
1340
  }
1010
- let r = t.displayName ?? "";
1011
- if (!n) {
1012
- let e = this._byDisplayName.get(r);
1341
+ let i = n.displayName ?? "";
1342
+ if (!r) {
1343
+ let e = this._byDisplayName.get(i);
1013
1344
  if (e) return e;
1014
1345
  }
1015
- let a = new Ut({
1016
- ...t,
1017
- displayName: r,
1018
- id: n ?? i.uuidV4().toUpperCase()
1346
+ let a = new on({
1347
+ ...n,
1348
+ displayName: i,
1349
+ id: r ?? t.uuidV4().toUpperCase()
1019
1350
  }, (e) => this._remove(e));
1020
- return this._byId.set(a.getId(), a), r && !this._byDisplayName.has(r) && this._byDisplayName.set(r, a), this._items = null, this._notifyCollectionChange(), a;
1351
+ return this._byId.set(a.getId(), a), i && !this._byDisplayName.has(i) && this._byDisplayName.set(i, a), this._items = null, this._notifyCollectionChange(), a;
1021
1352
  }
1022
1353
  getById(e) {
1023
1354
  return typeof e == "string" ? this._byId.get(e) ?? null : null;
@@ -1055,9 +1386,9 @@ var Ut = class {
1055
1386
  get isIPersonCollection() {
1056
1387
  return !0;
1057
1388
  }
1058
- }, Gt = class {
1389
+ }, cn = class {
1059
1390
  constructor(e) {
1060
- this._options = e, this._emitter = new T(this), this._initState();
1391
+ this._options = e, this._emitter = new k(this), this._initState();
1061
1392
  }
1062
1393
  _initState() {}
1063
1394
  getModules() {
@@ -1066,26 +1397,27 @@ var Ut = class {
1066
1397
  _builtInNames() {
1067
1398
  try {
1068
1399
  let e = this._options.getBuiltInFunctions?.();
1069
- if (!e) return i.EmptyArray;
1070
- let t = [];
1071
- for (let n of e.getItems()) n.isBuiltIn() && t.push(n.getName());
1072
- return t;
1400
+ if (!e) return t.EmptyArray;
1401
+ let n = [];
1402
+ for (let t of e.getItems()) t.isBuiltIn() && n.push(t.getName());
1403
+ return n;
1073
1404
  } catch {
1074
- return i.EmptyArray;
1405
+ return t.EmptyArray;
1075
1406
  }
1076
1407
  }
1077
1408
  async createModule(e) {
1078
- let t = await (await import("./Bb2eLL0IUxmGT8uG2.js").then((e) => e.n)).ScriptCompiler.compile({
1409
+ let t = await (await import("./CMV31zC7ULkWMF6V2.js").then((e) => e.n)).ScriptCompiler.compile({
1079
1410
  builtInNames: this._builtInNames(),
1411
+ minify: !0,
1080
1412
  ...e
1081
1413
  });
1082
- return t.module ? await F(j.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1414
+ return t.module ? await O(Ne.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1083
1415
  }
1084
1416
  addModule(e, t, n) {
1085
1417
  this._modules.add(e, t, n);
1086
1418
  }
1087
1419
  async addModuleFromJSON(e, t, n) {
1088
- let r = await F(e, t);
1420
+ let r = await O(e, t);
1089
1421
  return this.addModule(e, r, n), r;
1090
1422
  }
1091
1423
  executeMacro(e, t, n) {
@@ -1101,7 +1433,7 @@ var Ut = class {
1101
1433
  }
1102
1434
  async run(e, t) {
1103
1435
  try {
1104
- let n = typeof e == "string" ? await this.createModule({ source: e }) : await F(j.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1436
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await O(Ne.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1105
1437
  return await this._runModule(n, r, t);
1106
1438
  } catch (e) {
1107
1439
  return {
@@ -1165,53 +1497,53 @@ var Ut = class {
1165
1497
  }
1166
1498
  async searchFunctions(e) {
1167
1499
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1168
- let t = await this._searchable(e);
1169
- if (t.length === 0) return i.EmptyArray;
1170
- let n, r = e?.limit, a = r === void 0 ? e : {
1500
+ let n = await this._searchable(e);
1501
+ if (n.length === 0) return t.EmptyArray;
1502
+ let r, i = e?.limit, a = i === void 0 ? e : {
1171
1503
  ...e,
1172
1504
  limit: void 0
1173
1505
  }, o = /* @__PURE__ */ new Set();
1174
- for (let e = 0; e < t.length; e++) {
1175
- let r = await t[e].search(a);
1176
- if (r.length !== 0) {
1177
- n ||= [];
1178
- for (let e = 0; e < r.length; e++) {
1179
- let t = r[e], i = t.getName().toUpperCase();
1180
- o.has(i) || (o.add(i), n.push(t));
1506
+ for (let e = 0; e < n.length; e++) {
1507
+ let t = await n[e].search(a);
1508
+ if (t.length !== 0) {
1509
+ r ||= [];
1510
+ for (let e = 0; e < t.length; e++) {
1511
+ let n = t[e], i = n.getName().toUpperCase();
1512
+ o.has(i) || (o.add(i), r.push(n));
1181
1513
  }
1182
1514
  }
1183
1515
  }
1184
- if (!n || n.length === 0) return i.EmptyArray;
1516
+ if (!r || r.length === 0) return t.EmptyArray;
1185
1517
  let s = e?.text ? e.text.trim().toUpperCase() : null;
1186
- return s && t.length > 1 && Ae(n, s), r !== void 0 && n.length > r ? n.slice(0, r) : n;
1518
+ return s && n.length > 1 && qe(r, s), i !== void 0 && r.length > i ? r.slice(0, i) : r;
1187
1519
  }
1188
1520
  async getFunctionCategories(e) {
1189
1521
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1190
- let t = await this._searchable(e);
1191
- if (t.length === 0) return i.EmptyArray;
1192
- if (t.length === 1) return t[0].getCategories(e);
1193
- let n = e?.includeDeprecated ?? !1, r = /* @__PURE__ */ new Map(), a = (e) => {
1194
- let t = e.toUpperCase(), n = r.get(t);
1195
- n ? n.count++ : r.set(t, {
1522
+ let n = await this._searchable(e);
1523
+ if (n.length === 0) return t.EmptyArray;
1524
+ if (n.length === 1) return n[0].getCategories(e);
1525
+ let r = e?.includeDeprecated ?? !1, i = /* @__PURE__ */ new Map(), a = (e) => {
1526
+ let t = e.toUpperCase(), n = i.get(t);
1527
+ n ? n.count++ : i.set(t, {
1196
1528
  name: e,
1197
1529
  count: 1
1198
1530
  });
1199
1531
  };
1200
- for (let n of await t[0].getCategories(e)) r.set(n.name.toUpperCase(), {
1201
- name: n.name,
1202
- count: n.count
1532
+ for (let t of await n[0].getCategories(e)) i.set(t.name.toUpperCase(), {
1533
+ name: t.name,
1534
+ count: t.count
1203
1535
  });
1204
- for (let r = 1; r < t.length; r++) {
1205
- let i = await t[r].search(e?.type ? { type: e.type } : void 0);
1536
+ for (let t = 1; t < n.length; t++) {
1537
+ let i = await n[t].search(e?.type ? { type: e.type } : void 0);
1206
1538
  for (let e = 0; e < i.length; e++) {
1207
1539
  let o = i[e], s = o.getName().toUpperCase(), c = !1;
1208
- for (let e = 0; e < r && !c; e++) c = !!t[e].getByName(s);
1540
+ for (let e = 0; e < t && !c; e++) c = !!n[e].getByName(s);
1209
1541
  if (c) continue;
1210
1542
  let l = await o.getDescriptor().catch(() => null);
1211
- !n && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1543
+ !r && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1212
1544
  }
1213
1545
  }
1214
- let o = Array.from(r.values());
1546
+ let o = Array.from(i.values());
1215
1547
  return o.sort((e, t) => e.name.localeCompare(t.name)), o;
1216
1548
  }
1217
1549
  async start() {
@@ -1220,40 +1552,40 @@ var Ut = class {
1220
1552
  })), this._startPromise;
1221
1553
  }
1222
1554
  async _doStart() {
1223
- let e = this._options?.workbook, t = this._options?.json, n = {};
1224
- if (t) {
1225
- let r = Object.keys(t);
1226
- for (let i = 0; i < r.length; i++) {
1227
- let o = r[i], s = t[o];
1555
+ let e = this._options?.workbook, r = this._options?.json, i = {};
1556
+ if (r) {
1557
+ let t = Object.keys(r);
1558
+ for (let a = 0; a < t.length; a++) {
1559
+ let o = t[a], s = r[o];
1228
1560
  try {
1229
- n[o] = await F(o, s, !1, [], s?.scope === "workbook" ? e : null);
1561
+ i[o] = await O(o, s, !1, [], s?.scope === "workbook" ? e : null);
1230
1562
  } catch (e) {
1231
- a.error(`Could not load script '${o}'; it will be unavailable.`, e);
1563
+ n.error(`Could not load script '${o}'; it will be unavailable.`, e);
1232
1564
  }
1233
1565
  }
1234
1566
  }
1235
- let r = this, o = new Ye({
1567
+ let a = this, o = new ue({
1236
1568
  transactions: this._options?.transactions,
1237
- initial: n,
1238
- isReadOnly: () => r.isReadOnly(),
1569
+ initial: i,
1570
+ isReadOnly: () => a.isReadOnly(),
1239
1571
  onRemove: (e, t) => {
1240
- r._options?.onRemove?.(e, t);
1572
+ a._options?.onRemove?.(e, t);
1241
1573
  },
1242
1574
  onAdd: (e, t) => {
1243
- r._emitter.notify("onChange"), r._options?.onAdd?.(e, t);
1575
+ a._emitter.notify("onChange"), a._options?.onAdd?.(e, t);
1244
1576
  }
1245
1577
  });
1246
1578
  this._modules = o;
1247
1579
  let s = o.getItems();
1248
- if (s.length === 0) return Promise.resolve(i.EmptyArray);
1580
+ if (s.length === 0) return Promise.resolve(t.EmptyArray);
1249
1581
  let c = s.length;
1250
1582
  for (let t = 0; t < c; t++) {
1251
- let n = s[t];
1583
+ let r = s[t];
1252
1584
  try {
1253
- let t = await n.getFunctions().search({ type: "autoRun" }), r = t.length;
1254
- for (let n = 0; n < r; n++) await t[n].execute(e);
1585
+ let t = await r.getFunctions().search({ type: "autoRun" }), n = t.length;
1586
+ for (let r = 0; r < n; r++) await t[r].execute(e);
1255
1587
  } catch (e) {
1256
- a.error("Error executing autoRun script:", e);
1588
+ n.error("Error executing autoRun script:", e);
1257
1589
  }
1258
1590
  }
1259
1591
  }
@@ -1272,9 +1604,9 @@ var Ut = class {
1272
1604
  get isIScript() {
1273
1605
  return !0;
1274
1606
  }
1275
- }, Kt = class {
1607
+ }, ln = class {
1276
1608
  constructor(e, t, n, r) {
1277
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? l.EmptyCell, this._sheet = new N({
1609
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? o.EmptyCell, this._sheet = new D({
1278
1610
  runtime: e,
1279
1611
  styles: this._styles,
1280
1612
  calcOnLoad: "none",
@@ -1295,35 +1627,35 @@ var Ut = class {
1295
1627
  e.includes(r) && delete i[r];
1296
1628
  }
1297
1629
  }
1298
- let a = se(i.fontFamily);
1630
+ let a = Je(i.fontFamily);
1299
1631
  r.font = {}, a && (r.font.family = a.family, r.font.fallbacks = a.fallbacks, r.font.size = a.size), r.font.size = i.fontSize, r.font.weight = i.fontWeight, r.font.style = i.fontStyle, r.font.color = i.color;
1300
- let o = Ne(i.textDecoration);
1301
- r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = Ie(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = ze(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = A.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = A.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = A.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = I.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = I.VerticalAlignment.Sub : r.alignment.vertical = ue(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = A.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" ? A.Overflow.Visible : A.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = A.Overflow.Shrink);
1632
+ let o = Oe(i.textDecoration);
1633
+ r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = S(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = Me(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = T.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = T.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = T.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = F.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = F.VerticalAlignment.Sub : r.alignment.vertical = Te(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = T.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? T.Overflow.Visible : T.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = T.Overflow.Shrink);
1302
1634
  let s = null;
1303
1635
  if (i.background ? s = i.background : i.backgroundColor && (s = i.backgroundColor), s && (r.fill = { color: s }), i.msoPattern) {
1304
- let e = Se(i.msoPattern);
1305
- e && (e.patternType === _e.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== _e.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1636
+ let e = Fe(i.msoPattern);
1637
+ e && (e.patternType === j.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== j.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1306
1638
  }
1307
- i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = ie(i.msoRotate));
1639
+ i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = we(i.msoRotate));
1308
1640
  let c = (e, t) => {
1309
1641
  e && (r.borders ||= {}, r.borders[e] = t);
1310
1642
  };
1311
1643
  i.border && i.border !== "none" && (c("top", i.border), c("left", i.border), c("right", i.border), c("bottom", i.border)), i.borderTop && c("top", i.borderTop), i.borderLeft && c("left", i.borderLeft), i.borderRight && c("right", i.borderRight), i.borderBottom && c("bottom", i.borderBottom), i.msoDiagonalUp && c("diagonalUp", i.msoDiagonalUp), i.msoDiagonalDown && c("diagonalDown", i.msoDiagonalDown);
1312
1644
  let l = r.numberFormat;
1313
- i.msoNumberFormat && (l = ce(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = k.Styles.lookupStyle(r.numberFormat).formatType === k.Type.Number ? null : k.Type.Number : l === "Percent" && (l = k.Styles.lookupStyle(r.numberFormat).formatType === k.Type.Percentage ? null : k.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1645
+ i.msoNumberFormat && (l = Pe(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = w.Styles.lookupStyle(r.numberFormat).formatType === w.Type.Number ? null : w.Type.Number : l === "Percent" && (l = w.Styles.lookupStyle(r.numberFormat).formatType === w.Type.Percentage ? null : w.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1314
1646
  }
1315
1647
  onCell(e, t, n, r, i) {
1316
- let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
1317
- if (typeof o.value == "string" && o.value.length === 0 && (o.value = void 0), a && this.applyCSSStyle(o, a), i?.tagName.toUpperCase() === "TD") {
1318
- let e = o.style, t = e?.font ?? {};
1319
- (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = I.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = I.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = I.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = I.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
1648
+ let a = r(i), s = { value: t === void 0 ? n ?? "" : t };
1649
+ if (typeof s.value == "string" && s.value.length === 0 && (s.value = void 0), a && this.applyCSSStyle(s, a), i?.tagName.toUpperCase() === "TD") {
1650
+ let e = s.style, t = e?.font ?? {};
1651
+ (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = F.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = F.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = F.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = F.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, s.style = e), e.font ||= t);
1320
1652
  let n = i.querySelectorAll("a");
1321
1653
  if (n.length > 0) {
1322
1654
  let e = n[0].getAttribute("href");
1323
- e && (o.hyperlink = e);
1655
+ e && (s.hyperlink = e);
1324
1656
  }
1325
1657
  }
1326
- if (!l.isSingleCell(e)) {
1658
+ if (!o.isSingleCell(e)) {
1327
1659
  let t = {
1328
1660
  rowStart: this._topLeft.rowIndex + e.rowStart,
1329
1661
  colStart: this._topLeft.colIndex + e.colStart,
@@ -1332,14 +1664,14 @@ var Ut = class {
1332
1664
  };
1333
1665
  this._mergedReading.push(t);
1334
1666
  }
1335
- if (o.value === void 0 && !o.style && Object.keys(o).length <= 1) return;
1336
- let s = this._builder, c = this._topLeft;
1337
- if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !l.isSingleCell(e) && a.msoIgnore) {
1667
+ if (s.value === void 0 && !s.style && Object.keys(s).length <= 1) return;
1668
+ let c = this._builder, l = this._topLeft;
1669
+ if (c.pushAt(l.rowIndex + e.rowStart, l.colIndex + e.colStart, s), !o.isSingleCell(e) && a.msoIgnore) {
1338
1670
  if (a.msoIgnore.includes("colspan")) {
1339
1671
  let t = {};
1340
1672
  a && this.applyCSSStyle(t, a);
1341
- let n = e.colEnd - e.colStart, r = c.rowIndex + e.rowStart;
1342
- for (let i = 1; i <= n; i++) s.pushAt(r, c.colIndex + e.colStart + i, t);
1673
+ let n = e.colEnd - e.colStart, r = l.rowIndex + e.rowStart;
1674
+ for (let i = 1; i <= n; i++) c.pushAt(r, l.colIndex + e.colStart + i, t);
1343
1675
  e = {
1344
1676
  ...e,
1345
1677
  colEnd: e.colStart
@@ -1363,8 +1695,8 @@ var Ut = class {
1363
1695
  let i = n(r);
1364
1696
  if (i.msoHeightSource !== "userset" || !r) return;
1365
1697
  let a = r.getAttribute("height") ?? i.height, o = null;
1366
- if (a && (o = P(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1367
- let t = r.cells[e], i = P(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1698
+ if (a && (o = A(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1699
+ let t = r.cells[e], i = A(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1368
1700
  i !== null && (o = Math.max(i, o ?? 0));
1369
1701
  }
1370
1702
  o !== null && this._rowsReading.push({
@@ -1372,19 +1704,19 @@ var Ut = class {
1372
1704
  min: this._topLeft.rowIndex + e,
1373
1705
  max: this._topLeft.rowIndex + e + t - 1
1374
1706
  },
1375
- update: { size: o * I.getDeviceScale() }
1707
+ update: { size: o * F.getDeviceScale() }
1376
1708
  });
1377
1709
  }
1378
1710
  onColumn(e, t, n, r) {
1379
1711
  let i = n(r);
1380
1712
  if (i.msoWidthSource !== "userset" || !r) return;
1381
1713
  let a = r.getAttribute("width") ?? i.width, o = null;
1382
- a && (o = P(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1714
+ a && (o = A(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1383
1715
  address: {
1384
1716
  min: this._topLeft.colIndex + e,
1385
1717
  max: this._topLeft.colIndex + e + t - 1
1386
1718
  },
1387
- update: { size: o * I.getDeviceScale() }
1719
+ update: { size: o * F.getDeviceScale() }
1388
1720
  });
1389
1721
  }
1390
1722
  onDone() {
@@ -1395,9 +1727,9 @@ var Ut = class {
1395
1727
  sheet() {
1396
1728
  return this._sheet;
1397
1729
  }
1398
- }, qt = class {
1730
+ }, un = class {
1399
1731
  constructor(e) {
1400
- if (!e) throw new u("snapshot is required.");
1732
+ if (!e) throw new s("snapshot is required.");
1401
1733
  this._snapshot = e;
1402
1734
  }
1403
1735
  getItemType() {
@@ -1427,10 +1759,10 @@ var Ut = class {
1427
1759
  get isClipboardItem() {
1428
1760
  return !0;
1429
1761
  }
1430
- }, Jt = class {
1762
+ }, dn = class {
1431
1763
  constructor(e, t, n, r, i) {
1432
- if (this._parsed = void 0, this._runtime = e, !t) throw new u("nativeItems are required.");
1433
- this._topLeft = n ?? l.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1764
+ if (this._parsed = void 0, this._runtime = e, !t) throw new s("nativeItems are required.");
1765
+ this._topLeft = n ?? o.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1434
1766
  }
1435
1767
  getItemType() {
1436
1768
  return "range";
@@ -1471,15 +1803,15 @@ var Ut = class {
1471
1803
  async parse() {
1472
1804
  let e, t = this._native?.text, n = this._native.html;
1473
1805
  if (n === null && t && t.includes("<table")) try {
1474
- let e = new DOMParser().parseFromString(t, d.Html), r = e.querySelector("parsererror");
1475
- if (r) throw new c("Unable to parse: " + r);
1806
+ let e = new DOMParser().parseFromString(t, c.Html), r = e.querySelector("parsererror");
1807
+ if (r) throw new a("Unable to parse: " + r);
1476
1808
  n = e, t = null;
1477
1809
  } catch {
1478
1810
  console.warn("Discovered text as html table but could could not parse.");
1479
1811
  }
1480
1812
  try {
1481
- let r, i = new Kt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text"), a = await Promise.resolve(t ? ke(t) : [[]]);
1482
- if (He(n, a, i) ? (e = i.sheet(), r = e.getUsedRange()) : n = null, r) return this._parsed = {
1813
+ let r, i = new ln(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text"), a = await Promise.resolve(t ? b(t) : [[]]);
1814
+ if (x(n, a, i) ? (e = i.sheet(), r = e.getUsedRange()) : n = null, r) return this._parsed = {
1483
1815
  copyTo: async (e, t) => (await e.copyFrom(r, t))?.getCoords() ?? null,
1484
1816
  getCoords: () => r.getCoords(),
1485
1817
  getSource: () => e,
@@ -1494,7 +1826,7 @@ var Ut = class {
1494
1826
  async copyTo(t, n) {
1495
1827
  let r = t.getSheet(), i = await e._native.image.arrayBuffer(), a = await r.getMovables().addPicture({ source: { buffer: i } }, {
1496
1828
  type: "picture",
1497
- description: m("op.copyImageFromClipboard")
1829
+ description: d("op.copyImageFromClipboard")
1498
1830
  });
1499
1831
  return r.getView().selectMovables([a]), null;
1500
1832
  },
@@ -1506,7 +1838,7 @@ var Ut = class {
1506
1838
  get isClipboardItem() {
1507
1839
  return !0;
1508
1840
  }
1509
- }, J = {
1841
+ }, $ = {
1510
1842
  showFormulaBar: !0,
1511
1843
  showTabs: !0,
1512
1844
  tabRatio: 600,
@@ -1514,9 +1846,9 @@ var Ut = class {
1514
1846
  showVerticalScrollbar: !0,
1515
1847
  showStatusBar: !0,
1516
1848
  activeSheetId: 0
1517
- }, Yt = class {
1849
+ }, fn = class {
1518
1850
  constructor(e) {
1519
- this._id = i.uuidV4(), this._emitter = new T(this), this._state = { ...J }, e?.json && this._fromJSON(e?.json);
1851
+ this._id = t.uuidV4(), this._emitter = new k(this), this._state = { ...$ }, e?.json && this._fromJSON(e?.json);
1520
1852
  }
1521
1853
  getId() {
1522
1854
  return this._id;
@@ -1571,7 +1903,7 @@ var Ut = class {
1571
1903
  let e = {}, t = Object.keys(this._state), n = t.length;
1572
1904
  for (let r = 0; r < n; r++) {
1573
1905
  let n = t[r], i = this._state[n];
1574
- i != null && i !== J[n] && (e[n] = i);
1906
+ i != null && i !== $[n] && (e[n] = i);
1575
1907
  }
1576
1908
  return Object.keys(e).length === 0 && (e = null), e;
1577
1909
  }
@@ -1581,7 +1913,7 @@ var Ut = class {
1581
1913
  }
1582
1914
  update(e, t = !0) {
1583
1915
  this._state = {
1584
- ...J,
1916
+ ...$,
1585
1917
  ...this._state,
1586
1918
  ...e
1587
1919
  }, t && this._emitter.notify("onViewChange");
@@ -1596,13 +1928,13 @@ var Ut = class {
1596
1928
  get isIWorkbookView() {
1597
1929
  return !0;
1598
1930
  }
1599
- }, Xt = Object.freeze({
1931
+ }, pn = Object.freeze({
1600
1932
  structure: !1,
1601
1933
  windows: !1,
1602
1934
  revision: !1,
1603
1935
  password: null,
1604
1936
  revisionsPassword: null
1605
- }), Y = class extends ge {
1937
+ }), mn = class extends Ee {
1606
1938
  isWindowsAllowed() {
1607
1939
  return this._isPropertyAllowed("windows");
1608
1940
  }
@@ -1624,7 +1956,7 @@ var Ut = class {
1624
1956
  let n = Object.keys(t), r = n.length;
1625
1957
  for (let i = 0; i < r; i++) {
1626
1958
  let r = n[i], a = t[r];
1627
- a != null && a !== Xt[r] && (e[r] = a);
1959
+ a != null && a !== pn[r] && (e[r] = a);
1628
1960
  }
1629
1961
  }
1630
1962
  return super._toJSON(e);
@@ -1636,10 +1968,10 @@ var Ut = class {
1636
1968
  return !0;
1637
1969
  }
1638
1970
  };
1639
- function X(e) {
1640
- return h("error.workbook.invalidSheetKey", { key: e });
1971
+ function hn(e) {
1972
+ return f("error.workbook.invalidSheetKey", { key: e });
1641
1973
  }
1642
- var Zt, Qt, $t, en, tn = class extends Ke {
1974
+ var gn, _n, vn = class extends He {
1643
1975
  constructor(e, t, n) {
1644
1976
  super(), this._add = e, this._get = t, this._addListeners = n;
1645
1977
  }
@@ -1658,39 +1990,39 @@ var Zt, Qt, $t, en, tn = class extends Ke {
1658
1990
  get isISheetCollection() {
1659
1991
  return !0;
1660
1992
  }
1661
- }, Z = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), nn = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1662
- function rn(e) {
1663
- let t = h(m("workbook.defaultSheetName"), { n: e + 1 });
1993
+ }, yn = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), bn = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1994
+ function xn(e) {
1995
+ let t = f(d("workbook.defaultSheetName"), { n: e + 1 });
1664
1996
  return t === "workbook.defaultSheetName" ? `Sheet${e + 1}` : t;
1665
1997
  }
1666
- function an(e, t) {
1998
+ function Sn(e, t) {
1667
1999
  return {
1668
- ...Xe,
2000
+ ...Ge,
1669
2001
  getSheet: () => null,
1670
- toString: () => O(e, t)
2002
+ toString: () => N(e, t)
1671
2003
  };
1672
2004
  }
1673
- function on(e, t = !1) {
1674
- if (!e) throw Error(h("error.workbook.sheetNameBlank"));
1675
- if (Z.test(e)) {
2005
+ function Cn(e, t = !1) {
2006
+ if (!e) throw Error(f("error.workbook.sheetNameBlank"));
2007
+ if (yn.test(e)) {
1676
2008
  if (!t) throw Error(function(e) {
1677
- return e ? h("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : h("error.workbook.sheetNameInvalidChars");
2009
+ return e ? f("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : f("error.workbook.sheetNameInvalidChars");
1678
2010
  }(e));
1679
- e = e.replace(Z, "");
2011
+ e = e.replace(yn, "");
1680
2012
  }
1681
- if (e.length === 0) throw Error(h("error.workbook.sheetNameBlank"));
2013
+ if (e.length === 0) throw Error(f("error.workbook.sheetNameBlank"));
1682
2014
  let n = e.length;
1683
2015
  if (n > 31) {
1684
- if (!t) throw Error(h("error.workbook.sheetNameTooLong"));
2016
+ if (!t) throw Error(f("error.workbook.sheetNameTooLong"));
1685
2017
  e = e.substring(0, 31);
1686
2018
  }
1687
2019
  if (e.charAt(0) === "'" || e.charAt(n - 1) === "'") {
1688
- if (!t) throw Error(h("error.workbook.sheetNameQuotes"));
2020
+ if (!t) throw Error(f("error.workbook.sheetNameQuotes"));
1689
2021
  e = e.replace(/^'|'$/g, "");
1690
2022
  }
1691
2023
  return e;
1692
2024
  }
1693
- var sn, cn = "workbook.activeSheet", Q = class e extends he {
2025
+ var wn, Tn, En, Dn = "workbook.activeSheet", On = class e extends je {
1694
2026
  constructor(e, t, n, r) {
1695
2027
  super(e, t, r), this._workbook = n;
1696
2028
  }
@@ -1701,23 +2033,23 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1701
2033
  let r = this._options;
1702
2034
  return n && (r = {
1703
2035
  ...this._options,
1704
- getOptions: S(this._options?.getOptions, n)
2036
+ getOptions: M(this._options?.getOptions, n)
1705
2037
  }), new e(t, this._internal, this._workbook, r);
1706
2038
  }
1707
2039
  _createRange(e, t) {
1708
- let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, L.Visibility.VeryHidden) : null;
2040
+ let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, I.Visibility.VeryHidden) : null;
1709
2041
  if (!r) {
1710
2042
  let e = this._workbook.getSelectedSheet();
1711
- return delete n?.scope, an(n, n ? {
1712
- scope: re,
2043
+ return delete n?.scope, Sn(n, n ? {
2044
+ scope: _e,
1713
2045
  ...e.getEntireRange().getCoords()
1714
2046
  } : null);
1715
2047
  }
1716
2048
  let i = this._options;
1717
2049
  return t && (i = {
1718
2050
  ...this._options,
1719
- getOptions: S(this._options.getOptions, t)
1720
- }), new ln(e, D(r.sheet), this._workbook, i);
2051
+ getOptions: M(this._options.getOptions, t)
2052
+ }), new kn(e, L(r.sheet), this._workbook, i);
1721
2053
  }
1722
2054
  async select(e) {
1723
2055
  let t = [], n = null, r = this.getCoords();
@@ -1741,15 +2073,15 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1741
2073
  }
1742
2074
  getAddress(e) {
1743
2075
  let t = this._internal.getSheet(), n = t.getEntireRange().getCoords();
1744
- return Be(this.getCoords(), {
2076
+ return se(this.getCoords(), {
1745
2077
  ...n,
1746
2078
  scope: t.getName()
1747
- }, O, Me, e);
2079
+ }, N, Ye, e);
1748
2080
  }
1749
2081
  toString() {
1750
2082
  return this.getAddress();
1751
2083
  }
1752
- }, ln = class e extends Qe {
2084
+ }, kn = class e extends Ze {
1753
2085
  constructor(e, t, n, r) {
1754
2086
  super(e, t, r), this._workbook = n;
1755
2087
  }
@@ -1757,17 +2089,17 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1757
2089
  let n = this._options;
1758
2090
  return t && (n = {
1759
2091
  ...this._options,
1760
- getOptions: S(this._options?.getOptions, t)
1761
- }), new Q(e, this._internal, this._workbook, n);
2092
+ getOptions: M(this._options?.getOptions, t)
2093
+ }), new On(e, this._internal, this._workbook, n);
1762
2094
  }
1763
2095
  _createRange(t, n) {
1764
2096
  let r = this._internal;
1765
- if (!t) return ve(r.getSheet(), r.getSheet().getEntireCoords());
1766
- if (r.validateCoords(t), r.getSheet().isClosed()) return ve(null, r.getSheet().getEntireCoords(), t);
2097
+ if (!t) return le(r.getSheet(), r.getSheet().getEntireCoords());
2098
+ if (r.validateCoords(t), r.getSheet().isClosed()) return le(null, r.getSheet().getEntireCoords(), t);
1767
2099
  let i = this._options;
1768
2100
  return n && (i = {
1769
2101
  ...this._options,
1770
- getOptions: S(this._options?.getOptions, n)
2102
+ getOptions: M(this._options?.getOptions, n)
1771
2103
  }), new e(t, this._internal, this._workbook, i);
1772
2104
  }
1773
2105
  addListener(e, t) {
@@ -1780,7 +2112,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1780
2112
  }
1781
2113
  getAddress(e) {
1782
2114
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
1783
- return O(this.getCoords(), {
2115
+ return N(this.getCoords(), {
1784
2116
  ...n,
1785
2117
  scope: t.getName()
1786
2118
  });
@@ -1788,13 +2120,13 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1788
2120
  toString() {
1789
2121
  return this.getAddress();
1790
2122
  }
1791
- }, un = (e) => !!e && typeof e == "object" && typeof e.getOrigin == "function", dn = class {
1792
- constructor(e) {
1793
- this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new Le(() => {
2123
+ }, An = (e) => !!e && typeof e == "object" && typeof e.getOrigin == "function", jn = class {
2124
+ constructor(n) {
2125
+ this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new C(() => {
1794
2126
  let e = [];
1795
2127
  for (let t of this.getSheets()) e.push(...t.getPivotTables());
1796
2128
  return e;
1797
- }), this._people = new Wt(), this._commentCollection = new ne(null, (e, t, n) => {
2129
+ }), this._people = new sn(), this._commentCollection = new Xe(null, (e, t, n) => {
1798
2130
  let r = [];
1799
2131
  for (let i of this.getSheets()) r.push(...i.getComments().getItems(e ? {
1800
2132
  address: e,
@@ -1807,24 +2139,24 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1807
2139
  return r;
1808
2140
  }, (e, t) => this.addListeners({ onSheetsChange: e.onCollectionChange ? () => {
1809
2141
  e.onCollectionChange(this._commentCollection);
1810
- } : void 0 }, t)), this._restoringSheets = !1, this._isDate1904 = !1, this._codeName = null, this._updateLinks = null, this._locale = null, this._localeOverrides = null;
1811
- let t = typeof e == "string" ? { origin: e } : { ...e }, n = t.origin;
1812
- this._ownOriginProvider = !un(n), this._originProvider = un(n) ? n : new at(typeof n == "string" ? new R(null, { name: n }) : n ?? new R(null)), delete t.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
1813
- let a = t.json;
1814
- delete t.json, this._transactions = t.transactions ?? new Pe(), this._id = this._transactions.create(), this._ownTransactions = !t.transactions, this._emitter = new T(this, this._transactions), this._runtime = t.runtime ?? new we("Workbook Runtime", {
2142
+ } : void 0 }, t)), this._isDate1904 = !1, this._codeName = null, this._updateLinks = null, this._locale = null, this._localeOverrides = null;
2143
+ let r = typeof n == "string" ? { origin: n } : { ...n }, i = r.origin;
2144
+ this._ownOriginProvider = !An(i), this._originProvider = An(i) ? i : new at(typeof i == "string" ? new R(null, { name: i }) : i ?? new R(null)), delete r.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
2145
+ let a = r.json;
2146
+ delete r.json, this._transactions = r.transactions ?? new ke(), this._id = this._transactions.create(), this._ownTransactions = !r.transactions, this._emitter = new k(this, this._transactions), this._runtime = r.runtime ?? new Se("Workbook Runtime", {
1815
2147
  isDate1904: () => this._isDate1904,
1816
2148
  getNow: () => this._transactions.getCurrentCommit().getTimestamp(),
1817
- getLocale: () => this._locale ?? $e() ?? Oe(),
2149
+ getLocale: () => this._locale ?? ve() ?? be(),
1818
2150
  getLocaleOverrides: () => this._localeOverrides
1819
- }), this._listenerLanguage = r.addChangeListener(() => {
2151
+ }), this._listenerLanguage = e.addChangeListener(() => {
1820
2152
  this._closed || this._notifyAllChange();
1821
2153
  });
1822
- let o = this, s = this._beginCommit({ description: m(a ? "op.openWorkbook" : "op.newWorkbook") });
2154
+ let o = this, s = this._beginCommit({ description: d(a ? "op.openWorkbook" : "op.newWorkbook") });
1823
2155
  try {
1824
- this._strings = t.strings ?? new y(), this._ownStrings = !t.strings, this._resources = t.resources ?? new Ze(), this._ownResources = !t.resources, this._createSheetName = t.createSheetNameCallback ?? rn;
1825
- let e = t.createSheetCallback;
1826
- e ||= (e) => new N(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, i, a, s) => {
1827
- let c = null, l = {
2156
+ this._strings = r.strings ?? new pe(), this._ownStrings = !r.strings, this._resources = r.resources ?? new We(), this._ownResources = !r.resources, this._createSheetName = r.createSheetNameCallback ?? xn;
2157
+ let e = r.createSheetCallback;
2158
+ e ||= (e) => new D(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, i, a, s, c) => {
2159
+ let l = null, u = {
1828
2160
  runtime: o._runtime,
1829
2161
  readonly: o._options.readonly ?? !1,
1830
2162
  disableLoadAutoFit: o._options.disableLoadAutoFit ?? !1,
@@ -1839,66 +2171,66 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1839
2171
  resolveRange: (e) => o._options.resolveRange?.(e) ?? o.getRange(e),
1840
2172
  container: {
1841
2173
  beforeFromJSON: (e) => {
1842
- c = e, o._addSheetRef({
2174
+ l = e, o._addSheetRef({
1843
2175
  name: n,
1844
2176
  id: t,
1845
- visibility: r ?? L.Visibility.Visible,
2177
+ visibility: r ?? I.Visibility.Visible,
1846
2178
  sheetId: a,
1847
2179
  sheet: e
1848
2180
  }, i);
1849
2181
  },
1850
2182
  getName: () => {
1851
- let e = o._getSheetRef(c);
2183
+ let e = o._getSheetRef(l);
1852
2184
  return e ? e.name : n;
1853
2185
  },
1854
2186
  setName: (e, t) => {
1855
- o._getSheetRef(c) && o._setSheetName(c, e, t);
2187
+ o._getSheetRef(l) && o._setSheetName(l, e, t);
1856
2188
  },
1857
2189
  setNameChangeCallback: (e) => {
1858
2190
  o._sheetOnNameChange.set(t, e);
1859
2191
  },
1860
2192
  getVisibility: () => {
1861
- let e = o._getSheetRef(c);
1862
- return e ? e.visibility : L.Visibility.Visible;
2193
+ let e = o._getSheetRef(l);
2194
+ return e ? e.visibility : I.Visibility.Visible;
1863
2195
  },
1864
2196
  setVisibility: (e, t) => {
1865
- o._setSheetVisibility(c, e, t);
2197
+ o._setSheetVisibility(l, e, t);
1866
2198
  },
1867
2199
  setVisibilityCallback: (e) => {
1868
2200
  o._sheetOnVisibilityChange.set(t, e);
1869
2201
  },
1870
- duplicate: () => o._duplicateSheet(c),
2202
+ duplicate: () => o._duplicateSheet(l),
1871
2203
  getIndex: () => {
1872
- let e = o._getSheetRef(c);
1873
- return e ? o._getOffsetForId(e.id, o._getSheetRefs(L.Visibility.VeryHidden)) : i;
2204
+ let e = o._getSheetRef(l);
2205
+ return e ? o._getOffsetForId(e.id, o._getSheetRefs(I.Visibility.VeryHidden)) : i;
1874
2206
  },
1875
2207
  setIndex: (e, t) => {
1876
- let n = o._getSheetRef(c, L.Visibility.VeryHidden);
2208
+ let n = o._getSheetRef(l, I.Visibility.VeryHidden);
1877
2209
  return !!n && (o._moveSheet(n, e, t), !0);
1878
2210
  },
1879
2211
  setIndexCallback: (e) => {
1880
2212
  o._sheetOnIndexChange.set(t, e);
1881
2213
  },
1882
- requestSelect: async () => (o._setSelectedSheet(c), await this._emitter.notify("onRequestSelect", {
2214
+ requestSelect: async () => (o._setSelectedSheet(l), await this._emitter.notify("onRequestSelect", {
1883
2215
  source: o,
1884
- params: c,
2216
+ params: l,
1885
2217
  async: !0
1886
- }), o.getSelectedSheet() === c)
2218
+ }), o.getSelectedSheet() === l)
1887
2219
  }
1888
2220
  };
1889
- return s && (l.json = s), c = e(l, n, i, r), c;
1890
- }, this._namedTableSource = new ae({
1891
- getSheets: () => o._sheets ? o.getSheets().getItems() : i.EmptyArray,
2221
+ return s && (u.json = s), c !== void 0 && (u.uid = () => c), l = e(u, n, i, r), l;
2222
+ }, this._namedTableSource = new ne({
2223
+ getSheets: () => o._sheets ? o.getSheets().getItems() : t.EmptyArray,
1892
2224
  addSheetsListener: (e, t) => o.addListeners({ onSheetsChange: e }, t)
1893
- }), this._names = t.names ?? new ee({
2225
+ }), this._names = r.names ?? new Ue({
1894
2226
  addressToRanges: (e) => o.getRanges(e),
1895
2227
  getCurrentScope: () => o.getSelectedSheet().getName(),
1896
2228
  isReadOnly: () => (o._options.readonly ?? !1) || o._isStructureProtected(),
1897
2229
  transactions: o._transactions,
1898
- getSources: () => o._calculation ? [o._calculation.getNamedFormulas(), o._namedTableSource] : i.EmptyArray
1899
- }), this._ownNames = !t.names, this._calculation = t.calculation ?? new We({
2230
+ getSources: () => o._calculation ? [o._calculation.getNamedFormulas(), o._namedTableSource] : t.EmptyArray
2231
+ }), this._ownNames = !r.names, this._calculation = r.calculation ?? new te({
1900
2232
  runtime: o._runtime,
1901
- functions: t.functions,
2233
+ functions: r.functions,
1902
2234
  json: a?.calc,
1903
2235
  isNamesReadOnly: () => o._isStructureProtected(),
1904
2236
  getActiveCell: () => {
@@ -1915,19 +2247,19 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1915
2247
  getSheetIndex: (e) => {
1916
2248
  if (e === void 0) {
1917
2249
  let e = o.getSelectedSheet();
1918
- return e ? this._getSheetRefs(L.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
2250
+ return e ? this._getSheetRefs(I.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1919
2251
  }
1920
- let t = this._getSheetRefs(L.Visibility.VeryHidden);
2252
+ let t = this._getSheetRefs(I.Visibility.VeryHidden);
1921
2253
  e = e.toLowerCase();
1922
2254
  let n = t.length;
1923
2255
  for (let r = 0; r < n; r++) if (t[r].name.toLowerCase() === e) return r;
1924
2256
  try {
1925
- fn.address = e;
1926
- let t = this._names.getItems(fn);
2257
+ Mn.address = e;
2258
+ let t = this._names.getItems(Mn);
1927
2259
  if (!t || t.length === 0) return -1;
1928
2260
  let n = t[0].getRanges?.()?.getCoords()?.[0]?.scope;
1929
2261
  if (!n) return -1;
1930
- let r = this._getSheetRefs(L.Visibility.VeryHidden);
2262
+ let r = this._getSheetRefs(I.Visibility.VeryHidden);
1931
2263
  n = n.toLowerCase();
1932
2264
  let i = r.length;
1933
2265
  for (let e = 0; e < i; e++) if (r[e].name.toLowerCase() === n) return e;
@@ -1936,37 +2268,30 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1936
2268
  }
1937
2269
  return -1;
1938
2270
  },
1939
- getSheetCount: () => o.getSheets().getItems({ visibility: L.Visibility.VeryHidden }).length,
1940
- getSheetIds: () => o._sheets?.getItems({ visibility: L.Visibility.VeryHidden }).map((e) => e.getId()) ?? [],
1941
- addSheetsListener: (e, t) => o.addListeners({ onSheetsChange: () => {
1942
- o._restoringSheets || e();
1943
- } }, t),
1944
- getSheetById: (e) => {
1945
- let t = o.getSheets().getItems({ visibility: L.Visibility.VeryHidden }), n = t.length;
1946
- for (let r = 0; r < n; r++) if (t[r].getId() === e) return t[r];
1947
- return null;
1948
- },
2271
+ getSheetCount: () => o.getSheets().getItems({ visibility: I.Visibility.VeryHidden }).length,
1949
2272
  externalBooks: a?.externalBooks,
1950
- externalBookResolver: t.externalBookResolver,
2273
+ externalBookResolver: r.externalBookResolver,
1951
2274
  namedCollection: o._names,
1952
2275
  strings: o._strings,
1953
2276
  transactions: o._transactions,
1954
2277
  names: a?.names
1955
- }), this._ownCalculation = !t.calculation, this._scripts = this._createScripts(a?.modules), this._ownNames = !t.names, this._options = Object.freeze({ ...t });
1956
- let n = t.calcOnLoad ?? "auto", r = !1, c = (async () => {
2278
+ }), this._ownCalculation = !r.calculation, this._scripts = this._createScripts(a?.modules), this._ownNames = !r.names, this._options = Object.freeze({ ...r });
2279
+ let n = a?.sheets?.length ? a.sheets.map((e) => e.name) : [this._createSheetName(0)], i = n.map((e) => e + "-" + t.uuidV4());
2280
+ this._calculation._setSheets(n.map((e, t) => [i[t], e]));
2281
+ let c = r.calcOnLoad ?? "auto", l = !1, u = (async () => {
1957
2282
  try {
1958
- if (this._ownCalculation && n !== "none" && (n === "full" || n === "auto" && !0 === a?.calc?.fullCalcOnLoad ? await this._calculation.calculate({ full: !0 }) : await this._calculation.start(), this._closed)) return;
2283
+ if (this._ownCalculation && c !== "none" && (c === "full" || c === "auto" && !0 === a?.calc?.fullCalcOnLoad ? await this._calculation.calculate({ full: !0 }) : await this._calculation.start(), this._closed)) return;
1959
2284
  await this._scripts.start();
1960
2285
  } finally {
1961
- r = !0, this._starting = null;
2286
+ l = !0, this._starting = null;
1962
2287
  }
1963
2288
  })();
1964
- r || (this._starting = c), this._starting?.catch(() => {}), a ? this._fromJSON(a) : (this._initState(), this._addSheet(!1)), this._sheets = new tn((e) => o._addSheetOptions(e), (e, t) => {
2289
+ l || (this._starting = u), this._starting?.catch(() => {}), a ? this._fromJSON(a, i) : (this._initState(), this._addSheet(!1, n[0], null, i[0])), this._sheets = new vn((e) => o._addSheetOptions(e), (e, n) => {
1965
2290
  if (e) {
1966
- let n = this._getSheetRef(e, t);
1967
- return n ? [n.sheet] : i.EmptyArray;
2291
+ let r = this._getSheetRef(e, n);
2292
+ return r ? [r.sheet] : t.EmptyArray;
1968
2293
  }
1969
- return this._getSheets(t);
2294
+ return this._getSheets(n);
1970
2295
  }, (e, t) => {
1971
2296
  let n = e.onCollectionChange, r = e.onInvalidated;
1972
2297
  return o._emitter.addListeners({
@@ -1977,7 +2302,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1977
2302
  r(o._sheets);
1978
2303
  } : void 0
1979
2304
  }, t);
1980
- }), this._ownCalculation && (t.calcOnLoad ?? "auto") !== "none" && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), this._ownTransactions ? s.amend() : s.commit();
2305
+ }), this._ownCalculation && (r.calcOnLoad ?? "auto") !== "none" && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), this._ownTransactions ? s.amend() : s.commit();
1981
2306
  } catch (e) {
1982
2307
  throw s.rollback(), e;
1983
2308
  }
@@ -1987,22 +2312,14 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
1987
2312
  let e = this._getSheetRefs();
1988
2313
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
1989
2314
  let t = this._options;
1990
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new Ue().getDefaultTheme(), this._styles = t?.styles ?? new De(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Yt()), this._listenerProtection?.(), this._protection = new Y(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2315
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new y().getDefaultTheme(), this._styles = t?.styles ?? new ye(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new fn()), this._listenerProtection?.(), this._protection = new mn(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1991
2316
  n._emitter.notify("onProtectionChange");
1992
2317
  } });
1993
2318
  let n = this;
1994
2319
  this._transactionsRemoveListener = this._transactions.addStateListener(this._id, {
1995
2320
  async onAfterStateChange(e, t, r, i, a) {
1996
- let o = n._view, s = a?.[cn], c = r ? s?.before : s?.after, l = s?.viewId === o.getId() && c != null, u = l ? c : o.getActiveSheetId(), d = l && t.getId() === n._lastTransactionUUID ? n._getSheetRef({ id: u }) : null;
1997
- if (d ? await d.sheet.select() : n._resyncActiveSheet(u, e), n._lastTransactionUUID = t.getId(), r || i) {
1998
- n._restoringSheets = !0;
1999
- try {
2000
- n._emitter.notify("onSheetsChange");
2001
- } finally {
2002
- n._restoringSheets = !1;
2003
- }
2004
- }
2005
- n._emitter.notify("onSelectedSheetChange"), n._emitter.notify("onViewChange");
2321
+ let o = n._view, s = a?.[Dn], c = r ? s?.before : s?.after, l = s?.viewId === o.getId() && c != null, u = l ? c : o.getActiveSheetId(), d = l && t.getId() === n._lastTransactionUUID ? n._getSheetRef({ id: u }) : null;
2322
+ d ? await d.sheet.select() : n._resyncActiveSheet(u, e), n._lastTransactionUUID = t.getId(), (r || i) && n._emitter.notify("onSheetsChange"), n._emitter.notify("onSelectedSheetChange"), n._emitter.notify("onViewChange");
2006
2323
  },
2007
2324
  onRestoreOrRevert() {
2008
2325
  n._ownCalculation, n._emitter.notify("onInvalidated");
@@ -2056,8 +2373,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2056
2373
  return this._view;
2057
2374
  }
2058
2375
  setView(e) {
2059
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2060
- if (!e) throw new c(h("error.sheet.emptyView"));
2376
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2377
+ if (!e) throw new a(f("error.sheet.emptyView"));
2061
2378
  this._listenerWorkbookView?.();
2062
2379
  let t = this, n = -1;
2063
2380
  return this._listenerWorkbookView = e.addListeners({ onViewChange: (e) => {
@@ -2069,7 +2386,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2069
2386
  return this._runtime;
2070
2387
  }
2071
2388
  setDate1904(e) {
2072
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2389
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2073
2390
  return this._isDate1904 === e || (this._isDate1904 = e, this._emitter.notify("onRegionalChange")), this;
2074
2391
  }
2075
2392
  getLocale() {
@@ -2079,11 +2396,11 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2079
2396
  return this._locale;
2080
2397
  }
2081
2398
  setLocale(e) {
2082
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2399
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2083
2400
  if (e) try {
2084
2401
  new Intl.Locale(e);
2085
2402
  } catch {
2086
- throw Error(h("error.workbook.invalidLocale", { locale: e }));
2403
+ throw Error(f("error.workbook.invalidLocale", { locale: e }));
2087
2404
  }
2088
2405
  return this._locale === e || (this._locale = e, this._emitter.notify("onRegionalChange")), this;
2089
2406
  }
@@ -2091,7 +2408,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2091
2408
  return this._localeOverrides;
2092
2409
  }
2093
2410
  setLocaleOverrides(e) {
2094
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2411
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2095
2412
  let t = e && Object.keys(e).length > 0 ? e : null;
2096
2413
  return this._localeOverrides = t, this._emitter.notify("onRegionalChange"), this;
2097
2414
  }
@@ -2114,7 +2431,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2114
2431
  return this._updateLinks;
2115
2432
  }
2116
2433
  setUpdateLinks(e) {
2117
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2434
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2118
2435
  return this._updateLinks = e, this;
2119
2436
  }
2120
2437
  getPivotTables() {
@@ -2130,8 +2447,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2130
2447
  return this._theme;
2131
2448
  }
2132
2449
  setTheme(e) {
2133
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2134
- if (!e) throw new c(h("error.workbook.notSetValue"));
2450
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2451
+ if (!e) throw new a(f("error.workbook.notSetValue"));
2135
2452
  let t = this._theme;
2136
2453
  return this._theme = e, this.getStyles().setTheme(e), this._emitter.notify("onThemeChange"), t;
2137
2454
  }
@@ -2142,17 +2459,17 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2142
2459
  let e = this._getSheetRef(this.getSelectedSheetIndex());
2143
2460
  return e ? e?.sheet : null;
2144
2461
  }
2145
- getSheet(e, t = L.Visibility.Visible) {
2462
+ getSheet(e, t = I.Visibility.Visible) {
2146
2463
  if (e === void 0) return this.getSelectedSheet();
2147
- if (!e) throw Error(h("error.workbook.sheetNameNotProvided"));
2464
+ if (!e) throw Error(f("error.workbook.sheetNameNotProvided"));
2148
2465
  let n = this._getSheetRef(e, t);
2149
- if (!n) throw new o(h("error.workbook.sheetNameNotFound", { sheetName: e }));
2466
+ if (!n) throw new r(f("error.workbook.sheetNameNotFound", { sheetName: e }));
2150
2467
  return n.sheet;
2151
2468
  }
2152
- getSheetAt(e, t = L.Visibility.Visible) {
2469
+ getSheetAt(e, t = I.Visibility.Visible) {
2153
2470
  let n = this._getSheetRef(e, t);
2154
- if (!n) throw new o(function(e) {
2155
- return h("error.workbook.sheetIndexNotFound", { index: e });
2471
+ if (!n) throw new r(function(e) {
2472
+ return f("error.workbook.sheetIndexNotFound", { index: e });
2156
2473
  }(e));
2157
2474
  return n.sheet;
2158
2475
  }
@@ -2162,32 +2479,32 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2162
2479
  addSheet(e) {
2163
2480
  return this.getSheets().add(e);
2164
2481
  }
2165
- _getSheets(e = L.Visibility.Visible) {
2482
+ _getSheets(e = I.Visibility.Visible) {
2166
2483
  let t = this._getSheetRefs(e), n = [], r = t.length;
2167
2484
  for (let e = 0; e < r; e++) n.push(t[e].sheet);
2168
2485
  return n;
2169
2486
  }
2170
- _getSheetRefs(e = L.Visibility.Visible) {
2171
- let t = this._getState();
2172
- return t ? e === L.Visibility.Visible ? t.sheetRefsVisible : e === L.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === L.Visibility.VeryHidden ? t.sheetRefsAll : i.EmptyArray : [];
2487
+ _getSheetRefs(e = I.Visibility.Visible) {
2488
+ let n = this._getState();
2489
+ return n ? e === I.Visibility.Visible ? n.sheetRefsVisible : e === I.Visibility.Hidden ? n.sheetRefsVisibleAndHidden : e === I.Visibility.VeryHidden ? n.sheetRefsAll : t.EmptyArray : [];
2173
2490
  }
2174
- _getSheetRef(e, t = L.Visibility.Visible) {
2491
+ _getSheetRef(e, t = I.Visibility.Visible) {
2175
2492
  let n = null;
2176
- return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof N ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2493
+ return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof D ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2177
2494
  }
2178
2495
  _validateNewSheetName(e, t = !0) {
2179
2496
  if (e == null) return e;
2180
- if (on(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new c(h("error.workbook.nameTaken"));
2497
+ if (Cn(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new a(f("error.workbook.nameTaken"));
2181
2498
  return e.substring(0, 31);
2182
2499
  }
2183
2500
  findValidSheetName(e) {
2184
- e &&= on(e, !0);
2501
+ e &&= Cn(e, !0);
2185
2502
  try {
2186
2503
  return function(e, t) {
2187
2504
  try {
2188
2505
  if (t(e)) return e;
2189
2506
  } catch {}
2190
- let n, r, i = nn.exec(e);
2507
+ let n, r, i = bn.exec(e);
2191
2508
  for (i === null ? (n = e + " ", r = 1) : (n = e.substring(0, i.index), r = parseFloat(i[1])); r < 256;) {
2192
2509
  r++;
2193
2510
  let e = "(" + r + ")", i = n.substring(0, 31 - e.length) + e;
@@ -2202,25 +2519,25 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2202
2519
  }
2203
2520
  }
2204
2521
  isValidSheetNameCharacter(e) {
2205
- return !Z.test(e);
2522
+ return !yn.test(e);
2206
2523
  }
2207
2524
  _isStructureProtected() {
2208
2525
  return !this._initializing && !this.getProtection().isStructureAllowed();
2209
2526
  }
2210
2527
  _addSheetOptions(e) {
2211
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2212
- if (!this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2528
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2529
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2213
2530
  let t, n = null;
2214
2531
  t = typeof e == "string" ? { name: e } : typeof e == "number" ? { index: e } : e, t = {
2215
2532
  ...t,
2216
- description: t?.description ?? m("op.addSheet")
2533
+ description: t?.description ?? d("op.addSheet")
2217
2534
  };
2218
2535
  let r = this.beginCommit(t);
2219
2536
  try {
2220
2537
  let e = t?.autoSelect ?? !1;
2221
2538
  n = this._addSheet(!0, t.name, t.index ?? null);
2222
2539
  let i = this.getView().getActiveSheetId();
2223
- if (e && this._recordActiveSheet(r, i, this._getSheetRef(n).id), r.commit({ description: h("op.addSheetNamed", { name: n.getName() }) }), !1 !== e) {
2540
+ if (e && this._recordActiveSheet(r, i, this._getSheetRef(n).id), r.commit({ description: f("op.addSheetNamed", { name: n.getName() }) }), !1 !== e) {
2224
2541
  let t = typeof e == "boolean" ? void 0 : e;
2225
2542
  n.select(t);
2226
2543
  }
@@ -2231,8 +2548,8 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2231
2548
  }
2232
2549
  _nextSheetName(e = null) {
2233
2550
  let t = e ? e.toLowerCase() : null, n = this._getState(), r = n.sheetsByLowerCaseName;
2234
- if (e && r.has(t)) throw new c(function(e) {
2235
- return h("error.workbook.nameDuplicate", { sheetName: e });
2551
+ if (e && r.has(t)) throw new a(function(e) {
2552
+ return f("error.workbook.nameDuplicate", { sheetName: e });
2236
2553
  }(e));
2237
2554
  t = (e = this._validateNewSheetName(e)) ? e.toLowerCase() : null;
2238
2555
  let i = n.lastId + 1;
@@ -2242,23 +2559,28 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2242
2559
  }
2243
2560
  return this._updateState({ lastId: i }), e;
2244
2561
  }
2245
- _addSheet(e, t = null, n = null) {
2562
+ _addSheet(e, t = null, n = null, r) {
2246
2563
  t = this._nextSheetName(t);
2247
- let r = this._getState(), i = this._createSheet(r.lastId, t, L.Visibility.Visible, n, void 0, null);
2248
- if (!i) throw new c(h("error.workbook.sheetNameBlank"));
2249
- return e && this._emitter.notify("onSheetsChange"), i;
2564
+ let i = this._getState(), o = this._createSheet(i.lastId, t, I.Visibility.Visible, n, void 0, null, r);
2565
+ if (!o) throw new a(f("error.workbook.sheetNameBlank"));
2566
+ return e && (this._tellSheets(), this._emitter.notify("onSheetsChange")), o;
2250
2567
  }
2251
2568
  _updateSheetRefStates(e) {
2252
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2253
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2569
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2570
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2254
2571
  let t = e, n = [], r = [], i = t.length;
2255
- for (let e = 0; e < i; e++) t[e].visibility === L.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === L.Visibility.Hidden && r.push(t[e]);
2572
+ for (let e = 0; e < i; e++) t[e].visibility === I.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === I.Visibility.Hidden && r.push(t[e]);
2256
2573
  this._updateState({
2257
2574
  sheetRefsAll: t,
2258
2575
  sheetRefsVisible: n,
2259
2576
  sheetRefsVisibleAndHidden: r
2260
2577
  });
2261
2578
  }
2579
+ _tellSheets() {
2580
+ if (this._isLoadingSheets) return;
2581
+ let e = this._getState().sheetRefsAll;
2582
+ this._calculation._setSheets(e.map((e) => [e.sheet.getId(), e.name]));
2583
+ }
2262
2584
  _addSheetRef(e, t = null) {
2263
2585
  let n = this._getState(), r = n.sheetRefsAll, i = Math.max(0, Math.min(r.length, t ?? r.length)), a = [
2264
2586
  ...r.slice(0, i),
@@ -2274,21 +2596,21 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2274
2596
  u.set(o, e);
2275
2597
  let d = new Map(n.sheetsById);
2276
2598
  d.set(e.id, o);
2277
- let f = new Map(n.sheetsByLowerCaseName);
2278
- f.set(s, o);
2279
- let p = this, m = n.listenersSheets;
2599
+ let p = new Map(n.sheetsByLowerCaseName);
2600
+ p.set(s, o);
2601
+ let m = this, h = n.listenersSheets;
2280
2602
  if (o !== void 0) {
2281
2603
  let t = o.addListeners({
2282
2604
  onBeforeDelete: (e) => {
2283
- p._validateDeleteSheet(e);
2605
+ m._validateDeleteSheet(e);
2284
2606
  },
2285
2607
  onDelete(e) {
2286
- let t = p._getSheetRef(e, L.Visibility.VeryHidden);
2608
+ let t = m._getSheetRef(e, I.Visibility.VeryHidden);
2287
2609
  if (!t) return;
2288
- let n = p._beginCommit({ description: h("op.deleteSheet", { name: t.name }) });
2610
+ let n = m._beginCommit({ description: f("op.deleteSheet", { name: t.name }) });
2289
2611
  try {
2290
- let r = p._getState(), i = r.sheetRefsAll, a = p._getOffsetForId(t.id, i), s = [...i];
2291
- s.splice(a, 1), p._updateSheetRefStates(s);
2612
+ let r = m._getState(), i = r.sheetRefsAll, a = m._getOffsetForId(t.id, i), s = [...i];
2613
+ s.splice(a, 1), m._updateSheetRefStates(s);
2292
2614
  let c = new Map(r.refsById);
2293
2615
  c.delete(t.id);
2294
2616
  let l = new Map(r.sheetsById);
@@ -2297,17 +2619,17 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2297
2619
  d.delete(u);
2298
2620
  let f = new Map(r.sheetsByLowerCaseName);
2299
2621
  f.delete(u);
2300
- let m = new Map(r.refsByInstance);
2301
- m.delete(e), r.listenersSheets.get(t.id)();
2622
+ let p = new Map(r.refsByInstance);
2623
+ p.delete(e), r.listenersSheets.get(t.id)();
2302
2624
  let h = new Map(r.listenersSheets);
2303
- h.delete(t.id), p._adjustRemoveSelectionIfRequired(a, t.id), p._adjustSheetNamesIfRequired(), p._sheetOnNameChange.delete(t.id), p._sheetOnVisibilityChange.delete(t.id), p._sheetOnIndexChange.delete(t.id), p._emitter.notify("onSheetsChange");
2625
+ h.delete(t.id), m._adjustRemoveSelectionIfRequired(a, t.id), m._adjustSheetNamesIfRequired(), m._sheetOnNameChange.delete(t.id), m._sheetOnVisibilityChange.delete(t.id), m._sheetOnIndexChange.delete(t.id), m._tellSheets(), m._emitter.notify("onSheetsChange");
2304
2626
  let g = new Set(r.sheetsCreated);
2305
- g.has(o) && g.delete(o), p._updateState({
2627
+ g.has(o) && g.delete(o), m._updateState({
2306
2628
  refsById: c,
2307
2629
  sheetsById: l,
2308
2630
  refsByLowerCaseName: d,
2309
2631
  sheetsByLowerCaseName: f,
2310
- refsByInstance: m,
2632
+ refsByInstance: p,
2311
2633
  sheetsCreated: g,
2312
2634
  listenersSheets: h
2313
2635
  }), n.commit();
@@ -2316,12 +2638,12 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2316
2638
  }
2317
2639
  }
2318
2640
  }), r = o.addListeners({ onSelectionChange: (e) => {
2319
- p.getView().getActiveSheetId() === p._getSheetRef(e)?.id && p._emitter.notify("onSelectionChange", {
2320
- source: p,
2641
+ m.getView().getActiveSheetId() === m._getSheetRef(e)?.id && m._emitter.notify("onSelectionChange", {
2642
+ source: m,
2321
2643
  params: e
2322
2644
  });
2323
2645
  } }, { transactional: !1 });
2324
- m = new Map(n.listenersSheets), m.set(e.id, () => {
2646
+ h = new Map(n.listenersSheets), h.set(e.id, () => {
2325
2647
  t(), r();
2326
2648
  });
2327
2649
  }
@@ -2331,15 +2653,15 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2331
2653
  refsByLowerCaseName: l,
2332
2654
  refsByInstance: u,
2333
2655
  sheetsById: d,
2334
- sheetsByLowerCaseName: f,
2335
- listenersSheets: m
2656
+ sheetsByLowerCaseName: p,
2657
+ listenersSheets: h
2336
2658
  }), this._adjustSheetNamesIfRequired();
2337
2659
  let _ = new Set(this._getState().sheetsCreated);
2338
- return _.add(e.sheet), this._updateState({ sheetsCreated: _ }), e;
2660
+ return _.add(e.sheet), this._updateState({ sheetsCreated: _ }), this._tellSheets(), e;
2339
2661
  }
2340
2662
  _recordActiveSheet(e, t, n) {
2341
2663
  let r = this.getView().getId();
2342
- e.setIntent(cn, (e) => ({
2664
+ e.setIntent(Dn, (e) => ({
2343
2665
  viewId: r,
2344
2666
  before: e?.before ?? t,
2345
2667
  after: n
@@ -2369,81 +2691,81 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2369
2691
  let n = this._view.getActiveSheetId();
2370
2692
  n ??= (this._view.setActiveSheetId(t), t);
2371
2693
  let r = e.refsById.get(n);
2372
- r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === L.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2694
+ r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === I.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2373
2695
  }
2374
2696
  _validateDeleteSheet(e) {
2375
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2376
- if (!this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2697
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2698
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2377
2699
  let t = this._getSheetRef(e);
2378
- if (!t) throw new c(function(e) {
2379
- return h("error.workbook.deleteKey", { key: e });
2700
+ if (!t) throw new a(function(e) {
2701
+ return f("error.workbook.deleteKey", { key: e });
2380
2702
  }(e));
2381
2703
  let n = this._getState().sheetRefsVisible;
2382
- if (n.length === 1 && n[0].id === t.id) throw new c(h("error.workbook.sheetOne"));
2704
+ if (n.length === 1 && n[0].id === t.id) throw new a(f("error.workbook.sheetOne"));
2383
2705
  }
2384
2706
  _getOffsetForId(e, t) {
2385
2707
  let n = t.length;
2386
2708
  for (let r = 0; r < n; r++) if (t[r].id === e) return r;
2387
- throw new c(h("error.workbook.noVisibleRefs"));
2709
+ throw new a(f("error.workbook.noVisibleRefs"));
2388
2710
  }
2389
2711
  find(e) {
2390
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2712
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2391
2713
  let t = this._getSheets();
2392
2714
  if (t.length === 1) return t[0].find(e);
2393
2715
  typeof e == "string" && (e = { text: e });
2394
- let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, o = t[a], s = !1;
2716
+ let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, s = t[a], c = !1;
2395
2717
  e = {
2396
2718
  ...e,
2397
2719
  disableWrap: !0
2398
2720
  };
2399
- let c, u = o.find(e), d = u.next(), f = !1;
2721
+ let l, u = s.find(e), d = u.next(), p = !1;
2400
2722
  if (e?.from) {
2401
2723
  let t = this._rangesAddressToCoords(e?.from);
2402
- c = {
2724
+ l = {
2403
2725
  colIndex: t[0].colStart,
2404
2726
  rowIndex: t[0].rowStart
2405
2727
  };
2406
2728
  }
2407
- let p = l.createCellComparator(e?.axis, e?.reverse);
2729
+ let m = o.createCellComparator(e?.axis, e?.reverse);
2408
2730
  delete (e = { ...e }).from;
2409
- let m = () => {
2410
- if (!f && d.done && (s && a === i ? f = !0 : n ? (a++, a > t.length - 1 && (a = 0, s = !0)) : (a--, a < 0 && (a = t.length - 1, s = !0)), r && s && (f = !0), f || c || !s || a !== i || (f = !0), !f)) {
2411
- o = t[a], u = o.find(e);
2731
+ let h = () => {
2732
+ if (!p && d.done && (c && a === i ? p = !0 : n ? (a++, a > t.length - 1 && (a = 0, c = !0)) : (a--, a < 0 && (a = t.length - 1, c = !0)), r && c && (p = !0), p || l || !c || a !== i || (p = !0), !p)) {
2733
+ s = t[a], u = s.find(e);
2412
2734
  let n = d;
2413
2735
  return d = u.next(), n;
2414
2736
  }
2415
- if (!f && s && a === i && (d.done || !c || !d.done && p(d.value.getCoords(), c) >= 0) && (f = !0), f) {
2737
+ if (!p && c && a === i && (d.done || !l || !d.done && m(d.value.getCoords(), l) >= 0) && (p = !0), p) {
2416
2738
  let e = d;
2417
- return d = Te, e;
2739
+ return d = ce, e;
2418
2740
  }
2419
- let l = d;
2420
- return d = u.next(), l;
2741
+ let o = d;
2742
+ return d = u.next(), o;
2421
2743
  };
2422
2744
  return { next: () => {
2423
- let e = m();
2424
- for (; !f && e.done;) e = m();
2745
+ let e = h();
2746
+ for (; !p && e.done;) e = h();
2425
2747
  return e;
2426
2748
  } };
2427
2749
  }
2428
2750
  replace(e, t, n) {
2429
- let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? te(t) : null, u = n?.description ?? m("op.replace"), d = this._transactions.beginCommit({ description: u });
2751
+ let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? he(t) : null, u = n?.description ?? d("op.replace"), p = this._transactions.beginCommit({ description: u });
2430
2752
  try {
2431
- let u = null, f = null, p = e.next();
2432
- for (; !p.done && r < o;) {
2433
- let o = p.value, s = o.getSheet();
2434
- s !== u && (u = s, f !== null && f.apply(), f = u.getEntireRange().createSparseBuilder({
2753
+ let u = null, m = null, h = e.next();
2754
+ for (; !h.done && r < o;) {
2755
+ let o = h.value, s = o.getSheet();
2756
+ s !== u && (u = s, m !== null && m.apply(), m = u.getEntireRange().createSparseBuilder({
2435
2757
  axis: n?.axis,
2436
2758
  allowUnorderedWrites: !0
2437
2759
  }));
2438
2760
  let c = a ? t(o) : t;
2439
- c !== void 0 && c !== o && (f.push(o, c), r++, i = o), p = e.next();
2761
+ c !== void 0 && c !== o && (m.push(o, c), r++, i = o), h = e.next();
2440
2762
  }
2441
- f?.apply(), r === 1 && o === 1 && i && (c = i.getAddress()), r === 0 ? d.rollback() : d.commit({ description: n?.description ?? (s ? l === null ? m("op.replaceAll") : h("op.replaceAllWith", { value: l }) : c ? l === null ? h("op.replaceAt", { address: c }) : h("op.replaceAtWith", {
2763
+ m?.apply(), r === 1 && o === 1 && i && (c = i.getAddress()), r === 0 ? p.rollback() : p.commit({ description: n?.description ?? (s ? l === null ? d("op.replaceAll") : f("op.replaceAllWith", { value: l }) : c ? l === null ? f("op.replaceAt", { address: c }) : f("op.replaceAtWith", {
2442
2764
  address: c,
2443
2765
  value: l
2444
- }) : l === null ? m("op.replace") : h("op.replaceWith", { value: l })) });
2766
+ }) : l === null ? d("op.replace") : f("op.replaceWith", { value: l })) });
2445
2767
  } catch (e) {
2446
- throw d.rollback(), e;
2768
+ throw p.rollback(), e;
2447
2769
  }
2448
2770
  return {
2449
2771
  count: r,
@@ -2459,87 +2781,87 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2459
2781
  return n === 1 ? 0 : (e === void 0 && (e = this.getSelectedSheetIndex()), (e = Math.max(0, Math.min(e, n - 1))) <= 0 ? n - 1 : e - 1);
2460
2782
  }
2461
2783
  getNextSheet(e) {
2462
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2784
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2463
2785
  let t = this._getSheetRefs();
2464
2786
  return t[this._nextSheetIndex(e, t)]?.sheet ?? null;
2465
2787
  }
2466
2788
  getPreviousSheet(e) {
2467
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2789
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2468
2790
  let t = this._getSheetRefs();
2469
2791
  return t[this._prevSheetIndex(e, t)]?.sheet ?? null;
2470
2792
  }
2471
2793
  async _duplicateSheet(e) {
2472
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2473
- if (!this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2794
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2795
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2474
2796
  let t = this._getSheetRefs(), n = this.getSelectedSheetIndex(), r = null;
2475
2797
  if (e) {
2476
- if (r = this._getSheetRef(e), !r) throw new c(X(r));
2798
+ if (r = this._getSheetRef(e), !r) throw new a(hn(r));
2477
2799
  } else r = t[n];
2478
2800
  if (!r) return null;
2479
- let i = r.sheet, a = this._strings.beginPersist(), o = this.getResources().beginPersist(), s = this.getStyles().beginPersist(), l = null, u = this.beginCommit(h("op.duplicateNamed", { name: i.getName() }));
2801
+ let i = r.sheet, o = this._strings.beginPersist(), s = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), l = null, d = this.beginCommit(f("op.duplicateNamed", { name: i.getName() }));
2480
2802
  try {
2481
2803
  let e = this._getState().refsByInstance.get(i), r = await i.toJSON(), a = t.length + 1, o = this.findValidSheetName(e.name), s = this._createSheet(a, o, e.visibility, n, void 0, r);
2482
- this._emitter.notify("onSheetsChange"), l = s, u.commit();
2804
+ this._tellSheets(), this._emitter.notify("onSheetsChange"), l = s, d.commit();
2483
2805
  } catch (e) {
2484
- throw u.rollback(), e;
2806
+ throw d.rollback(), e;
2485
2807
  } finally {
2486
- s.endPersist(), o.endPersist(), a.endPersist();
2808
+ c.endPersist(), s.endPersist(), o.endPersist();
2487
2809
  }
2488
2810
  return l;
2489
2811
  }
2490
2812
  _createRange(e, t) {
2491
- let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, L.Visibility.VeryHidden) : null;
2813
+ let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, I.Visibility.VeryHidden) : null;
2492
2814
  if (!r) {
2493
2815
  let e = this.getSelectedSheet();
2494
- return e ? (delete n?.scope, an(n, n ? {
2495
- scope: re,
2816
+ return e ? (delete n?.scope, Sn(n, n ? {
2817
+ scope: _e,
2496
2818
  ...e.getEntireRange().getCoords()
2497
- } : null)) : void console.warn(h("error.workbook.noVisibleRefs"));
2819
+ } : null)) : void console.warn(f("error.workbook.noVisibleRefs"));
2498
2820
  }
2499
2821
  let i = r.sheet, a = null;
2500
- return t && (a = { getOptions: t }), new ln(e, D(i), this, a);
2822
+ return t && (a = { getOptions: t }), new kn(e, L(i), this, a);
2501
2823
  }
2502
2824
  _createRanges(e, t) {
2503
2825
  let n = this.getSelectedSheet(), r = null;
2504
- return t && (r = { getOptions: t }), new Q(e, D(n), this, r);
2826
+ return t && (r = { getOptions: t }), new On(e, L(n), this, r);
2505
2827
  }
2506
2828
  getRange(e, t) {
2507
2829
  if (e === void 0) return this.getSelectedRange(t);
2508
2830
  try {
2509
2831
  let n = this._rangesAddressToCoords(e);
2510
- if (n.length !== 1) throw new c(h("error.address.singleRangeOnlyAlt"));
2832
+ if (n.length !== 1) throw new a(f("error.address.singleRangeOnlyAlt"));
2511
2833
  return this._createRange(n[0], t);
2512
2834
  } catch (t) {
2513
- throw t instanceof o ? new o(t.message) : new c(t.message ?? x(e));
2835
+ throw t instanceof r ? new r(t.message) : new a(t.message ?? Ie(e));
2514
2836
  }
2515
2837
  }
2516
2838
  getCell(e) {
2517
2839
  if (e === void 0) return this.getSelectedCell();
2518
2840
  let t = this.getRange(e);
2519
- if (t.size > 1) throw new c(h("error.address.singleCellOnly"));
2841
+ if (t.size > 1) throw new a(f("error.address.singleCellOnly"));
2520
2842
  return t.getCell();
2521
2843
  }
2522
2844
  getRanges(e, t) {
2523
2845
  let n = this._rangesAddressToCoords(e);
2524
- if (n.length === 0) throw new c(x(e));
2846
+ if (n.length === 0) throw new a(Ie(e));
2525
2847
  return this._createRanges(n, t);
2526
2848
  }
2527
2849
  _createGraphRanges(e, t) {
2528
2850
  let n = [], r = this.getCalculation()?.getNamedFormulas() ?? null;
2529
2851
  for (let e = 0; e < t.length; e++) {
2530
- let i = t[e], a = (i.sheetName ? this._getSheetRef(i.sheetName, L.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2531
- a && n.push(new xe(i, r, D(a), null));
2852
+ let i = t[e], a = (i.sheetName ? this._getSheetRef(i.sheetName, I.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2853
+ a && n.push(new ge(i, r, L(a), null));
2532
2854
  }
2533
2855
  for (let t = 0; t < e.length; t++) n.push(e[t]);
2534
- return n.length === 0 ? null : new Q(n, D(this.getSelectedSheet()), this, null);
2856
+ return n.length === 0 ? null : new On(n, L(this.getSelectedSheet()), this, null);
2535
2857
  }
2536
2858
  getStats(e) {
2537
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2538
- let t = this._getSheets(L.Visibility.VeryHidden), n = t.length;
2859
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2860
+ let t = this._getSheets(I.Visibility.VeryHidden), n = t.length;
2539
2861
  if (n === 1) return t[0].getStats(e);
2540
2862
  let r = Array(n);
2541
2863
  for (let i = 0; i < n; i++) r[i] = t[i].getStats(e);
2542
- return new Bt(r);
2864
+ return new nn(r);
2543
2865
  }
2544
2866
  _activeRangeCoords() {
2545
2867
  let e = this.getSelectedSheet(), t = e.getSelection().getRanges().getCoords(), n = e.getName(), r = t.length, i = Array(r);
@@ -2564,32 +2886,32 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2564
2886
  getSelectedCell() {
2565
2887
  return this.getSelectedSheet().getSelectedCell();
2566
2888
  }
2567
- _rangesAddressToCoords(e, t = !0, n = L.Visibility.Hidden) {
2568
- if (!e) throw new c(h("error.address.noAddress"));
2569
- let r = this.getSelectedSheet(), i = { ...r?.getEntireRange().getCoords() }, a = r?.getName();
2570
- if (a && (i.scope = a), typeof e == "string") {
2889
+ _rangesAddressToCoords(e, t = !0, n = I.Visibility.Hidden) {
2890
+ if (!e) throw new a(f("error.address.noAddress"));
2891
+ let r = this.getSelectedSheet(), i = { ...r?.getEntireRange().getCoords() }, o = r?.getName();
2892
+ if (o && (i.scope = o), typeof e == "string") {
2571
2893
  let t = e.trim().toLowerCase();
2572
2894
  if (t === "r" || t === "c") {
2573
2895
  let n = this.getSelectedCell().getCoords(), r = {};
2574
2896
  t === "r" ? r.rowStart = r.rowEnd = n.rowIndex : r.colStart = r.colEnd = n.colIndex, e = r;
2575
2897
  }
2576
2898
  }
2577
- let o = this, s = je(e, i, b, (e) => {
2899
+ let s = this, c = Re(e, i, me, (e) => {
2578
2900
  if (!t) return null;
2579
2901
  if (typeof e == "string") {
2580
- let t = o.getNames().getByName(e)?.getRanges?.();
2902
+ let t = s.getNames().getByName(e)?.getRanges?.();
2581
2903
  if (t) return t.getCoords();
2582
2904
  }
2583
- throw new c(`Invalid sheet reference '${e}'.`);
2584
- }), l = s.length;
2585
- for (let e = 0; e < l; e++) this._validateCoords(s[e], n);
2586
- return s;
2905
+ throw new a(`Invalid sheet reference '${e}'.`);
2906
+ }), l = c.length;
2907
+ for (let e = 0; e < l; e++) this._validateCoords(c[e], n);
2908
+ return c;
2587
2909
  }
2588
- _validateCoords(e, t = L.Visibility.Visible, n = h("error.sheet.oobRange")) {
2910
+ _validateCoords(e, t = I.Visibility.Visible, n = f("error.sheet.oobRange")) {
2589
2911
  if (e === null) return;
2590
- let r = this.getSheet(e.scope, t).getEntireRange().getCoords();
2591
- if (!l.isRangeWithinRange(e, r)) throw new o(n);
2592
- if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new c(h("error.address.invalidRangeInverted"));
2912
+ let i = this.getSheet(e.scope, t).getEntireRange().getCoords();
2913
+ if (!o.isRangeWithinRange(e, i)) throw new r(n);
2914
+ if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new a(f("error.address.invalidRangeInverted"));
2593
2915
  }
2594
2916
  _updateSheetRef(e, t) {
2595
2917
  let n = this._getState(), r = [...n.sheetRefsAll];
@@ -2606,77 +2928,77 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2606
2928
  refsByLowerCaseName: s,
2607
2929
  sheetsByLowerCaseName: c,
2608
2930
  refsByInstance: u
2609
- }), t;
2931
+ }), this._tellSheets(), t;
2610
2932
  }
2611
2933
  _setSheetName(e, t, n) {
2612
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2613
- if (!this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2934
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2935
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2614
2936
  let r = this._getSheetRef(e);
2615
- if (!r) throw new c(X(e));
2937
+ if (!r) throw new a(hn(e));
2616
2938
  if (t === r.name) return r.sheet;
2617
- if ((t = this._validateNewSheetName(t)) == null) throw new c(h("error.workbook.sheetNameNotProvided"));
2939
+ if ((t = this._validateNewSheetName(t)) == null) throw new a(f("error.workbook.sheetNameNotProvided"));
2618
2940
  let i = Object.freeze({
2619
2941
  ...r,
2620
2942
  name: t
2621
- }), a = null, o = this.beginCommit(m("op.renameSheet"));
2943
+ }), o = null, s = this.beginCommit(d("op.renameSheet"));
2622
2944
  try {
2623
2945
  let e = this._updateSheetRef(r, i);
2624
2946
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((e, t) => {
2625
2947
  r.id === t && e();
2626
- }), this._emitter.notify("onSheetsChange"), r.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), a = e.sheet, o.commit(n);
2948
+ }), this._emitter.notify("onSheetsChange"), r.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), o = e.sheet, s.commit(n);
2627
2949
  } catch (e) {
2628
- throw o.rollback(), e;
2950
+ throw s.rollback(), e;
2629
2951
  }
2630
- return a;
2952
+ return o;
2631
2953
  }
2632
- _setSheetVisibility(e, t = L.Visibility.Visible, n) {
2633
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2634
- if (!this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2635
- let r = this._getSheetRef(e, L.Visibility.VeryHidden);
2954
+ _setSheetVisibility(e, t = I.Visibility.Visible, n) {
2955
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2956
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2957
+ let r = this._getSheetRef(e, I.Visibility.VeryHidden);
2636
2958
  if (!r) return null;
2637
2959
  if (t === r.visibility) return;
2638
- let i = null, a = "";
2639
- t === L.Visibility.Visible ? a = m("op.unhideSheet") : t === L.Visibility.Hidden ? a = m("op.hideSheet") : t === L.Visibility.VeryHidden && (a = m("op.veryHideSheet"));
2640
- let o = this.beginCommit(a);
2960
+ let i = null, o = "";
2961
+ t === I.Visibility.Visible ? o = d("op.unhideSheet") : t === I.Visibility.Hidden ? o = d("op.hideSheet") : t === I.Visibility.VeryHidden && (o = d("op.veryHideSheet"));
2962
+ let s = this.beginCommit(o);
2641
2963
  try {
2642
2964
  let e = this._getState().sheetRefsVisible;
2643
- if (t !== L.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new c(h("error.workbook.sheetOne"));
2644
- let a = {
2965
+ if (t !== I.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new a(f("error.workbook.sheetOne"));
2966
+ let o = {
2645
2967
  ...r,
2646
2968
  visibility: t
2647
- }, s = -1;
2648
- t !== L.Visibility.Visible && (s = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== L.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2969
+ }, c = -1;
2970
+ t !== I.Visibility.Visible && (c = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, o).sheet, t !== I.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, r.id), this._adjustSheetNamesIfRequired(), s.commit(n);
2649
2971
  } catch (e) {
2650
- throw o.rollback(), e;
2972
+ throw s.rollback(), e;
2651
2973
  }
2652
2974
  return this._sheetOnVisibilityChange.forEach((e, t) => {
2653
2975
  r.id === t && e();
2654
2976
  }), this._emitter.notify("onSheetsChange"), i;
2655
2977
  }
2656
2978
  _moveSheet(e, t, n) {
2657
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2658
- if (!this.getProtection().isStructureAllowed()) throw new p(h("error.workbook.protection"));
2659
- let r = null, i = this.beginCommit(h("op.moveSheetNamed", { name: e.name }));
2979
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2980
+ if (!this.getProtection().isStructureAllowed()) throw new u(f("error.workbook.protection"));
2981
+ let r = null, i = this.beginCommit(f("op.moveSheetNamed", { name: e.name }));
2660
2982
  try {
2661
- let a = this._getState(), o = a.sheetRefsVisible;
2662
- if (t < 0 || t > o.length - 1) throw new c(`Invalid to index: ${t}`);
2663
- let s = this.getView().getActiveSheetId(), l = a.sheetRefsAll, u = this._getOffsetForId(e.id, l), d = this._getOffsetForId(o[t].id, l);
2983
+ let o = this._getState(), s = o.sheetRefsVisible;
2984
+ if (t < 0 || t > s.length - 1) throw new a(`Invalid to index: ${t}`);
2985
+ let c = this.getView().getActiveSheetId(), l = o.sheetRefsAll, u = this._getOffsetForId(e.id, l), d = this._getOffsetForId(s[t].id, l);
2664
2986
  if (u === d) return;
2665
2987
  let f = l[u], p = [...l];
2666
2988
  p.splice(u, 1), p.splice(d, 0, f), this._updateSheetRefStates(p), this._calculation._replaceSheetSpans?.(l.map((e) => e.sheet.getId()), p.map((e) => e.sheet.getId()), f.sheet.getId()), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2667
2989
  t >= u && t <= d && e();
2668
- }), this._emitter.notify("onSheetsChange"), r = f.sheet, this._recordActiveSheet(i, s, this.getView().getActiveSheetId()), i.commit(n);
2990
+ }), this._tellSheets(), this._emitter.notify("onSheetsChange"), r = f.sheet, this._recordActiveSheet(i, c, this.getView().getActiveSheetId()), i.commit(n);
2669
2991
  } catch (e) {
2670
2992
  throw i.rollback(), e;
2671
2993
  }
2672
2994
  return r;
2673
2995
  }
2674
2996
  _setSelectedSheet(e) {
2675
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
2997
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2676
2998
  let t = this._getSheetRef(e);
2677
- if (!t) throw new c(X(e));
2999
+ if (!t) throw new a(hn(e));
2678
3000
  let n = null;
2679
- return t.visibility !== L.Visibility.Visible && this._setSheetVisibility(t, L.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
3001
+ return t.visibility !== I.Visibility.Visible && this._setSheetVisibility(t, I.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2680
3002
  }
2681
3003
  getProtection() {
2682
3004
  return this._protection;
@@ -2750,63 +3072,63 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2750
3072
  });
2751
3073
  };
2752
3074
  }
2753
- _fromJSON(e) {
2754
- if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new c(h("error.workbook.sheetOne"));
2755
- e.theme && (this._theme = new fe(e.theme), this._styles.setTheme(this._theme));
2756
- let t = this._strings.beginPersist(), n = this._resources.beginPersist(), r = this._styles.beginPersist();
3075
+ _fromJSON(e, t) {
3076
+ if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new a(f("error.workbook.sheetOne"));
3077
+ e.theme && (this._theme = new Be(e.theme), this._styles.setTheme(this._theme));
3078
+ let n = this._strings.beginPersist(), r = this._resources.beginPersist(), i = this._styles.beginPersist();
2757
3079
  try {
2758
- t.fromJSON(e.strings), n.fromJSON(e.resources), r.fromJSON(e.styles), e.date1904 && (this._isDate1904 = !0), this._codeName = e.codeName ?? null, this._updateLinks = e.updateLinks ?? null, e.locale && (this._locale = e.locale), e.localeOverrides && (this._localeOverrides = e.localeOverrides), e.view ||= {};
2759
- let i = [], a = e.pivotCaches;
2760
- if (a) {
2761
- let e = n.fromResourceId.bind(n);
2762
- for (let t = 0; t < a.length; t++) {
2763
- let n = a[t];
2764
- n && typeof n.cacheId == "number" && i.push({
3080
+ n.fromJSON(e.strings), r.fromJSON(e.resources), i.fromJSON(e.styles), e.date1904 && (this._isDate1904 = !0), this._codeName = e.codeName ?? null, this._updateLinks = e.updateLinks ?? null, e.locale && (this._locale = e.locale), e.localeOverrides && (this._localeOverrides = e.localeOverrides), e.view ||= {};
3081
+ let a = [], o = e.pivotCaches;
3082
+ if (o) {
3083
+ let e = r.fromResourceId.bind(r);
3084
+ for (let t = 0; t < o.length; t++) {
3085
+ let n = o[t];
3086
+ n && typeof n.cacheId == "number" && a.push({
2765
3087
  cacheId: n.cacheId,
2766
- part: M.fromJSON(n.part, e)
3088
+ part: ze.fromJSON(n.part, e)
2767
3089
  });
2768
3090
  }
2769
3091
  }
2770
- this._pivotCaches = i, this._people.fromJSON(e.people);
2771
- let o = e.sheets, s = o.length, c = e.view.activeSheetId ?? null;
2772
- c !== null && (c = Math.min(Math.max(0, c), s - 1));
2773
- let l = null, u = null;
3092
+ this._pivotCaches = a, this._people.fromJSON(e.people);
3093
+ let s = e.sheets, c = s.length, l = e.view.activeSheetId ?? null;
3094
+ l !== null && (l = Math.min(Math.max(0, l), c - 1));
3095
+ let u = null, d = null;
2774
3096
  this._isLoadingSheets = !0;
2775
- for (let e = 0; e < s; e++) {
2776
- let t = o[e], n = t.visibility || L.Visibility.Visible, r = e;
2777
- u = r, n === L.Visibility.Visible ? l === null && (l = r) : c !== null && c === r && (c = null);
3097
+ for (let e = 0; e < c; e++) {
3098
+ let n = s[e], r = n.visibility || I.Visibility.Visible, i = e;
3099
+ d = i, r === I.Visibility.Visible ? u === null && (u = i) : l !== null && l === i && (l = null);
2778
3100
  try {
2779
- this._createSheet(r, t.name, n, e, t.sheetId, t.sheet);
3101
+ this._createSheet(i, n.name, r, e, n.sheetId, n.sheet, t?.[e]);
2780
3102
  } catch (e) {
2781
3103
  throw this._isLoadingSheets = !1, e;
2782
3104
  }
2783
3105
  }
2784
- this._isLoadingSheets = !1, this._updateState({ lastId: u }), e.view.activeSheetId = c ?? l, this.setView(new Yt({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
2785
- let d = this;
2786
- this._protection = new Y(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2787
- d._emitter.notify("onProtectionChange", { source: e });
3106
+ this._isLoadingSheets = !1, this._tellSheets(), this._updateState({ lastId: d }), e.view.activeSheetId = l ?? u, this.setView(new fn({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
3107
+ let f = this;
3108
+ this._protection = new mn(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
3109
+ f._emitter.notify("onProtectionChange", { source: e });
2788
3110
  } }), this._emitter.notify("onLoad");
2789
3111
  } finally {
2790
- r.endPersist(), n.endPersist(), t.endPersist();
3112
+ i.endPersist(), r.endPersist(), n.endPersist();
2791
3113
  }
2792
3114
  }
2793
3115
  _createScripts(e) {
2794
3116
  let t = this;
2795
- return new Gt({
3117
+ return new cn({
2796
3118
  transactions: this._transactions,
2797
3119
  json: e,
2798
3120
  workbook: t,
2799
3121
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
2800
- onAdd: (e, n) => {
2801
- let r = t._calculation;
2802
- r.getStatus() !== ye.Status.Off && r.start().then(async () => {
2803
- let e = n.getFunctions().getItems({ type: "formula" }), t = e.length;
2804
- for (let n = 0; n < t; n++) {
2805
- let t = e[n];
3122
+ onAdd: (e, r) => {
3123
+ let i = t._calculation;
3124
+ i.getStatus() !== ae.Status.Off && i.start().then(async () => {
3125
+ let e = r.getFunctions().getItems({ type: "formula" }), t = e.length;
3126
+ for (let r = 0; r < t; r++) {
3127
+ let t = e[r];
2806
3128
  try {
2807
3129
  await this._calculation.getFunctions().add(t);
2808
3130
  } catch (e) {
2809
- a.error(e?.message ?? String(e), e);
3131
+ n.error(e?.message ?? String(e), e);
2810
3132
  }
2811
3133
  }
2812
3134
  }).catch(() => {});
@@ -2815,10 +3137,10 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2815
3137
  });
2816
3138
  }
2817
3139
  async toJSON(e) {
2818
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
3140
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2819
3141
  await Promise.resolve(this._starting);
2820
3142
  let t = this.getCalculation();
2821
- t.getStatus() !== ye.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
3143
+ t.getStatus() !== ae.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
2822
3144
  let n = { sheets: [] }, r = e?.ignoreStyles ?? !1;
2823
3145
  if (!r) {
2824
3146
  let e = this._theme.toJSON();
@@ -2837,7 +3159,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2837
3159
  name: i.name,
2838
3160
  sheet: o
2839
3161
  };
2840
- i.sheetId !== void 0 && (s.sheetId = i.sheetId), i.visibility === L.Visibility.Visible ? u === null && (u = a) : s.visibility = i.visibility, i.id === t && (l = a), n.sheets.push(s);
3162
+ i.sheetId !== void 0 && (s.sheetId = i.sheetId), i.visibility === I.Visibility.Visible ? u === null && (u = a) : s.visibility = i.visibility, i.id === t && (l = a), n.sheets.push(s);
2841
3163
  }
2842
3164
  if (!r) {
2843
3165
  let e = c.toJSON();
@@ -2855,7 +3177,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2855
3177
  if (y.length > 0) {
2856
3178
  let e = s ? s.toResourceId.bind(s) : () => null, t = [];
2857
3179
  for (let n = 0; n < y.length; n++) {
2858
- let r = { cacheId: y[n].cacheId }, i = M.toJSON(y[n].part, e);
3180
+ let r = { cacheId: y[n].cacheId }, i = ze.toJSON(y[n].part, e);
2859
3181
  i && (r.part = i), t.push(r);
2860
3182
  }
2861
3183
  t.length > 0 && (n.pivotCaches = t);
@@ -2893,13 +3215,13 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2893
3215
  this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._listenerOriginProvider?.(), this._ownOriginProvider && this._originProvider instanceof at && this._originProvider.release(), this._closed = !0;
2894
3216
  }
2895
3217
  beginCommit(e) {
2896
- if (this._closed) throw Error(h("error.workbook.modelClosed"));
3218
+ if (this._closed) throw Error(f("error.workbook.modelClosed"));
2897
3219
  return this._beginCommit(typeof e == "string" ? { description: e } : e);
2898
3220
  }
2899
3221
  doBatch(e, t) {
2900
3222
  let n = this;
2901
3223
  return t = typeof t == "string" ? { description: t } : {
2902
- description: m("op.updateWorkbook"),
3224
+ description: d("op.updateWorkbook"),
2903
3225
  ...t
2904
3226
  }, this._transactions.doBatch(e, t, (e, t) => {
2905
3227
  e.getDepth() === 0 && (n._lastTransactionUUID = e.getId());
@@ -2914,7 +3236,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2914
3236
  _getState() {
2915
3237
  return this._transactions.getState(this._id);
2916
3238
  }
2917
- _updateState(e, t = m("op.updateWorkbook"), n) {
3239
+ _updateState(e, t = d("op.updateWorkbook"), n) {
2918
3240
  if (!e) return;
2919
3241
  let r = this._beginCommit(t);
2920
3242
  try {
@@ -2935,7 +3257,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
2935
3257
  get isIWorkbook() {
2936
3258
  return !0;
2937
3259
  }
2938
- }, fn = { address: null }, pn = class {
3260
+ }, Mn = { address: null }, Nn = class {
2939
3261
  constructor() {
2940
3262
  this._readFormats = [], this._writeFormats = [], this._encryptions = [];
2941
3263
  }
@@ -3011,9 +3333,9 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3011
3333
  return !0;
3012
3334
  });
3013
3335
  }
3014
- }, $ = /* @__PURE__ */ new WeakMap(), mn = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", hn = new class {
3336
+ }, Pn = /* @__PURE__ */ new WeakMap(), Fn = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", In = new class {
3015
3337
  constructor() {
3016
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new T(this), this._registry = new pn(), this._defaultStore = new st(() => this.getWriteFormats(), () => this.getReadFormats());
3338
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new k(this), this._registry = new Nn(), this._defaultStore = new st(() => this.getWriteFormats(), () => this.getReadFormats());
3017
3339
  }
3018
3340
  getBackingStore() {
3019
3341
  return this._backingStore ?? this._defaultStore;
@@ -3053,7 +3375,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3053
3375
  async read(e) {
3054
3376
  let t = null;
3055
3377
  if (typeof e == "string") e = { source: e };
3056
- else if (mn(e)) {
3378
+ else if (Fn(e)) {
3057
3379
  let n = e.getPath();
3058
3380
  if (!n) throw Error("Cannot read from an unbound origin (no path).");
3059
3381
  rt(e) ? e = {
@@ -3069,27 +3391,27 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3069
3391
  });
3070
3392
  }
3071
3393
  async _decodeBuffer(e, t = {}, n, r = null) {
3072
- let i = t.format, a = t.ext;
3073
- if (!i && !a) throw Error("Either format or file extension must be provided to determine read type.");
3074
- let o = (await this._registry.getReadFormats({
3394
+ let i = t.format, o = t.ext;
3395
+ if (!i && !o) throw Error("Either format or file extension must be provided to determine read type.");
3396
+ let s = (await this._registry.getReadFormats({
3075
3397
  search: i,
3076
- ext: a
3398
+ ext: o
3077
3399
  }))[0];
3078
- if (!o) throw new c(h("error.io.readFormatUnavailable", { format: i ?? a }));
3079
- let s = n?.typedCreateWorkbookOptions, l = s ? Object.keys(s).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, u = {
3400
+ if (!s) throw new a(f("error.io.readFormatUnavailable", { format: i ?? o }));
3401
+ let c = n?.typedCreateWorkbookOptions, l = c ? Object.keys(c).find((e) => e.toLowerCase() === s.key.toLowerCase()) : void 0, u = {
3080
3402
  ...n,
3081
- ...l === void 0 ? void 0 : s[l]
3403
+ ...l === void 0 ? void 0 : c[l]
3082
3404
  };
3083
3405
  delete u.typedCreateWorkbookOptions, delete u.source, delete u.asCopy;
3084
3406
  let d = r ?? new R(t.absolutePath ?? null, {
3085
3407
  name: t.name ?? null,
3086
- format: o.key,
3408
+ format: s.key,
3087
3409
  size: t.size ?? null,
3088
3410
  lastModified: t.lastModified ?? null,
3089
3411
  canWrite: t.canWrite ?? !1
3090
3412
  });
3091
3413
  r instanceof R && r.update({
3092
- format: o.key,
3414
+ format: s.key,
3093
3415
  size: t.size ?? null,
3094
3416
  lastModified: t.lastModified ?? null
3095
3417
  }), u.createWorkbookOptions = {
@@ -3102,14 +3424,14 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3102
3424
  disableLoadAutoFit: !0,
3103
3425
  ...u.createWorkbookOptions
3104
3426
  });
3105
- let f = await this._decrypt(e, d, u);
3106
- if (f === null) return null;
3107
- e = f.bytes;
3108
- let p = u?.progress?.onStart?.bind(u.progress);
3109
- p && await Promise.resolve(p(d, t.size));
3427
+ let p = await this._decrypt(e, d, u);
3428
+ if (p === null) return null;
3429
+ e = p.bytes;
3430
+ let m = u?.progress?.onStart?.bind(u.progress);
3431
+ m && await Promise.resolve(m(d, t.size));
3110
3432
  try {
3111
- let t = await this._readArrayBuffer(e, o, u);
3112
- return f.password !== null && d.setPassword(f.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
3433
+ let t = await this._readArrayBuffer(e, s, u);
3434
+ return p.password !== null && d.setPassword(p.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
3113
3435
  params: {
3114
3436
  workbook: t,
3115
3437
  origin: d
@@ -3130,7 +3452,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3130
3452
  try {
3131
3453
  return i = await r.decode(e, t), !0;
3132
3454
  } catch (e) {
3133
- if (!(e instanceof g)) throw e;
3455
+ if (!(e instanceof p)) throw e;
3134
3456
  return !1;
3135
3457
  }
3136
3458
  };
@@ -3140,7 +3462,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3140
3462
  };
3141
3463
  if (!n?.onPassword) {
3142
3464
  let e = t.getName();
3143
- throw new _(e ? h("error.io.passwordRequired", { name: e }) : h("error.io.passwordRequiredUnnamed"));
3465
+ throw new m(e ? f("error.io.passwordRequired", { name: e }) : f("error.io.passwordRequiredUnnamed"));
3144
3466
  }
3145
3467
  let o = await Promise.resolve(n.onPassword({
3146
3468
  origin: t,
@@ -3152,16 +3474,16 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3152
3474
  bytes: i,
3153
3475
  password: o
3154
3476
  };
3155
- throw new g(h("error.io.passwordIncorrect"));
3477
+ throw new p(f("error.io.passwordIncorrect"));
3156
3478
  }
3157
3479
  async writeArrayBuffer(e, t) {
3158
3480
  if (!t?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
3159
3481
  let n = (await this._registry.getWriteFormats({ search: t.format }))[0];
3160
- if (!n) throw new c(h("error.io.writeFormatUnavailable", { format: t.format }));
3482
+ if (!n) throw new a(f("error.io.writeFormatUnavailable", { format: t.format }));
3161
3483
  return this._writeArrayBuffer(e, n, t);
3162
3484
  }
3163
3485
  async write(e, t, n) {
3164
- return typeof t == "string" || mn(t) ? this._write(e, t, !1, n) : this._write(e, e?.getOrigin?.(), !0, t ?? n);
3486
+ return typeof t == "string" || Fn(t) ? this._write(e, t, !1, n) : this._write(e, e?.getOrigin?.(), !0, t ?? n);
3165
3487
  }
3166
3488
  async writeAs(e, t, n) {
3167
3489
  if (!t) throw Error("A target must be provided for writeAs (use write(workbook) for a plain save).");
@@ -3170,38 +3492,38 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3170
3492
  async _write(e, t, n, r) {
3171
3493
  if (!e) throw Error("Workbook must be provided.");
3172
3494
  if (!e.isIWorkbook) throw Error("Invalid workbook model provided. Must be an instance of IWorkbook.");
3173
- let i, a = typeof t == "string" ? this.getOrigin(t) : t, o = a.getFormat();
3174
- if ((r?.format || o) && (i = (await this._registry.getWriteFormats({ search: r?.format ?? o ?? void 0 }))[0]), i || a.getPath() && a.canWrite() && a.getExtension() || (i = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !i) throw new c(h("error.io.writeFormatUnresolved"));
3175
- let s = a.getExtension();
3176
- if (r?.format && s && a.getPath() && a.canWrite() && !i.exts.includes(s)) {
3177
- let e = (await this._registry.getWriteFormats({ ext: s }))[0];
3495
+ let i, o = typeof t == "string" ? this.getOrigin(t) : t, s = o.getFormat();
3496
+ if ((r?.format || s) && (i = (await this._registry.getWriteFormats({ search: r?.format ?? s ?? void 0 }))[0]), i || o.getPath() && o.canWrite() && o.getExtension() || (i = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !i) throw new a(f("error.io.writeFormatUnresolved"));
3497
+ let c = o.getExtension();
3498
+ if (r?.format && c && o.getPath() && o.canWrite() && !i.exts.includes(c)) {
3499
+ let e = (await this._registry.getWriteFormats({ ext: c }))[0];
3178
3500
  if (e && e.key !== i.key) {
3179
- let e = a.getPath().split(/[/\\]/).pop();
3180
- throw new c(h("error.io.writeFormatMismatch", {
3501
+ let e = o.getPath().split(/[/\\]/).pop();
3502
+ throw new a(f("error.io.writeFormatMismatch", {
3181
3503
  format: r.format,
3182
3504
  file: e
3183
3505
  }));
3184
3506
  }
3185
3507
  }
3186
3508
  if (typeof t == "string") {
3187
- let e = a.getPath();
3188
- a = new R(E(e) ? e : `${e}.${i.exts[0]}`, { format: i.key });
3189
- }
3190
- let l = a.getEncryption(), u = e.getOrigin?.(), d = (a instanceof R ? a.getPassword() : null) ?? (u instanceof R ? u.getPassword() : null), f = a.isEncrypted() || (u?.isEncrypted() ?? !1), p = r?.password === void 0 ? d ?? (f ? void 0 : null) : r.password, m = null;
3191
- if (p === void 0) {
3192
- if (f) {
3193
- let e = a.getName();
3194
- throw new _(e ? h("error.io.passwordRequiredSave", { name: e }) : h("error.io.passwordRequiredSaveUnnamed"));
3509
+ let e = o.getPath();
3510
+ o = new R(P(e) ? e : `${e}.${i.exts[0]}`, { format: i.key });
3511
+ }
3512
+ let l = o.getEncryption(), u = e.getOrigin?.(), d = (o instanceof R ? o.getPassword() : null) ?? (u instanceof R ? u.getPassword() : null), p = o.isEncrypted() || (u?.isEncrypted() ?? !1), h = r?.password === void 0 ? d ?? (p ? void 0 : null) : r.password, g = null;
3513
+ if (h === void 0) {
3514
+ if (p) {
3515
+ let e = o.getName();
3516
+ throw new m(e ? f("error.io.passwordRequiredSave", { name: e }) : f("error.io.passwordRequiredSaveUnnamed"));
3195
3517
  }
3196
- } else if (p !== null && (m = await this._registry.getEncryption(l), !m)) throw new c(h("error.io.encryptionUnavailable"));
3197
- let g = `${a.getName() ?? h("workbook.defaultName")}.${i.exts[0]}`, v = r?.progress, y = !a.getPath() || !a.canWrite() || !!r?.prompt, b = !1, x = this, S = null, C = [], ee = {
3518
+ } else if (h !== null && (g = await this._registry.getEncryption(l), !g)) throw new a(f("error.io.encryptionUnavailable"));
3519
+ let _ = `${o.getName() ?? f("workbook.defaultName")}.${i.exts[0]}`, v = r?.progress, y = !o.getPath() || !o.canWrite() || !!r?.prompt, b = !1, x = this, S = null, C = [], ee = {
3198
3520
  workbook: e,
3199
3521
  format: i,
3200
- origin: a,
3201
- suggestedName: g,
3522
+ origin: o,
3523
+ suggestedName: _,
3202
3524
  prompt: r?.prompt,
3203
- async encode(t, o) {
3204
- let s = o ?? a;
3525
+ async encode(t, a) {
3526
+ let s = a ?? o;
3205
3527
  await (async (e) => {
3206
3528
  b || (b = !0, v?.onStart && await Promise.resolve(v.onStart(e)));
3207
3529
  })(s), S = e.getTransactions?.()?.getCurrentCommit() ?? S;
@@ -3219,7 +3541,7 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3219
3541
  }))(v, l), d = await x._writeArrayBuffer(e, c, {
3220
3542
  ...r,
3221
3543
  progress: u
3222
- }), f = $.get(s);
3544
+ }), f = Pn.get(s);
3223
3545
  if (l.some((e) => !f?.has(e.message)) && r?.onWarnings) {
3224
3546
  let t = await Promise.resolve(r.onWarnings({
3225
3547
  workbook: e,
@@ -3230,17 +3552,17 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3230
3552
  }));
3231
3553
  if (!y && !1 === t) return null;
3232
3554
  }
3233
- return C = l, m ? m.encode(d, p) : d;
3555
+ return C = l, g ? g.encode(d, h) : d;
3234
3556
  }
3235
3557
  }, w = null;
3236
3558
  try {
3237
3559
  let t = this.getBackingStore();
3238
3560
  if (!t.write) throw Error("The active backing store is read-only (no write implementation).");
3239
3561
  if (w = await t.write(ee), w) {
3240
- if (p !== void 0 && w instanceof R && (w.setPassword(p), w.update({ encryption: m ? m.key : null })), C.length) {
3241
- let e = $.get(w) ?? /* @__PURE__ */ new Set();
3562
+ if (h !== void 0 && w instanceof R && (w.setPassword(h), w.update({ encryption: g ? g.key : null })), C.length) {
3563
+ let e = Pn.get(w) ?? /* @__PURE__ */ new Set();
3242
3564
  for (let t of C) e.add(t.message);
3243
- $.set(w, e);
3565
+ Pn.set(w, e);
3244
3566
  }
3245
3567
  n && w !== e.getOrigin() && rt(e.getOrigin())?.setOrigin(w);
3246
3568
  let t = S ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
@@ -3257,12 +3579,12 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3257
3579
  v?.onComplete && await Promise.resolve(v.onComplete(w));
3258
3580
  } catch (e) {
3259
3581
  let t = e instanceof Error ? e : Error(String(e));
3260
- throw v?.onError && await Promise.resolve(v.onError(t)), v?.onComplete && await Promise.resolve(v.onComplete(null)), t instanceof c ? t : Error(h("error.io.writeFailed", { reason: t.message }), { cause: e });
3582
+ throw v?.onError && await Promise.resolve(v.onError(t)), v?.onComplete && await Promise.resolve(v.onComplete(null)), t instanceof a ? t : Error(f("error.io.writeFailed", { reason: t.message }), { cause: e });
3261
3583
  }
3262
3584
  return w;
3263
3585
  }
3264
3586
  _stripExtension(e) {
3265
- let t = E(e);
3587
+ let t = P(e);
3266
3588
  return t ? e.slice(0, e.length - t.length - 1) : e;
3267
3589
  }
3268
3590
  _baseName(e) {
@@ -3282,13 +3604,13 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3282
3604
  async _readArrayBuffer(e, t, n) {
3283
3605
  if (!e) throw Error("ArrayBuffer must be specified.");
3284
3606
  if (!t) throw Error("format must be specified.");
3285
- if (e.byteLength === 0) return new dn(n?.createWorkbookOptions);
3607
+ if (e.byteLength === 0) return new jn(n?.createWorkbookOptions);
3286
3608
  let r, i = t.handler;
3287
3609
  if (!i) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
3288
3610
  try {
3289
3611
  r = await i(e, n);
3290
3612
  } catch (e) {
3291
- throw e instanceof c ? e : new c(h("error.io.readFailed", {
3613
+ throw e instanceof a ? e : new a(f("error.io.readFailed", {
3292
3614
  format: t.description ?? t.key,
3293
3615
  reason: e?.message ?? String(e)
3294
3616
  }), { cause: e });
@@ -3308,21 +3630,25 @@ var sn, cn = "workbook.activeSheet", Q = class e extends he {
3308
3630
  ].map((e) => ({
3309
3631
  suffix: e,
3310
3632
  place: (e, t) => t ? `${t}/${e}` : e
3311
- })), Zt ||= {}, Qt ||= {}, (en = $t ||= {}).PathFill = {
3312
- Darken: "darken",
3313
- DarkenLess: "darkenLess",
3314
- Lighten: "lighten",
3315
- LightenLess: "lightenLess",
3316
- None: "none",
3317
- Normal: "normal"
3318
- }, en.PresetGeometry = {
3319
- Line: "line",
3320
- LineInv: "lineInv",
3321
- triangle: "triangle",
3322
- rtTriangle: "rtTriangle",
3323
- Rect: "rect"
3324
- }, sn ||= {};
3325
- var gn = class extends Fe {
3633
+ })), gn ||= {}, _n ||= {}, wn ||= {}, (Tn ||= {}).Type = {
3634
+ Button: "button",
3635
+ CheckBox: "checkBox",
3636
+ OptionButton: "optionButton",
3637
+ ListBox: "listBox",
3638
+ DropDown: "dropDown",
3639
+ ScrollBar: "scrollBar",
3640
+ Spinner: "spinner",
3641
+ GroupBox: "groupBox",
3642
+ Label: "label",
3643
+ EditBox: "editBox",
3644
+ Dialog: "dialog",
3645
+ Unknown: "formControl"
3646
+ }, (En ||= {}).DropStyle = {
3647
+ Combo: "combo",
3648
+ ComboEdit: "comboEdit",
3649
+ Simple: "simple"
3650
+ };
3651
+ var Ln = class extends $e {
3326
3652
  constructor(e) {
3327
3653
  super(e);
3328
3654
  }
@@ -3335,8 +3661,8 @@ var gn = class extends Fe {
3335
3661
  colEnd: (e?.size?.width ?? 5) - 1,
3336
3662
  rowEnd: (e?.size?.height ?? 5) - 1
3337
3663
  },
3338
- getRanges: (e) => new Ge(null)
3664
+ getRanges: (e) => new Le(null)
3339
3665
  }, super._initializeOptions(e);
3340
3666
  }
3341
- }, _n = "0.8.0-beta.6";
3342
- export { dn as _, nt as a, _n as c, _t as d, hn as f, vt as g, ft as h, tt as i, R as l, yt as m, wt as n, Lt as o, xt as p, Jt as r, Ft as s, Wt as t, qt as u, gn as v };
3667
+ }, Rn = "0.8.0-beta.9";
3668
+ export { Ln as _, In as a, vt as b, nt as c, Ft as d, jn as f, un as g, dn as h, J as i, tt as l, sn as m, Bt as n, wt as o, ft as p, Rn as r, R as s, It as t, yt as u, _t as v, Rt as x, xt as y };