@sheetxl/studio-vanilla 0.4.12 → 0.4.14

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 (252) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
  3. package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
  4. package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
  5. package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
  6. package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
  7. package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
  8. package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
  9. package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
  10. package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
  11. package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
  12. package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
  13. package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
  14. package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
  15. package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
  16. package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
  17. package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
  18. package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
  19. package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
  20. package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
  21. package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
  22. package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
  23. package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
  24. package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
  25. package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
  26. package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
  27. package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
  28. package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
  29. package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
  30. package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
  31. package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
  32. package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
  33. package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
  34. package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
  35. package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
  36. package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
  37. package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
  38. package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
  39. package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
  40. package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
  41. package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
  42. package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
  43. package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
  44. package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
  45. package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
  46. package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
  47. package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
  48. package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
  49. package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
  50. package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
  51. package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
  52. package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
  53. package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
  54. package/browser/cjs/index.cjs +3 -4
  55. package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
  56. package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
  57. package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
  58. package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
  59. package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
  60. package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
  61. package/browser/esm/4eRu4yzXkvCBip8J.mjs +10 -0
  62. package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
  63. package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
  64. package/browser/esm/B4ji-HZTY0uvH8r7.mjs +10 -0
  65. package/browser/esm/B8TNpfJ8ymQcPriE.mjs +24 -0
  66. package/{cdn/assets/CiY3HumGDc_5bMtR.js → browser/esm/BBDu-GNDE7ZA-1sJ.mjs} +15 -17
  67. package/browser/esm/BF5nlSYZ38RJ0dPX.mjs +10 -0
  68. package/browser/esm/BHy77Km4i4t5U7ka.mjs +10 -0
  69. package/browser/esm/BIUVt79NHXdZx2Dz.mjs +10 -0
  70. package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
  71. package/browser/esm/BPen6C7JE2sWVgdi.mjs +10 -0
  72. package/browser/esm/BUqd1uVUNoWmepd2.mjs +148 -0
  73. package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
  74. package/browser/esm/BZxAttR2mi9td3k1.mjs +10 -0
  75. package/browser/esm/B_pEA9HeXKvEOCdS.mjs +10 -0
  76. package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
  77. package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
  78. package/browser/esm/BfFDvyaRcdKS0wPD.mjs +10 -0
  79. package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
  80. package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
  81. package/browser/esm/BvYUsRgBXLSuaQ-S.mjs +10 -0
  82. package/browser/esm/BzE-61bmpRQzEVPt.mjs +10 -0
  83. package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
  84. package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
  85. package/{cdn/assets/CfObTzh8pGdd8D23.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
  86. package/browser/esm/CITPwlsNzJvv551I.mjs +10 -0
  87. package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
  88. package/browser/esm/CN73n4VDayKh_l1J.mjs +10 -0
  89. package/browser/esm/CcARDY0PFSWkqsG9.mjs +21 -0
  90. package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
  91. package/browser/esm/Cmtx4dAVZrwq5cVO.mjs +10 -0
  92. package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
  93. package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
  94. package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
  95. package/browser/esm/D9eVsUckA6bWBHni.mjs +10 -0
  96. package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
  97. package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
  98. package/{cdn/assets/DWJE3K3jMKMTCi3o.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
  99. package/browser/esm/DHPHhaCxihdR9Hl6.mjs +10 -0
  100. package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
  101. package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
  102. package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
  103. package/browser/esm/DVRMAeHUj0-TY-vK.mjs +10 -0
  104. package/browser/esm/DXIWAG-DUKHzNlRl.mjs +12 -0
  105. package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
  106. package/browser/esm/Dft4BSeY0bp0A6z0.mjs +10 -0
  107. package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
  108. package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
  109. package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
  110. package/{cdn/assets/DgLPO_EQ9DYoGgec.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +174 -172
  111. package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
  112. package/browser/esm/aLv-xujBO4X6ilhV.mjs +10 -0
  113. package/{cdn/assets/DJQOS9qxVAlpgDMt.js → browser/esm/c9fba0RuWGogsH0X.mjs} +21 -23
  114. package/browser/esm/index.mjs +6 -2
  115. package/browser/esm/jkSJc6Omxbf-rPQY.mjs +10 -0
  116. package/browser/esm/uuCmCmYQQXgwyRSd.mjs +10 -0
  117. package/browser/esm/w3TGaFTjdsc4XTcz.mjs +1466 -0
  118. package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
  119. package/browser/esm/wxvli1IH1NkfqE6-.mjs +10 -0
  120. package/cdn/assets/0fI22OQK5IczUH6s.js +29 -0
  121. package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
  122. package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
  123. package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
  124. package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
  125. package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
  126. package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
  127. package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
  128. package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
  129. package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
  130. package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
  131. package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
  132. package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
  133. package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
  134. package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
  135. package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
  136. package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
  137. package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
  138. package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
  139. package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
  140. package/cdn/assets/{phYz0vGgqIEQ2hco.js → BiKaXKU3o287mgkN.js} +1 -1
  141. package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
  142. package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
  143. package/cdn/assets/C0yI-QYraFhnJUdD.js +49 -0
  144. package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
  145. package/cdn/assets/{qA23x9VVBL9R4qxN.js → C3FTuqvfGalOVHql.js} +9 -9
  146. package/cdn/assets/{BSAH88RG1oubICau.js → C3W0xsNrt-Was9g-.js} +26 -26
  147. package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
  148. package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
  149. package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
  150. package/cdn/assets/CWkF-50YF43t7qge.js +472 -0
  151. package/cdn/assets/{Bv0Xb6DdcQbPYJKo.js → CaKPs_ILqLIWfUUN.js} +10 -11
  152. package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
  153. package/cdn/assets/Cdx6LrqtHZKbwl63.js +425 -0
  154. package/cdn/assets/ChB-XZno7w9v221u.js +1575 -0
  155. package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
  156. package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
  157. package/cdn/assets/{dk2teWHDODYNarJY.js → CrBywNOOyPHSBoTT.js} +4 -4
  158. package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
  159. package/cdn/assets/DBpku3D2DSTmW4II.js +820 -0
  160. package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
  161. package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
  162. package/cdn/assets/DMWARnjq06oQnfrL.js +58 -0
  163. package/cdn/assets/{BoOefjrM4kZ-YXxa.js → DRa6yXWuTlAjuaKT.js} +2 -2
  164. package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
  165. package/cdn/assets/DXIWAG-DUKHzNlRl.js +12 -0
  166. package/cdn/assets/{B3kbBB6oxKBErwzn.js → DYowHOSLHcADsXuK.js} +3 -3
  167. package/cdn/assets/{DkS6quwH1okWaho6.js → DZNoPrlxULASVlOi.js} +14 -14
  168. package/cdn/assets/{BB66NDz7S3ocEfRB.js → DaUJajqmQYuM0Gew.js} +51 -51
  169. package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
  170. package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
  171. package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
  172. package/cdn/assets/{DDW1WJ2IM_9ZUfKm.js → Dm0hrXCbV7DITOhi.js} +2 -2
  173. package/cdn/assets/DnWjhq4ZlgIuFcii.js +21 -0
  174. package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
  175. package/cdn/assets/{BT5EcMEFBsphczwC.js → DzyNujjbHLXo9UmH.js} +565 -568
  176. package/cdn/assets/EYTSqAG9YOdb1vKx.js +48823 -0
  177. package/cdn/assets/{D_5RgqgwXsoqLJDR.js → Ux2jUY_EwSsYBCov.js} +1 -1
  178. package/cdn/assets/{DfmaL8DmDaFAv8M_.js → XoKiuP2ZFq0cNGkH.js} +4 -4
  179. package/cdn/assets/Zi3E5Kzxw2FPtLVL.js +5582 -0
  180. package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
  181. package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
  182. package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
  183. package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
  184. package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +3 -5
  188. package/types/index.d.ts +1 -0
  189. package/browser/cjs/B35OZ0mE8aINQPP9.cjs +0 -7
  190. package/browser/cjs/BPzEQNENF-gEBkg9.cjs +0 -7
  191. package/browser/cjs/BUokV6yuzE-_8MyK.cjs +0 -7
  192. package/browser/cjs/BeZHmOKfa37mFNAu.cjs +0 -7
  193. package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +0 -7
  194. package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +0 -7
  195. package/browser/cjs/C3OizZPVuxO2fjSG.cjs +0 -7
  196. package/browser/cjs/CBL6KkiWI2RPflEN.cjs +0 -7
  197. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +0 -7
  198. package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +0 -7
  199. package/browser/cjs/CU30GVjjFXl44vEU.cjs +0 -7
  200. package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +0 -7
  201. package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +0 -7
  202. package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +0 -7
  203. package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +0 -7
  204. package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +0 -7
  205. package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +0 -107
  206. package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +0 -7
  207. package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +0 -7
  208. package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +0 -7
  209. package/browser/cjs/L1iE_VcelYZIy0wI.cjs +0 -7
  210. package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +0 -7
  211. package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +0 -7
  212. package/browser/cjs/hwDUzorB6aCvH1eL.cjs +0 -7
  213. package/browser/cjs/no5c2H18QD2qmOH6.cjs +0 -7
  214. package/browser/esm/B4Mm5gczpI_k2zzN.mjs +0 -7
  215. package/browser/esm/B8ISUdOxsJMYWzNN.mjs +0 -7
  216. package/browser/esm/BnJiF38TGudjoHzT.mjs +0 -7
  217. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +0 -7
  218. package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +0 -107
  219. package/browser/esm/C4jlaVv8bELgiHyE.mjs +0 -7
  220. package/browser/esm/CYIhGb86r-kKOrP5.mjs +0 -7
  221. package/browser/esm/CcpskguvlvemArQn.mjs +0 -7
  222. package/browser/esm/CeRfALx1iU5fqOUg.mjs +0 -7
  223. package/browser/esm/CfYWmP_Hots5f0f6.mjs +0 -7
  224. package/browser/esm/CkarbqNx_lhlBnw7.mjs +0 -7
  225. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +0 -7
  226. package/browser/esm/D3KNxvnrwR6_fTJE.mjs +0 -7
  227. package/browser/esm/DIJyH94oCzUnlcNZ.mjs +0 -7
  228. package/browser/esm/DVAG1NxFe3cMjLE1.mjs +0 -7
  229. package/browser/esm/DVqga7g7j0FUiM6p.mjs +0 -7
  230. package/browser/esm/DcX8yGEBX6qi9RCe.mjs +0 -7
  231. package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +0 -7
  232. package/browser/esm/DzgM_rkwyIHsCb6I.mjs +0 -7
  233. package/browser/esm/M4hZ25330e96seUM.mjs +0 -7
  234. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +0 -7
  235. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +0 -7
  236. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +0 -7
  237. package/browser/esm/dpdy0BU4GGI5lZrX.mjs +0 -7
  238. package/browser/esm/oLCocGFRAwsVsOSE.mjs +0 -7
  239. package/cdn/assets/7_O6nILzn1fSVvkO.js +0 -13449
  240. package/cdn/assets/BCK7yhx9JfzU2rF0.js +0 -22
  241. package/cdn/assets/BcWoqhD_sX85c7Mh.js +0 -1701
  242. package/cdn/assets/BtweFYnoj_aEfydW.js +0 -1371
  243. package/cdn/assets/CC-S4NMYhLg3WgqO.js +0 -3875
  244. package/cdn/assets/CJhyHcQcrhbtC33r.js +0 -50
  245. package/cdn/assets/CUc6gRjjRGTFWSHD.js +0 -50
  246. package/cdn/assets/CpPLN0-hDsTIFHZV.js +0 -46
  247. package/cdn/assets/Cq94woVmlxhjWVRI.js +0 -21
  248. package/cdn/assets/CsjftXmSYQRHNKdq.js +0 -41
  249. package/cdn/assets/DBL4jY0AVc53RGNm.js +0 -637
  250. package/cdn/assets/DxMu6URURFWj9aXM.js +0 -2373
  251. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +0 -26490
  252. package/cdn/assets/MRBi3juXAW0lA_mj.js +0 -1358
@@ -1,43 +1,42 @@
1
- import { NumberFormat as Ht, ScalarType as Ft, ResourceCollection as Ss, Tuple as Cs, IAutoFilter as Gt, AddressUtils as at, CoordUtils as Pe, FormulaError as ks, IRange as As, CommonUtils as ss, Theme as Es, JSONStableStringify as Ds, Workbook as Ps, IColor as Os, OutOfBoundsError as Is } from "@sheetxl/sdk";
2
- import { _ as hs } from "./Jhm2DAcrfAqiM-Y-.js";
1
+ import { L as Ht, K as Ft, m as vs, W as Ss, o as Zt, q as at, D as Ee, Y as Cs, a as ks, k as es, r as As, y as Ds, $ as Es, u as Ps, w as cs, x as Os } from "./EYTSqAG9YOdb1vKx.js";
3
2
  /**
4
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
5
4
  *
6
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
6
  * License: The license can be found at https://www.sheetxl.com/license.
8
7
  */
9
- const is = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Vs = new RegExp(`^[${is}][-${is}.0-9·̀-ͯ‿-⁀]*$`, "u");
10
- function us(i) {
8
+ const ss = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Is = new RegExp(`^[${ss}][-${ss}.0-9·̀-ͯ‿-⁀]*$`, "u");
9
+ function hs(i) {
11
10
  return i >= 65 && i <= 90 || i >= 97 && i <= 122 || i === 58 || i === 95 || i === 8204 || i === 8205 || i >= 192 && i <= 214 || i >= 216 && i <= 246 || i >= 248 && i <= 767 || i >= 880 && i <= 893 || i >= 895 && i <= 8191 || i >= 8304 && i <= 8591 || i >= 11264 && i <= 12271 || i >= 12289 && i <= 55295 || i >= 63744 && i <= 64975 || i >= 65008 && i <= 65533 || i >= 65536 && i <= 983039;
12
11
  }
13
- const os = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ls = new RegExp(`^[${os}][-${os}.0-9·̀-ͯ‿-⁀]*$`, "u");
14
- function ds(i) {
12
+ const is = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Vs = new RegExp(`^[${is}][-${is}.0-9·̀-ͯ‿-⁀]*$`, "u");
13
+ function us(i) {
15
14
  return i >= 65 && i <= 90 || i === 95 || i >= 97 && i <= 122 || i >= 192 && i <= 214 || i >= 216 && i <= 246 || i >= 248 && i <= 767 || i >= 880 && i <= 893 || i >= 895 && i <= 8191 || i >= 8204 && i <= 8205 || i >= 8304 && i <= 8591 || i >= 11264 && i <= 12271 || i >= 12289 && i <= 55295 || i >= 63744 && i <= 64975 || i >= 65008 && i <= 65533 || i >= 65536 && i <= 983039;
16
15
  }
17
16
  const q = function(i) {
18
17
  return i === 32 || i === 10 || i === 13 || i === 9;
19
- }, Ns = function(i) {
18
+ }, Ls = function(i) {
20
19
  return i >= 32 && i <= 55295 || i === 10 || i === 13 || i === 9 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
21
- }, ce = us, rs = function(i) {
22
- return us(i) || i >= 48 && i <= 57 || i === 45 || i === 46 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
23
- }, ps = [32, 10, 13, 9], Rs = Vs, $s = function(i) {
20
+ }, le = hs, os = function(i) {
21
+ return hs(i) || i >= 48 && i <= 57 || i === 45 || i === 46 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
22
+ }, ds = [32, 10, 13, 9], Ns = Is, Rs = function(i) {
24
23
  return i >= 1 && i <= 55295 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
25
- }, Ms = ds, js = function(i) {
26
- return ds(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
27
- }, Hs = Ls, ye = "http://www.w3.org/XML/1998/namespace", Kt = "http://www.w3.org/2000/xmlns/", Fs = { __proto__: null, xml: ye, xmlns: Kt }, Xs = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, O = -1, lt = -2, B = 13, Xt = 33, it = 10, vt = 60, Jt = 61, M = 62, F = 63, Qt = 93, Te = (i) => i === 34 || i === 39, gs = [34, 39], Bs = [...gs, 91, M], Ws = [...gs, vt, Qt], _s = [Jt, F, ...ps], qs = [...ps, M, 38, vt];
28
- function Oe(i, t, s) {
24
+ }, $s = us, Ms = function(i) {
25
+ return us(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
26
+ }, js = Vs, Te = "http://www.w3.org/XML/1998/namespace", Yt = "http://www.w3.org/2000/xmlns/", Hs = { __proto__: null, xml: Te, xmlns: Yt }, Fs = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, O = -1, lt = -2, B = 13, Xt = 33, it = 10, St = 60, Jt = 61, M = 62, F = 63, Kt = 93, me = (i) => i === 34 || i === 39, ps = [34, 39], Xs = [...ps, 91, M], Bs = [...ps, St, Kt], Ws = [Jt, F, ...ds], _s = [...ds, M, 38, St];
27
+ function Pe(i, t, s) {
29
28
  switch (t) {
30
29
  case "xml":
31
- s !== ye && i.fail(`xml prefix must be bound to ${ye}.`);
30
+ s !== Te && i.fail(`xml prefix must be bound to ${Te}.`);
32
31
  break;
33
32
  case "xmlns":
34
- s !== Kt && i.fail(`xmlns prefix must be bound to ${Kt}.`);
33
+ s !== Yt && i.fail(`xmlns prefix must be bound to ${Yt}.`);
35
34
  }
36
35
  switch (s) {
37
- case Kt:
38
- i.fail(t === "" ? `the default namespace may not be set to ${s}.` : `may not assign a prefix (even "xmlns") to the URI ${Kt}.`);
36
+ case Yt:
37
+ i.fail(t === "" ? `the default namespace may not be set to ${s}.` : `may not assign a prefix (even "xmlns") to the URI ${Yt}.`);
39
38
  break;
40
- case ye:
39
+ case Te:
41
40
  switch (t) {
42
41
  case "xml":
43
42
  break;
@@ -49,18 +48,18 @@ function Oe(i, t, s) {
49
48
  }
50
49
  }
51
50
  }
52
- const zs = (i) => Hs.test(i), Us = (i) => Rs.test(i), ns = { xmldecl: "xmldeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
53
- class Gs {
51
+ const qs = (i) => js.test(i), zs = (i) => Ns.test(i), rs = { xmldecl: "xmldeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
52
+ class Us {
54
53
  constructor(t) {
55
54
  this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
56
55
  const s = this.xmlnsOpt = !!this.opt.xmlns;
57
56
  if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, s) {
58
- this.nameStartCheck = Ms, this.nameCheck = js, this.isName = zs, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Fs };
57
+ this.nameStartCheck = $s, this.nameCheck = Ms, this.isName = qs, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Hs };
59
58
  const o = this.opt.additionalNamespaces;
60
59
  o != null && (function(n, a) {
61
- for (const c of Object.keys(a)) Oe(n, c, a[c]);
60
+ for (const c of Object.keys(a)) Pe(n, c, a[c]);
62
61
  }(this, o), Object.assign(this.ns, o));
63
- } else this.nameStartCheck = ce, this.nameCheck = rs, this.isName = Us, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
62
+ } else this.nameStartCheck = le, this.nameCheck = os, this.isName = zs, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
64
63
  this.stateTable = [this.sBegin, this.sBeginWhitespace, this.sDoctype, this.sDoctypeQuote, this.sDTD, this.sDTDQuoted, this.sDTDOpenWaka, this.sDTDOpenWakaBang, this.sDTDComment, this.sDTDCommentEnding, this.sDTDCommentEnded, this.sDTDPI, this.sDTDPIEnding, this.sText, this.sEntity, this.sOpenWaka, this.sOpenWakaBang, this.sComment, this.sCommentEnding, this.sCommentEnded, this.sCData, this.sCDataEnding, this.sCDataEnding2, this.sPIFirstChar, this.sPIRest, this.sPIBody, this.sPIEnding, this.sXMLDeclNameStart, this.sXMLDeclName, this.sXMLDeclEq, this.sXMLDeclValueStart, this.sXMLDeclValue, this.sXMLDeclSeparator, this.sXMLDeclEnding, this.sOpenTag, this.sOpenTagSlash, this.sAttrib, this.sAttribName, this.sAttribNameSawWhite, this.sAttribValue, this.sAttribValueQuoted, this.sAttribValueClosed, this.sAttribValueUnquoted, this.sCloseTag, this.sCloseTagSawWhite], this._init();
65
64
  }
66
65
  get closed() {
@@ -75,7 +74,7 @@ class Gs {
75
74
  if (this.opt.forceXMLVersion === !0) throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
76
75
  s = "1.0";
77
76
  }
78
- this.setXMLVersion(s), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = { version: void 0, encoding: void 0, standalone: void 0 }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Xs), this.readyHandler?.();
77
+ this.setXMLVersion(s), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = { version: void 0, encoding: void 0, standalone: void 0 }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Fs), this.readyHandler?.();
79
78
  }
80
79
  get position() {
81
80
  return this.chunkPosition + this.i;
@@ -84,10 +83,10 @@ class Gs {
84
83
  return this.position - this.positionAtNewLine;
85
84
  }
86
85
  on(t, s) {
87
- this[ns[t]] = s;
86
+ this[rs[t]] = s;
88
87
  }
89
88
  off(t) {
90
- this[ns[t]] = void 0;
89
+ this[rs[t]] = void 0;
91
90
  }
92
91
  makeError(t) {
93
92
  let s = this.fileName ?? "";
@@ -193,7 +192,7 @@ class Gs {
193
192
  for (; ; ) {
194
193
  const o = this.getCode();
195
194
  if (o === O) return this.name += t.slice(s), O;
196
- if (!rs(o)) return this.name += t.slice(s, this.prevI), o === lt ? it : o;
195
+ if (!os(o)) return this.name += t.slice(s, this.prevI), o === lt ? it : o;
197
196
  }
198
197
  }
199
198
  skipSpaces() {
@@ -203,7 +202,7 @@ class Gs {
203
202
  }
204
203
  }
205
204
  setXMLVersion(t) {
206
- this.currentXMLVersion = t, t === "1.0" ? (this.isChar = Ns, this.getCode = this.getCode10) : (this.isChar = $s, this.getCode = this.getCode11);
205
+ this.currentXMLVersion = t, t === "1.0" ? (this.isChar = Ls, this.getCode = this.getCode10) : (this.isChar = Rs, this.getCode = this.getCode11);
207
206
  }
208
207
  sBegin() {
209
208
  this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
@@ -211,7 +210,7 @@ class Gs {
211
210
  sBeginWhitespace() {
212
211
  const t = this.i, s = this.skipSpaces();
213
212
  switch (this.prevI !== t && (this.xmlDeclPossible = !1), s) {
214
- case vt:
213
+ case St:
215
214
  if (this.state = 15, this.text.length !== 0) throw new Error("no-empty text at start");
216
215
  break;
217
216
  case O:
@@ -221,7 +220,7 @@ class Gs {
221
220
  }
222
221
  }
223
222
  sDoctype() {
224
- const t = this.captureTo(Bs);
223
+ const t = this.captureTo(Xs);
225
224
  switch (t) {
226
225
  case M:
227
226
  this.doctypeHandler?.(this.text), this.text = "", this.state = B, this.doctype = !0;
@@ -229,7 +228,7 @@ class Gs {
229
228
  case O:
230
229
  break;
231
230
  default:
232
- this.text += String.fromCodePoint(t), t === 91 ? this.state = 4 : Te(t) && (this.state = 3, this.q = t);
231
+ this.text += String.fromCodePoint(t), t === 91 ? this.state = 4 : me(t) && (this.state = 3, this.q = t);
233
232
  }
234
233
  }
235
234
  sDoctypeQuote() {
@@ -237,8 +236,8 @@ class Gs {
237
236
  this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.q = null, this.state = 2);
238
237
  }
239
238
  sDTD() {
240
- const t = this.captureTo(Ws);
241
- t !== O && (this.text += String.fromCodePoint(t), t === Qt ? this.state = 2 : t === vt ? this.state = 6 : Te(t) && (this.state = 5, this.q = t));
239
+ const t = this.captureTo(Bs);
240
+ t !== O && (this.text += String.fromCodePoint(t), t === Kt ? this.state = 2 : t === St ? this.state = 6 : me(t) && (this.state = 5, this.q = t));
242
241
  }
243
242
  sDTDQuoted() {
244
243
  const t = this.q;
@@ -303,7 +302,7 @@ class Gs {
303
302
  }
304
303
  sOpenWaka() {
305
304
  const t = this.getCode();
306
- if (ce(t)) this.state = 34, this.unget(), this.xmlDeclPossible = !1;
305
+ if (le(t)) this.state = 34, this.unget(), this.xmlDeclPossible = !1;
307
306
  else switch (t) {
308
307
  case 47:
309
308
  this.state = 43, this.xmlDeclPossible = !1;
@@ -345,11 +344,11 @@ class Gs {
345
344
  t !== M ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = B;
346
345
  }
347
346
  sCData() {
348
- this.captureToChar(Qt) && (this.state = 21);
347
+ this.captureToChar(Kt) && (this.state = 21);
349
348
  }
350
349
  sCDataEnding() {
351
350
  const t = this.getCodeNorm();
352
- t === Qt ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
351
+ t === Kt ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
353
352
  }
354
353
  sCDataEnding2() {
355
354
  const t = this.getCodeNorm();
@@ -357,7 +356,7 @@ class Gs {
357
356
  case M:
358
357
  this.cdataHandler?.(this.text), this.text = "", this.state = B;
359
358
  break;
360
- case Qt:
359
+ case Kt:
361
360
  this.text += "]";
362
361
  break;
363
362
  default:
@@ -400,7 +399,7 @@ class Gs {
400
399
  t !== F ? t !== O && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Xt;
401
400
  }
402
401
  sXMLDeclName() {
403
- const t = this.captureTo(_s);
402
+ const t = this.captureTo(Ws);
404
403
  if (t === F) return this.state = Xt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
405
404
  if (q(t) || t === Jt) {
406
405
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
@@ -424,7 +423,7 @@ class Gs {
424
423
  sXMLDeclValueStart() {
425
424
  const t = this.getCodeNorm();
426
425
  if (t === F) return this.state = Xt, void this.fail("XML declaration is incomplete.");
427
- q(t) || (Te(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
426
+ q(t) || (me(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
428
427
  }
429
428
  sXMLDeclValue() {
430
429
  const t = this.captureTo([this.q, F]);
@@ -473,7 +472,7 @@ class Gs {
473
472
  }
474
473
  sAttrib() {
475
474
  const t = this.skipSpaces();
476
- t !== O && (ce(t) ? (this.unget(), this.state = 37) : t === M ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
475
+ t !== O && (le(t) ? (this.unget(), this.state = 37) : t === M ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
477
476
  }
478
477
  sAttribName() {
479
478
  const t = this.captureNameChars();
@@ -488,12 +487,12 @@ class Gs {
488
487
  this.state = 39;
489
488
  break;
490
489
  default:
491
- this.fail("attribute without value."), this.text = "", this.name = "", t === M ? this.openTag() : ce(t) ? (this.unget(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
490
+ this.fail("attribute without value."), this.text = "", this.name = "", t === M ? this.openTag() : le(t) ? (this.unget(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
492
491
  }
493
492
  }
494
493
  sAttribValue() {
495
494
  const t = this.getCodeNorm();
496
- Te(t) ? (this.q = t, this.state = 40) : q(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unget());
495
+ me(t) ? (this.q = t, this.state = 40) : q(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unget());
497
496
  }
498
497
  sAttribValueQuoted() {
499
498
  const { q: t, chunk: s } = this;
@@ -508,7 +507,7 @@ class Gs {
508
507
  case 9:
509
508
  this.text += `${s.slice(o, this.prevI)} `, o = this.i;
510
509
  break;
511
- case vt:
510
+ case St:
512
511
  return this.text += s.slice(o, this.prevI), void this.fail("disallowed character.");
513
512
  case O:
514
513
  return void (this.text += s.slice(o));
@@ -516,15 +515,15 @@ class Gs {
516
515
  }
517
516
  sAttribValueClosed() {
518
517
  const t = this.getCodeNorm();
519
- q(t) ? this.state = 36 : t === M ? this.openTag() : t === 47 ? this.state = 35 : ce(t) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = 37) : this.fail("disallowed character in attribute name.");
518
+ q(t) ? this.state = 36 : t === M ? this.openTag() : t === 47 ? this.state = 35 : le(t) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = 37) : this.fail("disallowed character in attribute name.");
520
519
  }
521
520
  sAttribValueUnquoted() {
522
- const t = this.captureTo(qs);
521
+ const t = this.captureTo(_s);
523
522
  switch (t) {
524
523
  case 38:
525
524
  this.state = 14, this.entityReturnState = 42;
526
525
  break;
527
- case vt:
526
+ case St:
528
527
  this.fail("disallowed character.");
529
528
  break;
530
529
  case O:
@@ -552,7 +551,7 @@ class Gs {
552
551
  let { i: t, forbiddenState: s } = this;
553
552
  const { chunk: o, textHandler: n } = this;
554
553
  t: for (; ; ) switch (this.getCode()) {
555
- case vt:
554
+ case St:
556
555
  if (this.state = 15, n !== void 0) {
557
556
  const { text: a } = this, c = o.slice(t, this.prevI);
558
557
  a.length !== 0 ? (n(a + c), this.text = "") : c.length !== 0 && n(c);
@@ -562,7 +561,7 @@ class Gs {
562
561
  case 38:
563
562
  this.state = 14, this.entityReturnState = B, n !== void 0 && (this.text += o.slice(t, this.prevI)), s = 0;
564
563
  break t;
565
- case Qt:
564
+ case Kt:
566
565
  switch (s) {
567
566
  case 0:
568
567
  s = 1;
@@ -598,7 +597,7 @@ class Gs {
598
597
  t: for (; ; ) {
599
598
  const a = this.getCode();
600
599
  switch (a) {
601
- case vt:
600
+ case St:
602
601
  if (this.state = 15, o !== void 0) {
603
602
  const { text: c } = this, m = s.slice(t, this.prevI);
604
603
  c.length !== 0 ? (o(c + m), this.text = "") : m.length !== 0 && o(m);
@@ -624,10 +623,10 @@ class Gs {
624
623
  const { prefix: o, local: n } = this.qname(t), a = { name: t, prefix: o, local: n, value: s };
625
624
  if (this.attribList.push(a), this.attributeHandler?.(a), o === "xmlns") {
626
625
  const c = s.trim();
627
- this.currentXMLVersion === "1.0" && c === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[n] = c, Oe(this, n, c);
626
+ this.currentXMLVersion === "1.0" && c === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[n] = c, Pe(this, n, c);
628
627
  } else if (t === "xmlns") {
629
628
  const c = s.trim();
630
- this.topNS[""] = c, Oe(this, "", c);
629
+ this.topNS[""] = c, Pe(this, "", c);
631
630
  }
632
631
  }
633
632
  pushAttribPlain(t, s) {
@@ -671,7 +670,7 @@ class Gs {
671
670
  for (const a of t) {
672
671
  const { name: c, prefix: m, local: v } = a;
673
672
  let b, x;
674
- m === "" ? (b = c === "xmlns" ? Kt : "", x = c) : (b = this.resolve(m), b === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`), b = m), x = `{${b}}${v}`), n.has(x) && this.fail(`duplicate attribute: ${x}.`), n.add(x), a.uri = b, o[c] = a;
673
+ m === "" ? (b = c === "xmlns" ? Yt : "", x = c) : (b = this.resolve(m), b === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`), b = m), x = `{${b}}${v}`), n.has(x) && this.fail(`duplicate attribute: ${x}.`), n.add(x), a.uri = b, o[c] = a;
675
674
  }
676
675
  this.attribList = [];
677
676
  }
@@ -711,16 +710,16 @@ class Gs {
711
710
  return t[1] === "x" && /^#x[0-9a-f]+$/i.test(t) ? s = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (s = parseInt(t.slice(1), 10)), this.isChar(s) ? String.fromCodePoint(s) : (this.fail("malformed character entity."), `&${t};`);
712
711
  }
713
712
  }
714
- var Ie, yt;
715
- (yt = Ie || (Ie = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, yt.parseStream = async (i, t, s) => {
716
- const o = new Gs({ position: !1, ...s });
713
+ var Oe, Tt;
714
+ (Tt = Oe || (Oe = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, Tt.parseStream = async (i, t, s) => {
715
+ const o = new Us({ position: !1, ...s });
717
716
  let n;
718
- if (t.onOpenTagStart && o.on(yt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(yt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(yt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(yt.Events.Attribute, t.onAttribute), t.onText && o.on(yt.Events.Text, t.onText), t.onError && o.on(yt.Events.Error, t.onError), t.onEnd) {
717
+ if (t.onOpenTagStart && o.on(Tt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(Tt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(Tt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(Tt.Events.Attribute, t.onAttribute), t.onText && o.on(Tt.Events.Text, t.onText), t.onError && o.on(Tt.Events.Error, t.onError), t.onEnd) {
719
718
  t.onEnd;
720
719
  const a = () => {
721
720
  n = t.onEnd();
722
721
  };
723
- o.on(yt.Events.End, a);
722
+ o.on(Tt.Events.End, a);
724
723
  }
725
724
  for (; ; ) {
726
725
  const { value: a, done: c } = await i.read();
@@ -736,7 +735,7 @@ const w = (i) => i === !0 || i === "1" || i === "on" || i === "true" || i !== !1
736
735
  const t = parseFloat(i);
737
736
  return isNaN(t) ? null : t;
738
737
  }, k = null;
739
- class Zs {
738
+ class Gs {
740
739
  constructor() {
741
740
  this._registeredVisitors = /* @__PURE__ */ new Map();
742
741
  }
@@ -746,14 +745,13 @@ class Zs {
746
745
  createEventHandler(t, s, o) {
747
746
  const n = this._registeredVisitors, a = [];
748
747
  let c = null, m = null, v = null, b = null;
749
- const x = [], E = { key: null, source: t };
748
+ const x = [], D = { key: null, source: t };
750
749
  let y = null, u = !1;
751
- const D = (T, f) => {
750
+ const E = (T, f) => {
752
751
  let I = v.attributes[T];
753
752
  if (f) {
754
753
  if (Array.isArray(f)) {
755
- for (let H = 0; H < f.length; H++)
756
- if (I == null || (I = f[H](I), I == null)) return;
754
+ for (let H = 0; H < f.length; H++) if (I == null || (I = f[H](I), I == null)) return;
757
755
  } else if (I == null || (I = f(I), I == null)) return;
758
756
  }
759
757
  return I;
@@ -761,15 +759,15 @@ class Zs {
761
759
  y.source = T;
762
760
  }, setKey: (T) => {
763
761
  y.key = T;
764
- }, getFrom: () => v, getAttribute: (T, f) => D(T, f) ?? null, hasAttribute: (T) => g.getAttribute(T) !== null, getParent: () => x[x.length - 2].source, getPath: () => {
762
+ }, getFrom: () => v, getAttribute: (T, f) => E(T, f) ?? null, hasAttribute: (T) => g.getAttribute(T) !== null, getParent: () => x[x.length - 2].source, getPath: () => {
765
763
  const T = [];
766
764
  for (let f = 0; f < a.length; f++) T.push(a[f].local);
767
765
  return T.join("\\");
768
- }, parseAttribute: D, copyToObject: (T, f, I, H) => {
769
- const W = D(H ?? f, I);
766
+ }, parseAttribute: E, copyToObject: (T, f, I, H) => {
767
+ const W = E(H ?? f, I);
770
768
  W !== void 0 && (T[f] = W);
771
769
  }, copyTo: (T, f, I) => {
772
- const H = D(I ?? T, f);
770
+ const H = E(I ?? T, f);
773
771
  H !== void 0 && (y.source[T] = H);
774
772
  }, warn: (T) => {
775
773
  o ? o?.(T) : console.warn(T);
@@ -780,7 +778,7 @@ class Zs {
780
778
  I !== -1 && (f = f.slice(I + 1));
781
779
  const H = n.get(f);
782
780
  if (c = { local: f, visitor: H, tag: T, destination: null }, u) return a.push(c), m = f, void (v = T);
783
- b = c?.visitor ?? null, H && (y = a.length === 0 ? E : b?.to !== null ? { key: null, source: {} } : null, c.destination = y, y && x.push(y)), a.push(c), m = f, v = T, u = b?.to === null, b?.openTag?.(g);
781
+ b = c?.visitor ?? null, H && (y = a.length === 0 ? D : b?.to !== null ? { key: null, source: {} } : null, c.destination = y, y && x.push(y)), a.push(c), m = f, v = T, u = b?.to === null, b?.openTag?.(g);
784
782
  }, onCloseTag: (T) => {
785
783
  let f = T.name;
786
784
  const I = f.indexOf(":");
@@ -790,7 +788,7 @@ class Zs {
790
788
  c = a[a.length - 1] ?? null;
791
789
  const W = H?.destination;
792
790
  if (W) {
793
- x.pop(), y = x[x.length - 1] ?? E;
791
+ x.pop(), y = x[x.length - 1] ?? D;
794
792
  const ht = H.visitor;
795
793
  ht && ht.to && W.source !== void 0 && (Array.isArray(ht.to) ? y.source.push ? y.source.push(W.source) : o?.(`Unable to parse array for ${ht.from} at ${g.getPath()}`) : W.key ? y.source[W.key] = W.source : typeof ht.to == "string" && (y.source[ht.to] = W.source));
796
794
  }
@@ -800,7 +798,7 @@ class Zs {
800
798
  }, onEnd: s };
801
799
  }
802
800
  }
803
- const as = (i, t, s, o = null) => {
801
+ const ns = (i, t, s, o = null) => {
804
802
  if (!i) return null;
805
803
  let n = i;
806
804
  n.startsWith("/") && (n = n.substring(1));
@@ -815,7 +813,7 @@ const as = (i, t, s, o = null) => {
815
813
  console.warn(v);
816
814
  }
817
815
  return o?.parsedRefs?.set(i, m), m;
818
- }, Ve = (i, t, s, o, n = null) => {
816
+ }, Ie = (i, t, s, o, n = null) => {
819
817
  if (!i) return null;
820
818
  let a = i;
821
819
  a.startsWith("/") && (a = a.substring(1));
@@ -825,13 +823,13 @@ const as = (i, t, s, o = null) => {
825
823
  if (!m) return null;
826
824
  const v = m.content;
827
825
  try {
828
- const b = new TextDecoder().decode(v), x = s.parseFromString(b, "text/xml"), E = o.convert(x, i, n);
829
- return n?.parsedRefs?.set(i, E), E;
826
+ const b = new TextDecoder().decode(v), x = s.parseFromString(b, "text/xml"), D = o.convert(x, i, n);
827
+ return n?.parsedRefs?.set(i, D), D;
830
828
  } catch (b) {
831
829
  console.warn(b);
832
830
  }
833
831
  return null;
834
- }, Zt = (i, t, s, o, n = null) => {
832
+ }, Qt = (i, t, s, o, n = null) => {
835
833
  const a = /* @__PURE__ */ new Map();
836
834
  let c = t.Directory[i];
837
835
  const m = c ? c.length : 0;
@@ -840,11 +838,11 @@ const as = (i, t, s, o = null) => {
840
838
  if (!b) continue;
841
839
  let x = b;
842
840
  x.startsWith("/") && (x = x.substring(1));
843
- const E = Ve(x, (y) => t.files[y], s, o, n);
844
- a.set(x, E);
841
+ const D = Ie(x, (y) => t.files[y], s, o, n);
842
+ a.set(x, D);
845
843
  }
846
844
  return a;
847
- }, Js = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], ls = (i, t = "dk1") => {
845
+ }, Zs = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], as = (i, t = "dk1") => {
848
846
  let s;
849
847
  const o = i("auto");
850
848
  o === void 0 || o !== "1" && o !== "true" || (s = t);
@@ -853,10 +851,10 @@ const as = (i, t, s, o = null) => {
853
851
  const a = i("rgb");
854
852
  a && (s = a.toLowerCase(), a.length !== 8 || a.startsWith("FF") || (s = "FF" + a.substring(2, a.length)));
855
853
  const c = i("theme");
856
- c && (s = Js[c]);
854
+ c && (s = Zs[c]);
857
855
  let m = i("tint");
858
- if (m && (s += ` ${Os.AdjustmentType.ETint} ${parseFloat(m)}`), s) return s;
859
- }, Qs = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), ii = (i) => i ? hs.roundAccurately(parseFloat(i) / 12700, 4) : null, oi = (i) => i ? hs.roundAccurately(parseFloat(i) / 9525, 1) : null, ri = (i) => parseFloat(i) / 1e3, ni = (i) => parseFloat(i) / 6e4, Ks = (i) => i === "true" || i === "1";
856
+ if (m && (s += ` ${Ps.AdjustmentType.ETint} ${parseFloat(m)}`), s) return s;
857
+ }, Qs = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), ti = (i) => i ? cs.roundAccurately(parseFloat(i) / 12700, 4) : null, ei = (i) => i ? cs.roundAccurately(parseFloat(i) / 9525, 1) : null, si = (i) => parseFloat(i) / 1e3, ii = (i) => parseFloat(i) / 6e4, Js = (i) => i === "true" || i === "1";
860
858
  class Bt {
861
859
  static {
862
860
  this.Collapsed = 1;
@@ -895,21 +893,21 @@ class Bt {
895
893
  this.ThickTop = 2048;
896
894
  }
897
895
  }
898
- const Ys = (i, t, s) => {
896
+ const Ks = (i, t, s) => {
899
897
  if (i[0].value[0] === i[1].value[0]) return t;
900
- }, cs = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, ai = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
901
- const { password: s, onWarning: o, createWorkbookOptions: n = {}, ...a } = t ?? {}, c = import("./7_O6nILzn1fSVvkO.js"), m = import("./DJQOS9qxVAlpgDMt.js");
898
+ }, ls = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, oi = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
899
+ const { password: s, onWarning: o, createWorkbookOptions: n = {}, ...a } = t ?? {}, c = import("./C28AZ0Rwo79iGg0v.js"), m = import("./B7Ky6m4VWP8vxhPt.js");
902
900
  let v = null;
903
901
  try {
904
902
  v = new DOMParser();
905
903
  } catch {
906
904
  }
907
905
  let b = null;
908
- v || (b = import("./MRBi3juXAW0lA_mj.js").then((u) => u.i));
909
- let x = null, E = null, y = null;
906
+ v || (b = import("./73gcCsbqgbW3KIoA.js").then((u) => u.i));
907
+ let x = null, D = null, y = null;
910
908
  try {
911
909
  const u = await Promise.all([c, m, b]);
912
- x = u[0], E = u[1], y = u[2];
910
+ x = u[0], D = u[1], y = u[2];
913
911
  } catch (u) {
914
912
  throw new Error("Unable to load XLSX parser.", { cause: u });
915
913
  }
@@ -917,553 +915,552 @@ const Ys = (i, t, s) => {
917
915
  const u = x.read(i, { type: "array", sheets: [], cellStyles: !1, bookFiles: !0 });
918
916
  if (!u.Directory) throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
919
917
  u.Directory.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], u.Directory.richdata = ["/xl/richData/rdrichvalue.xml"];
920
- const D = new E.FromOOXMLConverter(), g = v ?? new y.DOMParser(), T = n?.resources ?? new Ss(), f = T.beginPersist(), I = {}, H = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
918
+ const E = new D.FromOOXMLConverter(), g = v ?? new y.DOMParser(), T = n?.resources ?? new vs(), f = T.beginPersist(), I = {}, H = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
921
919
  W.set("richTypes", []);
922
- const ht = /* @__PURE__ */ new Map(), Le = [], he = (P) => u.files[P], be = (P, z) => {
920
+ const ht = /* @__PURE__ */ new Map(), Ve = [], ce = (P) => u.files[P], ye = (P, z) => {
923
921
  const K = P.lastIndexOf("/"), ut = P.substring(0, K + 1) + "_rels/" + P.substring(K + 1, P.length) + ".rels";
924
922
  let dt = z.get(ut);
925
- return dt || (dt = ((R, Se, Ce, ke, Wt = null) => {
923
+ return dt || (dt = ((R, ve, Se, Ce, Wt = null) => {
926
924
  if (!R) return null;
927
- const _t = Ve(R, Se, Ce, ke, Wt);
928
- if (!_t) return null;
929
- const Y = /* @__PURE__ */ new Map(), pt = Object.keys(_t), Ct = pt.length;
930
- for (let xt = 0; xt < Ct; xt++) {
931
- const kt = pt[xt], Yt = _t[kt];
932
- Y.set(kt, Yt);
925
+ const Y = Ie(R, ve, Se, Ce, Wt);
926
+ if (!Y) return null;
927
+ const tt = /* @__PURE__ */ new Map(), bt = Object.keys(Y), _t = bt.length;
928
+ for (let xt = 0; xt < _t; xt++) {
929
+ const qt = bt[xt], kt = Y[qt];
930
+ tt.set(qt, kt);
933
931
  }
934
- return Y;
935
- })(ut, he, g, D, bt), z.set(ut, dt)), dt;
936
- }, ue = (P, z, K, ut = ht) => {
937
- let dt = be(z, ut).get(P), R = dt?.target;
932
+ return tt;
933
+ })(ut, ce, g, E, yt), z.set(ut, dt)), dt;
934
+ }, he = (P, z, K, ut = ht) => {
935
+ let dt = ye(z, ut).get(P), R = dt?.target;
938
936
  if (!R) return null;
939
937
  if (dt.targetMode === "External") return dt.target;
940
- const Se = z.lastIndexOf("/"), Ce = z.substring(0, Se + 1);
941
- R.startsWith("/") || (R = Ce + R), R = ((_t) => {
942
- const Y = _t.split(/\/+/);
943
- return Y.reduce((Ct, xt, kt) => (xt === "." ? Ct.splice(kt, 1) : xt === ".." && Ct.splice(kt - 1, 2), Ct), Y).join("/");
938
+ const ve = z.lastIndexOf("/"), Se = z.substring(0, ve + 1);
939
+ R.startsWith("/") || (R = Se + R), R = ((Y) => {
940
+ const tt = Y.split(/\/+/);
941
+ return tt.reduce((bt, _t, xt) => (_t === "." ? bt.splice(xt, 1) : _t === ".." && bt.splice(xt - 1, 2), bt), tt).join("/");
944
942
  })(R);
945
- const ke = D?.getVisitorParamsState().get("dxfs");
943
+ const Ce = E?.getVisitorParamsState().get("dxfs");
946
944
  let Wt = ut.get(R);
947
- if (!Wt)
948
- if (dt.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
949
- const Y = {};
950
- Wt = Y;
951
- const pt = async () => {
952
- const Ct = ((V, U, ee, _, G, Z, tt) => {
953
- const h = new Zs(), J = new Cs.TransposedBuilder();
954
- let j = null;
955
- h.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
956
- e.copyTo("ref", k);
957
- } }), h.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
958
- const r = e.getParent();
959
- r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
960
- const l = e.getAttribute("sqref");
961
- l && (e.getSource().ref = l.split(" ").join(",")), e.copyTo("pivot", w);
962
- }, closeTag: (e) => {
963
- const r = e.getSource();
964
- if (r.rule) {
965
- const l = Object.keys(r.rule);
966
- for (let d = 0; d < l.length; d++) {
967
- const S = l[d];
968
- S !== "rule" && (r[S] = r.rule[S]);
945
+ if (!Wt) if (dt.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
946
+ const Y = {};
947
+ Wt = Y;
948
+ const tt = async () => {
949
+ const bt = ((V, U, te, _, G, Z, wt) => {
950
+ const h = new Gs(), Q = new Ss.TransposedBuilder();
951
+ let j = null;
952
+ h.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
953
+ e.copyTo("ref", k);
954
+ } }), h.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
955
+ const r = e.getParent();
956
+ r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
957
+ const l = e.getAttribute("sqref");
958
+ l && (e.getSource().ref = l.split(" ").join(",")), e.copyTo("pivot", w);
959
+ }, closeTag: (e) => {
960
+ const r = e.getSource();
961
+ if (r.rule) {
962
+ const l = Object.keys(r.rule);
963
+ for (let d = 0; d < l.length; d++) {
964
+ const S = l[d];
965
+ S !== "rule" && (r[S] = r.rule[S]);
966
+ }
967
+ }
968
+ delete r.rule;
969
+ } }), h.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
970
+ const r = e.getParent();
971
+ e.copyToObject(r, "type", k), e.copyToObject(r, "priority", A), e.copyToObject(r, "stopIfTrue", w);
972
+ const l = e.getAttribute("dxfId", A);
973
+ if (l !== null) {
974
+ let d = _?.get(l);
975
+ d || (Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`), d = {}), r.style = d;
976
+ }
977
+ e.copyToObject(r, "aboveAverage", w), e.copyToObject(r, "equalAverage", w), e.copyToObject(r, "stdDev", A), e.copyToObject(r, "bottom", w), e.copyToObject(r, "percent", w), e.copyToObject(r, "rank", A), e.copyToObject(r, "operator", k), e.copyToObject(r, "text", k), e.copyToObject(r, "timePeriod", k);
978
+ } }), h.registerVisitor({ from: "colorScale", to: "colorScale" }), h.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
979
+ e.copyTo("maxLength", A), e.copyTo("minLength", A), e.copyTo("showValue", w);
980
+ } }), h.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
981
+ e.copyTo("iconSet", k), e.copyTo("reverse", w), e.copyTo("showValue", w);
982
+ } }), h.registerVisitor({ from: "formula", to: null, text: (e, r) => {
983
+ const l = r.getParent();
984
+ let d = l.formulas;
985
+ d || (d = [], l.formulas = d), d.push(e);
986
+ } }), h.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
987
+ const r = e.getParent();
988
+ r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", k), e.copyTo("value", ct, "val"), e.copyTo("gte", w);
989
+ } }), h.registerVisitor({ from: "color", to: {}, openTag: (e) => {
990
+ const r = e.getParent();
991
+ r.colors || (r.colors = []);
992
+ const l = as((d) => e.getAttribute(d));
993
+ r.colors.push(l);
994
+ } }), h.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
995
+ const r = e.getParent();
996
+ r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", A, "colId"), e.copyTo("hiddenButton", w), e.copyTo("showButton", w);
997
+ } }), h.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
998
+ const r = e.getParent();
999
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Zt.Type.Color, e.copyTo("cellColor", w), e.copyTo("styleId", A, "dxfId");
1000
+ } }), h.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1001
+ const r = e.getParent();
1002
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Zt.Type.Dynamic, e.copyTo("dynamicType", k, "type"), e.copyTo("val", ct), e.copyTo("maxVal", ct, "maxVal");
1003
+ } }), h.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1004
+ const r = e.getParent();
1005
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Zt.Type.Icon, e.copyTo("iconId", A), e.copyTo("iconSet", k);
1006
+ } }), h.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1007
+ const r = e.getParent();
1008
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Zt.Type.Top10, e.copyTo("filterVal", ct), e.copyTo("percent", w), e.copyTo("top", w), e.copyTo("val", ct);
1009
+ } }), h.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1010
+ const r = e.getParent();
1011
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Zt.Type.Items, e.copyTo("blank", w), e.copyTo("calendarType", k);
1012
+ } }), h.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1013
+ const r = e.getParent();
1014
+ r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", k, "dateTimeGrouping"), e.copyTo("day", A), e.copyTo("hour", A), e.copyTo("minute", A), e.copyTo("month", A), e.copyTo("second", A), e.copyTo("year", A);
1015
+ } }), h.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1016
+ const r = e.getParent();
1017
+ r.items || (r.items = []), r.items.push(e.getAttribute("val", ct));
1018
+ } }), h.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1019
+ const r = e.getParent();
1020
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Zt.Type.Custom, e.copyTo("and", w);
1021
+ } }), h.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1022
+ const r = e.getParent();
1023
+ r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", k), e.copyTo("value", ct, "val");
1024
+ } }), h.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1025
+ e.copyTo("ref", k);
1026
+ } }), h.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1027
+ const r = e.getParent();
1028
+ r.fields || (r.fields = []);
1029
+ const l = e.getSource();
1030
+ r.fields.push(l), e.copyTo("sortOn", k, "sortBy"), e.copyTo("dxfId", k, "sortBy"), e.copyTo("iconSet", k), e.copyTo("customList", k);
1031
+ const d = e.getAttribute("ref");
1032
+ if (d) {
1033
+ const S = at.fastStringToRange(d, ls).colStart, pt = at.fastStringToRange(r.ref, ls), ot = pt.colStart;
1034
+ l.offset = pt ? S - ot : S;
1035
+ }
1036
+ l.reverse = e.getAttribute("descending", w) ?? !1;
1037
+ } }), h.registerVisitor({ from: "AlternateContent", to: null });
1038
+ const ge = (e) => {
1039
+ j = e.getSource(), e.copyTo("topLeft", k, "topLeftCell");
1040
+ const r = Js(e.getAttribute("defaultGridColor")), l = e.getAttribute("colorId");
1041
+ l === null || r || (e.getSource().gridLineColor = "index" + parseFloat(l)), e.copyTo("showZeros", w), e.copyTo("showFormulas", w), e.copyTo("zoomScale", A), e.copyTo("showRowHeaders", w, "showRowColHeaders"), e.copyTo("showColumnHeaders", w, "showRowColHeaders"), e.copyTo("showRowGridlines", w, "showGridLines"), e.copyTo("showColumnGridlines", w, "showGridLines");
1042
+ };
1043
+ h.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1044
+ ge(e);
1045
+ }, closeTag: () => {
1046
+ j = null;
1047
+ } }), h.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1048
+ e.setSource([]);
1049
+ } }), h.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1050
+ ge(e);
1051
+ }, closeTag: () => {
1052
+ j = null;
1053
+ } }), h.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1054
+ if (!j) return;
1055
+ e.copyTo("cell", k, "activeCell"), e.copyTo("rangeIndex", A, "activeCellId");
1056
+ const r = e.getAttribute("activeCell"), l = e.getAttribute("sqref");
1057
+ l && l !== r && (e.getSource().ranges = l.split(" "));
1058
+ } }), h.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1059
+ if (j && e.getAttribute("state") === "frozen") {
1060
+ const r = {};
1061
+ j.freezePanes = r, e.copyToObject(r, "topLeft", k, "topLeftCell");
1062
+ const l = j.topLeft ? at.fastStringToCell(j.topLeft) : { colIndex: 0, rowIndex: 0 }, d = { colIndex: 0, rowIndex: 0 };
1063
+ e.copyToObject(d, "colIndex", A, "xSplit"), e.copyToObject(d, "rowIndex", A, "ySplit");
1064
+ const S = { colIndex: l.colIndex + d.colIndex, rowIndex: l.rowIndex + d.rowIndex };
1065
+ r.coords = at.cellToString(S);
1066
+ }
1067
+ } }), h.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1068
+ const r = as((l) => e.getAttribute(l));
1069
+ r && (V.tabColor = r);
1070
+ } }), h.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1071
+ } }), h.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1072
+ } }), h.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1073
+ } }), h.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1074
+ } }), h.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1075
+ } }), h.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1076
+ e.setSource([]);
1077
+ } }), h.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1078
+ const r = e.getAttribute("ref");
1079
+ e.setSource(r);
1080
+ } }), h.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1081
+ e.setSource([]);
1082
+ } }), h.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1083
+ const r = e.getAttribute("r:id"), l = e.getAttribute("ref");
1084
+ if (!l) return void console.warn("No ref found for hyperlink");
1085
+ e.setKey(l);
1086
+ let d = r ? U(r) : "";
1087
+ if (typeof d != "string") return void console.warn("Invalid address ", d);
1088
+ const S = e.getAttribute("location");
1089
+ d.endsWith("\\") && (d = d.substring(0, d.length - 1));
1090
+ const pt = e.getAttribute("location");
1091
+ if (pt && (S && S !== pt && console.warn("display and location are different", S, pt), d += "#" + pt), !d) return void console.warn("No address found for hyperlink. r:id", r);
1092
+ let ot;
1093
+ const At = e.getAttribute("tooltip");
1094
+ ot = At ? { address: d, tooltip: At } : d, e.setSource({ r: l, v: ot });
1095
+ } }), h.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1096
+ const r = e.getAttribute("r:id");
1097
+ if (!r) return;
1098
+ const l = U(r);
1099
+ l ? e.setSource(l.movables) : console.warn("no drawing found for rId", r);
1100
+ } }), h.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1101
+ e.setSource([]);
1102
+ } }), h.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1103
+ const r = e.getAttribute("r:id");
1104
+ if (!r) return;
1105
+ const l = U(r);
1106
+ l ? e.setSource(l) : console.warn("no table found for rId", r);
1107
+ } }), h.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1108
+ } }), h.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1109
+ let r = !1;
1110
+ if (e.hasAttribute("sheet") && w(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1111
+ const l = (S) => S === !0 || S === "1" || S === "on" || S === "true" || S === !1 || S === "0" || S === "off" || S === "false" || null;
1112
+ e.copyTo("autoFilter", l), e.copyTo("deleteColumns", l), e.copyTo("formatCells", l), e.copyTo("formatColumns", l), e.copyTo("formatRows", l), e.copyTo("insertColumns", l), e.copyTo("insertHyperlinks", l), e.copyTo("insertRows", l), e.copyTo("objects", l), e.copyTo("pivotTables", l), e.copyTo("scenarios", l), e.copyTo("selectUnlockedCells", l), e.copyTo("selectUnlockedCells", l), e.copyTo("sort", l);
1113
+ const d = {};
1114
+ e.copyToObject(d, "hash", k, "hashValue"), e.copyToObject(d, "algorithm", k, "algorithmName"), e.copyToObject(d, "salt", k, "saltValue"), e.copyToObject(d, "spinCount", A), Object.keys(d).length > 0 && (e.getSource().password = d);
1115
+ } }), h.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1116
+ e.setSource({});
1117
+ } }), h.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1118
+ const r = e.getAttribute("sqref");
1119
+ e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
1120
+ const l = {};
1121
+ e.copyToObject(l, "hash", k, "hashValue"), e.copyToObject(l, "algorithm", k, "algorithmName"), e.copyToObject(l, "salt", k, "saltValue"), e.copyToObject(l, "spinCount", A), Object.keys(l).length > 0 && (e.getSource().password = l);
1122
+ } }), h.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1123
+ e.copyToObject(V, "defaultColSize", ct, "defaultColWidth"), e.copyToObject(V, "outlineLevelCol", A, "outlineLevelCol");
1124
+ const r = e.getAttribute("customHeight");
1125
+ r !== "1" && r !== "true" || e.copyToObject(V, "defaultRowSize", ct, "defaultRowHeight"), e.copyToObject(V, "outlineLevelRow", A, "outlineLevelRow");
1126
+ } }), h.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1127
+ e.setSource([]);
1128
+ } }), h.registerVisitor({ from: "col", to: [], openTag: (e) => {
1129
+ e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", ct, "width"), e.copyTo("cs", w, "customWidth"), e.copyTo("h", w, "hidden"), e.copyTo("l", A, "outlineLevel"), e.copyTo("s", A, "style");
1130
+ } }), h.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1131
+ e.warn("'OLE Objects' are not supported.");
1132
+ } });
1133
+ let ee = null;
1134
+ const xs = { onOpenTag: (e) => {
1135
+ ee === null && (ee = "");
1136
+ }, onText: (e) => {
1137
+ ee += e;
1138
+ }, onEnd: () => {
1139
+ const e = te(ee);
1140
+ return ee = null, e;
1141
+ }, onError: (e) => {
1142
+ } };
1143
+ return ((e, r, l, d, S, pt) => {
1144
+ let ot = !1, At = !1, zt = [], Ut = !1, Dt = null, se = null, fe = null, rt = null, He = null, Fe = null;
1145
+ const ws = pt?.get("richData") ?? [], Xe = at.normalizeA1ToR1C1, Be = Ee.createConflatingRanges(), We = /* @__PURE__ */ new Map(), ke = [];
1146
+ let ie = null;
1147
+ const _e = Ee.createConflatingRanges();
1148
+ let oe, Et = !1, X = -1, J = -1, gt = null, re = null;
1149
+ const Ae = [];
1150
+ let De = null, qe = -2, ft = 0, Gt = "", Pt = "", Ot = "", It = "", Vt = "", Lt = "", Nt = "", ze = "", Ue = "", Ge = "", Ze = "", Qe = "", Je = "", Ke = "", mt = !0, Rt = null;
1151
+ return { ...l, onEnd: () => {
1152
+ Ae.length > 0 && (r.rows = Ae);
1153
+ let p = Be.done(Ks);
1154
+ const C = p.length;
1155
+ if (C > 0) {
1156
+ const $ = new Array(C);
1157
+ for (let L = 0; L < C; L++) {
1158
+ const nt = p[L], $t = at.rangeToString(nt), Mt = nt.value[1], ne = at.resolveRelativeToA1(Mt, nt.rowStart, nt.colStart);
1159
+ $[L] = [$t, ne];
969
1160
  }
1161
+ r.formulas = $;
970
1162
  }
971
- delete r.rule;
972
- } }), h.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
973
- const r = e.getParent();
974
- e.copyToObject(r, "type", k), e.copyToObject(r, "priority", A), e.copyToObject(r, "stopIfTrue", w);
975
- const l = e.getAttribute("dxfId", A);
976
- if (l !== null) {
977
- let d = _?.get(l);
978
- d || (Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`), d = {}), r.style = d;
1163
+ const et = _e.done(!0), N = et.length;
1164
+ if (N > 0) {
1165
+ const $ = new Array(N);
1166
+ for (let L = 0; L < N; L++) {
1167
+ const nt = et[L], $t = at.rangeToString(nt);
1168
+ $[L] = $t;
1169
+ }
1170
+ r.volatile = $;
979
1171
  }
980
- e.copyToObject(r, "aboveAverage", w), e.copyToObject(r, "equalAverage", w), e.copyToObject(r, "stdDev", A), e.copyToObject(r, "bottom", w), e.copyToObject(r, "percent", w), e.copyToObject(r, "rank", A), e.copyToObject(r, "operator", k), e.copyToObject(r, "text", k), e.copyToObject(r, "timePeriod", k);
981
- } }), h.registerVisitor({ from: "colorScale", to: "colorScale" }), h.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
982
- e.copyTo("maxLength", A), e.copyTo("minLength", A), e.copyTo("showValue", w);
983
- } }), h.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
984
- e.copyTo("iconSet", k), e.copyTo("reverse", w), e.copyTo("showValue", w);
985
- } }), h.registerVisitor({ from: "formula", to: null, text: (e, r) => {
986
- const l = r.getParent();
987
- let d = l.formulas;
988
- d || (d = [], l.formulas = d), d.push(e);
989
- } }), h.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
990
- const r = e.getParent();
991
- r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", k), e.copyTo("value", ct, "val"), e.copyTo("gte", w);
992
- } }), h.registerVisitor({ from: "color", to: {}, openTag: (e) => {
993
- const r = e.getParent();
994
- r.colors || (r.colors = []);
995
- const l = ls((d) => e.getAttribute(d));
996
- r.colors.push(l);
997
- } }), h.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
998
- const r = e.getParent();
999
- r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", A, "colId"), e.copyTo("hiddenButton", w), e.copyTo("showButton", w);
1000
- } }), h.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
1001
- const r = e.getParent();
1002
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Color, e.copyTo("cellColor", w), e.copyTo("styleId", A, "dxfId");
1003
- } }), h.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1004
- const r = e.getParent();
1005
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Dynamic, e.copyTo("dynamicType", k, "type"), e.copyTo("val", ct), e.copyTo("maxVal", ct, "maxVal");
1006
- } }), h.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1007
- const r = e.getParent();
1008
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Icon, e.copyTo("iconId", A), e.copyTo("iconSet", k);
1009
- } }), h.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1010
- const r = e.getParent();
1011
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Top10, e.copyTo("filterVal", ct), e.copyTo("percent", w), e.copyTo("top", w), e.copyTo("val", ct);
1012
- } }), h.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1013
- const r = e.getParent();
1014
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Items, e.copyTo("blank", w), e.copyTo("calendarType", k);
1015
- } }), h.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1016
- const r = e.getParent();
1017
- r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", k, "dateTimeGrouping"), e.copyTo("day", A), e.copyTo("hour", A), e.copyTo("minute", A), e.copyTo("month", A), e.copyTo("second", A), e.copyTo("year", A);
1018
- } }), h.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1019
- const r = e.getParent();
1020
- r.items || (r.items = []), r.items.push(e.getAttribute("val", ct));
1021
- } }), h.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1022
- const r = e.getParent();
1023
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Custom, e.copyTo("and", w);
1024
- } }), h.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1025
- const r = e.getParent();
1026
- r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", k), e.copyTo("value", ct, "val");
1027
- } }), h.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1028
- e.copyTo("ref", k);
1029
- } }), h.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1030
- const r = e.getParent();
1031
- r.fields || (r.fields = []);
1032
- const l = e.getSource();
1033
- r.fields.push(l), e.copyTo("sortOn", k, "sortBy"), e.copyTo("dxfId", k, "sortBy"), e.copyTo("iconSet", k), e.copyTo("customList", k);
1034
- const d = e.getAttribute("ref");
1035
- if (d) {
1036
- const S = at.fastStringToRange(d, cs).colStart, gt = at.fastStringToRange(r.ref, cs), ot = gt.colStart;
1037
- l.offset = gt ? S - ot : S;
1172
+ if (ke.length > 0 && (r.dynamicArray = [...ke]), zt.length > 0) {
1173
+ zt.sort(Ee.createRangeComparator(ks.Orientation.Column));
1174
+ const $ = [];
1175
+ let L = null, nt = -1, $t = -1, Mt = -1, ne = -1, vt = null;
1176
+ const Ye = zt.length;
1177
+ Ye > 0 && (L = zt[0], nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ne = L.value, $.push(L));
1178
+ for (let jt = 1; jt < Ye; jt++) vt = zt[jt], ne !== vt.value || nt !== vt.colStart || $t !== vt.colEnd || Mt + 1 !== vt.rowEnd ? ($.push(vt), L = vt, nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ne = L.value) : (Mt = vt.rowEnd, L.rowEnd = Mt);
1179
+ let ts = [];
1180
+ for (let jt = 0; jt < $.length; jt++) {
1181
+ const ae = $[jt];
1182
+ ts.push({ r: { colStart: ae.colStart, colEnd: ae.colEnd, rowStart: ae.rowStart, rowEnd: ae.rowEnd }, v: ae.value });
1183
+ }
1184
+ r.directStyles = ts;
1038
1185
  }
1039
- l.reverse = e.getAttribute("descending", w) ?? !1;
1040
- } }), h.registerVisitor({ from: "AlternateContent", to: null });
1041
- const fe = (e) => {
1042
- j = e.getSource(), e.copyTo("topLeft", k, "topLeftCell");
1043
- const r = Ks(e.getAttribute("defaultGridColor")), l = e.getAttribute("colorId");
1044
- l === null || r || (e.getSource().gridLineColor = "index" + parseFloat(l)), e.copyTo("showZeros", w), e.copyTo("showFormulas", w), e.copyTo("zoomScale", A), e.copyTo("showRowHeaders", w, "showRowColHeaders"), e.copyTo("showColumnHeaders", w, "showRowColHeaders"), e.copyTo("showRowGridlines", w, "showGridLines"), e.copyTo("showColumnGridlines", w, "showGridLines");
1045
- };
1046
- h.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1047
- fe(e);
1048
- }, closeTag: () => {
1049
- j = null;
1050
- } }), h.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1051
- e.setSource([]);
1052
- } }), h.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1053
- fe(e);
1054
- }, closeTag: () => {
1055
- j = null;
1056
- } }), h.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1057
- if (!j) return;
1058
- e.copyTo("cell", k, "activeCell"), e.copyTo("rangeIndex", A, "activeCellId");
1059
- const r = e.getAttribute("activeCell"), l = e.getAttribute("sqref");
1060
- l && l !== r && (e.getSource().ranges = l.split(" "));
1061
- } }), h.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1062
- if (j && e.getAttribute("state") === "frozen") {
1063
- const r = {};
1064
- j.freezePanes = r, e.copyToObject(r, "topLeft", k, "topLeftCell");
1065
- const l = j.topLeft ? at.fastStringToCell(j.topLeft) : { colIndex: 0, rowIndex: 0 }, d = { colIndex: 0, rowIndex: 0 };
1066
- e.copyToObject(d, "colIndex", A, "xSplit"), e.copyToObject(d, "rowIndex", A, "ySplit");
1067
- const S = { colIndex: l.colIndex + d.colIndex, rowIndex: l.rowIndex + d.rowIndex };
1068
- r.coords = at.cellToString(S);
1186
+ const st = e.build();
1187
+ if (st) {
1188
+ const $ = st.tuples;
1189
+ r.data = $;
1069
1190
  }
1070
- } }), h.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1071
- const r = ls((l) => e.getAttribute(l));
1072
- r && (V.tabColor = r);
1073
- } }), h.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1074
- } }), h.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1075
- } }), h.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1076
- } }), h.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1077
- } }), h.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1078
- } }), h.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1079
- e.setSource([]);
1080
- } }), h.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1081
- const r = e.getAttribute("ref");
1082
- e.setSource(r);
1083
- } }), h.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1084
- e.setSource([]);
1085
- } }), h.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1086
- const r = e.getAttribute("r:id"), l = e.getAttribute("ref");
1087
- if (!l) return void console.warn("No ref found for hyperlink");
1088
- e.setKey(l);
1089
- let d = r ? U(r) : "";
1090
- if (typeof d != "string") return void console.warn("Invalid address ", d);
1091
- const S = e.getAttribute("location");
1092
- d.endsWith("\\") && (d = d.substring(0, d.length - 1));
1093
- const gt = e.getAttribute("location");
1094
- if (gt && (S && S !== gt && console.warn("display and location are different", S, gt), d += "#" + gt), !d) return void console.warn("No address found for hyperlink. r:id", r);
1095
- let ot;
1096
- const At = e.getAttribute("tooltip");
1097
- ot = At ? { address: d, tooltip: At } : d, e.setSource({ r: l, v: ot });
1098
- } }), h.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1099
- const r = e.getAttribute("r:id");
1100
- if (!r) return;
1101
- const l = U(r);
1102
- l ? e.setSource(l.movables) : console.warn("no drawing found for rId", r);
1103
- } }), h.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1104
- e.setSource([]);
1105
- } }), h.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1106
- const r = e.getAttribute("r:id");
1107
- if (!r) return;
1108
- const l = U(r);
1109
- l ? e.setSource(l) : console.warn("no table found for rId", r);
1110
- } }), h.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1111
- } }), h.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1112
- let r = !1;
1113
- if (e.hasAttribute("sheet") && w(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1114
- const l = (S) => S === !0 || S === "1" || S === "on" || S === "true" || S === !1 || S === "0" || S === "off" || S === "false" || null;
1115
- e.copyTo("autoFilter", l), e.copyTo("deleteColumns", l), e.copyTo("formatCells", l), e.copyTo("formatColumns", l), e.copyTo("formatRows", l), e.copyTo("insertColumns", l), e.copyTo("insertHyperlinks", l), e.copyTo("insertRows", l), e.copyTo("objects", l), e.copyTo("pivotTables", l), e.copyTo("scenarios", l), e.copyTo("selectUnlockedCells", l), e.copyTo("selectUnlockedCells", l), e.copyTo("sort", l);
1116
- const d = {};
1117
- e.copyToObject(d, "hash", k, "hashValue"), e.copyToObject(d, "algorithm", k, "algorithmName"), e.copyToObject(d, "salt", k, "saltValue"), e.copyToObject(d, "spinCount", A), Object.keys(d).length > 0 && (e.getSource().password = d);
1118
- } }), h.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1119
- e.setSource({});
1120
- } }), h.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1121
- const r = e.getAttribute("sqref");
1122
- e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
1123
- const l = {};
1124
- e.copyToObject(l, "hash", k, "hashValue"), e.copyToObject(l, "algorithm", k, "algorithmName"), e.copyToObject(l, "salt", k, "saltValue"), e.copyToObject(l, "spinCount", A), Object.keys(l).length > 0 && (e.getSource().password = l);
1125
- } }), h.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1126
- e.copyToObject(V, "defaultColSize", ct, "defaultColWidth"), e.copyToObject(V, "outlineLevelCol", A, "outlineLevelCol");
1127
- const r = e.getAttribute("customHeight");
1128
- r !== "1" && r !== "true" || e.copyToObject(V, "defaultRowSize", ct, "defaultRowHeight"), e.copyToObject(V, "outlineLevelRow", A, "outlineLevelRow");
1129
- } }), h.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1130
- e.setSource([]);
1131
- } }), h.registerVisitor({ from: "col", to: [], openTag: (e) => {
1132
- e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", ct, "width"), e.copyTo("cs", w, "customWidth"), e.copyTo("h", w, "hidden"), e.copyTo("l", A, "outlineLevel"), e.copyTo("s", A, "style");
1133
- } }), h.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1134
- e.warn("'OLE Objects' are not supported.");
1135
- } });
1136
- let se = null;
1137
- const ws = { onOpenTag: (e) => {
1138
- se === null && (se = "");
1139
- }, onText: (e) => {
1140
- se += e;
1141
- }, onEnd: () => {
1142
- const e = ee(se);
1143
- return se = null, e;
1144
- }, onError: (e) => {
1145
- } };
1146
- return ((e, r, l, d, S, gt) => {
1147
- let ot = !1, At = !1, qt = [], zt = !1, Et = null, ie = null, me = null, rt = null, Fe = null, Xe = null;
1148
- const vs = gt?.get("richData") ?? [], Be = at.normalizeA1ToR1C1, We = Pe.createConflatingRanges(), _e = /* @__PURE__ */ new Map(), Ae = [];
1149
- let oe = null;
1150
- const qe = Pe.createConflatingRanges();
1151
- let re, Dt = !1, X = -1, Q = -1, ft = null, ne = null;
1152
- const Ee = [];
1153
- let De = null, ze = -2, mt = 0, Ut = "", Pt = "", Ot = "", It = "", Vt = "", Lt = "", Nt = "", Ue = "", Ge = "", Ze = "", Je = "", Qe = "", Ke = "", Ye = "", Tt = !0, Rt = null;
1154
- return { ...l, onEnd: () => {
1155
- Ee.length > 0 && (r.rows = Ee);
1156
- let p = We.done(Ys);
1157
- const C = p.length;
1158
- if (C > 0) {
1159
- const $ = new Array(C);
1160
- for (let L = 0; L < C; L++) {
1161
- const nt = p[L], $t = at.rangeToString(nt), Mt = nt.value[1], ae = at.resolveRelativeToA1(Mt, nt.rowStart, nt.colStart);
1162
- $[L] = [$t, ae];
1163
- }
1164
- r.formulas = $;
1165
- }
1166
- const et = qe.done(!0), N = et.length;
1167
- if (N > 0) {
1168
- const $ = new Array(N);
1169
- for (let L = 0; L < N; L++) {
1170
- const nt = et[L], $t = at.rangeToString(nt);
1171
- $[L] = $t;
1172
- }
1173
- r.volatile = $;
1191
+ l?.onEnd?.();
1192
+ }, onOpenTag: (p) => {
1193
+ let C = p.name;
1194
+ const et = C.indexOf(":");
1195
+ if (et !== -1 && (C = C.slice(et + 1)), oe) {
1196
+ const N = p.attributes;
1197
+ switch (C) {
1198
+ case "v":
1199
+ At = !0;
1200
+ break;
1201
+ case "f":
1202
+ switch (N.t ?? null) {
1203
+ case null:
1204
+ case "normal":
1205
+ Ut = !0;
1206
+ break;
1207
+ case "shared":
1208
+ const st = N.si;
1209
+ se = N.ref, Dt = st;
1210
+ break;
1211
+ case "array":
1212
+ Ut = !0, se = N.ref, ie = [se, !1];
1213
+ break;
1214
+ case "datatable":
1215
+ Ut = !0, se = N.ref, Ut = !0;
1216
+ }
1217
+ N.ca !== void 0 && _e.append(X, J);
1218
+ break;
1219
+ case "is":
1220
+ return void (Et = !0);
1174
1221
  }
1175
- if (Ae.length > 0 && (r.dynamicArray = [...Ae]), qt.length > 0) {
1176
- qt.sort(Pe.createRangeComparator(As.Orientation.Column));
1177
- const $ = [];
1178
- let L = null, nt = -1, $t = -1, Mt = -1, ae = -1, wt = null;
1179
- const ts = qt.length;
1180
- ts > 0 && (L = qt[0], nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ae = L.value, $.push(L));
1181
- for (let jt = 1; jt < ts; jt++) wt = qt[jt], ae !== wt.value || nt !== wt.colStart || $t !== wt.colEnd || Mt + 1 !== wt.rowEnd ? ($.push(wt), L = wt, nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ae = L.value) : (Mt = wt.rowEnd, L.rowEnd = Mt);
1182
- let es = [];
1183
- for (let jt = 0; jt < $.length; jt++) {
1184
- const le = $[jt];
1185
- es.push({ r: { colStart: le.colStart, colEnd: le.colEnd, rowStart: le.rowStart, rowEnd: le.rowEnd }, v: le.value });
1186
- }
1187
- r.directStyles = es;
1222
+ return void (Et && S?.onOpenTag(p));
1223
+ }
1224
+ if (ot) {
1225
+ if (C === "c") {
1226
+ oe = p;
1227
+ const N = p.attributes.r;
1228
+ J = at.fastStringToCol(N);
1229
+ const st = p.attributes.t;
1230
+ st === void 0 ? re = null : (re = st, re === "str" && (Et = !0));
1231
+ let $ = p.attributes.s;
1232
+ $ !== void 0 && ($ = parseInt($), Rt && Rt.value === $ && Rt.colEnd + 1 === J ? Rt.colEnd = J : (Rt = { colStart: J, rowStart: X, colEnd: J, rowEnd: X, value: $ }, zt.push(Rt)));
1188
1233
  }
1189
- const st = e.build();
1190
- if (st) {
1191
- const $ = st.tuples;
1192
- r.data = $;
1234
+ } else {
1235
+ if (C === "row") {
1236
+ ot = !0;
1237
+ const N = p.attributes.r;
1238
+ if (X = parseInt(N) - 1, ft = 0, Pt = p.attributes.customHeight, Pt !== void 0 && (ft |= Bt.CustomHeight), Pt !== Ue && (mt = !0, Ue = Pt), Gt = p.attributes.ht, Gt !== void 0 && (ft |= Bt.Ht), Gt !== ze && (mt = !0, ze = Gt), Ot = p.attributes.hidden, Ot !== void 0 && (ft |= Bt.Hidden), Ot !== Ge && (mt = !0, Ge = Ot), Vt = p.attributes.s, Vt !== void 0 && (ft |= Bt.S), Vt !== Qe && (mt = !0, Qe = Vt), It = p.attributes.customFormat, It !== void 0 && (ft |= Bt.CustomFormat), It !== Ze && (mt = !0, Ze = It), Lt = p.attributes.outlineLevel, Lt !== void 0 && (ft |= Bt.OutlineLevel), Lt !== Je && (mt = !0, Je = Lt), Nt = p.attributes.collapsed, Nt !== void 0 && (ft |= Bt.Collapsed), Nt !== Ke && (mt = !0, Ke = Nt), ft !== 0) if (qe + 1 !== X || mt) {
1239
+ const st = Pt !== void 0 && (Pt === "1" || Pt === "true"), $ = It !== void 0 && (It === "1" || It === "true");
1240
+ De = { min: X, max: X, sz: st && Gt !== void 0 ? parseFloat(Gt) : -1, csz: st, h: Ot !== void 0 && (Ot === "1" || Ot === "true"), s: st && Vt !== void 0 && Vt !== "0" ? parseInt(Vt) : 0, cs: $, l: Lt === void 0 || Lt === "0" ? 0 : parseInt(Lt), cl: Nt !== void 0 && (Nt === "1" || Nt === "true") }, Ae.push(De);
1241
+ } else De.max = X;
1242
+ return qe = X, void (mt = !1);
1193
1243
  }
1194
- l?.onEnd?.();
1195
- }, onOpenTag: (p) => {
1244
+ l?.onOpenTag(p);
1245
+ }
1246
+ }, onCloseTag: (p) => {
1247
+ if (oe) {
1196
1248
  let C = p.name;
1197
1249
  const et = C.indexOf(":");
1198
- if (et !== -1 && (C = C.slice(et + 1)), re) {
1199
- const N = p.attributes;
1200
- switch (C) {
1201
- case "v":
1202
- At = !0;
1203
- break;
1204
- case "f":
1205
- switch (N.t ?? null) {
1206
- case null:
1207
- case "normal":
1208
- zt = !0;
1209
- break;
1210
- case "shared":
1211
- const st = N.si;
1212
- ie = N.ref, Et = st;
1213
- break;
1214
- case "array":
1215
- zt = !0, ie = N.ref, oe = [ie, !1];
1250
+ if (et !== -1 && (C = C.slice(et + 1)), Et) if (C === "is" || C === "v") {
1251
+ const N = S?.onEnd();
1252
+ N !== null && e.addValue(X, J, "" + N);
1253
+ } else S?.onCloseTag?.(p);
1254
+ return At && (At = !1), void (C === "c" && (oe = null, Et = !1));
1255
+ }
1256
+ if (ot) return ot = !1, void (Rt = null);
1257
+ l?.onCloseTag(p);
1258
+ }, onText: (p) => {
1259
+ if (p = p.trim(), At) {
1260
+ switch (gt = null, re) {
1261
+ case null:
1262
+ case "n":
1263
+ gt = parseFloat(p);
1264
+ break;
1265
+ case "b":
1266
+ gt = p === "1" || p === "true";
1267
+ break;
1268
+ case "s":
1269
+ gt = p;
1270
+ break;
1271
+ case "e":
1272
+ if (p === "#VALUE!") {
1273
+ const et = oe.attributes.vm;
1274
+ if (et !== void 0) {
1275
+ const N = ws[parseInt(et) - 1];
1276
+ if (N && N.isFormulaError) {
1277
+ gt = { t: Ft.Error, v: N.getCode() };
1216
1278
  break;
1217
- case "datatable":
1218
- zt = !0, ie = N.ref, zt = !0;
1219
- }
1220
- N.ca !== void 0 && qe.append(X, Q);
1221
- break;
1222
- case "is":
1223
- return void (Dt = !0);
1224
- }
1225
- return void (Dt && S?.onOpenTag(p));
1226
- }
1227
- if (ot) {
1228
- if (C === "c") {
1229
- re = p;
1230
- const N = p.attributes.r;
1231
- Q = at.fastStringToCol(N);
1232
- const st = p.attributes.t;
1233
- st === void 0 ? ne = null : (ne = st, ne === "str" && (Dt = !0));
1234
- let $ = p.attributes.s;
1235
- $ !== void 0 && ($ = parseInt($), Rt && Rt.value === $ && Rt.colEnd + 1 === Q ? Rt.colEnd = Q : (Rt = { colStart: Q, rowStart: X, colEnd: Q, rowEnd: X, value: $ }, qt.push(Rt)));
1236
- }
1237
- } else {
1238
- if (C === "row") {
1239
- ot = !0;
1240
- const N = p.attributes.r;
1241
- if (X = parseInt(N) - 1, mt = 0, Pt = p.attributes.customHeight, Pt !== void 0 && (mt |= Bt.CustomHeight), Pt !== Ge && (Tt = !0, Ge = Pt), Ut = p.attributes.ht, Ut !== void 0 && (mt |= Bt.Ht), Ut !== Ue && (Tt = !0, Ue = Ut), Ot = p.attributes.hidden, Ot !== void 0 && (mt |= Bt.Hidden), Ot !== Ze && (Tt = !0, Ze = Ot), Vt = p.attributes.s, Vt !== void 0 && (mt |= Bt.S), Vt !== Qe && (Tt = !0, Qe = Vt), It = p.attributes.customFormat, It !== void 0 && (mt |= Bt.CustomFormat), It !== Je && (Tt = !0, Je = It), Lt = p.attributes.outlineLevel, Lt !== void 0 && (mt |= Bt.OutlineLevel), Lt !== Ke && (Tt = !0, Ke = Lt), Nt = p.attributes.collapsed, Nt !== void 0 && (mt |= Bt.Collapsed), Nt !== Ye && (Tt = !0, Ye = Nt), mt !== 0) if (ze + 1 !== X || Tt) {
1242
- const st = Pt !== void 0 && (Pt === "1" || Pt === "true"), $ = It !== void 0 && (It === "1" || It === "true");
1243
- De = { min: X, max: X, sz: st && Ut !== void 0 ? parseFloat(Ut) : -1, csz: st, h: Ot !== void 0 && (Ot === "1" || Ot === "true"), s: st && Vt !== void 0 && Vt !== "0" ? parseInt(Vt) : 0, cs: $, l: Lt === void 0 || Lt === "0" ? 0 : parseInt(Lt), cl: Nt !== void 0 && (Nt === "1" || Nt === "true") }, Ee.push(De);
1244
- } else De.max = X;
1245
- return ze = X, void (Tt = !1);
1246
- }
1247
- l?.onOpenTag(p);
1248
- }
1249
- }, onCloseTag: (p) => {
1250
- if (re) {
1251
- let C = p.name;
1252
- const et = C.indexOf(":");
1253
- if (et !== -1 && (C = C.slice(et + 1)), Dt) if (C === "is" || C === "v") {
1254
- const N = S?.onEnd();
1255
- N !== null && e.addValue(X, Q, "" + N);
1256
- } else S?.onCloseTag?.(p);
1257
- return At && (At = !1), void (C === "c" && (re = null, Dt = !1));
1258
- }
1259
- if (ot) return ot = !1, void (Rt = null);
1260
- l?.onCloseTag(p);
1261
- }, onText: (p) => {
1262
- if (p = p.trim(), At) {
1263
- switch (ft = null, ne) {
1264
- case null:
1265
- case "n":
1266
- ft = parseFloat(p);
1267
- break;
1268
- case "b":
1269
- ft = p === "1" || p === "true";
1270
- break;
1271
- case "s":
1272
- ft = p;
1273
- break;
1274
- case "e":
1275
- if (p === "#VALUE!") {
1276
- const et = re.attributes.vm;
1277
- if (et !== void 0) {
1278
- const N = vs[parseInt(et) - 1];
1279
- if (N && N.isFormulaError) {
1280
- ft = { t: Ft.Error, v: N.getCode() };
1281
- break;
1282
- }
1283
1279
  }
1284
1280
  }
1285
- const C = ks.getBuiltInByLabel(p);
1286
- C ? ft = { t: Ft.Error, v: C.getCode() } : (ft = p, d?.(`Unknown formula error '${p}' in cell ${at.cellToString({ colIndex: Q, rowIndex: X })}`));
1287
- break;
1288
- case "str":
1289
- case "inlineStr":
1290
- Dt = !0;
1291
- }
1292
- ft !== null && e.addValue(X, Q, ft);
1281
+ }
1282
+ const C = Cs.getBuiltInByLabel(p);
1283
+ C ? gt = { t: Ft.Error, v: C.getCode() } : (gt = p, d?.(`Unknown formula error '${p}' in cell ${at.cellToString({ colIndex: J, rowIndex: X })}`));
1284
+ break;
1285
+ case "str":
1286
+ case "inlineStr":
1287
+ Et = !0;
1293
1288
  }
1294
- if (oe && (ne === "e" && (oe[1] = !0), Ae.push(oe), oe = null), Et) if (Fe === Et) rt = Xe;
1295
- else {
1296
- if (rt = _e.get(Et), !rt) {
1297
- const C = [];
1298
- me = Be(p, X, Q, C), rt = [me, C, p], _e.set(Et, rt);
1299
- }
1300
- Fe = Et, Xe = rt;
1301
- }
1302
- if (zt) {
1289
+ gt !== null && e.addValue(X, J, gt);
1290
+ }
1291
+ if (ie && (re === "e" && (ie[1] = !0), ke.push(ie), ie = null), Dt) if (He === Dt) rt = Fe;
1292
+ else {
1293
+ if (rt = We.get(Dt), !rt) {
1303
1294
  const C = [];
1304
- me = Be(p, X, Q, C), rt = [me, C, p];
1305
- }
1306
- if (rt) return We.append(X, Q, rt), rt = null, zt = !1, Et = null, void (ie = null);
1307
- Dt ? S?.onText(p) : ot || l?.onText(p);
1308
- } };
1309
- })(J, V, h.createEventHandler(V, () => {
1310
- }, Z), Z, ws, tt);
1311
- })(Y, (V, U = !1) => ue(V, R, U) ?? null, ms, ke, 0, (V) => {
1312
- o && (V = R + ": " + V, o?.(V));
1313
- }, W), xt = as(R, he), kt = await (async (V, U = 8388608) => {
1314
- await (async () => {
1315
- if (typeof ReadableStream > "u") if (typeof window > "u") {
1316
- const { ReadableStream: Z } = await import("./BcWoqhD_sX85c7Mh.js");
1317
- globalThis.ReadableStream = Z;
1318
- } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1319
- })();
1320
- const ee = new TextDecoder("utf-8");
1321
- let _ = 0;
1322
- const G = V instanceof Uint8Array ? V : new Uint8Array(V);
1323
- return new ReadableStream({ pull(Z) {
1324
- if (_ >= G.byteLength) return void Z.close();
1325
- const tt = G.subarray(_, Math.min(_ + U, G.byteLength)), h = ee.decode(tt, { stream: _ + U < G.byteLength });
1326
- Z.enqueue(h), _ += tt.length;
1327
- } }).getReader();
1328
- })(xt);
1329
- try {
1330
- await Ie.parseStream(kt, Ct, { xmlns: !1 });
1331
- } catch (V) {
1332
- throw console.warn(`Error parsing sheet: '${R}'`, V), new Error(`Error parsing sheet: '${R}'`, { cause: V });
1333
- }
1334
- const Yt = be(R, ut);
1335
- let te, He = /* @__PURE__ */ new Map();
1336
- if (Yt) {
1337
- const V = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1338
- let U;
1339
- Yt.forEach((_, G) => {
1340
- _.type === V && (te = ue(G, R, !1, ut)?.comments, te && te.forEach((tt) => {
1341
- He.set(tt.id, tt);
1342
- }));
1343
- });
1344
- const ee = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1345
- if (Yt.forEach((_, G) => {
1346
- _.type === ee && (U = ue(G, R, !1, ut));
1347
- }), U || te) {
1348
- const _ = te ?? [], G = U?.comments;
1349
- if (G) {
1350
- const Z = U?.authors;
1351
- for (let tt = 0; tt < G.length; tt++) {
1352
- const h = G[tt];
1353
- let J = h.authorId !== void 0 ? Z[h.authorId] : void 0;
1354
- if ((!J || J.startsWith("tc=")) && (J = Qs(J.substring(3)), He.has(J))) continue;
1355
- let j = pe.get(J);
1356
- j || (j = $e.get(J)), j || (j = { id: ss.uuidV4(), displayName: J }, $e.set(j.displayName, j), pe.set(j.id, j)), J = j?.id ?? null;
1357
- const fe = { id: ss.uuidV4(), personId: J, ref: h.ref, done: !1, asNote: !0, content: h.content };
1358
- _.push(fe);
1295
+ fe = Xe(p, X, J, C), rt = [fe, C, p], We.set(Dt, rt);
1359
1296
  }
1297
+ He = Dt, Fe = rt;
1298
+ }
1299
+ if (Ut) {
1300
+ const C = [];
1301
+ fe = Xe(p, X, J, C), rt = [fe, C, p];
1302
+ }
1303
+ if (rt) return Be.append(X, J, rt), rt = null, Ut = !1, Dt = null, void (se = null);
1304
+ Et ? S?.onText(p) : ot || l?.onText(p);
1305
+ } };
1306
+ })(Q, V, h.createEventHandler(V, () => {
1307
+ }, Z), Z, xs, wt);
1308
+ })(Y, (V, U = !1) => he(V, R, U) ?? null, fs, Ce, 0, (V) => {
1309
+ o && (V = R + ": " + V, o?.(V));
1310
+ }, W), _t = ns(R, ce), xt = await (async (V, U = 8388608) => {
1311
+ await (async () => {
1312
+ if (typeof ReadableStream > "u") if (typeof window > "u") {
1313
+ const { ReadableStream: Z } = await import("./DwRHGEuscm3FvnkM.js");
1314
+ globalThis.ReadableStream = Z;
1315
+ } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1316
+ })();
1317
+ const te = new TextDecoder("utf-8");
1318
+ let _ = 0;
1319
+ const G = V instanceof Uint8Array ? V : new Uint8Array(V);
1320
+ return new ReadableStream({ pull(Z) {
1321
+ if (_ >= G.byteLength) return void Z.close();
1322
+ const wt = G.subarray(_, Math.min(_ + U, G.byteLength)), h = te.decode(wt, { stream: _ + U < G.byteLength });
1323
+ Z.enqueue(h), _ += wt.length;
1324
+ } }).getReader();
1325
+ })(_t);
1326
+ try {
1327
+ await Oe.parseStream(xt, bt, { xmlns: !1 });
1328
+ } catch (V) {
1329
+ throw console.warn(`Error parsing sheet: '${R}'`, V), new Error(`Error parsing sheet: '${R}'`, { cause: V });
1330
+ }
1331
+ const qt = ye(R, ut);
1332
+ let kt, je = /* @__PURE__ */ new Map();
1333
+ if (qt) {
1334
+ const V = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1335
+ let U;
1336
+ qt.forEach((_, G) => {
1337
+ _.type === V && (kt = he(G, R, !1, ut)?.comments, kt && kt.forEach((Z) => {
1338
+ je.set(Z.id, Z);
1339
+ }));
1340
+ });
1341
+ const te = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1342
+ if (qt.forEach((_, G) => {
1343
+ _.type === te && (U = he(G, R, !1, ut));
1344
+ }), U || kt) {
1345
+ const _ = kt ?? [], G = U?.comments;
1346
+ if (G) {
1347
+ const Z = U?.authors;
1348
+ for (let wt = 0; wt < G.length; wt++) {
1349
+ const h = G[wt];
1350
+ let Q = h.authorId !== void 0 ? Z[h.authorId] : void 0;
1351
+ if ((!Q || Q.startsWith("tc=")) && (Q = Qs(Q.substring(3)), je.has(Q))) continue;
1352
+ let j = de.get(Q);
1353
+ j || (j = Re.get(Q)), j || (j = { id: es.uuidV4(), displayName: Q }, Re.set(j.displayName, j), de.set(j.id, j)), Q = j?.id ?? null;
1354
+ const ge = { id: es.uuidV4(), personId: Q, ref: h.ref, done: !1, asNote: !0, content: h.content };
1355
+ _.push(ge);
1360
1356
  }
1361
- Y.comments = _;
1362
1357
  }
1358
+ Y.comments = _;
1363
1359
  }
1364
- };
1365
- Le.push(pt());
1366
- } else Wt = K ? as(R, he, (Y) => {
1367
- const pt = T.add({ buffer: Y });
1368
- return pt.addReference(I), H.add(pt), f.toResourceId(pt);
1369
- }, bt) : Ve(R, he, g, D, bt);
1360
+ }
1361
+ };
1362
+ Ve.push(tt());
1363
+ } else Wt = K ? ns(R, ce, (Y) => {
1364
+ const tt = T.add({ buffer: Y });
1365
+ return tt.addReference(I), H.add(tt), f.toResourceId(tt);
1366
+ }, yt) : Ie(R, ce, g, E, yt);
1370
1367
  return Wt;
1371
- }, bt = { paramMap: W, getRefs: be, getRef: ue, parsedRefs: ht, onWarning: o, addPerson: (P) => null }, de = [];
1372
- let xe = 0;
1373
- u.Strings && (xe = parseInt(u.Strings.Unique ?? u.Strings.length ?? 0));
1374
- const fs = u.Strings ?? [];
1375
- for (let P = 0; P < xe; P++) de.push(fs[P]?.t ?? "");
1376
- const Ne = /* @__PURE__ */ new Map();
1377
- let Re = xe;
1378
- const ms = (P) => {
1379
- const z = Ne.get(P);
1368
+ }, yt = { paramMap: W, getRefs: ye, getRef: he, parsedRefs: ht, onWarning: o, addPerson: (P) => null }, ue = [];
1369
+ let be = 0;
1370
+ u.Strings && (be = parseInt(u.Strings.Unique ?? u.Strings.length ?? 0));
1371
+ const gs = u.Strings ?? [];
1372
+ for (let P = 0; P < be; P++) ue.push(gs[P]?.t ?? "");
1373
+ const Le = /* @__PURE__ */ new Map();
1374
+ let Ne = be;
1375
+ const fs = (P) => {
1376
+ const z = Le.get(P);
1380
1377
  if (z !== void 0) return z;
1381
- const K = Re;
1382
- return Ne.set(P, Re++), de.push(P), K;
1383
- }, pe = (Zt("richstructure", u, g, D, bt), Zt("richdata", u, g, D, bt), /* @__PURE__ */ new Map()), $e = /* @__PURE__ */ new Map(), Me = Zt("people", u, g, D);
1384
- let St = null;
1385
- if (Me.size > 0 && (St = Me.entries().next()?.value?.[1]?.persons, St)) {
1386
- const P = St.length;
1378
+ const K = Ne;
1379
+ return Le.set(P, Ne++), ue.push(P), K;
1380
+ }, de = (Qt("richstructure", u, g, E, yt), Qt("richdata", u, g, E, yt), /* @__PURE__ */ new Map()), Re = /* @__PURE__ */ new Map(), $e = Qt("people", u, g, E);
1381
+ let Ct = null;
1382
+ if ($e.size > 0 && (Ct = $e.entries().next()?.value?.[1]?.persons, Ct)) {
1383
+ const P = Ct.length;
1387
1384
  for (let z = 0; z < P; z++) {
1388
- const K = St[z];
1389
- pe.set(K.id, K), pe.set(K.displayName, K);
1385
+ const K = Ct[z];
1386
+ de.set(K.id, K), de.set(K.displayName, K);
1390
1387
  }
1391
1388
  }
1392
- const we = Zt("themes", u, g, D, bt);
1393
- let je = null;
1394
- if (we && we.entries) {
1395
- let P = we.entries().next();
1396
- P?.value?.[1] && (je = P.value[1]);
1389
+ const xe = Qt("themes", u, g, E, yt);
1390
+ let Me = null;
1391
+ if (xe && xe.entries) {
1392
+ let P = xe.entries().next();
1393
+ P?.value?.[1] && (Me = P.value[1]);
1397
1394
  }
1398
- const Ts = new Es(je);
1399
- let ge = Zt("styles", u, g, D, bt).entries().next()?.value[1];
1400
- ge && (ge = JSON.parse(Ds(ge)));
1401
- const ys = Zt("workbooks", u, g, D, bt);
1402
- await Promise.all(Le);
1403
- const ve = { ...ys.entries().next().value[1], styles: ge, theme: Ts.toJSON() };
1404
- de.length > 0 && (ve.strings = de), St && St.length > 0 && (ve.people = St);
1405
- const bs = { ...n, resources: T, json: ve }, xs = new Ps(bs);
1395
+ const ms = new As(Me);
1396
+ let pe = Qt("styles", u, g, E, yt).entries().next()?.value[1];
1397
+ pe && (pe = JSON.parse(Ds(pe)));
1398
+ const Ts = Qt("workbooks", u, g, E, yt);
1399
+ await Promise.all(Ve);
1400
+ const we = { ...Ts.entries().next().value[1], styles: pe, theme: ms.toJSON() };
1401
+ ue.length > 0 && (we.strings = ue), Ct && Ct.length > 0 && (we.people = Ct);
1402
+ const ys = { ...n, resources: T, json: we }, bs = new Es(ys);
1406
1403
  return H.forEach((P) => {
1407
1404
  P.deleteReference(I);
1408
- }), f.endPersist(), xs;
1405
+ }), f.endPersist(), bs;
1409
1406
  } catch (u) {
1410
- let D = "Unable to parse XLSX.";
1411
- throw u instanceof Is && (D = "Unable to open XLSX. There are too many rows or columns."), new Error(D, { cause: u });
1407
+ let E = "Unable to parse XLSX.";
1408
+ throw u instanceof Os && (E = "Unable to open XLSX. There are too many rows or columns."), new Error(E, { cause: u });
1412
1409
  }
1413
1410
  }, toBufferXLSX: async (i, t) => {
1414
- const s = await import("./7_O6nILzn1fSVvkO.js"), o = await i.toJSON(!0), n = s.utils.book_new();
1411
+ const s = await import("./C28AZ0Rwo79iGg0v.js"), o = await i.toJSON(!0), n = s.utils.book_new();
1415
1412
  for (let a = 0; a < o.sheets.length; a++) {
1416
1413
  const c = o.sheets[a], m = s.utils.json_to_sheet([{}]);
1417
1414
  s.utils.book_append_sheet(n, m, c.name);
1418
1415
  const v = c.sheet, b = i.getSheetAt(a), x = b.getUsedRange();
1419
- if (x ? (m["!ref"] = x.getA1(), x.forEach((E, y) => {
1420
- const u = { t: "z" }, D = y.getCell().getStyle();
1421
- if (!D.isNormal()) {
1422
- let g = D.getNumberFormat();
1416
+ if (x ? (m["!ref"] = x.getA1(), x.forEach((D, y) => {
1417
+ const u = { t: "z" }, E = y.getCell().getStyle();
1418
+ if (!E.isNormal()) {
1419
+ let g = E.getNumberFormat();
1423
1420
  g !== Ht.Type.General && (g === Ht.Type.ShortDate ? g = "m/d/yyyy" : g === Ht.Type.MediumDate ? g = "d-mmm-yy" : g === Ht.Type.LongDate ? g = "[$-x-sysdate]dddd, mmmm dd, yyyy" : g === Ht.Type.ShortTime ? g = "h:mm" : g === Ht.Type.MediumTime ? g = "h:mm AM/PM" : g === Ht.Type.LongTime && (g = "h:mm:ss AM/PM"), u.z = g);
1424
1421
  }
1425
- if (E !== null) switch (y.getType()) {
1422
+ if (D !== null) switch (y.getType()) {
1426
1423
  case Ft.Number:
1427
- u.t = "n", u.v = E;
1424
+ u.t = "n", u.v = D;
1428
1425
  break;
1429
1426
  case Ft.String:
1430
- u.t = "s", u.v = E;
1427
+ u.t = "s", u.v = D;
1431
1428
  break;
1432
1429
  case Ft.Boolean:
1433
- u.t = "b", u.v = E;
1430
+ u.t = "b", u.v = D;
1434
1431
  break;
1435
1432
  case Ft.Error:
1436
- u.t = "e", u.v = E.toString();
1433
+ u.t = "e", u.v = D.toString();
1437
1434
  case Ft.RichData:
1438
1435
  }
1439
1436
  m[y.getA1()] = u;
1440
1437
  })) : m["!ref"] = "A1:A1", v.merges?.length > 0) {
1441
- const E = [];
1442
- m["!merges"] = E;
1443
- for (let y = 0; y < v.merges.length; y++) E.push(s.utils.decode_range(v.merges[y]));
1438
+ const D = [];
1439
+ m["!merges"] = D;
1440
+ for (let y = 0; y < v.merges.length; y++) D.push(s.utils.decode_range(v.merges[y]));
1444
1441
  }
1445
1442
  if (v.cols?.length > 0) {
1446
- const E = [];
1447
- m["!cols"] = E;
1443
+ const D = [];
1444
+ m["!cols"] = D;
1448
1445
  const y = v.cols, u = { width: v.defaultColSize ?? b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize()) };
1449
- for (let D = 0; D < y.length; D++) {
1450
- const g = y[D];
1451
- for (let f = E.length; f <= g.min - 1; f++) E.push(u);
1446
+ for (let E = 0; E < y.length; E++) {
1447
+ const g = y[E];
1448
+ for (let f = D.length; f <= g.min - 1; f++) D.push(u);
1452
1449
  const T = {};
1453
1450
  g.sz !== void 0 && (T.width = g.sz), g.h !== void 0 && (T.hidden = g.h), g.l !== void 0 && (T.level = g.l);
1454
- for (let f = g.min; f <= g.max; f++) E.push(T);
1451
+ for (let f = g.min; f <= g.max; f++) D.push(T);
1455
1452
  }
1456
1453
  }
1457
1454
  }
1458
1455
  return s.write(n, { type: "array", bookType: "xlsx" }), s.write(n, { type: "array", bookType: "xlsx" });
1459
1456
  } }, Symbol.toStringTag, { value: "Module" }));
1460
1457
  export {
1461
- ri as a,
1462
- Ks as b,
1463
- oi as c,
1464
- ls as d,
1465
- ai as i,
1466
- ni as p,
1458
+ si as a,
1459
+ Js as b,
1460
+ ei as c,
1461
+ as as d,
1462
+ oi as i,
1463
+ ii as p,
1467
1464
  Qs as r,
1468
- ii as t
1465
+ ti as t
1469
1466
  };